@byteluck-fe/model-driven-core 2.23.0-beta.2 → 2.23.0-beta.21

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 (68) 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 +25 -38
  4. package/dist/esm/common/ColumnControl/designer.js +13 -27
  5. package/dist/esm/common/ColumnControl/property.js +56 -81
  6. package/dist/esm/common/ColumnControl/runtime.js +13 -27
  7. package/dist/esm/common/FormControl/designer.js +12 -25
  8. package/dist/esm/common/FormControl/property.js +90 -117
  9. package/dist/esm/common/FormControl/runtime.js +12 -26
  10. package/dist/esm/common/LayoutControl/designer.js +13 -29
  11. package/dist/esm/common/LayoutControl/property.js +12 -23
  12. package/dist/esm/common/LayoutControl/runtime.js +13 -27
  13. package/dist/esm/common/ListControl/designer.js +13 -26
  14. package/dist/esm/common/ListControl/property.js +14 -31
  15. package/dist/esm/common/ListControl/runtime.js +14 -28
  16. package/dist/esm/common/SearchViewControl/designer.js +12 -25
  17. package/dist/esm/common/SearchViewControl/property.js +12 -24
  18. package/dist/esm/common/SearchViewControl/runtime.js +12 -25
  19. package/dist/esm/common/WrapControl/designer.js +12 -25
  20. package/dist/esm/common/WrapControl/property.js +12 -23
  21. package/dist/esm/common/WrapControl/runtime.js +12 -25
  22. package/dist/esm/common/initLinkOperationRules.js +2 -2
  23. package/dist/esm/common/initOptionAndDataSourceRules.js +31 -30
  24. package/dist/esm/framework/RegisterControls.js +1 -0
  25. package/dist/esm/framework/index.js +406 -435
  26. package/dist/index.umd.js +1 -45
  27. package/dist/types/api-doc-index.d.ts +4 -4
  28. package/dist/types/common/BaseControl/designer.d.ts +71 -71
  29. package/dist/types/common/BaseControl/index.d.ts +13 -13
  30. package/dist/types/common/BaseControl/property.d.ts +44 -44
  31. package/dist/types/common/BaseControl/runtime.d.ts +23 -23
  32. package/dist/types/common/BaseControl/types.d.ts +35 -35
  33. package/dist/types/common/ColumnControl/designer.d.ts +20 -20
  34. package/dist/types/common/ColumnControl/index.d.ts +12 -12
  35. package/dist/types/common/ColumnControl/property.d.ts +74 -74
  36. package/dist/types/common/ColumnControl/runtime.d.ts +11 -11
  37. package/dist/types/common/ControlArray.d.ts +9 -9
  38. package/dist/types/common/FormControl/designer.d.ts +13 -13
  39. package/dist/types/common/FormControl/index.d.ts +12 -12
  40. package/dist/types/common/FormControl/property.d.ts +100 -100
  41. package/dist/types/common/FormControl/runtime.d.ts +11 -11
  42. package/dist/types/common/LayoutControl/designer.d.ts +21 -21
  43. package/dist/types/common/LayoutControl/index.d.ts +12 -12
  44. package/dist/types/common/LayoutControl/property.d.ts +6 -6
  45. package/dist/types/common/LayoutControl/runtime.d.ts +11 -11
  46. package/dist/types/common/ListControl/designer.d.ts +16 -16
  47. package/dist/types/common/ListControl/index.d.ts +12 -12
  48. package/dist/types/common/ListControl/property.d.ts +18 -18
  49. package/dist/types/common/ListControl/runtime.d.ts +12 -12
  50. package/dist/types/common/SearchViewControl/designer.d.ts +11 -11
  51. package/dist/types/common/SearchViewControl/index.d.ts +12 -12
  52. package/dist/types/common/SearchViewControl/property.d.ts +8 -8
  53. package/dist/types/common/SearchViewControl/runtime.d.ts +11 -11
  54. package/dist/types/common/Validator.d.ts +15 -15
  55. package/dist/types/common/WrapControl/designer.d.ts +11 -11
  56. package/dist/types/common/WrapControl/index.d.ts +12 -12
  57. package/dist/types/common/WrapControl/property.d.ts +6 -6
  58. package/dist/types/common/WrapControl/runtime.d.ts +11 -11
  59. package/dist/types/common/controlHooksEmitter.d.ts +4 -4
  60. package/dist/types/common/index.d.ts +12 -12
  61. package/dist/types/common/initLinkOperationRules.d.ts +6 -6
  62. package/dist/types/common/initOptionAndDataSourceRules.d.ts +10 -10
  63. package/dist/types/framework/RegisterControls.d.ts +37 -37
  64. package/dist/types/framework/index.d.ts +925 -923
  65. package/dist/types/framework/isDataBind.d.ts +2 -2
  66. package/dist/types/index.d.ts +4 -4
  67. package/dist/types/type.d.ts +91 -91
  68. package/package.json +3 -3
