@lcap/nasl 0.3.10 → 0.3.11

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 (194) hide show
  1. package/out/service/app/api.d.ts +1 -15
  2. package/out/service/app/api.js +7 -17
  3. package/out/service/app/api.js.map +1 -1
  4. package/out/service/create/errHandles.js +19 -2
  5. package/out/service/create/errHandles.js.map +1 -1
  6. package/out/service/create/index.js +5 -0
  7. package/out/service/create/index.js.map +1 -1
  8. package/out/service/logic/logic.d.ts +50 -14
  9. package/out/service/logic/logic.js +26 -0
  10. package/out/service/logic/logic.js.map +1 -1
  11. package/out/service/page/element.d.ts +9 -0
  12. package/out/service/page/element.js +6 -0
  13. package/out/service/page/element.js.map +1 -1
  14. package/out/service/permission/api.d.ts +57 -0
  15. package/out/service/permission/api.js +41 -0
  16. package/out/service/permission/api.js.map +1 -0
  17. package/out/service/permission/index.d.ts +2 -0
  18. package/out/service/permission/index.js +17 -0
  19. package/out/service/permission/index.js.map +1 -0
  20. package/out/service/webFile/index.js +5 -0
  21. package/out/service/webFile/index.js.map +1 -1
  22. package/out/types/app/App.d.ts +13 -0
  23. package/out/types/app/App.js +55 -1
  24. package/out/types/app/App.js.map +1 -1
  25. package/out/types/app/History.js +3 -2
  26. package/out/types/app/History.js.map +1 -1
  27. package/out/types/app/Service.d.ts +5 -2
  28. package/out/types/app/Service.js +42 -9
  29. package/out/types/app/Service.js.map +1 -1
  30. package/out/types/cache.d.ts +6 -0
  31. package/out/types/cache.js +54 -0
  32. package/out/types/cache.js.map +1 -0
  33. package/out/types/cacheData.js.map +1 -1
  34. package/out/types/common/Vertex.d.ts +25 -0
  35. package/out/types/common/Vertex.js +42 -1
  36. package/out/types/common/Vertex.js.map +1 -1
  37. package/out/types/data/Entity.d.ts +4 -0
  38. package/out/types/data/Entity.js +9 -0
  39. package/out/types/data/Entity.js.map +1 -1
  40. package/out/types/data/EntityProperty.d.ts +5 -0
  41. package/out/types/data/EntityProperty.js +16 -0
  42. package/out/types/data/EntityProperty.js.map +1 -1
  43. package/out/types/data/Enum.d.ts +5 -0
  44. package/out/types/data/Enum.js +5 -0
  45. package/out/types/data/Enum.js.map +1 -1
  46. package/out/types/data/GlobalLogicNode.js +8 -1
  47. package/out/types/data/GlobalLogicNode.js.map +1 -1
  48. package/out/types/data/Interface.js +5 -3
  49. package/out/types/data/Interface.js.map +1 -1
  50. package/out/types/data/dataTypes.js +1 -1
  51. package/out/types/data/dataTypes.js.map +1 -1
  52. package/out/types/data/genBlock/genCreateBlock.js +5 -5
  53. package/out/types/data/genBlock/genCreateBlock.js.map +1 -1
  54. package/out/types/data/genBlock/genCurdBlock.js +3 -3
  55. package/out/types/data/genBlock/genCurdBlock.js.map +1 -1
  56. package/out/types/data/genBlock/genCurdEditTableBlock.d.ts +3 -0
  57. package/out/types/data/genBlock/genCurdEditTableBlock.js +578 -0
  58. package/out/types/data/genBlock/genCurdEditTableBlock.js.map +1 -0
  59. package/out/types/data/genBlock/genEditTableBlock.d.ts +234 -0
  60. package/out/types/data/genBlock/genEditTableBlock.js +419 -0
  61. package/out/types/data/genBlock/genEditTableBlock.js.map +1 -0
  62. package/out/types/data/genBlock/genEnumSelectBlock.d.ts +1 -1
  63. package/out/types/data/genBlock/genEnumSelectBlock.js +2 -2
  64. package/out/types/data/genBlock/genEnumSelectBlock.js.map +1 -1
  65. package/out/types/data/genBlock/genGridViewBlock.js +12 -1
  66. package/out/types/data/genBlock/genGridViewBlock.js.map +1 -1
  67. package/out/types/data/genBlock/genListViewBlock.js +2 -2
  68. package/out/types/data/genBlock/genQueryComponent.d.ts +20 -0
  69. package/out/types/data/genBlock/genQueryComponent.js +57 -1
  70. package/out/types/data/genBlock/genQueryComponent.js.map +1 -1
  71. package/out/types/data/genBlock/genSelectBlock.js +2 -2
  72. package/out/types/data/genBlock/genTableBlock.js +23 -8
  73. package/out/types/data/genBlock/genTableBlock.js.map +1 -1
  74. package/out/types/data/genBlock/genUpdateBlock.js +5 -5
  75. package/out/types/data/genBlock/genUpdateBlock.js.map +1 -1
  76. package/out/types/data/genBlock/index.d.ts +2 -0
  77. package/out/types/data/genBlock/index.js +2 -0
  78. package/out/types/data/genBlock/index.js.map +1 -1
  79. package/out/types/data/genBlock/utils.d.ts +7 -0
  80. package/out/types/data/genBlock/utils.js +38 -1
  81. package/out/types/data/genBlock/utils.js.map +1 -1
  82. package/out/types/data/systemTypes.js +47 -0
  83. package/out/types/data/systemTypes.js.map +1 -1
  84. package/out/types/enum.d.ts +6 -0
  85. package/out/types/enum.js +11 -0
  86. package/out/types/enum.js.map +1 -0
  87. package/out/types/generator/hotReload.d.ts +2 -0
  88. package/out/types/generator/hotReload.js +12 -1
  89. package/out/types/generator/hotReload.js.map +1 -1
  90. package/out/types/index.d.ts +5 -1
  91. package/out/types/index.js +8 -2
  92. package/out/types/index.js.map +1 -1
  93. package/out/types/logic/Logic.d.ts +32 -0
  94. package/out/types/logic/Logic.js +151 -41
  95. package/out/types/logic/Logic.js.map +1 -1
  96. package/out/types/logic/LogicItem.d.ts +1 -0
  97. package/out/types/logic/LogicItem.js +49 -32
  98. package/out/types/logic/LogicItem.js.map +1 -1
  99. package/out/types/logic/Param.d.ts +1 -0
  100. package/out/types/logic/Param.js +43 -33
  101. package/out/types/logic/Param.js.map +1 -1
  102. package/out/types/logic/Return.js +17 -30
  103. package/out/types/logic/Return.js.map +1 -1
  104. package/out/types/logic/Variable.js +17 -25
  105. package/out/types/logic/Variable.js.map +1 -1
  106. package/out/types/logic/translator.js +39 -10
  107. package/out/types/logic/translator.js.map +1 -1
  108. package/out/types/nuims/Nuims.d.ts +1 -1
  109. package/out/types/nuims/Nuims.js +11 -4
  110. package/out/types/nuims/Nuims.js.map +1 -1
  111. package/out/types/page/Element.d.ts +24 -0
  112. package/out/types/page/Element.js +198 -134
  113. package/out/types/page/Element.js.map +1 -1
  114. package/out/types/page/Event.js.map +1 -1
  115. package/out/types/page/Page.d.ts +5 -0
  116. package/out/types/page/Page.js +66 -27
  117. package/out/types/page/Page.js.map +1 -1
  118. package/out/types/page/View.d.ts +19 -1
  119. package/out/types/page/View.js +150 -40
  120. package/out/types/page/View.js.map +1 -1
  121. package/out/types/page/ViewParam.d.ts +1 -0
  122. package/out/types/page/ViewParam.js +23 -4
  123. package/out/types/page/ViewParam.js.map +1 -1
  124. package/out/types/page/ViewVariable.js +13 -24
  125. package/out/types/page/ViewVariable.js.map +1 -1
  126. package/out/types/permission/Permission.d.ts +41 -0
  127. package/out/types/permission/Permission.js +122 -0
  128. package/out/types/permission/Permission.js.map +1 -0
  129. package/out/types/process/ProcessParam.js +3 -1
  130. package/out/types/process/ProcessParam.js.map +1 -1
  131. package/out/types/utils/index.d.ts +1 -0
  132. package/out/types/utils/index.js +16 -7
  133. package/out/types/utils/index.js.map +1 -1
  134. package/package.json +1 -2
  135. package/src/service/app/api.js +8 -17
  136. package/src/service/create/errHandles.js +18 -2
  137. package/src/service/create/index.js +6 -0
  138. package/src/service/developPermission/api.js +37 -0
  139. package/src/service/developPermission/index.js +13 -0
  140. package/src/service/logic/logic.js +26 -0
  141. package/src/service/page/element.js +6 -0
  142. package/src/service/permission/api.js +38 -0
  143. package/src/service/permission/index.js +13 -0
  144. package/src/service/webFile/index.js +6 -1
  145. package/src/types/app/App.ts +58 -2
  146. package/src/types/app/History.ts +3 -2
  147. package/src/types/app/Service.ts +48 -10
  148. package/src/types/cache.ts +50 -0
  149. package/src/types/cacheData.ts +7 -7
  150. package/src/types/common/Vertex.ts +32 -1
  151. package/src/types/data/Entity.ts +8 -0
  152. package/src/types/data/EntityProperty.ts +12 -0
  153. package/src/types/data/Enum.ts +5 -0
  154. package/src/types/data/GlobalLogicNode.ts +8 -1
  155. package/src/types/data/Interface.ts +4 -3
  156. package/src/types/data/dataTypes.ts +1 -1
  157. package/src/types/data/genBlock/genCreateBlock.ts +5 -5
  158. package/src/types/data/genBlock/genCurdBlock.ts +3 -3
  159. package/src/types/data/genBlock/genCurdEditTableBlock.ts +581 -0
  160. package/src/types/data/genBlock/genEditTableBlock.ts +470 -0
  161. package/src/types/data/genBlock/genEnumSelectBlock.ts +2 -2
  162. package/src/types/data/genBlock/genGridViewBlock.ts +12 -1
  163. package/src/types/data/genBlock/genListViewBlock.ts +2 -2
  164. package/src/types/data/genBlock/genQueryComponent.ts +56 -0
  165. package/src/types/data/genBlock/genSelectBlock.ts +2 -2
  166. package/src/types/data/genBlock/genTableBlock.ts +28 -13
  167. package/src/types/data/genBlock/genUpdateBlock.ts +5 -5
  168. package/src/types/data/genBlock/index.ts +2 -0
  169. package/src/types/data/genBlock/utils.ts +38 -0
  170. package/src/types/data/systemTypes.ts +47 -0
  171. package/src/types/enum.ts +6 -0
  172. package/src/types/generator/hotReload.ts +10 -0
  173. package/src/types/index.ts +5 -1
  174. package/src/types/logic/Logic.ts +148 -39
  175. package/src/types/logic/LogicItem.ts +55 -38
  176. package/src/types/logic/Param.ts +43 -35
  177. package/src/types/logic/Return.ts +21 -34
  178. package/src/types/logic/Variable.ts +21 -27
  179. package/src/types/logic/translator.js +41 -14
  180. package/src/types/logic/translator_backup.js +5 -16
  181. package/src/types/nuims/Nuims.ts +11 -5
  182. package/src/types/page/Element.ts +212 -138
  183. package/src/types/page/Event.ts +0 -3
  184. package/src/types/page/Page.ts +80 -40
  185. package/src/types/page/View.ts +154 -39
  186. package/src/types/page/ViewParam.ts +22 -3
  187. package/src/types/page/ViewVariable.ts +16 -26
  188. package/src/types/page/dist/View.js +727 -0
  189. package/src/types/permission/Permission.ts +112 -0
  190. package/src/types/process/ProcessParam.ts +4 -1
  191. package/src/types/utils/index.ts +16 -7
  192. package/out/test/units/config.spec.d.ts +0 -1
  193. package/out/test/units/config.spec.js +0 -12
  194. package/out/test/units/config.spec.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"genCurdEditTableBlock.js","sourceRoot":"","sources":["../../../../src/types/data/genBlock/genCurdEditTableBlock.ts"],"names":[],"mappings":";;;AAAA,6BAAwG;AACxG,wBAK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CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;UAC/C,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;UACjD,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;UACjD,IAAI,CAAC,SAAS,CAAC,qBAAkB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;UACrD,gBAAgB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;;oBAE7D,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC;oBAC7B,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC;;;CAGhD,CAAC;AACF,CAAC;AA3ED,sDA2EC;AAED,kBAAe,qBAAqB,CAAC"}
