@oinone/kunlun-meta 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/dist/oinone-kunlun-meta.esm.js +496 -0
  2. package/dist/types/index.d.ts +1 -0
  3. package/dist/types/src/element/ActionElement.d.ts +15 -0
  4. package/dist/types/src/element/ApiElement.d.ts +21 -0
  5. package/dist/types/src/element/ClearElement.d.ts +9 -0
  6. package/dist/types/src/element/ConfigElement.d.ts +6 -0
  7. package/dist/types/src/element/ContextElement.d.ts +9 -0
  8. package/dist/types/src/element/CustomElement.d.ts +7 -0
  9. package/dist/types/src/element/FieldElement.d.ts +25 -0
  10. package/dist/types/src/element/IBaseElement.d.ts +5 -0
  11. package/dist/types/src/element/PropElement.d.ts +6 -0
  12. package/dist/types/src/element/RequestElement.d.ts +9 -0
  13. package/dist/types/src/element/ResponseElement.d.ts +9 -0
  14. package/dist/types/src/element/SubscribeElement.d.ts +9 -0
  15. package/dist/types/src/element/ValidationElement.d.ts +12 -0
  16. package/dist/types/src/element/ViewElement.d.ts +15 -0
  17. package/dist/types/src/element/WidgetElement.d.ts +23 -0
  18. package/dist/types/src/element/index.d.ts +14 -0
  19. package/dist/types/src/global-config/index.d.ts +2 -0
  20. package/dist/types/src/global-config/runtime-config.d.ts +14 -0
  21. package/dist/types/src/global-config/type.d.ts +26 -0
  22. package/dist/types/src/index.d.ts +5 -0
  23. package/dist/types/src/metadata/constant/config.d.ts +1 -0
  24. package/dist/types/src/metadata/constant/index.d.ts +2 -0
  25. package/dist/types/src/metadata/constant/module-name.d.ts +20 -0
  26. package/dist/types/src/metadata/fragment/action.d.ts +6 -0
  27. package/dist/types/src/metadata/fragment/field.d.ts +2 -0
  28. package/dist/types/src/metadata/fragment/func.d.ts +2 -0
  29. package/dist/types/src/metadata/fragment/index.d.ts +13 -0
  30. package/dist/types/src/metadata/fragment/menu.d.ts +2 -0
  31. package/dist/types/src/metadata/fragment/model.d.ts +2 -0
  32. package/dist/types/src/metadata/fragment/page.d.ts +2 -0
  33. package/dist/types/src/metadata/index.d.ts +4 -0
  34. package/dist/types/src/metadata/runtime-fragment/action.d.ts +8 -0
  35. package/dist/types/src/metadata/runtime-fragment/function.d.ts +3 -0
  36. package/dist/types/src/metadata/runtime-fragment/index.d.ts +20 -0
  37. package/dist/types/src/metadata/runtime-fragment/model.d.ts +2 -0
  38. package/dist/types/src/metadata/runtime-fragment/module.d.ts +2 -0
  39. package/dist/types/src/metadata/runtime-fragment/view.d.ts +6 -0
  40. package/dist/types/src/metadata/types/dsl-node.d.ts +12 -0
  41. package/dist/types/src/metadata/types/enumeration.d.ts +18 -0
  42. package/dist/types/src/metadata/types/index.d.ts +8 -0
  43. package/dist/types/src/metadata/types/layout.d.ts +4 -0
  44. package/dist/types/src/metadata/types/model.d.ts +573 -0
  45. package/dist/types/src/metadata/types/tag.d.ts +23 -0
  46. package/dist/types/src/metadata/types/user.d.ts +22 -0
  47. package/dist/types/src/metadata/types/value.d.ts +3 -0
  48. package/dist/types/src/metadata/types/view.d.ts +170 -0
  49. package/dist/types/src/plugin-loader/factory/PluginLoaderFactory.d.ts +4 -0
  50. package/dist/types/src/plugin-loader/factory/index.d.ts +1 -0
  51. package/dist/types/src/plugin-loader/index.d.ts +5 -0
  52. package/dist/types/src/plugin-loader/loader/CJSPluginLoader.d.ts +7 -0
  53. package/dist/types/src/plugin-loader/loader/CSSPluginLoader.d.ts +7 -0
  54. package/dist/types/src/plugin-loader/loader/ESMPluginLoader.d.ts +7 -0
  55. package/dist/types/src/plugin-loader/loader/IIFEPluginLoader.d.ts +7 -0
  56. package/dist/types/src/plugin-loader/loader/LoadedEvent.d.ts +4 -0
  57. package/dist/types/src/plugin-loader/loader/PluginLoader.d.ts +5 -0
  58. package/dist/types/src/plugin-loader/loader/RemotePluginLoader.d.ts +5 -0
  59. package/dist/types/src/plugin-loader/loader/UMDPluginLoader.d.ts +6 -0
  60. package/dist/types/src/plugin-loader/loader/index.d.ts +1 -0
  61. package/dist/types/src/plugin-loader/typing/index.d.ts +2 -0
  62. package/dist/types/src/plugin-loader/typing/load-option.d.ts +48 -0
  63. package/dist/types/src/plugin-loader/typing/loader-config.d.ts +38 -0
  64. package/dist/types/src/plugin-loader/util/PluginLoadHelper.d.ts +7 -0
  65. package/dist/types/src/plugin-loader/util/index.d.ts +1 -0
  66. package/dist/types/src/util/element.d.ts +16 -0
  67. package/dist/types/src/util/field.d.ts +7 -0
  68. package/dist/types/src/util/helper.d.ts +2 -0
  69. package/dist/types/src/util/index.d.ts +6 -0
  70. package/dist/types/src/util/ke-common.d.ts +6 -0
  71. package/dist/types/src/util/lang.d.ts +4 -0
  72. package/dist/types/src/util/validation-utils.d.ts +3 -0
  73. package/index.ts +1 -0
  74. package/package.json +17 -0
  75. package/rollup.config.js +4 -0
  76. package/src/element/ActionElement.ts +20 -0
  77. package/src/element/ApiElement.ts +22 -0
  78. package/src/element/ClearElement.ts +10 -0
  79. package/src/element/ConfigElement.ts +7 -0
  80. package/src/element/ContextElement.ts +10 -0
  81. package/src/element/CustomElement.ts +22 -0
  82. package/src/element/FieldElement.ts +41 -0
  83. package/src/element/IBaseElement.ts +5 -0
  84. package/src/element/PropElement.ts +7 -0
  85. package/src/element/RequestElement.ts +10 -0
  86. package/src/element/ResponseElement.ts +10 -0
  87. package/src/element/SubscribeElement.ts +10 -0
  88. package/src/element/ValidationElement.ts +17 -0
  89. package/src/element/ViewElement.ts +23 -0
  90. package/src/element/WidgetElement.ts +33 -0
  91. package/src/element/index.ts +14 -0
  92. package/src/global-config/index.ts +2 -0
  93. package/src/global-config/runtime-config.ts +83 -0
  94. package/src/global-config/type.ts +48 -0
  95. package/src/index.ts +5 -0
  96. package/src/metadata/constant/config.ts +1 -0
  97. package/src/metadata/constant/index.ts +2 -0
  98. package/src/metadata/constant/module-name.ts +21 -0
  99. package/src/metadata/fragment/action.ts +119 -0
  100. package/src/metadata/fragment/field.ts +42 -0
  101. package/src/metadata/fragment/func.ts +21 -0
  102. package/src/metadata/fragment/index.ts +20 -0
  103. package/src/metadata/fragment/menu.ts +35 -0
  104. package/src/metadata/fragment/model.ts +76 -0
  105. package/src/metadata/fragment/page.ts +17 -0
  106. package/src/metadata/index.ts +4 -0
  107. package/src/metadata/runtime-fragment/action.ts +159 -0
  108. package/src/metadata/runtime-fragment/function.ts +25 -0
  109. package/src/metadata/runtime-fragment/index.ts +36 -0
  110. package/src/metadata/runtime-fragment/model.ts +18 -0
  111. package/src/metadata/runtime-fragment/module.ts +11 -0
  112. package/src/metadata/runtime-fragment/view.ts +44 -0
  113. package/src/metadata/types/dsl-node.ts +14 -0
  114. package/src/metadata/types/enumeration.ts +19 -0
  115. package/src/metadata/types/index.ts +8 -0
  116. package/src/metadata/types/layout.ts +4 -0
  117. package/src/metadata/types/model.ts +823 -0
  118. package/src/metadata/types/tag.ts +24 -0
  119. package/src/metadata/types/user.ts +27 -0
  120. package/src/metadata/types/value.ts +3 -0
  121. package/src/metadata/types/view.ts +194 -0
  122. package/src/plugin-loader/factory/PluginLoaderFactory.ts +23 -0
  123. package/src/plugin-loader/factory/index.ts +1 -0
  124. package/src/plugin-loader/index.ts +33 -0
  125. package/src/plugin-loader/loader/CJSPluginLoader.ts +18 -0
  126. package/src/plugin-loader/loader/CSSPluginLoader.ts +29 -0
  127. package/src/plugin-loader/loader/ESMPluginLoader.ts +53 -0
  128. package/src/plugin-loader/loader/IIFEPluginLoader.ts +18 -0
  129. package/src/plugin-loader/loader/LoadedEvent.ts +24 -0
  130. package/src/plugin-loader/loader/PluginLoader.ts +12 -0
  131. package/src/plugin-loader/loader/RemotePluginLoader.ts +54 -0
  132. package/src/plugin-loader/loader/UMDPluginLoader.ts +50 -0
  133. package/src/plugin-loader/loader/index.ts +1 -0
  134. package/src/plugin-loader/typing/index.ts +2 -0
  135. package/src/plugin-loader/typing/load-option.ts +51 -0
  136. package/src/plugin-loader/typing/loader-config.ts +38 -0
  137. package/src/plugin-loader/util/PluginLoadHelper.ts +70 -0
  138. package/src/plugin-loader/util/index.ts +1 -0
  139. package/src/util/element.ts +154 -0
  140. package/src/util/field.ts +63 -0
  141. package/src/util/helper.ts +6 -0
  142. package/src/util/index.ts +6 -0
  143. package/src/util/ke-common.ts +25 -0
  144. package/src/util/lang.ts +8 -0
  145. package/src/util/validation-utils.ts +17 -0
