@nocobase/plugin-departments 2.0.0-alpha.9 → 2.0.0-beta.1
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/client/collections/users.d.ts +32 -11
- package/dist/client/departments/DepartmentOwnersField.d.ts +3 -1
- package/dist/client/departments/DepartmentsField.d.ts +20 -0
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +10 -9
- package/dist/locale/de-DE.json +37 -0
- package/dist/locale/en-US.json +25 -23
- package/dist/locale/es-ES.json +37 -0
- package/dist/locale/fr-FR.json +37 -0
- package/dist/locale/hu-HU.json +37 -0
- package/dist/locale/id-ID.json +37 -0
- package/dist/locale/it-IT.json +37 -0
- package/dist/locale/ja-JP.json +37 -0
- package/dist/locale/ko-KR.json +37 -0
- package/dist/locale/nl-NL.json +37 -0
- package/dist/locale/pt-BR.json +37 -0
- package/dist/locale/ru-RU.json +37 -0
- package/dist/locale/tr-TR.json +37 -0
- package/dist/locale/uk-UA.json +37 -0
- package/dist/locale/vi-VN.json +37 -0
- package/dist/locale/zh-CN.json +25 -23
- package/dist/locale/zh-TW.json +37 -0
- package/dist/server/actions/users.js +24 -38
- package/dist/server/collections/departments.js +1 -1
- package/dist/server/collections/departmentsUsers.js +4 -2
- package/dist/server/collections/users.d.ts +12 -5
- package/dist/server/collections/users.js +25 -16
- package/dist/server/department-data-sync-resource.js +21 -24
- package/dist/server/middlewares/set-departments-roles.js +1 -1
- package/dist/server/middlewares/set-main-department.js +48 -58
- package/dist/server/migrations/migrate-main-department-id-20250828100101.d.ts +14 -0
- package/dist/server/migrations/migrate-main-department-id-20250828100101.js +133 -0
- package/dist/server/plugin.d.ts +1 -0
- package/dist/server/plugin.js +49 -3
- package/package.json +4 -2
|
@@ -40,7 +40,6 @@ export declare const userCollection: {
|
|
|
40
40
|
sourceKey?: undefined;
|
|
41
41
|
targetKey?: undefined;
|
|
42
42
|
through?: undefined;
|
|
43
|
-
throughScope?: undefined;
|
|
44
43
|
} | {
|
|
45
44
|
interface: string;
|
|
46
45
|
type: string;
|
|
@@ -65,7 +64,6 @@ export declare const userCollection: {
|
|
|
65
64
|
sourceKey?: undefined;
|
|
66
65
|
targetKey?: undefined;
|
|
67
66
|
through?: undefined;
|
|
68
|
-
throughScope?: undefined;
|
|
69
67
|
} | {
|
|
70
68
|
interface: string;
|
|
71
69
|
type: string;
|
|
@@ -92,7 +90,6 @@ export declare const userCollection: {
|
|
|
92
90
|
sourceKey?: undefined;
|
|
93
91
|
targetKey?: undefined;
|
|
94
92
|
through?: undefined;
|
|
95
|
-
throughScope?: undefined;
|
|
96
93
|
} | {
|
|
97
94
|
interface: string;
|
|
98
95
|
type: string;
|
|
@@ -117,7 +114,6 @@ export declare const userCollection: {
|
|
|
117
114
|
sourceKey?: undefined;
|
|
118
115
|
targetKey?: undefined;
|
|
119
116
|
through?: undefined;
|
|
120
|
-
throughScope?: undefined;
|
|
121
117
|
} | {
|
|
122
118
|
interface: string;
|
|
123
119
|
type: string;
|
|
@@ -148,7 +144,6 @@ export declare const userCollection: {
|
|
|
148
144
|
primaryKey?: undefined;
|
|
149
145
|
allowNull?: undefined;
|
|
150
146
|
unique?: undefined;
|
|
151
|
-
throughScope?: undefined;
|
|
152
147
|
} | {
|
|
153
148
|
name: string;
|
|
154
149
|
type: string;
|
|
@@ -173,33 +168,59 @@ export declare const userCollection: {
|
|
|
173
168
|
primaryKey?: undefined;
|
|
174
169
|
allowNull?: undefined;
|
|
175
170
|
unique?: undefined;
|
|
176
|
-
throughScope?: undefined;
|
|
177
171
|
} | {
|
|
178
172
|
interface: string;
|
|
179
173
|
type: string;
|
|
180
174
|
name: string;
|
|
181
175
|
target: string;
|
|
182
176
|
foreignKey: string;
|
|
183
|
-
otherKey: string;
|
|
184
177
|
onDelete: string;
|
|
185
178
|
sourceKey: string;
|
|
186
179
|
targetKey: string;
|
|
187
|
-
through: string;
|
|
188
|
-
throughScope: {
|
|
189
|
-
isMain: boolean;
|
|
190
|
-
};
|
|
191
180
|
uiSchema: {
|
|
192
181
|
type: string;
|
|
193
182
|
title: string;
|
|
194
183
|
'x-component': string;
|
|
184
|
+
'x-component-props': {
|
|
185
|
+
fieldNames: {
|
|
186
|
+
label: string;
|
|
187
|
+
value: string;
|
|
188
|
+
};
|
|
189
|
+
multiple?: undefined;
|
|
190
|
+
};
|
|
195
191
|
'x-read-pretty'?: undefined;
|
|
196
192
|
'x-validator'?: undefined;
|
|
197
193
|
required?: undefined;
|
|
194
|
+
};
|
|
195
|
+
autoIncrement?: undefined;
|
|
196
|
+
primaryKey?: undefined;
|
|
197
|
+
allowNull?: undefined;
|
|
198
|
+
unique?: undefined;
|
|
199
|
+
otherKey?: undefined;
|
|
200
|
+
through?: undefined;
|
|
201
|
+
} | {
|
|
202
|
+
interface: string;
|
|
203
|
+
type: string;
|
|
204
|
+
name: string;
|
|
205
|
+
uiSchema: {
|
|
206
|
+
type: string;
|
|
207
|
+
title: string;
|
|
208
|
+
'x-component': string;
|
|
209
|
+
'x-read-pretty': boolean;
|
|
210
|
+
'x-validator'?: undefined;
|
|
211
|
+
required?: undefined;
|
|
198
212
|
'x-component-props'?: undefined;
|
|
199
213
|
};
|
|
200
214
|
autoIncrement?: undefined;
|
|
201
215
|
primaryKey?: undefined;
|
|
202
216
|
allowNull?: undefined;
|
|
203
217
|
unique?: undefined;
|
|
218
|
+
target?: undefined;
|
|
219
|
+
foreignKey?: undefined;
|
|
220
|
+
otherKey?: undefined;
|
|
221
|
+
onDelete?: undefined;
|
|
222
|
+
sourceKey?: undefined;
|
|
223
|
+
targetKey?: undefined;
|
|
224
|
+
through?: undefined;
|
|
204
225
|
})[];
|
|
205
226
|
};
|
|
@@ -7,4 +7,6 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
export declare const DepartmentOwnersField: React.
|
|
10
|
+
export declare const DepartmentOwnersField: React.ForwardRefExoticComponent<Partial<{
|
|
11
|
+
children?: any;
|
|
12
|
+
}> & React.RefAttributes<unknown>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
* This file is part of the NocoBase (R) project.
|
|
11
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
12
|
+
* Authors: NocoBase Team.
|
|
13
|
+
*
|
|
14
|
+
* This program is offered under a commercial license.
|
|
15
|
+
* For more information, see <https://www.nocobase.com/agreement>
|
|
16
|
+
*/
|
|
17
|
+
import React from 'react';
|
|
18
|
+
export declare const DepartmentsField: React.ForwardRefExoticComponent<Partial<{
|
|
19
|
+
children?: any;
|
|
20
|
+
}> & React.RefAttributes<unknown>>;
|