aldehyde 0.2.117 → 0.2.120

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.
@@ -1,240 +1,287 @@
1
- import {MenuProps} from "antd/lib/menu";
2
- import {FormInstance} from "antd";
3
- import React, {RefObject} from "react";
4
- import {ButtonShape,ButtonType} from "antd/lib/button";
5
- export type ViewOrEdit = 'view' | 'edit' ;
1
+ import { MenuProps } from "antd/lib/menu";
2
+ import { FormInstance } from "antd";
3
+ import React, { RefObject } from "react";
4
+ import { ButtonShape, ButtonType } from "antd/lib/button";
5
+ export type ViewOrEdit = "view" | "edit";
6
6
 
7
- export type AddOrUpdate = 'add' | 'update'| 'copy' ;
7
+ export type AddOrUpdate = "add" | "update" | "copy";
8
8
 
9
- export type ConfigName = 'statViewConfig' | 'ltmplConfig';
9
+ export type ConfigName = "statViewConfig" | "ltmplConfig";
10
10
 
11
- export type BeforeExeConfirm = 'default' | 'danger' | 'none' ;
11
+ export type BeforeExeConfirm = "default" | "danger" | "none";
12
12
 
13
- export type StatColType = 'fact' | 'dimension';
13
+ export type StatColType = "fact" | "dimension";
14
14
 
15
- export type ActTableViewModel = 'table' | 'verticalList' | 'horizontalList';
15
+ export type ActTableViewModel = "table" | "verticalList" | "horizontalList";
16
16
 
17
- export type ControlHolderType= 'table' | 'descriptions'
18
- export type PageType='modal'|'drawer'|'card';
17
+ export type ControlHolderType = "table" | "descriptions";
18
+ export type PageType = "modal" | "drawer" | "card";
19
19
  export interface TmplBase {
20
- id: string;
21
- title: string;
22
- tip?:string;
20
+ id: string;
21
+ title: string;
22
+ tip?: string;
23
23
  }
24
24
 
25
25
  export interface OrderableTmplBase extends TmplBase {
26
- order?: string|number;
26
+ order?: string | number;
27
27
  }
28
28
 
29
29
  export interface FieldBase extends OrderableTmplBase {
30
- colNum?: number;
31
- mstrucId?: string;
32
- defaultValue?: string;
33
- value?:string;
34
- tip?: string;
35
- controlType?: string;
36
- extControlType?: string;
37
- required?: boolean;
38
- comparator?:Comparator;
39
- dependencies?:string[] ;
40
- shouldUpdate?:((prevValue:object,curValue:object)=> boolean) | boolean;
30
+ colNum?: number;
31
+ mstrucId?: string;
32
+ defaultValue?: string;
33
+ value?: string;
34
+ tip?: string;
35
+ controlType?: string;
36
+ extControlType?: string;
37
+ required?: boolean;
38
+ comparator?: Comparator;
39
+ dependencies?: string[];
40
+ shouldUpdate?: ((prevValue: object, curValue: object) => boolean) | boolean;
41
41
  }
42
42
 
43
43
  export interface DtmplFormProps extends DtmplBaseProps {
44
- parentId:string,
45
- dtmplConfig: DtmplConfig,
46
- dtmplData?:DtmplData,
47
- formRef: RefObject<FormInstance>,
48
- showConfirm?: boolean,
49
- showHeader?:boolean,
50
- onFinish: (code:string) => void,
51
- onValuesChange?:()=>void,
52
- };
44
+ parentId: string;
45
+ dtmplConfig: DtmplConfig;
46
+ dtmplData?: DtmplData;
47
+ formRef: RefObject<FormInstance>;
48
+ showConfirm?: boolean;
49
+ showHeader?: boolean;
50
+ onFinish: (code: string) => void;
51
+ onValuesChange?: () => void;
52
+ }
53
53
 
54
54
  export interface CQueryConfig extends OrderableTmplBase {
55
- path?:string,
56
- mainCodeColId?:string,
57
- type?:string,
55
+ path?: string;
56
+ mainCodeColId?: string;
57
+ type?: string;
58
58
  }
