@byteluck-fe/model-driven-core 2.6.0-alpha.4 → 2.6.0-alpha.8

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 (80) hide show
  1. package/dist/esm/api-doc-index.js +4 -4
  2. package/dist/esm/common/BaseControl/designer.js +225 -305
  3. package/dist/esm/common/BaseControl/index.js +7 -7
  4. package/dist/esm/common/BaseControl/property.js +9 -9
  5. package/dist/esm/common/BaseControl/runtime.js +16 -16
  6. package/dist/esm/common/ColumnControl/designer.js +5 -5
  7. package/dist/esm/common/ColumnControl/index.js +6 -6
  8. package/dist/esm/common/ColumnControl/property.js +36 -36
  9. package/dist/esm/common/ColumnControl/runtime.js +5 -5
  10. package/dist/esm/common/ControlArray.js +8 -8
  11. package/dist/esm/common/FormControl/designer.js +8 -8
  12. package/dist/esm/common/FormControl/index.js +6 -6
  13. package/dist/esm/common/FormControl/property.js +66 -66
  14. package/dist/esm/common/FormControl/runtime.js +5 -5
  15. package/dist/esm/common/LayoutControl/designer.js +102 -196
  16. package/dist/esm/common/LayoutControl/index.js +6 -6
  17. package/dist/esm/common/LayoutControl/property.js +3 -3
  18. package/dist/esm/common/LayoutControl/runtime.js +7 -7
  19. package/dist/esm/common/ListControl/designer.js +84 -184
  20. package/dist/esm/common/ListControl/index.js +6 -6
  21. package/dist/esm/common/ListControl/property.js +5 -5
  22. package/dist/esm/common/ListControl/runtime.js +7 -7
  23. package/dist/esm/common/SearchViewControl/designer.js +5 -5
  24. package/dist/esm/common/SearchViewControl/index.js +6 -6
  25. package/dist/esm/common/SearchViewControl/property.js +4 -4
  26. package/dist/esm/common/SearchViewControl/runtime.js +5 -5
  27. package/dist/esm/common/Validator.js +5 -5
  28. package/dist/esm/common/WrapControl/designer.js +5 -5
  29. package/dist/esm/common/WrapControl/index.js +6 -6
  30. package/dist/esm/common/WrapControl/property.js +3 -3
  31. package/dist/esm/common/WrapControl/runtime.js +5 -5
  32. package/dist/esm/common/controlHooksEmitter.js +1 -1
  33. package/dist/esm/common/index.js +12 -12
  34. package/dist/esm/common/initLinkOperationRules.js +6 -6
  35. package/dist/esm/common/initOptionAndDataSourceRules.js +82 -82
  36. package/dist/esm/framework/RegisterControls.js +179 -122
  37. package/dist/esm/framework/index.js +326 -326
  38. package/dist/esm/index.js +3 -3
  39. package/dist/index.umd.js +1 -1
  40. package/dist/types/api-doc-index.d.ts +4 -4
  41. package/dist/types/common/BaseControl/designer.d.ts +62 -62
  42. package/dist/types/common/BaseControl/index.d.ts +13 -13
  43. package/dist/types/common/BaseControl/property.d.ts +22 -22
  44. package/dist/types/common/BaseControl/runtime.d.ts +22 -22
  45. package/dist/types/common/BaseControl/types.d.ts +35 -35
  46. package/dist/types/common/ColumnControl/designer.d.ts +10 -10
  47. package/dist/types/common/ColumnControl/index.d.ts +12 -12
  48. package/dist/types/common/ColumnControl/property.d.ts +73 -73
  49. package/dist/types/common/ColumnControl/runtime.d.ts +10 -10
  50. package/dist/types/common/ControlArray.d.ts +8 -8
  51. package/dist/types/common/FormControl/designer.d.ts +13 -13
  52. package/dist/types/common/FormControl/index.d.ts +12 -12
  53. package/dist/types/common/FormControl/property.d.ts +96 -96
  54. package/dist/types/common/FormControl/runtime.d.ts +11 -11
  55. package/dist/types/common/LayoutControl/designer.d.ts +21 -21
  56. package/dist/types/common/LayoutControl/index.d.ts +12 -12
  57. package/dist/types/common/LayoutControl/property.d.ts +6 -6
  58. package/dist/types/common/LayoutControl/runtime.d.ts +11 -11
  59. package/dist/types/common/ListControl/designer.d.ts +16 -16
  60. package/dist/types/common/ListControl/index.d.ts +12 -12
  61. package/dist/types/common/ListControl/property.d.ts +12 -12
  62. package/dist/types/common/ListControl/runtime.d.ts +12 -12
  63. package/dist/types/common/SearchViewControl/designer.d.ts +11 -11
  64. package/dist/types/common/SearchViewControl/index.d.ts +12 -12
  65. package/dist/types/common/SearchViewControl/property.d.ts +8 -8
  66. package/dist/types/common/SearchViewControl/runtime.d.ts +11 -11
  67. package/dist/types/common/Validator.d.ts +15 -15
  68. package/dist/types/common/WrapControl/designer.d.ts +11 -11
  69. package/dist/types/common/WrapControl/index.d.ts +12 -12
  70. package/dist/types/common/WrapControl/property.d.ts +6 -6
  71. package/dist/types/common/WrapControl/runtime.d.ts +11 -11
  72. package/dist/types/common/controlHooksEmitter.d.ts +4 -4
  73. package/dist/types/common/index.d.ts +12 -12
  74. package/dist/types/common/initLinkOperationRules.d.ts +6 -6
  75. package/dist/types/common/initOptionAndDataSourceRules.d.ts +10 -10
  76. package/dist/types/framework/RegisterControls.d.ts +33 -33
  77. package/dist/types/framework/index.d.ts +616 -616
  78. package/dist/types/index.d.ts +3 -3
  79. package/dist/types/type.d.ts +91 -91
  80. package/package.json +3 -3