@@ -0,0 +1,573 @@
1
+ import { BIGINT, EntityId } from './value';
2
+ import { IView, SystemSource, ViewActionTarget, ViewType } from './view';
3
+ export declare type ModelId = EntityId;
4
+ export interface IModel {
5
+ id: ModelId;
6
+ pk: string[];
7
+ model: string;
8
+ name: string;
9
+ type: ModelType;
10
+ module?: string;
11
+ moduleName: string;
12
+ modelFields: IModelField[];
13
+ displayName?: string;
14
+ labelFields?: string[];
15
+ label?: string;
16
+ progressField?: string;
17
+ masterFieldStr?: string;
18
+ progressFieldStr?: string;
19
+ viewActionList?: IViewAction[];
20
+ serverActionList?: IServerAction[];
21
+ urlActionList?: IURLAction[];
22
+ clientActionList?: IClientAction[];
23
+ functions?: IModelFunc[];
24
+ modelActions?: (IClientAction | IURLAction | IServerAction | IViewAction)[];
25
+ viewList?: IView[];
26
+ uniqueList?: {
27
+ fieldList: IModelField[];
28
+ fields: string;
29
+ }[];
30
+ uniques?: string[];
31
+ indexes?: string[];
32
+ indexList?: {
33
+ fieldList: IModelField[];
34
+ fields: string[];
35
+ }[];
36
+ ordering?: string;
37
+ attributes?: {
38
+ requiredCondition?: string;
39
+ invisibleCondition?: string;
40
+ readonlyCondition?: string;
41
+ layoutGrid: number;
42
+ layoutGroup: string;
43
+ };
44
+ }
45
+ export declare enum ModelType {
46
+ STORE = "STORE",
47
+ TRANSIENT = "TRANSIENT",
48
+ ABSTRACT = "ABSTRACT",
49
+ PROXY = "PROXY",
50
+ CLIENT = "CLIENT"
51
+ }
52
+ export declare enum ModelFieldType {
53
+ String = "STRING",
54
+ Text = "TEXT",
55
+ HTML = "HTML",
56
+ Phone = "PHONE",
57
+ Email = "EMAIL",
58
+ Integer = "INTEGER",
59
+ Long = "LONG",
60
+ Float = "FLOAT",
61
+ Currency = "MONEY",
62
+ DateTime = "DATETIME",
63
+ Date = "DATE",
64
+ Time = "TIME",
65
+ Year = "YEAR",
66
+ Boolean = "BOOLEAN",
67
+ Enum = "ENUM",
68
+ Map = "MAP",
69
+ Related = "RELATED",
70
+ OneToOne = "O2O",
71
+ OneToMany = "O2M",
72
+ ManyToOne = "M2O",
73
+ ManyToMany = "M2M",
74
+ OBJ = "OBJ",
75
+ /**
76
+ * @deprecated 已废弃
77
+ */
78
+ ID = "ID",
79
+ /**
80
+ * @deprecated 已废弃
81
+ */
82
+ Null = "NULL",
83
+ /**
84
+ * @deprecated 已废弃
85
+ */
86
+ UID = "UID",
87
+ /**
88
+ * @deprecated 已废弃
89
+ */
90
+ MultiEnum = "MULTI_ENUM"
91
+ }
92
+ export declare const ModelFieldTypeDisplayName: {
93
+ ID: string;
94
+ NULL: string;
95
+ INTEGER: string;
96
+ LONG: string;
97
+ FLOAT: string;
98
+ BOOLEAN: string;
99
+ STRING: string;
100
+ TEXT: string;
101
+ DATETIME: string;
102
+ DATE: string;
103
+ TIME: string;
104
+ YEAR: string;
105
+ HTML: string;
106
+ MONEY: string;
107
+ ENUM: string;
108
+ MULTI_ENUM: string;
109
+ O2O: string;
110
+ O2M: string;
111
+ M2O: string;
112
+ M2M: string;
113
+ RELATED: string;
114
+ MAP: string;
115
+ UID: string;
116
+ PHONE: string;
117
+ EMAIL: string;
118
+ };
119
+ export declare const ModelFieldTypeOptions: {
120
+ label: string;
121
+ value: string;
122
+ }[];
123
+ export declare enum ModelFieldSerializeType {
124
+ NON = "NON",
125
+ JSON = "JSON",
126
+ COMMA = "COMMA",
127
+ BIT = "BIT",
128
+ DOT = "DOT"
129
+ }
130
+ export interface IModelField {
131
+ id: string;
132
+ data?: string;
133
+ name: string;
134
+ viewIndex: string;
135
+ limit: number;
136
+ load: string;
137
+ loadType: LoadType;
138
+ loadApi: string;
139
+ ttype: ModelFieldType;
140
+ model: string;
141
+ modelId: ModelId;
142
+ displayName?: string;
143
+ max?: string;
144
+ min?: string;
145
+ sys?: boolean;
146
+ systemSource?: SystemSource;
147
+ size?: number;
148
+ decimal?: number;
149
+ options?: IModelFieldOption[];
150
+ index?: boolean;
151
+ unique?: boolean;
152
+ translate?: boolean;
153
+ label?: string;
154
+ /**
155
+ * 关联的对方模型,原来的 relation
156
+ */
157
+ references?: string;
158
+ /**
159
+ * m2m 关联关系的模型
160
+ */
161
+ through?: string;
162
+ /**
163
+ * 关系字段,自身模型的关联字段
164
+ */
165
+ relationFields?: string[];
166
+ /**
167
+ * 关联字段,关联模型的关联字段
168
+ */
169
+ referenceFields?: string[];
170
+ /**
171
+ * 中间模型里当前模型的关联字段
172
+ */
173
+ throughRelationFields?: string[];
174
+ /**
175
+ * 中间模型里关联模型的关联字段
176
+ */
177
+ throughReferenceFields?: string[];
178
+ invisible?: boolean | string;
179
+ priority?: BIGINT;
180
+ compute?: string;
181
+ relatedTtype?: ModelFieldType;
182
+ widget?: string;
183
+ field?: string;
184
+ sortable?: boolean;
185
+ hint?: string;
186
+ patternType?: string;
187
+ pattern?: string;
188
+ validation?: string;
189
+ tips?: string;
190
+ independentlyEditable?: boolean;
191
+ related: string[];
192
+ store?: boolean;
193
+ relationStore?: boolean;
194
+ storeSerialize?: ModelFieldSerializeType;
195
+ domain?: string;
196
+ isUnique?: boolean;
197
+ required?: boolean | string;
198
+ requiredTips?: string;
199
+ domainSize?: string;
200
+ readonly?: boolean;
201
+ multi: boolean;
202
+ format: string;
203
+ defaultValue: string;
204
+ attributes?: {
205
+ requiredCondition?: string;
206
+ invisibleCondition?: string;
207
+ readonlyCondition?: string;
208
+ layoutGrid: number;
209
+ layoutGroup: string;
210
+ layoutTab: string;
211
+ layoutTabs: string;
212
+ };
213
+ modelFields: IModelField[];
214
+ }
215
+ export declare enum EnumOptionState {
216
+ ACTIVE = "ACTIVE",
217
+ INACTIVE = "INACTIVE"
218
+ }
219
+ export interface IModelFieldOption {
220
+ name: string;
221
+ value: string;
222
+ state: EnumOptionState;
223
+ displayName?: string;
224
+ color?: string;
225
+ backgroundColor?: string;
226
+ icon?: string;
227
+ label?: string;
228
+ invisible?: boolean;
229
+ isDefault?: boolean;
230
+ hint?: string;
231
+ thumbnail?: string;
232
+ }
233
+ export declare function isRelationTtype(ttype: ModelFieldType): boolean;
234
+ export declare function isToOneTtype(ttype: ModelFieldType): boolean;
235
+ export declare function isToManyTtype(ttype: ModelFieldType): boolean;
236
+ export declare function isRelatedTtype(ttype: ModelFieldType): boolean;
237
+ export interface IModule {
238
+ id: string;
239
+ name: string;
240
+ module: string;
241
+ displayName?: string;
242
+ logo: string;
243
+ homePage: IViewAction;
244
+ allMenus: IMenu[];
245
+ priority: number;
246
+ application: boolean;
247
+ like: boolean;
248
+ urlHomePage?: IURLAction;
249
+ }
250
+ export interface IMenu {
251
+ id: string;
252
+ name: string;
253
+ displayName: string;
254
+ parentName: string;
255
+ icon?: string;
256
+ parent?: IMenu;
257
+ priority: number;
258
+ moduleDefinition: {
259
+ id: string;
260
+ name: string;
261
+ displayName: string;
262
+ };
263
+ actionType?: ActionType;
264
+ viewAction?: IViewAction;
265
+ serverAction?: IServerAction;
266
+ urlAction?: IURLAction;
267
+ children?: Array<IMenu>;
268
+ mapping?: Record<string, unknown>;
269
+ context?: Record<string, unknown>;
270
+ }
271
+ /**
272
+ * 请求类型
273
+ */
274
+ export declare enum ApiProtocol {
275
+ GRAPHQL = "graphql",
276
+ RESTFUL = "restful"
277
+ }
278
+ /**
279
+ * 内容数据的类型
280
+ */
281
+ export declare enum DataType {
282
+ PRIMITIVE = "primitive",
283
+ OBJECT = "object",
284
+ LIST = "list"
285
+ }
286
+ /**
287
+ * 加载的函数类型
288
+ */
289
+ export declare enum LoadType {
290
+ CLIENT = "client",
291
+ SERVER = "server"
292
+ }
293
+ /**
294
+ * 校验类型
295
+ */
296
+ export declare enum ValidationScope {
297
+ CLIENT = "client",
298
+ SERVER = "server",
299
+ BOTH = "both"
300
+ }
301
+ /**
302
+ * 查询类型
303
+ * 不使用queryPage接口,直传当前选中行数据(对象object或者列表list,默认是domain)
304
+ * 默认值:DOMAIN
305
+ */
306
+ export declare enum QueryType {
307
+ DOMAIN = "domain",
308
+ OBJECT = "object",
309
+ LIST = "list"
310
+ }
311
+ interface IModelFuncArg {
312
+ name: string;
313
+ ttype: ModelFieldType;
314
+ }
315
+ export interface IModelFunc {
316
+ method: string;
317
+ name: string;
318
+ fun: string;
319
+ argumentList: IModelFuncArg[];
320
+ type: 'CREATE' | 'DELETE' | 'UPDATE' | 'QUERY'[];
321
+ }
322
+ export declare enum ActionType {
323
+ Server = "SERVER",
324
+ View = "VIEW",
325
+ URL = "URL",
326
+ Client = "CLIENT",
327
+ Model = "model",
328
+ Composition = "COMPOSITION",
329
+ Custom = "custom"
330
+ }
331
+ export declare enum ActionContextType {
332
+ Single = "SINGLE",
333
+ Batch = "BATCH",
334
+ SingleAndBatch = "SINGLE_AND_BATCH",
335
+ ContextFree = "CONTEXT_FREE"
336
+ }
337
+ export declare type ActionId = EntityId;
338
+ export interface IBaseAbstractAction {
339
+ title?: string;
340
+ displayName?: string;
341
+ label?: string;
342
+ model?: string;
343
+ /**
344
+ * @deprecated
345
+ */
346
+ rule?: string;
347
+ invisible?: string;
348
+ }
349
+ export interface IBaseAction extends IBaseAbstractAction {
350
+ id: ActionId;
351
+ name: string;
352
+ model: string;
353
+ modelDefinition?: IModel;
354
+ bindingType: string[];
355
+ bindingViewName?: string;
356
+ actionType: ActionType;
357
+ contextType: ActionContextType;
358
+ usageDesc?: string;
359
+ groups?: any[];
360
+ builtIn?: boolean;
361
+ skipCheck?: boolean;
362
+ config?: Record<string, unknown>;
363
+ confirm?: string;
364
+ priority?: number;
365
+ sessionPath?: string;
366
+ }
367
+ export interface ViewActionPage {
368
+ layoutTemplate: string;
369
+ name: string;
370
+ model: string;
371
+ id: EntityId;
372
+ active: boolean;
373
+ viewList: IView[];
374
+ }
375
+ export interface IViewAction extends IBaseAction {
376
+ actionType: ActionType.View;
377
+ target: ViewActionTarget;
378
+ resModel: string;
379
+ resModelDefinition?: IModel;
380
+ resViewName: string;
381
+ bindingViewName?: string;
382
+ queryType?: QueryType;
383
+ apiProtocol?: ApiProtocol;
384
+ viewMode?: string;
385
+ viewType: ViewType;
386
+ dataType?: DataType;
387
+ domain?: string;
388
+ filter?: string;
389
+ load?: string;
390
+ loadFunction?: IModelFunc;
391
+ context?: Record<string, unknown>;
392
+ moduleName: string;
393
+ page?: ViewActionPage;
394
+ resView?: IView;
395
+ module: string;
396
+ resModule?: string;
397
+ resModuleName?: string;
398
+ resModuleDefinition?: IModule;
399
+ moduleDefinition?: IModule;
400
+ maskDefinition?: {
401
+ name: string;
402
+ template: string;
403
+ };
404
+ theme?: string;
405
+ }
406
+ export interface ISharedViewAction extends IViewAction {
407
+ sharedCode: string;
408
+ authorizationCode: string;
409
+ sharedParameters: string;
410
+ browserTitle?: string;
411
+ language?: string;
412
+ languageIsoCode?: string;
413
+ }
414
+ export interface IServerAction extends IBaseAction {
415
+ actionType: ActionType.Server;
416
+ functionDefinition: IModelFunc;
417
+ function: IModelFunc;
418
+ module: string;
419
+ }
420
+ export declare enum ActionFunctionType {
421
+ JAVA = "JAVA",
422
+ JS = "JS",
423
+ GROOVY = "GROOVY"
424
+ }
425
+ export interface IURLAction extends IBaseAction {
426
+ url: string;
427
+ compute?: string;
428
+ target: ViewActionTarget;
429
+ confirm?: string;
430
+ module: string;
431
+ context: Record<string, unknown>;
432
+ }
433
+ export interface IModelAction extends IBaseAction {
434
+ actionType: ActionType.Model;
435
+ type: ModelActionType;
436
+ domain?: string;
437
+ }
438
+ export declare enum ModelActionType {
439
+ FindOne = "FindOne",
440
+ FindList = "FindList",
441
+ FindAll = "FindAll",
442
+ InsertOne = "InsertOne",
443
+ UpdateOne = "UpdateOne",
444
+ DeleteOne = "DeleteOne",
445
+ DeleteOneInline = "DeleteOneInline",
446
+ UpdateList = "UpdateList",
447
+ DeleteList = "DeleteList"
448
+ }
449
+ export interface IClientAction extends IBaseAbstractAction {
450
+ actionType: ActionType.Client;
451
+ name: ClientActionName | string;
452
+ bindingType?: string[];
453
+ id?: string;
454
+ contextType: ActionContextType;
455
+ confirm?: string;
456
+ priority?: number;
457
+ tag?: string;
458
+ fun?: string;
459
+ }
460
+ export declare enum IActionTag {
461
+ ContextAction = "contextFreeAction",
462
+ SingleAction = "singleAction",
463
+ FooterAction = "footer"
464
+ }
465
+ export declare enum ClientActionName {
466
+ ValidateForm = "validateForm",
467
+ UpdateContext = "updateContext",
468
+ ShowDialog = "showDialog",
469
+ SubmitDialog = "submitDialog",
470
+ CloseDialog = "closeDialog",
471
+ InsertEmptyItemToList = "insertEmptyItemToList",
472
+ InsertEmptyItemToBefore = "insertEmptyItemToBefore",
473
+ InsertEmptyItemToAfter = "insertEmptyItemToAfter",
474
+ DeleteListItem = "deleteListItem",
475
+ ReloadData = "reloadData",
476
+ CopyText = "copyText",
477
+ Confirm = "confirm",
478
+ StartCreate = "startCreate",
479
+ StartInlineEdit = "startInlineEdit",
480
+ SubmitInlineEdit = "submitInlineEdit",
481
+ CancelInlineEdit = "cancelInlineEdit",
482
+ HistoryBack = "historyBack",
483
+ O2MCreateForm = "O2MCreateForm",
484
+ O2MEditForm = "O2MEditForm",
485
+ O2MDelete = "O2MDelete",
486
+ O2MCreateFormConfirm = "O2MCreateFormConfirm",
487
+ O2MEditFormConfirm = "O2MEditFormConfirm",
488
+ M2MCreateTable = "M2MCreateTable",
489
+ M2MDelete = "M2MDelete",
490
+ M2MCreateTableConfirm = "M2MCreateTableConfirm",
491
+ O2MCloseForm = "O2MCloseForm"
492
+ }
493
+ export declare enum ModelDefaultActionName {
494
+ create = "create",
495
+ update = "update",
496
+ delete = "delete",
497
+ redirectDetailPage = "redirectDetailPage",
498
+ redirectCreatePage = "redirectCreatePage",
499
+ redirectUpdatePage = "redirectUpdatePage",
500
+ $$internal_AddOne = "$$internal_AddOne",
501
+ $$internal_EditOne = "$$internal_EditOne",
502
+ $$internal_CopyOne = "$$internal_CopyOne",
503
+ $$internal_DeleteOne = "$$internal_DeleteOne",
504
+ $$internal_ListInsertOneAndBackToList = "$$internal_ListInsertOneAndBackToList",
505
+ $$internal_ListUpdateOneAndBackToList = "$$internal_ListUpdateOneAndBackToList",
506
+ $$internal_GotoListImportDialog = "$$internal_GotoListImportDialog",
507
+ $$internal_GotoListExportDialog = "$$internal_GotoListExportDialog",
508
+ $$internal_GotoListTableRouter = "$$internal_GotoListTableRouter",
509
+ $$internal_DialogCancel = "$$internal_DialogCancel",
510
+ $$internal_GotoO2MCreateDialog = "$$internal_GotoO2MCreateDialog",
511
+ $$internal_GotoO2MEditDialog = "$$internal_GotoO2MEditDialog",
512
+ $$internal_O2MUpdateOneAndSubmitDialog = "$$internal_O2MUpdateOneAndSubmitDialog",
513
+ $$internal_O2MDeleteOne = "$$internal_O2MDeleteOne",
514
+ $$internal_DialogSubmit = "$$internal_DialogSubmit",
515
+ $$internal_O2MInsertOneAndSubmitDialog = "$$internal_O2MInsertOneAndSubmitDialog",
516
+ $$internal_ListUpdateAndCloseDialogReloadOpenerAction = "$$internal_ListUpdateAndCloseDialogReloadOpenerAction",
517
+ $$internal_ListInsertOneAndCloseDialog = "$$internal_ListInsertOneAndCloseDialog",
518
+ $$internal_GotoM2MListDialog = "$$internal_GotoM2MListDialog",
519
+ $$internal_ReloadData = "$$internal_ReloadData",
520
+ $$internal_ValidateForm = "$$internal_ValidateForm",
521
+ $$internal_Download = "$$internal_Download",
522
+ /**
523
+ * 批量更新
524
+ */
525
+ $$internal_BatchUpdate = "$$internal_BatchUpdate",
526
+ /**
527
+ * 下载导入模板
528
+ */
529
+ $$internal_DownloadImportWorkbook = "$$internal_DownloadImportWorkbook",
530
+ /**
531
+ * 导入
532
+ */
533
+ $$internal_ImportWorkbook = "$$internal_ImportWorkbook",
534
+ /**
535
+ * 导出
536
+ */
537
+ $$internal_ExportWorkbook = "$$internal_ExportWorkbook",
538
+ /**
539
+ * 打印
540
+ */
541
+ $$internal_PrintPdfDocument = "$$internal_PrintPdfDocument"
542
+ }
543
+ export declare const ModelDefaultActionNames: string[];
544
+ export declare enum ActionCompositionType {
545
+ Sequential = "sequential",
546
+ Parallel = "parallel",
547
+ ForkJoin = "fork-join",
548
+ Race = "race"
549
+ }
550
+ export interface ICompositionAction extends IBaseAbstractAction {
551
+ actionType: ActionType.Composition;
552
+ name: ClientActionName | string;
553
+ type?: ActionCompositionType;
554
+ bindingType?: ViewType[];
555
+ contextType?: ActionContextType;
556
+ confirm?: string;
557
+ id?: string;
558
+ priority?: number;
559
+ tag?: string;
560
+ }
561
+ export declare type ActionRuleId = EntityId;
562
+ export interface ICustomAction extends IBaseAction {
563
+ actionType: ActionType.Custom;
564
+ code: string;
565
+ }
566
+ export declare type CustomActionExecutor = (action: ICustomAction, vm: any, context: any) => any | Promise<any>;
567
+ export declare type IAction = IViewAction | IServerAction | IURLAction | IClientAction | ICompositionAction;
568
+ export declare enum ActionValidationScope {
569
+ Client = "client",
570
+ Server = "server",
571
+ Both = "both"
572
+ }
573
+ export {};
@@ -0,0 +1,23 @@
1
+ declare enum ElementType {
2
+ MASK = "MASK",
3
+ BLOCK = "BLOCK",
4
+ HEADER = "HEADER",
5
+ CONTAINER = "CONTAINER",
6
+ SIDEBAR = "SIDEBAR",
7
+ CONTENT = "CONTENT",
8
+ VIEW = "VIEW",
9
+ FIELD = "FIELD",
10
+ GROUP = "GROUP",
11
+ GRID = "GRID",
12
+ ACTION = "ACTION",
13
+ API = "API",
14
+ CONTEXT = "CONTEXT",
15
+ REQUEST = "REQUEST",
16
+ RESPONSE = "RESPONSE",
17
+ CLEAR = "CLEAR",
18
+ FILTER = "FILTER",
19
+ WIDGET = "WIDGET",
20
+ PROP = "PROP",
21
+ VALIDATION = "VALIDATION"
22
+ }
23
+ export { ElementType };
@@ -0,0 +1,22 @@
1
+ export declare enum UserBehaviorEventEnum {
2
+ SIGN_UP_PHONE = "SIGN_UP_PHONE",
3
+ SIGN_UP_EMAIL = "SIGN_UP_EMAIL",
4
+ PHONE_MODIFY_PASSWORD_BY_PHONE_SUBMIT = "MODIFY_PASSWORD_BY_PHONE",
5
+ PHONE_MODIFY_PASSWORD_BY_PHONE_SEND_CODE = "MODIFY_PASSWORD_BYPHONE_SEND_CODE",
6
+ EMAIL_MODIFY_PASSWORD_BY_EMAIL_SUBMIT = "MODIFY_PASSWORD_BY_EMAIL",
7
+ EMAIL_MODIFY_PASSWORD_BY_EMAIL_SEND_CODE = "MODIFY_PASSWORD_SEND_RESET_EMAIL",
8
+ PHONE_MODIFY_PHONE_SUBMIT = "MODIFY_PHONE",
9
+ PHONE_MODIFY_PHONE_OLD_PHONE_CODE = "MODIFY_PHONE_OLD_PHONE_CODE",
10
+ EMAIL_MODIFY_PHONE_SEND_EMAIL_CODE = "MODIFY_PHONE_SEND_EMAIL",
11
+ PHONE_MODIFY_PHONE_NEW_PHONE_CODE = "MODIFY_PHONE_NEW_PHONE_CODE",
12
+ EMAIL_MODIFY_EMAIL_SUBMIT = "MODIFY_EMAIL",
13
+ EMAIL_MODIFY_EMAIL_SEND_OLD_EMAIL = "MODIFY_EMAIL_SEND_OLD_EMAIL",
14
+ PHONE_MODIFY_EMAIL_SEND_PHONE_CODE = "MODIFY_EMAIL_SEND_PHONE_CODE",
15
+ EMAIL_MODIFY_EMAIL_SEND_NEW_EMAIL = "MODIFY_EMAIL_SEND_NEW_EMAIL",
16
+ PHONE_ADD_CORP_SEND_PHONE_CODE = "ADD_CORP_SEND_PHONE_CODE",
17
+ EMAIL_ADD_CORP_SEND_EMAIL_CODE = "ADD_CORP_SEND_EMAIL_CODE",
18
+ PHONE_LOGIN_BY_PHONE_CODE = "LOGIN_BY_PHONE_CODE",
19
+ PHONE_SEND_LOGIN_BY_PHONE_CODE = "SEND_LOGIN_BY_PHONE_CODE",
20
+ EMAIL_LOGIN_BY_EMAIL_CODE = "LOGIN_BY_EMAIL_CODE",
21
+ EMAIL_SEND_LOGIN_BY_EMAIL_CODE = "SEND_LOGIN_BY_EMAIL_CODE"
22
+ }
@@ -0,0 +1,3 @@
1
+ export declare type EntityId = string;
2
+ export declare type BIGINT = number | string;
3
+ export declare type Entity = Record<string, unknown>;