59
- export type ActTableMode = 'simple' | 'common' | 'complete'
59
+ export type ActTableMode = "simple" | "common" | "complete";
60
60
 
61
61
  export interface ActionConfig extends OrderableTmplBase {
62
- multible: boolean,
63
- icon:string,
64
- beforeExeConfirm:string,
65
- preposes:FieldConfig[],
66
- writes:FieldConfig[],
67
- tip:string,
68
- buttonType?: ButtonType,
69
- buttonShape?: ButtonShape,
70
- danger?: boolean,
62
+ multible: boolean;
63
+ icon: string;
64
+ beforeExeConfirm: string;
65
+ preposes: FieldConfig[];
66
+ writes: FieldConfig[];
67
+ tip: string;
68
+ buttonType?: ButtonType;
69
+ buttonShape?: ButtonShape;
70
+ danger?: boolean;
71
71
  }
72
72
 
73
73
  export interface JumpConfig extends OrderableTmplBase {
74
- multible: boolean,
75
- path:string,
76
- tokenName:string,
77
- searchParams:FieldConfig[],
78
- routeParams:FieldConfig[],
79
- }
80
- export interface ClassifiedAddConfig extends OrderableTmplBase {
81
-
74
+ multible: boolean;
75
+ path: string;
76
+ tokenName: string;
77
+ searchParams: FieldConfig[];
78
+ routeParams: FieldConfig[];
82
79
  }
83
-
80
+ export interface ClassifiedAddConfig extends OrderableTmplBase {}
84
81
 
85
82
  export interface Level2Menu extends MenuBase {
86
- items:(BlockMenu|Level2Menu)[],
87
- customPath?: string;
88
- displayTotal?: boolean;
89
- count?:number;
90
- disabled?:boolean;
91
- hiddenOnDisabled?:boolean;
92
- defaultCriteriaValue?:object,
93
- pageType:'列表'|'详情'|'编辑'|'添加'|'编辑或添加'|''
83
+ items: (BlockMenu | Level2Menu)[];
84
+ customPath?: string;
85
+ displayTotal?: boolean;
86
+ count?: number;
87
+ disabled?: boolean;
88
+ hiddenOnDisabled?: boolean;
89
+ defaultCriteriaValue?: object;
90
+ pageType: "列表" | "详情" | "编辑" | "添加" | "编辑或添加" | "";
94
91
  }
95
92
 
96
93
  export interface Level1Menu extends MenuBase {
97
- l2Menus: Level2Menu[];
94
+ l2Menus: Level2Menu[];
98
95
  }
99
96
 
100
97
  export interface MenuBase extends OrderableTmplBase {
101
- tip: string;
98
+ tip: string;
102
99
  }
103
100
 
104
101
  export interface BlockMenu extends MenuBase {
105
- l1Menus: Level1Menu[],
106
- items:(BlockMenu|Level2Menu)[]
102
+ l1Menus: Level1Menu[];
103
+ items: (BlockMenu | Level2Menu)[];
107
104
  }
108
105
 
109
- export interface CriteriaConfig extends FieldConfig {
110
-
111
- }
106
+ export interface CriteriaConfig extends FieldConfig {}
112
107
 
