@gct-paas/schema 0.1.4-dev.7 → 0.1.4-dev.9
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/dist/index.esm.min.mjs +822 -19
- package/dist/index.min.cjs +1 -1
- package/dist/index.system.min.js +1 -1
- package/es/constants/index.d.ts +5 -0
- package/es/constants/index.mjs +19 -0
- package/es/index.mjs +11 -1
- package/es/interface/common/data-linkage-config.d.ts +17 -0
- package/es/interface/designer.d.ts +9 -7
- package/es/interface/index.d.ts +5 -2
- package/es/interface/modal/i-modal.d.ts +1 -1
- 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-events.d.ts +2 -9
- package/es/interface/widget/i-hooks-and-misc.d.ts +1 -0
- package/es/interface/widget/i-props.d.ts +1 -0
- package/es/interface/widget/i-schemas.d.ts +13 -6
- package/es/interface/widget/i-styles.d.ts +3 -2
- package/es/interface/widget/index.d.ts +7 -2
- 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/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 -1
- 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/utils/index.d.ts +3 -1
- package/es/utils/schema/index.d.ts +34 -0
- package/es/utils/schema/index.mjs +44 -2
- 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 +6 -5
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
import { LowCodeModal, LowCodeWidget } from '..';
|
|
2
|
+
import { InputProps, UploadFileProps, FormProps, DescriptionsProps, DataTableProps, DataListProps, ButtonProps, SelectProps, RadioProps, NumberProps, DoubleProps, MoneyProps, DateTimeProps, TimeProps, DateProps, UserProps, DeptProps, SwitchProps, SearchProps, ExportProps, ProcessButtonProps, LayoutProps, GridProps, GridColProps, ColumnsProps, ButtonContainerProps, SubTableProps, WorkflowNodesProps, LabelPrintProps, TabsProps, RefDataTableProps, TabPaneProps, ReadonlyCmpProps, CustomFieldProps, OperateProps, OperateButtonProps, ColumnTableProps, FormulaProps, TableSelectProps, GenRadioProps, GenSwitchProps, EsopProps, ExpressionProps, AggProps, treeTableProps, BaseButtonProps, DynamicTableProps, TransactionProps, SerialRuleProps, SelectSearchProps, TextProps, CollapseProps, SpaceOccupationProps, PrinterProps, SignatureProps, OnlineFormProps, TmplTreeSelectProps, DocumentPrintProps, RangeUserProps, GenImageProps, IframeProps, SubDataTableProps, ResetButtonProps, FormProcessProps, ApprovalHistoryProps, FlowDiagramProps, approveButtonProps, ButtonProcessContainerProps, BizProcessProps, TableApproveButtonProps, CustomCodeProps, ApprovalProcessProps, DividerProps } from './widget-props';
|
|
3
|
+
import { FormComponents, DisplayEnums } from '@gct-paas/core';
|
|
4
|
+
import { LinkageItem } from '../common/data-linkage-config';
|
|
5
|
+
export interface Userpicker extends LowCodeWidget.BasicSchema {
|
|
6
|
+
props: UserProps;
|
|
7
|
+
}
|
|
8
|
+
export interface Department extends LowCodeWidget.BasicSchema {
|
|
9
|
+
props: DeptProps;
|
|
10
|
+
}
|
|
11
|
+
export interface Printer extends LowCodeWidget.BasicSchema {
|
|
12
|
+
props: PrinterProps;
|
|
13
|
+
}
|
|
14
|
+
export interface Signature extends LowCodeWidget.BasicSchema {
|
|
15
|
+
props: SignatureProps;
|
|
16
|
+
}
|
|
17
|
+
export interface TmplTreeSelect extends LowCodeWidget.BasicSchema {
|
|
18
|
+
props: TmplTreeSelectProps;
|
|
19
|
+
}
|
|
20
|
+
export interface OnlineForm extends LowCodeWidget.BasicSchema {
|
|
21
|
+
props: OnlineFormProps;
|
|
22
|
+
}
|
|
23
|
+
export interface RangeUser extends LowCodeWidget.BasicSchema {
|
|
24
|
+
props: RangeUserProps;
|
|
25
|
+
}
|
|
26
|
+
export interface Datepicker extends LowCodeWidget.BasicSchema {
|
|
27
|
+
props: DateProps;
|
|
28
|
+
}
|
|
29
|
+
export interface DateTimepicker extends LowCodeWidget.BasicSchema {
|
|
30
|
+
props: DateTimeProps;
|
|
31
|
+
}
|
|
32
|
+
export interface Timepicker extends LowCodeWidget.BasicSchema {
|
|
33
|
+
props: TimeProps;
|
|
34
|
+
}
|
|
35
|
+
export interface InputNumber extends LowCodeWidget.BasicSchema {
|
|
36
|
+
props: NumberProps;
|
|
37
|
+
}
|
|
38
|
+
export interface InputDouble extends LowCodeWidget.BasicSchema {
|
|
39
|
+
props: DoubleProps;
|
|
40
|
+
}
|
|
41
|
+
export interface InputMoney extends LowCodeWidget.BasicSchema {
|
|
42
|
+
props: MoneyProps;
|
|
43
|
+
}
|
|
44
|
+
export interface Checkbox extends LowCodeWidget.BasicSchema {
|
|
45
|
+
props: RadioProps;
|
|
46
|
+
}
|
|
47
|
+
export interface Radio extends LowCodeWidget.BasicSchema {
|
|
48
|
+
props: RadioProps;
|
|
49
|
+
}
|
|
50
|
+
export interface Select extends LowCodeWidget.BasicSchema {
|
|
51
|
+
props: SelectProps;
|
|
52
|
+
}
|
|
53
|
+
export interface Transaction extends LowCodeWidget.BasicSchema {
|
|
54
|
+
props: TransactionProps;
|
|
55
|
+
}
|
|
56
|
+
export interface Textarea extends LowCodeWidget.BasicSchema {
|
|
57
|
+
props: InputProps;
|
|
58
|
+
}
|
|
59
|
+
export interface Switch extends LowCodeWidget.BasicSchema {
|
|
60
|
+
props: SwitchProps;
|
|
61
|
+
}
|
|
62
|
+
export interface Input extends LowCodeWidget.BasicSchema {
|
|
63
|
+
props: InputProps;
|
|
64
|
+
}
|
|
65
|
+
export interface Form extends LowCodeWidget.BasicSchema {
|
|
66
|
+
props: FormProps;
|
|
67
|
+
}
|
|
68
|
+
export interface FormProcess extends LowCodeWidget.BasicSchema {
|
|
69
|
+
props: FormProcessProps;
|
|
70
|
+
}
|
|
71
|
+
export interface ApprovalHistory extends LowCodeWidget.BasicSchema {
|
|
72
|
+
props: ApprovalHistoryProps;
|
|
73
|
+
}
|
|
74
|
+
export interface FlowDiagram extends LowCodeWidget.BasicSchema {
|
|
75
|
+
props: FlowDiagramProps;
|
|
76
|
+
}
|
|
77
|
+
export interface Descriptions extends LowCodeWidget.BasicSchema {
|
|
78
|
+
props: DescriptionsProps;
|
|
79
|
+
}
|
|
80
|
+
export interface Search extends LowCodeWidget.BasicSchema {
|
|
81
|
+
props: SearchProps;
|
|
82
|
+
}
|
|
83
|
+
export interface RefDataTable extends DataTable {
|
|
84
|
+
props: RefDataTableProps;
|
|
85
|
+
}
|
|
86
|
+
export interface DataTable extends LowCodeWidget.BasicSchema {
|
|
87
|
+
props: DataTableProps;
|
|
88
|
+
children: [
|
|
89
|
+
OperateTable,
|
|
90
|
+
{
|
|
91
|
+
alias: string;
|
|
92
|
+
props: IData;
|
|
93
|
+
children: (FormulaTable | ColumnTable)[];
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
alias: string;
|
|
97
|
+
props: IData;
|
|
98
|
+
children: OperateButton[];
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
alias: string;
|
|
102
|
+
props: IData;
|
|
103
|
+
children: OperateButton[];
|
|
104
|
+
},
|
|
105
|
+
SubDataTable
|
|
106
|
+
];
|
|
107
|
+
}
|
|
108
|
+
export interface TreeTable extends LowCodeWidget.BasicSchema {
|
|
109
|
+
props: treeTableProps;
|
|
110
|
+
children: [
|
|
111
|
+
OperateTable,
|
|
112
|
+
{
|
|
113
|
+
alias: string;
|
|
114
|
+
props: IData;
|
|
115
|
+
children: (FormulaTable | ColumnTable)[];
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
alias: string;
|
|
119
|
+
props: IData;
|
|
120
|
+
children: OperateButton[];
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
alias: string;
|
|
124
|
+
props: IData;
|
|
125
|
+
children: OperateButton[];
|
|
126
|
+
}
|
|
127
|
+
];
|
|
128
|
+
}
|
|
129
|
+
export interface TreeTableMobile extends LowCodeWidget.BasicSchema {
|
|
130
|
+
props: treeTableProps;
|
|
131
|
+
children: (FormulaTable | ColumnTable)[];
|
|
132
|
+
}
|
|
133
|
+
export interface DataTableMobile extends LowCodeWidget.BasicSchema {
|
|
134
|
+
props: DataTableProps;
|
|
135
|
+
children: (FormulaTable | ColumnTable)[];
|
|
136
|
+
}
|
|
137
|
+
export interface FormulaTable extends LowCodeWidget.BasicSchema {
|
|
138
|
+
props: FormulaProps;
|
|
139
|
+
}
|
|
140
|
+
export interface OperateTable extends LowCodeWidget.BasicSchema {
|
|
141
|
+
props: OperateProps;
|
|
142
|
+
children: OperateButton[];
|
|
143
|
+
}
|
|
144
|
+
export interface OperateButton extends LowCodeWidget.BasicSchema {
|
|
145
|
+
props: OperateButtonProps;
|
|
146
|
+
}
|
|
147
|
+
export interface ColumnTable extends LowCodeWidget.BasicSchema {
|
|
148
|
+
props: ColumnTableProps;
|
|
149
|
+
children?: [LowCodeWidget.SearchSchema];
|
|
150
|
+
}
|
|
151
|
+
export interface DataList extends LowCodeWidget.BasicSchema {
|
|
152
|
+
props: DataListProps;
|
|
153
|
+
}
|
|
154
|
+
export interface Button extends LowCodeWidget.BasicSchema {
|
|
155
|
+
/**布局 块级 行内 */
|
|
156
|
+
display: DisplayEnums.INLINE_BLOCK;
|
|
157
|
+
props: ButtonProps;
|
|
158
|
+
}
|
|
159
|
+
export interface approveButton extends LowCodeWidget.BasicSchema {
|
|
160
|
+
props: approveButtonProps;
|
|
161
|
+
}
|
|
162
|
+
export interface TableApproveButton extends LowCodeWidget.BasicSchema {
|
|
163
|
+
props: TableApproveButtonProps;
|
|
164
|
+
}
|
|
165
|
+
export interface ResetButton extends LowCodeWidget.BasicSchema {
|
|
166
|
+
props: ResetButtonProps;
|
|
167
|
+
}
|
|
168
|
+
export interface BaseButton extends LowCodeWidget.BasicSchema {
|
|
169
|
+
/**布局 块级 行内 */
|
|
170
|
+
display: DisplayEnums.INLINE_BLOCK;
|
|
171
|
+
props: BaseButtonProps;
|
|
172
|
+
}
|
|
173
|
+
export interface LabelPrintButton extends LowCodeWidget.BasicSchema {
|
|
174
|
+
props: LabelPrintProps;
|
|
175
|
+
}
|
|
176
|
+
export interface DocumentPrintButton extends LowCodeWidget.BasicSchema {
|
|
177
|
+
props: DocumentPrintProps;
|
|
178
|
+
}
|
|
179
|
+
export interface ExportButton extends LowCodeWidget.BasicSchema {
|
|
180
|
+
props: ExportProps;
|
|
181
|
+
}
|
|
182
|
+
export interface ProcessButton extends LowCodeWidget.BasicSchema {
|
|
183
|
+
props: ProcessButtonProps;
|
|
184
|
+
}
|
|
185
|
+
export interface tabPane extends LowCodeWidget.BasicSchema {
|
|
186
|
+
props: TabPaneProps;
|
|
187
|
+
}
|
|
188
|
+
export interface Tabs extends LowCodeWidget.BasicSchema {
|
|
189
|
+
props: TabsProps;
|
|
190
|
+
children: tabPane[];
|
|
191
|
+
}
|
|
192
|
+
export interface LayoutContainer extends LowCodeWidget.BasicSchema {
|
|
193
|
+
display: DisplayEnums.BLOCK;
|
|
194
|
+
props: LayoutProps;
|
|
195
|
+
}
|
|
196
|
+
export interface ButtonContainer extends LowCodeWidget.BasicSchema {
|
|
197
|
+
props: ButtonContainerProps;
|
|
198
|
+
children: Button[];
|
|
199
|
+
}
|
|
200
|
+
export interface ButtonProcessContainer extends LowCodeWidget.BasicSchema {
|
|
201
|
+
props: ButtonProcessContainerProps;
|
|
202
|
+
children: approveButton[];
|
|
203
|
+
}
|
|
204
|
+
export interface Grid extends LowCodeWidget.BasicSchema {
|
|
205
|
+
props: GridProps;
|
|
206
|
+
children: GridCol[];
|
|
207
|
+
}
|
|
208
|
+
export interface GridCol extends LowCodeWidget.BasicSchema {
|
|
209
|
+
props: GridColProps;
|
|
210
|
+
}
|
|
211
|
+
export interface LayoutColumns extends LowCodeWidget.BasicSchema {
|
|
212
|
+
props: ColumnsProps;
|
|
213
|
+
}
|
|
214
|
+
export interface UploadFile extends LowCodeWidget.BasicSchema {
|
|
215
|
+
props: UploadFileProps;
|
|
216
|
+
}
|
|
217
|
+
export interface SubTable extends LowCodeWidget.BasicSchema {
|
|
218
|
+
props: SubTableProps;
|
|
219
|
+
children: [
|
|
220
|
+
LowCodeModal.Modal,
|
|
221
|
+
OperateTable,
|
|
222
|
+
ButtonContainer,
|
|
223
|
+
{
|
|
224
|
+
alias: string;
|
|
225
|
+
children: LowCodeWidget.FieldSchema[];
|
|
226
|
+
}
|
|
227
|
+
];
|
|
228
|
+
}
|
|
229
|
+
export interface DynamicTable extends LowCodeWidget.BasicSchema {
|
|
230
|
+
props: DynamicTableProps;
|
|
231
|
+
children: [
|
|
232
|
+
LowCodeModal.Modal,
|
|
233
|
+
OperateTable,
|
|
234
|
+
ButtonContainer,
|
|
235
|
+
{
|
|
236
|
+
alias: string;
|
|
237
|
+
children: LowCodeWidget.FieldSchema[];
|
|
238
|
+
}
|
|
239
|
+
];
|
|
240
|
+
}
|
|
241
|
+
export interface WorkflowNodes extends LowCodeWidget.BasicSchema {
|
|
242
|
+
props: WorkflowNodesProps;
|
|
243
|
+
}
|
|
244
|
+
export interface ReadonlyCmp extends LowCodeWidget.BasicSchema {
|
|
245
|
+
props: ReadonlyCmpProps;
|
|
246
|
+
}
|
|
247
|
+
export interface CustomField extends LowCodeWidget.BasicSchema {
|
|
248
|
+
props: CustomFieldProps;
|
|
249
|
+
}
|
|
250
|
+
export interface TableSelect extends LowCodeWidget.BasicSchema {
|
|
251
|
+
props: TableSelectProps;
|
|
252
|
+
children: [
|
|
253
|
+
Search,
|
|
254
|
+
{
|
|
255
|
+
alias: string;
|
|
256
|
+
children: LowCodeWidget.FieldSchema[];
|
|
257
|
+
},
|
|
258
|
+
OperateTable
|
|
259
|
+
];
|
|
260
|
+
}
|
|
261
|
+
export interface GenCheckbox extends LowCodeWidget.BasicSchema {
|
|
262
|
+
props: GenRadioProps;
|
|
263
|
+
}
|
|
264
|
+
export interface GenRadio extends LowCodeWidget.BasicSchema {
|
|
265
|
+
props: GenRadioProps;
|
|
266
|
+
}
|
|
267
|
+
export interface GenSwitch extends LowCodeWidget.BasicSchema {
|
|
268
|
+
props: GenSwitchProps;
|
|
269
|
+
}
|
|
270
|
+
export interface ESOP extends LowCodeWidget.BasicSchema {
|
|
271
|
+
props: EsopProps;
|
|
272
|
+
}
|
|
273
|
+
export interface Expression extends LowCodeWidget.BasicSchema {
|
|
274
|
+
props: ExpressionProps;
|
|
275
|
+
}
|
|
276
|
+
export interface Agg extends LowCodeWidget.BasicSchema {
|
|
277
|
+
props: AggProps;
|
|
278
|
+
}
|
|
279
|
+
export interface SerialRule extends LowCodeWidget.BasicSchema {
|
|
280
|
+
props: SerialRuleProps;
|
|
281
|
+
}
|
|
282
|
+
export interface SelectSearch extends LowCodeWidget.BasicSchema {
|
|
283
|
+
props: SelectSearchProps;
|
|
284
|
+
children: ColumnTable[];
|
|
285
|
+
linkageField: LinkageItem[];
|
|
286
|
+
}
|
|
287
|
+
export interface Collapse extends LowCodeWidget.BasicSchema {
|
|
288
|
+
props: CollapseProps;
|
|
289
|
+
}
|
|
290
|
+
export interface SpaceOccupation extends LowCodeWidget.BasicSchema {
|
|
291
|
+
props: SpaceOccupationProps;
|
|
292
|
+
}
|
|
293
|
+
export interface Divider extends LowCodeWidget.BasicSchema {
|
|
294
|
+
props: DividerProps;
|
|
295
|
+
}
|
|
296
|
+
export interface Text extends LowCodeWidget.BasicSchema {
|
|
297
|
+
props: TextProps;
|
|
298
|
+
}
|
|
299
|
+
export interface GenImage extends LowCodeWidget.BasicSchema {
|
|
300
|
+
props: GenImageProps;
|
|
301
|
+
}
|
|
302
|
+
export interface BottomButtonContainer extends LowCodeWidget.BasicSchema {
|
|
303
|
+
props: ButtonContainerProps;
|
|
304
|
+
children: Button[];
|
|
305
|
+
}
|
|
306
|
+
export interface Iframe extends LowCodeWidget.BasicSchema {
|
|
307
|
+
props: IframeProps;
|
|
308
|
+
}
|
|
309
|
+
export interface CustomCode extends LowCodeWidget.BasicSchema {
|
|
310
|
+
props: CustomCodeProps;
|
|
311
|
+
}
|
|
312
|
+
export interface SubDataTable extends DataTable {
|
|
313
|
+
props: SubDataTableProps;
|
|
314
|
+
}
|
|
315
|
+
export interface BizProcess extends LowCodeWidget.BasicSchema {
|
|
316
|
+
props: BizProcessProps;
|
|
317
|
+
}
|
|
318
|
+
export interface ApprovalProcess extends LowCodeWidget.BasicSchema {
|
|
319
|
+
props: ApprovalProcessProps;
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* type 和 类型的映射关系
|
|
323
|
+
*/
|
|
324
|
+
export interface Mapping {
|
|
325
|
+
[FormComponents.SubmitButton]: Button;
|
|
326
|
+
[FormComponents.ResetButton]: ResetButton;
|
|
327
|
+
[FormComponents.Checkbox]: Checkbox;
|
|
328
|
+
[FormComponents.DataTable]: DataTable;
|
|
329
|
+
[FormComponents.DataVTable]: DataTable;
|
|
330
|
+
[FormComponents.DateTimepicker]: DateTimepicker;
|
|
331
|
+
[FormComponents.Datepicker]: Datepicker;
|
|
332
|
+
[FormComponents.Department]: Department;
|
|
333
|
+
[FormComponents.Form]: Form;
|
|
334
|
+
[FormComponents.Input]: Input;
|
|
335
|
+
[FormComponents.Inputnumber]: InputNumber;
|
|
336
|
+
[FormComponents.InputDouble]: InputDouble;
|
|
337
|
+
[FormComponents.Inputmoney]: InputMoney;
|
|
338
|
+
[FormComponents.Radio]: Radio;
|
|
339
|
+
[FormComponents.Search]: Search;
|
|
340
|
+
[FormComponents.Select]: Select;
|
|
341
|
+
[FormComponents.Userpicker]: Userpicker;
|
|
342
|
+
[FormComponents.Timepicker]: Timepicker;
|
|
343
|
+
[FormComponents.Textarea]: Textarea;
|
|
344
|
+
[FormComponents.TabPane]: tabPane;
|
|
345
|
+
[FormComponents.Tabs]: Tabs;
|
|
346
|
+
[FormComponents.DataTableOpe]: OperateTable;
|
|
347
|
+
[FormComponents.OpeButton]: OperateButton;
|
|
348
|
+
[FormComponents.DataTableColumn]: ColumnTable;
|
|
349
|
+
[FormComponents.DataTableFormula]: FormulaTable;
|
|
350
|
+
[FormComponents.ESOP]: ESOP;
|
|
351
|
+
[FormComponents.EXPRESSION]: Expression;
|
|
352
|
+
[FormComponents.AGG]: Agg;
|
|
353
|
+
[FormComponents.ButtonContainer]: ButtonContainer;
|
|
354
|
+
[FormComponents.BottomButtonContainer]: BottomButtonContainer;
|
|
355
|
+
[FormComponents.DataList]: DataList;
|
|
356
|
+
[FormComponents.RdoDataList]: DataList;
|
|
357
|
+
[FormComponents.RdoForm]: Form;
|
|
358
|
+
[FormComponents.MedProRdoForm]: Form;
|
|
359
|
+
[FormComponents.SerialRule]: SerialRule;
|
|
360
|
+
[FormComponents.CustomField]: CustomField;
|
|
361
|
+
[FormComponents.Descriptions]: Descriptions;
|
|
362
|
+
[FormComponents.GenImage]: GenImage;
|
|
363
|
+
[FormComponents.SubDataTable]: SubDataTable;
|
|
364
|
+
[FormComponents.TableSelect]: TableSelect;
|
|
365
|
+
[FormComponents.SubTable]: SubTable;
|
|
366
|
+
[FormComponents.ProcessApproveButton]: approveButton;
|
|
367
|
+
[FormComponents.BizProcess]: BizProcess;
|
|
368
|
+
[FormComponents.FormProcess]: FormProcess;
|
|
369
|
+
[FormComponents.ApprovalProcess]: ApprovalProcess;
|
|
370
|
+
}
|
|
@@ -6,7 +6,7 @@ import { LowCodeModal } from '../modal';
|
|
|
6
6
|
*
|
|
7
7
|
* @type IBasicEvents
|
|
8
8
|
*/
|
|
9
|
-
export type IBasicEvents = Record<string, IJsEvent | IInnerEvents[]
|
|
9
|
+
export type IBasicEvents = Record<string, IJsEvent | IInnerEvents[]>;
|
|
10
10
|
/**
|
|
11
11
|
* JS脚本事件
|
|
12
12
|
*
|
|
@@ -31,20 +31,13 @@ export interface IInnerEvents {
|
|
|
31
31
|
key: string;
|
|
32
32
|
refId?: string;
|
|
33
33
|
scopeId?: string;
|
|
34
|
+
modalTitle?: string;
|
|
34
35
|
}
|
|
35
36
|
/**
|
|
36
37
|
* 编排逻辑事件
|
|
37
38
|
*
|
|
38
39
|
* @interface ILoInterface
|
|
39
40
|
*/
|
|
40
|
-
export interface ILoInterface {
|
|
41
|
-
/** 事件类型:编排逻辑 */
|
|
42
|
-
type: EventCategory.LO;
|
|
43
|
-
/** JS方法名称 */
|
|
44
|
-
name: string;
|
|
45
|
-
/** event额外参数 */
|
|
46
|
-
extraParams: Record<string, any> | string | number | boolean;
|
|
47
|
-
}
|
|
48
41
|
/**
|
|
49
42
|
* 组件自身拥有的事件
|
|
50
43
|
*
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { CategoryTypeEnum, Platform, FormComponents, DisplayEnums, MaterialEnum, SearchComponents,
|
|
1
|
+
import { CategoryTypeEnum, Platform, FormComponents, DisplayEnums, MaterialEnum, SearchComponents, SEARCH_SERVICE, FIELD_TYPE } from '@gct-paas/core';
|
|
2
2
|
import { IBasicStyle } from './i-styles';
|
|
3
3
|
import { ICommonProps, IWidgetProps, IFormItemProps } from './i-props';
|
|
4
4
|
import { IBasicEvents } from './i-events';
|
|
5
|
+
import { PagePlugin } from '../designer';
|
|
5
6
|
/**
|
|
6
7
|
* 单个组件节点描述
|
|
7
8
|
*
|
|
@@ -23,7 +24,7 @@ export interface IBasicSchema {
|
|
|
23
24
|
/** 自定义展示组件key的名字 */
|
|
24
25
|
compKey?: string;
|
|
25
26
|
/** 组件类型 需和文件名一致 */
|
|
26
|
-
type:
|
|
27
|
+
type: string | FormComponents;
|
|
27
28
|
/** icon, 配置组件库使用 */
|
|
28
29
|
icon: string;
|
|
29
30
|
/** 子集, 仅布局组件使用 */
|
|
@@ -58,8 +59,14 @@ export interface IBasicSchema {
|
|
|
58
59
|
isReadonlyWidget?: boolean;
|
|
59
60
|
/** 部分组件嵌套在某个父组件内部 */
|
|
60
61
|
parentComponent?: FormComponents;
|
|
61
|
-
/**
|
|
62
|
-
|
|
62
|
+
/** 拖拽放置容器的无子项提示 */
|
|
63
|
+
dropPlaceholder?: string;
|
|
64
|
+
/**
|
|
65
|
+
* 如果是插件过如,保存插件快照信息
|
|
66
|
+
*
|
|
67
|
+
* @type {PagePlugin}
|
|
68
|
+
*/
|
|
69
|
+
_plugin?: PagePlugin;
|
|
63
70
|
}
|
|
64
71
|
/**
|
|
65
72
|
* 字段类型组件
|
|
@@ -113,11 +120,11 @@ export interface ISearchSchema {
|
|
|
113
120
|
label: string;
|
|
114
121
|
defaultValue: any;
|
|
115
122
|
placeholder: string;
|
|
116
|
-
ope:
|
|
123
|
+
ope: SEARCH_SERVICE[];
|
|
117
124
|
/** 是否区间搜索 */
|
|
118
125
|
isRang?: boolean;
|
|
119
126
|
/** 是否启用了其他选项 */
|
|
120
|
-
useMore?:
|
|
127
|
+
useMore?: SEARCH_SERVICE | '';
|
|
121
128
|
bindModelKey?: string;
|
|
122
129
|
modelKey?: string;
|
|
123
130
|
readonly: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ProgressTypeEnum, tableColumnWidthEnum, tagEnum, TagTypeEnum, TextDecoration } from '@gct-paas/core';
|
|
2
2
|
/**
|
|
3
3
|
* Font样式
|
|
4
4
|
*
|
|
@@ -10,7 +10,7 @@ export interface IFontStyle {
|
|
|
10
10
|
italic: boolean;
|
|
11
11
|
textDecoration: TextDecoration;
|
|
12
12
|
color: string;
|
|
13
|
-
align: 'left' | 'right';
|
|
13
|
+
align: 'left' | 'right' | 'justify';
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* 组件只读时开启标签配置的样式
|
|
@@ -110,4 +110,5 @@ export interface IBasicStyle {
|
|
|
110
110
|
tableheight?: number;
|
|
111
111
|
/** 表格高度样式 */
|
|
112
112
|
tableheightConfigure?: tableColumnWidthEnum;
|
|
113
|
+
enableHeaderBGColor?: boolean;
|
|
113
114
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IBasicSchema, IFieldSchema, ISearchSchema, IWrapperCmpConfigParams as IWrapperCmpConfigParamsSelf } from './i-schemas';
|
|
2
2
|
import { ICommonProps, IWidgetProps, IDisplayProps, IFormItemProps, ILayoutProps, IDependency, IFieldToProp } from './i-props';
|
|
3
3
|
import { IBasicStyle, IFontStyle, IBorderStyle, ITagConfigStyle, IProgressConfigStyle, IColumnFontStyleByRule, IColumnBackgroundByRule } from './i-styles';
|
|
4
|
-
import { IBasicEvents, IJsEvent, IInnerEvents,
|
|
4
|
+
import { IBasicEvents, IJsEvent, IInnerEvents, IEventsType } from './i-events';
|
|
5
5
|
import { IStyleEditor, IStyleEditorConfig, IPropEditor, IPropEditorConfig } from './i-editors';
|
|
6
6
|
import { IDesignerConfig, IPageVars, RunCallback as RunCallbackSelf, beforeCreate as beforeCreateSelf, loopCallback as loopCallbackSelf } from './i-hooks-and-misc';
|
|
7
7
|
export type * from './i-common';
|
|
@@ -32,7 +32,6 @@ export declare namespace LowCodeWidget {
|
|
|
32
32
|
type BasicEvents = IBasicEvents;
|
|
33
33
|
type JsEvent = IJsEvent;
|
|
34
34
|
type InnerEvents = IInnerEvents;
|
|
35
|
-
type LoInterface = ILoInterface;
|
|
36
35
|
type EventsType = IEventsType;
|
|
37
36
|
type StyleEditor = IStyleEditor;
|
|
38
37
|
type StyleEditorConfig = IStyleEditorConfig;
|
|
@@ -44,3 +43,9 @@ export declare namespace LowCodeWidget {
|
|
|
44
43
|
type DesignerConfig = IDesignerConfig;
|
|
45
44
|
type PageVars = IPageVars;
|
|
46
45
|
}
|
|
46
|
+
export type { IBasicSchema, IFieldSchema, ISearchSchema, IWrapperCmpConfigParams, } from './i-schemas';
|
|
47
|
+
export type { ICommonProps, IWidgetProps, IDisplayProps, IFormItemProps, ILayoutProps, IDependency, IFieldToProp, } from './i-props';
|
|
48
|
+
export type { IBasicStyle, IFontStyle, IBorderStyle, ITagConfigStyle, IProgressConfigStyle, IColumnFontStyleByRule, IColumnBackgroundByRule, } from './i-styles';
|
|
49
|
+
export type { IBasicEvents, IJsEvent, IInnerEvents, IEventsType, } from './i-events';
|
|
50
|
+
export type { IStyleEditor, IStyleEditorConfig, IPropEditor, IPropEditorConfig, } from './i-editors';
|
|
51
|
+
export type { IDesignerConfig, IPageVars, RunCallback, beforeCreate, loopCallback, } from './i-hooks-and-misc';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { LowCodeWidget } from '../widget';
|
|
2
|
+
/**
|
|
3
|
+
* 拖拽项钩子
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
* @interface IDesignerItemHooks
|
|
7
|
+
* @template O
|
|
8
|
+
*/
|
|
9
|
+
export interface IDesignerItemHooks<O = LowCodeWidget.BasicSchema> {
|
|
10
|
+
/**
|
|
11
|
+
* 放置钩子
|
|
12
|
+
*
|
|
13
|
+
* @param {IDesignerController} c
|
|
14
|
+
* @param {('create' | 'move')} mode
|
|
15
|
+
* @param {O[]} parentWidgets
|
|
16
|
+
* @param {O[]} items
|
|
17
|
+
* @param {O} item
|
|
18
|
+
* @returns {*} {(Promise<O | null>)}
|
|
19
|
+
*/
|
|
20
|
+
drop?(c: unknown, mode: 'create' | 'move', parentWidgets: O[], items: O[], item: O): Promise<O | null>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LowCodeWidget } from '../widget';
|
|
2
|
+
import { IDesignerItemHooks } from './i-designer-item-hooks';
|
|
3
|
+
export type ExportWidgetSchema = Record<string, LowCodeWidget.BasicSchema>;
|
|
4
|
+
export type ExportWidgetPropEditors = Record<string, LowCodeWidget.PropEditor[]>;
|
|
5
|
+
export type ExportWidgetStyleEditors = Record<string, LowCodeWidget.StyleEditor[]>;
|
|
6
|
+
export type ExportWidgetEvents = Record<string, LowCodeWidget.EventsType[]>;
|
|
7
|
+
export type ExportWidgetHooks = Record<string, IDesignerItemHooks>;
|
|
8
|
+
export type ExportWidgetWhiteList = Record<string, (string | RegExp)[]>;
|
|
9
|
+
export type ExportWidgetBlackList = Record<string, (string | RegExp)[]>;
|
|
10
|
+
export type ExportWidgetCallback = Record<string, LowCodeWidget.RunCallback>;
|
|
11
|
+
export type ExportWidgetBeforeCreate = Record<string, LowCodeWidget.beforeCreate>;
|
|
12
|
+
export type ExportWidgetLoopCallback = Record<string, LowCodeWidget.loopCallback>;
|
|
13
|
+
export type ExportWidgetDesignerConfig = Record<string, LowCodeWidget.DesignerConfig>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { LowCodeWidget } from '../widget';
|
|
2
|
+
import { IDesignerItemHooks } from './i-designer-item-hooks';
|
|
3
|
+
/**
|
|
4
|
+
* 设计界面单一组件配置信息
|
|
5
|
+
*
|
|
6
|
+
* @export
|
|
7
|
+
* @interface IWidgetInfoItem
|
|
8
|
+
*/
|
|
9
|
+
export interface IWidgetInfoItem {
|
|
10
|
+
/**
|
|
11
|
+
* 套件类别,用于识别可使用的系统。取 getApp 中的 suiteKey,例如 MedPro 使用 kit=['MEDPRO']
|
|
12
|
+
*
|
|
13
|
+
* @author zhanghanrui
|
|
14
|
+
* @date 2024-05-28 09:05:32
|
|
15
|
+
* @type {string[]}
|
|
16
|
+
*/
|
|
17
|
+
kit?: string[];
|
|
18
|
+
/**
|
|
19
|
+
* 项拖拽钩子
|
|
20
|
+
*
|
|
21
|
+
* @type {IDesignerItemHooks}
|
|
22
|
+
*/
|
|
23
|
+
hooks?: IDesignerItemHooks;
|
|
24
|
+
/**
|
|
25
|
+
* 白名单,只允许在白名单中的组件拖入
|
|
26
|
+
*
|
|
27
|
+
* @type {(string | RegExp)[]}
|
|
28
|
+
*/
|
|
29
|
+
whiteList?: (string | RegExp)[];
|
|
30
|
+
/**
|
|
31
|
+
* 黑名单,不允许拖入黑名单中的组件
|
|
32
|
+
*
|
|
33
|
+
* @type {(string | RegExp)[]}
|
|
34
|
+
*/
|
|
35
|
+
blackList?: (string | RegExp)[];
|
|
36
|
+
/**
|
|
37
|
+
* 基础组件描述
|
|
38
|
+
*
|
|
39
|
+
* @type {LowCodeWidget.BasicSchema}
|
|
40
|
+
*/
|
|
41
|
+
schema: LowCodeWidget.BasicSchema;
|
|
42
|
+
/**
|
|
43
|
+
* 组件支持配置事件描述
|
|
44
|
+
*
|
|
45
|
+
* @type {LowCodeWidget.EventsType[]}
|
|
46
|
+
*/
|
|
47
|
+
events?: LowCodeWidget.EventsType[];
|
|
48
|
+
/**
|
|
49
|
+
* 组件右侧属性表单模型描述
|
|
50
|
+
*
|
|
51
|
+
* @type {LowCodeWidget.PropEditor[]}
|
|
52
|
+
*/
|
|
53
|
+
propEditors: LowCodeWidget.PropEditor[];
|
|
54
|
+
/**
|
|
55
|
+
* 保存时钩子函数
|
|
56
|
+
*
|
|
57
|
+
* @type {LowCodeWidget.RunCallback}
|
|
58
|
+
*/
|
|
59
|
+
callback?: LowCodeWidget.RunCallback;
|
|
60
|
+
/**
|
|
61
|
+
* 拖入时钩子函数
|
|
62
|
+
*
|
|
63
|
+
* @type {LowCodeWidget.beforeCreate}
|
|
64
|
+
*/
|
|
65
|
+
beforeCreate?: LowCodeWidget.beforeCreate;
|
|
66
|
+
/**
|
|
67
|
+
* 样式编辑器配置
|
|
68
|
+
*
|
|
69
|
+
* @type {LowCodeWidget.StyleEditor[]}
|
|
70
|
+
*/
|
|
71
|
+
styleEditors?: LowCodeWidget.StyleEditor[];
|
|
72
|
+
/**
|
|
73
|
+
* 设计页面配置信息
|
|
74
|
+
*
|
|
75
|
+
* @type {LowCodeWidget.DesignerConfig}
|
|
76
|
+
*/
|
|
77
|
+
designerConfig?: LowCodeWidget.DesignerConfig;
|
|
78
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ExportWidgetBeforeCreate, ExportWidgetBlackList, ExportWidgetCallback, ExportWidgetDesignerConfig, ExportWidgetEvents, ExportWidgetHooks, ExportWidgetPropEditors, ExportWidgetSchema, ExportWidgetStyleEditors, ExportWidgetWhiteList } from './i-designer-schema-exports';
|
|
2
|
+
/**
|
|
3
|
+
* 设计界面单一组件配置信息
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
* @interface IWidgetInfo
|
|
7
|
+
*/
|
|
8
|
+
export interface IWidgetInfo {
|
|
9
|
+
events: ExportWidgetEvents;
|
|
10
|
+
propEditors: ExportWidgetPropEditors;
|
|
11
|
+
schema: ExportWidgetSchema;
|
|
12
|
+
callback: ExportWidgetCallback;
|
|
13
|
+
beforeCreate: ExportWidgetBeforeCreate;
|
|
14
|
+
styleEditors: ExportWidgetStyleEditors;
|
|
15
|
+
designerConfig: ExportWidgetDesignerConfig;
|
|
16
|
+
hooks: ExportWidgetHooks;
|
|
17
|
+
whiteList: ExportWidgetWhiteList;
|
|
18
|
+
blackList: ExportWidgetBlackList;
|
|
19
|
+
}
|