@nocobase/plugin-flow-engine 2.1.0-alpha.12 → 2.1.0-alpha.13
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/externalVersion.js +12 -11
- package/dist/node_modules/ajv/package.json +1 -1
- package/dist/node_modules/ses/package.json +1 -1
- package/dist/node_modules/zod/package.json +1 -1
- package/dist/server/flow-models/schema-contribution-collector.d.ts +2 -1
- package/dist/server/flow-models/schema-contribution-collector.js +26 -5
- package/dist/server/flow-schema-contributions/actions/aclCheck.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/aclCheckRefresh.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/actionLinkageRules.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/confirm.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/customVariable.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/dataScope.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/detailsFieldLinkageRules.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/fieldLinkageRules.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/filterFormDefaultValues.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/formAssignRules.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/index.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/layout.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/linkageRulesRefresh.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/navigateToURL.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/openView.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/refreshTargetBlocks.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/runjs.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/setTargetDataScope.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/showMessage.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/showNotification.d.ts +1 -1
- package/dist/server/flow-schema-contributions/actions/sortingRule.d.ts +1 -1
- package/dist/server/flow-schema-contributions/field-models.d.ts +1 -1
- package/dist/server/flow-schema-contributions/index.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/ActionBulkEditModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/ActionBulkEditModel.js +382 -0
- package/dist/server/flow-schema-contributions/models/ActionBulkUpdateModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/ActionBulkUpdateModel.js +169 -0
- package/dist/server/flow-schema-contributions/models/ActionCustomRequestModel.d.ts +11 -0
- package/dist/server/flow-schema-contributions/models/ActionCustomRequestModel.js +115 -0
- package/dist/server/flow-schema-contributions/models/ActionDuplicateModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/ActionDuplicateModel.js +169 -0
- package/dist/server/flow-schema-contributions/models/ActionExportModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/ActionExportModel.js +141 -0
- package/dist/server/flow-schema-contributions/models/ActionImportModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/ActionImportModel.js +122 -0
- package/dist/server/flow-schema-contributions/models/ActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/AddChildActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/AddNewActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/AssignFormGridModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/AssignFormItemModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/AssignFormModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/BasePageTabModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/BlockGridCardModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/BlockGridCardModel.js +449 -0
- package/dist/server/flow-schema-contributions/models/BlockGridModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/BlockIframeModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/BlockIframeModel.js +143 -0
- package/dist/server/flow-schema-contributions/models/BlockListModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/BlockListModel.js +435 -0
- package/dist/server/flow-schema-contributions/models/BlockMarkdownModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/BlockMarkdownModel.js +108 -0
- package/dist/server/flow-schema-contributions/models/BlockWorkbenchModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/BlockWorkbenchModel.js +173 -0
- package/dist/server/flow-schema-contributions/models/BulkDeleteActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/ChildPageModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/ChildPageTabModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/CommentsModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/CommentsModel.js +255 -0
- package/dist/server/flow-schema-contributions/models/CreateFormModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/DataVisualizationModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/DataVisualizationModel.js +240 -0
- package/dist/server/flow-schema-contributions/models/DeleteActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/DetailsBlockModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/DetailsGridModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/DetailsItemModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/EditActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/EditFormModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/ExpandCollapseActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FieldAttachmentUrlModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FieldAttachmentUrlModel.js +87 -0
- package/dist/server/flow-schema-contributions/models/FieldCodeModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FieldCodeModel.js +99 -0
- package/dist/server/flow-schema-contributions/models/FieldFormulaModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FieldFormulaModel.js +152 -0
- package/dist/server/flow-schema-contributions/models/FieldMarkdownVditorModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FieldMarkdownVditorModel.js +92 -0
- package/dist/server/flow-schema-contributions/models/FieldSequenceModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FieldSequenceModel.js +60 -0
- package/dist/server/flow-schema-contributions/models/FieldSortModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FieldSortModel.js +87 -0
- package/dist/server/flow-schema-contributions/models/FileManagerModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/FileManagerModel.js +115 -0
- package/dist/server/flow-schema-contributions/models/FilterActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FilterFormBlockModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FilterFormCollapseActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FilterFormCustomFieldModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FilterFormGridModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FilterFormItemModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FilterFormJSActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FilterFormResetActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FilterFormSubmitActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FormAssociationItemModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FormBlockModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FormGridModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FormItemModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/FormSubmitActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/JSActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/JSBlockModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/JSCollectionActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/JSColumnModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/JSFormActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/JSItemModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/JSRecordActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/LinkActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/MapModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/MapModel.js +427 -0
- package/dist/server/flow-schema-contributions/models/PageModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/PageTabModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/PopupActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/PopupCollectionActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/RefreshActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/RootPageModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/RootPageTabModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/RouteModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/TableActionsColumnModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/TableBlockModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/TableColumnModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/TableCustomColumnModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/UiTemplatesModel.d.ts +10 -0
- package/dist/server/flow-schema-contributions/models/UiTemplatesModel.js +130 -0
- package/dist/server/flow-schema-contributions/models/UpdateRecordActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/ViewActionModel.d.ts +1 -1
- package/dist/server/flow-schema-contributions/models/index.d.ts +6 -1
- package/dist/server/flow-schema-contributions/models/index.js +114 -0
- package/dist/server/flow-schema-contributions/shared.d.ts +1 -1
- package/dist/server/flow-schema-registry/FlowSchemaRegistry.d.ts +154 -0
- package/dist/server/flow-schema-registry/FlowSchemaRegistry.js +1424 -0
- package/dist/server/flow-schema-registry/flow-schema-registry/fieldBinding.d.ts +32 -0
- package/dist/server/flow-schema-registry/flow-schema-registry/fieldBinding.js +159 -0
- package/dist/server/flow-schema-registry/flow-schema-registry/modelPatches.d.ts +16 -0
- package/dist/server/flow-schema-registry/flow-schema-registry/modelPatches.js +226 -0
- package/dist/server/flow-schema-registry/flow-schema-registry/schemaInference.d.ts +17 -0
- package/dist/server/flow-schema-registry/flow-schema-registry/schemaInference.js +204 -0
- package/dist/server/flow-schema-registry/flow-schema-registry/utils.d.ts +25 -0
- package/dist/server/flow-schema-registry/flow-schema-registry/utils.js +278 -0
- package/dist/server/flow-schema-registry/index.d.ts +10 -0
- package/dist/server/flow-schema-registry/index.js +32 -0
- package/dist/server/flow-schema-registry/types.d.ts +244 -0
- package/dist/server/flow-schema-registry/types.js +24 -0
- package/dist/server/flow-schema-service.d.ts +1 -1
- package/dist/server/flow-schema-service.js +2 -2
- package/dist/server/plugin.d.ts +1 -1
- package/dist/server/repository.d.ts +1 -0
- package/dist/server/repository.js +3 -5
- package/dist/server/server.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var MapModel_exports = {};
|
|
28
|
+
__export(MapModel_exports, {
|
|
29
|
+
flowSchemaContribution: () => flowSchemaContribution
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(MapModel_exports);
|
|
32
|
+
const genericFilterSchemaId = "urn:nocobase:schema:plugin-map:generic-filter";
|
|
33
|
+
const genericFilterSchema = {
|
|
34
|
+
$id: genericFilterSchemaId,
|
|
35
|
+
definitions: {
|
|
36
|
+
filterCondition: {
|
|
37
|
+
type: "object",
|
|
38
|
+
properties: {
|
|
39
|
+
path: {
|
|
40
|
+
type: "string"
|
|
41
|
+
},
|
|
42
|
+
operator: {
|
|
43
|
+
type: "string"
|
|
44
|
+
},
|
|
45
|
+
value: {},
|
|
46
|
+
noValue: {
|
|
47
|
+
type: "boolean"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
required: ["path"],
|
|
51
|
+
additionalProperties: true,
|
|
52
|
+
allOf: [
|
|
53
|
+
{
|
|
54
|
+
not: {
|
|
55
|
+
required: ["logic"]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
not: {
|
|
60
|
+
required: ["items"]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
filterGroup: {
|
|
66
|
+
type: "object",
|
|
67
|
+
properties: {
|
|
68
|
+
logic: {
|
|
69
|
+
type: "string",
|
|
70
|
+
enum: ["$and", "$or"]
|
|
71
|
+
},
|
|
72
|
+
items: {
|
|
73
|
+
type: "array",
|
|
74
|
+
items: {
|
|
75
|
+
oneOf: [
|
|
76
|
+
{ $ref: `${genericFilterSchemaId}#/definitions/filterCondition` },
|
|
77
|
+
{ $ref: `${genericFilterSchemaId}#/definitions/filterGroup` }
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
required: ["logic", "items"],
|
|
83
|
+
additionalProperties: true,
|
|
84
|
+
allOf: [
|
|
85
|
+
{
|
|
86
|
+
not: {
|
|
87
|
+
required: ["path"]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
not: {
|
|
92
|
+
required: ["operator"]
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
not: {
|
|
97
|
+
required: ["value"]
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
not: {
|
|
102
|
+
required: ["noValue"]
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
type: "object",
|
|
109
|
+
properties: {
|
|
110
|
+
logic: {
|
|
111
|
+
type: "string",
|
|
112
|
+
enum: ["$and", "$or"]
|
|
113
|
+
},
|
|
114
|
+
items: {
|
|
115
|
+
type: "array",
|
|
116
|
+
items: {
|
|
117
|
+
oneOf: [
|
|
118
|
+
{ $ref: `${genericFilterSchemaId}#/definitions/filterCondition` },
|
|
119
|
+
{ $ref: `${genericFilterSchemaId}#/definitions/filterGroup` }
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
required: ["logic", "items"],
|
|
125
|
+
additionalProperties: true,
|
|
126
|
+
allOf: [
|
|
127
|
+
{
|
|
128
|
+
not: {
|
|
129
|
+
required: ["path"]
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
not: {
|
|
134
|
+
required: ["operator"]
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
not: {
|
|
139
|
+
required: ["value"]
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
not: {
|
|
144
|
+
required: ["noValue"]
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
};
|
|
149
|
+
const sortingRuleParamsSchema = {
|
|
150
|
+
type: "object",
|
|
151
|
+
properties: {
|
|
152
|
+
sort: {
|
|
153
|
+
type: "array",
|
|
154
|
+
items: {
|
|
155
|
+
type: "object",
|
|
156
|
+
properties: {
|
|
157
|
+
field: { type: "string" },
|
|
158
|
+
direction: { type: "string", enum: ["asc", "desc"] }
|
|
159
|
+
},
|
|
160
|
+
required: ["field", "direction"],
|
|
161
|
+
additionalProperties: false
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
additionalProperties: false
|
|
166
|
+
};
|
|
167
|
+
const genericModelNodeSchema = {
|
|
168
|
+
type: "object",
|
|
169
|
+
required: ["uid", "use"],
|
|
170
|
+
properties: {
|
|
171
|
+
uid: { type: "string" },
|
|
172
|
+
use: { type: "string" }
|
|
173
|
+
},
|
|
174
|
+
additionalProperties: true
|
|
175
|
+
};
|
|
176
|
+
const mapBlockModelSchemaContribution = {
|
|
177
|
+
use: "MapBlockModel",
|
|
178
|
+
title: "Map block",
|
|
179
|
+
source: "plugin",
|
|
180
|
+
strict: false,
|
|
181
|
+
stepParamsSchema: {
|
|
182
|
+
type: "object",
|
|
183
|
+
properties: {
|
|
184
|
+
createMapBlock: {
|
|
185
|
+
type: "object",
|
|
186
|
+
properties: {
|
|
187
|
+
init: {
|
|
188
|
+
type: "object",
|
|
189
|
+
properties: {
|
|
190
|
+
mapField: {
|
|
191
|
+
type: "array",
|
|
192
|
+
items: { type: "string" }
|
|
193
|
+
},
|
|
194
|
+
marker: { type: "string" }
|
|
195
|
+
},
|
|
196
|
+
additionalProperties: false
|
|
197
|
+
},
|
|
198
|
+
addAppends: {
|
|
199
|
+
type: "object",
|
|
200
|
+
additionalProperties: true
|
|
201
|
+
},
|
|
202
|
+
dataScope: {
|
|
203
|
+
type: "object",
|
|
204
|
+
properties: {
|
|
205
|
+
filter: genericFilterSchema
|
|
206
|
+
},
|
|
207
|
+
additionalProperties: false
|
|
208
|
+
},
|
|
209
|
+
lineSort: sortingRuleParamsSchema,
|
|
210
|
+
mapZoom: {
|
|
211
|
+
type: "object",
|
|
212
|
+
properties: {
|
|
213
|
+
zoom: { type: "number" }
|
|
214
|
+
},
|
|
215
|
+
additionalProperties: false
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
additionalProperties: true
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
additionalProperties: true
|
|
222
|
+
},
|
|
223
|
+
flowRegistrySchema: {
|
|
224
|
+
type: "object",
|
|
225
|
+
properties: {
|
|
226
|
+
popupSettings: {
|
|
227
|
+
type: "object",
|
|
228
|
+
properties: {
|
|
229
|
+
key: { const: "popupSettings" },
|
|
230
|
+
steps: {
|
|
231
|
+
type: "object",
|
|
232
|
+
properties: {
|
|
233
|
+
openView: {
|
|
234
|
+
type: "object",
|
|
235
|
+
properties: {
|
|
236
|
+
use: { const: "openView" }
|
|
237
|
+
},
|
|
238
|
+
additionalProperties: true
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
additionalProperties: false
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
additionalProperties: true
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
additionalProperties: true
|
|
248
|
+
},
|
|
249
|
+
subModelSlots: {
|
|
250
|
+
actions: {
|
|
251
|
+
type: "array",
|
|
252
|
+
dynamic: true,
|
|
253
|
+
schema: genericModelNodeSchema,
|
|
254
|
+
description: "Map actions depend on runtime action registries."
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
skeleton: {
|
|
258
|
+
uid: "todo-uid",
|
|
259
|
+
use: "MapBlockModel",
|
|
260
|
+
stepParams: {
|
|
261
|
+
createMapBlock: {
|
|
262
|
+
init: {
|
|
263
|
+
mapField: []
|
|
264
|
+
},
|
|
265
|
+
mapZoom: {
|
|
266
|
+
zoom: 13
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
subModels: {
|
|
271
|
+
actions: []
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
docs: {
|
|
275
|
+
minimalExample: {
|
|
276
|
+
uid: "map-users",
|
|
277
|
+
use: "MapBlockModel",
|
|
278
|
+
stepParams: {
|
|
279
|
+
createMapBlock: {
|
|
280
|
+
init: {
|
|
281
|
+
mapField: []
|
|
282
|
+
},
|
|
283
|
+
mapZoom: {
|
|
284
|
+
zoom: 13
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
subModels: {
|
|
289
|
+
actions: []
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
dynamicHints: [
|
|
293
|
+
{
|
|
294
|
+
kind: "dynamic-ui-schema",
|
|
295
|
+
path: "MapBlockModel.stepParams.createMapBlock.init.mapField",
|
|
296
|
+
message: "Map field and marker options depend on collection field interfaces and association traversal.",
|
|
297
|
+
"x-flow": {
|
|
298
|
+
contextRequirements: ["collection fields", "association traversal"],
|
|
299
|
+
unresolvedReason: "runtime-map-field-options",
|
|
300
|
+
recommendedFallback: {
|
|
301
|
+
mapField: []
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
kind: "dynamic-children",
|
|
307
|
+
path: "MapBlockModel.subModels.actions",
|
|
308
|
+
message: "Map actions depend on runtime action registries.",
|
|
309
|
+
"x-flow": {
|
|
310
|
+
slotRules: {
|
|
311
|
+
slotKey: "actions",
|
|
312
|
+
type: "array"
|
|
313
|
+
},
|
|
314
|
+
contextRequirements: ["collection action registry"],
|
|
315
|
+
unresolvedReason: "runtime-map-actions"
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
]
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
function createFieldContribution(use, title) {
|
|
322
|
+
return {
|
|
323
|
+
use,
|
|
324
|
+
title,
|
|
325
|
+
source: "plugin",
|
|
326
|
+
strict: false,
|
|
327
|
+
exposure: "internal",
|
|
328
|
+
stepParamsSchema: {
|
|
329
|
+
type: "object",
|
|
330
|
+
properties: {
|
|
331
|
+
fieldSettings: {
|
|
332
|
+
type: "object",
|
|
333
|
+
properties: {
|
|
334
|
+
init: {
|
|
335
|
+
type: "object",
|
|
336
|
+
properties: {
|
|
337
|
+
dataSourceKey: { type: "string" },
|
|
338
|
+
collectionName: { type: "string" },
|
|
339
|
+
fieldPath: { type: "string" }
|
|
340
|
+
},
|
|
341
|
+
additionalProperties: true
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
additionalProperties: true
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
additionalProperties: true
|
|
348
|
+
},
|
|
349
|
+
skeleton: {
|
|
350
|
+
uid: `todo-${use}`.replace(/[^a-zA-Z0-9]+/g, "-").toLowerCase(),
|
|
351
|
+
use
|
|
352
|
+
}
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
const flowSchemaContribution = {
|
|
356
|
+
inventory: {
|
|
357
|
+
publicTreeRoots: ["MapBlockModel"]
|
|
358
|
+
},
|
|
359
|
+
models: [
|
|
360
|
+
mapBlockModelSchemaContribution,
|
|
361
|
+
createFieldContribution("PointFieldModel", "Point"),
|
|
362
|
+
createFieldContribution("CircleFieldModel", "Circle"),
|
|
363
|
+
createFieldContribution("PolygonFieldModel", "Polygon"),
|
|
364
|
+
createFieldContribution("LineStringFieldModel", "Line string"),
|
|
365
|
+
createFieldContribution("DisplayPointFieldModel", "Display point"),
|
|
366
|
+
createFieldContribution("DisplayCircleFieldModel", "Display circle"),
|
|
367
|
+
createFieldContribution("DisplayPolygonFieldModel", "Display polygon"),
|
|
368
|
+
createFieldContribution("DisplayLineStringFieldModel", "Display line string")
|
|
369
|
+
],
|
|
370
|
+
fieldBindings: [
|
|
371
|
+
{
|
|
372
|
+
context: "editable-field",
|
|
373
|
+
use: "PointFieldModel",
|
|
374
|
+
interfaces: ["point"],
|
|
375
|
+
isDefault: true
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
context: "editable-field",
|
|
379
|
+
use: "CircleFieldModel",
|
|
380
|
+
interfaces: ["circle"],
|
|
381
|
+
isDefault: true
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
context: "editable-field",
|
|
385
|
+
use: "PolygonFieldModel",
|
|
386
|
+
interfaces: ["polygon"],
|
|
387
|
+
isDefault: true
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
context: "editable-field",
|
|
391
|
+
use: "LineStringFieldModel",
|
|
392
|
+
interfaces: ["lineString"],
|
|
393
|
+
isDefault: true
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
context: "display-field",
|
|
397
|
+
use: "DisplayPointFieldModel",
|
|
398
|
+
interfaces: ["point"],
|
|
399
|
+
isDefault: true
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
context: "display-field",
|
|
403
|
+
use: "DisplayCircleFieldModel",
|
|
404
|
+
interfaces: ["circle"],
|
|
405
|
+
isDefault: true
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
context: "display-field",
|
|
409
|
+
use: "DisplayPolygonFieldModel",
|
|
410
|
+
interfaces: ["polygon"],
|
|
411
|
+
isDefault: true
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
context: "display-field",
|
|
415
|
+
use: "DisplayLineStringFieldModel",
|
|
416
|
+
interfaces: ["lineString"],
|
|
417
|
+
isDefault: true
|
|
418
|
+
}
|
|
419
|
+
],
|
|
420
|
+
defaults: {
|
|
421
|
+
source: "plugin"
|
|
422
|
+
}
|
|
423
|
+
};
|
|
424
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
425
|
+
0 && (module.exports = {
|
|
426
|
+
flowSchemaContribution
|
|
427
|
+
});
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import type { FlowModelSchemaContribution } from '
|
|
9
|
+
import type { FlowModelSchemaContribution } from '../../flow-schema-registry';
|
|
10
10
|
export declare const pageModelSchemaContribution: FlowModelSchemaContribution;
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import type { FlowModelSchemaContribution } from '
|
|
9
|
+
import type { FlowModelSchemaContribution } from '../../flow-schema-registry';
|
|
10
10
|
export declare const pageTabModelInternalSchemaContribution: FlowModelSchemaContribution;
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import type { FlowModelSchemaContribution } from '
|
|
9
|
+
import type { FlowModelSchemaContribution } from '../../flow-schema-registry';
|
|
10
10
|
export declare const popupActionModelInternalSchemaContribution: FlowModelSchemaContribution;
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import type { FlowModelSchemaContribution } from '
|
|
9
|
+
import type { FlowModelSchemaContribution } from '../../flow-schema-registry';
|
|
10
10
|
export declare const popupCollectionActionModelInternalSchemaContribution: FlowModelSchemaContribution;
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import type { FlowModelSchemaContribution } from '
|
|
9
|
+
import type { FlowModelSchemaContribution } from '../../flow-schema-registry';
|
|
10
10
|
export declare const refreshActionModelInternalSchemaContribution: FlowModelSchemaContribution;
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import type { FlowModelSchemaContribution } from '
|
|
9
|
+
import type { FlowModelSchemaContribution } from '../../flow-schema-registry';
|
|
10
10
|
export declare const rootPageModelSchemaContribution: FlowModelSchemaContribution;
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import type { FlowModelSchemaContribution } from '
|
|
9
|
+
import type { FlowModelSchemaContribution } from '../../flow-schema-registry';
|
|
10
10
|
export declare const rootPageTabModelInternalSchemaContribution: FlowModelSchemaContribution;
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import type { FlowModelSchemaContribution } from '
|
|
9
|
+
import type { FlowModelSchemaContribution } from '../../flow-schema-registry';
|
|
10
10
|
export declare const routeModelSchemaContribution: FlowModelSchemaContribution;
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import type { FlowModelSchemaContribution } from '
|
|
9
|
+
import type { FlowModelSchemaContribution } from '../../flow-schema-registry';
|
|
10
10
|
export declare const tableActionsColumnModelInternalSchemaContribution: FlowModelSchemaContribution;
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import type { FlowModelSchemaContribution } from '
|
|
9
|
+
import type { FlowModelSchemaContribution } from '../../flow-schema-registry';
|
|
10
10
|
export declare const tableBlockModelSchemaContribution: FlowModelSchemaContribution;
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import type { FlowModelSchemaContribution } from '
|
|
9
|
+
import type { FlowModelSchemaContribution } from '../../flow-schema-registry';
|
|
10
10
|
export declare const tableColumnModelInternalSchemaContribution: FlowModelSchemaContribution;
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import type { FlowModelSchemaContribution } from '
|
|
9
|
+
import type { FlowModelSchemaContribution } from '../../flow-schema-registry';
|
|
10
10
|
export declare const tableCustomColumnModelInternalSchemaContribution: FlowModelSchemaContribution;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import type { FlowSchemaContribution } from '../../flow-schema-registry';
|
|
10
|
+
export declare const flowSchemaContribution: FlowSchemaContribution;
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
|
+
var __export = (target, all) => {
|
|
15
|
+
for (var name in all)
|
|
16
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from, except, desc) => {
|
|
19
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
27
|
+
var UiTemplatesModel_exports = {};
|
|
28
|
+
__export(UiTemplatesModel_exports, {
|
|
29
|
+
flowSchemaContribution: () => flowSchemaContribution
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(UiTemplatesModel_exports);
|
|
32
|
+
const referenceBlockModelSchemaContribution = {
|
|
33
|
+
use: "ReferenceBlockModel",
|
|
34
|
+
title: "Block template",
|
|
35
|
+
source: "plugin",
|
|
36
|
+
strict: false,
|
|
37
|
+
stepParamsSchema: {
|
|
38
|
+
type: "object",
|
|
39
|
+
properties: {
|
|
40
|
+
referenceSettings: {
|
|
41
|
+
type: "object",
|
|
42
|
+
properties: {
|
|
43
|
+
target: {
|
|
44
|
+
type: "object",
|
|
45
|
+
properties: {
|
|
46
|
+
targetUid: { type: "string" },
|
|
47
|
+
mode: {
|
|
48
|
+
type: "string",
|
|
49
|
+
enum: ["reference", "copy"]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
required: ["targetUid"],
|
|
53
|
+
additionalProperties: true
|
|
54
|
+
},
|
|
55
|
+
useTemplate: {
|
|
56
|
+
type: "object",
|
|
57
|
+
properties: {
|
|
58
|
+
templateUid: { type: "string" },
|
|
59
|
+
templateName: { type: "string" },
|
|
60
|
+
templateDescription: { type: "string" },
|
|
61
|
+
targetUid: { type: "string" },
|
|
62
|
+
mode: {
|
|
63
|
+
type: "string",
|
|
64
|
+
enum: ["reference", "copy"]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
additionalProperties: true
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
required: ["target"],
|
|
71
|
+
additionalProperties: true
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
additionalProperties: true
|
|
75
|
+
},
|
|
76
|
+
skeleton: {
|
|
77
|
+
uid: "todo-reference-block-uid",
|
|
78
|
+
use: "ReferenceBlockModel",
|
|
79
|
+
stepParams: {
|
|
80
|
+
referenceSettings: {
|
|
81
|
+
target: {
|
|
82
|
+
targetUid: "todo-target-block-uid",
|
|
83
|
+
mode: "reference"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
docs: {
|
|
89
|
+
minimalExample: {
|
|
90
|
+
uid: "reference-users-template",
|
|
91
|
+
use: "ReferenceBlockModel",
|
|
92
|
+
stepParams: {
|
|
93
|
+
referenceSettings: {
|
|
94
|
+
target: {
|
|
95
|
+
targetUid: "users-details-template-block",
|
|
96
|
+
mode: "reference"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
dynamicHints: [
|
|
102
|
+
{
|
|
103
|
+
kind: "dynamic-ui-schema",
|
|
104
|
+
path: "ReferenceBlockModel.stepParams.referenceSettings.target.targetUid",
|
|
105
|
+
message: "Reference targets must point to an existing block UID or a template-derived target block.",
|
|
106
|
+
"x-flow": {
|
|
107
|
+
contextRequirements: ["existing block uid", "template usage context"],
|
|
108
|
+
unresolvedReason: "runtime-reference-target-resolution",
|
|
109
|
+
recommendedFallback: {
|
|
110
|
+
targetUid: "todo-target-block-uid",
|
|
111
|
+
mode: "reference"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
const flowSchemaContribution = {
|
|
119
|
+
inventory: {
|
|
120
|
+
publicTreeRoots: ["ReferenceBlockModel"]
|
|
121
|
+
},
|
|
122
|
+
models: [referenceBlockModelSchemaContribution],
|
|
123
|
+
defaults: {
|
|
124
|
+
source: "plugin"
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
128
|
+
0 && (module.exports = {
|
|
129
|
+
flowSchemaContribution
|
|
130
|
+
});
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import type { FlowModelSchemaContribution } from '
|
|
9
|
+
import type { FlowModelSchemaContribution } from '../../flow-schema-registry';
|
|
10
10
|
export declare const updateRecordActionModelSchemaContribution: FlowModelSchemaContribution;
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
import type { FlowModelSchemaContribution } from '
|
|
9
|
+
import type { FlowModelSchemaContribution } from '../../flow-schema-registry';
|
|
10
10
|
export declare const viewActionModelInternalSchemaContribution: FlowModelSchemaContribution;
|