@@ -1,923 +1,925 @@
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
- constructor(props?: Partial<DataSourceBind>);
394
- }
395
- export declare class SelectedContentConfig {
396
- /**
397
- * 展示已选内容
398
- * @defaultValue ''
399
- * @public
400
- */
401
- dataCode: string;
402
- /**
403
- * 展示已选明细
404
- * @defaultValue []
405
- * @public
406
- */
407
- displayBoList: any[];
408
- constructor(props?: Partial<SelectedContentConfig>);
409
- }
410
- export interface CustomAttribute {
411
- key: string;
412
- name: string;
413
- required?: boolean;
414
- }
415
- export declare class LinkOperationOption {
416
- code: string;
417
- color: string;
418
- command: undefined | string;
419
- confirmMessage: undefined;
420
- defaultState: string;
421
- formKey: undefined | string;
422
- formType?: string;
423
- icon: string;
424
- needConfirm: boolean;
425
- openType: string;
426
- priorityProcess: boolean;
427
- constructor(props?: Partial<LinkOperationOption>);
428
- }
429
- export declare class CustomAttributeItem {
430
- name: string;
431
- key: string;
432
- value: DisplayBoListItem[];
433
- constructor(props?: Partial<CustomAttributeItem>);
434
- }
435
- export declare class SuperDataSourceBind extends DataSourceBind {
436
- attributes: CustomAttributeItem[];
437
- constructor(props?: Omit<Partial<SuperDataSourceBind>, 'attributes'> & {
438
- attributes?: Partial<CustomAttributeItem>[];
439
- });
440
- }
441
- export declare class OrganizationDataSourceBind extends DataSourceBind {
442
- attributes: CustomAttributeItem[];
443
- formCode: string;
444
- constructor(props?: Omit<Partial<OrganizationDataSourceBind>, 'attributes'> & {
445
- attributes?: Partial<CustomAttributeItem>[];
446
- });
447
- }
448
- export declare class TreeDataSourceBind extends SuperDataSourceBind {
449
- rootNode: RightVariable;
450
- filterCode?: String;
451
- constructor(props?: Omit<Partial<TreeDataSourceBind>, 'attributes'> & {
452
- attributes?: Partial<CustomAttributeItem>[];
453
- });
454
- }
455
- declare class FillBind {
456
- dataCode: string;
457
- appId: string;
458
- fillList: MultistageFillingItem[];
459
- constructor(props?: Partial<FillBind>);
460
- }
461
- /**
462
- * FillPayloadBind 填充配置
463
- * 填充的配置和需要携带的数据
464
- * @public
465
- * */
466
- export declare class FillPayloadBind extends FillBind {
467
- /**
468
- * 数据源过滤条件
469
- * @defaultValue []
470
- * @public
471
- **/
472
- filters: Array<FieldFilterCondition | FieldFilterConditions>;
473
- /**
474
- * 数据源过滤条件-查看
475
- * @defaultValue []
476
- * @public
477
- **/
478
- viewFilters: Array<FieldFilterCondition | FieldFilterConditions>;
479
- /**
480
- * 数据源排序条件
481
- * @defaultValue []
482
- * @public
483
- **/
484
- orders: DataSourceOrderItem[];
485
- constructor(props?: Partial<FillPayloadBind>);
486
- }
487
- /**
488
- * FillBackBind 回填需要的配置和参数
489
- * @public
490
- */
491
- export declare class FillBackBind extends FillBind {
492
- /**
493
- * 回填模式。current 当前表(根据按钮所在位置来区分,而不是通过主表和子表来区分)| subtable 子表
494
- * @defaultValue 'current'
495
- * @public
496
- * */
497
- mode: 'current' | 'subtable';
498
- /**
499
- * 多选
500
- * @defaultValue false
501
- * @public
502
- */
503
- multiple: boolean;
504
- constructor(props?: Partial<FillBackBind>);
505
- }
506
- /**
507
- * 目前仅subtable,未来的dataview/datagrid/datalist使用该接口
508
- * dataview/datalist都支持嵌套使用
509
- */
510
- export interface DataSourceBindLayout {
511
- getChildrenFormControl(): unknown[];
512
- getChildrenDataSourceBindLayout(): unknown[];
513
- }
514
- export declare class Language {
515
- zh: string;
516
- en: string;
517
- ja: string;
518
- constructor(props?: Partial<Language>);
519
- }
520
- /**
521
- * 正则校验
522
- * @public
523
- */
524
- export declare class RegularRules {
525
- /**
526
- * 内置模版
527
- * @defaultValue ''
528
- */
529
- stencilName: string;
530
- /**
531
- * 正则表达式
532
- * @defaultValue ''
533
- */
534
- expression: string;
535
- /**
536
- * 校验错误提示信息
537
- * @defaultValue ''
538
- */
539
- errMessage: string;
540
- constructor(props?: Partial<RegularRules>);
541
- }
542
- /**
543
- * 选项设置-自定义选项
544
- * @public
545
- */
546
- export declare class OptionSetting {
547
- readonly id: string;
548
- /**
549
- * 显示值
550
- * @defaultValue ''
551
- * @public
552
- */
553
- label: string;
554
- /**
555
- * 选项ID
556
- * @defaultValue this.label
557
- * @public
558
- */
559
- value: string;
560
- constructor(props?: Partial<OptionSetting>);
561
- }
562
- export declare class ImageOptionSetting extends OptionSetting {
563
- image: string;
564
- type: 'attachment' | 'src';
565
- constructor(props?: Partial<ImageOptionSetting>);
566
- }
567
- export declare function initOptions(options?: Partial<OptionSetting>[]): OptionSetting[];
568
- export declare function initImageOptions(options?: Partial<ImageOptionSetting>[]): ImageOptionSetting[];
569
- /**
570
- * 对象类型数据绑定配置
571
- * @public
572
- */
573
- export declare class ObjectDataBind {
574
- /**
575
- * 绑定配置
576
- */
577
- [key: string]: DataBind;
578
- }
579
- /**
580
- * 金额控件数据绑定配置
581
- * @public
582
- */
583
- export declare class AmountDataBind extends ObjectDataBind {
584
- /**
585
- * 金额字段绑定配置
586
- */
587
- amount: DataBind;
588
- /**
589
- * 币种字段绑定配置
590
- */
591
- currency: DataBind;
592
- constructor(props?: Partial<AmountDataBind>);
593
- }
594
- /**
595
- * 金额控件值
596
- * @public
597
- */
598
- export declare class AmountValue {
599
- /**
600
- * 金额值
601
- * @defaultValue ''
602
- */
603
- amount: number | '';
604
- /**
605
- * 货币值
606
- * @defaultValue 'CNY'
607
- */
608
- currency: AMOUNT_TYPE;
609
- constructor(props?: Partial<AmountValue>);
610
- }
611
- /**
612
- * 日期区间数据绑定项
613
- * @public
614
- */
615
- export declare class RangeDataBind extends ObjectDataBind {
616
- /**
617
- * 开始日期字段绑定项
618
- */
619
- min: DataBind;
620
- /**
621
- * 结束日期字段绑定项
622
- */
623
- max: DataBind;
624
- constructor(props?: Partial<RangeDataBind>);
625
- }
626
- /**
627
- * 日期区间值
628
- * @public
629
- */
630
- export declare class RangeDateValue {
631
- /**
632
- * 开始日期值
633
- * @defaultValue ''
634
- */
635
- min: string;
636
- /**
637
- * 结束日期值
638
- * @defaultValue ''
639
- */
640
- max: string;
641
- constructor(props?: Partial<RangeDateValue>);
642
- }
643
- /**
644
- * 地址值
645
- * @public
646
- */
647
- export declare class AddressValue {
648
- /**
649
- * 市编码
650
- * @defaultValue ''
651
- */
652
- city?: string;
653
- /**
654
- * 市显示文字
655
- * @defaultValue ''
656
- */
657
- cityDisplay?: string;
658
- /**
659
- * 区编码
660
- * @defaultValue ''
661
- */
662
- district?: string;
663
- /**
664
- * 区显示文字
665
- * @defaultValue ''
666
- */
667
- districtDisplay?: string;
668
- /**
669
- * 省编码
670
- * @defaultValue ''
671
- */
672
- province?: string;
673
- /**
674
- * 省显示文字
675
- * @defaultValue ''
676
- */
677
- provinceDisplay?: string;
678
- constructor(props?: Partial<AddressValue>);
679
- }
680
- /**
681
- * 计算公式数据绑定项
682
- * @public
683
- */
684
- export declare class CalcDataBind extends ObjectDataBind {
685
- /**
686
- * 计算结果字段绑定项
687
- */
688
- result: DataBind;
689
- /**
690
- * 单位字段绑定项
691
- */
692
- unit: DataBind;
693
- constructor(props?: Partial<CalcDataBind>);
694
- }
695
- /**
696
- * 计算公式值
697
- * @public
698
- */
699
- export declare class CalcValue {
700
- /**
701
- * 计算结果值
702
- * @defaultValue 0
703
- */
704
- result: number | 0;
705
- /**
706
- * 单位
707
- * @defaultValue ''
708
- */
709
- unit: string;
710
- constructor(props?: Partial<CalcValue>);
711
- }
712
- export declare enum AMOUNT_TYPE {
713
- CNY = "CNY",
714
- USD = "USD",
715
- JPY = "JPY",
716
- EUR = "EUR",
717
- INR = "INR",
718
- IDR = "IDR",
719
- BRL = "BRL",
720
- AED = "AED",
721
- AUD = "AUD",
722
- CAD = "CAD",
723
- EGP = "EGP",
724
- GBP = "GBP",
725
- ZAR = "ZAR",
726
- KRW = "KRW",
727
- MAD = "MAD",
728
- MXN = "MXN",
729
- MYR = "MYR",
730
- PHP = "PHP",
731
- PLN = "PLN",
732
- RUB = "RUB",
733
- SGD = "SGD",
734
- THB = "THB",
735
- TRY = "TRY",
736
- TWD = "TWD",
737
- VND = "VND",
738
- HKD = "HKD",
739
- IEP = "IEP"
740
- }
741
- /**
742
- * 选项设置
743
- * REQUIRED: 必填
744
- * isHide: 隐藏
745
- * IS_SHOW_UNIT: 单位
746
- * CAN_SEARCH: 支持搜索
747
- * MULTIPLE: 允许选中多个日期
748
- * SUBMIT_SELECT_CURRENCY: 提交时选择币种
749
- */
750
- export declare enum COMMON_SETTING_TYPE {
751
- DEFAULT_DISPLAY = "defaultDisplay",
752
- REQUIRED = "required",
753
- IS_HIDE = "isHide",
754
- IS_SHOW_UNIT = "isShowUnit",
755
- IMD_SEARCH = "immediatelySearch",
756
- MULTIPLE = "multiple",
757
- SUBMIT_SELECT_CURRENCY = "submitSelectCurrency",
758
- CAPTION = "caption",
759
- IS_HIDE_CAPTION = "isHideCaption",
760
- DEFAULT_SHOW_OPTIONS = "defaultShowOptions",
761
- CAN_SEARCH = "canSearch",
762
- CAN_CHECK = "canCheck",
763
- CAN_EDIT = "canEdit",
764
- CAN_DELETE = "canDelete",
765
- SHOW_UPPER_CASE = "showUpperCase",
766
- MICROMETER = "micrometer",
767
- PRECISION = "precision",
768
- PERCENTAGE = "percentage",
769
- OPTIONAL_LEVEL = "optionalLevel",
770
- CONTAINS_SUB_NODE = "containsSubNode",
771
- DEFAULT_COLLAPSE = "defaultCollapse",
772
- CAN_VIEW_FORM = "canViewForm",
773
- VIEW_FORM_MODEL_TYPE = "viewFormModelType",
774
- SERVER_PAGINATION = "serverPagination",
775
- IS_SHOW_CAPTION_TIP = "isShowCaptionTip",
776
- IS_SHOW_WATERMARK = "isShowWatermark",
777
- ENCRYPTED = "encrypted",
778
- IS_INLINE_EDIT = "isInlineEdit",
779
- REVISIONS_MODE = "revisionsMode",
780
- ALLOW_COPY_OPTIONS = "allowCopyOptions",
781
- IS_PASTE = "isPaste",
782
- SORTABLE = "sortable"
783
- }
784
- export declare enum PAGE_STATUS {
785
- UNKNOWN = 0,
786
- READONLY = 1,
787
- EDITABLE = 2,
788
- PRINT = 5
789
- }
790
- /**
791
- * 操作按钮
792
- * @public
793
- */
794
- export declare class OperationItem {
795
- /**
796
- * 是否显示
797
- * @defaultValue true
798
- * @public
799
- */
800
- isShow: boolean;
801
- /**
802
- * 优先访问流程表单
803
- * @defaultValue false
804
- * @public
805
- */
806
- priorityProcess: boolean;
807
- /**
808
- * 表单ID
809
- * @defaultValue ''
810
- * @public
811
- */
812
- formKey: string;
813
- /**
814
- * 显示文字
815
- * @defaultValue ''
816
- * @public
817
- */
818
- content: string;
819
- /**
820
- * 打开方式
821
- * @defaultValue 'modal'
822
- * @public
823
- */
824
- openType: 'modal' | 'window' | 'dialog' | 'tab';
825
- readonly type: string;
826
- constructor(props?: Partial<OperationItem>);
827
- }
828
- export declare class ViewOperationItem {
829
- id: string;
830
- title: string;
831
- filters: Array<FieldFilterCondition | FieldFilterConditions>;
832
- viewFilters: Array<FieldFilterCondition | FieldFilterConditions>;
833
- headers: ListBindHeaderItem[];
834
- constructor(props: Partial<ViewOperationItem>);
835
- }
836
- /**
837
- * 自定义权限项,用于Vue容器上,注册自定义的权限
838
- */
839
- export declare class CustomPermissionItem {
840
- /**
841
- * 人工输入的权限key
842
- */
843
- key: string;
844
- /**
845
- * 权限名称
846
- */
847
- caption: string;
848
- constructor(props: Partial<CustomPermissionItem>);
849
- }
850
- export declare class BaseStyle {
851
- width: number | '';
852
- height: number | '';
853
- widthConfig: 'px' | '%' | 'fill' | 'hug';
854
- heightConfig: 'px' | '%' | 'fill' | 'hug';
855
- constructor(props?: Partial<BaseStyle>);
856
- }
857
- export declare class OptObject {
858
- /**
859
- * 操作项编码
860
- * @defaultValue ''
861
- * @public
862
- */
863
- optCode: string;
864
- /**
865
- * 操作项类型
866
- * @defaultValue ''
867
- * @public
868
- */
869
- optType: string;
870
- constructor(props?: Partial<OptObject>);
871
- }
872
- export declare class RowStyleRule {
873
- /**
874
- * 规则编号
875
- * @defaultValue guid
876
- * @public
877
- */
878
- id: string;
879
- /**
880
- * 规则名称
881
- * @defaultValue ''
882
- * @public
883
- */
884
- name: string;
885
- settings: RowStyleSettings[];
886
- /**
887
- * 过滤条件
888
- * @defaultValue []
889
- * @public
890
- */
891
- filters?: Array<FieldFilterCondition | FieldFilterConditions>;
892
- script?: string;
893
- constructor(props?: Partial<RowStyleRule>);
894
- }
895
- export declare class RowStyleSettings {
896
- /**
897
- * 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
898
- * @defaultValue 'theme'
899
- * @public
900
- */
901
- color: string;
902
- /**
903
- * 生效列字段
904
- */
905
- fieldCodes: string[];
906
- /**
907
- * 样式类型,background单元格背景色,fontColor单元格字体色
908
- */
909
- type: 'background' | 'fontColor';
910
- /**
911
- * 作用范围,row整行,col整列
912
- */
913
- scope: 'row' | 'col';
914
- constructor(props: Partial<RowStyleSettings>);
915
- }
916
- export declare class RowStyle {
917
- type: 'none' | 'interval' | 'rules';
918
- interval: {
919
- color?: string;
920
- };
921
- rules: RowStyleRule[];
922
- constructor(props?: Partial<RowStyle>);
923
- }
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
+ constructor(props?: Partial<DataSourceBind>);
394
+ }
395
+ export declare class SelectedContentConfig {
396
+ /**
397
+ * 展示已选内容
398
+ * @defaultValue ''
399
+ * @public
400
+ */
401
+ dataCode: string;
402
+ /**
403
+ * 展示已选明细
404
+ * @defaultValue []
405
+ * @public
406
+ */
407
+ displayBoList: any[];
408
+ constructor(props?: Partial<SelectedContentConfig>);
409
+ }
410
+ export interface CustomAttribute {
411
+ key: string;
412
+ name: string;
413
+ required?: boolean;
414
+ }
415
+ export declare class LinkOperationOption {
416
+ code: string;
417
+ color: string;
418
+ command: undefined | string;
419
+ confirmMessage: undefined;
420
+ defaultState: string;
421
+ formKey: undefined | string;
422
+ formType?: string;
423
+ icon: string;
424
+ needConfirm: boolean;
425
+ openType: string;
426
+ priorityProcess: boolean;
427
+ constructor(props?: Partial<LinkOperationOption>);
428
+ }
429
+ export declare class CustomAttributeItem {
430
+ name: string;
431
+ key: string;
432
+ value: DisplayBoListItem[];
433
+ constructor(props?: Partial<CustomAttributeItem>);
434
+ }
435
+ export declare class SuperDataSourceBind extends DataSourceBind {
436
+ attributes: CustomAttributeItem[];
437
+ constructor(props?: Omit<Partial<SuperDataSourceBind>, 'attributes'> & {
438
+ attributes?: Partial<CustomAttributeItem>[];
439
+ });
440
+ }
441
+ export declare class OrganizationDataSourceBind extends DataSourceBind {
442
+ attributes: CustomAttributeItem[];
443
+ formCode: string;
444
+ constructor(props?: Omit<Partial<OrganizationDataSourceBind>, 'attributes'> & {
445
+ attributes?: Partial<CustomAttributeItem>[];
446
+ });
447
+ }
448
+ export declare class TreeDataSourceBind extends SuperDataSourceBind {
449
+ rootNode: RightVariable;
450
+ filterCode?: String;
451
+ constructor(props?: Omit<Partial<TreeDataSourceBind>, 'attributes'> & {
452
+ attributes?: Partial<CustomAttributeItem>[];
453
+ });
454
+ }
455
+ declare class FillBind {
456
+ dataCode: string;
457
+ appId: string;
458
+ fillList: MultistageFillingItem[];
459
+ constructor(props?: Partial<FillBind>);
460
+ }
461
+ /**
462
+ * FillPayloadBind 填充配置
463
+ * 填充的配置和需要携带的数据
464
+ * @public
465
+ * */
466
+ export declare class FillPayloadBind extends FillBind {
467
+ /**
468
+ * 数据源过滤条件
469
+ * @defaultValue []
470
+ * @public
471
+ **/
472
+ filters: Array<FieldFilterCondition | FieldFilterConditions>;
473
+ /**
474
+ * 数据源过滤条件-查看
475
+ * @defaultValue []
476
+ * @public
477
+ **/
478
+ viewFilters: Array<FieldFilterCondition | FieldFilterConditions>;
479
+ /**
480
+ * 数据源排序条件
481
+ * @defaultValue []
482
+ * @public
483
+ **/
484
+ orders: DataSourceOrderItem[];
485
+ constructor(props?: Partial<FillPayloadBind>);
486
+ }
487
+ /**
488
+ * FillBackBind 回填需要的配置和参数
489
+ * @public
490
+ */
491
+ export declare class FillBackBind extends FillBind {
492
+ /**
493
+ * 回填模式。current 当前表(根据按钮所在位置来区分,而不是通过主表和子表来区分)| subtable 子表
494
+ * @defaultValue 'current'
495
+ * @public
496
+ * */
497
+ mode: 'current' | 'subtable';
498
+ /**
499
+ * 多选
500
+ * @defaultValue false
501
+ * @public
502
+ */
503
+ multiple: boolean;
504
+ constructor(props?: Partial<FillBackBind>);
505
+ }
506
+ /**
507
+ * 目前仅subtable,未来的dataview/datagrid/datalist使用该接口
508
+ * dataview/datalist都支持嵌套使用
509
+ */
510
+ export interface DataSourceBindLayout {
511
+ getChildrenFormControl(): unknown[];
512
+ getChildrenDataSourceBindLayout(): unknown[];
513
+ }
514
+ export declare class Language {
515
+ zh: string;
516
+ en: string;
517
+ ja: string;
518
+ constructor(props?: Partial<Language>);
519
+ }
520
+ /**
521
+ * 正则校验
522
+ * @public
523
+ */
524
+ export declare class RegularRules {
525
+ /**
526
+ * 内置模版
527
+ * @defaultValue ''
528
+ */
529
+ stencilName: string;
530
+ /**
531
+ * 正则表达式
532
+ * @defaultValue ''
533
+ */
534
+ expression: string;
535
+ /**
536
+ * 校验错误提示信息
537
+ * @defaultValue ''
538
+ */
539
+ errMessage: string;
540
+ constructor(props?: Partial<RegularRules>);
541
+ }
542
+ /**
543
+ * 选项设置-自定义选项
544
+ * @public
545
+ */
546
+ export declare class OptionSetting {
547
+ readonly id: string;
548
+ /**
549
+ * 显示值
550
+ * @defaultValue ''
551
+ * @public
552
+ */
553
+ label: string;
554
+ /**
555
+ * 选项ID
556
+ * @defaultValue this.label
557
+ * @public
558
+ */
559
+ value: string;
560
+ constructor(props?: Partial<OptionSetting>);
561
+ }
562
+ export declare class ImageOptionSetting extends OptionSetting {
563
+ image: string;
564
+ type: 'attachment' | 'src';
565
+ constructor(props?: Partial<ImageOptionSetting>);
566
+ }
567
+ export declare function initOptions(options?: Partial<OptionSetting>[]): OptionSetting[];
568
+ export declare function initImageOptions(options?: Partial<ImageOptionSetting>[]): ImageOptionSetting[];
569
+ /**
570
+ * 对象类型数据绑定配置
571
+ * @public
572
+ */
573
+ export declare class ObjectDataBind {
574
+ /**
575
+ * 绑定配置
576
+ */
577
+ [key: string]: DataBind;
578
+ }
579
+ /**
580
+ * 金额控件数据绑定配置
581
+ * @public
582
+ */
583
+ export declare class AmountDataBind extends ObjectDataBind {
584
+ /**
585
+ * 金额字段绑定配置
586
+ */
587
+ amount: DataBind;
588
+ /**
589
+ * 币种字段绑定配置
590
+ */
591
+ currency: DataBind;
592
+ constructor(props?: Partial<AmountDataBind>);
593
+ }
594
+ /**
595
+ * 金额控件值
596
+ * @public
597
+ */
598
+ export declare class AmountValue {
599
+ /**
600
+ * 金额值
601
+ * @defaultValue ''
602
+ */
603
+ amount: number | '';
604
+ /**
605
+ * 货币值
606
+ * @defaultValue 'CNY'
607
+ */
608
+ currency: AMOUNT_TYPE;
609
+ constructor(props?: Partial<AmountValue>);
610
+ }
611
+ /**
612
+ * 日期区间数据绑定项
613
+ * @public
614
+ */
615
+ export declare class RangeDataBind extends ObjectDataBind {
616
+ /**
617
+ * 开始日期字段绑定项
618
+ */
619
+ min: DataBind;
620
+ /**
621
+ * 结束日期字段绑定项
622
+ */
623
+ max: DataBind;
624
+ constructor(props?: Partial<RangeDataBind>);
625
+ }
626
+ /**
627
+ * 日期区间值
628
+ * @public
629
+ */
630
+ export declare class RangeDateValue {
631
+ /**
632
+ * 开始日期值
633
+ * @defaultValue ''
634
+ */
635
+ min: string;
636
+ /**
637
+ * 结束日期值
638
+ * @defaultValue ''
639
+ */
640
+ max: string;
641
+ constructor(props?: Partial<RangeDateValue>);
642
+ }
643
+ /**
644
+ * 地址值
645
+ * @public
646
+ */
647
+ export declare class AddressValue {
648
+ /**
649
+ * 市编码
650
+ * @defaultValue ''
651
+ */
652
+ city?: string;
653
+ /**
654
+ * 市显示文字
655
+ * @defaultValue ''
656
+ */
657
+ cityDisplay?: string;
658
+ /**
659
+ * 区编码
660
+ * @defaultValue ''
661
+ */
662
+ district?: string;
663
+ /**
664
+ * 区显示文字
665
+ * @defaultValue ''
666
+ */
667
+ districtDisplay?: string;
668
+ /**
669
+ * 省编码
670
+ * @defaultValue ''
671
+ */
672
+ province?: string;
673
+ /**
674
+ * 省显示文字
675
+ * @defaultValue ''
676
+ */
677
+ provinceDisplay?: string;
678
+ constructor(props?: Partial<AddressValue>);
679
+ }
680
+ /**
681
+ * 计算公式数据绑定项
682
+ * @public
683
+ */
684
+ export declare class CalcDataBind extends ObjectDataBind {
685
+ /**
686
+ * 计算结果字段绑定项
687
+ */
688
+ result: DataBind;
689
+ /**
690
+ * 单位字段绑定项
691
+ */
692
+ unit: DataBind;
693
+ constructor(props?: Partial<CalcDataBind>);
694
+ }
695
+ /**
696
+ * 计算公式值
697
+ * @public
698
+ */
699
+ export declare class CalcValue {
700
+ /**
701
+ * 计算结果值
702
+ * @defaultValue 0
703
+ */
704
+ result: number | 0;
705
+ /**
706
+ * 单位
707
+ * @defaultValue ''
708
+ */
709
+ unit: string;
710
+ constructor(props?: Partial<CalcValue>);
711
+ }
712
+ export declare enum AMOUNT_TYPE {
713
+ CNY = "CNY",
714
+ USD = "USD",
715
+ JPY = "JPY",
716
+ EUR = "EUR",
717
+ INR = "INR",
718
+ IDR = "IDR",
719
+ BRL = "BRL",
720
+ AED = "AED",
721
+ AUD = "AUD",
722
+ CAD = "CAD",
723
+ EGP = "EGP",
724
+ GBP = "GBP",
725
+ ZAR = "ZAR",
726
+ KRW = "KRW",
727
+ MAD = "MAD",
728
+ MXN = "MXN",
729
+ MYR = "MYR",
730
+ PHP = "PHP",
731
+ PLN = "PLN",
732
+ RUB = "RUB",
733
+ SGD = "SGD",
734
+ THB = "THB",
735
+ TRY = "TRY",
736
+ TWD = "TWD",
737
+ VND = "VND",
738
+ HKD = "HKD",
739
+ IEP = "IEP"
740
+ }
741
+ /**
742
+ * 选项设置
743
+ * REQUIRED: 必填
744
+ * isHide: 隐藏
745
+ * IS_SHOW_UNIT: 单位
746
+ * CAN_SEARCH: 支持搜索
747
+ * MULTIPLE: 允许选中多个日期
748
+ * SUBMIT_SELECT_CURRENCY: 提交时选择币种
749
+ */
750
+ export declare enum COMMON_SETTING_TYPE {
751
+ DEFAULT_DISPLAY = "defaultDisplay",
752
+ REQUIRED = "required",
753
+ IS_HIDE = "isHide",
754
+ IS_SHOW_UNIT = "isShowUnit",
755
+ IMD_SEARCH = "immediatelySearch",
756
+ MULTIPLE = "multiple",
757
+ SUBMIT_SELECT_CURRENCY = "submitSelectCurrency",
758
+ CAPTION = "caption",
759
+ IS_HIDE_CAPTION = "isHideCaption",
760
+ DEFAULT_SHOW_OPTIONS = "defaultShowOptions",
761
+ CAN_SEARCH = "canSearch",
762
+ CAN_CHECK = "canCheck",
763
+ CAN_EDIT = "canEdit",
764
+ CAN_DELETE = "canDelete",
765
+ SHOW_UPPER_CASE = "showUpperCase",
766
+ MICROMETER = "micrometer",
767
+ PRECISION = "precision",
768
+ PERCENTAGE = "percentage",
769
+ OPTIONAL_LEVEL = "optionalLevel",
770
+ CONTAINS_SUB_NODE = "containsSubNode",
771
+ DEFAULT_COLLAPSE = "defaultCollapse",
772
+ CAN_VIEW_FORM = "canViewForm",
773
+ VIEW_FORM_MODEL_TYPE = "viewFormModelType",
774
+ SERVER_PAGINATION = "serverPagination",
775
+ IS_SHOW_CAPTION_TIP = "isShowCaptionTip",
776
+ IS_SHOW_WATERMARK = "isShowWatermark",
777
+ ENCRYPTED = "encrypted",
778
+ IS_INLINE_EDIT = "isInlineEdit",
779
+ REVISIONS_MODE = "revisionsMode",
780
+ ALLOW_COPY_OPTIONS = "allowCopyOptions",
781
+ IS_PASTE = "isPaste",
782
+ SORTABLE = "sortable",
783
+ IS_SHOW_SIMPLE_SEARCH = "isShowSimpleSearch",
784
+ IS_SHOW_TOOL_BAE = "isShowToolbar"
785
+ }
786
+ export declare enum PAGE_STATUS {
787
+ UNKNOWN = 0,
788
+ READONLY = 1,
789
+ EDITABLE = 2,
790
+ PRINT = 5
791
+ }
792
+ /**
793
+ * 操作按钮
794
+ * @public
795
+ */
796
+ export declare class OperationItem {
797
+ /**
798
+ * 是否显示
799
+ * @defaultValue true
800
+ * @public
801
+ */
802
+ isShow: boolean;
803
+ /**
804
+ * 优先访问流程表单
805
+ * @defaultValue false
806
+ * @public
807
+ */
808
+ priorityProcess: boolean;
809
+ /**
810
+ * 表单ID
811
+ * @defaultValue ''
812
+ * @public
813
+ */
814
+ formKey: string;
815
+ /**
816
+ * 显示文字
817
+ * @defaultValue ''
818
+ * @public
819
+ */
820
+ content: string;
821
+ /**
822
+ * 打开方式
823
+ * @defaultValue 'modal'
824
+ * @public
825
+ */
826
+ openType: 'modal' | 'window' | 'dialog' | 'tab';
827
+ readonly type: string;
828
+ constructor(props?: Partial<OperationItem>);
829
+ }
830
+ export declare class ViewOperationItem {
831
+ id: string;
832
+ title: string;
833
+ filters: Array<FieldFilterCondition | FieldFilterConditions>;
834
+ viewFilters: Array<FieldFilterCondition | FieldFilterConditions>;
835
+ headers: ListBindHeaderItem[];
836
+ constructor(props: Partial<ViewOperationItem>);
837
+ }
838
+ /**
839
+ * 自定义权限项,用于Vue容器上,注册自定义的权限
840
+ */
841
+ export declare class CustomPermissionItem {
842
+ /**
843
+ * 人工输入的权限key
844
+ */
845
+ key: string;
846
+ /**
847
+ * 权限名称
848
+ */
849
+ caption: string;
850
+ constructor(props: Partial<CustomPermissionItem>);
851
+ }
852
+ export declare class BaseStyle {
853
+ width: number | '';
854
+ height: number | '';
855
+ widthConfig: 'px' | '%' | 'fill' | 'hug';
856
+ heightConfig: 'px' | '%' | 'fill' | 'hug';
857
+ constructor(props?: Partial<BaseStyle>);
858
+ }
859
+ export declare class OptObject {
860
+ /**
861
+ * 操作项编码
862
+ * @defaultValue ''
863
+ * @public
864
+ */
865
+ optCode: string;
866
+ /**
867
+ * 操作项类型
868
+ * @defaultValue ''
869
+ * @public
870
+ */
871
+ optType: string;
872
+ constructor(props?: Partial<OptObject>);
873
+ }
874
+ export declare class RowStyleRule {
875
+ /**
876
+ * 规则编号
877
+ * @defaultValue guid
878
+ * @public
879
+ */
880
+ id: string;
881
+ /**
882
+ * 规则名称
883
+ * @defaultValue ''
884
+ * @public
885
+ */
886
+ name: string;
887
+ settings: RowStyleSettings[];
888
+ /**
889
+ * 过滤条件
890
+ * @defaultValue []
891
+ * @public
892
+ */
893
+ filters?: Array<FieldFilterCondition | FieldFilterConditions>;
894
+ script?: string;
895
+ constructor(props?: Partial<RowStyleRule>);
896
+ }
897
+ export declare class RowStyleSettings {
898
+ /**
899
+ * 颜色值。theme:跟随主题色;#4c78fc:具体颜色值
900
+ * @defaultValue 'theme'
901
+ * @public
902
+ */
903
+ color: string;
904
+ /**
905
+ * 生效列字段
906
+ */
907
+ fieldCodes: string[];
908
+ /**
909
+ * 样式类型,background单元格背景色,fontColor单元格字体色
910
+ */
911
+ type: 'background' | 'fontColor';
912
+ /**
913
+ * 作用范围,row整行,col整列
914
+ */
915
+ scope: 'row' | 'col';
916
+ constructor(props: Partial<RowStyleSettings>);
917
+ }
918
+ export declare class RowStyle {
919
+ type: 'none' | 'interval' | 'rules';
920
+ interval: {
921
+ color?: string;
922
+ };
923
+ rules: RowStyleRule[];
924
+ constructor(props?: Partial<RowStyle>);
925
+ }