@gct-paas/schema 0.1.4-dev.10
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.
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/index.esm.min.mjs +1250 -0
- package/dist/index.min.cjs +1 -0
- package/dist/index.system.min.js +1 -0
- package/es/constants/index.d.ts +14 -0
- package/es/constants/index.mjs +370 -0
- package/es/index.d.ts +8 -0
- package/es/index.mjs +20 -0
- package/es/interface/common/data-linkage-config.d.ts +17 -0
- package/es/interface/designer.d.ts +99 -0
- package/es/interface/index.d.ts +6 -0
- package/es/interface/modal/i-modal-body.d.ts +15 -0
- package/es/interface/modal/i-modal-bottom-button.d.ts +15 -0
- package/es/interface/modal/i-modal-footer.d.ts +15 -0
- package/es/interface/modal/i-modal-props.d.ts +26 -0
- package/es/interface/modal/i-modal.d.ts +52 -0
- package/es/interface/modal/index.d.ts +17 -0
- package/es/interface/schema/index.d.ts +2 -0
- package/es/interface/schema/widget-props/i-button-props.d.ts +170 -0
- package/es/interface/schema/widget-props/i-display-props.d.ts +48 -0
- package/es/interface/schema/widget-props/i-form-container-props.d.ts +77 -0
- package/es/interface/schema/widget-props/i-form-input-props.d.ts +409 -0
- package/es/interface/schema/widget-props/i-layout-props.d.ts +77 -0
- package/es/interface/schema/widget-props/i-search-widget-props.d.ts +126 -0
- package/es/interface/schema/widget-props/i-table-column-props.d.ts +54 -0
- package/es/interface/schema/widget-props/i-table-props.d.ts +384 -0
- package/es/interface/schema/widget-props/index.d.ts +8 -0
- package/es/interface/schema/widget-types.d.ts +370 -0
- package/es/interface/widget/i-common.d.ts +42 -0
- package/es/interface/widget/i-editors.d.ts +240 -0
- package/es/interface/widget/i-events.d.ts +55 -0
- package/es/interface/widget/i-hooks-and-misc.d.ts +59 -0
- package/es/interface/widget/i-props.d.ts +177 -0
- package/es/interface/widget/i-schemas.d.ts +135 -0
- package/es/interface/widget/i-styles.d.ts +114 -0
- package/es/interface/widget/index.d.ts +53 -0
- package/es/interface/widget-info/i-designer-item-hooks.d.ts +21 -0
- package/es/interface/widget-info/i-designer-schema-exports.d.ts +13 -0
- package/es/interface/widget-info/i-widget-info-item.d.ts +78 -0
- package/es/interface/widget-info/i-widget-info.d.ts +19 -0
- package/es/interface/widget-info/index.d.ts +4 -0
- package/es/schema/common-config/base-button-config.d.ts +3 -0
- package/es/schema/common-config/base-button-config.mjs +84 -0
- package/es/schema/common-config/button-editor-config.d.ts +4 -0
- package/es/schema/common-config/button-editor-config.mjs +206 -0
- package/es/schema/common-config/button-props-func.d.ts +5 -0
- package/es/schema/common-config/button-props-func.mjs +11 -0
- package/es/schema/common-config/common-field-editor-config.d.ts +10 -0
- package/es/schema/common-config/common-field-editor-config.mjs +61 -0
- package/es/schema/common-config/common-style.d.ts +3 -0
- package/es/schema/common-config/common-style.mjs +85 -0
- package/es/schema/common-config/display-editor-config.d.ts +3 -0
- package/es/schema/common-config/display-editor-config.mjs +89 -0
- package/es/schema/common-config/permission-editor-config.d.ts +2 -0
- package/es/schema/common-config/permission-editor-config.mjs +23 -0
- package/es/schema/index.d.ts +9 -0
- package/es/schema/modal/modal-body.d.ts +2 -0
- package/es/schema/modal/modal-body.mjs +9 -0
- package/es/schema/modal/modal-footer.d.ts +2 -0
- package/es/schema/modal/modal-footer.mjs +9 -0
- package/es/schema/modal/modal.d.ts +8 -0
- package/es/schema/modal/modal.mjs +182 -0
- package/es/types/index.d.ts +1 -0
- package/es/utils/index.d.ts +3 -0
- package/es/utils/schema/index.d.ts +45 -0
- package/es/utils/schema/index.mjs +49 -0
- package/es/utils/schema-style/index.d.ts +108 -0
- package/es/utils/schema-style/index.mjs +155 -0
- package/es/utils/widget-info/widget-info.d.ts +104 -0
- package/es/utils/widget-info/widget-info.mjs +76 -0
- package/package.json +63 -0
|
@@ -0,0 +1,409 @@
|
|
|
1
|
+
import { DateRangeEnums, CURRENCY_ENUM, TIMETYPE_ENUM, BindCmpStyleEnum, fixedAlignENUM, FIELD_TYPE, EntityModelTypeEnum, CARD_TRIGGER_ENUM, DisplayType, TransactionMode, FieldSysVarDefaultValueEnum } from '@gct-paas/core';
|
|
2
|
+
import { LowCodeModal, LowCodeWidget } from '../..';
|
|
3
|
+
/** 开关组件属性 */
|
|
4
|
+
export interface SwitchProps extends LowCodeWidget.FormItemProps {
|
|
5
|
+
checkedChildren?: string;
|
|
6
|
+
unCheckedChildren?: string;
|
|
7
|
+
modelKey: string;
|
|
8
|
+
fieldType?: FIELD_TYPE.BOOLEAN;
|
|
9
|
+
}
|
|
10
|
+
/** 用户选择器属性 */
|
|
11
|
+
export interface UserProps extends LowCodeWidget.FormItemProps {
|
|
12
|
+
/** 默认当前用户 */
|
|
13
|
+
defaultMain?: FieldSysVarDefaultValueEnum;
|
|
14
|
+
/** 可清空 */
|
|
15
|
+
clearable: boolean;
|
|
16
|
+
/** 选择方式 */
|
|
17
|
+
selectType: BindCmpStyleEnum;
|
|
18
|
+
/** 字段类型 */
|
|
19
|
+
fieldType?: FIELD_TYPE.USER | FIELD_TYPE.USER_MULTI;
|
|
20
|
+
modelKey: string;
|
|
21
|
+
/** 自动填充配置 */
|
|
22
|
+
enableAutofill: boolean;
|
|
23
|
+
autofillRules: {
|
|
24
|
+
fromField: string;
|
|
25
|
+
toField: string;
|
|
26
|
+
}[];
|
|
27
|
+
/** 部门范围 */
|
|
28
|
+
enableDepScope: boolean;
|
|
29
|
+
departmentScope: string;
|
|
30
|
+
}
|
|
31
|
+
/** 部门选择器属性 */
|
|
32
|
+
export interface DeptProps extends LowCodeWidget.FormItemProps {
|
|
33
|
+
/** 默认当前用户部门 */
|
|
34
|
+
defaultMain?: FieldSysVarDefaultValueEnum;
|
|
35
|
+
/** 可清空 */
|
|
36
|
+
clearable: boolean;
|
|
37
|
+
/** 选择方式 */
|
|
38
|
+
selectType: BindCmpStyleEnum;
|
|
39
|
+
/** 字段类型 */
|
|
40
|
+
fieldType?: FIELD_TYPE.ORG | FIELD_TYPE.ORG_MULTI;
|
|
41
|
+
modelKey: string;
|
|
42
|
+
/** 自动填充配置 */
|
|
43
|
+
enableAutofill: boolean;
|
|
44
|
+
autofillRules: {
|
|
45
|
+
fromField: string;
|
|
46
|
+
toField: string;
|
|
47
|
+
}[];
|
|
48
|
+
}
|
|
49
|
+
/** 打印机选择器属性 */
|
|
50
|
+
export interface PrinterProps extends LowCodeWidget.FormItemProps {
|
|
51
|
+
/** 可清空 */
|
|
52
|
+
clearable: boolean;
|
|
53
|
+
/** 字段类型 */
|
|
54
|
+
fieldType?: FIELD_TYPE.PRINTER;
|
|
55
|
+
modelKey: string;
|
|
56
|
+
multiple: boolean;
|
|
57
|
+
selectOption: IObject;
|
|
58
|
+
}
|
|
59
|
+
/** 签名组件属性 */
|
|
60
|
+
export interface SignatureProps extends LowCodeWidget.FormItemProps {
|
|
61
|
+
/** 字段类型 */
|
|
62
|
+
fieldType?: FIELD_TYPE.SIGNATURE;
|
|
63
|
+
signatureType: string | undefined;
|
|
64
|
+
multiple: boolean;
|
|
65
|
+
displayMaxNum?: number;
|
|
66
|
+
displayStyle: string | undefined;
|
|
67
|
+
}
|
|
68
|
+
/** 模板树选择器属性 */
|
|
69
|
+
export interface TmplTreeSelectProps extends LowCodeWidget.FormItemProps {
|
|
70
|
+
/** 字段类型 */
|
|
71
|
+
fieldType?: FIELD_TYPE.ONLINE_FORM_TEMPLATE | FIELD_TYPE.E_DHR_TEMPLATE;
|
|
72
|
+
multiple?: boolean;
|
|
73
|
+
clearable?: boolean;
|
|
74
|
+
/** 是否过滤表单类型 */
|
|
75
|
+
isFilterFormType: boolean;
|
|
76
|
+
/** 表单类型列表 */
|
|
77
|
+
formTypeList: string[];
|
|
78
|
+
}
|
|
79
|
+
/** 在线表单组件属性 */
|
|
80
|
+
export interface OnlineFormProps extends LowCodeWidget.FormItemProps {
|
|
81
|
+
/** 关联模版方式 */
|
|
82
|
+
templateRefType: TransactionMode;
|
|
83
|
+
/** 关联表单模版字段 */
|
|
84
|
+
refField: string;
|
|
85
|
+
/** 关联关系配置 */
|
|
86
|
+
ruleConfig: IObject;
|
|
87
|
+
}
|
|
88
|
+
/** 树形选择器属性 */
|
|
89
|
+
export interface TreeSelectProps extends LowCodeWidget.FormItemProps {
|
|
90
|
+
/** 字段类型 */
|
|
91
|
+
fieldType?: FIELD_TYPE.ONLINE_FORM_TEMPLATE;
|
|
92
|
+
multiple: boolean;
|
|
93
|
+
/** 搜索 */
|
|
94
|
+
showSearch: boolean;
|
|
95
|
+
}
|
|
96
|
+
/** 范围用户选择器属性 */
|
|
97
|
+
export interface RangeUserProps extends LowCodeWidget.FormItemProps {
|
|
98
|
+
/** 可清空 */
|
|
99
|
+
clearable: boolean;
|
|
100
|
+
/** 字段类型 */
|
|
101
|
+
fieldType?: FIELD_TYPE.RANGE_USER;
|
|
102
|
+
modelKey: string;
|
|
103
|
+
multiple: boolean;
|
|
104
|
+
}
|
|
105
|
+
/** 日期时间选择器属性 */
|
|
106
|
+
export interface DateTimeProps extends LowCodeWidget.FormItemProps {
|
|
107
|
+
/** 默认系统日期 */
|
|
108
|
+
defaultSysDate?: FieldSysVarDefaultValueEnum;
|
|
109
|
+
separator: string;
|
|
110
|
+
/** 可清空 */
|
|
111
|
+
clearable: boolean;
|
|
112
|
+
/** 日期类型 */
|
|
113
|
+
format: string;
|
|
114
|
+
/** 组件类型 */
|
|
115
|
+
dateType: 'YYYY HH' | 'YYYY-MM HH:mm' | 'YYYY-MM-DD HH:mm:ss' | 'YYYY-MM-DD';
|
|
116
|
+
startDate: string;
|
|
117
|
+
endDate: string;
|
|
118
|
+
/** 日期范围 */
|
|
119
|
+
range?: keyof typeof DateRangeEnums;
|
|
120
|
+
}
|
|
121
|
+
/** 日期选择器属性 */
|
|
122
|
+
export interface DateProps extends LowCodeWidget.FormItemProps {
|
|
123
|
+
/** 默认系统日期 */
|
|
124
|
+
defaultSysDate?: FieldSysVarDefaultValueEnum;
|
|
125
|
+
separator: string;
|
|
126
|
+
/** 可清空 */
|
|
127
|
+
clearable: boolean;
|
|
128
|
+
/** 日期类型 */
|
|
129
|
+
format: string;
|
|
130
|
+
/** 组件类型 */
|
|
131
|
+
dateType: 'YYYY' | 'YYYY-MM' | 'YYYY-MM-DD';
|
|
132
|
+
startDate: string;
|
|
133
|
+
endDate: string;
|
|
134
|
+
/** 日期范围 */
|
|
135
|
+
range?: keyof typeof DateRangeEnums;
|
|
136
|
+
}
|
|
137
|
+
/** 时间选择器属性 */
|
|
138
|
+
export interface TimeProps extends LowCodeWidget.FormItemProps {
|
|
139
|
+
/** 默认系统日期 */
|
|
140
|
+
defaultSysDate?: FieldSysVarDefaultValueEnum;
|
|
141
|
+
/** 可清空 */
|
|
142
|
+
clearable: boolean;
|
|
143
|
+
/** 日期类型 */
|
|
144
|
+
format: string;
|
|
145
|
+
/** 组件类型 */
|
|
146
|
+
timeType: 'HH:mm:ss' | 'HH:mm' | 'HH';
|
|
147
|
+
startDate: string;
|
|
148
|
+
endDate: string;
|
|
149
|
+
/** 日期范围 */
|
|
150
|
+
range?: keyof typeof DateRangeEnums;
|
|
151
|
+
}
|
|
152
|
+
/** 金额输入组件属性 */
|
|
153
|
+
export interface MoneyProps extends LowCodeWidget.FormItemProps {
|
|
154
|
+
/** 最大值 */
|
|
155
|
+
maxValue?: number;
|
|
156
|
+
/** 最大值表达式 */
|
|
157
|
+
maxValueExpression?: string;
|
|
158
|
+
minValue?: number;
|
|
159
|
+
minValueExpression?: string;
|
|
160
|
+
/** 精度 */
|
|
161
|
+
precision: number;
|
|
162
|
+
/** 千分位 */
|
|
163
|
+
separator: boolean;
|
|
164
|
+
/** 币种 */
|
|
165
|
+
currency: CURRENCY_ENUM;
|
|
166
|
+
/** 获取焦点 */
|
|
167
|
+
getFocus: boolean;
|
|
168
|
+
fieldType?: FIELD_TYPE.DECIMAL | FIELD_TYPE.INTEGER | FIELD_TYPE.LONG;
|
|
169
|
+
}
|
|
170
|
+
/** 整数/小数输入组件属性 */
|
|
171
|
+
export interface NumberProps extends LowCodeWidget.FormItemProps {
|
|
172
|
+
/** 最大值 */
|
|
173
|
+
maxValue?: number;
|
|
174
|
+
/** 最大值表达式 */
|
|
175
|
+
maxValueExpression: string;
|
|
176
|
+
minValue?: number;
|
|
177
|
+
minValueExpression: string;
|
|
178
|
+
/** 精度 */
|
|
179
|
+
precision: number;
|
|
180
|
+
/** 千分位 */
|
|
181
|
+
separator: boolean;
|
|
182
|
+
/** 获取焦点 */
|
|
183
|
+
getFocus: boolean;
|
|
184
|
+
fieldType?: FIELD_TYPE.DECIMAL | FIELD_TYPE.INTEGER | FIELD_TYPE.LONG;
|
|
185
|
+
/** 币种 */
|
|
186
|
+
currency: CURRENCY_ENUM;
|
|
187
|
+
/** 显示币种开关 */
|
|
188
|
+
displayCurrency: boolean;
|
|
189
|
+
/** 数字显示事件类型 */
|
|
190
|
+
displayTimeType: TIMETYPE_ENUM;
|
|
191
|
+
}
|
|
192
|
+
/** 双精度浮点数输入组件属性 */
|
|
193
|
+
export interface DoubleProps extends LowCodeWidget.FormItemProps {
|
|
194
|
+
/** 最大值 */
|
|
195
|
+
maxValue?: number;
|
|
196
|
+
/** 最大值表达式 */
|
|
197
|
+
maxValueExpression: string;
|
|
198
|
+
minValue?: number;
|
|
199
|
+
minValueExpression: string;
|
|
200
|
+
/** 千分位 */
|
|
201
|
+
separator: boolean;
|
|
202
|
+
/** 获取焦点 */
|
|
203
|
+
getFocus: boolean;
|
|
204
|
+
fieldType?: FIELD_TYPE.DOUBLE;
|
|
205
|
+
/** 币种 */
|
|
206
|
+
currency: CURRENCY_ENUM;
|
|
207
|
+
/** 显示币种开关 */
|
|
208
|
+
displayCurrency: boolean;
|
|
209
|
+
/** 数字显示事件类型 */
|
|
210
|
+
displayTimeType: TIMETYPE_ENUM;
|
|
211
|
+
}
|
|
212
|
+
/** 单选/多选组件属性 */
|
|
213
|
+
export interface RadioProps extends LowCodeWidget.FormItemProps {
|
|
214
|
+
/** 字段类型 */
|
|
215
|
+
fieldType?: FIELD_TYPE.ENUM | FIELD_TYPE.ENUM_MULTI | FIELD_TYPE.REF | FIELD_TYPE.REF_MULTI;
|
|
216
|
+
modelKey: string;
|
|
217
|
+
multiple?: boolean;
|
|
218
|
+
refModelType: EntityModelTypeEnum;
|
|
219
|
+
/** 自定义枚举值标识 */
|
|
220
|
+
customMenu: boolean;
|
|
221
|
+
/** 自定义枚举值选项值 */
|
|
222
|
+
customMenuFilter: string[] | number[] | boolean[];
|
|
223
|
+
}
|
|
224
|
+
/** 下拉选择器属性 */
|
|
225
|
+
export interface SelectProps extends LowCodeWidget.FormItemProps {
|
|
226
|
+
/** 关联的 rdo 标识 key,关联 rdo 模型才有 */
|
|
227
|
+
rdoUniqueFieldKey?: string;
|
|
228
|
+
multiple: boolean;
|
|
229
|
+
/** 字段类型 */
|
|
230
|
+
fieldType?: FIELD_TYPE.ENUM | FIELD_TYPE.ENUM_MULTI | FIELD_TYPE.REF | FIELD_TYPE.REF_MULTI | FIELD_TYPE.RDO_REF | FIELD_TYPE.MESSAGE_TMPL | FIELD_TYPE.ASSOCIATED_PRIMARY_KEY;
|
|
231
|
+
modelKey: string;
|
|
232
|
+
/** 自动填充配置 */
|
|
233
|
+
enableAutofill: boolean;
|
|
234
|
+
autofillRules: {
|
|
235
|
+
fromField: string;
|
|
236
|
+
toField: string;
|
|
237
|
+
}[];
|
|
238
|
+
/** 搜索 */
|
|
239
|
+
showSearch: boolean;
|
|
240
|
+
/** 搜索算子字段 */
|
|
241
|
+
searchField?: string[];
|
|
242
|
+
/** 搜索 exp */
|
|
243
|
+
exp?: string;
|
|
244
|
+
valueField?: string;
|
|
245
|
+
rangeField?: string;
|
|
246
|
+
refModelType: EntityModelTypeEnum;
|
|
247
|
+
/** 初始化默认不加载 */
|
|
248
|
+
initNotLoad?: boolean;
|
|
249
|
+
/** 初始化加载 */
|
|
250
|
+
initLoad: boolean;
|
|
251
|
+
/** rdo 默认选中版本 */
|
|
252
|
+
rdoVersion?: boolean;
|
|
253
|
+
/** 自定义数据源 */
|
|
254
|
+
customdataSource: boolean;
|
|
255
|
+
/** 数据源配置 */
|
|
256
|
+
datasourceConfig: LowCodeWidget.JsEvent | null;
|
|
257
|
+
/** 自定义枚举值标识 */
|
|
258
|
+
customMenu: boolean;
|
|
259
|
+
/** 自定义枚举值选项值 */
|
|
260
|
+
customMenuFilter: string[] | number[] | boolean[];
|
|
261
|
+
/** 自定义枚举值选项 */
|
|
262
|
+
customMenuOptions: {
|
|
263
|
+
label: string;
|
|
264
|
+
value: string;
|
|
265
|
+
}[];
|
|
266
|
+
datafilter: {
|
|
267
|
+
key: string;
|
|
268
|
+
value: string;
|
|
269
|
+
}[] | {
|
|
270
|
+
dataRule: string;
|
|
271
|
+
dataRuleConfig: string;
|
|
272
|
+
};
|
|
273
|
+
linkageField?: {
|
|
274
|
+
label: string;
|
|
275
|
+
modelKey: string;
|
|
276
|
+
modelCategory: string;
|
|
277
|
+
refModelKey: string;
|
|
278
|
+
refModelCategory: string;
|
|
279
|
+
value: string;
|
|
280
|
+
end?: boolean;
|
|
281
|
+
reverse?: boolean;
|
|
282
|
+
}[];
|
|
283
|
+
/** 显示字段 */
|
|
284
|
+
displayFields?: string[];
|
|
285
|
+
/** 卡片显示 */
|
|
286
|
+
refCard?: boolean;
|
|
287
|
+
/** 卡片 id */
|
|
288
|
+
refCardId?: string;
|
|
289
|
+
/** 触发方式 */
|
|
290
|
+
cardTrigger?: CARD_TRIGGER_ENUM;
|
|
291
|
+
}
|
|
292
|
+
/** 流程选择器属性 */
|
|
293
|
+
export interface TransactionProps extends LowCodeWidget.FormItemProps {
|
|
294
|
+
multiple: boolean;
|
|
295
|
+
/** 自定义字段值 */
|
|
296
|
+
customFieldFilter: string[];
|
|
297
|
+
}
|
|
298
|
+
/** 文本输入框属性 */
|
|
299
|
+
export interface InputProps extends LowCodeWidget.FormItemProps {
|
|
300
|
+
/** 长度限制-最小值 */
|
|
301
|
+
minlength?: number;
|
|
302
|
+
/** 长度限制-最大值 */
|
|
303
|
+
maxlength?: number;
|
|
304
|
+
/** 搜索提示 */
|
|
305
|
+
searchTooltip: boolean;
|
|
306
|
+
}
|
|
307
|
+
/** 上传文件组件属性 */
|
|
308
|
+
export interface UploadFileProps extends LowCodeWidget.FormItemProps {
|
|
309
|
+
/** 文件模板 */
|
|
310
|
+
template: string;
|
|
311
|
+
/** 拖拽上传 */
|
|
312
|
+
dragger: boolean;
|
|
313
|
+
modelKey: string;
|
|
314
|
+
maxSize: number;
|
|
315
|
+
maxCount: number;
|
|
316
|
+
displayType?: ('concise' | 'more') & DisplayType;
|
|
317
|
+
/** 自动填充配置 */
|
|
318
|
+
enableAutofill: boolean;
|
|
319
|
+
autofillRules: {
|
|
320
|
+
fromField: string;
|
|
321
|
+
toField: string;
|
|
322
|
+
}[];
|
|
323
|
+
/** 最大显示个数 */
|
|
324
|
+
displayMaxNum: number;
|
|
325
|
+
}
|
|
326
|
+
/** 只读展示组件属性 */
|
|
327
|
+
export interface ReadonlyCmpProps extends LowCodeWidget.FormItemProps {
|
|
328
|
+
fieldType?: FIELD_TYPE;
|
|
329
|
+
fixedAlign?: fixedAlignENUM;
|
|
330
|
+
}
|
|
331
|
+
/** 自定义字段组件属性 */
|
|
332
|
+
export interface CustomFieldProps extends LowCodeWidget.FormItemProps {
|
|
333
|
+
fieldType?: FIELD_TYPE;
|
|
334
|
+
}
|
|
335
|
+
/** ESOP 组件属性 */
|
|
336
|
+
export interface EsopProps extends LowCodeWidget.FormItemProps {
|
|
337
|
+
/** 拖拽上传 */
|
|
338
|
+
dragger: boolean;
|
|
339
|
+
modelKey: string;
|
|
340
|
+
enableAutofill: boolean;
|
|
341
|
+
autofillRules: {
|
|
342
|
+
fromField: string;
|
|
343
|
+
toField: string;
|
|
344
|
+
}[];
|
|
345
|
+
}
|
|
346
|
+
/** 表达式字段属性 */
|
|
347
|
+
export interface ExpressionProps extends LowCodeWidget.FormItemProps {
|
|
348
|
+
/** 返回值类型 */
|
|
349
|
+
returnType: string;
|
|
350
|
+
/** 精度 */
|
|
351
|
+
precision: number;
|
|
352
|
+
/** 千分位 */
|
|
353
|
+
separator: boolean;
|
|
354
|
+
/** 币种 */
|
|
355
|
+
currency: CURRENCY_ENUM;
|
|
356
|
+
/** 显示币种开关 */
|
|
357
|
+
displayCurrency: boolean;
|
|
358
|
+
/** 数字显示事件类型 */
|
|
359
|
+
displayTimeType: TIMETYPE_ENUM;
|
|
360
|
+
/** 是否实时计算 */
|
|
361
|
+
isRealCompute: boolean;
|
|
362
|
+
/** 关联关系配置 */
|
|
363
|
+
ruleConfig: IObject;
|
|
364
|
+
/** 公式引用值 */
|
|
365
|
+
expType: string;
|
|
366
|
+
truelabel: string;
|
|
367
|
+
falselabel: string;
|
|
368
|
+
}
|
|
369
|
+
/** 聚合字段属性 */
|
|
370
|
+
export interface AggProps extends LowCodeWidget.FormItemProps {
|
|
371
|
+
/** 返回值类型 */
|
|
372
|
+
returnType: string;
|
|
373
|
+
/** 精度 */
|
|
374
|
+
precision: number;
|
|
375
|
+
/** 千分位 */
|
|
376
|
+
separator?: boolean | string;
|
|
377
|
+
/** 币种 */
|
|
378
|
+
currency: CURRENCY_ENUM;
|
|
379
|
+
/** 显示币种开关 */
|
|
380
|
+
displayCurrency: boolean;
|
|
381
|
+
/** 日期类型 */
|
|
382
|
+
format?: string;
|
|
383
|
+
/** 组件类型 */
|
|
384
|
+
dateType?: 'YYYY HH' | 'YYYY-MM HH:mm' | 'YYYY-MM-DD HH:mm:ss' | 'YYYY' | 'YYYY-MM' | 'YYYY-MM-DD';
|
|
385
|
+
/** 时间组件类型 */
|
|
386
|
+
timeType?: 'HH:mm:ss' | 'HH:mm' | 'HH';
|
|
387
|
+
/** 数字显示事件类型 */
|
|
388
|
+
displayTimeType: TIMETYPE_ENUM;
|
|
389
|
+
}
|
|
390
|
+
/** 流水号规则属性 */
|
|
391
|
+
export interface SerialRuleProps extends LowCodeWidget.FormItemProps {
|
|
392
|
+
config: string;
|
|
393
|
+
increaseHidden?: boolean;
|
|
394
|
+
}
|
|
395
|
+
/** 工作流节点组件属性 */
|
|
396
|
+
export interface WorkflowNodesProps extends LowCodeWidget.FormItemProps {
|
|
397
|
+
/** 主表关联的子表的 modelKey */
|
|
398
|
+
bindModelKey: string;
|
|
399
|
+
/** 子表自带的模态框 */
|
|
400
|
+
specModalInfo: LowCodeModal.Modal | undefined;
|
|
401
|
+
workflowModalInfo: LowCodeModal.Modal | undefined;
|
|
402
|
+
fieldType?: FIELD_TYPE.MASTERSLAVE;
|
|
403
|
+
}
|
|
404
|
+
/** 业务流程字段属性 */
|
|
405
|
+
export interface BizProcessProps extends LowCodeWidget.FormItemProps {
|
|
406
|
+
showPreview?: boolean;
|
|
407
|
+
}
|
|
408
|
+
/** 审批流程字段属性(与 FormItemProps 一致) */
|
|
409
|
+
export type ApprovalProcessProps = LowCodeWidget.FormItemProps;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { COLUMNS_TYPE, tabsTypeENUM, AGLINE_ENUMS, DisplayEnums } from '@gct-paas/core';
|
|
2
|
+
import { LowCodeWidget } from '../..';
|
|
3
|
+
/** 布局容器组件属性 */
|
|
4
|
+
export interface LayoutProps extends LowCodeWidget.WidgetProps {
|
|
5
|
+
name: string;
|
|
6
|
+
/** 布局方式 */
|
|
7
|
+
layoutDisplay: DisplayEnums;
|
|
8
|
+
/** 对齐方式 */
|
|
9
|
+
textAlign: Exclude<AGLINE_ENUMS, AGLINE_ENUMS.BETWEEN>;
|
|
10
|
+
/** 主轴方向 */
|
|
11
|
+
mainAxios: string;
|
|
12
|
+
/** 横轴对齐方式 */
|
|
13
|
+
justifyContent: string;
|
|
14
|
+
/** 纵轴对齐方式 */
|
|
15
|
+
alignItems: string;
|
|
16
|
+
/** 间距 */
|
|
17
|
+
margin: number;
|
|
18
|
+
}
|
|
19
|
+
/** 栅格容器属性 */
|
|
20
|
+
export interface GridProps extends LowCodeWidget.WidgetProps {
|
|
21
|
+
/** 横轴对齐方式 */
|
|
22
|
+
justify: string;
|
|
23
|
+
/** 纵轴对齐方式 */
|
|
24
|
+
align: string;
|
|
25
|
+
/** 间距 */
|
|
26
|
+
gutter: number;
|
|
27
|
+
/** 栅格列大小 */
|
|
28
|
+
colSpan: number[];
|
|
29
|
+
}
|
|
30
|
+
/** 栅格列属性 */
|
|
31
|
+
export interface GridColProps extends LowCodeWidget.WidgetProps {
|
|
32
|
+
span: number;
|
|
33
|
+
}
|
|
34
|
+
/** 双列布局属性 */
|
|
35
|
+
export interface ColumnsProps extends LowCodeWidget.WidgetProps {
|
|
36
|
+
rowresize?: boolean;
|
|
37
|
+
rowputAway?: boolean;
|
|
38
|
+
rowwidth?: number;
|
|
39
|
+
rowtype?: COLUMNS_TYPE;
|
|
40
|
+
defaultRowputAway?: boolean;
|
|
41
|
+
columnresize?: boolean;
|
|
42
|
+
columnputAway?: boolean;
|
|
43
|
+
columnheight?: number;
|
|
44
|
+
columntype?: COLUMNS_TYPE;
|
|
45
|
+
defaultColumnputAway?: boolean;
|
|
46
|
+
}
|
|
47
|
+
/** 标签页面板属性 */
|
|
48
|
+
export interface TabPaneProps extends LowCodeWidget.WidgetProps {
|
|
49
|
+
title: string;
|
|
50
|
+
forceRender: boolean;
|
|
51
|
+
}
|
|
52
|
+
/** 标签页容器属性 */
|
|
53
|
+
export interface TabsProps extends LowCodeWidget.WidgetProps {
|
|
54
|
+
/** 标签类型 */
|
|
55
|
+
type: tabsTypeENUM;
|
|
56
|
+
/** 间距 */
|
|
57
|
+
tabBarGutter: number;
|
|
58
|
+
/** 默认展开页面 */
|
|
59
|
+
defaultTag: string;
|
|
60
|
+
/** line 默认间距 */
|
|
61
|
+
tabBarGutterLine: number;
|
|
62
|
+
/** 标签居中显示 */
|
|
63
|
+
centered: boolean;
|
|
64
|
+
/** 切换销毁 */
|
|
65
|
+
destroyInactiveTabPane: boolean;
|
|
66
|
+
/** 自定义图标 */
|
|
67
|
+
customConfig: IObject[];
|
|
68
|
+
}
|
|
69
|
+
/** 折叠面板属性 */
|
|
70
|
+
export interface CollapseProps extends LowCodeWidget.WidgetProps {
|
|
71
|
+
title: string;
|
|
72
|
+
icon: string;
|
|
73
|
+
color: string;
|
|
74
|
+
isSupportFold: string;
|
|
75
|
+
defaultFold: boolean;
|
|
76
|
+
titleChildren: IObject[];
|
|
77
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { DateRangeEnums, SEARCH_SERVICE, EntityModelTypeEnum } from '@gct-paas/core';
|
|
2
|
+
import { LowCodeWidget } from '../..';
|
|
3
|
+
/** 搜索文本输入框属性 */
|
|
4
|
+
export interface SearchInput extends LowCodeWidget.SearchSchema {
|
|
5
|
+
props: {
|
|
6
|
+
maxlength: number;
|
|
7
|
+
/** 回车搜索 */
|
|
8
|
+
enterSearch: boolean;
|
|
9
|
+
} & LowCodeWidget.SearchSchema['props'];
|
|
10
|
+
}
|
|
11
|
+
/** 搜索流程选择器属性 */
|
|
12
|
+
export interface SearchTransaction extends LowCodeWidget.SearchSchema {
|
|
13
|
+
props: {
|
|
14
|
+
maxlength: number;
|
|
15
|
+
/** 回车搜索 */
|
|
16
|
+
enterSearch: boolean;
|
|
17
|
+
} & LowCodeWidget.SearchSchema['props'];
|
|
18
|
+
}
|
|
19
|
+
/** 搜索打印机选择器属性 */
|
|
20
|
+
export interface SearchPrinter extends LowCodeWidget.SearchSchema {
|
|
21
|
+
props: {
|
|
22
|
+
maxlength: number;
|
|
23
|
+
/** 回车搜索 */
|
|
24
|
+
enterSearch: boolean;
|
|
25
|
+
} & LowCodeWidget.SearchSchema['props'];
|
|
26
|
+
}
|
|
27
|
+
/** 搜索数字输入框属性 */
|
|
28
|
+
export interface SearchNumberInput extends LowCodeWidget.SearchSchema {
|
|
29
|
+
props: {
|
|
30
|
+
maxValue?: number;
|
|
31
|
+
minValue?: number;
|
|
32
|
+
} & LowCodeWidget.SearchSchema['props'];
|
|
33
|
+
}
|
|
34
|
+
/** 搜索开关属性 */
|
|
35
|
+
export interface SearchSwitch extends LowCodeWidget.SearchSchema {
|
|
36
|
+
props: {
|
|
37
|
+
checkedChildren: string;
|
|
38
|
+
unCheckedChildren: string;
|
|
39
|
+
moreOptions: SEARCH_SERVICE[];
|
|
40
|
+
} & LowCodeWidget.SearchSchema['props'];
|
|
41
|
+
}
|
|
42
|
+
/** 搜索日期选择器属性 */
|
|
43
|
+
export interface SearchDate extends LowCodeWidget.SearchSchema {
|
|
44
|
+
props: {
|
|
45
|
+
/**组件类型 */
|
|
46
|
+
dateType: 'YYYY' | 'YYYY-MM' | 'YYYY-MM-DD';
|
|
47
|
+
/**日期范围 */
|
|
48
|
+
range?: keyof typeof DateRangeEnums;
|
|
49
|
+
/**区间跨度(天) */
|
|
50
|
+
sectionDate?: number;
|
|
51
|
+
/**默认值 */
|
|
52
|
+
defaultExpression?: string;
|
|
53
|
+
/**默认开始 */
|
|
54
|
+
defaultStartExpression?: string;
|
|
55
|
+
/**默认结束 */
|
|
56
|
+
defaultEndExpression?: string;
|
|
57
|
+
} & LowCodeWidget.SearchSchema['props'];
|
|
58
|
+
}
|
|
59
|
+
/** 搜索日期时间选择器属性 */
|
|
60
|
+
export interface SearchDateTime extends LowCodeWidget.SearchSchema {
|
|
61
|
+
props: {
|
|
62
|
+
/**组件类型 */
|
|
63
|
+
dateType: 'YYYY HH' | 'YYYY-MM HH:mm' | 'YYYY-MM-DD HH:mm:ss' | 'YYYY-MM-DD';
|
|
64
|
+
/**日期范围 */
|
|
65
|
+
range?: keyof typeof DateRangeEnums;
|
|
66
|
+
/**区间跨度(天) */
|
|
67
|
+
sectionDate?: number;
|
|
68
|
+
/**默认值 */
|
|
69
|
+
defaultExpression?: string;
|
|
70
|
+
/**默认开始 */
|
|
71
|
+
defaultStartExpression?: string;
|
|
72
|
+
/**默认结束 */
|
|
73
|
+
defaultEndExpression?: string;
|
|
74
|
+
} & LowCodeWidget.SearchSchema['props'];
|
|
75
|
+
}
|
|
76
|
+
/** 搜索时间选择器属性 */
|
|
77
|
+
export interface SearchTime extends LowCodeWidget.SearchSchema {
|
|
78
|
+
props: {
|
|
79
|
+
/**区间跨度(小时) */
|
|
80
|
+
sectionTime?: number;
|
|
81
|
+
/**默认值 */
|
|
82
|
+
defaultExpression?: string;
|
|
83
|
+
/**默认开始 */
|
|
84
|
+
defaultStartExpression?: string;
|
|
85
|
+
/**默认结束 */
|
|
86
|
+
defaultEndExpression?: string;
|
|
87
|
+
} & LowCodeWidget.SearchSchema['props'];
|
|
88
|
+
}
|
|
89
|
+
/** 搜索下拉选择器属性 */
|
|
90
|
+
export interface SearchSelect extends LowCodeWidget.SearchSchema {
|
|
91
|
+
props: {
|
|
92
|
+
bindModelKey: string;
|
|
93
|
+
modelKey: string;
|
|
94
|
+
selectType?: string;
|
|
95
|
+
moreOptions: SEARCH_SERVICE[];
|
|
96
|
+
showSearch: boolean;
|
|
97
|
+
searchField: string[];
|
|
98
|
+
refModelType?: EntityModelTypeEnum;
|
|
99
|
+
} & LowCodeWidget.SearchSchema['props'];
|
|
100
|
+
}
|
|
101
|
+
/** 搜索模板树选择器属性 */
|
|
102
|
+
export interface SearchTmplTreeSelect extends LowCodeWidget.SearchSchema {
|
|
103
|
+
props: {
|
|
104
|
+
bindModelKey: string;
|
|
105
|
+
modelKey: string;
|
|
106
|
+
selectType?: string;
|
|
107
|
+
moreOptions: SEARCH_SERVICE[];
|
|
108
|
+
showSearch: boolean;
|
|
109
|
+
searchField: string[];
|
|
110
|
+
refModelType?: EntityModelTypeEnum;
|
|
111
|
+
} & LowCodeWidget.SearchSchema['props'];
|
|
112
|
+
}
|
|
113
|
+
/** 搜索业务流程选择器属性 */
|
|
114
|
+
export interface SearchBizProcess extends LowCodeWidget.SearchSchema {
|
|
115
|
+
props: {
|
|
116
|
+
bindModelKey: string;
|
|
117
|
+
modelKey: string;
|
|
118
|
+
selectType?: string;
|
|
119
|
+
moreOptions: SEARCH_SERVICE[];
|
|
120
|
+
showSearch: boolean;
|
|
121
|
+
searchField: string[];
|
|
122
|
+
refModelType?: EntityModelTypeEnum;
|
|
123
|
+
} & LowCodeWidget.SearchSchema['props'];
|
|
124
|
+
}
|
|
125
|
+
/** 所有搜索组件类型联合 */
|
|
126
|
+
export type SearchWidgets = SearchInput | SearchNumberInput | SearchSwitch | SearchDate | SearchDateTime | SearchTime | SearchSelect | SearchBizProcess;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { fixedAlignENUM, ButtonColorType, ButtonColorTheme, SUB_TABLE_OPE_EVENT_TYPE, SUB_TABLE_EDIT_MODE } from '@gct-paas/core';
|
|
2
|
+
/** 子表操作列 schema */
|
|
3
|
+
export interface ISubTableOpe {
|
|
4
|
+
/** 字段标识 */
|
|
5
|
+
id: string;
|
|
6
|
+
/** 国际化信息 */
|
|
7
|
+
i18n: object;
|
|
8
|
+
type: string;
|
|
9
|
+
name: string;
|
|
10
|
+
internal: boolean;
|
|
11
|
+
props: ISubTableOpeProps;
|
|
12
|
+
}
|
|
13
|
+
/** 子表操作列属性 */
|
|
14
|
+
export interface ISubTableOpeProps {
|
|
15
|
+
/** 子表中选中的字段关联的 bindModelKey */
|
|
16
|
+
bindModelKey: string;
|
|
17
|
+
width: number;
|
|
18
|
+
label: string;
|
|
19
|
+
/** 可见按钮数量 */
|
|
20
|
+
visibleButtons: number;
|
|
21
|
+
fixed: boolean;
|
|
22
|
+
fixedAlign: fixedAlignENUM;
|
|
23
|
+
btnOptions: ISubTableOpeButtonProps[];
|
|
24
|
+
editMode: SUB_TABLE_EDIT_MODE;
|
|
25
|
+
}
|
|
26
|
+
/** 子表操作列按钮属性 */
|
|
27
|
+
export interface ISubTableOpeButtonProps {
|
|
28
|
+
/** 字段标识 */
|
|
29
|
+
id: string;
|
|
30
|
+
/** 国际化信息 */
|
|
31
|
+
i18n: object;
|
|
32
|
+
type: string;
|
|
33
|
+
props: {
|
|
34
|
+
buttonTheme: ButtonColorTheme;
|
|
35
|
+
buttonType: ButtonColorType;
|
|
36
|
+
icon: string;
|
|
37
|
+
label: string;
|
|
38
|
+
/** 二次确认 */
|
|
39
|
+
confirm: boolean;
|
|
40
|
+
confirmText: string;
|
|
41
|
+
/** 显示条件 */
|
|
42
|
+
displayRule: string;
|
|
43
|
+
/** 事件类型 */
|
|
44
|
+
eventType: SUB_TABLE_OPE_EVENT_TYPE;
|
|
45
|
+
/** 事件名称 */
|
|
46
|
+
eventName: string;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
/** @deprecated 请使用 ISubTableOpe */
|
|
50
|
+
export type SubTableOpe = ISubTableOpe;
|
|
51
|
+
/** @deprecated 请使用 ISubTableOpeProps */
|
|
52
|
+
export type SubTableOpeProps = ISubTableOpeProps;
|
|
53
|
+
/** @deprecated 请使用 ISubTableOpeButtonProps */
|
|
54
|
+
export type SubTableOpeButtonProps = ISubTableOpeButtonProps;
|