113
108
  export interface ColumnConfig extends FieldConfig {
114
- statColType?: StatColType;
115
- }
116
-
117
- export type CodeSource = 'new'|'listop'|'listop-new'|undefined;
118
-
119
- export type ButtonPosition = 'fixedBottomRight'|'bottomLeft'|'bottomCenter'|'bottomRight'|undefined;
120
-
121
- export type FieldGroupType = 'relation' | 'fieldGroup'|'embed';
122
-
123
- export type ButtonName = 'rowAdd' | 'rowEdit' | 'batchDelete'|'singleDelete'| 'selectAdd' | 'dtmplAdd' | 'dtmplEdit' | 'copy'|
124
- 'exportDtmplExcel' | 'importDtmplExcel' | 'fusionMode' | 'history' | 'dtmplSave' | 'query' |
125
- 'detail' | 'exportLtmplExcel' | 'importLtmplExcel' | 'showChart'|'dtmplCustomEdit'|'dtmplCustomAdd'|'customDetail'
126
- | 'statRefresh' | 'ltmplRefresh' | 'dtmplRefresh' | 'analysis' | 'ltmplSelectAdd' | 'reStat' | 'drilling';
127
-
128
- export type ChartType = 'line' | 'pie' | 'column';
129
- export type GroupDisplayConfig = 'nonDataNonDisplayed' | 'displayed' | 'folded' |'unfold' | 'listview' | 'tableview';
109
+ statColType?: StatColType;
110
+ }
111
+
112
+ export type CodeSource = "new" | "listop" | "listop-new" | undefined;
113
+
114
+ export type ButtonPosition =
115
+ | "fixedBottomRight"
116
+ | "bottomLeft"
117
+ | "bottomCenter"
118
+ | "bottomRight"
119
+ | undefined;
120
+
121
+ export type FieldGroupType = "relation" | "fieldGroup" | "embed";
122
+
123
+ export type ButtonName =
124
+ | "rowAdd"
125
+ | "rowEdit"
126
+ | "batchDelete"
127
+ | "singleDelete"
128
+ | "selectAdd"
129
+ | "dtmplAdd"
130
+ | "dtmplEdit"
131
+ | "copy"
132
+ | "exportDtmplExcel"
133
+ | "importDtmplExcel"
134
+ | "fusionMode"
135
+ | "history"
136
+ | "dtmplSave"
137
+ | "query"
138
+ | "detail"
139
+ | "exportLtmplExcel"
140
+ | "importLtmplExcel"
141
+ | "showChart"
142
+ | "dtmplCustomEdit"
143
+ | "dtmplCustomAdd"
144
+ | "customDetail"
145
+ | "statRefresh"
146
+ | "ltmplRefresh"
147
+ | "dtmplRefresh"
148
+ | "analysis"
149
+ | "ltmplSelectAdd"
150
+ | "reStat"
151
+ | "drilling";
152
+
153
+ export type ChartType = "line" | "pie" | "column";
154
+ export type GroupDisplayConfig =
155
+ | "nonDataNonDisplayed"
156
+ | "displayed"
157
+ | "folded"
158
+ | "unfold"
159
+ | "listview"
160
+ | "tableview";
130
161
  export interface FieldGroupConfig extends OrderableTmplBase {
131
- serverKey?:string,
132
- type: FieldGroupType;
133
- buttons: ButtonName[];
134
- min: number;
135
- max: number;
136
- showRowNum?: boolean;
137
- relationNames?: string[];
138
- showRelationName?: boolean;
139
- fields: FieldConfig[];
140
- rowActions:ActionConfig[];
141
- displayConfig:GroupDisplayConfig;
142
- mainCode?:string,
143
- disabled?:boolean,
144
- readOnly?:boolean,
145
- embedType?:'列表'|'详情'|'编辑'|'编辑或添加',
146
- pageSourceFieldMstrucId:string,
147
- codeSourceFieldMstrucId:string,
148
- pointSourceId:string,
149
- classifiedAddConfigs?:ClassifiedAddConfig[],
150
- }
151
-
152
- export type SaveJumpType = 'list' | 'add' | 'edit';
162
+ serverKey?: string;
163
+ type: FieldGroupType;
164
+ buttons: ButtonName[];
165
+ min: number;
166
+ max: number;
167
+ showRowNum?: boolean;
168
+ relationNames?: string[];
169
+ showRelationName?: boolean;
170
+ fields: FieldConfig[];
171
+ rowActions: ActionConfig[];
172
+ displayConfig: GroupDisplayConfig;
173
+ mainCode?: string;
174
+ disabled?: boolean;
175
+ readOnly?: boolean;
176
+ embedType?: "列表" | "详情" | "编辑" | "编辑或添加";
177
+ pageSourceFieldMstrucId: string;
178
+ codeSourceFieldMstrucId: string;
179
+ pointSourceId: string;
180
+ classifiedAddConfigs?: ClassifiedAddConfig[];
181
+ }
182
+
183
+ export type SaveJumpType = "list" | "add" | "edit";
153
184
 
