@nocobase/client 0.7.1-alpha.6 → 0.7.2-alpha.2
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/es/acl/Configuration/schemas/scopes.js +1 -0
- package/es/application/Application.js +0 -4
- package/es/block-provider/BlockSchemaComponentProvider.js +3 -0
- package/es/block-provider/FormBlockProvider.js +2 -1
- package/es/block-provider/FormFieldProvider.d.ts +8 -0
- package/es/block-provider/FormFieldProvider.js +89 -0
- package/es/block-provider/KanbanBlockProvider.js +117 -3
- package/es/block-provider/TableFieldProvider.js +17 -2
- package/es/block-provider/TableSelectorProvider.js +38 -6
- package/es/block-provider/hooks/index.js +10 -3
- package/es/block-provider/index.d.ts +1 -0
- package/es/block-provider/index.js +2 -1
- package/es/collection-manager/CollectionField.js +5 -1
- package/es/collection-manager/CollectionFieldProvider.js +7 -2
- package/es/collection-manager/Configuration/AddFieldAction.js +1 -1
- package/es/collection-manager/Configuration/EditFieldAction.js +1 -1
- package/es/collection-manager/hooks/useCollectionManager.js +20 -5
- package/es/collection-manager/interfaces/index.d.ts +2 -1
- package/es/collection-manager/interfaces/index.js +3 -2
- package/es/collection-manager/interfaces/integer.d.ts +2 -0
- package/es/{workflow/nodes/update.js → collection-manager/interfaces/integer.js} +24 -20
- package/es/collection-manager/interfaces/linkTo.js +14 -6
- package/es/collection-manager/interfaces/m2m.js +12 -5
- package/es/collection-manager/interfaces/m2o.js +59 -8
- package/es/collection-manager/interfaces/o2m.js +72 -46
- package/es/collection-manager/interfaces/o2o.js +100 -39
- package/es/collection-manager/interfaces/properties/operators.d.ts +13 -0
- package/es/collection-manager/interfaces/properties/operators.js +7 -0
- package/es/index.d.ts +0 -1
- package/es/index.js +1 -2
- package/es/locale/en_US.d.ts +7 -0
- package/es/locale/en_US.js +9 -2
- package/es/locale/zh_CN.d.ts +10 -1
- package/es/locale/zh_CN.js +10 -1
- package/es/schema-component/antd/AntdSchemaComponentProvider.js +2 -0
- package/es/schema-component/antd/filter/DynamicComponent.js +50 -3
- package/es/schema-component/antd/filter/FilterItem.js +6 -0
- package/es/schema-component/antd/filter/useFilterActionProps.js +2 -0
- package/es/schema-component/antd/form-item/FormItem.js +79 -16
- package/es/schema-component/antd/form-v2/FormField.d.ts +1 -0
- package/es/schema-component/antd/form-v2/FormField.js +29 -0
- package/es/schema-component/antd/form-v2/index.d.ts +1 -0
- package/es/schema-component/antd/form-v2/index.js +2 -1
- package/es/schema-component/antd/g2plot/G2Plot.js +33 -3
- package/es/schema-component/antd/g2plot/requestChartData.d.ts +4 -0
- package/es/schema-component/antd/g2plot/requestChartData.js +33 -0
- package/es/schema-component/antd/kanban/Kanban.Card.Designer.js +10 -1
- package/es/schema-component/antd/record-picker/InputRecordPicker.js +34 -14
- package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +34 -11
- package/es/schema-component/antd/record-picker/useFieldNames.js +2 -2
- package/es/schema-component/antd/select/shared.js +4 -2
- package/es/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +1 -1
- package/es/schema-component/antd/table-v2/Table.Column.Decorator.js +7 -3
- package/es/schema-component/antd/table-v2/Table.Column.Designer.js +7 -2
- package/es/schema-component/antd/table-v2/Table.js +4 -2
- package/es/schema-component/antd/table-v2/TableField.js +7 -0
- package/es/schema-initializer/buttons/TableColumnInitializers.js +26 -12
- package/es/schema-initializer/components/assigned-field/AssignedField.js +34 -47
- package/es/schema-initializer/utils.d.ts +2 -0
- package/es/schema-initializer/utils.js +160 -30
- package/es/schema-settings/SchemaSettings.js +6 -3
- package/lib/acl/Configuration/schemas/scopes.js +1 -0
- package/lib/application/Application.js +0 -5
- package/lib/block-provider/BlockSchemaComponentProvider.js +4 -0
- package/lib/block-provider/FormBlockProvider.js +2 -1
- package/lib/block-provider/FormFieldProvider.d.ts +8 -0
- package/lib/block-provider/FormFieldProvider.js +120 -0
- package/lib/block-provider/KanbanBlockProvider.js +118 -1
- package/lib/block-provider/TableFieldProvider.js +19 -2
- package/lib/block-provider/TableSelectorProvider.js +39 -5
- package/lib/block-provider/hooks/index.js +11 -3
- package/lib/block-provider/index.d.ts +1 -0
- package/lib/block-provider/index.js +13 -0
- package/lib/collection-manager/CollectionField.js +5 -1
- package/lib/collection-manager/CollectionFieldProvider.js +9 -3
- package/lib/collection-manager/Configuration/AddFieldAction.js +1 -1
- package/lib/collection-manager/Configuration/EditFieldAction.js +1 -1
- package/lib/collection-manager/hooks/useCollectionManager.js +20 -5
- package/lib/collection-manager/interfaces/index.d.ts +2 -1
- package/lib/collection-manager/interfaces/index.js +26 -13
- package/lib/collection-manager/interfaces/integer.d.ts +2 -0
- package/lib/{workflow/nodes/update.js → collection-manager/interfaces/integer.js} +26 -24
- package/lib/collection-manager/interfaces/linkTo.js +14 -6
- package/lib/collection-manager/interfaces/m2m.js +12 -5
- package/lib/collection-manager/interfaces/m2o.js +61 -10
- package/lib/collection-manager/interfaces/o2m.js +72 -45
- package/lib/collection-manager/interfaces/o2o.js +103 -43
- package/lib/collection-manager/interfaces/properties/operators.d.ts +13 -0
- package/lib/collection-manager/interfaces/properties/operators.js +7 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -13
- package/lib/locale/en_US.d.ts +7 -0
- package/lib/locale/en_US.js +9 -2
- package/lib/locale/zh_CN.d.ts +10 -1
- package/lib/locale/zh_CN.js +10 -1
- package/lib/schema-component/antd/AntdSchemaComponentProvider.js +3 -0
- package/lib/schema-component/antd/filter/DynamicComponent.js +52 -1
- package/lib/schema-component/antd/filter/FilterItem.js +7 -0
- package/lib/schema-component/antd/filter/useFilterActionProps.js +2 -0
- package/lib/schema-component/antd/form-item/FormItem.js +80 -17
- package/lib/schema-component/antd/form-v2/FormField.d.ts +1 -0
- package/lib/schema-component/antd/form-v2/FormField.js +48 -0
- package/lib/schema-component/antd/form-v2/index.d.ts +1 -0
- package/lib/schema-component/antd/form-v2/index.js +17 -0
- package/lib/schema-component/antd/g2plot/G2Plot.js +32 -2
- package/lib/schema-component/antd/g2plot/requestChartData.d.ts +4 -0
- package/lib/schema-component/antd/g2plot/requestChartData.js +42 -0
- package/lib/schema-component/antd/kanban/Kanban.Card.Designer.js +9 -0
- package/lib/schema-component/antd/record-picker/InputRecordPicker.js +33 -13
- package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +32 -9
- package/lib/schema-component/antd/record-picker/useFieldNames.js +2 -2
- package/lib/schema-component/antd/select/shared.js +4 -2
- package/lib/schema-component/antd/table-v2/Table.Column.Decorator.d.ts +1 -1
- package/lib/schema-component/antd/table-v2/Table.Column.Decorator.js +6 -2
- package/lib/schema-component/antd/table-v2/Table.Column.Designer.js +7 -2
- package/lib/schema-component/antd/table-v2/Table.js +4 -2
- package/lib/schema-component/antd/table-v2/TableField.js +8 -0
- package/lib/schema-initializer/buttons/TableColumnInitializers.js +25 -11
- package/lib/schema-initializer/components/assigned-field/AssignedField.js +29 -43
- package/lib/schema-initializer/utils.d.ts +2 -0
- package/lib/schema-initializer/utils.js +166 -30
- package/lib/schema-settings/SchemaSettings.js +5 -2
- package/package.json +4 -5
- package/es/workflow/ExecutionResourceProvider.d.ts +0 -4
- package/es/workflow/ExecutionResourceProvider.js +0 -35
- package/es/workflow/WorkflowCanvas.d.ts +0 -15
- package/es/workflow/WorkflowCanvas.js +0 -375
- package/es/workflow/WorkflowLink.d.ts +0 -1
- package/es/workflow/WorkflowLink.js +0 -21
- package/es/workflow/WorkflowPage.d.ts +0 -1
- package/es/workflow/WorkflowPage.js +0 -43
- package/es/workflow/WorkflowRouteProvider.d.ts +0 -1
- package/es/workflow/WorkflowRouteProvider.js +0 -30
- package/es/workflow/WorkflowShortcut.d.ts +0 -1
- package/es/workflow/WorkflowShortcut.js +0 -62
- package/es/workflow/calculators.d.ts +0 -101
- package/es/workflow/calculators.js +0 -647
- package/es/workflow/components/Duration.d.ts +0 -5
- package/es/workflow/components/Duration.js +0 -61
- package/es/workflow/index.d.ts +0 -5
- package/es/workflow/index.js +0 -5
- package/es/workflow/nodes/calculation.d.ts +0 -25
- package/es/workflow/nodes/calculation.js +0 -47
- package/es/workflow/nodes/condition.d.ts +0 -46
- package/es/workflow/nodes/condition.js +0 -255
- package/es/workflow/nodes/create.d.ts +0 -46
- package/es/workflow/nodes/create.js +0 -90
- package/es/workflow/nodes/delay.d.ts +0 -35
- package/es/workflow/nodes/delay.js +0 -37
- package/es/workflow/nodes/destroy.d.ts +0 -55
- package/es/workflow/nodes/destroy.js +0 -27
- package/es/workflow/nodes/index.d.ts +0 -33
- package/es/workflow/nodes/index.js +0 -312
- package/es/workflow/nodes/parallel.d.ts +0 -24
- package/es/workflow/nodes/parallel.js +0 -132
- package/es/workflow/nodes/query.d.ts +0 -70
- package/es/workflow/nodes/query.js +0 -98
- package/es/workflow/nodes/update.d.ts +0 -60
- package/es/workflow/schemas/collection.d.ts +0 -42
- package/es/workflow/schemas/collection.js +0 -57
- package/es/workflow/schemas/executions.d.ts +0 -209
- package/es/workflow/schemas/executions.js +0 -157
- package/es/workflow/schemas/workflows.d.ts +0 -2
- package/es/workflow/schemas/workflows.js +0 -334
- package/es/workflow/style.d.ts +0 -12
- package/es/workflow/style.js +0 -17
- package/es/workflow/triggers/collection.d.ts +0 -77
- package/es/workflow/triggers/collection.js +0 -144
- package/es/workflow/triggers/index.d.ts +0 -26
- package/es/workflow/triggers/index.js +0 -177
- package/es/workflow/triggers/schedule/DateFieldsSelect.d.ts +0 -2
- package/es/workflow/triggers/schedule/DateFieldsSelect.js +0 -39
- package/es/workflow/triggers/schedule/EndsByField.d.ts +0 -5
- package/es/workflow/triggers/schedule/EndsByField.js +0 -57
- package/es/workflow/triggers/schedule/OnField.d.ts +0 -5
- package/es/workflow/triggers/schedule/OnField.js +0 -87
- package/es/workflow/triggers/schedule/RepeatField.d.ts +0 -5
- package/es/workflow/triggers/schedule/RepeatField.js +0 -131
- package/es/workflow/triggers/schedule/ScheduleConfig.d.ts +0 -1
- package/es/workflow/triggers/schedule/ScheduleConfig.js +0 -225
- package/es/workflow/triggers/schedule/index.d.ts +0 -25
- package/es/workflow/triggers/schedule/index.js +0 -77
- package/es/workflow/triggers/schedule/locale/Cron.zh-CN.d.ts +0 -34
- package/es/workflow/triggers/schedule/locale/Cron.zh-CN.js +0 -37
- package/lib/workflow/ExecutionResourceProvider.d.ts +0 -4
- package/lib/workflow/ExecutionResourceProvider.js +0 -48
- package/lib/workflow/WorkflowCanvas.d.ts +0 -15
- package/lib/workflow/WorkflowCanvas.js +0 -408
- package/lib/workflow/WorkflowLink.d.ts +0 -1
- package/lib/workflow/WorkflowLink.js +0 -36
- package/lib/workflow/WorkflowPage.d.ts +0 -1
- package/lib/workflow/WorkflowPage.js +0 -60
- package/lib/workflow/WorkflowRouteProvider.d.ts +0 -1
- package/lib/workflow/WorkflowRouteProvider.js +0 -47
- package/lib/workflow/WorkflowShortcut.d.ts +0 -1
- package/lib/workflow/WorkflowShortcut.js +0 -87
- package/lib/workflow/calculators.d.ts +0 -101
- package/lib/workflow/calculators.js +0 -688
- package/lib/workflow/components/Duration.d.ts +0 -5
- package/lib/workflow/components/Duration.js +0 -74
- package/lib/workflow/index.d.ts +0 -5
- package/lib/workflow/index.js +0 -70
- package/lib/workflow/nodes/calculation.d.ts +0 -25
- package/lib/workflow/nodes/calculation.js +0 -61
- package/lib/workflow/nodes/condition.d.ts +0 -46
- package/lib/workflow/nodes/condition.js +0 -275
- package/lib/workflow/nodes/create.d.ts +0 -46
- package/lib/workflow/nodes/create.js +0 -107
- package/lib/workflow/nodes/delay.d.ts +0 -35
- package/lib/workflow/nodes/delay.js +0 -48
- package/lib/workflow/nodes/destroy.d.ts +0 -55
- package/lib/workflow/nodes/destroy.js +0 -38
- package/lib/workflow/nodes/index.d.ts +0 -33
- package/lib/workflow/nodes/index.js +0 -357
- package/lib/workflow/nodes/parallel.d.ts +0 -24
- package/lib/workflow/nodes/parallel.js +0 -155
- package/lib/workflow/nodes/query.d.ts +0 -70
- package/lib/workflow/nodes/query.js +0 -115
- package/lib/workflow/nodes/update.d.ts +0 -60
- package/lib/workflow/schemas/collection.d.ts +0 -42
- package/lib/workflow/schemas/collection.js +0 -70
- package/lib/workflow/schemas/executions.d.ts +0 -209
- package/lib/workflow/schemas/executions.js +0 -164
- package/lib/workflow/schemas/workflows.d.ts +0 -2
- package/lib/workflow/schemas/workflows.js +0 -344
- package/lib/workflow/style.d.ts +0 -12
- package/lib/workflow/style.js +0 -37
- package/lib/workflow/triggers/collection.d.ts +0 -77
- package/lib/workflow/triggers/collection.js +0 -164
- package/lib/workflow/triggers/index.d.ts +0 -26
- package/lib/workflow/triggers/index.js +0 -201
- package/lib/workflow/triggers/schedule/DateFieldsSelect.d.ts +0 -2
- package/lib/workflow/triggers/schedule/DateFieldsSelect.js +0 -54
- package/lib/workflow/triggers/schedule/EndsByField.d.ts +0 -5
- package/lib/workflow/triggers/schedule/EndsByField.js +0 -73
- package/lib/workflow/triggers/schedule/OnField.d.ts +0 -5
- package/lib/workflow/triggers/schedule/OnField.js +0 -105
- package/lib/workflow/triggers/schedule/RepeatField.d.ts +0 -5
- package/lib/workflow/triggers/schedule/RepeatField.js +0 -146
- package/lib/workflow/triggers/schedule/ScheduleConfig.d.ts +0 -1
- package/lib/workflow/triggers/schedule/ScheduleConfig.js +0 -250
- package/lib/workflow/triggers/schedule/index.d.ts +0 -25
- package/lib/workflow/triggers/schedule/index.js +0 -94
- package/lib/workflow/triggers/schedule/locale/Cron.zh-CN.d.ts +0 -34
- package/lib/workflow/triggers/schedule/locale/Cron.zh-CN.js +0 -44
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
export declare const executionSchema: {
|
|
2
|
-
provider: {
|
|
3
|
-
type: string;
|
|
4
|
-
'x-decorator': string;
|
|
5
|
-
'x-decorator-props': {
|
|
6
|
-
collection: {
|
|
7
|
-
name: string;
|
|
8
|
-
fields: {
|
|
9
|
-
interface: string;
|
|
10
|
-
type: string;
|
|
11
|
-
name: string;
|
|
12
|
-
uiSchema: import("@formily/react").Stringify<{
|
|
13
|
-
[key: symbol]: any;
|
|
14
|
-
[key: `x-${string}`]: any;
|
|
15
|
-
[key: `x-${number}`]: any;
|
|
16
|
-
version?: string;
|
|
17
|
-
name?: import("@formily/react").SchemaKey;
|
|
18
|
-
title?: any;
|
|
19
|
-
description?: any;
|
|
20
|
-
default?: any;
|
|
21
|
-
readOnly?: boolean;
|
|
22
|
-
writeOnly?: boolean;
|
|
23
|
-
type?: import("@formily/react").SchemaTypes;
|
|
24
|
-
enum?: import("@formily/react").SchemaEnum<any>;
|
|
25
|
-
const?: any;
|
|
26
|
-
multipleOf?: number;
|
|
27
|
-
maximum?: number;
|
|
28
|
-
exclusiveMaximum?: number;
|
|
29
|
-
minimum?: number;
|
|
30
|
-
exclusiveMinimum?: number;
|
|
31
|
-
maxLength?: number;
|
|
32
|
-
minLength?: number;
|
|
33
|
-
pattern?: string | RegExp;
|
|
34
|
-
maxItems?: number;
|
|
35
|
-
minItems?: number;
|
|
36
|
-
uniqueItems?: boolean;
|
|
37
|
-
maxProperties?: number;
|
|
38
|
-
minProperties?: number;
|
|
39
|
-
required?: string | boolean | string[];
|
|
40
|
-
format?: string;
|
|
41
|
-
$ref?: string;
|
|
42
|
-
$namespace?: string;
|
|
43
|
-
definitions?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
44
|
-
properties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
45
|
-
items?: import("@formily/react").SchemaItems<any, any, any, any, any, any, any, any>;
|
|
46
|
-
additionalItems?: import("@formily/react").Stringify<any>;
|
|
47
|
-
patternProperties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
48
|
-
additionalProperties?: import("@formily/react").Stringify<any>;
|
|
49
|
-
"x-value"?: any;
|
|
50
|
-
"x-index"?: number;
|
|
51
|
-
"x-pattern"?: any;
|
|
52
|
-
"x-display"?: any;
|
|
53
|
-
"x-validator"?: any;
|
|
54
|
-
"x-decorator"?: any;
|
|
55
|
-
"x-decorator-props"?: any;
|
|
56
|
-
"x-component"?: any;
|
|
57
|
-
"x-component-props"?: any;
|
|
58
|
-
"x-reactions"?: import("@formily/react").SchemaReactions<any>;
|
|
59
|
-
"x-content"?: any;
|
|
60
|
-
"x-data"?: any;
|
|
61
|
-
"x-visible"?: boolean;
|
|
62
|
-
"x-hidden"?: boolean;
|
|
63
|
-
"x-disabled"?: boolean;
|
|
64
|
-
"x-editable"?: boolean;
|
|
65
|
-
"x-read-only"?: boolean;
|
|
66
|
-
"x-read-pretty"?: boolean;
|
|
67
|
-
}>;
|
|
68
|
-
}[];
|
|
69
|
-
};
|
|
70
|
-
resourceName: string;
|
|
71
|
-
request: {
|
|
72
|
-
resource: string;
|
|
73
|
-
action: string;
|
|
74
|
-
params: {
|
|
75
|
-
pageSize: number;
|
|
76
|
-
sort: string[];
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
'x-component': string;
|
|
81
|
-
'x-component-props': {
|
|
82
|
-
collection: {
|
|
83
|
-
name: string;
|
|
84
|
-
fields: {
|
|
85
|
-
interface: string;
|
|
86
|
-
type: string;
|
|
87
|
-
name: string;
|
|
88
|
-
uiSchema: import("@formily/react").Stringify<{
|
|
89
|
-
[key: symbol]: any;
|
|
90
|
-
[key: `x-${string}`]: any;
|
|
91
|
-
[key: `x-${number}`]: any;
|
|
92
|
-
version?: string;
|
|
93
|
-
name?: import("@formily/react").SchemaKey;
|
|
94
|
-
title?: any;
|
|
95
|
-
description?: any;
|
|
96
|
-
default?: any;
|
|
97
|
-
readOnly?: boolean;
|
|
98
|
-
writeOnly?: boolean;
|
|
99
|
-
type?: import("@formily/react").SchemaTypes;
|
|
100
|
-
enum?: import("@formily/react").SchemaEnum<any>;
|
|
101
|
-
const?: any;
|
|
102
|
-
multipleOf?: number;
|
|
103
|
-
maximum?: number;
|
|
104
|
-
exclusiveMaximum?: number;
|
|
105
|
-
minimum?: number;
|
|
106
|
-
exclusiveMinimum?: number;
|
|
107
|
-
maxLength?: number;
|
|
108
|
-
minLength?: number;
|
|
109
|
-
pattern?: string | RegExp;
|
|
110
|
-
maxItems?: number;
|
|
111
|
-
minItems?: number;
|
|
112
|
-
uniqueItems?: boolean;
|
|
113
|
-
maxProperties?: number;
|
|
114
|
-
minProperties?: number;
|
|
115
|
-
required?: string | boolean | string[];
|
|
116
|
-
format?: string;
|
|
117
|
-
$ref?: string;
|
|
118
|
-
$namespace?: string;
|
|
119
|
-
definitions?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
120
|
-
properties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
121
|
-
items?: import("@formily/react").SchemaItems<any, any, any, any, any, any, any, any>;
|
|
122
|
-
additionalItems?: import("@formily/react").Stringify<any>;
|
|
123
|
-
patternProperties?: import("@formily/react").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
124
|
-
additionalProperties?: import("@formily/react").Stringify<any>;
|
|
125
|
-
"x-value"?: any;
|
|
126
|
-
"x-index"?: number;
|
|
127
|
-
"x-pattern"?: any;
|
|
128
|
-
"x-display"?: any;
|
|
129
|
-
"x-validator"?: any;
|
|
130
|
-
"x-decorator"?: any;
|
|
131
|
-
"x-decorator-props"?: any;
|
|
132
|
-
"x-component"?: any;
|
|
133
|
-
"x-component-props"?: any;
|
|
134
|
-
"x-reactions"?: import("@formily/react").SchemaReactions<any>;
|
|
135
|
-
"x-content"?: any;
|
|
136
|
-
"x-data"?: any;
|
|
137
|
-
"x-visible"?: boolean;
|
|
138
|
-
"x-hidden"?: boolean;
|
|
139
|
-
"x-disabled"?: boolean;
|
|
140
|
-
"x-editable"?: boolean;
|
|
141
|
-
"x-read-only"?: boolean;
|
|
142
|
-
"x-read-pretty"?: boolean;
|
|
143
|
-
}>;
|
|
144
|
-
}[];
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
properties: {
|
|
148
|
-
actions: {
|
|
149
|
-
type: string;
|
|
150
|
-
'x-component': string;
|
|
151
|
-
'x-component-props': {
|
|
152
|
-
style: {
|
|
153
|
-
marginBottom: number;
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
properties: {};
|
|
157
|
-
};
|
|
158
|
-
table: {
|
|
159
|
-
type: string;
|
|
160
|
-
'x-component': string;
|
|
161
|
-
'x-component-props': {
|
|
162
|
-
rowKey: string;
|
|
163
|
-
useDataSource: string;
|
|
164
|
-
};
|
|
165
|
-
properties: {
|
|
166
|
-
createdAt: {
|
|
167
|
-
type: string;
|
|
168
|
-
'x-decorator': string;
|
|
169
|
-
'x-component': string;
|
|
170
|
-
properties: {
|
|
171
|
-
createdAt: {
|
|
172
|
-
type: string;
|
|
173
|
-
'x-component': string;
|
|
174
|
-
'x-component-props': {
|
|
175
|
-
showTime: boolean;
|
|
176
|
-
};
|
|
177
|
-
'x-read-pretty': boolean;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
workflowId: {
|
|
182
|
-
type: string;
|
|
183
|
-
'x-decorator': string;
|
|
184
|
-
'x-component': string;
|
|
185
|
-
properties: {
|
|
186
|
-
workflowId: {
|
|
187
|
-
type: string;
|
|
188
|
-
'x-component': string;
|
|
189
|
-
'x-read-pretty': boolean;
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
|
-
};
|
|
193
|
-
status: {
|
|
194
|
-
type: string;
|
|
195
|
-
'x-decorator': string;
|
|
196
|
-
'x-component': string;
|
|
197
|
-
properties: {
|
|
198
|
-
status: {
|
|
199
|
-
type: string;
|
|
200
|
-
'x-component': string;
|
|
201
|
-
'x-read-pretty': boolean;
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
};
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.executionSchema = void 0;
|
|
7
|
-
var collection = {
|
|
8
|
-
name: 'executions',
|
|
9
|
-
fields: [{
|
|
10
|
-
interface: 'createdAt',
|
|
11
|
-
type: 'datetime',
|
|
12
|
-
// field: 'createdAt',
|
|
13
|
-
name: 'createdAt',
|
|
14
|
-
uiSchema: {
|
|
15
|
-
type: 'datetime',
|
|
16
|
-
title: '{{t("Created at")}}',
|
|
17
|
-
'x-component': 'DatePicker',
|
|
18
|
-
'x-component-props': {},
|
|
19
|
-
'x-read-pretty': true
|
|
20
|
-
}
|
|
21
|
-
}, {
|
|
22
|
-
interface: 'number',
|
|
23
|
-
type: 'number',
|
|
24
|
-
name: 'workflowId',
|
|
25
|
-
uiSchema: {
|
|
26
|
-
type: 'number',
|
|
27
|
-
title: '{{t("Version")}}',
|
|
28
|
-
'x-component': 'InputNumber',
|
|
29
|
-
'x-read-pretty': true
|
|
30
|
-
}
|
|
31
|
-
}, {
|
|
32
|
-
type: 'number',
|
|
33
|
-
name: 'status',
|
|
34
|
-
interface: 'select',
|
|
35
|
-
uiSchema: {
|
|
36
|
-
title: '{{t("Status")}}',
|
|
37
|
-
type: 'string',
|
|
38
|
-
'x-component': 'Select',
|
|
39
|
-
'x-decorator': 'FormItem',
|
|
40
|
-
enum: [{
|
|
41
|
-
value: 0,
|
|
42
|
-
label: '{{t("On going")}}'
|
|
43
|
-
}, {
|
|
44
|
-
value: 1,
|
|
45
|
-
label: '{{t("Succeeded")}}'
|
|
46
|
-
}, {
|
|
47
|
-
value: -1,
|
|
48
|
-
label: '{{t("Failed")}}'
|
|
49
|
-
}, {
|
|
50
|
-
value: -2,
|
|
51
|
-
label: '{{t("Canceled")}}'
|
|
52
|
-
}]
|
|
53
|
-
}
|
|
54
|
-
}]
|
|
55
|
-
};
|
|
56
|
-
var executionSchema = {
|
|
57
|
-
provider: {
|
|
58
|
-
type: 'void',
|
|
59
|
-
'x-decorator': 'ExecutionResourceProvider',
|
|
60
|
-
'x-decorator-props': {
|
|
61
|
-
collection: collection,
|
|
62
|
-
resourceName: 'executions',
|
|
63
|
-
request: {
|
|
64
|
-
resource: 'executions',
|
|
65
|
-
action: 'list',
|
|
66
|
-
params: {
|
|
67
|
-
pageSize: 50,
|
|
68
|
-
sort: ['-createdAt']
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
'x-component': 'CollectionProvider',
|
|
73
|
-
'x-component-props': {
|
|
74
|
-
collection: collection
|
|
75
|
-
},
|
|
76
|
-
properties: {
|
|
77
|
-
actions: {
|
|
78
|
-
type: 'void',
|
|
79
|
-
'x-component': 'ActionBar',
|
|
80
|
-
'x-component-props': {
|
|
81
|
-
style: {
|
|
82
|
-
marginBottom: 16
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
properties: {// filter: {
|
|
86
|
-
// type: 'object',
|
|
87
|
-
// 'x-component': 'Filter',
|
|
88
|
-
// }
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
table: {
|
|
92
|
-
type: 'void',
|
|
93
|
-
'x-component': 'Table.Void',
|
|
94
|
-
'x-component-props': {
|
|
95
|
-
rowKey: 'id',
|
|
96
|
-
useDataSource: '{{ cm.useDataSourceFromRAC }}'
|
|
97
|
-
},
|
|
98
|
-
properties: {
|
|
99
|
-
createdAt: {
|
|
100
|
-
type: 'void',
|
|
101
|
-
'x-decorator': 'Table.Column.Decorator',
|
|
102
|
-
'x-component': 'Table.Column',
|
|
103
|
-
properties: {
|
|
104
|
-
createdAt: {
|
|
105
|
-
type: 'datetime',
|
|
106
|
-
'x-component': 'CollectionField',
|
|
107
|
-
'x-component-props': {
|
|
108
|
-
showTime: true
|
|
109
|
-
},
|
|
110
|
-
'x-read-pretty': true
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
workflowId: {
|
|
115
|
-
type: 'void',
|
|
116
|
-
'x-decorator': 'Table.Column.Decorator',
|
|
117
|
-
'x-component': 'Table.Column',
|
|
118
|
-
properties: {
|
|
119
|
-
workflowId: {
|
|
120
|
-
type: 'number',
|
|
121
|
-
'x-component': 'CollectionField',
|
|
122
|
-
'x-read-pretty': true
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
status: {
|
|
127
|
-
type: 'void',
|
|
128
|
-
'x-decorator': 'Table.Column.Decorator',
|
|
129
|
-
'x-component': 'Table.Column',
|
|
130
|
-
properties: {
|
|
131
|
-
status: {
|
|
132
|
-
type: 'number',
|
|
133
|
-
'x-component': 'CollectionField',
|
|
134
|
-
'x-read-pretty': true
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
} // actions: {
|
|
138
|
-
// type: 'void',
|
|
139
|
-
// title: '{{ t("Actions") }}',
|
|
140
|
-
// 'x-component': 'Table.Column',
|
|
141
|
-
// properties: {
|
|
142
|
-
// actions: {
|
|
143
|
-
// type: 'void',
|
|
144
|
-
// 'x-component': 'Space',
|
|
145
|
-
// 'x-component-props': {
|
|
146
|
-
// split: '|',
|
|
147
|
-
// },
|
|
148
|
-
// properties: {
|
|
149
|
-
// config: {
|
|
150
|
-
// type: 'void',
|
|
151
|
-
// title: '查看',
|
|
152
|
-
// 'x-component': 'ExecutionLink'
|
|
153
|
-
// },
|
|
154
|
-
// }
|
|
155
|
-
// }
|
|
156
|
-
// }
|
|
157
|
-
// }
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
exports.executionSchema = executionSchema;
|