@@ -1,616 +1,616 @@
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
- constructor(props?: Partial<DataBind>);
27
- }
28
- export declare class AutoWidth {
29
- minWidth: number;
30
- maxWidth?: number;
31
- flex: number;
32
- constructor(props?: Partial<AutoWidth>);
33
- }
34
- export declare class MetaWidth extends AutoWidth {
35
- width: number;
36
- widthType: 'px' | 'auto';
37
- constructor(props?: Partial<MetaWidth>);
38
- }
39
- export declare class MetaAutoWidth {
40
- pc: MetaWidth;
41
- mobile: MetaWidth;
42
- constructor(props?: Partial<MetaAutoWidth>);
43
- }
44
- export declare class DataStorageDoc {
45
- type: 'firstThree' | 'custom';
46
- customOptions: string[];
47
- constructor(props?: Partial<DataStorageDoc>);
48
- }
49
- export declare class FormBind {
50
- dataCode: string;
51
- formKey: string;
52
- appId: string;
53
- constructor(props?: Partial<FormBind>);
54
- }
55
- export declare class FormSelectBind extends FormBind {
56
- primaryControlId: string;
57
- constructor(props?: Partial<FormSelectBind>);
58
- }
59
- declare class ListBindHeaderItem {
60
- fieldCode: string;
61
- constructor(props?: Partial<ListBindHeaderItem>);
62
- }
63
- /**
64
- * 列表绑定配置
65
- */
66
- export declare class ListBind {
67
- /**
68
- * 应用ID
69
- * @public
70
- */
71
- appId: string;
72
- /**
73
- * 表单ID
74
- * @public
75
- */
76
- formKey: string;
77
- /**
78
- * 显示字段
79
- * @public
80
- */
81
- headers: ListBindHeaderItem[];
82
- constructor(props?: Partial<ListBind>);
83
- }
84
- export declare class FieldBindItem {
85
- fieldName: string;
86
- fieldCode: string;
87
- fieldType: FieldTypes;
88
- constructor(props?: Partial<FieldBindItem>);
89
- }
90
- export declare class SubListItem extends FormBind {
91
- title: string;
92
- svcCode: string;
93
- isOpenFilter: boolean;
94
- filters: Array<FieldFilterCondition | FieldFilterConditions>;
95
- constructor(props?: Partial<SubListItem>);
96
- }
97
- export declare class SubListPageConfig {
98
- type: string;
99
- formBind: FormBind;
100
- displayFields: FieldBindItem[];
101
- sublists: SubListItem[];
102
- constructor(props?: Partial<SubListPageConfig>);
103
- }
104
- export declare class LeftVariable {
105
- type?: FieldTypes;
106
- value?: string;
107
- constructor(props?: Partial<LeftVariable>);
108
- }
109
- export declare class RightVariable {
110
- type: 'form' | 'system' | 'custom';
111
- value: string[];
112
- displayBos: Record<string, unknown>[];
113
- constructor(props?: Partial<RightVariable>);
114
- }
115
- export declare class FieldFilterConditions {
116
- id: string;
117
- ruleId: number;
118
- type: string;
119
- level: number;
120
- value: 'and' | 'or';
121
- children: Array<FieldFilterCondition | FieldFilterConditions>;
122
- constructor(props?: Partial<FieldFilterConditions>);
123
- }
124
- export declare class FieldFilterCondition {
125
- id: string;
126
- ruleId: number;
127
- type: string;
128
- symbol: string;
129
- checked: boolean;
130
- describe: string;
131
- leftVariableBo: LeftVariable;
132
- rightVariableBo: RightVariable;
133
- constructor(props?: Partial<FieldFilterCondition>);
134
- }
135
- /**
136
- * 数据填充项
137
- * @public
138
- */
139
- export declare class MultistageFillingItem {
140
- /**
141
- * 控件ID
142
- * @defaultValue ''
143
- * @public
144
- */
145
- controlId: string;
146
- /**
147
- * 字段
148
- * @defaultValue ''
149
- * @public
150
- */
151
- fieldCode: string;
152
- /**
153
- * 字段类型。事件在填充时,需要根据数据类型进行判断处理动作。
154
- * @defaultValue ''
155
- * @public
156
- */
157
- fieldType: string;
158
- /**
159
- * 属性名称。如果是ObjectDataBind的控件,可以指定填充到哪个数据项。
160
- * @defaultValue ''
161
- * @public
162
- * */
163
- propName: string;
164
- constructor(props: Partial<MultistageFillingItem>);
165
- }
166
- export declare class DisplayBoListItem {
167
- type: 'FIELD' | 'MOSAICS';
168
- value: string;
169
- fieldType?: FieldTypes;
170
- constructor(props?: Partial<DisplayBoListItem>);
171
- }
172
- export declare class DataSourceOrderItem {
173
- columnName: string;
174
- desc: boolean;
175
- constructor(props: Partial<DataSourceOrderItem>);
176
- }
177
- export declare class DataSourceDataSetValue {
178
- code: string;
179
- value: string;
180
- field_type?: FieldTypes;
181
- constructor(props: Partial<DataSourceDataSetValue>);
182
- }
183
- export declare class DataSourceParamItem {
184
- /**
185
- * 字段ID
186
- */
187
- id: string;
188
- limit: number;
189
- orders: DataSourceOrderItem[];
190
- formKey: string;
191
- dataSet: DataSourceDataSetValue[];
192
- constructor(props: Partial<DataSourceParamItem>);
193
- }
194
- /**
195
- * 数据源绑定配置
196
- * @public
197
- */
198
- export declare class DataSourceBind {
199
- /**
200
- * 绑定数据源id
201
- * @defaultValue ''
202
- * @public
203
- */
204
- dataCode: string;
205
- /**
206
- * 存储值
207
- * @defaultValue ''
208
- * @public
209
- */
210
- valueFieldCode: string;
211
- /**
212
- * 显示值
213
- * @defaultValue []
214
- * @public
215
- */
216
- displayBoList: DisplayBoListItem[];
217
- /**
218
- * 绑定服务
219
- * @defaultValue ''
220
- * @public
221
- */
222
- svcCode: string;
223
- /**
224
- * 应用Id
225
- * @defaultValue ''
226
- * @public
227
- */
228
- appId?: string;
229
- /**
230
- * 过滤条件
231
- * @defaultValue []
232
- * @public
233
- */
234
- filters?: Array<FieldFilterCondition | FieldFilterConditions>;
235
- /**
236
- * 过滤条件-查看过滤
237
- * @defaultValue []
238
- * @public
239
- */
240
- viewFilters?: Array<FieldFilterCondition | FieldFilterConditions>;
241
- /**
242
- * 是否开启查看过滤
243
- * @defaultValue 0:未开启;1:开启
244
- * @public
245
- */
246
- isOpenViewFilters?: number;
247
- /**
248
- * 排序
249
- * @defaultValue []
250
- * @public
251
- */
252
- orders?: DataSourceOrderItem[];
253
- /**
254
- * 显示排序
255
- * @defaultValue true
256
- * @public
257
- */
258
- showOrder?: boolean;
259
- constructor(props?: Partial<DataSourceBind>);
260
- }
261
- export declare class SelectedContentConfig {
262
- /**
263
- * 展示已选内容
264
- * @defaultValue ''
265
- * @public
266
- */
267
- dataCode: string;
268
- /**
269
- * 展示已选明细
270
- * @defaultValue []
271
- * @public
272
- */
273
- displayBoList: any[];
274
- constructor(props?: Partial<SelectedContentConfig>);
275
- }
276
- export interface CustomAttribute {
277
- key: string;
278
- name: string;
279
- required?: boolean;
280
- }
281
- export declare class LinkOperationOption {
282
- code: string;
283
- color: string;
284
- command: undefined | string;
285
- confirmMessage: undefined;
286
- defaultState: string;
287
- formKey: undefined | string;
288
- icon: string;
289
- needConfirm: boolean;
290
- openType: string;
291
- priorityProcess: boolean;
292
- constructor(props?: Partial<LinkOperationOption>);
293
- }
294
- export declare class CustomAttributeItem {
295
- name: string;
296
- key: string;
297
- value: DisplayBoListItem[];
298
- constructor(props?: Partial<CustomAttributeItem>);
299
- }
300
- export declare class SuperDataSourceBind extends DataSourceBind {
301
- attributes: CustomAttributeItem[];
302
- constructor(props?: Omit<Partial<SuperDataSourceBind>, 'attributes'> & {
303
- attributes?: Partial<CustomAttributeItem>[];
304
- });
305
- }
306
- export declare class OrganizationDataSourceBind extends DataSourceBind {
307
- attributes: CustomAttributeItem[];
308
- formCode: string;
309
- constructor(props?: Omit<Partial<OrganizationDataSourceBind>, 'attributes'> & {
310
- attributes?: Partial<CustomAttributeItem>[];
311
- });
312
- }
313
- export declare class TreeDataSourceBind extends SuperDataSourceBind {
314
- rootNode: RightVariable;
315
- filterCode?: String;
316
- constructor(props?: Omit<Partial<TreeDataSourceBind>, 'attributes'> & {
317
- attributes?: Partial<CustomAttributeItem>[];
318
- });
319
- }
320
- declare class FillBind {
321
- dataCode: string;
322
- appId: string;
323
- fillList: MultistageFillingItem[];
324
- constructor(props?: Partial<FillBind>);
325
- }
326
- /**
327
- * FillPayloadBind 填充配置
328
- * 填充的配置和需要携带的数据
329
- * @public
330
- * */
331
- export declare class FillPayloadBind extends FillBind {
332
- /**
333
- * 数据源过滤条件
334
- * @defaultValue []
335
- * @public
336
- **/
337
- filters: Array<FieldFilterCondition | FieldFilterConditions>;
338
- /**
339
- * 数据源过滤条件-查看
340
- * @defaultValue []
341
- * @public
342
- **/
343
- viewFilters: Array<FieldFilterCondition | FieldFilterConditions>;
344
- /**
345
- * 数据源排序条件
346
- * @defaultValue []
347
- * @public
348
- **/
349
- orders: DataSourceOrderItem[];
350
- constructor(props?: Partial<FillPayloadBind>);
351
- }
352
- /**
353
- * FillBackBind 回填需要的配置和参数
354
- * @public
355
- */
356
- export declare class FillBackBind extends FillBind {
357
- /**
358
- * 回填模式。current 当前表(根据按钮所在位置来区分,而不是通过主表和子表来区分)| subtable 子表
359
- * @defaultValue 'current'
360
- * @public
361
- * */
362
- mode: 'current' | 'subtable';
363
- /**
364
- * 多选
365
- * @defaultValue false
366
- * @public
367
- */
368
- multiple: boolean;
369
- constructor(props?: Partial<FillBackBind>);
370
- }
371
- /**
372
- * 目前仅subtable,未来的dataview/datagrid/datalist使用该接口
373
- * dataview/datalist都支持嵌套使用
374
- */
375
- export interface DataSourceBindLayout {
376
- getChildrenFormControl(): unknown[];
377
- getChildrenDataSourceBindLayout(): unknown[];
378
- }
379
- export declare class Language {
380
- zh: string;
381
- en: string;
382
- ja: string;
383
- constructor(props?: Partial<Language>);
384
- }
385
- export declare class RegularRules {
386
- stencilName: string;
387
- expression: string;
388
- errMessage: string;
389
- constructor(props?: Partial<RegularRules>);
390
- }
391
- /**
392
- * 选项设置-自定义选项
393
- * @public
394
- */
395
- export declare class OptionSetting {
396
- readonly id: string;
397
- /**
398
- * 显示值
399
- * @defaultValue ''
400
- * @public
401
- */
402
- label: string;
403
- /**
404
- * 选项ID
405
- * @defaultValue this.label
406
- * @public
407
- */
408
- value: string;
409
- constructor(props?: Partial<OptionSetting>);
410
- }
411
- export declare class ImageOptionSetting extends OptionSetting {
412
- image: string;
413
- type: 'attachment' | 'src';
414
- constructor(props?: Partial<ImageOptionSetting>);
415
- }
416
- export declare function initOptions(options?: Partial<OptionSetting>[]): OptionSetting[];
417
- export declare function initImageOptions(options?: Partial<ImageOptionSetting>[]): ImageOptionSetting[];
418
- export declare class ObjectDataBind {
419
- [key: string]: DataBind;
420
- }
421
- export declare class AmountDataBind extends ObjectDataBind {
422
- amount: DataBind;
423
- currency: DataBind;
424
- constructor(props?: Partial<AmountDataBind>);
425
- }
426
- export declare class AmountValue {
427
- amount: number | '';
428
- currency: AMOUNT_TYPE;
429
- constructor(props?: Partial<AmountValue>);
430
- }
431
- export declare class RangeDataBind extends ObjectDataBind {
432
- min: DataBind;
433
- max: DataBind;
434
- constructor(props?: Partial<AmountDataBind>);
435
- }
436
- export declare class RangeDateValue {
437
- min: string;
438
- max: string;
439
- constructor(props?: Partial<RangeDateValue>);
440
- }
441
- export declare class AddressValue {
442
- city?: string;
443
- cityDisplay?: string;
444
- district?: string;
445
- districtDisplay?: string;
446
- province?: string;
447
- provinceDisplay?: string;
448
- constructor(props?: Partial<AddressValue>);
449
- }
450
- export declare class CalcDataBind extends ObjectDataBind {
451
- result: DataBind;
452
- unit: DataBind;
453
- constructor(props?: Partial<CalcDataBind>);
454
- }
455
- export declare class CalcValue {
456
- result: number | 0;
457
- unit: string;
458
- constructor(props?: Partial<CalcValue>);
459
- }
460
- export declare enum AMOUNT_TYPE {
461
- CNY = "CNY",
462
- USD = "USD",
463
- JPY = "JPY",
464
- EUR = "EUR",
465
- INR = "INR",
466
- IDR = "IDR",
467
- BRL = "BRL",
468
- AED = "AED",
469
- AUD = "AUD",
470
- CAD = "CAD",
471
- EGP = "EGP",
472
- GBP = "GBP",
473
- ZAR = "ZAR",
474
- KRW = "KRW",
475
- MAD = "MAD",
476
- MXN = "MXN",
477
- MYR = "MYR",
478
- PHP = "PHP",
479
- PLN = "PLN",
480
- RUB = "RUB",
481
- SGD = "SGD",
482
- THB = "THB",
483
- TRY = "TRY",
484
- TWD = "TWD",
485
- VND = "VND",
486
- HKD = "HKD",
487
- IEP = "IEP"
488
- }
489
- /**
490
- * 选项设置
491
- * REQUIRED: 必填
492
- * isHide: 隐藏
493
- * IS_SHOW_UNIT: 单位
494
- * CAN_SEARCH: 支持搜索
495
- * MULTIPLE: 允许选中多个日期
496
- * SUBMIT_SELECT_CURRENCY: 提交时选择币种
497
- */
498
- export declare enum COMMON_SETTING_TYPE {
499
- DEFAULT_DISPLAY = "defaultDisplay",
500
- REQUIRED = "required",
501
- IS_HIDE = "isHide",
502
- IS_SHOW_UNIT = "isShowUnit",
503
- IMD_SEARCH = "immediatelySearch",
504
- MULTIPLE = "multiple",
505
- SUBMIT_SELECT_CURRENCY = "submitSelectCurrency",
506
- CAPTION = "caption",
507
- IS_HIDE_CAPTION = "isHideCaption",
508
- DEFAULT_SHOW_OPTIONS = "defaultShowOptions",
509
- CAN_SEARCH = "canSearch",
510
- CAN_CHECK = "canCheck",
511
- CAN_EDIT = "canEdit",
512
- CAN_DELETE = "canDelete",
513
- SHOW_UPPER_CASE = "showUpperCase",
514
- MICROMETER = "micrometer",
515
- PRECISION = "precision",
516
- PERCENTAGE = "percentage",
517
- OPTIONAL_LEVEL = "optionalLevel",
518
- CONTAINS_SUB_NODE = "containsSubNode",
519
- DEFAULT_COLLAPSE = "defaultCollapse",
520
- CAN_VIEW_FORM = "canViewForm",
521
- VIEW_FORM_MODEL_TYPE = "viewFormModelType",
522
- SERVER_PAGINATION = "serverPagination",
523
- IS_SHOW_CAPTION_TIP = "isShowCaptionTip",
524
- ENCRYPTED = "encrypted",
525
- IS_INLINE_EDIT = "isInlineEdit",
526
- REVISIONS_MODE = "revisionsMode",
527
- ALLOW_COPY_OPTIONS = "allowCopyOptions"
528
- }
529
- export declare enum PAGE_STATUS {
530
- UNKNOWN = 0,
531
- READONLY = 1,
532
- EDITABLE = 2,
533
- PRINT = 5
534
- }
535
- /**
536
- * 操作按钮
537
- * @public
538
- */
539
- export declare class OperationItem {
540
- /**
541
- * 是否显示
542
- * @defaultValue true
543
- * @public
544
- */
545
- isShow: boolean;
546
- /**
547
- * 优先访问流程表单
548
- * @defaultValue false
549
- * @public
550
- */
551
- priorityProcess: boolean;
552
- /**
553
- * 表单ID
554
- * @defaultValue ''
555
- * @public
556
- */
557
- formKey: string;
558
- /**
559
- * 显示文字
560
- * @defaultValue ''
561
- * @public
562
- */
563
- content: string;
564
- /**
565
- * 打开方式
566
- * @defaultValue 'modal'
567
- * @public
568
- */
569
- openType: 'modal' | 'window' | 'dialog' | 'tab';
570
- readonly type: string;
571
- constructor(props?: Partial<OperationItem>);
572
- }
573
- export declare class ViewOperationItem {
574
- id: string;
575
- title: string;
576
- filters: Array<FieldFilterCondition | FieldFilterConditions>;
577
- viewFilters: Array<FieldFilterCondition | FieldFilterConditions>;
578
- headers: ListBindHeaderItem[];
579
- constructor(props: Partial<ViewOperationItem>);
580
- }
581
- /**
582
- * 自定义权限项,用于Vue容器上,注册自定义的权限
583
- */
584
- export declare class CustomPermissionItem {
585
- /**
586
- * 人工输入的权限key
587
- */
588
- key: string;
589
- /**
590
- * 权限名称
591
- */
592
- caption: string;
593
- constructor(props: Partial<CustomPermissionItem>);
594
- }
595
- export declare class BaseStyle {
596
- width: number | '';
597
- height: number | '';
598
- widthConfig: 'px' | '%' | 'fill' | 'hug';
599
- heightConfig: 'px' | '%' | 'fill' | 'hug';
600
- constructor(props?: Partial<BaseStyle>);
601
- }
602
- export declare class OptObject {
603
- /**
604
- * 操作项编码
605
- * @defaultValue ''
606
- * @public
607
- */
608
- optCode: string;
609
- /**
610
- * 操作项类型
611
- * @defaultValue ''
612
- * @public
613
- */
614
- optType: string;
615
- constructor(props?: Partial<OptObject>);
616
- }
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
+ constructor(props?: Partial<DataBind>);
27
+ }
28
+ export declare class AutoWidth {
29
+ minWidth: number;
30
+ maxWidth?: number;
31
+ flex: number;
32
+ constructor(props?: Partial<AutoWidth>);
33
+ }
34
+ export declare class MetaWidth extends AutoWidth {
35
+ width: number;
36
+ widthType: 'px' | 'auto';
37
+ constructor(props?: Partial<MetaWidth>);
38
+ }
39
+ export declare class MetaAutoWidth {
40
+ pc: MetaWidth;
41
+ mobile: MetaWidth;
42
+ constructor(props?: Partial<MetaAutoWidth>);
43
+ }
44
+ export declare class DataStorageDoc {
45
+ type: 'firstThree' | 'custom';
46
+ customOptions: string[];
47
+ constructor(props?: Partial<DataStorageDoc>);
48
+ }
49
+ export declare class FormBind {
50
+ dataCode: string;
51
+ formKey: string;
52
+ appId: string;
53
+ constructor(props?: Partial<FormBind>);
54
+ }
55
+ export declare class FormSelectBind extends FormBind {
56
+ primaryControlId: string;
57
+ constructor(props?: Partial<FormSelectBind>);
58
+ }
59
+ declare class ListBindHeaderItem {
60
+ fieldCode: string;
61
+ constructor(props?: Partial<ListBindHeaderItem>);
62
+ }
63
+ /**
64
+ * 列表绑定配置
65
+ */
66
+ export declare class ListBind {
67
+ /**
68
+ * 应用ID
69
+ * @public
70
+ */
71
+ appId: string;
72
+ /**
73
+ * 表单ID
74
+ * @public
75
+ */
76
+ formKey: string;
77
+ /**
78
+ * 显示字段
79
+ * @public
80
+ */
81
+ headers: ListBindHeaderItem[];
82
+ constructor(props?: Partial<ListBind>);
83
+ }
84
+ export declare class FieldBindItem {
85
+ fieldName: string;
86
+ fieldCode: string;
87
+ fieldType: FieldTypes;
88
+ constructor(props?: Partial<FieldBindItem>);
89
+ }
90
+ export declare class SubListItem extends FormBind {
91
+ title: string;
92
+ svcCode: string;
93
+ isOpenFilter: boolean;
94
+ filters: Array<FieldFilterCondition | FieldFilterConditions>;
95
+ constructor(props?: Partial<SubListItem>);
96
+ }
97
+ export declare class SubListPageConfig {
98
+ type: string;
99
+ formBind: FormBind;
100
+ displayFields: FieldBindItem[];
101
+ sublists: SubListItem[];
102
+ constructor(props?: Partial<SubListPageConfig>);
103
+ }
104
+ export declare class LeftVariable {
105
+ type?: FieldTypes;
106
+ value?: string;
107
+ constructor(props?: Partial<LeftVariable>);
108
+ }
109
+ export declare class RightVariable {
110
+ type: 'form' | 'system' | 'custom';
111
+ value: string[];
112
+ displayBos: Record<string, unknown>[];
113
+ constructor(props?: Partial<RightVariable>);
114
+ }
115
+ export declare class FieldFilterConditions {
116
+ id: string;
117
+ ruleId: number;
118
+ type: string;
119
+ level: number;
120
+ value: 'and' | 'or';
121
+ children: Array<FieldFilterCondition | FieldFilterConditions>;
122
+ constructor(props?: Partial<FieldFilterConditions>);
123
+ }
124
+ export declare class FieldFilterCondition {
125
+ id: string;
126
+ ruleId: number;
127
+ type: string;
128
+ symbol: string;
129
+ checked: boolean;
130
+ describe: string;
131
+ leftVariableBo: LeftVariable;
132
+ rightVariableBo: RightVariable;
133
+ constructor(props?: Partial<FieldFilterCondition>);
134
+ }
135
+ /**
136
+ * 数据填充项
137
+ * @public
138
+ */
139
+ export declare class MultistageFillingItem {
140
+ /**
141
+ * 控件ID
142
+ * @defaultValue ''
143
+ * @public
144
+ */
145
+ controlId: string;
146
+ /**
147
+ * 字段
148
+ * @defaultValue ''
149
+ * @public
150
+ */
151
+ fieldCode: string;
152
+ /**
153
+ * 字段类型。事件在填充时,需要根据数据类型进行判断处理动作。
154
+ * @defaultValue ''
155
+ * @public
156
+ */
157
+ fieldType: string;
158
+ /**
159
+ * 属性名称。如果是ObjectDataBind的控件,可以指定填充到哪个数据项。
160
+ * @defaultValue ''
161
+ * @public
162
+ * */
163
+ propName: string;
164
+ constructor(props: Partial<MultistageFillingItem>);
165
+ }
166
+ export declare class DisplayBoListItem {
167
+ type: 'FIELD' | 'MOSAICS';
168
+ value: string;
169
+ fieldType?: FieldTypes;
170
+ constructor(props?: Partial<DisplayBoListItem>);
171
+ }
172
+ export declare class DataSourceOrderItem {
173
+ columnName: string;
174
+ desc: boolean;
175
+ constructor(props: Partial<DataSourceOrderItem>);
176
+ }
177
+ export declare class DataSourceDataSetValue {
178
+ code: string;
179
+ value: string;
180
+ field_type?: FieldTypes;
181
+ constructor(props: Partial<DataSourceDataSetValue>);
182
+ }
183
+ export declare class DataSourceParamItem {
184
+ /**
185
+ * 字段ID
186
+ */
187
+ id: string;
188
+ limit: number;
189
+ orders: DataSourceOrderItem[];
190
+ formKey: string;
191
+ dataSet: DataSourceDataSetValue[];
192
+ constructor(props: Partial<DataSourceParamItem>);
193
+ }
194
+ /**
195
+ * 数据源绑定配置
196
+ * @public
197
+ */
198
+ export declare class DataSourceBind {
199
+ /**
200
+ * 绑定数据源id
201
+ * @defaultValue ''
202
+ * @public
203
+ */
204
+ dataCode: string;
205
+ /**
206
+ * 存储值
207
+ * @defaultValue ''
208
+ * @public
209
+ */
210
+ valueFieldCode: string;
211
+ /**
212
+ * 显示值
213
+ * @defaultValue []
214
+ * @public
215
+ */
216
+ displayBoList: DisplayBoListItem[];
217
+ /**
218
+ * 绑定服务
219
+ * @defaultValue ''
220
+ * @public
221
+ */
222
+ svcCode: string;
223
+ /**
224
+ * 应用Id
225
+ * @defaultValue ''
226
+ * @public
227
+ */
228
+ appId?: string;
229
+ /**
230
+ * 过滤条件
231
+ * @defaultValue []
232
+ * @public
233
+ */
234
+ filters?: Array<FieldFilterCondition | FieldFilterConditions>;
235
+ /**
236
+ * 过滤条件-查看过滤
237
+ * @defaultValue []
238
+ * @public
239
+ */
240
+ viewFilters?: Array<FieldFilterCondition | FieldFilterConditions>;
241
+ /**
242
+ * 是否开启查看过滤
243
+ * @defaultValue 0:未开启;1:开启
244
+ * @public
245
+ */
246
+ isOpenViewFilters?: number;
247
+ /**
248
+ * 排序
249
+ * @defaultValue []
250
+ * @public
251
+ */
252
+ orders?: DataSourceOrderItem[];
253
+ /**
254
+ * 显示排序
255
+ * @defaultValue true
256
+ * @public
257
+ */
258
+ showOrder?: boolean;
259
+ constructor(props?: Partial<DataSourceBind>);
260
+ }
261
+ export declare class SelectedContentConfig {
262
+ /**
263
+ * 展示已选内容
264
+ * @defaultValue ''
265
+ * @public
266
+ */
267
+ dataCode: string;
268
+ /**
269
+ * 展示已选明细
270
+ * @defaultValue []
271
+ * @public
272
+ */
273
+ displayBoList: any[];
274
+ constructor(props?: Partial<SelectedContentConfig>);
275
+ }
276
+ export interface CustomAttribute {
277
+ key: string;
278
+ name: string;
279
+ required?: boolean;
280
+ }
281
+ export declare class LinkOperationOption {
282
+ code: string;
283
+ color: string;
284
+ command: undefined | string;
285
+ confirmMessage: undefined;
286
+ defaultState: string;
287
+ formKey: undefined | string;
288
+ icon: string;
289
+ needConfirm: boolean;
290
+ openType: string;
291
+ priorityProcess: boolean;
292
+ constructor(props?: Partial<LinkOperationOption>);
293
+ }
294
+ export declare class CustomAttributeItem {
295
+ name: string;
296
+ key: string;
297
+ value: DisplayBoListItem[];
298
+ constructor(props?: Partial<CustomAttributeItem>);
299
+ }
300
+ export declare class SuperDataSourceBind extends DataSourceBind {
301
+ attributes: CustomAttributeItem[];
302
+ constructor(props?: Omit<Partial<SuperDataSourceBind>, 'attributes'> & {
303
+ attributes?: Partial<CustomAttributeItem>[];
304
+ });
305
+ }
306
+ export declare class OrganizationDataSourceBind extends DataSourceBind {
307
+ attributes: CustomAttributeItem[];
308
+ formCode: string;
309
+ constructor(props?: Omit<Partial<OrganizationDataSourceBind>, 'attributes'> & {
310
+ attributes?: Partial<CustomAttributeItem>[];
311
+ });
312
+ }
313
+ export declare class TreeDataSourceBind extends SuperDataSourceBind {
314
+ rootNode: RightVariable;
315
+ filterCode?: String;
316
+ constructor(props?: Omit<Partial<TreeDataSourceBind>, 'attributes'> & {
317
+ attributes?: Partial<CustomAttributeItem>[];
318
+ });
319
+ }
320
+ declare class FillBind {
321
+ dataCode: string;
322
+ appId: string;
323
+ fillList: MultistageFillingItem[];
324
+ constructor(props?: Partial<FillBind>);
325
+ }
326
+ /**
327
+ * FillPayloadBind 填充配置
328
+ * 填充的配置和需要携带的数据
329
+ * @public
330
+ * */
331
+ export declare class FillPayloadBind extends FillBind {
332
+ /**
333
+ * 数据源过滤条件
334
+ * @defaultValue []
335
+ * @public
336
+ **/
337
+ filters: Array<FieldFilterCondition | FieldFilterConditions>;
338
+ /**
339
+ * 数据源过滤条件-查看
340
+ * @defaultValue []
341
+ * @public
342
+ **/
343
+ viewFilters: Array<FieldFilterCondition | FieldFilterConditions>;
344
+ /**
345
+ * 数据源排序条件
346
+ * @defaultValue []
347
+ * @public
348
+ **/
349
+ orders: DataSourceOrderItem[];
350
+ constructor(props?: Partial<FillPayloadBind>);
351
+ }
352
+ /**
353
+ * FillBackBind 回填需要的配置和参数
354
+ * @public
355
+ */
356
+ export declare class FillBackBind extends FillBind {
357
+ /**
358
+ * 回填模式。current 当前表(根据按钮所在位置来区分,而不是通过主表和子表来区分)| subtable 子表
359
+ * @defaultValue 'current'
360
+ * @public
361
+ * */
362
+ mode: 'current' | 'subtable';
363
+ /**
364
+ * 多选
365
+ * @defaultValue false
366
+ * @public
367
+ */
368
+ multiple: boolean;
369
+ constructor(props?: Partial<FillBackBind>);
370
+ }
371
+ /**
372
+ * 目前仅subtable,未来的dataview/datagrid/datalist使用该接口
373
+ * dataview/datalist都支持嵌套使用
374
+ */
375
+ export interface DataSourceBindLayout {
376
+ getChildrenFormControl(): unknown[];
377
+ getChildrenDataSourceBindLayout(): unknown[];
378
+ }
379
+ export declare class Language {
380
+ zh: string;
381
+ en: string;
382
+ ja: string;
383
+ constructor(props?: Partial<Language>);
384
+ }
385
+ export declare class RegularRules {
386
+ stencilName: string;
387
+ expression: string;
388
+ errMessage: string;
389
+ constructor(props?: Partial<RegularRules>);
390
+ }
391
+ /**
392
+ * 选项设置-自定义选项
393
+ * @public
394
+ */
395
+ export declare class OptionSetting {
396
+ readonly id: string;
397
+ /**
398
+ * 显示值
399
+ * @defaultValue ''
400
+ * @public
401
+ */
402
+ label: string;
403
+ /**
404
+ * 选项ID
405
+ * @defaultValue this.label
406
+ * @public
407
+ */
408
+ value: string;
409
+ constructor(props?: Partial<OptionSetting>);
410
+ }
411
+ export declare class ImageOptionSetting extends OptionSetting {
412
+ image: string;
413
+ type: 'attachment' | 'src';
414
+ constructor(props?: Partial<ImageOptionSetting>);
415
+ }
416
+ export declare function initOptions(options?: Partial<OptionSetting>[]): OptionSetting[];
417
+ export declare function initImageOptions(options?: Partial<ImageOptionSetting>[]): ImageOptionSetting[];
418
+ export declare class ObjectDataBind {
419
+ [key: string]: DataBind;
420
+ }
421
+ export declare class AmountDataBind extends ObjectDataBind {
422
+ amount: DataBind;
423
+ currency: DataBind;
424
+ constructor(props?: Partial<AmountDataBind>);
425
+ }
426
+ export declare class AmountValue {
427
+ amount: number | '';
428
+ currency: AMOUNT_TYPE;
429
+ constructor(props?: Partial<AmountValue>);
430
+ }
431
+ export declare class RangeDataBind extends ObjectDataBind {
432
+ min: DataBind;
433
+ max: DataBind;
434
+ constructor(props?: Partial<AmountDataBind>);
435
+ }
436
+ export declare class RangeDateValue {
437
+ min: string;
438
+ max: string;
439
+ constructor(props?: Partial<RangeDateValue>);
440
+ }
441
+ export declare class AddressValue {
442
+ city?: string;
443
+ cityDisplay?: string;
444
+ district?: string;
445
+ districtDisplay?: string;
446
+ province?: string;
447
+ provinceDisplay?: string;
448
+ constructor(props?: Partial<AddressValue>);
449
+ }
450
+ export declare class CalcDataBind extends ObjectDataBind {
451
+ result: DataBind;
452
+ unit: DataBind;
453
+ constructor(props?: Partial<CalcDataBind>);
454
+ }
455
+ export declare class CalcValue {
456
+ result: number | 0;
457
+ unit: string;
458
+ constructor(props?: Partial<CalcValue>);
459
+ }
460
+ export declare enum AMOUNT_TYPE {
461
+ CNY = "CNY",
462
+ USD = "USD",
463
+ JPY = "JPY",
464
+ EUR = "EUR",
465
+ INR = "INR",
466
+ IDR = "IDR",
467
+ BRL = "BRL",
468
+ AED = "AED",
469
+ AUD = "AUD",
470
+ CAD = "CAD",
471
+ EGP = "EGP",
472
+ GBP = "GBP",
473
+ ZAR = "ZAR",
474
+ KRW = "KRW",
475
+ MAD = "MAD",
476
+ MXN = "MXN",
477
+ MYR = "MYR",
478
+ PHP = "PHP",
479
+ PLN = "PLN",
480
+ RUB = "RUB",
481
+ SGD = "SGD",
482
+ THB = "THB",
483
+ TRY = "TRY",
484
+ TWD = "TWD",
485
+ VND = "VND",
486
+ HKD = "HKD",
487
+ IEP = "IEP"
488
+ }
489
+ /**
490
+ * 选项设置
491
+ * REQUIRED: 必填
492
+ * isHide: 隐藏
493
+ * IS_SHOW_UNIT: 单位
494
+ * CAN_SEARCH: 支持搜索
495
+ * MULTIPLE: 允许选中多个日期
496
+ * SUBMIT_SELECT_CURRENCY: 提交时选择币种
497
+ */
498
+ export declare enum COMMON_SETTING_TYPE {
499
+ DEFAULT_DISPLAY = "defaultDisplay",
500
+ REQUIRED = "required",
501
+ IS_HIDE = "isHide",
502
+ IS_SHOW_UNIT = "isShowUnit",
503
+ IMD_SEARCH = "immediatelySearch",
504
+ MULTIPLE = "multiple",
505
+ SUBMIT_SELECT_CURRENCY = "submitSelectCurrency",
506
+ CAPTION = "caption",
507
+ IS_HIDE_CAPTION = "isHideCaption",
508
+ DEFAULT_SHOW_OPTIONS = "defaultShowOptions",
509
+ CAN_SEARCH = "canSearch",
510
+ CAN_CHECK = "canCheck",
511
+ CAN_EDIT = "canEdit",
512
+ CAN_DELETE = "canDelete",
513
+ SHOW_UPPER_CASE = "showUpperCase",
514
+ MICROMETER = "micrometer",
515
+ PRECISION = "precision",
516
+ PERCENTAGE = "percentage",
517
+ OPTIONAL_LEVEL = "optionalLevel",
518
+ CONTAINS_SUB_NODE = "containsSubNode",
519
+ DEFAULT_COLLAPSE = "defaultCollapse",
520
+ CAN_VIEW_FORM = "canViewForm",
521
+ VIEW_FORM_MODEL_TYPE = "viewFormModelType",
522
+ SERVER_PAGINATION = "serverPagination",
523
+ IS_SHOW_CAPTION_TIP = "isShowCaptionTip",
524
+ ENCRYPTED = "encrypted",
525
+ IS_INLINE_EDIT = "isInlineEdit",
526
+ REVISIONS_MODE = "revisionsMode",
527
+ ALLOW_COPY_OPTIONS = "allowCopyOptions"
528
+ }
529
+ export declare enum PAGE_STATUS {
530
+ UNKNOWN = 0,
531
+ READONLY = 1,
532
+ EDITABLE = 2,
533
+ PRINT = 5
534
+ }
535
+ /**
536
+ * 操作按钮
537
+ * @public
538
+ */
539
+ export declare class OperationItem {
540
+ /**
541
+ * 是否显示
542
+ * @defaultValue true
543
+ * @public
544
+ */
545
+ isShow: boolean;
546
+ /**
547
+ * 优先访问流程表单
548
+ * @defaultValue false
549
+ * @public
550
+ */
551
+ priorityProcess: boolean;
552
+ /**
553
+ * 表单ID
554
+ * @defaultValue ''
555
+ * @public
556
+ */
557
+ formKey: string;
558
+ /**
559
+ * 显示文字
560
+ * @defaultValue ''
561
+ * @public
562
+ */
563
+ content: string;
564
+ /**
565
+ * 打开方式
566
+ * @defaultValue 'modal'
567
+ * @public
568
+ */
569
+ openType: 'modal' | 'window' | 'dialog' | 'tab';
570
+ readonly type: string;
571
+ constructor(props?: Partial<OperationItem>);
572
+ }
573
+ export declare class ViewOperationItem {
574
+ id: string;
575
+ title: string;
576
+ filters: Array<FieldFilterCondition | FieldFilterConditions>;
577
+ viewFilters: Array<FieldFilterCondition | FieldFilterConditions>;
578
+ headers: ListBindHeaderItem[];
579
+ constructor(props: Partial<ViewOperationItem>);
580
+ }
581
+ /**
582
+ * 自定义权限项,用于Vue容器上,注册自定义的权限
583
+ */
584
+ export declare class CustomPermissionItem {
585
+ /**
586
+ * 人工输入的权限key
587
+ */
588
+ key: string;
589
+ /**
590
+ * 权限名称
591
+ */
592
+ caption: string;
593
+ constructor(props: Partial<CustomPermissionItem>);
594
+ }
595
+ export declare class BaseStyle {
596
+ width: number | '';
597
+ height: number | '';
598
+ widthConfig: 'px' | '%' | 'fill' | 'hug';
599
+ heightConfig: 'px' | '%' | 'fill' | 'hug';
600
+ constructor(props?: Partial<BaseStyle>);
601
+ }
602
+ export declare class OptObject {
603
+ /**
604
+ * 操作项编码
605
+ * @defaultValue ''
606
+ * @public
607
+ */
608
+ optCode: string;
609
+ /**
610
+ * 操作项类型
611
+ * @defaultValue ''
612
+ * @public
613
+ */
614
+ optType: string;
615
+ constructor(props?: Partial<OptObject>);
616
+ }