@byteluck-fe/model-driven-core 6.2.0-1-beta.24 → 6.2.0-1-beta-tree-data.2

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 (49) hide show
  1. package/README.md +69 -69
  2. package/dist/esm/common/BaseControl/designer.js +11 -11
  3. package/dist/esm/common/BaseControl/property.js +15 -15
  4. package/dist/esm/common/ColumnControl/property.js +28 -28
  5. package/dist/esm/common/FormControl/property.js +56 -56
  6. package/dist/esm/framework/index.js +400 -380
  7. package/dist/index.umd.js +1 -1
  8. package/dist/types/api-doc-index.d.ts +4 -4
  9. package/dist/types/common/BaseControl/designer.d.ts +71 -71
  10. package/dist/types/common/BaseControl/index.d.ts +13 -13
  11. package/dist/types/common/BaseControl/property.d.ts +44 -44
  12. package/dist/types/common/BaseControl/runtime.d.ts +23 -23
  13. package/dist/types/common/BaseControl/types.d.ts +35 -35
  14. package/dist/types/common/ColumnControl/designer.d.ts +20 -20
  15. package/dist/types/common/ColumnControl/index.d.ts +12 -12
  16. package/dist/types/common/ColumnControl/property.d.ts +74 -74
  17. package/dist/types/common/ColumnControl/runtime.d.ts +11 -11
  18. package/dist/types/common/ControlArray.d.ts +9 -9
  19. package/dist/types/common/FormControl/designer.d.ts +13 -13
  20. package/dist/types/common/FormControl/index.d.ts +12 -12
  21. package/dist/types/common/FormControl/property.d.ts +118 -118
  22. package/dist/types/common/FormControl/runtime.d.ts +11 -11
  23. package/dist/types/common/LayoutControl/designer.d.ts +21 -21
  24. package/dist/types/common/LayoutControl/index.d.ts +12 -12
  25. package/dist/types/common/LayoutControl/property.d.ts +6 -6
  26. package/dist/types/common/LayoutControl/runtime.d.ts +11 -11
  27. package/dist/types/common/ListControl/designer.d.ts +16 -16
  28. package/dist/types/common/ListControl/index.d.ts +12 -12
  29. package/dist/types/common/ListControl/property.d.ts +18 -18
  30. package/dist/types/common/ListControl/runtime.d.ts +12 -12
  31. package/dist/types/common/SearchViewControl/designer.d.ts +11 -11
  32. package/dist/types/common/SearchViewControl/index.d.ts +12 -12
  33. package/dist/types/common/SearchViewControl/property.d.ts +8 -8
  34. package/dist/types/common/SearchViewControl/runtime.d.ts +11 -11
  35. package/dist/types/common/Validator.d.ts +15 -15
  36. package/dist/types/common/WrapControl/designer.d.ts +11 -11
  37. package/dist/types/common/WrapControl/index.d.ts +12 -12
  38. package/dist/types/common/WrapControl/property.d.ts +6 -6
  39. package/dist/types/common/WrapControl/runtime.d.ts +11 -11
  40. package/dist/types/common/controlHooksEmitter.d.ts +4 -4
  41. package/dist/types/common/index.d.ts +12 -12
  42. package/dist/types/common/initLinkOperationRules.d.ts +6 -6
  43. package/dist/types/common/initOptionAndDataSourceRules.d.ts +10 -10
  44. package/dist/types/framework/RegisterControls.d.ts +37 -37
  45. package/dist/types/framework/index.d.ts +958 -948
  46. package/dist/types/framework/isDataBind.d.ts +2 -2
  47. package/dist/types/index.d.ts +4 -4
  48. package/dist/types/type.d.ts +91 -91
  49. package/package.json +2 -2