154
185
  export interface DtmplConfig extends TmplBase {
155
- autoSaveInterval?: number;
156
- //exportExcel fusionMode history dtmplSave refresh
157
- buttons: ButtonName[];
158
- // list add edit
159
- saveJumpTo: SaveJumpType[];
160
- cQuerys:CQueryConfig[];
161
- editAction:ActionConfig;
162
- actions: ActionConfig[];
163
- premises: FieldConfig[];
164
- groups: FieldGroupConfig[];
165
- buttonPosition:ButtonPosition;
166
- buildInFuncFields:FieldConfig[];
167
- onValuesChange:(changedValues,allValues:DtmplData,formInstance:FormInstance)=>void,
168
- entity:DtmplData,
169
- dynamic:boolean,
170
- hiddenFields?:FieldConfig[],
171
- }
172
-
173
- export type Comparator ='contain'| 'equal' | 'equals' |'unequal' |'unequals' | 'includeOne'|'include_anyone'|'noless'|'nogreater' | 'exclude' | 'noLess' | 'noGreater';
174
-
175
- export type FieldAction = 'add' | 'delete' | 'edit' | 'detail'|'table';
186
+ autoSaveInterval?: number;
187
+ //exportExcel fusionMode history dtmplSave refresh
188
+ buttons: ButtonName[];
189
+ // list add edit
190
+ saveJumpTo: SaveJumpType[];
191
+ cQuerys: CQueryConfig[];
192
+ editAction: ActionConfig;
193
+ actions: ActionConfig[];
194
+ premises: FieldConfig[];
195
+ groups: FieldGroupConfig[];
196
+ buttonPosition: ButtonPosition;
197
+ buildInFuncFields: FieldConfig[];
198
+ onValuesChange: (
199
+ changedValues,
200
+ allValues: DtmplData,
201
+ formInstance: FormInstance
202
+ ) => void;
203
+ entity: DtmplData;
204
+ dynamic: boolean;
205
+ hiddenFields?: FieldConfig[];
206
+ }
207
+
208
+ export type Comparator =
209
+ | "contain"
210
+ | "equal"
211
+ | "equals"
212
+ | "unequal"
213
+ | "unequals"
214
+ | "includeOne"
215
+ | "include_anyone"
216
+ | "noless"
217
+ | "nogreater"
218
+ | "exclude"
219
+ | "noLess"
220
+ | "noGreater";
221
+
222
+ export type FieldAction = "add" | "delete" | "edit" | "detail" | "table";
176
223
 
177
224
  export interface FieldConfig extends FieldBase {
178
- disabled?: boolean;
179
- max?: string;
180
- min?: string;
181
- ellipsisLength?:number;
182
- buttons?: ButtonName[];
183
- rules?: FileRule[];
184
- mainCode?:((form:FormInstance)=> Function) |string,
185
- updateSelf?:(form:FormInstance)=>FieldConfig,
186
- suppleOptions?:any[],
187
- actions?:FieldAction[],
188
- requiredRuleCriterias?:FieldConfig[],
189
- usableRuleCriterias?:FieldConfig[],
190
- hidden?:boolean,
191
- serverKey?:string,
192
- sourceId?:string,
193
- baseCriteria?:object,
225
+ disabled?: boolean;
226
+ max?: string;
227
+ min?: string;
228
+ ellipsisLength?: number;
229
+ buttons?: ButtonName[];
230
+ rules?: FileRule[];
231
+ mainCode?: ((form: FormInstance) => Function) | string;
232
+ updateSelf?: (form: FormInstance) => FieldConfig;
233
+ suppleOptions?: any[];
234
+ actions?: FieldAction[];
235
+ requiredRuleCriterias?: FieldConfig[];
236
+ usableRuleCriterias?: FieldConfig[];
237
+ hidden?: boolean;
238
+ serverKey?: string;
239
+ sourceId?: string;
240
+ baseCriteria?: object;
241
+ showDim?: boolean;
194
242
  }
195
243
 
196
244
  export interface FileRule {
197
- pattern: string;
198
- message: string;
245
+ pattern: string;
246
+ message: string;
199
247
  }
200
248
 
