@byteluck-fe/model-driven-core 2.3.1-beta.3 → 2.3.1-beta.6

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