@@ -1,948 +1,958 @@
1
- import { FieldTypes } from '@byteluck-fe/model-driven-shared';
2
- export * from './RegisterControls';
3
- /**
4
- * 数据绑定配置
5
- * @public
6
- */
7
- export declare class DataBind {
8
- /**
9
- * 数据模型编码
10
- * @defaultValue ''
11
- * @public
12
- */
13
- dataCode: string;
14
- /**
15
- * 字段编码
16
- * @defaultValue ''
17
- * @public
18
- */
19
- fieldCode: string;
20
- /**
21
- * 字段类型
22
- * @defaultValue ''
23
- * @public
24
- */
25
- fieldType: string;
26
- /**
27
- * 表别名
28
- * @defaultValue undefined
29
- * @public
30
- */
31
- aliasCode?: string;
32
- constructor(props?: Partial<DataBind>);
33
- }
34
- export declare class AutoWidth {
35
- minWidth: number;
36
- maxWidth?: number;
37
- flex: number;
38
- constructor(props?: Partial<AutoWidth>);
39
- }
40
- export declare class RowHeight {
41
- rowHeightType: 'auto' | 'fixed';
42
- minRows: number;
43
- maxRows?: number;
44
- fiexdRow: number;
45
- constructor(props?: Partial<RowHeight>);
46
- }
47
- export declare class MetaRowHeight {
48
- pc: RowHeight;
49
- mobile: RowHeight;
50
- constructor(props?: Partial<MetaRowHeight>);
51
- }
52
- export declare class MetaWidth extends AutoWidth {
53
- width: number;
54
- widthType: 'px' | 'auto';
55
- constructor(props?: Partial<MetaWidth>);
56
- }
57
- export declare class MetaAutoWidth {
58
- pc: MetaWidth;
59
- mobile: MetaWidth;
60
- constructor(props?: Partial<MetaAutoWidth>);
61
- }
62
- export declare class DataStorageDoc {
63
- type: 'firstThree' | 'custom';
64
- customOptions: string[];
65
- constructor(props?: Partial<DataStorageDoc>);
66
- }
67
- export declare class FormBind {
68
- dataCode: string;
69
- formKey: string;
70
- appId: string;
71
- constructor(props?: Partial<FormBind>);
72
- }
73
- export declare class FormSelectBind extends FormBind {
74
- primaryControlId: string;
75
- constructor(props?: Partial<FormSelectBind>);
76
- }
77
- /**
78
- * 列表绑定字段项
79
- * @public
80
- */
81
- declare class ListBindHeaderItem {
82
- /**
83
- * 字段
84
- * @defaultValue ''
85
- */
86
- fieldCode: string;
87
- dataCode: string;
88
- constructor(props?: Partial<ListBindHeaderItem>);
89
- }
90
- /**
91
- * 列表绑定配置
92
- */
93
- export declare class ListBind {
94
- /**
95
- * 应用ID
96
- * @public
97
- */
98
- appId: string;
99
- /**
100
- * 表单ID
101
- * @public
102
- */
103
- formKey: string;
104
- /**
105
- * 显示字段
106
- * @public
107
- */
108
- headers: ListBindHeaderItem[];
109
- constructor(props?: Partial<ListBind>);
110
- }
111
- export declare class FieldBindItem {
112
- fieldName: string;
113
- fieldCode: string;
114
- fieldType: string;
115
- constructor(props?: Partial<FieldBindItem>);
116
- }
117
- export declare class SubListItem extends FormBind {
118
- title: string;
119
- svcCode: string;
120
- isOpenFilter: boolean;
121
- filters: Array<FieldFilterCondition | FieldFilterConditions>;
122
- constructor(props?: Partial<SubListItem>);
123
- }
124
- export declare class SubListPageConfig {
125
- type: string;
126
- formBind: FormBind;
127
- displayFields: FieldBindItem[];
128
- sublists: SubListItem[];
129
- constructor(props?: Partial<SubListPageConfig>);
130
- }
131
- export declare class LeftVariable {
132
- type?: FieldTypes;
133
- value?: string;
134
- dataCode?: string;
135
- constructor(props?: Partial<LeftVariable>);
136
- }
137
- export declare class RightVariable {
138
- type: 'form' | 'system' | 'custom' | 'gv';
139
- value: string[];
140
- displayBos: Record<string, unknown>[];
141
- constructor(props?: Partial<RightVariable>);
142
- }
143
- /**
144
- * 连接符条件
145
- * @public
146
- */
147
- export declare class FieldFilterConditions {
148
- /**
149
- * 编号
150
- * @defaultValue ''
151
- */
152
- id: string;
153
- /**
154
- * 规则编号
155
- * @defaultValue Timestamp
156
- */
157
- ruleId: number;
158
- /**
159
- * 类型:连接符条件
160
- * @defaultValue 'conditions'
161
- */
162
- type: string;
163
- /**
164
- * 深度
165
- * @defaultValue 0
166
- */
167
- level: number;
168
- /**
169
- * 连接符值
170
- * @defaultValue 'and'
171
- */
172
- value: 'and' | 'or';
173
- /**
174
- * 包含子项
175
- * @defaultValue []
176
- */
177
- children: Array<FieldFilterCondition | FieldFilterConditions>;
178
- constructor(props?: Partial<FieldFilterConditions>);
179
- }
180
- /**
181
- * 字段过滤条件
182
- * @public
183
- */
184
- export declare class FieldFilterCondition {
185
- /**
186
- * 唯一编号
187
- * @defaultValue ''
188
- */
189
- id: string;
190
- /**
191
- * 规则编号
192
- * @defaultValue Timestamp
193
- */
194
- ruleId: number;
195
- /**
196
- * 类型
197
- * @defaultValue 'condition'
198
- */
199
- type: string;
200
- /**
201
- * 符号
202
- */
203
- symbol: string;
204
- checked: boolean;
205
- describe: string;
206
- /**
207
- * 左值
208
- */
209
- leftVariableBo: LeftVariable;
210
- /**
211
- * 右值
212
- */
213
- rightVariableBo: RightVariable;
214
- constructor(props?: Partial<FieldFilterCondition>);
215
- }
216
- export declare class JoinRelation {
217
- aliasCode: string;
218
- datasourceBind: DataSourceBind;
219
- relationFields: {
220
- main_field_code: string;
221
- join_field_code: string;
222
- }[];
223
- constructor(props?: Partial<JoinRelation>);
224
- }
225
- /**
226
- * 数据填充项
227
- * @public
228
- */
229
- export declare class MultistageFillingItem {
230
- /**
231
- * 控件ID
232
- * @defaultValue ''
233
- * @public
234
- */
235
- controlId: string;
236
- /**
237
- * 字段
238
- * @defaultValue ''
239
- * @public
240
- */
241
- fieldCode: string;
242
- /**
243
- * 字段类型。事件在填充时,需要根据数据类型进行判断处理动作。
244
- * @defaultValue ''
245
- * @public
246
- */
247
- fieldType: string;
248
- /**
249
- * 属性名称。如果是ObjectDataBind的控件,可以指定填充到哪个数据项。
250
- * @defaultValue ''
251
- * @public
252
- * */
253
- propName: string;
254
- constructor(props: Partial<MultistageFillingItem>);
255
- }
256
- /**
257
- * 显示项
258
- * @public
259
- */
260
- export declare class DisplayBoListItem {
261
- /**
262
- * 显示项类型:字段 | 符号
263
- * @defaultValue 'FIELD'
264
- * @public
265
- */
266
- type: 'FIELD' | 'MOSAICS';
267
- /**
268
- * 值
269
- */
270
- value: string;
271
- /**
272
- * 字段数据类型
273
- */
274
- fieldType?: string;
275
- constructor(props?: Partial<DisplayBoListItem>);
276
- }
277
- export declare class OptionDisplayConfigItem {
278
- /**
279
- * 标题
280
- */
281
- title: string;
282
- /**
283
- * 字段数据类型
284
- */
285
- displayBoList: DisplayBoListItem[];
286
- constructor(props?: Partial<OptionDisplayConfigItem>);
287
- }
288
- /**
289
- * 数据源排序项
290
- * @public
291
- */
292
- export declare class DataSourceOrderItem {
293
- /**
294
- * 列名
295
- * @defaultValue ''
296
- */
297
- columnName: string;
298
- /**
299
- * 倒序
300
- * @defaultValue false
301
- */
302
- desc: boolean;
303
- constructor(props: Partial<DataSourceOrderItem>);
304
- }
305
- export declare class DataSourceDataSetValue {
306
- code: string;
307
- value: string;
308
- field_type?: FieldTypes;
309
- constructor(props: Partial<DataSourceDataSetValue>);
310
- }
311
- export declare class DataSourceParamItem {
312
- /**
313
- * 字段ID
314
- */
315
- id: string;
316
- limit: number;
317
- orders: DataSourceOrderItem[];
318
- formKey: string;
319
- dataSet: DataSourceDataSetValue[];
320
- constructor(props: Partial<DataSourceParamItem>);
321
- }
322
- /**
323
- * 数据源绑定配置
324
- * @public
325
- */
326
- export declare class DataSourceBind {
327
- /**
328
- * 绑定数据源id
329
- * @defaultValue ''
330
- * @public
331
- */
332
- dataCode: string;
333
- /**
334
- * 存储值
335
- * @defaultValue ''
336
- * @public
337
- */
338
- valueFieldCode: string;
339
- /**
340
- * 显示值
341
- * @defaultValue []
342
- * @public
343
- */
344
- displayBoList: DisplayBoListItem[];
345
- /**
346
- * 查询关键字参数映射
347
- * @defaultValue ''
348
- * @public
349
- */
350
- keywordMapping?: string;
351
- /**
352
- * 绑定服务
353
- * @defaultValue ''
354
- * @public
355
- */
356
- svcCode: string;
357
- /**
358
- * 应用Id
359
- * @defaultValue ''
360
- * @public
361
- */
362
- appId?: string;
363
- /**
364
- * 过滤条件
365
- * @defaultValue []
366
- * @public
367
- */
368
- filters?: Array<FieldFilterCondition | FieldFilterConditions>;
369
- /**
370
- * 过滤条件-查看过滤
371
- * @defaultValue []
372
- * @public
373
- */
374
- viewFilters?: Array<FieldFilterCondition | FieldFilterConditions>;
375
- /**
376
- * 是否开启查看过滤
377
- * @defaultValue 0:未开启;1:开启
378
- * @public
379
- */
380
- isOpenViewFilters?: number;
381
- /**
382
- * 排序
383
- * @defaultValue []
384
- * @public
385
- */
386
- orders?: DataSourceOrderItem[];
387
- /**
388
- * 显示排序
389
- * @defaultValue true
390
- * @public
391
- */
392
- showOrder?: boolean;
393
- /**
394
- * 部门或者人员指定部门配置
395
- * @defaultValue {}
396
- * @public
397
- */
398
- assignDepartment?: RightVariable;
399
- /**
400
- * 部门或者人员指定部门配置是否开启
401
- * @defaultValue {}
402
- * @public
403
- */
404
- openAssignDepartment?: boolean;
405
- constructor(props?: Partial<DataSourceBind>);
406
- }
407
- export declare class SelectedContentConfig {
408
- /**
409
- * 展示已选内容
410
- * @defaultValue ''
411
- * @public
412
- */
413
- dataCode: string;
414
- /**
415
- * 展示已选明细
416
- * @defaultValue []
417
- * @public
418
- */
419
- displayBoList: any[];
420
- constructor(props?: Partial<SelectedContentConfig>);
421
- }
422
- export interface CustomAttribute {
423
- key: string;
424
- name: string;
425
- required?: boolean;
426
- }
427
- export declare class LinkOperationOption {
428
- code: string;
429
- color: string;
430
- command: undefined | string;
431
- confirmMessage: undefined;
432
- defaultState: string;
433
- formKey: undefined | string;
434
- formType?: string;
435
- icon: string;
436
- needConfirm: boolean;
437
- openType: string;
438
- priorityProcess: boolean;
439
- constructor(props?: Partial<LinkOperationOption>);
440
- }
441
- export declare class CustomAttributeItem {
442
- name: string;
443
- key: string;
444
- value: DisplayBoListItem[];
445
- constructor(props?: Partial<CustomAttributeItem>);
446
- }
447
- export declare class SuperDataSourceBind extends DataSourceBind {
448
- attributes: CustomAttributeItem[];
449
- constructor(props?: Omit<Partial<SuperDataSourceBind>, 'attributes'> & {
450
- attributes?: Partial<CustomAttributeItem>[];
451
- });
452
- }
453
- export declare class OrganizationDataSourceBind extends DataSourceBind {
454
- attributes: CustomAttributeItem[];
455
- formCode: string;
456
- constructor(props?: Omit<Partial<OrganizationDataSourceBind>, 'attributes'> & {
457
- attributes?: Partial<CustomAttributeItem>[];
458
- });
459
- }
460
- export declare class TreeDataSourceBind extends SuperDataSourceBind {
461
- rootNode: RightVariable;
462
- filterCode?: String;
463
- constructor(props?: Omit<Partial<TreeDataSourceBind>, 'attributes'> & {
464
- attributes?: Partial<CustomAttributeItem>[];
465
- });
466
- }
467
- declare class FillBind {
468
- dataCode: string;
469
- appId: string;
470
- fillList: MultistageFillingItem[];
471
- constructor(props?: Partial<FillBind>);
472
- }
473
- /**
474
- * FillPayloadBind 填充配置
475
- * 填充的配置和需要携带的数据
476
- * @public
477
- * */
478
- export declare class FillPayloadBind extends FillBind {
479
- /**
480
- * 数据源过滤条件
481
- * @defaultValue []
482
- * @public
483
- **/
484
- filters: Array<FieldFilterCondition | FieldFilterConditions>;
485
- /**
486
- * 数据源过滤条件-查看
487
- * @defaultValue []
488
- * @public
489
- **/
490
- viewFilters: Array<FieldFilterCondition | FieldFilterConditions>;
491
- /**
492
- * 数据源排序条件
493
- * @defaultValue []
494
- * @public
495
- **/
496
- orders: DataSourceOrderItem[];
497
- constructor(props?: Partial<FillPayloadBind>);
498
- }
499
- /**
500
- * FillBackBind 回填需要的配置和参数
501
- * @public
502
- */
503
- export declare class FillBackBind extends FillBind {
504
- /**
505
- * 回填模式。current 当前表(根据按钮所在位置来区分,而不是通过主表和子表来区分)| subtable 子表
506
- * @defaultValue 'current'
507
- * @public
508
- * */
509
- mode: 'current' | 'subtable';
510
- /**
511
- * 多选
512
- * @defaultValue false
513
- * @public
514
- */
515
- multiple: boolean;
516
- constructor(props?: Partial<FillBackBind>);
517
- }
518
- /**
519
- * 目前仅subtable,未来的dataview/datagrid/datalist使用该接口
520
- * dataview/datalist都支持嵌套使用
521
- */
522
- export interface DataSourceBindLayout {
523
- getChildrenFormControl(): unknown[];
524
- getChildrenDataSourceBindLayout(): unknown[];
525
- }
526
- export declare class Language {
527
- zh: string;
528
- en: string;
529
- ja: string;
530
- constructor(props?: Partial<Language>);
531
- }
532
- /**
533
- * 正则校验
534
- * @public
535
- */
536
- export declare class RegularRules {
537
- /**
538
- * 内置模版
539
- * @defaultValue ''
540
- */
541
- stencilName: string;
542
- /**
543
- * 正则表达式
544
- * @defaultValue ''
545
- */
546
- expression: string;
547
- /**
548
- * 校验错误提示信息
549
- * @defaultValue ''
550
- */
551
- errMessage: string;
552
- constructor(props?: Partial<RegularRules>);
553
- }
554
- /**
555
- * 选项设置-自定义选项
556
- * @public
557
- */
558
- export declare class OptionSetting {
559
- readonly id: string;
560
- /**
561
- * 显示值
562
- * @defaultValue ''
563
- * @public
564
- */
565
- label: string;
566
- /**
567
- * 选项ID
568
- * @defaultValue this.label
569
- * @public
570
- */
571
- value: string;
572
- constructor(props?: Partial<OptionSetting>);
573
- }
574
- export declare class ImageOptionSetting extends OptionSetting {
575
- image: string;
576
- type: 'attachment' | 'src';
577
- constructor(props?: Partial<ImageOptionSetting>);
578
- }
579
- export declare class AiOptionSetting extends OptionSetting {
580
- cueWord: string;
581
- checked: boolean;
582
- constructor(props?: Partial<AiOptionSetting>);
583
- }
584
- export declare function initOptions(options?: Partial<OptionSetting>[]): OptionSetting[];
585
- export declare function initImageOptions(options?: Partial<ImageOptionSetting>[]): ImageOptionSetting[];
586
- export declare function initAiOptions(options?: Partial<AiOptionSetting>[]): AiOptionSetting[];
587
- /**
588
- * 对象类型数据绑定配置
589
- * @public
590
- */
591
- export declare class ObjectDataBind {
592
- /**
593
- * 绑定配置
594
- */
595
- [key: string]: DataBind;
596
- }
597
- /**
598
- * 金额控件数据绑定配置
599
- * @public
600
- */
601
- export declare class AmountDataBind extends ObjectDataBind {
602
- /**
603
- * 金额字段绑定配置
604
- */
605
- amount: DataBind;
606
- /**
607
- * 币种字段绑定配置
608
- */
609
- currency: DataBind;
610
- constructor(props?: Partial<AmountDataBind>);
611
- }
612
- /**
613
- * 金额控件值
614
- * @public
615
- */
616
- export declare class AmountValue {
617
- /**
618
- * 金额值
619
- * @defaultValue ''
620
- */
621
- amount: number | '';
622
- /**
623
- * 货币值
624
- * @defaultValue 'CNY'
625
- */
626
- currency: AMOUNT_TYPE;
627
- constructor(props?: Partial<AmountValue>);
628
- }
629
- /**
630
- * 日期区间数据绑定项
631
- * @public
632
- */
633
- export declare class RangeDataBind extends ObjectDataBind {
634
- /**
635
- * 开始日期字段绑定项
636
- */
637
- min: DataBind;
638
- /**
639
- * 结束日期字段绑定项
640
- */
641
- max: DataBind;
642
- constructor(props?: Partial<RangeDataBind>);
643
- }
644
- /**
645
- * 日期区间值
646
- * @public
647
- */
648
- export declare class RangeDateValue {
649
- /**
650
- * 开始日期值
651
- * @defaultValue ''
652
- */
653
- min: string;
654
- /**
655
- * 结束日期值
656
- * @defaultValue ''
657
- */
658
- max: string;
659
- constructor(props?: Partial<RangeDateValue>);
660
- }
661
- /**
662
- * 地址值
663
- * @public
664
- */
665
- export declare class AddressValue {
666
- /**
667
- * 市编码
668
- * @defaultValue ''
669
- */
670
- city?: string;
671
- /**
672
- * 市显示文字
673
- * @defaultValue ''
674
- */
675
- cityDisplay?: string;
676
- /**
677
- * 区编码
678
- * @defaultValue ''
679
- */
680
- district?: string;
681
- /**
682
- * 区显示文字
683
- * @defaultValue ''
684
- */
685
- districtDisplay?: string;
686
- /**
687
- * 省编码
688
- * @defaultValue ''
689
- */
690
- province?: string;
691
- /**
692
- * 省显示文字
693
- * @defaultValue ''
694
- */
695
- provinceDisplay?: string;
696
- constructor(props?: Partial<AddressValue>);
697
- }
698
- /**
699
- * 计算公式数据绑定项
700
- * @public
701
- */
702
- export declare class CalcDataBind extends ObjectDataBind {
703
- /**
704
- * 计算结果字段绑定项
705
- */
706
- result: DataBind;
707
- /**
708
- * 单位字段绑定项
709
- */
710
- unit: DataBind;
711
- constructor(props?: Partial<CalcDataBind>);
712
- }
713
- /**
714
- * 计算公式值
715
- * @public
716
- */
717
- export declare class CalcValue {
718
- /**
719
- * 计算结果值
720
- * @defaultValue 0
721
- */
722
- result: number | 0;
723
- /**
724
- * 单位
725
- * @defaultValue ''
726
- */
727
- unit: string;
728
- constructor(props?: Partial<CalcValue>);
729
- }
730
- export declare enum AMOUNT_TYPE {
731
- CNY = "CNY",
732
- USD = "USD",
733
- JPY = "JPY",
734
- EUR = "EUR",
735
- INR = "INR",
736
- IDR = "IDR",
737
- BRL = "BRL",
738
- AED = "AED",
739
- AUD = "AUD",
740
- CAD = "CAD",
741
- EGP = "EGP",
742
- GBP = "GBP",
743
- ZAR = "ZAR",
744
- KRW = "KRW",
745
- MAD = "MAD",
746
- MXN = "MXN",
747
- MYR = "MYR",
748
- PHP = "PHP",
749
- PLN = "PLN",
750
- RUB = "RUB",
751
- SGD = "SGD",
752
- THB = "THB",
753
- TRY = "TRY",
754
- TWD = "TWD",
755
- VND = "VND",
756
- HKD = "HKD",
757
- IEP = "IEP"
758
- }
759
- /**
760
- * 选项设置
761
- * REQUIRED: 必填
762
- * isHide: 隐藏
763
- * IS_SHOW_UNIT: 单位
764
- * CAN_SEARCH: 支持搜索
765
- * MULTIPLE: 允许选中多个日期
766
- * SUBMIT_SELECT_CURRENCY: 提交时选择币种
767
- */
768
- export declare enum COMMON_SETTING_TYPE {
769
- DEFAULT_DISPLAY = "defaultDisplay",
770
- REQUIRED = "required",
771
- IS_HIDE = "isHide",
772
- IS_SHOW_UNIT = "isShowUnit",
773
- IMD_SEARCH = "immediatelySearch",
774
- MULTIPLE = "multiple",
775
- SUBMIT_SELECT_CURRENCY = "submitSelectCurrency",
776
- CAPTION = "caption",
777
- IS_HIDE_CAPTION = "isHideCaption",
778
- DEFAULT_SHOW_OPTIONS = "defaultShowOptions",
779
- CAN_SEARCH = "canSearch",
780
- CAN_CHECK = "canCheck",
781
- CAN_EDIT = "canEdit",
782
- CAN_DELETE = "canDelete",
783
- SHOW_UPPER_CASE = "showUpperCase",
784
- MICROMETER = "micrometer",
785
- PRECISION = "precision",
786
- PERCENTAGE = "percentage",
787
- OPTIONAL_LEVEL = "optionalLevel",
788
- CONTAINS_SUB_NODE = "containsSubNode",
789
- DEFAULT_COLLAPSE = "defaultCollapse",
790
- CAN_VIEW_FORM = "canViewForm",
791
- VIEW_FORM_MODEL_TYPE = "viewFormModelType",
792
- SERVER_PAGINATION = "serverPagination",
793
- IS_SHOW_CAPTION_TIP = "isShowCaptionTip",
794
- IS_SHOW_WATERMARK = "isShowWatermark",
795
- ENCRYPTED = "encrypted",
796
- IS_INLINE_EDIT = "isInlineEdit",
797
- REVISIONS_MODE = "revisionsMode",
798
- ALLOW_COPY_OPTIONS = "allowCopyOptions",
799
- IS_PASTE = "isPaste",
800
- SORTABLE = "sortable",
801
- IS_SHOW_SIMPLE_SEARCH = "isShowSimpleSearch",
802
- IS_SHOW_TOOL_BAE = "isShowToolbar",
803
- MAIN_DEPT_FLAG = "mainDeptFlag",
804
- IS_INTERNATIONAL = "isInternational",
805
- CAPTION_SIZE = "captionSize",
806
- CAPTION_COLOR = "captionColor",
807
- IS_CAPTION_ITALIC = "isCaptionItalic"
808
- }
809
- export declare enum PAGE_STATUS {
810
- UNKNOWN = 0,
811
- READONLY = 1,
812
- EDITABLE = 2,
813
- PRINT = 5
814
- }
815
- /**
816
- * 操作按钮
817
- * @public
818
- */
819
- export declare class OperationItem {
820
- /**
821
- * 是否显示
822
- * @defaultValue true
823
- * @public
824
- */
825
- isShow: boolean;
826
- /**
827
- * 优先访问流程表单
828
- * @defaultValue false
829
- * @public
830
- */
831
- priorityProcess: boolean;
832
- /**
833
- * 表单ID
834
- * @defaultValue ''
835
- * @public
836
- */
837
- formKey: string;
838
- /**
839
- * 显示文字
840
- * @defaultValue ''
841
- * @public
842
- */
843
- content: string;
844
- /**
845
- * 打开方式
846
- * @defaultValue 'modal'
847
- * @public
848
- */
849
- openType: 'modal' | 'window' | 'dialog' | 'tab';
850
- readonly type: string;
851
- constructor(props?: Partial<OperationItem>);
852
- }
853
- export declare class ViewOperationItem {
854
- id: string;
855
- title: string;
856
- filters: Array<FieldFilterCondition | FieldFilterConditions>;
857
- viewFilters: Array<FieldFilterCondition | FieldFilterConditions>;
858
- headers: ListBindHeaderItem[];
859
- constructor(props: Partial<ViewOperationItem>);
860
- }
861
- /**
862
- * 自定义权限项,用于Vue容器上,注册自定义的权限
863
- */
864
- export declare class CustomPermissionItem {
865
- /**
866
- * 人工输入的权限key
867
- */
868
- key: string;
869
- /**
870
- * 权限名称
871
- */
872
- caption: string;
873
- constructor(props: Partial<CustomPermissionItem>);
874
- }
875
- export declare class BaseStyle {
876
- width: number | '';
877
- height: number | '';
878
- widthConfig: 'px' | '%' | 'fill' | 'hug';
879
- heightConfig: 'px' | '%' | 'fill' | 'hug';
880
- constructor(props?: Partial<BaseStyle>);
881
- }
882
- export declare class OptObject {
883
- /**
884
- * 操作项编码
885
- * @defaultValue ''
886
- * @public
887
- */
888
- optCode: string;
889
- /**
890
- * 操作项类型
891
- * @defaultValue ''
892
- * @public
893
- */
894
- optType: string;
895
- constructor(props?: Partial<OptObject>);
896
- }
897
- export declare class RowStyleRule {
898
- /**
899
- * 规则编号
900
- * @defaultValue guid
901
- * @public
902
- */
903
- id: string;
904
- /**
905
- * 规则名称
906
- * @defaultValue ''
907
- * @public
908
- */
909
- name: string;
910
- settings: RowStyleSettings[];
911
- /**
912
- * 过滤条件
913
- * @defaultValue []
914
- * @public
915
- */
916
- filters?: Array<FieldFilterCondition | FieldFilterConditions>;
917
- script?: string;
918
- constructor(props?: Partial<RowStyleRule>);
919
- }
920
- export declare class RowStyleSettings {
921
- /**
922
- * 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
923
- * @defaultValue 'theme'
924
- * @public
925
- */
926
- color: string;
927
- /**
928
- * 生效列字段
929
- */
930
- fieldCodes: string[];
931
- /**
932
- * 样式类型,background单元格背景色,fontColor单元格字体色
933
- */
934
- type: 'background' | 'fontColor';
935
- /**
936
- * 作用范围,row整行,col整列
937
- */
938
- scope: 'row' | 'col';
939
- constructor(props: Partial<RowStyleSettings>);
940
- }
941
- export declare class RowStyle {
942
- type: 'none' | 'interval' | 'rules';
943
- interval: {
944
- color?: string;
945
- };
946
- rules: RowStyleRule[];
947
- constructor(props?: Partial<RowStyle>);
948
- }
1
+ import { FieldTypes } from '@byteluck-fe/model-driven-shared';
2
+ export * from './RegisterControls';
3
+ /**
4
+ * 数据绑定配置
5
+ * @public
6
+ */
7
+ export declare class DataBind {
8
+ /**
9
+ * 数据模型编码
10
+ * @defaultValue ''
11
+ * @public
12
+ */
13
+ dataCode: string;
14
+ /**
15
+ * 字段编码
16
+ * @defaultValue ''
17
+ * @public
18
+ */
19
+ fieldCode: string;
20
+ /**
21
+ * 字段类型
22
+ * @defaultValue ''
23
+ * @public
24
+ */
25
+ fieldType: string;
26
+ /**
27
+ * 表别名
28
+ * @defaultValue undefined
29
+ * @public
30
+ */
31
+ aliasCode?: string;
32
+ constructor(props?: Partial<DataBind>);
33
+ }
34
+ export declare class AutoWidth {
35
+ minWidth: number;
36
+ maxWidth?: number;
37
+ flex: number;
38
+ constructor(props?: Partial<AutoWidth>);
39
+ }
40
+ export declare class RowHeight {
41
+ rowHeightType: 'auto' | 'fixed';
42
+ minRows: number;
43
+ maxRows?: number;
44
+ fiexdRow: number;
45
+ constructor(props?: Partial<RowHeight>);
46
+ }
47
+ export declare class MetaRowHeight {
48
+ pc: RowHeight;
49
+ mobile: RowHeight;
50
+ constructor(props?: Partial<MetaRowHeight>);
51
+ }
52
+ export declare class MetaWidth extends AutoWidth {
53
+ width: number;
54
+ widthType: 'px' | 'auto';
55
+ constructor(props?: Partial<MetaWidth>);
56
+ }
57
+ export declare class MetaAutoWidth {
58
+ pc: MetaWidth;
59
+ mobile: MetaWidth;
60
+ constructor(props?: Partial<MetaAutoWidth>);
61
+ }
62
+ export declare class DataStorageDoc {
63
+ type: 'firstThree' | 'custom';
64
+ customOptions: string[];
65
+ constructor(props?: Partial<DataStorageDoc>);
66
+ }
67
+ export declare class FormBind {
68
+ dataCode: string;
69
+ formKey: string;
70
+ appId: string;
71
+ constructor(props?: Partial<FormBind>);
72
+ }
73
+ export declare class FormSelectBind extends FormBind {
74
+ primaryControlId: string;
75
+ constructor(props?: Partial<FormSelectBind>);
76
+ }
77
+ /**
78
+ * 列表绑定字段项
79
+ * @public
80
+ */
81
+ declare class ListBindHeaderItem {
82
+ /**
83
+ * 字段
84
+ * @defaultValue ''
85
+ */
86
+ fieldCode: string;
87
+ dataCode: string;
88
+ constructor(props?: Partial<ListBindHeaderItem>);
89
+ }
90
+ /**
91
+ * 列表绑定配置
92
+ */
93
+ export declare class ListBind {
94
+ /**
95
+ * 应用ID
96
+ * @public
97
+ */
98
+ appId: string;
99
+ /**
100
+ * 表单ID
101
+ * @public
102
+ */
103
+ formKey: string;
104
+ /**
105
+ * 显示字段
106
+ * @public
107
+ */
108
+ headers: ListBindHeaderItem[];
109
+ constructor(props?: Partial<ListBind>);
110
+ }
111
+ export declare class FieldBindItem {
112
+ fieldName: string;
113
+ fieldCode: string;
114
+ fieldType: string;
115
+ constructor(props?: Partial<FieldBindItem>);
116
+ }
117
+ export declare class SubListItem extends FormBind {
118
+ title: string;
119
+ svcCode: string;
120
+ isOpenFilter: boolean;
121
+ filters: Array<FieldFilterCondition | FieldFilterConditions>;
122
+ constructor(props?: Partial<SubListItem>);
123
+ }
124
+ export declare class SubListPageConfig {
125
+ type: string;
126
+ formBind: FormBind;
127
+ displayFields: FieldBindItem[];
128
+ sublists: SubListItem[];
129
+ constructor(props?: Partial<SubListPageConfig>);
130
+ }
131
+ export declare class LeftVariable {
132
+ type?: FieldTypes;
133
+ value?: string;
134
+ dataCode?: string;
135
+ constructor(props?: Partial<LeftVariable>);
136
+ }
137
+ export declare class RightVariable {
138
+ type: 'form' | 'system' | 'custom' | 'gv';
139
+ value: string[];
140
+ displayBos: Record<string, unknown>[];
141
+ constructor(props?: Partial<RightVariable>);
142
+ }
143
+ /**
144
+ * 连接符条件
145
+ * @public
146
+ */
147
+ export declare class FieldFilterConditions {
148
+ /**
149
+ * 编号
150
+ * @defaultValue ''
151
+ */
152
+ id: string;
153
+ /**
154
+ * 规则编号
155
+ * @defaultValue Timestamp
156
+ */
157
+ ruleId: number;
158
+ /**
159
+ * 类型:连接符条件
160
+ * @defaultValue 'conditions'
161
+ */
162
+ type: string;
163
+ /**
164
+ * 深度
165
+ * @defaultValue 0
166
+ */
167
+ level: number;
168
+ /**
169
+ * 连接符值
170
+ * @defaultValue 'and'
171
+ */
172
+ value: 'and' | 'or';
173
+ /**
174
+ * 包含子项
175
+ * @defaultValue []
176
+ */
177
+ children: Array<FieldFilterCondition | FieldFilterConditions>;
178
+ constructor(props?: Partial<FieldFilterConditions>);
179
+ }
180
+ /**
181
+ * 字段过滤条件
182
+ * @public
183
+ */
184
+ export declare class FieldFilterCondition {
185
+ /**
186
+ * 唯一编号
187
+ * @defaultValue ''
188
+ */
189
+ id: string;
190
+ /**
191
+ * 规则编号
192
+ * @defaultValue Timestamp
193
+ */
194
+ ruleId: number;
195
+ /**
196
+ * 类型
197
+ * @defaultValue 'condition'
198
+ */
199
+ type: string;
200
+ /**
201
+ * 符号
202
+ */
203
+ symbol: string;
204
+ checked: boolean;
205
+ describe: string;
206
+ /**
207
+ * 左值
208
+ */
209
+ leftVariableBo: LeftVariable;
210
+ /**
211
+ * 右值
212
+ */
213
+ rightVariableBo: RightVariable;
214
+ constructor(props?: Partial<FieldFilterCondition>);
215
+ }
216
+ export declare class JoinRelation {
217
+ aliasCode: string;
218
+ datasourceBind: DataSourceBind;
219
+ relationFields: {
220
+ main_field_code: string;
221
+ join_field_code: string;
222
+ }[];
223
+ constructor(props?: Partial<JoinRelation>);
224
+ }
225
+ /**
226
+ * 数据填充项
227
+ * @public
228
+ */
229
+ export declare class MultistageFillingItem {
230
+ /**
231
+ * 控件ID
232
+ * @defaultValue ''
233
+ * @public
234
+ */
235
+ controlId: string;
236
+ /**
237
+ * 字段
238
+ * @defaultValue ''
239
+ * @public
240
+ */
241
+ fieldCode: string;
242
+ /**
243
+ * 字段类型。事件在填充时,需要根据数据类型进行判断处理动作。
244
+ * @defaultValue ''
245
+ * @public
246
+ */
247
+ fieldType: string;
248
+ /**
249
+ * 属性名称。如果是ObjectDataBind的控件,可以指定填充到哪个数据项。
250
+ * @defaultValue ''
251
+ * @public
252
+ * */
253
+ propName: string;
254
+ constructor(props: Partial<MultistageFillingItem>);
255
+ }
256
+ /**
257
+ * 显示项
258
+ * @public
259
+ */
260
+ export declare class DisplayBoListItem {
261
+ /**
262
+ * 显示项类型:字段 | 符号
263
+ * @defaultValue 'FIELD'
264
+ * @public
265
+ */
266
+ type: 'FIELD' | 'MOSAICS';
267
+ /**
268
+ * 值
269
+ */
270
+ value: string;
271
+ /**
272
+ * 字段数据类型
273
+ */
274
+ fieldType?: string;
275
+ constructor(props?: Partial<DisplayBoListItem>);
276
+ }
277
+ export declare class OptionDisplayConfigItem {
278
+ /**
279
+ * 标题
280
+ */
281
+ title: string;
282
+ /**
283
+ * 字段数据类型
284
+ */
285
+ displayBoList: DisplayBoListItem[];
286
+ constructor(props?: Partial<OptionDisplayConfigItem>);
287
+ }
288
+ /**
289
+ * 数据源排序项
290
+ * @public
291
+ */
292
+ export declare class DataSourceOrderItem {
293
+ /**
294
+ * 列名
295
+ * @defaultValue ''
296
+ */
297
+ columnName: string;
298
+ /**
299
+ * 倒序
300
+ * @defaultValue false
301
+ */
302
+ desc: boolean;
303
+ constructor(props: Partial<DataSourceOrderItem>);
304
+ }
305
+ export declare class DataSourceDataSetValue {
306
+ code: string;
307
+ value: string;
308
+ field_type?: FieldTypes;
309
+ constructor(props: Partial<DataSourceDataSetValue>);
310
+ }
311
+ export declare class DataSourceParamItem {
312
+ /**
313
+ * 字段ID
314
+ */
315
+ id: string;
316
+ limit: number;
317
+ orders: DataSourceOrderItem[];
318
+ formKey: string;
319
+ dataSet: DataSourceDataSetValue[];
320
+ constructor(props: Partial<DataSourceParamItem>);
321
+ }
322
+ /**
323
+ * 数据源绑定配置
324
+ * @public
325
+ */
326
+ export declare class DataSourceBind {
327
+ /**
328
+ * 绑定数据源id
329
+ * @defaultValue ''
330
+ * @public
331
+ */
332
+ dataCode: string;
333
+ /**
334
+ * 存储值
335
+ * @defaultValue ''
336
+ * @public
337
+ */
338
+ valueFieldCode: string;
339
+ /**
340
+ * 显示值
341
+ * @defaultValue []
342
+ * @public
343
+ */
344
+ displayBoList: DisplayBoListItem[];
345
+ /**
346
+ * 查询关键字参数映射
347
+ * @defaultValue ''
348
+ * @public
349
+ */
350
+ keywordMapping?: string;
351
+ /**
352
+ * 绑定服务
353
+ * @defaultValue ''
354
+ * @public
355
+ */
356
+ svcCode: string;
357
+ /**
358
+ * 应用Id
359
+ * @defaultValue ''
360
+ * @public
361
+ */
362
+ appId?: string;
363
+ /**
364
+ * 过滤条件
365
+ * @defaultValue []
366
+ * @public
367
+ */
368
+ filters?: Array<FieldFilterCondition | FieldFilterConditions>;
369
+ /**
370
+ * 过滤条件-查看过滤
371
+ * @defaultValue []
372
+ * @public
373
+ */
374
+ viewFilters?: Array<FieldFilterCondition | FieldFilterConditions>;
375
+ /**
376
+ * 是否开启查看过滤
377
+ * @defaultValue 0:未开启;1:开启
378
+ * @public
379
+ */
380
+ isOpenViewFilters?: number;
381
+ /**
382
+ * 排序
383
+ * @defaultValue []
384
+ * @public
385
+ */
386
+ orders?: DataSourceOrderItem[];
387
+ /**
388
+ * 显示排序
389
+ * @defaultValue true
390
+ * @public
391
+ */
392
+ showOrder?: boolean;
393
+ /**
394
+ * 部门或者人员指定部门配置
395
+ * @defaultValue {}
396
+ * @public
397
+ */
398
+ assignDepartment?: RightVariable;
399
+ /**
400
+ * 部门或者人员指定部门配置是否开启
401
+ * @defaultValue {}
402
+ * @public
403
+ */
404
+ openAssignDepartment?: boolean;
405
+ constructor(props?: Partial<DataSourceBind>);
406
+ }
407
+ export declare class SelectedContentConfig {
408
+ /**
409
+ * 展示已选内容
410
+ * @defaultValue ''
411
+ * @public
412
+ */
413
+ dataCode: string;
414
+ /**
415
+ * 展示已选明细
416
+ * @defaultValue []
417
+ * @public
418
+ */
419
+ displayBoList: any[];
420
+ constructor(props?: Partial<SelectedContentConfig>);
421
+ }
422
+ export interface CustomAttribute {
423
+ key: string;
424
+ name: string;
425
+ required?: boolean;
426
+ }
427
+ export declare class LinkOperationOption {
428
+ code: string;
429
+ color: string;
430
+ command: undefined | string;
431
+ confirmMessage: undefined;
432
+ defaultState: string;
433
+ formKey: undefined | string;
434
+ formType?: string;
435
+ icon: string;
436
+ needConfirm: boolean;
437
+ openType: string;
438
+ priorityProcess: boolean;
439
+ constructor(props?: Partial<LinkOperationOption>);
440
+ }
441
+ export declare class CustomAttributeItem {
442
+ name: string;
443
+ key: string;
444
+ value: DisplayBoListItem[];
445
+ constructor(props?: Partial<CustomAttributeItem>);
446
+ }
447
+ export declare class SuperDataSourceBind extends DataSourceBind {
448
+ attributes: CustomAttributeItem[];
449
+ constructor(props?: Omit<Partial<SuperDataSourceBind>, 'attributes'> & {
450
+ attributes?: Partial<CustomAttributeItem>[];
451
+ });
452
+ }
453
+ export declare class OrganizationDataSourceBind extends DataSourceBind {
454
+ attributes: CustomAttributeItem[];
455
+ formCode: string;
456
+ constructor(props?: Omit<Partial<OrganizationDataSourceBind>, 'attributes'> & {
457
+ attributes?: Partial<CustomAttributeItem>[];
458
+ });
459
+ }
460
+ export declare class TreeDataSourceBind extends SuperDataSourceBind {
461
+ rootNode: RightVariable;
462
+ filterCode?: String;
463
+ constructor(props?: Omit<Partial<TreeDataSourceBind>, 'attributes'> & {
464
+ attributes?: Partial<CustomAttributeItem>[];
465
+ });
466
+ }
467
+ declare class FillBind {
468
+ dataCode: string;
469
+ appId: string;
470
+ fillList: MultistageFillingItem[];
471
+ constructor(props?: Partial<FillBind>);
472
+ }
473
+ /**
474
+ * FillPayloadBind 填充配置
475
+ * 填充的配置和需要携带的数据
476
+ * @public
477
+ * */
478
+ export declare class FillPayloadBind extends FillBind {
479
+ /**
480
+ * 数据源过滤条件
481
+ * @defaultValue []
482
+ * @public
483
+ **/
484
+ filters: Array<FieldFilterCondition | FieldFilterConditions>;
485
+ /**
486
+ * 数据源过滤条件-查看
487
+ * @defaultValue []
488
+ * @public
489
+ **/
490
+ viewFilters: Array<FieldFilterCondition | FieldFilterConditions>;
491
+ /**
492
+ * 数据源排序条件
493
+ * @defaultValue []
494
+ * @public
495
+ **/
496
+ orders: DataSourceOrderItem[];
497
+ constructor(props?: Partial<FillPayloadBind>);
498
+ }
499
+ /**
500
+ * FillBackBind 回填需要的配置和参数
501
+ * @public
502
+ */
503
+ export declare class FillBackBind extends FillBind {
504
+ /**
505
+ * 回填模式。current 当前表(根据按钮所在位置来区分,而不是通过主表和子表来区分)| subtable 子表
506
+ * @defaultValue 'current'
507
+ * @public
508
+ * */
509
+ mode: 'current' | 'subtable';
510
+ /**
511
+ * 多选
512
+ * @defaultValue false
513
+ * @public
514
+ */
515
+ multiple: boolean;
516
+ constructor(props?: Partial<FillBackBind>);
517
+ }
518
+ /**
519
+ * 目前仅subtable,未来的dataview/datagrid/datalist使用该接口
520
+ * dataview/datalist都支持嵌套使用
521
+ */
522
+ export interface DataSourceBindLayout {
523
+ getChildrenFormControl(): unknown[];
524
+ getChildrenDataSourceBindLayout(): unknown[];
525
+ }
526
+ export declare class Language {
527
+ zh: string;
528
+ en: string;
529
+ ja: string;
530
+ constructor(props?: Partial<Language>);
531
+ }
532
+ /**
533
+ * 正则校验
534
+ * @public
535
+ */
536
+ export declare class RegularRules {
537
+ /**
538
+ * 内置模版
539
+ * @defaultValue ''
540
+ */
541
+ stencilName: string;
542
+ /**
543
+ * 正则表达式
544
+ * @defaultValue ''
545
+ */
546
+ expression: string;
547
+ /**
548
+ * 校验错误提示信息
549
+ * @defaultValue ''
550
+ */
551
+ errMessage: string;
552
+ constructor(props?: Partial<RegularRules>);
553
+ }
554
+ /**
555
+ * 选项设置-自定义选项
556
+ * @public
557
+ */
558
+ export declare class OptionSetting {
559
+ readonly id: string;
560
+ /**
561
+ * 显示值
562
+ * @defaultValue ''
563
+ * @public
564
+ */
565
+ label: string;
566
+ /**
567
+ * 选项ID
568
+ * @defaultValue this.label
569
+ * @public
570
+ */
571
+ value: string;
572
+ constructor(props?: Partial<OptionSetting>);
573
+ }
574
+ export declare class ImageOptionSetting extends OptionSetting {
575
+ image: string;
576
+ type: 'attachment' | 'src';
577
+ constructor(props?: Partial<ImageOptionSetting>);
578
+ }
579
+ export declare class AiOptionSetting extends OptionSetting {
580
+ cueWord: string;
581
+ checked: boolean;
582
+ constructor(props?: Partial<AiOptionSetting>);
583
+ }
584
+ export declare function initOptions(options?: Partial<OptionSetting>[]): OptionSetting[];
585
+ export declare function initImageOptions(options?: Partial<ImageOptionSetting>[]): ImageOptionSetting[];
586
+ export declare function initAiOptions(options?: Partial<AiOptionSetting>[]): AiOptionSetting[];
587
+ /**
588
+ * 对象类型数据绑定配置
589
+ * @public
590
+ */
591
+ export declare class ObjectDataBind {
592
+ /**
593
+ * 绑定配置
594
+ */
595
+ [key: string]: DataBind;
596
+ }
597
+ /**
598
+ * 金额控件数据绑定配置
599
+ * @public
600
+ */
601
+ export declare class AmountDataBind extends ObjectDataBind {
602
+ /**
603
+ * 金额字段绑定配置
604
+ */
605
+ amount: DataBind;
606
+ /**
607
+ * 币种字段绑定配置
608
+ */
609
+ currency: DataBind;
610
+ constructor(props?: Partial<AmountDataBind>);
611
+ }
612
+ /**
613
+ * 金额控件值
614
+ * @public
615
+ */
616
+ export declare class AmountValue {
617
+ /**
618
+ * 金额值
619
+ * @defaultValue ''
620
+ */
621
+ amount: number | '';
622
+ /**
623
+ * 货币值
624
+ * @defaultValue 'CNY'
625
+ */
626
+ currency: AMOUNT_TYPE;
627
+ constructor(props?: Partial<AmountValue>);
628
+ }
629
+ /**
630
+ * 日期区间数据绑定项
631
+ * @public
632
+ */
633
+ export declare class RangeDataBind extends ObjectDataBind {
634
+ /**
635
+ * 开始日期字段绑定项
636
+ */
637
+ min: DataBind;
638
+ /**
639
+ * 结束日期字段绑定项
640
+ */
641
+ max: DataBind;
642
+ constructor(props?: Partial<RangeDataBind>);
643
+ }
644
+ /**
645
+ * 日期区间值
646
+ * @public
647
+ */
648
+ export declare class RangeDateValue {
649
+ /**
650
+ * 开始日期值
651
+ * @defaultValue ''
652
+ */
653
+ min: string;
654
+ /**
655
+ * 结束日期值
656
+ * @defaultValue ''
657
+ */
658
+ max: string;
659
+ constructor(props?: Partial<RangeDateValue>);
660
+ }
661
+ /**
662
+ * 地址值
663
+ * @public
664
+ */
665
+ export declare class AddressValue {
666
+ /**
667
+ * 市编码
668
+ * @defaultValue ''
669
+ */
670
+ city?: string;
671
+ /**
672
+ * 市显示文字
673
+ * @defaultValue ''
674
+ */
675
+ cityDisplay?: string;
676
+ /**
677
+ * 区编码
678
+ * @defaultValue ''
679
+ */
680
+ district?: string;
681
+ /**
682
+ * 区显示文字
683
+ * @defaultValue ''
684
+ */
685
+ districtDisplay?: string;
686
+ /**
687
+ * 省编码
688
+ * @defaultValue ''
689
+ */
690
+ province?: string;
691
+ /**
692
+ * 省显示文字
693
+ * @defaultValue ''
694
+ */
695
+ provinceDisplay?: string;
696
+ constructor(props?: Partial<AddressValue>);
697
+ }
698
+ /**
699
+ * 计算公式数据绑定项
700
+ * @public
701
+ */
702
+ export declare class CalcDataBind extends ObjectDataBind {
703
+ /**
704
+ * 计算结果字段绑定项
705
+ */
706
+ result: DataBind;
707
+ /**
708
+ * 单位字段绑定项
709
+ */
710
+ unit: DataBind;
711
+ constructor(props?: Partial<CalcDataBind>);
712
+ }
713
+ /**
714
+ * 计算公式值
715
+ * @public
716
+ */
717
+ export declare class CalcValue {
718
+ /**
719
+ * 计算结果值
720
+ * @defaultValue 0
721
+ */
722
+ result: number | 0;
723
+ /**
724
+ * 单位
725
+ * @defaultValue ''
726
+ */
727
+ unit: string;
728
+ constructor(props?: Partial<CalcValue>);
729
+ }
730
+ export declare enum AMOUNT_TYPE {
731
+ CNY = "CNY",// 人民币
732
+ USD = "USD",// 美元
733
+ JPY = "JPY",// 日元
734
+ EUR = "EUR",// 欧元
735
+ INR = "INR",// 印度卢比
736
+ IDR = "IDR",// 印度盾
737
+ BRL = "BRL",// 巴西雷亚尔
738
+ AED = "AED",// 迪拉姆
739
+ AUD = "AUD",// 澳大利亚元
740
+ CAD = "CAD",// 加元
741
+ EGP = "EGP",// 埃及镑
742
+ GBP = "GBP",// 英镑
743
+ ZAR = "ZAR",// 南非兰特
744
+ KRW = "KRW",// 韩元
745
+ MAD = "MAD",// 摩洛哥迪拉姆
746
+ MXN = "MXN",// 墨西哥比索
747
+ MYR = "MYR",// 马来西亚林吉特
748
+ PHP = "PHP",// 菲律宾比索
749
+ PLN = "PLN",// 波兰兹罗提
750
+ RUB = "RUB",// 俄罗斯卢布
751
+ SGD = "SGD",// 新加坡元
752
+ THB = "THB",// 泰铢
753
+ TRY = "TRY",// 新土耳其里拉
754
+ TWD = "TWD",// 新台币
755
+ VND = "VND",// 越南盾
756
+ HKD = "HKD",// 港币
757
+ IEP = "IEP"
758
+ }
759
+ /**
760
+ * 选项设置
761
+ * REQUIRED: 必填
762
+ * isHide: 隐藏
763
+ * IS_SHOW_UNIT: 单位
764
+ * CAN_SEARCH: 支持搜索
765
+ * MULTIPLE: 允许选中多个日期
766
+ * SUBMIT_SELECT_CURRENCY: 提交时选择币种
767
+ */
768
+ export declare enum COMMON_SETTING_TYPE {
769
+ DEFAULT_DISPLAY = "defaultDisplay",
770
+ REQUIRED = "required",
771
+ IS_HIDE = "isHide",
772
+ IS_SHOW_UNIT = "isShowUnit",
773
+ IMD_SEARCH = "immediatelySearch",
774
+ MULTIPLE = "multiple",
775
+ SUBMIT_SELECT_CURRENCY = "submitSelectCurrency",
776
+ CAPTION = "caption",
777
+ IS_HIDE_CAPTION = "isHideCaption",
778
+ DEFAULT_SHOW_OPTIONS = "defaultShowOptions",
779
+ CAN_SEARCH = "canSearch",
780
+ CAN_CHECK = "canCheck",
781
+ CAN_EDIT = "canEdit",
782
+ CAN_DELETE = "canDelete",
783
+ SHOW_UPPER_CASE = "showUpperCase",
784
+ MICROMETER = "micrometer",
785
+ PRECISION = "precision",
786
+ PERCENTAGE = "percentage",
787
+ OPTIONAL_LEVEL = "optionalLevel",
788
+ CONTAINS_SUB_NODE = "containsSubNode",
789
+ DEFAULT_COLLAPSE = "defaultCollapse",
790
+ CAN_VIEW_FORM = "canViewForm",
791
+ VIEW_FORM_MODEL_TYPE = "viewFormModelType",
792
+ SERVER_PAGINATION = "serverPagination",
793
+ IS_SHOW_CAPTION_TIP = "isShowCaptionTip",
794
+ IS_SHOW_WATERMARK = "isShowWatermark",
795
+ ENCRYPTED = "encrypted",
796
+ IS_INLINE_EDIT = "isInlineEdit",
797
+ REVISIONS_MODE = "revisionsMode",
798
+ ALLOW_COPY_OPTIONS = "allowCopyOptions",
799
+ IS_PASTE = "isPaste",
800
+ SORTABLE = "sortable",
801
+ IS_SHOW_SIMPLE_SEARCH = "isShowSimpleSearch",
802
+ IS_SHOW_TOOL_BAE = "isShowToolbar",
803
+ MAIN_DEPT_FLAG = "mainDeptFlag",
804
+ IS_INTERNATIONAL = "isInternational",
805
+ CAPTION_SIZE = "captionSize",
806
+ CAPTION_COLOR = "captionColor",
807
+ IS_CAPTION_ITALIC = "isCaptionItalic"
808
+ }
809
+ export declare enum PAGE_STATUS {
810
+ UNKNOWN = 0,
811
+ READONLY = 1,
812
+ EDITABLE = 2,
813
+ PRINT = 5
814
+ }
815
+ /**
816
+ * 操作按钮
817
+ * @public
818
+ */
819
+ export declare class OperationItem {
820
+ /**
821
+ * 是否显示
822
+ * @defaultValue true
823
+ * @public
824
+ */
825
+ isShow: boolean;
826
+ /**
827
+ * 优先访问流程表单
828
+ * @defaultValue false
829
+ * @public
830
+ */
831
+ priorityProcess: boolean;
832
+ /**
833
+ * 表单ID
834
+ * @defaultValue ''
835
+ * @public
836
+ */
837
+ formKey: string;
838
+ /**
839
+ * 显示文字
840
+ * @defaultValue ''
841
+ * @public
842
+ */
843
+ content: string;
844
+ /**
845
+ * 打开方式
846
+ * @defaultValue 'modal'
847
+ * @public
848
+ */
849
+ openType: 'modal' | 'window' | 'dialog' | 'tab';
850
+ readonly type: string;
851
+ constructor(props?: Partial<OperationItem>);
852
+ }
853
+ export declare class ViewOperationItem {
854
+ id: string;
855
+ title: string;
856
+ filters: Array<FieldFilterCondition | FieldFilterConditions>;
857
+ viewFilters: Array<FieldFilterCondition | FieldFilterConditions>;
858
+ headers: ListBindHeaderItem[];
859
+ constructor(props: Partial<ViewOperationItem>);
860
+ }
861
+ /**
862
+ * 自定义权限项,用于Vue容器上,注册自定义的权限
863
+ */
864
+ export declare class CustomPermissionItem {
865
+ /**
866
+ * 人工输入的权限key
867
+ */
868
+ key: string;
869
+ /**
870
+ * 权限名称
871
+ */
872
+ caption: string;
873
+ constructor(props: Partial<CustomPermissionItem>);
874
+ }
875
+ export declare class BaseStyle {
876
+ width: number | '';
877
+ height: number | '';
878
+ widthConfig: 'px' | '%' | 'fill' | 'hug';
879
+ heightConfig: 'px' | '%' | 'fill' | 'hug';
880
+ constructor(props?: Partial<BaseStyle>);
881
+ }
882
+ export declare class OptObject {
883
+ /**
884
+ * 操作项编码
885
+ * @defaultValue ''
886
+ * @public
887
+ */
888
+ optCode: string;
889
+ /**
890
+ * 操作项类型
891
+ * @defaultValue ''
892
+ * @public
893
+ */
894
+ optType: string;
895
+ constructor(props?: Partial<OptObject>);
896
+ }
897
+ export declare class RowStyleRule {
898
+ /**
899
+ * 规则编号
900
+ * @defaultValue guid
901
+ * @public
902
+ */
903
+ id: string;
904
+ /**
905
+ * 规则名称
906
+ * @defaultValue ''
907
+ * @public
908
+ */
909
+ name: string;
910
+ settings: RowStyleSettings[];
911
+ /**
912
+ * 过滤条件
913
+ * @defaultValue []
914
+ * @public
915
+ */
916
+ filters?: Array<FieldFilterCondition | FieldFilterConditions>;
917
+ script?: string;
918
+ constructor(props?: Partial<RowStyleRule>);
919
+ }
920
+ export declare class RowStyleSettings {
921
+ /**
922
+ * 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
923
+ * @defaultValue 'theme'
924
+ * @public
925
+ */
926
+ color: string;
927
+ /**
928
+ * 生效列字段
929
+ */
930
+ fieldCodes: string[];
931
+ /**
932
+ * 样式类型,background单元格背景色,fontColor单元格字体色
933
+ */
934
+ type: 'background' | 'fontColor';
935
+ /**
936
+ * 作用范围,row整行,col整列
937
+ */
938
+ scope: 'row' | 'col';
939
+ constructor(props: Partial<RowStyleSettings>);
940
+ }
941
+ export declare class RowStyle {
942
+ type: 'none' | 'interval' | 'rules';
943
+ interval: {
944
+ color?: string;
945
+ };
946
+ rules: RowStyleRule[];
947
+ constructor(props?: Partial<RowStyle>);
948
+ }
949
+ export declare class ListTreeData {
950
+ groupDefaultExpanded: boolean;
951
+ suppressCount: boolean;
952
+ groupFields: {
953
+ field: string;
954
+ orderType: 'desc' | 'asc';
955
+ }[];
956
+ groupHeaderName: any;
957
+ constructor(props?: Partial<ListTreeData>);
958
+ }