201
249
  export interface SelectConfig extends TmplBase {
202
- defaultPageSize: number;
203
- buttons: ButtonName[];
204
- columns: ColumnConfig[];
205
- criterias: CriteriaConfig[];
206
- defaultCriteriaValue?:object;
207
- primaryColumn?:ColumnConfig;
208
- primaryCriteria:CriteriaConfig;
209
- orderColumn:ColumnConfig;
250
+ defaultPageSize: number;
251
+ buttons: ButtonName[];
252
+ columns: ColumnConfig[];
253
+ criterias: CriteriaConfig[];
254
+ defaultCriteriaValue?: object;
255
+ primaryColumn?: ColumnConfig;
256
+ primaryCriteria: CriteriaConfig;
257
+ orderColumn: ColumnConfig;
258
+ totalColummConfigs?: ColumnConfig[];
259
+ showDim?: boolean;
210
260
  }
211
261
 
212
262
  export interface TtmplConfigRes {
213
- sourceId: string;
214
- ltmplConfig?: LtmplConfig;
215
- parentLtmplConfig?: LtmplConfig;
216
- }
217
-
218
- export interface RActionConfig extends OrderableTmplBase {
219
-
263
+ sourceId: string;
264
+ ltmplConfig?: LtmplConfig;
265
+ parentLtmplConfig?: LtmplConfig;
220
266
  }
221
267
 
268
+ export interface RActionConfig extends OrderableTmplBase {}
222
269
 
223
270
  export interface LtmplConfigRes {
224
- // configName: ConfigName;
225
- sourceId: string;
226
- // statViewConfig?:StatViewConfig;
227
- ltmplConfig?: LtmplConfig;
271
+ // configName: ConfigName;
272
+ sourceId: string;
273
+ // statViewConfig?:StatViewConfig;
274
+ ltmplConfig?: LtmplConfig;
228
275
  }
229
276
 
230
277
  export interface TtmplConfig extends TmplBase {
231
- type:"2M"|'1M'|'2MR',
232
- leafTitle:string,
233
- branchTitle:string,
234
- rootGtmplId:string,
235
- branchRatmplId:string,
236
- leafRatmplId:string,
237
- showLine:boolean,
278
+ type: "2M" | "1M" | "2MR";
279
+ leafTitle: string;
280
+ branchTitle: string;
281
+ rootGtmplId: string;
282
+ branchRatmplId: string;
283
+ leafRatmplId: string;
284
+ showLine: boolean;
238
285
  }
239
286
 
240
287
  // export interface StatViewConfig extends SelectConfig {
