@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,169 @@
|
|
|
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 ActionDuplicateModel_exports = {};
|
|
28
|
+
__export(ActionDuplicateModel_exports, {
|
|
29
|
+
flowSchemaContribution: () => flowSchemaContribution
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(ActionDuplicateModel_exports);
|
|
32
|
+
const confirmStepParamsSchema = {
|
|
33
|
+
type: "object",
|
|
34
|
+
properties: {
|
|
35
|
+
enable: { type: "boolean" },
|
|
36
|
+
title: { type: "string" },
|
|
37
|
+
content: { type: "string" }
|
|
38
|
+
},
|
|
39
|
+
additionalProperties: false
|
|
40
|
+
};
|
|
41
|
+
const duplicateActionModelSchemaContribution = {
|
|
42
|
+
use: "DuplicateActionModel",
|
|
43
|
+
title: "Duplicate action",
|
|
44
|
+
source: "plugin",
|
|
45
|
+
strict: false,
|
|
46
|
+
stepParamsSchema: {
|
|
47
|
+
type: "object",
|
|
48
|
+
properties: {
|
|
49
|
+
duplicateModeSettings: {
|
|
50
|
+
type: "object",
|
|
51
|
+
properties: {
|
|
52
|
+
duplicateMode: {
|
|
53
|
+
type: "object",
|
|
54
|
+
properties: {
|
|
55
|
+
duplicateMode: {
|
|
56
|
+
type: "string",
|
|
57
|
+
enum: ["quickDulicate", "continueduplicate"]
|
|
58
|
+
},
|
|
59
|
+
collection: { type: "string" },
|
|
60
|
+
duplicateFields: {
|
|
61
|
+
type: "array",
|
|
62
|
+
items: { type: "string" }
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
additionalProperties: true
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
additionalProperties: true
|
|
69
|
+
},
|
|
70
|
+
duplicateSettings: {
|
|
71
|
+
type: "object",
|
|
72
|
+
properties: {
|
|
73
|
+
confirm: confirmStepParamsSchema
|
|
74
|
+
},
|
|
75
|
+
additionalProperties: true
|
|
76
|
+
},
|
|
77
|
+
popupSettings: {
|
|
78
|
+
type: "object",
|
|
79
|
+
properties: {
|
|
80
|
+
confirm: confirmStepParamsSchema,
|
|
81
|
+
openView: {
|
|
82
|
+
type: "object",
|
|
83
|
+
properties: {
|
|
84
|
+
uid: { type: "string" },
|
|
85
|
+
mode: {
|
|
86
|
+
type: "string",
|
|
87
|
+
enum: ["drawer", "dialog", "embed"]
|
|
88
|
+
},
|
|
89
|
+
size: {
|
|
90
|
+
type: "string",
|
|
91
|
+
enum: ["small", "medium", "large"]
|
|
92
|
+
},
|
|
93
|
+
popupTemplateUid: { type: "string" },
|
|
94
|
+
popupTemplateMode: {
|
|
95
|
+
type: "string",
|
|
96
|
+
enum: ["reference", "copy"]
|
|
97
|
+
},
|
|
98
|
+
viewUid: { type: "string" },
|
|
99
|
+
dataSourceKey: { type: "string" },
|
|
100
|
+
collectionName: { type: "string" }
|
|
101
|
+
},
|
|
102
|
+
additionalProperties: true
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
additionalProperties: true
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
additionalProperties: true
|
|
109
|
+
},
|
|
110
|
+
skeleton: {
|
|
111
|
+
uid: "todo-duplicate-action-uid",
|
|
112
|
+
use: "DuplicateActionModel",
|
|
113
|
+
stepParams: {
|
|
114
|
+
duplicateModeSettings: {
|
|
115
|
+
duplicateMode: {
|
|
116
|
+
duplicateMode: "quickDulicate"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
duplicateSettings: {
|
|
120
|
+
confirm: {
|
|
121
|
+
enable: false,
|
|
122
|
+
title: "Duplicate record",
|
|
123
|
+
content: "Are you sure you want to duplicate it?"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
popupSettings: {
|
|
127
|
+
openView: {
|
|
128
|
+
mode: "drawer",
|
|
129
|
+
size: "medium"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
docs: {
|
|
135
|
+
minimalExample: {
|
|
136
|
+
uid: "duplicate-users",
|
|
137
|
+
use: "DuplicateActionModel",
|
|
138
|
+
stepParams: {
|
|
139
|
+
duplicateModeSettings: {
|
|
140
|
+
duplicateMode: {
|
|
141
|
+
duplicateMode: "quickDulicate"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
dynamicHints: [
|
|
147
|
+
{
|
|
148
|
+
kind: "dynamic-ui-schema",
|
|
149
|
+
path: "DuplicateActionModel.stepParams.duplicateModeSettings.duplicateMode.duplicateFields",
|
|
150
|
+
message: "Duplicate field selection depends on the runtime collection inherit chain and field tree.",
|
|
151
|
+
"x-flow": {
|
|
152
|
+
contextRequirements: ["collection inherit chain", "collection field tree"],
|
|
153
|
+
unresolvedReason: "runtime-duplicate-fields",
|
|
154
|
+
recommendedFallback: []
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
const flowSchemaContribution = {
|
|
161
|
+
models: [duplicateActionModelSchemaContribution],
|
|
162
|
+
defaults: {
|
|
163
|
+
source: "plugin"
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
167
|
+
0 && (module.exports = {
|
|
168
|
+
flowSchemaContribution
|
|
169
|
+
});
|
|
@@ -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,141 @@
|
|
|
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 ActionExportModel_exports = {};
|
|
28
|
+
__export(ActionExportModel_exports, {
|
|
29
|
+
flowSchemaContribution: () => flowSchemaContribution
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(ActionExportModel_exports);
|
|
32
|
+
const confirmStepParamsSchema = {
|
|
33
|
+
type: "object",
|
|
34
|
+
properties: {
|
|
35
|
+
enable: { type: "boolean" },
|
|
36
|
+
title: { type: "string" },
|
|
37
|
+
content: { type: "string" }
|
|
38
|
+
},
|
|
39
|
+
additionalProperties: false
|
|
40
|
+
};
|
|
41
|
+
const exportColumnSchema = {
|
|
42
|
+
type: "object",
|
|
43
|
+
properties: {
|
|
44
|
+
dataIndex: {
|
|
45
|
+
type: "array",
|
|
46
|
+
items: { type: "string" },
|
|
47
|
+
minItems: 1
|
|
48
|
+
},
|
|
49
|
+
title: { type: "string" }
|
|
50
|
+
},
|
|
51
|
+
required: ["dataIndex"],
|
|
52
|
+
additionalProperties: false
|
|
53
|
+
};
|
|
54
|
+
const exportActionModelSchemaContribution = {
|
|
55
|
+
use: "ExportActionModel",
|
|
56
|
+
title: "Export action",
|
|
57
|
+
source: "plugin",
|
|
58
|
+
strict: false,
|
|
59
|
+
stepParamsSchema: {
|
|
60
|
+
type: "object",
|
|
61
|
+
properties: {
|
|
62
|
+
exportSettings: {
|
|
63
|
+
type: "object",
|
|
64
|
+
properties: {
|
|
65
|
+
confirm: confirmStepParamsSchema
|
|
66
|
+
},
|
|
67
|
+
additionalProperties: true
|
|
68
|
+
},
|
|
69
|
+
exportActionSetting: {
|
|
70
|
+
type: "object",
|
|
71
|
+
properties: {
|
|
72
|
+
exportableFields: {
|
|
73
|
+
type: "object",
|
|
74
|
+
properties: {
|
|
75
|
+
exportSettings: {
|
|
76
|
+
type: "array",
|
|
77
|
+
items: exportColumnSchema
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
additionalProperties: false
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
additionalProperties: true
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
additionalProperties: true
|
|
87
|
+
},
|
|
88
|
+
skeleton: {
|
|
89
|
+
uid: "todo-export-action-uid",
|
|
90
|
+
use: "ExportActionModel",
|
|
91
|
+
stepParams: {
|
|
92
|
+
exportSettings: {
|
|
93
|
+
confirm: {
|
|
94
|
+
enable: true,
|
|
95
|
+
title: "Export",
|
|
96
|
+
content: "Export warning"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
exportActionSetting: {
|
|
100
|
+
exportableFields: {
|
|
101
|
+
exportSettings: []
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
docs: {
|
|
107
|
+
minimalExample: {
|
|
108
|
+
uid: "export-users",
|
|
109
|
+
use: "ExportActionModel",
|
|
110
|
+
stepParams: {
|
|
111
|
+
exportActionSetting: {
|
|
112
|
+
exportableFields: {
|
|
113
|
+
exportSettings: []
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
dynamicHints: [
|
|
119
|
+
{
|
|
120
|
+
kind: "dynamic-ui-schema",
|
|
121
|
+
path: "ExportActionModel.stepParams.exportActionSetting.exportableFields.exportSettings",
|
|
122
|
+
message: "Exportable field options depend on the runtime collection field tree.",
|
|
123
|
+
"x-flow": {
|
|
124
|
+
contextRequirements: ["collection fields"],
|
|
125
|
+
unresolvedReason: "runtime-exportable-fields",
|
|
126
|
+
recommendedFallback: []
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
const flowSchemaContribution = {
|
|
133
|
+
models: [exportActionModelSchemaContribution],
|
|
134
|
+
defaults: {
|
|
135
|
+
source: "plugin"
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
139
|
+
0 && (module.exports = {
|
|
140
|
+
flowSchemaContribution
|
|
141
|
+
});
|
|
@@ -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,122 @@
|
|
|
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 ActionImportModel_exports = {};
|
|
28
|
+
__export(ActionImportModel_exports, {
|
|
29
|
+
flowSchemaContribution: () => flowSchemaContribution
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(ActionImportModel_exports);
|
|
32
|
+
const importColumnSchema = {
|
|
33
|
+
type: "object",
|
|
34
|
+
properties: {
|
|
35
|
+
dataIndex: {
|
|
36
|
+
type: "array",
|
|
37
|
+
items: { type: "string" },
|
|
38
|
+
minItems: 1
|
|
39
|
+
},
|
|
40
|
+
title: { type: "string" },
|
|
41
|
+
description: { type: "string" }
|
|
42
|
+
},
|
|
43
|
+
required: ["dataIndex"],
|
|
44
|
+
additionalProperties: false
|
|
45
|
+
};
|
|
46
|
+
const importActionModelSchemaContribution = {
|
|
47
|
+
use: "ImportActionModel",
|
|
48
|
+
title: "Import action",
|
|
49
|
+
source: "plugin",
|
|
50
|
+
strict: false,
|
|
51
|
+
stepParamsSchema: {
|
|
52
|
+
type: "object",
|
|
53
|
+
properties: {
|
|
54
|
+
importActionSetting: {
|
|
55
|
+
type: "object",
|
|
56
|
+
properties: {
|
|
57
|
+
importSetting: {
|
|
58
|
+
type: "object",
|
|
59
|
+
properties: {
|
|
60
|
+
explain: { type: "string" },
|
|
61
|
+
importColumns: {
|
|
62
|
+
type: "array",
|
|
63
|
+
items: importColumnSchema
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
additionalProperties: false
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
additionalProperties: true
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
additionalProperties: true
|
|
73
|
+
},
|
|
74
|
+
skeleton: {
|
|
75
|
+
uid: "todo-import-action-uid",
|
|
76
|
+
use: "ImportActionModel",
|
|
77
|
+
stepParams: {
|
|
78
|
+
importActionSetting: {
|
|
79
|
+
importSetting: {
|
|
80
|
+
explain: "",
|
|
81
|
+
importColumns: []
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
docs: {
|
|
87
|
+
minimalExample: {
|
|
88
|
+
uid: "import-users",
|
|
89
|
+
use: "ImportActionModel",
|
|
90
|
+
stepParams: {
|
|
91
|
+
importActionSetting: {
|
|
92
|
+
importSetting: {
|
|
93
|
+
explain: "",
|
|
94
|
+
importColumns: []
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
dynamicHints: [
|
|
100
|
+
{
|
|
101
|
+
kind: "dynamic-ui-schema",
|
|
102
|
+
path: "ImportActionModel.stepParams.importActionSetting.importSetting.importColumns",
|
|
103
|
+
message: "Importable field options depend on the runtime collection field tree.",
|
|
104
|
+
"x-flow": {
|
|
105
|
+
contextRequirements: ["collection fields"],
|
|
106
|
+
unresolvedReason: "runtime-importable-fields",
|
|
107
|
+
recommendedFallback: []
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
const flowSchemaContribution = {
|
|
114
|
+
models: [importActionModelSchemaContribution],
|
|
115
|
+
defaults: {
|
|
116
|
+
source: "plugin"
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
120
|
+
0 && (module.exports = {
|
|
121
|
+
flowSchemaContribution
|
|
122
|
+
});
|
|
@@ -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 actionModelSchemaContribution: 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 addChildActionModelInternalSchemaContribution: 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 addNewActionModelInternalSchemaContribution: 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 assignFormGridModelInternalSchemaContribution: 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 assignFormItemModelInternalSchemaContribution: 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 assignFormModelInternalSchemaContribution: 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 basePageTabModelInternalSchemaContribution: 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;
|