@nocobase/plugin-action-bulk-update 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.
@@ -9,12 +9,12 @@
9
9
 
10
10
  module.exports = {
11
11
  "@formily/react": "2.3.7",
12
- "@nocobase/client": "2.1.0-alpha.12",
12
+ "@nocobase/client": "2.1.0-alpha.13",
13
13
  "react-i18next": "11.18.6",
14
14
  "react": "18.2.0",
15
- "@nocobase/flow-engine": "2.1.0-alpha.12",
15
+ "@nocobase/flow-engine": "2.1.0-alpha.13",
16
16
  "antd": "5.24.2",
17
- "@nocobase/utils": "2.1.0-alpha.12",
18
- "@nocobase/server": "2.1.0-alpha.12",
19
- "@nocobase/test": "2.1.0-alpha.12"
17
+ "@nocobase/utils": "2.1.0-alpha.13",
18
+ "@nocobase/server": "2.1.0-alpha.13",
19
+ "@nocobase/test": "2.1.0-alpha.13"
20
20
  };
@@ -6,10 +6,8 @@
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 { FlowSchemaContribution } from '@nocobase/flow-engine';
10
9
  import { InstallOptions, Plugin } from '@nocobase/server';
11
10
  export declare class PluginActionBulkUpdateServer extends Plugin {
12
- getFlowSchemaContributions(): FlowSchemaContribution;
13
11
  afterAdd(): void;
14
12
  beforeLoad(): void;
15
13
  load(): Promise<void>;
@@ -31,11 +31,7 @@ __export(plugin_exports, {
31
31
  });
32
32
  module.exports = __toCommonJS(plugin_exports);
33
33
  var import_server = require("@nocobase/server");
34
- var import_flow_schema_contributions = require("./flow-schema-contributions");
35
34
  class PluginActionBulkUpdateServer extends import_server.Plugin {
36
- getFlowSchemaContributions() {
37
- return import_flow_schema_contributions.flowSchemaContribution;
38
- }
39
35
  afterAdd() {
40
36
  }
41
37
  beforeLoad() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-action-bulk-update",
3
- "version": "2.1.0-alpha.12",
3
+ "version": "2.1.0-alpha.13",
4
4
  "main": "dist/server/index.js",
5
5
  "homepage": "https://docs.nocobase.com/handbook/action-bulk-update",
6
6
  "homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/action-bulk-update",
@@ -24,7 +24,7 @@
24
24
  "@nocobase/server": "2.x",
25
25
  "@nocobase/test": "2.x"
26
26
  },
27
- "gitHead": "f12c4a75470590b1670ce54510b96ef94c2cd7a2",
27
+ "gitHead": "2807a8948412d9c235115a31a81a66f7c82dd173",
28
28
  "keywords": [
29
29
  "Actions"
30
30
  ]
@@ -1,10 +0,0 @@
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 '@nocobase/flow-engine';
10
- export declare const flowSchemaContribution: FlowSchemaContribution;
@@ -1,169 +0,0 @@
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 flow_schema_contributions_exports = {};
28
- __export(flow_schema_contributions_exports, {
29
- flowSchemaContribution: () => flowSchemaContribution
30
- });
31
- module.exports = __toCommonJS(flow_schema_contributions_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 bulkUpdateActionModelSchemaContribution = {
42
- use: "BulkUpdateActionModel",
43
- title: "Bulk update action",
44
- source: "plugin",
45
- strict: false,
46
- stepParamsSchema: {
47
- type: "object",
48
- properties: {
49
- assignSettings: {
50
- type: "object",
51
- properties: {
52
- confirm: confirmStepParamsSchema,
53
- updateMode: {
54
- type: "object",
55
- properties: {
56
- value: {
57
- type: "string",
58
- enum: ["selected", "all"]
59
- }
60
- },
61
- required: ["value"],
62
- additionalProperties: false
63
- },
64
- assignFieldValues: {
65
- type: "object",
66
- properties: {
67
- assignedValues: {
68
- type: "object",
69
- additionalProperties: true
70
- }
71
- },
72
- additionalProperties: false
73
- }
74
- },
75
- additionalProperties: true
76
- },
77
- apply: {
78
- type: "object",
79
- properties: {
80
- apply: {
81
- type: "object",
82
- properties: {
83
- assignedValues: {
84
- type: "object",
85
- additionalProperties: true
86
- }
87
- },
88
- additionalProperties: true
89
- }
90
- },
91
- additionalProperties: true
92
- }
93
- },
94
- additionalProperties: true
95
- },
96
- subModelSlots: {
97
- assignForm: {
98
- type: "object",
99
- use: "AssignFormModel",
100
- description: "Internal assignment form used to configure bulk update field/value pairs."
101
- }
102
- },
103
- skeleton: {
104
- uid: "todo-bulk-update-action-uid",
105
- use: "BulkUpdateActionModel",
106
- stepParams: {
107
- assignSettings: {
108
- confirm: {
109
- enable: false,
110
- title: "Bulk update",
111
- content: "Are you sure you want to perform the Update record action?"
112
- },
113
- updateMode: {
114
- value: "selected"
115
- },
116
- assignFieldValues: {
117
- assignedValues: {}
118
- }
119
- }
120
- },
121
- subModels: {
122
- assignForm: {
123
- uid: "todo-bulk-update-assign-form-uid",
124
- use: "AssignFormModel"
125
- }
126
- }
127
- },
128
- docs: {
129
- minimalExample: {
130
- uid: "bulk-update-users",
131
- use: "BulkUpdateActionModel",
132
- stepParams: {
133
- assignSettings: {
134
- updateMode: {
135
- value: "selected"
136
- }
137
- }
138
- },
139
- subModels: {
140
- assignForm: {
141
- uid: "bulk-update-users-assign-form",
142
- use: "AssignFormModel"
143
- }
144
- }
145
- },
146
- dynamicHints: [
147
- {
148
- kind: "dynamic-ui-schema",
149
- path: "BulkUpdateActionModel.stepParams.assignSettings.assignFieldValues.assignedValues",
150
- message: "Assigned field/value pairs depend on runtime collection fields and assign-form editors.",
151
- "x-flow": {
152
- contextRequirements: ["collection fields", "assign form child tree"],
153
- unresolvedReason: "runtime-bulk-update-assigned-values",
154
- recommendedFallback: {}
155
- }
156
- }
157
- ]
158
- }
159
- };
160
- const flowSchemaContribution = {
161
- models: [bulkUpdateActionModelSchemaContribution],
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
- });