@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,92 @@
|
|
|
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 FieldMarkdownVditorModel_exports = {};
|
|
28
|
+
__export(FieldMarkdownVditorModel_exports, {
|
|
29
|
+
flowSchemaContribution: () => flowSchemaContribution
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(FieldMarkdownVditorModel_exports);
|
|
32
|
+
function createFieldContribution(use, title) {
|
|
33
|
+
return {
|
|
34
|
+
use,
|
|
35
|
+
title,
|
|
36
|
+
source: "plugin",
|
|
37
|
+
strict: false,
|
|
38
|
+
exposure: "internal",
|
|
39
|
+
stepParamsSchema: {
|
|
40
|
+
type: "object",
|
|
41
|
+
properties: {
|
|
42
|
+
fieldSettings: {
|
|
43
|
+
type: "object",
|
|
44
|
+
properties: {
|
|
45
|
+
init: {
|
|
46
|
+
type: "object",
|
|
47
|
+
properties: {
|
|
48
|
+
dataSourceKey: { type: "string" },
|
|
49
|
+
collectionName: { type: "string" },
|
|
50
|
+
fieldPath: { type: "string" }
|
|
51
|
+
},
|
|
52
|
+
additionalProperties: true
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
additionalProperties: true
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
additionalProperties: true
|
|
59
|
+
},
|
|
60
|
+
skeleton: {
|
|
61
|
+
uid: `todo-${use}`.replace(/[^a-zA-Z0-9]+/g, "-").toLowerCase(),
|
|
62
|
+
use
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
const flowSchemaContribution = {
|
|
67
|
+
models: [
|
|
68
|
+
createFieldContribution("VditorFieldModel", "Vditor"),
|
|
69
|
+
createFieldContribution("DisplayVditorFieldModel", "Display vditor")
|
|
70
|
+
],
|
|
71
|
+
fieldBindings: [
|
|
72
|
+
{
|
|
73
|
+
context: "editable-field",
|
|
74
|
+
use: "VditorFieldModel",
|
|
75
|
+
interfaces: ["vditor", "markdown"],
|
|
76
|
+
isDefault: true
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
context: "display-field",
|
|
80
|
+
use: "DisplayVditorFieldModel",
|
|
81
|
+
interfaces: ["vditor", "markdown"],
|
|
82
|
+
isDefault: true
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
defaults: {
|
|
86
|
+
source: "plugin"
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
90
|
+
0 && (module.exports = {
|
|
91
|
+
flowSchemaContribution
|
|
92
|
+
});
|
|
@@ -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,60 @@
|
|
|
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 FieldSequenceModel_exports = {};
|
|
28
|
+
__export(FieldSequenceModel_exports, {
|
|
29
|
+
flowSchemaContribution: () => flowSchemaContribution
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(FieldSequenceModel_exports);
|
|
32
|
+
const flowSchemaContribution = {
|
|
33
|
+
fieldBindings: [
|
|
34
|
+
{
|
|
35
|
+
context: "editable-field",
|
|
36
|
+
use: "InputFieldModel",
|
|
37
|
+
interfaces: ["sequence"],
|
|
38
|
+
isDefault: true
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
context: "display-field",
|
|
42
|
+
use: "DisplayTextFieldModel",
|
|
43
|
+
interfaces: ["sequence"],
|
|
44
|
+
isDefault: true
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
context: "filter-field",
|
|
48
|
+
use: "InputFieldModel",
|
|
49
|
+
interfaces: ["sequence"],
|
|
50
|
+
isDefault: true
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
defaults: {
|
|
54
|
+
source: "plugin"
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
58
|
+
0 && (module.exports = {
|
|
59
|
+
flowSchemaContribution
|
|
60
|
+
});
|
|
@@ -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,87 @@
|
|
|
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 FieldSortModel_exports = {};
|
|
28
|
+
__export(FieldSortModel_exports, {
|
|
29
|
+
flowSchemaContribution: () => flowSchemaContribution
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(FieldSortModel_exports);
|
|
32
|
+
const sortFieldModelSchemaContribution = {
|
|
33
|
+
use: "SortFieldModel",
|
|
34
|
+
title: "Sort",
|
|
35
|
+
source: "plugin",
|
|
36
|
+
strict: false,
|
|
37
|
+
exposure: "internal",
|
|
38
|
+
stepParamsSchema: {
|
|
39
|
+
type: "object",
|
|
40
|
+
properties: {
|
|
41
|
+
fieldSettings: {
|
|
42
|
+
type: "object",
|
|
43
|
+
properties: {
|
|
44
|
+
init: {
|
|
45
|
+
type: "object",
|
|
46
|
+
properties: {
|
|
47
|
+
dataSourceKey: { type: "string" },
|
|
48
|
+
collectionName: { type: "string" },
|
|
49
|
+
fieldPath: { type: "string" }
|
|
50
|
+
},
|
|
51
|
+
additionalProperties: true
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
additionalProperties: true
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
additionalProperties: true
|
|
58
|
+
},
|
|
59
|
+
skeleton: {
|
|
60
|
+
uid: "todo-sort-field-model",
|
|
61
|
+
use: "SortFieldModel"
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
const flowSchemaContribution = {
|
|
65
|
+
models: [sortFieldModelSchemaContribution],
|
|
66
|
+
fieldBindings: [
|
|
67
|
+
{
|
|
68
|
+
context: "editable-field",
|
|
69
|
+
use: "SortFieldModel",
|
|
70
|
+
interfaces: ["sort"],
|
|
71
|
+
isDefault: true
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
context: "display-field",
|
|
75
|
+
use: "DisplayNumberFieldModel",
|
|
76
|
+
interfaces: ["sort"],
|
|
77
|
+
isDefault: true
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
defaults: {
|
|
81
|
+
source: "plugin"
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
85
|
+
0 && (module.exports = {
|
|
86
|
+
flowSchemaContribution
|
|
87
|
+
});
|
|
@@ -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,115 @@
|
|
|
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 FileManagerModel_exports = {};
|
|
28
|
+
__export(FileManagerModel_exports, {
|
|
29
|
+
flowSchemaContribution: () => flowSchemaContribution
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(FileManagerModel_exports);
|
|
32
|
+
function createFieldContribution(use, title) {
|
|
33
|
+
return {
|
|
34
|
+
use,
|
|
35
|
+
title,
|
|
36
|
+
source: "plugin",
|
|
37
|
+
strict: false,
|
|
38
|
+
exposure: "internal",
|
|
39
|
+
stepParamsSchema: {
|
|
40
|
+
type: "object",
|
|
41
|
+
properties: {
|
|
42
|
+
fieldSettings: {
|
|
43
|
+
type: "object",
|
|
44
|
+
properties: {
|
|
45
|
+
init: {
|
|
46
|
+
type: "object",
|
|
47
|
+
properties: {
|
|
48
|
+
dataSourceKey: { type: "string" },
|
|
49
|
+
collectionName: { type: "string" },
|
|
50
|
+
fieldPath: { type: "string" },
|
|
51
|
+
associationPathName: { type: "string" }
|
|
52
|
+
},
|
|
53
|
+
additionalProperties: true
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
additionalProperties: true
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
additionalProperties: true
|
|
60
|
+
},
|
|
61
|
+
skeleton: {
|
|
62
|
+
uid: `todo-${use}`.replace(/[^a-zA-Z0-9]+/g, "-").toLowerCase(),
|
|
63
|
+
use
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
const flowSchemaContribution = {
|
|
68
|
+
models: [
|
|
69
|
+
createFieldContribution("UploadFieldModel", "Upload"),
|
|
70
|
+
createFieldContribution("DisplayPreviewFieldModel", "Display preview")
|
|
71
|
+
],
|
|
72
|
+
fieldBindings: [
|
|
73
|
+
{
|
|
74
|
+
context: "editable-field",
|
|
75
|
+
use: "UploadFieldModel",
|
|
76
|
+
interfaces: ["attachment"],
|
|
77
|
+
isDefault: true,
|
|
78
|
+
order: 30
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
context: "editable-field",
|
|
82
|
+
use: "UploadFieldModel",
|
|
83
|
+
interfaces: ["m2m", "m2o", "o2o", "o2m", "oho", "obo", "updatedBy", "createdBy", "mbm"],
|
|
84
|
+
isDefault: true,
|
|
85
|
+
order: 30,
|
|
86
|
+
conditions: {
|
|
87
|
+
association: true,
|
|
88
|
+
targetCollectionTemplateIn: ["file"]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
context: "display-field",
|
|
93
|
+
use: "DisplayPreviewFieldModel",
|
|
94
|
+
interfaces: ["url", "attachment", "attachmentURL"],
|
|
95
|
+
isDefault: true
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
context: "display-field",
|
|
99
|
+
use: "DisplayPreviewFieldModel",
|
|
100
|
+
interfaces: ["m2m", "m2o", "o2o", "o2m", "oho", "obo", "mbm"],
|
|
101
|
+
isDefault: true,
|
|
102
|
+
conditions: {
|
|
103
|
+
association: true,
|
|
104
|
+
targetCollectionTemplateIn: ["file"]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
defaults: {
|
|
109
|
+
source: "plugin"
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
113
|
+
0 && (module.exports = {
|
|
114
|
+
flowSchemaContribution
|
|
115
|
+
});
|
|
@@ -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 filterActionModelInternalSchemaContribution: 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 filterFormBlockModelSchemaContribution: 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 filterFormCollapseActionModelInternalSchemaContribution: 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 filterFormCustomFieldModelInternalSchemaContribution: 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 filterFormGridModelInternalSchemaContribution: 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 filterFormItemModelInternalSchemaContribution: 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 filterFormJsActionModelInternalSchemaContribution: 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 filterFormResetActionModelInternalSchemaContribution: 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 filterFormSubmitActionModelInternalSchemaContribution: 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 formAssociationItemModelInternalSchemaContribution: 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 formBlockModelInternalSchemaContribution: 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 formGridModelInternalSchemaContribution: 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 formItemModelInternalSchemaContribution: 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 formSubmitActionModelInternalSchemaContribution: 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 jsActionModelInternalSchemaContribution: 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 jsBlockModelSchemaContribution: 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 jsCollectionActionModelInternalSchemaContribution: 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 jsColumnModelInternalSchemaContribution: 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 jsFormActionModelInternalSchemaContribution: 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 jsItemModelInternalSchemaContribution: 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 jsRecordActionModelInternalSchemaContribution: 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 linkActionModelInternalSchemaContribution: 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;
|