@@ -244,178 +291,176 @@ export interface TtmplConfig extends TmplBase {
244
291
  // }
245
292
 
246
293
  export interface LtmplConfig extends SelectConfig {
247
- actions?: ActionConfig[];
248
- rowActions: ActionConfig[];
249
- ractions?: RActionConfig[];
250
- jumps?: JumpConfig[];
251
- rowJumps?: JumpConfig[];
252
- cQuerys?:CQueryConfig[];
253
- rowCQuerys?:CQueryConfig[];
254
- chartType?: ChartType[];
255
- editAction:ActionConfig;
256
- deleteAction:ActionConfig;
257
- reStatParams?: CriteriaConfig[];
258
- customEditPagePath?:string;
259
- customViewPagePath?:string;
260
- classifiedAddConfigs?:ClassifiedAddConfig[],
261
- drillingParams?: CriteriaConfig[];
262
- footer?:string;
263
- header?:string;
294
+ actions?: ActionConfig[];
295
+ rowActions: ActionConfig[];
296
+ ractions?: RActionConfig[];
297
+ jumps?: JumpConfig[];
298
+ rowJumps?: JumpConfig[];
299
+ cQuerys?: CQueryConfig[];
300
+ rowCQuerys?: CQueryConfig[];
301
+ chartType?: ChartType[];
302
+ editAction: ActionConfig;
303
+ deleteAction: ActionConfig;
304
+ reStatParams?: CriteriaConfig[];
305
+ customEditPagePath?: string;
306
+ customViewPagePath?: string;
307
+ classifiedAddConfigs?: ClassifiedAddConfig[];
308
+ drillingParams?: CriteriaConfig[];
309
+ footer?: string;
310
+ header?: string;
311
+ totalColummConfigs?: { id: string; aggFunc: "sum" | "avg"; title: string }[];
264
312
  }
265
313
 
266
314
  export interface EnumItem {
267
- title: string;
268
- value: string;
269
- id:string;
270
- color: string;
271
- order:string;
272
- subOptions?:EnumItem[]
315
+ title: string;
316
+ value: string;
317
+ id: string;
318
+ color: string;
319
+ order: string;
320
+ subOptions?: EnumItem[];
273
321
  }
274
322
 
275
- export type EditStatus ='new'|'changed'|'persisted'
323
+ export type EditStatus = "new" | "changed" | "persisted";
276
324
 
277
325
  export interface DtmplData {
278
- code: string;
279
- editStatus?:EditStatus;
280
- title?: string;
281
- relationLabel?: string;
282
- fieldMap: object;
283
- arrayMap?: object;//Map<number,DtmplData[]>
326
+ code: string;
327
+ editStatus?: EditStatus;
328
+ title?: string;
329
+ relationLabel?: string;
330
+ fieldMap: object;
331
+ arrayMap?: object; //Map<number,DtmplData[]>
284
332
  }
285
333
 
286
334
  export interface PageInfo {
287
- pageNo: number;
288
- pageSize: number;
289
- virtualEndPageNo?: number;
335
+ pageNo: number;
336
+ pageSize: number;
337
+ virtualEndPageNo?: number;
290
338
  }
291
339
 
292
340
  export interface LtmplData {
293
- entities: DtmplData[];
294
- pageInfo: PageInfo;
295
- queryKey: string;
296
- isEndList: boolean;
341
+ entities: DtmplData[];
342
+ pageInfo: PageInfo;
343
+ queryKey: string;
344
+ isEndList: boolean;
297
345
  }
298
346
 
299
347
  export interface UserInfo {
300
- id: string;
301
- name: string;
302
- nickName?: string;
303
- cleanCachable?:boolean;
304
- gtmplSourceId?:string;
305
- changePasswordable?:boolean;
306
- changePersonalInfoable?:boolean;
307
- viewPersonalInfoable?:boolean;
348
+ id: string;
349
+ name: string;
350
+ nickName?: string;
351
+ cleanCachable?: boolean;
352
+ gtmplSourceId?: string;
353
+ changePasswordable?: boolean;
354
+ changePersonalInfoable?: boolean;
355
+ viewPersonalInfoable?: boolean;
308
356
  }
309
357
 
310
358
  export interface QueryKey {
311
- key: string;
312
- criteriaValueMap: object;
313
- hiddenColIds: number[];
314
- sortColIds: number[];
359
+ key: string;
360
+ criteriaValueMap: object;
361
+ hiddenColIds: number[];
362
+ sortColIds: number[];
315
363
  }
316
364
 
317
365
  export interface QueryData {
318
- entities: DtmplData[];
319
- touchEnd: boolean;
320
- key: string;
321
- pageInfo: PageInfo;
366
+ entities: DtmplData[];
367
+ touchEnd: boolean;
368
+ key: string;
369
+ pageInfo: PageInfo;
322
370
  }
323
371
 
324
372
  export interface EControlProps extends ControlBaseProps {
325
- onChange?: (value: any) => void;
326
- min?:string;
327
- max?:string;
373
+ onChange?: (value: any) => void;
374
+ min?: string;
375
+ max?: string;
328
376
  }
329
377
 
330
378
  export interface VEControlProps extends EControlProps {
331
- viewOrEdit?: ViewOrEdit;
379
+ viewOrEdit?: ViewOrEdit;
332
380
  }
333
381
 
334
- export interface VControlProps extends ControlBaseProps {
335
- }
382
+ export interface VControlProps extends ControlBaseProps {}
336
383
 
337
384
  export interface ControlBaseProps {
338
- id?:any;
339
- value?: any;
340
- fieldConfig?: FieldConfig;
341
- serverKey?:string,
342
- itemType?: string;
343
- style?: object;
344
- disabled?: boolean;
345
- mainCode?:string;
385
+ id?: any;
386
+ value?: any;
387
+ fieldConfig?: FieldConfig;
388
+ serverKey?: string;
389
+ itemType?: string;
390
+ style?: object;
391
+ disabled?: boolean;
392
+ mainCode?: string;
346
393
  }
347
394
 
348
395
  export interface SelectedRow {
349
- code: string;
350
- title: string | string[];
396
+ code: string;
397
+ title: string | string[];
351
398
  }
352
399
 
353
400
  export interface RouterCompProps {
354
- basePath?:string;
355
- match?: any;
356
- history?: any;
357
- location: any;
358
- navigate?:any;
359
- params:any,
360
- searchParams:any,
401
+ basePath?: string;
402
+ match?: any;
403
+ history?: any;
404
+ location: any;
405
+ navigate?: any;
406
+ params: any;
407
+ searchParams: any;
361
408
  }
362
409
 
363
410
  export interface TmplBaseProps {
364
- serverKey?:string,
365
- sourceId: string,
366
- mainCode?: string,
367
- };
411
+ serverKey?: string;
412
+ sourceId: string;
413
+ mainCode?: string;
414
+ }
368
415
 
