@gct-paas/schema 0.1.4-dev.8 → 0.1.5-dev.0
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.js +1 -0
- package/es/constants/design.d.ts +26 -0
- package/es/constants/design.mjs +30 -0
- package/es/constants/index.d.ts +28 -0
- package/es/constants/index.mjs +411 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +13 -10
- package/es/interface/common/data-linkage-config.d.ts +17 -0
- package/es/interface/design/i-design-container-node.d.ts +13 -0
- package/es/interface/design/i-design-data.d.ts +44 -0
- package/es/interface/design/i-design-editor-data.d.ts +20 -0
- package/es/interface/design/i-design-editor-node.d.ts +15 -0
- package/es/interface/design/i-design-node-data.d.ts +19 -0
- package/es/interface/design/i-design-node.d.ts +80 -0
- package/es/interface/design/i-design-page-node-data.d.ts +15 -0
- package/es/interface/design/i-design-tree-item.d.ts +26 -0
- package/es/interface/design/i-drag-data-item.d.ts +46 -0
- package/es/interface/design/index.d.ts +9 -0
- package/es/interface/designer.d.ts +8 -7
- package/es/interface/index.d.ts +7 -2
- package/es/interface/modal/i-modal-body.d.ts +1 -1
- package/es/interface/modal/i-modal.d.ts +1 -1
- package/es/interface/relationship-diagram-config/i-relationship-diagram-node.d.ts +82 -0
- package/es/interface/relationship-diagram-config/i-rule-config.d.ts +135 -0
- package/es/interface/relationship-diagram-config/index.d.ts +2 -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-card-list-props.d.ts +79 -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 +91 -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 +132 -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 +9 -0
- package/es/interface/schema/widget-types.d.ts +399 -0
- package/es/interface/widget/i-common.d.ts +2 -1
- package/es/interface/widget/i-editors.d.ts +3 -2
- 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 +14 -32
- package/es/interface/widget/i-schemas.d.ts +6 -4
- package/es/interface/widget/i-styles.d.ts +2 -1
- package/es/interface/widget/index.d.ts +9 -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/utils/field-editor-override-registry/field-editor-override-registry.d.ts +36 -0
- package/es/utils/field-editor-override-registry/field-editor-override-registry.mjs +29 -0
- package/es/utils/index.d.ts +4 -2
- package/es/utils/index.mjs +6 -0
- package/es/utils/schema/index.d.ts +38 -1
- package/es/utils/schema/index.mjs +83 -5
- package/es/utils/schema/search.d.ts +9 -0
- package/es/utils/schema/search.mjs +146 -0
- package/es/utils/schema/utils.d.ts +21 -0
- package/es/utils/schema/utils.mjs +182 -0
- package/es/utils/schema-style/index.mjs +203 -127
- package/es/utils/widget-info/widget-info.d.ts +104 -0
- package/es/utils/widget-info/widget-info.mjs +151 -0
- package/package.json +12 -13
- package/dist/index.esm.min.mjs +0 -237
- package/dist/index.min.cjs +0 -1
- package/dist/index.system.min.js +0 -1
- package/es/schema/common-config/common-style.d.ts +0 -3
- package/es/schema/common-config/common-style.mjs +0 -85
- package/es/schema/index.d.ts +0 -1
|
@@ -0,0 +1,399 @@
|
|
|
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, QuickSearchProps, 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, CardListProps, CardHeaderLeftProps, CardHeaderRightProps, CardContentProps, CardOpeBtnProps } 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 QuickSearch extends LowCodeWidget.BasicSchema {
|
|
84
|
+
props: QuickSearchProps;
|
|
85
|
+
}
|
|
86
|
+
export interface RefDataTable extends DataTable {
|
|
87
|
+
props: RefDataTableProps;
|
|
88
|
+
}
|
|
89
|
+
export interface DataTable extends LowCodeWidget.BasicSchema {
|
|
90
|
+
props: DataTableProps;
|
|
91
|
+
children: [
|
|
92
|
+
OperateTable,
|
|
93
|
+
{
|
|
94
|
+
alias: string;
|
|
95
|
+
props?: IData;
|
|
96
|
+
children: (FormulaTable | ColumnTable)[];
|
|
97
|
+
preLocation?: string;
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
alias: string;
|
|
101
|
+
props?: IData;
|
|
102
|
+
children: OperateButton[];
|
|
103
|
+
preLocation?: string;
|
|
104
|
+
visibleButtons?: number;
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
alias: string;
|
|
108
|
+
props?: IData;
|
|
109
|
+
children: OperateButton[];
|
|
110
|
+
preLocation?: string;
|
|
111
|
+
visibleButtons?: number;
|
|
112
|
+
},
|
|
113
|
+
SubDataTable
|
|
114
|
+
];
|
|
115
|
+
}
|
|
116
|
+
export interface TreeTable extends LowCodeWidget.BasicSchema {
|
|
117
|
+
props: treeTableProps;
|
|
118
|
+
children: [
|
|
119
|
+
OperateTable,
|
|
120
|
+
{
|
|
121
|
+
alias: string;
|
|
122
|
+
props?: IData;
|
|
123
|
+
children: (FormulaTable | ColumnTable)[];
|
|
124
|
+
preLocation?: string;
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
alias: string;
|
|
128
|
+
props?: IData;
|
|
129
|
+
children: OperateButton[];
|
|
130
|
+
preLocation?: string;
|
|
131
|
+
visibleButtons?: number;
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
alias: string;
|
|
135
|
+
props?: IData;
|
|
136
|
+
children: OperateButton[];
|
|
137
|
+
preLocation?: string;
|
|
138
|
+
visibleButtons?: number;
|
|
139
|
+
}
|
|
140
|
+
];
|
|
141
|
+
}
|
|
142
|
+
export interface TreeTableMobile extends LowCodeWidget.BasicSchema {
|
|
143
|
+
props: treeTableProps;
|
|
144
|
+
children: (FormulaTable | ColumnTable)[];
|
|
145
|
+
}
|
|
146
|
+
export interface DataTableMobile extends LowCodeWidget.BasicSchema {
|
|
147
|
+
props: DataTableProps;
|
|
148
|
+
children: (FormulaTable | ColumnTable)[];
|
|
149
|
+
}
|
|
150
|
+
export interface FormulaTable extends LowCodeWidget.BasicSchema {
|
|
151
|
+
props: FormulaProps;
|
|
152
|
+
}
|
|
153
|
+
export interface OperateTable extends LowCodeWidget.BasicSchema {
|
|
154
|
+
props: OperateProps;
|
|
155
|
+
children: OperateButton[];
|
|
156
|
+
}
|
|
157
|
+
export interface OperateButton extends LowCodeWidget.BasicSchema {
|
|
158
|
+
props: OperateButtonProps;
|
|
159
|
+
}
|
|
160
|
+
export interface ColumnTable extends LowCodeWidget.BasicSchema {
|
|
161
|
+
props: ColumnTableProps;
|
|
162
|
+
children?: [LowCodeWidget.SearchSchema];
|
|
163
|
+
}
|
|
164
|
+
export interface DataList extends LowCodeWidget.BasicSchema {
|
|
165
|
+
props: DataListProps;
|
|
166
|
+
}
|
|
167
|
+
export interface Button extends LowCodeWidget.BasicSchema {
|
|
168
|
+
/**布局 块级 行内 */
|
|
169
|
+
display: DisplayEnums.INLINE_BLOCK;
|
|
170
|
+
props: ButtonProps;
|
|
171
|
+
}
|
|
172
|
+
export interface approveButton extends LowCodeWidget.BasicSchema {
|
|
173
|
+
props: approveButtonProps;
|
|
174
|
+
}
|
|
175
|
+
export interface TableApproveButton extends LowCodeWidget.BasicSchema {
|
|
176
|
+
props: TableApproveButtonProps;
|
|
177
|
+
}
|
|
178
|
+
export interface ResetButton extends LowCodeWidget.BasicSchema {
|
|
179
|
+
props: ResetButtonProps;
|
|
180
|
+
}
|
|
181
|
+
export interface BaseButton extends LowCodeWidget.BasicSchema {
|
|
182
|
+
/**布局 块级 行内 */
|
|
183
|
+
display: DisplayEnums.INLINE_BLOCK;
|
|
184
|
+
props: BaseButtonProps;
|
|
185
|
+
}
|
|
186
|
+
export interface LabelPrintButton extends LowCodeWidget.BasicSchema {
|
|
187
|
+
props: LabelPrintProps;
|
|
188
|
+
}
|
|
189
|
+
export interface DocumentPrintButton extends LowCodeWidget.BasicSchema {
|
|
190
|
+
props: DocumentPrintProps;
|
|
191
|
+
}
|
|
192
|
+
export interface ExportButton extends LowCodeWidget.BasicSchema {
|
|
193
|
+
props: ExportProps;
|
|
194
|
+
}
|
|
195
|
+
export interface ProcessButton extends LowCodeWidget.BasicSchema {
|
|
196
|
+
props: ProcessButtonProps;
|
|
197
|
+
}
|
|
198
|
+
export interface tabPane extends LowCodeWidget.BasicSchema {
|
|
199
|
+
props: TabPaneProps;
|
|
200
|
+
}
|
|
201
|
+
export interface Tabs extends LowCodeWidget.BasicSchema {
|
|
202
|
+
props: TabsProps;
|
|
203
|
+
children: tabPane[];
|
|
204
|
+
}
|
|
205
|
+
export interface LayoutContainer extends LowCodeWidget.BasicSchema {
|
|
206
|
+
display: DisplayEnums.BLOCK;
|
|
207
|
+
props: LayoutProps;
|
|
208
|
+
}
|
|
209
|
+
export interface ButtonContainer extends LowCodeWidget.BasicSchema {
|
|
210
|
+
props: ButtonContainerProps;
|
|
211
|
+
children: Button[];
|
|
212
|
+
}
|
|
213
|
+
export interface ButtonProcessContainer extends LowCodeWidget.BasicSchema {
|
|
214
|
+
props: ButtonProcessContainerProps;
|
|
215
|
+
children: approveButton[];
|
|
216
|
+
}
|
|
217
|
+
export interface Grid extends LowCodeWidget.BasicSchema {
|
|
218
|
+
props: GridProps;
|
|
219
|
+
children: GridCol[];
|
|
220
|
+
}
|
|
221
|
+
export interface GridCol extends LowCodeWidget.BasicSchema {
|
|
222
|
+
props: GridColProps;
|
|
223
|
+
}
|
|
224
|
+
export interface LayoutColumns extends LowCodeWidget.BasicSchema {
|
|
225
|
+
props: ColumnsProps;
|
|
226
|
+
}
|
|
227
|
+
export interface UploadFile extends LowCodeWidget.BasicSchema {
|
|
228
|
+
props: UploadFileProps;
|
|
229
|
+
}
|
|
230
|
+
export interface SubTable extends LowCodeWidget.BasicSchema {
|
|
231
|
+
props: SubTableProps;
|
|
232
|
+
children: [
|
|
233
|
+
LowCodeModal.Modal,
|
|
234
|
+
OperateTable,
|
|
235
|
+
ButtonContainer,
|
|
236
|
+
{
|
|
237
|
+
alias: string;
|
|
238
|
+
children: LowCodeWidget.FieldSchema[];
|
|
239
|
+
}
|
|
240
|
+
];
|
|
241
|
+
}
|
|
242
|
+
export interface DynamicTable extends LowCodeWidget.BasicSchema {
|
|
243
|
+
props: DynamicTableProps;
|
|
244
|
+
children: [
|
|
245
|
+
LowCodeModal.Modal,
|
|
246
|
+
OperateTable,
|
|
247
|
+
ButtonContainer,
|
|
248
|
+
{
|
|
249
|
+
alias: string;
|
|
250
|
+
children: LowCodeWidget.FieldSchema[];
|
|
251
|
+
}
|
|
252
|
+
];
|
|
253
|
+
}
|
|
254
|
+
export interface WorkflowNodes extends LowCodeWidget.BasicSchema {
|
|
255
|
+
props: WorkflowNodesProps;
|
|
256
|
+
}
|
|
257
|
+
export interface ReadonlyCmp extends LowCodeWidget.BasicSchema {
|
|
258
|
+
props: ReadonlyCmpProps;
|
|
259
|
+
}
|
|
260
|
+
export interface CustomField extends LowCodeWidget.BasicSchema {
|
|
261
|
+
props: CustomFieldProps;
|
|
262
|
+
}
|
|
263
|
+
export interface TableSelect extends LowCodeWidget.BasicSchema {
|
|
264
|
+
props: TableSelectProps;
|
|
265
|
+
children: [
|
|
266
|
+
Search,
|
|
267
|
+
{
|
|
268
|
+
alias: string;
|
|
269
|
+
children: LowCodeWidget.FieldSchema[];
|
|
270
|
+
},
|
|
271
|
+
OperateTable
|
|
272
|
+
];
|
|
273
|
+
}
|
|
274
|
+
export interface GenCheckbox extends LowCodeWidget.BasicSchema {
|
|
275
|
+
props: GenRadioProps;
|
|
276
|
+
}
|
|
277
|
+
export interface GenRadio extends LowCodeWidget.BasicSchema {
|
|
278
|
+
props: GenRadioProps;
|
|
279
|
+
}
|
|
280
|
+
export interface GenSwitch extends LowCodeWidget.BasicSchema {
|
|
281
|
+
props: GenSwitchProps;
|
|
282
|
+
}
|
|
283
|
+
export interface ESOP extends LowCodeWidget.BasicSchema {
|
|
284
|
+
props: EsopProps;
|
|
285
|
+
}
|
|
286
|
+
export interface Expression extends LowCodeWidget.BasicSchema {
|
|
287
|
+
props: ExpressionProps;
|
|
288
|
+
}
|
|
289
|
+
export interface Agg extends LowCodeWidget.BasicSchema {
|
|
290
|
+
props: AggProps;
|
|
291
|
+
}
|
|
292
|
+
export interface SerialRule extends LowCodeWidget.BasicSchema {
|
|
293
|
+
props: SerialRuleProps;
|
|
294
|
+
}
|
|
295
|
+
export interface SelectSearch extends LowCodeWidget.BasicSchema {
|
|
296
|
+
props: SelectSearchProps;
|
|
297
|
+
children: ColumnTable[];
|
|
298
|
+
linkageField: LinkageItem[];
|
|
299
|
+
}
|
|
300
|
+
export interface Collapse extends LowCodeWidget.BasicSchema {
|
|
301
|
+
props: CollapseProps;
|
|
302
|
+
}
|
|
303
|
+
export interface SpaceOccupation extends LowCodeWidget.BasicSchema {
|
|
304
|
+
props: SpaceOccupationProps;
|
|
305
|
+
}
|
|
306
|
+
export interface Divider extends LowCodeWidget.BasicSchema {
|
|
307
|
+
props: DividerProps;
|
|
308
|
+
}
|
|
309
|
+
export interface Text extends LowCodeWidget.BasicSchema {
|
|
310
|
+
props: TextProps;
|
|
311
|
+
}
|
|
312
|
+
export interface GenImage extends LowCodeWidget.BasicSchema {
|
|
313
|
+
props: GenImageProps;
|
|
314
|
+
}
|
|
315
|
+
export interface BottomButtonContainer extends LowCodeWidget.BasicSchema {
|
|
316
|
+
props: ButtonContainerProps;
|
|
317
|
+
children: Button[];
|
|
318
|
+
}
|
|
319
|
+
export interface Iframe extends LowCodeWidget.BasicSchema {
|
|
320
|
+
props: IframeProps;
|
|
321
|
+
}
|
|
322
|
+
export interface CustomCode extends LowCodeWidget.BasicSchema {
|
|
323
|
+
props: CustomCodeProps;
|
|
324
|
+
}
|
|
325
|
+
export interface SubDataTable extends DataTable {
|
|
326
|
+
props: SubDataTableProps;
|
|
327
|
+
}
|
|
328
|
+
export interface BizProcess extends LowCodeWidget.BasicSchema {
|
|
329
|
+
props: BizProcessProps;
|
|
330
|
+
}
|
|
331
|
+
export interface ApprovalProcess extends LowCodeWidget.BasicSchema {
|
|
332
|
+
props: ApprovalProcessProps;
|
|
333
|
+
}
|
|
334
|
+
export interface CardList extends LowCodeWidget.BasicSchema {
|
|
335
|
+
props: CardListProps;
|
|
336
|
+
children: CardHeaderLeft[] | CardHeaderRight[] | CardContent[] | CardOpeBtn[];
|
|
337
|
+
}
|
|
338
|
+
export interface CardHeaderLeft extends LowCodeWidget.BasicSchema {
|
|
339
|
+
props: CardHeaderLeftProps;
|
|
340
|
+
}
|
|
341
|
+
export interface CardHeaderRight extends LowCodeWidget.BasicSchema {
|
|
342
|
+
props: CardHeaderRightProps;
|
|
343
|
+
}
|
|
344
|
+
export interface CardContent extends LowCodeWidget.BasicSchema {
|
|
345
|
+
props: CardContentProps;
|
|
346
|
+
}
|
|
347
|
+
export interface CardOpeBtn extends LowCodeWidget.BasicSchema {
|
|
348
|
+
props: CardOpeBtnProps;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* type 和 类型的映射关系
|
|
352
|
+
*/
|
|
353
|
+
export interface Mapping {
|
|
354
|
+
[FormComponents.SubmitButton]: Button;
|
|
355
|
+
[FormComponents.ResetButton]: ResetButton;
|
|
356
|
+
[FormComponents.Checkbox]: Checkbox;
|
|
357
|
+
[FormComponents.DataTable]: DataTable;
|
|
358
|
+
[FormComponents.DataVTable]: DataTable;
|
|
359
|
+
[FormComponents.DateTimepicker]: DateTimepicker;
|
|
360
|
+
[FormComponents.Datepicker]: Datepicker;
|
|
361
|
+
[FormComponents.Department]: Department;
|
|
362
|
+
[FormComponents.Form]: Form;
|
|
363
|
+
[FormComponents.Input]: Input;
|
|
364
|
+
[FormComponents.Inputnumber]: InputNumber;
|
|
365
|
+
[FormComponents.InputDouble]: InputDouble;
|
|
366
|
+
[FormComponents.Inputmoney]: InputMoney;
|
|
367
|
+
[FormComponents.Radio]: Radio;
|
|
368
|
+
[FormComponents.Search]: Search;
|
|
369
|
+
[FormComponents.Select]: Select;
|
|
370
|
+
[FormComponents.Userpicker]: Userpicker;
|
|
371
|
+
[FormComponents.Timepicker]: Timepicker;
|
|
372
|
+
[FormComponents.Textarea]: Textarea;
|
|
373
|
+
[FormComponents.TabPane]: tabPane;
|
|
374
|
+
[FormComponents.Tabs]: Tabs;
|
|
375
|
+
[FormComponents.DataTableOpe]: OperateTable;
|
|
376
|
+
[FormComponents.OpeButton]: OperateButton;
|
|
377
|
+
[FormComponents.DataTableColumn]: ColumnTable;
|
|
378
|
+
[FormComponents.DataTableFormula]: FormulaTable;
|
|
379
|
+
[FormComponents.ESOP]: ESOP;
|
|
380
|
+
[FormComponents.EXPRESSION]: Expression;
|
|
381
|
+
[FormComponents.AGG]: Agg;
|
|
382
|
+
[FormComponents.ButtonContainer]: ButtonContainer;
|
|
383
|
+
[FormComponents.BottomButtonContainer]: BottomButtonContainer;
|
|
384
|
+
[FormComponents.DataList]: DataList;
|
|
385
|
+
[FormComponents.RdoDataList]: DataList;
|
|
386
|
+
[FormComponents.RdoForm]: Form;
|
|
387
|
+
[FormComponents.MedProRdoForm]: Form;
|
|
388
|
+
[FormComponents.SerialRule]: SerialRule;
|
|
389
|
+
[FormComponents.CustomField]: CustomField;
|
|
390
|
+
[FormComponents.Descriptions]: Descriptions;
|
|
391
|
+
[FormComponents.GenImage]: GenImage;
|
|
392
|
+
[FormComponents.SubDataTable]: SubDataTable;
|
|
393
|
+
[FormComponents.TableSelect]: TableSelect;
|
|
394
|
+
[FormComponents.SubTable]: SubTable;
|
|
395
|
+
[FormComponents.ProcessApproveButton]: approveButton;
|
|
396
|
+
[FormComponents.BizProcess]: BizProcess;
|
|
397
|
+
[FormComponents.FormProcess]: FormProcess;
|
|
398
|
+
[FormComponents.ApprovalProcess]: ApprovalProcess;
|
|
399
|
+
}
|
|
@@ -30,9 +30,10 @@ export interface validateRule {
|
|
|
30
30
|
ruleName: string;
|
|
31
31
|
field: string;
|
|
32
32
|
ruleType: VERIFICATIONCONDITIONS_TYPE.JS;
|
|
33
|
-
trigger?: 'change' | '
|
|
33
|
+
trigger?: 'change' | 'blur';
|
|
34
34
|
message?: string;
|
|
35
35
|
jsName?: string;
|
|
36
|
+
extParams?: IObject;
|
|
36
37
|
}
|
|
37
38
|
/**
|
|
38
39
|
* 组件类型与组件Schema接口映射
|
|
@@ -79,7 +79,7 @@ export interface IPropEditor {
|
|
|
79
79
|
/** prop分组 */
|
|
80
80
|
group: PropGroup | string;
|
|
81
81
|
/** 自定义校验 */
|
|
82
|
-
validate?: Promise<any
|
|
82
|
+
validate?: Promise<any> | Fn;
|
|
83
83
|
/** editor内部的自定义config逻辑 */
|
|
84
84
|
_config?: Partial<IPropEditorConfig>;
|
|
85
85
|
/** 表单项额外配置 */
|
|
@@ -97,6 +97,7 @@ export interface IPropEditor {
|
|
|
97
97
|
formItemStyle?: CSSProperties;
|
|
98
98
|
formItemClass?: string;
|
|
99
99
|
onMounted?: (widget: IBasicSchema) => void;
|
|
100
|
+
[key: string]: any;
|
|
100
101
|
}
|
|
101
102
|
/**
|
|
102
103
|
* editor属性
|
|
@@ -194,7 +195,7 @@ export interface IPropEditorConfig {
|
|
|
194
195
|
/** 需要过滤的字段 */
|
|
195
196
|
excludeFieldType?: FIELD_TYPE[];
|
|
196
197
|
/** 最要过滤的字段key */
|
|
197
|
-
excludeFieldKey?: string[];
|
|
198
|
+
excludeFieldKey?: string[] | Function;
|
|
198
199
|
/** 默认展开所有节点 */
|
|
199
200
|
defaultExpandAll?: boolean;
|
|
200
201
|
/** 显示checkbox */
|
|
@@ -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,5 +1,5 @@
|
|
|
1
1
|
import { FieldMetaDTO } from '@gct-paas/api/apaas';
|
|
2
|
-
import { DisplayType, Dependency_ENUM,
|
|
2
|
+
import { DisplayType, Dependency_ENUM, EntityModelCategoryEnum, EntityModelTypeEnum, FIELD_TYPE, UniqueConstraintType } from '@gct-paas/core';
|
|
3
3
|
/**
|
|
4
4
|
* BasicSchema中的组件prop
|
|
5
5
|
*
|
|
@@ -11,7 +11,9 @@ export type ICommonProps = Record<string, any>;
|
|
|
11
11
|
*
|
|
12
12
|
* @type IWidgetProps
|
|
13
13
|
*/
|
|
14
|
-
export
|
|
14
|
+
export interface IWidgetProps extends IDisplayProps {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}
|
|
15
17
|
/**
|
|
16
18
|
* 布局组件Prop Schema
|
|
17
19
|
*
|
|
@@ -48,42 +50,22 @@ export interface IDisplayProps {
|
|
|
48
50
|
/** 组件依赖配置 */
|
|
49
51
|
configDependency: IDependency;
|
|
50
52
|
};
|
|
53
|
+
deviceConnectivity: boolean;
|
|
54
|
+
}
|
|
55
|
+
export interface IDependencyItem {
|
|
56
|
+
expressionStr?: string;
|
|
57
|
+
expression?: string;
|
|
58
|
+
value?: boolean;
|
|
59
|
+
/** 字段组件上的配置信息 */
|
|
60
|
+
fieldValue?: boolean;
|
|
61
|
+
strategy?: string;
|
|
51
62
|
}
|
|
52
63
|
/**
|
|
53
64
|
* 组件依赖
|
|
54
65
|
*
|
|
55
66
|
* @interface IDependency
|
|
56
67
|
*/
|
|
57
|
-
export
|
|
58
|
-
[Dependency_ENUM.HIDDEN]: {
|
|
59
|
-
expression?: string;
|
|
60
|
-
value?: boolean;
|
|
61
|
-
};
|
|
62
|
-
/** 只读 */
|
|
63
|
-
[Dependency_ENUM.READONLY]: {
|
|
64
|
-
expression?: string;
|
|
65
|
-
value?: boolean;
|
|
66
|
-
/** 字段组件上的配置信息 */
|
|
67
|
-
fieldValue?: boolean;
|
|
68
|
-
};
|
|
69
|
-
/** 禁用 */
|
|
70
|
-
[Dependency_ENUM.DISABLED]: {
|
|
71
|
-
expression?: string;
|
|
72
|
-
value?: boolean;
|
|
73
|
-
};
|
|
74
|
-
/** 必填 */
|
|
75
|
-
[Dependency_ENUM.REQUIRED]: {
|
|
76
|
-
expression?: string;
|
|
77
|
-
value?: boolean;
|
|
78
|
-
/** 字段组件上的配置信息 */
|
|
79
|
-
fieldValue?: boolean;
|
|
80
|
-
};
|
|
81
|
-
[Dependency_ENUM.ASSIGNMENT]: {
|
|
82
|
-
expression?: string;
|
|
83
|
-
strategy?: ASSIGNMENTSTRATEGY_ENUM;
|
|
84
|
-
value?: boolean;
|
|
85
|
-
};
|
|
86
|
-
}
|
|
68
|
+
export type IDependency = Partial<Record<Dependency_ENUM, IDependencyItem>>;
|
|
87
69
|
/**
|
|
88
70
|
* 表单组件Prop Schema
|
|
89
71
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
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';
|
|
@@ -9,6 +9,7 @@ import { PagePlugin } from '../designer';
|
|
|
9
9
|
* @interface IBasicSchema
|
|
10
10
|
*/
|
|
11
11
|
export interface IBasicSchema {
|
|
12
|
+
[key: string]: any;
|
|
12
13
|
/** 组件唯一标识 */
|
|
13
14
|
id: string;
|
|
14
15
|
/** 显示设备 */
|
|
@@ -24,7 +25,7 @@ export interface IBasicSchema {
|
|
|
24
25
|
/** 自定义展示组件key的名字 */
|
|
25
26
|
compKey?: string;
|
|
26
27
|
/** 组件类型 需和文件名一致 */
|
|
27
|
-
type:
|
|
28
|
+
type: string | FormComponents;
|
|
28
29
|
/** icon, 配置组件库使用 */
|
|
29
30
|
icon: string;
|
|
30
31
|
/** 子集, 仅布局组件使用 */
|
|
@@ -110,6 +111,7 @@ export interface ISearchSchema {
|
|
|
110
111
|
isSearchField: boolean;
|
|
111
112
|
materialType: MaterialEnum;
|
|
112
113
|
props: {
|
|
114
|
+
[key: string]: any;
|
|
113
115
|
/** 字段key */
|
|
114
116
|
field: string;
|
|
115
117
|
/** 字段id */
|
|
@@ -120,11 +122,11 @@ export interface ISearchSchema {
|
|
|
120
122
|
label: string;
|
|
121
123
|
defaultValue: any;
|
|
122
124
|
placeholder: string;
|
|
123
|
-
ope:
|
|
125
|
+
ope: SEARCH_SERVICE[];
|
|
124
126
|
/** 是否区间搜索 */
|
|
125
127
|
isRang?: boolean;
|
|
126
128
|
/** 是否启用了其他选项 */
|
|
127
|
-
useMore?:
|
|
129
|
+
useMore?: SEARCH_SERVICE | '';
|
|
128
130
|
bindModelKey?: string;
|
|
129
131
|
modelKey?: string;
|
|
130
132
|
readonly: boolean;
|
|
@@ -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
|
* 组件只读时开启标签配置的样式
|
|
@@ -111,4 +111,5 @@ export interface IBasicStyle {
|
|
|
111
111
|
/** 表格高度样式 */
|
|
112
112
|
tableheightConfigure?: tableColumnWidthEnum;
|
|
113
113
|
enableHeaderBGColor?: boolean;
|
|
114
|
+
enableBGColor?: boolean;
|
|
114
115
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
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
|
+
import { IDesignerItemHooks } from '../widget-info';
|
|
7
8
|
export type * from './i-common';
|
|
8
9
|
/**
|
|
9
10
|
* 低代码组件命名空间
|
|
@@ -32,7 +33,6 @@ export declare namespace LowCodeWidget {
|
|
|
32
33
|
type BasicEvents = IBasicEvents;
|
|
33
34
|
type JsEvent = IJsEvent;
|
|
34
35
|
type InnerEvents = IInnerEvents;
|
|
35
|
-
type LoInterface = ILoInterface;
|
|
36
36
|
type EventsType = IEventsType;
|
|
37
37
|
type StyleEditor = IStyleEditor;
|
|
38
38
|
type StyleEditorConfig = IStyleEditorConfig;
|
|
@@ -40,7 +40,14 @@ export declare namespace LowCodeWidget {
|
|
|
40
40
|
type PropEditorConfig = IPropEditorConfig;
|
|
41
41
|
type RunCallback = RunCallbackSelf;
|
|
42
42
|
type beforeCreate = beforeCreateSelf;
|
|
43
|
+
type hooks<O = unknown> = IDesignerItemHooks<O>;
|
|
43
44
|
type loopCallback = loopCallbackSelf;
|
|
44
45
|
type DesignerConfig = IDesignerConfig;
|
|
45
46
|
type PageVars = IPageVars;
|
|
46
47
|
}
|
|
48
|
+
export type { IBasicSchema, IFieldSchema, ISearchSchema, IWrapperCmpConfigParams, } from './i-schemas';
|
|
49
|
+
export type { ICommonProps, IWidgetProps, IDisplayProps, IFormItemProps, ILayoutProps, IDependency, IFieldToProp, IDependencyItem, } from './i-props';
|
|
50
|
+
export type { IBasicStyle, IFontStyle, IBorderStyle, ITagConfigStyle, IProgressConfigStyle, IColumnFontStyleByRule, IColumnBackgroundByRule, } from './i-styles';
|
|
51
|
+
export type { IBasicEvents, IJsEvent, IInnerEvents, IEventsType, } from './i-events';
|
|
52
|
+
export type { IStyleEditor, IStyleEditorConfig, IPropEditor, IPropEditorConfig, } from './i-editors';
|
|
53
|
+
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>;
|