@@ -0,0 +1,234 @@
1
+ import { Entity, EntityProperty, View, LEVEL_ENUM } from '../..';
2
+ import { NameGroup } from '.';
3
+ /**
4
+ * 根据实体属性生成表格列模板
5
+ * @param property 实体属性
6
+ */
7
+ export declare function genEditTableColumnTemplate(entity: Entity, property: EntityProperty, nameGroup: NameGroup, selectNameGroupMap?: Map<string, NameGroup>): string;
8
+ /**
9
+ * 生成表格模板
10
+ * @param entity 实体
11
+ * @param nameGroup 命名组
12
+ */
13
+ export declare function genEditTableTemplate(entity: Entity, nameGroup: NameGroup, selectNameGroupMap?: Map<string, NameGroup>): string;
14
+ /**
15
+ * 生成表格 load 逻辑
16
+ * @param entity 实体
17
+ */
18
+ export declare function genEditTableLoadLogic(entity: Entity, nameGroup: NameGroup, newStructures: Array<any>, newInterfaces: Array<any>, supportFilter: boolean): {
19
+ level: string;
20
+ name: string;
21
+ params: {
22
+ level: string;
23
+ type: string;
24
+ name: string;
25
+ schema: {
26
+ $ref: string;
27
+ };
28
+ }[];
29
+ returns: {
30
+ level: LEVEL_ENUM;
31
+ type: string;
32
+ name: string;
33
+ schema: import("../Schema").Schema;
34
+ }[];
35
+ variables: any[];
36
+ body: ({
37
+ level: string;
38
+ type: string;
39
+ label: string;
40
+ operator?: undefined;
41
+ left?: undefined;
42
+ right?: undefined;
43
+ } | {
44
+ level: string;
45
+ type: string;
46
+ label: string;
47
+ operator: string;
48
+ left: {
49
+ level: string;
50
+ type: string;
51
+ name: string;
52
+ };
53
+ right: {
54
+ level: string;
55
+ type: string;
56
+ label: string;
57
+ callee: any;
58
+ calleeCode: string;
59
+ params: Partial<import("../..").LogicItem>[];
60
+ interfaceKey?: undefined;
61
+ } | {
62
+ level: string;
63
+ type: string;
64
+ label: string;
65
+ interfaceKey: any;
66
+ params: Partial<import("../..").LogicItem>[];
67
+ callee?: undefined;
68
+ calleeCode?: undefined;
69
+ };
70
+ })[];
71
+ };
72
+ /**
73
+ * 生成表格 remove 逻辑
74
+ * @param entity 实体
75
+ */
76
+ export declare function genEditTableRemoveLogic(entity: Entity, nameGroup: NameGroup): {
77
+ level: string;
78
+ name: string;
79
+ params: ({
80
+ level: string;
81
+ type: string;
82
+ name: string;
83
+ schema: {
84
+ $ref: string;
85
+ };
86
+ } | {
87
+ level: string;
88
+ name: string;
89
+ schema: import("../Schema").Schema;
90
+ type?: undefined;
91
+ })[];
92
+ returns: any[];
93
+ variables: any[];
94
+ body: ({
95
+ level: string;
96
+ type: string;
97
+ label: string;
98
+ callee: string;
99
+ calleeCode: string;
100
+ params: {
101
+ level: string;
102
+ type: string;
103
+ callInterParamValue: any;
104
+ name: string;
105
+ }[];
106
+ } | {
107
+ level: string;
108
+ type: string;
109
+ label: string;
110
+ interfaceKey: string;
111
+ params: Partial<import("../..").LogicItem>[];
112
+ } | {
113
+ level: string;
114
+ type: string;
115
+ label: string;
116
+ callee: string;
117
+ calleeCode: string;
118
+ params: Partial<import("../..").LogicItem>[];
119
+ } | {
120
+ level: string;
121
+ type: string;
122
+ label: string;
123
+ })[];
124
+ };
125
+ /**
126
+ * 生成表格 双击编辑 逻辑
127
+ * @param entity 实体
128
+ */
129
+ export declare function genEditTableDblclickLogic(property: EntityProperty, nameGroup: NameGroup, existingNameSets: {
130
+ viewLogic: Set<string>;
131
+ interface: Set<string>;
132
+ structure: Set<string>;
133
+ }): {
134
+ level: string;
135
+ name: string;
136
+ params: ({
137
+ level: string;
138
+ type: string;
139
+ name: string;
140
+ schema: {
141
+ $ref: string;
142
+ };
143
+ } | {
144
+ level: string;
145
+ name: string;
146
+ schema: import("../Schema").Schema;
147
+ type?: undefined;
148
+ })[];
149
+ returns: any[];
150
+ variables: any[];
151
+ body: ({
152
+ level: string;
153
+ type: string;
154
+ label: string;
155
+ operator?: undefined;
156
+ left?: undefined;
157
+ right?: undefined;
158
+ } | {
159
+ level: string;
160
+ type: string;
161
+ label: string;
162
+ operator: string;
163
+ left: any;
164
+ right: {
165
+ level: string;
166
+ type: string;
167
+ value: string;
168
+ };
169
+ })[];
170
+ };
171
+ /**
172
+ * 生成表格区块
173
+ * @param entity 实体
174
+ * @param view 所插入的页面,用于生成逻辑名字,去重等
175
+ * @notice 目前 logic 名去重做成前置处理了,与 mergeBlock 的后置处理不冲突
176
+ * (页面 load 名) -产生-> (interface 名) -产生-> (structure 名)
177
+ * load -> load_someView_tableView
178
+ * load_select_student -> load_someView_select_student
179
+ */
180
+ export declare function genEditTableBlock(entity: Entity, view: View): string;
181
+ export declare function genBlurUpdateLogic(entity: Entity, nameGroup: NameGroup): {
182
+ level: string;
183
+ name: string;
184
+ params: ({
185
+ level: string;
186
+ type: string;
187
+ name: string;
188
+ schema: {
189
+ $ref: string;
190
+ };
191
+ } | {
192
+ level: string;
193
+ name: string;
194
+ schema: import("../Schema").Schema;
195
+ type?: undefined;
196
+ })[];
197
+ returns: any[];
198
+ body: ({
199
+ level: string;
200
+ type: string;
201
+ label: string;
202
+ interfaceKey: string;
203
+ params: Partial<import("../..").LogicItem>[];
204
+ } | {
205
+ level: string;
206
+ type: string;
207
+ label: string;
208
+ callee: string;
209
+ calleeCode: string;
210
+ params: Partial<import("../..").LogicItem>[];
211
+ } | {
212
+ level: string;
213
+ type: string;
214
+ label: string;
215
+ operator?: undefined;
216
+ left?: undefined;
217
+ right?: undefined;
218
+ } | {
219
+ level: string;
220
+ type: string;
221
+ label: string;
222
+ operator: string;
223
+ left: any;
224
+ right: {
225
+ level: string;
226
+ type: string;
227
+ value: string;
228
+ };
229
+ })[];
230
+ playground: any[];
231
+ expanded: boolean;
232
+ };
233
+ export declare function genEditTableColumnBlock(property: EntityProperty, view: View): string;
234
+ export default genEditTableBlock;
@@ -0,0 +1,419 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.genEditTableColumnBlock = exports.genBlurUpdateLogic = exports.genEditTableBlock = exports.genEditTableDblclickLogic = exports.genEditTableRemoveLogic = exports.genEditTableLoadLogic = exports.genEditTableTemplate = exports.genEditTableColumnTemplate = void 0;
4
+ const __1 = require("../..");
5
+ const _1 = require(".");
6
+ /**
7
+ * 根据实体属性生成表格列模板
8
+ * @param property 实体属性
9
+ */
10
+ function genEditTableColumnTemplate(entity, property, nameGroup, selectNameGroupMap) {
11
+ const lowerEntityName = __1.utils.firstLowerCase(property.root.name);
12
+ const valueExpression = `scope.item.${lowerEntityName}.${property.name}`;
13
+ const title = property.label || property.name;
14
+ const expression = _1.getExpression(property, `scope.item.${lowerEntityName}.${property.name}`);
15
+ const canEditable = (property) => property.editable;
16
+ const getText = (property) => {
17
+ if (property.typeKey === '#/basicTypes/Boolean') {
18
+ return `
19
+ <u-text v-if="${expression}" text="是"></u-text>
20
+ <u-text v-if="!${expression}" text="否"></u-text>
21
+ `;
22
+ }
23
+ else {
24
+ return `<u-text :text="${expression}"></u-text>`;
25
+ }
26
+ };
27
+ const genEditComponent = (property) => {
28
+ if (!property.editable)
29
+ return '';
30
+ const label = property.label || property.name;
31
+ let formItem = '';
32
+ if (property.$relationEntity && selectNameGroupMap) { // 有外键关联
33
+ const relationEntity = __1.vertexsMap.get(property.$relationEntity);
34
+ if (relationEntity) {
35
+ const relationProperty = __1.vertexsMap.get(property.$relationProperty);
36
+ const displayedProperty = _1.getFirstDisplayedProperty(relationEntity, 'inForm');
37
+ if (displayedProperty) {
38
+ const lowerEntityName = __1.utils.firstLowerCase(relationEntity.name);
39
+ formItem += `
40
+ <u-select clearable placeholder="请选择${label}" :data-source="${selectNameGroupMap.get(relationEntity.id).load}"
41
+ :autofocus="true" :opened="true" append-to="body" @blur="${nameGroup.blurUpdate}" @select="${nameGroup.blurUpdate}"
42
+ text-field="${lowerEntityName}.${displayedProperty.name}" value-field="${lowerEntityName}.${relationProperty.name}" :pageable="true" :remote-paging="true" :value.sync="${valueExpression}">
43
+ </u-select>
44
+ `;
45
+ }
46
+ else
47
+ return '';
48
+ }
49
+ else
50
+ return '';
51
+ }
52
+ else if (property.typeKey === '#/basicTypes/Boolean') {
53
+ formItem += `<u-select clearable :value.sync="${valueExpression}" placeholder="请输入${label}"
54
+ :autofocus="true" :opened="true" append-to="body" @blur="${nameGroup.blurUpdate}" @select="${nameGroup.blurUpdate}">
55
+ <u-select-item :value="true">是</u-select-item>
56
+ <u-select-item :value="false">否</u-select-item>
57
+ </u-select>`;
58
+ }
59
+ else if (property.typeKey === '#/basicTypes/Integer' || property.typeKey === '#/basicTypes/Long') {
60
+ formItem = `<u-number-input :value.sync="${valueExpression}" placeholder="请输入${label}" :autofocus="true" @blur="${nameGroup.blurUpdate}"></u-number-input>`;
61
+ }
62
+ else if (property.typeKey === '#/basicTypes/Decimal') {
63
+ formItem = `<u-number-input :value.sync="${valueExpression}" :precision="0" :step="0" placeholder="请输入${label}" :autofocus="true" @blur="${nameGroup.blurUpdate}"></u-number-input>`;
64
+ }
65
+ else if (property.typeKey === '#/basicTypes/Text') {
66
+ formItem = `<u-validator placement="bottom" display="appear" @blur-valid="${nameGroup.blurUpdate}" style="width:100%">
67
+ <u-textarea :value.sync="${valueExpression}" placeholder="请输入${label}" :autofocus="true" size="full"></u-textarea>
68
+ </u-validator>`;
69
+ }
70
+ else if (property.typeKey === '#/basicTypes/Date') {
71
+ formItem = `<u-date-picker clearable :date.sync="${valueExpression}" placeholder="请输入${label}" append-to="body" :autofocus="true" :opened="true" @blur="${nameGroup.blurUpdate}"></u-date-picker>`;
72
+ }
73
+ else if (property.typeKey === '#/basicTypes/Time') {
74
+ formItem = `<u-time-picker :time.sync="${valueExpression}" placeholder="请输入${label}" append-to="body" :autofocus="true" @blur="${nameGroup.blurUpdate}"></u-time-picker>`;
75
+ }
76
+ else if (property.typeKey === '#/basicTypes/DateTime') {
77
+ formItem = `<u-date-time-picker clearable :date.sync="${valueExpression}" placeholder="请输入${label}" append-to="body" :autofocus="true" :opened="true" @blur="${nameGroup.blurUpdate}"></u-date-time-picker>`;
78
+ }
79
+ else if (__1.dataTypesMap[property.typeKey].type === 'enum') {
80
+ formItem = `<u-select clearable :value.sync="${valueExpression}" placeholder="请选择${label}"
81
+ :autofocus="true" :opened="true" append-to="body" :data-source="ID_ENUM_LIST_${__1.dataTypesMap[property.typeKey].id}"
82
+ @blur="${nameGroup.blurUpdate}" @select="${nameGroup.blurUpdate}">
83
+ </u-select>`;
84
+ }
85
+ else {
86
+ formItem = `<u-validator placement="bottom" display="appear" @blur-valid="${nameGroup.blurUpdate}" style="width:100%" append-to="body">
87
+ <u-input :value.sync="${valueExpression}" placeholder="请输入${label}" :autofocus="true" size="full"></u-input>
88
+ </u-validator>`;
89
+ }
90
+ return `<template #editcell="scope">
91
+ <u-linear-layout gap="small">
92
+ ${formItem}
93
+ </u-linear-layout>
94
+ </template>`;
95
+ };
96
+ return `<u-table-view-column title="${title}" field="${__1.utils.firstLowerCase(entity.name)}.${property.name}" ${canEditable(property) ? 'type="editable"' : ''}>
97
+ <template #cell="scope">
98
+ <u-linear-layout gap="small">
99
+ ${getText(property)}
100
+ </u-linear-layout>
101
+ </template>
102
+ ${genEditComponent(property)}
103
+ </u-table-view-column>`;
104
+ }
105
+ exports.genEditTableColumnTemplate = genEditTableColumnTemplate;
106
+ /**
107
+ * 生成表格模板
108
+ * @param entity 实体
109
+ * @param nameGroup 命名组
110
+ */
111
+ function genEditTableTemplate(entity, nameGroup, selectNameGroupMap) {
112
+ const propertyList = entity.propertyList
113
+ .filter(_1.filterProperty('inTable'));
114
+ return `<u-table-view ref="tableView" :data-source="${nameGroup.load}" data-schema="${nameGroup.structure}"
115
+ value-field="${nameGroup.lowerEntity}.id"
116
+ :pageable="true" :remote-paging="true" :show-sizer="true" :default-column-width="300" editable>
117
+ <u-table-view-column type="index" width="60" title="序号"></u-table-view-column>
118
+
119
+ ${propertyList.map((property) => genEditTableColumnTemplate(entity, property, nameGroup, selectNameGroupMap) + '\n').join('')}
120
+
121
+ <u-table-view-column title="操作">
122
+ <template #cell="scope">
123
+ <u-linear-layout gap="small">
124
+ <u-link @click="${nameGroup.remove}($event, scope)">删除</u-link>
125
+ </u-linear-layout>
126
+ </template>
127
+ </u-table-view-column>
128
+ </u-table-view>
129
+ `;
130
+ }
131
+ exports.genEditTableTemplate = genEditTableTemplate;
132
+ /**
133
+ * 生成表格 load 逻辑
134
+ * @param entity 实体
135
+ */
136
+ function genEditTableLoadLogic(entity, nameGroup, newStructures, newInterfaces, supportFilter) {
137
+ const paramsSchema = {
138
+ $ref: '#/systemTypes/DataSourceParams',
139
+ };
140
+ const resultSchema = _1.genGenericTypeSchema('PageOf', { T: { $ref: nameGroup.structure } });
141
+ const params = [
142
+ _1.genInterParam(`${newInterfaces[0].name}.${newInterfaces[0].logic.params[0].name}`, 'params.page', [undefined, undefined]),
143
+ _1.genInterParam(`${newInterfaces[0].name}.${newInterfaces[0].logic.params[1].name}`, 'params.size', [undefined, undefined]),
144
+ _1.genInterParam(`${newInterfaces[0].name}.${newInterfaces[0].logic.params[2].name}`, 'params.sort', [undefined, undefined]),
145
+ _1.genInterParam(`${newInterfaces[0].name}.${newInterfaces[0].logic.params[3].name}`, 'params.order', [undefined, undefined]),
146
+ ];
147
+ if (supportFilter)
148
+ params.push(_1.genInterParam(`${newInterfaces[0].name}.${newInterfaces[0].logic.params[4].name}`, 'filter', [undefined]));
149
+ return {
150
+ level: 'logic',
151
+ name: nameGroup.load,
152
+ params: [{
153
+ level: 'param',
154
+ type: 'Identifier',
155
+ name: 'params',
156
+ schema: paramsSchema,
157
+ }],
158
+ returns: [
159
+ _1.genVariable('result', resultSchema, __1.LEVEL_ENUM.return),
160
+ ],
161
+ variables: [],
162
+ body: [{
163
+ level: 'logicNode',
164
+ type: 'Start',
165
+ label: '开始',
166
+ }, {
167
+ level: 'logicNode',
168
+ type: 'AssignmentExpression',
169
+ label: '赋值',
170
+ operator: '=',
171
+ left: {
172
+ level: 'expressionNode',
173
+ type: 'Identifier',
174
+ name: 'result',
175
+ },
176
+ right: _1.genCallInterfaceFromTempInterface(newInterfaces[0], params),
177
+ }, {
178
+ level: 'logicNode',
179
+ type: 'End',
180
+ label: '结束',
181
+ }],
182
+ };
183
+ }
184
+ exports.genEditTableLoadLogic = genEditTableLoadLogic;
185
+ /**
186
+ * 生成表格 remove 逻辑
187
+ * @param entity 实体
188
+ */
189
+ function genEditTableRemoveLogic(entity, nameGroup) {
190
+ const scopeStructureSchema = _1.genGenericTypeSchema('ScopeOf', { T: { $ref: nameGroup.structure } });
191
+ const deleteResolver = entity.resolvers.find((resolver) => resolver.name === 'delete');
192
+ const deleteInterface = deleteResolver.interface;
193
+ const idParam = _1.getParamFromResolver(deleteResolver, 'id');
194
+ const idProperty = entity.propertyList.find((property) => property.primaryKey || property.name === 'id');
195
+ return {
196
+ level: 'logic',
197
+ name: nameGroup.remove,
198
+ params: [{
199
+ level: 'param',
200
+ type: 'Identifier',
201
+ name: 'event',
202
+ schema: { $ref: '#/basicTypes/String' },
203
+ }, {
204
+ level: 'param',
205
+ name: 'scope',
206
+ schema: scopeStructureSchema,
207
+ }],
208
+ returns: [],
209
+ variables: [],
210
+ body: [{
211
+ level: 'logicNode',
212
+ type: 'Start',
213
+ label: '开始',
214
+ },
215
+ _1.genCallInterface(deleteInterface, [
216
+ _1.genInterParam(idParam.id, `scope.item.${nameGroup.lowerEntity}.id`, ['', '', `${nameGroup.structure}.${nameGroup.lowerEntity}`, idProperty.id]),
217
+ ]),
218
+ _1.genCallComponentLogic('tableView', 'reload'),
219
+ {
220
+ level: 'logicNode',
221
+ label: '结束',
222
+ type: 'End',
223
+ }],
224
+ };
225
+ }
226
+ exports.genEditTableRemoveLogic = genEditTableRemoveLogic;
227
+ /**
228
+ * 生成表格 双击编辑 逻辑
229
+ * @param entity 实体
230
+ */
231
+ function genEditTableDblclickLogic(property, nameGroup, existingNameSets) {
232
+ const scopeStructureSchema = _1.genGenericTypeSchema('ScopeOf', { T: { $ref: nameGroup.structure } });
233
+ const logicName = __1.utils.unique(`set${__1.utils.firstUpperCase(property.name)}Edit`, existingNameSets.viewLogic);
234
+ return {
235
+ level: 'logic',
236
+ name: logicName,
237
+ params: [{
238
+ level: 'param',
239
+ type: 'Identifier',
240
+ name: 'event',
241
+ schema: { $ref: '#/basicTypes/String' },
242
+ }, {
243
+ level: 'param',
244
+ name: 'scope',
245
+ schema: scopeStructureSchema,
246
+ }],
247
+ returns: [],
248
+ variables: [],
249
+ body: [{
250
+ level: 'logicNode',
251
+ type: 'Start',
252
+ label: '开始',
253
+ },
254
+ {
255
+ level: 'logicNode',
256
+ type: 'AssignmentExpression',
257
+ label: '赋值',
258
+ operator: '=',
259
+ left: _1.genMemberExpression(`scope.item.editing`, ['', '', `${nameGroup.structure}.editing`]),
260
+ right: {
261
+ level: 'expressionNode',
262
+ type: 'StringLiteral',
263
+ value: `${property.name}`,
264
+ },
265
+ },
266
+ {
267
+ level: 'logicNode',
268
+ label: '结束',
269
+ type: 'End',
270
+ }],
271
+ };
272
+ }
273
+ exports.genEditTableDblclickLogic = genEditTableDblclickLogic;
274
+ /**
275
+ * 生成表格区块
276
+ * @param entity 实体
277
+ * @param view 所插入的页面,用于生成逻辑名字,去重等
278
+ * @notice 目前 logic 名去重做成前置处理了,与 mergeBlock 的后置处理不冲突
279
+ * (页面 load 名) -产生-> (interface 名) -产生-> (structure 名)
280
+ * load -> load_someView_tableView
281
+ * load_select_student -> load_someView_select_student
282
+ */
283
+ function genEditTableBlock(entity, view) {
284
+ const existingNameSets = {
285
+ viewLogic: new Set(view.$def.logics.map((logic) => logic.name)),
286
+ interface: new Set(entity.dataNode.service.interfaces.map((itface) => itface.name)),
287
+ structure: new Set(entity.dataNode.structures.map((structure) => structure.name)),
288
+ };
289
+ const nameGroup = _1.genUniqueQueryNameGroup(existingNameSets, view.name, 'tableView');
290
+ nameGroup.remove = __1.utils.unique('remove', existingNameSets.viewLogic);
291
+ nameGroup.blurUpdate = __1.utils.unique('blurUpdate', existingNameSets.viewLogic);
292
+ nameGroup.lowerEntity = __1.utils.firstLowerCase(entity.name);
293
+ // 收集所有和本实体关联的实体
294
+ const allEntities = [entity];
295
+ entity.propertyList.forEach((property) => {
296
+ if (property.$relationEntity) { // 有外键关联
297
+ const relationEntity = __1.vertexsMap.get(property.$relationEntity);
298
+ if (relationEntity) {
299
+ const displayedProperty = _1.getFirstDisplayedProperty(relationEntity);
300
+ if (displayedProperty)
301
+ allEntities.push(relationEntity);
302
+ }
303
+ }
304
+ });
305
+ const newStructures = [_1.genEditQueryStructure(allEntities, nameGroup)];
306
+ const newInterfaces = [_1.genQueryInterface(allEntities, nameGroup, false, true)];
307
+ return `
308
+ <template>
309
+ ${genEditTableTemplate(entity, nameGroup)}
310
+ </template>
311
+ <definition>
312
+ {
313
+ "logics": [
314
+ ${JSON.stringify(genEditTableLoadLogic(entity, nameGroup, newStructures, newInterfaces, false))},
315
+ ${JSON.stringify(genEditTableRemoveLogic(entity, nameGroup))}
316
+ ],
317
+ "interfaces": ${JSON.stringify(newInterfaces)},
318
+ "structures": ${JSON.stringify(newStructures)}
319
+ }
320
+ </definition>
321
+ `;
322
+ }
323
+ exports.genEditTableBlock = genEditTableBlock;
324
+ function genBlurUpdateLogic(entity, nameGroup) {
325
+ const scopeStructureSchema = _1.genGenericTypeSchema('ScopeOf', { T: { $ref: nameGroup.structure } });
326
+ const updateResolver = entity.resolvers.find((item) => item.name === 'update');
327
+ const updateBodyParam = _1.getParamFromResolver(updateResolver, 'body');
328
+ return {
329
+ level: 'logic',
330
+ name: nameGroup.blurUpdate,
331
+ params: [{
332
+ level: 'param',
333
+ type: 'Identifier',
334
+ name: 'event',
335
+ schema: { $ref: '#/basicTypes/String' },
336
+ }, {
337
+ level: 'param',
338
+ name: 'scope',
339
+ schema: scopeStructureSchema,
340
+ }],
341
+ returns: [],
342
+ body: [
343
+ {
344
+ level: 'logicNode',
345
+ type: 'Start',
346
+ label: '开始',
347
+ },
348
+ {
349
+ level: 'logicNode',
350
+ type: 'AssignmentExpression',
351
+ label: '赋值',
352
+ operator: '=',
353
+ left: _1.genMemberExpression(`scope.item.editing`, ['', '', `${nameGroup.structure}.editing`]),
354
+ right: {
355
+ level: 'expressionNode',
356
+ type: 'StringLiteral',
357
+ value: '',
358
+ },
359
+ },
360
+ _1.genCallInterface(updateResolver.interface, [
361
+ _1.genInterParam(updateBodyParam.id, `scope.item.${nameGroup.lowerEntity}`, ['', '', `${nameGroup.structure}.${nameGroup.lowerEntity}`]),
362
+ ]),
363
+ {
364
+ level: 'logicNode',
365
+ type: 'End',
366
+ label: '结束',
367
+ },
368
+ ],
369
+ playground: [],
370
+ expanded: false,
371
+ };
372
+ }
373
+ exports.genBlurUpdateLogic = genBlurUpdateLogic;
374
+ function genEditTableColumnBlock(property, view) {
375
+ const entity = property.root;
376
+ const existingNameSets = {
377
+ viewLogic: new Set(view.$def.logics.map((logic) => logic.name)),
378
+ interface: new Set(entity.dataNode.service.interfaces.map((itface) => itface.name)),
379
+ structure: new Set(entity.dataNode.structures.map((structure) => structure.name)),
380
+ };
381
+ const nameGroup = _1.genUniqueQueryNameGroup(existingNameSets, view.name, 'tableView');
382
+ nameGroup.remove = __1.utils.unique('remove', existingNameSets.viewLogic);
383
+ nameGroup.lowerEntity = __1.utils.firstLowerCase(entity.name);
384
+ // 收集所有和本实体关联的实体
385
+ const allEntities = [entity];
386
+ const propertyList = [property];
387
+ propertyList.forEach((property) => {
388
+ if (property.$relationEntity) { // 有外键关联
389
+ const relationEntity = __1.vertexsMap.get(property.$relationEntity);
390
+ if (relationEntity) {
391
+ const displayedProperty = _1.getFirstDisplayedProperty(relationEntity);
392
+ if (displayedProperty)
393
+ allEntities.push(relationEntity);
394
+ }
395
+ }
396
+ });
397
+ const newStructures = [_1.genEditQueryStructure(allEntities, nameGroup)];
398
+ const newInterfaces = [_1.genQueryInterface(allEntities, nameGroup, false, true)];
399
+ return `
400
+ <template>
401
+ <u-table-view ref="tableView" :data-source="${nameGroup.load}" :pageable="true" :remote-paging="true" :show-sizer="true" data-schema="${nameGroup.structure}">
402
+ ${propertyList.map((property) => genEditTableColumnTemplate(entity, property, nameGroup) + '\n').join('')}
403
+ </u-table-view>
404
+ </template>
405
+ <definition>
406
+ {
407
+ "logics": [
408
+ ${JSON.stringify(genEditTableLoadLogic(entity, nameGroup, newStructures, newInterfaces, false))},
409
+ ${JSON.stringify(genBlurUpdateLogic(entity, nameGroup))}
410
+ ],
411
+ "interfaces": ${JSON.stringify(newInterfaces)},
412
+ "structures": ${JSON.stringify(newStructures)}
413
+ }
414
+ </definition>
415
+ `;
416
+ }
417
+ exports.genEditTableColumnBlock = genEditTableColumnBlock;
418
+ exports.default = genEditTableBlock;
419
+ //# sourceMappingURL=genEditTableBlock.js.map