369
416
  export interface DtmplBaseProps extends TmplBaseProps {
370
- codeSource?:CodeSource,
371
- showConfirm?: boolean,
372
- code?: string,
373
- defaultDtmplData?:DtmplData,
374
- showRightNav?: boolean,
375
- rightBarPositionRight?: number,
376
- serialNumber?: number,
377
- goDtmpl?: (code?:string) => void,
378
- maxColsOnRow?:1|2,
379
- addTmplId?:string,
380
- };
417
+ codeSource?: CodeSource;
418
+ showConfirm?: boolean;
419
+ code?: string;
420
+ defaultDtmplData?: DtmplData;
421
+ showRightNav?: boolean;
422
+ rightBarPositionRight?: number;
423
+ serialNumber?: number;
424
+ goDtmpl?: (code?: string) => void;
425
+ maxColsOnRow?: 1 | 2;
426
+ addTmplId?: string;
427
+ }
381
428
 
382
429
  export interface ChartConfig {
383
- xAxisTitle: string,
384
- yAxisTitle: string,
385
- xField: string,
386
- yField: string
430
+ xAxisTitle: string;
431
+ yAxisTitle: string;
432
+ xField: string;
433
+ yField: string;
387
434
  }
388
435
 
389
436
  export interface SubChartProps {
390
- data: [],
391
- config: ChartConfig,
392
- groupName?: string,
437
+ data: [];
438
+ config: ChartConfig;
439
+ groupName?: string;
393
440
  }
394
441
 
395
- export type FileValueValid = true | 'new' | 'delete';
442
+ export type FileValueValid = true | "new" | "delete";
396
443
 
397
444
  export interface FileLoadInfo {
398
- path: string,
399
- fileName: string,
400
- size?: string,
401
- type?: string,
445
+ path: string;
446
+ fileName: string;
447
+ size?: string;
448
+ type?: string;
402
449
  }
403
450
 
404
451
  export interface FileValue {
405
- valid: FileValueValid,
406
- fileKey?: string,
407
- fileName?: string,
408
- suffix?:string,
409
- body?: [],
410
- icon?: FileLoadInfo,
411
- thn?: FileLoadInfo,
412
- base?: FileLoadInfo,
413
- }
414
- export interface Menu2layersProps extends MenuProps{
415
- blockMenu: BlockMenu;
416
- collapsed?: boolean;
417
- currentL2MenuId?: string;
418
- basePath?:string;
452
+ valid: FileValueValid;
453
+ fileKey?: string;
454
+ fileName?: string;
455
+ suffix?: string;
456
+ body?: [];
457
+ icon?: FileLoadInfo;
458
+ thn?: FileLoadInfo;
459
+ base?: FileLoadInfo;
460
+ }
461
+ export interface Menu2layersProps extends MenuProps {
462
+ blockMenu: BlockMenu;
463
+ collapsed?: boolean;
464
+ currentL2MenuId?: string;
465
+ basePath?: string;
419
466
  }
420
-
421
-