@nocobase/plugin-data-source-manager 1.2.13-alpha → 1.3.0-alpha.20240710084543
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/package.json +2 -2
- package/dist/client/DatabaseConnectionProvider.d.ts +0 -11
- package/dist/client/ThridDataSource.d.ts +0 -12
- package/dist/client/component/BreadcumbTitle.d.ts +0 -10
- package/dist/client/component/CollectionsManager/AddFieldAction.d.ts +0 -13
- package/dist/client/component/CollectionsManager/CollectionFields.d.ts +0 -16
- package/dist/client/component/CollectionsManager/CollectionTitle.d.ts +0 -9
- package/dist/client/component/CollectionsManager/ConfigurationTable.d.ts +0 -10
- package/dist/client/component/CollectionsManager/ConfigurationTabs.d.ts +0 -10
- package/dist/client/component/CollectionsManager/EditCollectionAction.d.ts +0 -14
- package/dist/client/component/CollectionsManager/EditFieldAction.d.ts +0 -10
- package/dist/client/component/CollectionsManager/FilterTargetKeyAlert.d.ts +0 -12
- package/dist/client/component/CollectionsManager/SetFilterTargetKey.d.ts +0 -10
- package/dist/client/component/CollectionsManager/components/CollectionFieldInterfaceSelect.d.ts +0 -10
- package/dist/client/component/CollectionsManager/components/CollectionName.d.ts +0 -9
- package/dist/client/component/CollectionsManager/components/FieldTitleInput.d.ts +0 -10
- package/dist/client/component/CollectionsManager/components/FieldType.d.ts +0 -10
- package/dist/client/component/CollectionsManager/components/TitleField.d.ts +0 -10
- package/dist/client/component/CollectionsManager/components/UnSupportFields.d.ts +0 -10
- package/dist/client/component/CollectionsManager/components/index.d.ts +0 -14
- package/dist/client/component/CollectionsManager/hooks.d.ts +0 -20
- package/dist/client/component/CollectionsManager/index.d.ts +0 -10
- package/dist/client/component/CollectionsManager/schema/collectionFields.d.ts +0 -12
- package/dist/client/component/CollectionsManager/schema/collections.d.ts +0 -72
- package/dist/client/component/CreateDatabaseConnectAction.d.ts +0 -10
- package/dist/client/component/DatabaseConnectionManager.d.ts +0 -10
- package/dist/client/component/EditDatabaseConnectionAction.d.ts +0 -10
- package/dist/client/component/MainDataSourceManager/Configuration/AddCategoryAction.d.ts +0 -11
- package/dist/client/component/MainDataSourceManager/Configuration/CollectionFields.d.ts +0 -11
- package/dist/client/component/MainDataSourceManager/Configuration/ConfigurationTable.d.ts +0 -10
- package/dist/client/component/MainDataSourceManager/Configuration/ConfigurationTabs.d.ts +0 -10
- package/dist/client/component/MainDataSourceManager/Configuration/EditCategoryAction.d.ts +0 -11
- package/dist/client/component/MainDataSourceManager/Configuration/index.d.ts +0 -13
- package/dist/client/component/MainDataSourceManager/Configuration/interfaces.d.ts +0 -24
- package/dist/client/component/MainDataSourceManager/Configuration/schemas/collectionFields.d.ts +0 -10
- package/dist/client/component/MainDataSourceManager/Configuration/schemas/collections.d.ts +0 -15
- package/dist/client/component/MainDataSourceManager/index.d.ts +0 -10
- package/dist/client/component/PermissionManager/DataSourceTable.d.ts +0 -11
- package/dist/client/component/PermissionManager/PermisionProvider.d.ts +0 -13
- package/dist/client/component/PermissionManager/RoleConfigure.d.ts +0 -10
- package/dist/client/component/PermissionManager/RolesResourcesActions.d.ts +0 -11
- package/dist/client/component/PermissionManager/ScopeSelect.d.ts +0 -11
- package/dist/client/component/PermissionManager/StrategyActions.d.ts +0 -10
- package/dist/client/component/PermissionManager/index.d.ts +0 -11
- package/dist/client/component/PermissionManager/schemas/dataSourceTable.d.ts +0 -10
- package/dist/client/component/PermissionManager/schemas/roleCollections.d.ts +0 -10
- package/dist/client/component/PermissionManager/schemas/scopes.d.ts +0 -130
- package/dist/client/component/PermissionManager/schemas/useRoleResourceValues.d.ts +0 -16
- package/dist/client/component/PermissionManager/schemas/useSaveRoleResourceAction.d.ts +0 -11
- package/dist/client/component/PermissionManager/style.d.ts +0 -9
- package/dist/client/component/ViewDatabaseConnectionAction.d.ts +0 -10
- package/dist/client/constant.d.ts +0 -9
- package/dist/client/hooks/index.d.ts +0 -14
- package/dist/client/index.d.ts +0 -17
- package/dist/client/index.js +0 -59
- package/dist/client/locale/index.d.ts +0 -11
- package/dist/client/schema/index.d.ts +0 -15
- package/dist/externalVersion.js +0 -33
- package/dist/index.d.ts +0 -10
- package/dist/index.js +0 -48
- package/dist/locale/zh-CN.json +0 -40
- package/dist/server/collections/data-sources-collections.d.ts +0 -10
- package/dist/server/collections/data-sources-collections.js +0 -75
- package/dist/server/collections/data-sources-fields.d.ts +0 -10
- package/dist/server/collections/data-sources-fields.js +0 -96
- package/dist/server/collections/data-sources-roles-resources-actions.d.ts +0 -10
- package/dist/server/collections/data-sources-roles-resources-actions.js +0 -61
- package/dist/server/collections/data-sources-roles-resources-scopes.d.ts +0 -10
- package/dist/server/collections/data-sources-roles-resources-scopes.js +0 -65
- package/dist/server/collections/data-sources-roles-resources.d.ts +0 -10
- package/dist/server/collections/data-sources-roles-resources.js +0 -71
- package/dist/server/collections/data-sources-roles.d.ts +0 -10
- package/dist/server/collections/data-sources-roles.js +0 -63
- package/dist/server/collections/data-sources.d.ts +0 -10
- package/dist/server/collections/data-sources.js +0 -80
- package/dist/server/errors/type-infer-error.d.ts +0 -10
- package/dist/server/errors/type-infer-error.js +0 -37
- package/dist/server/index.d.ts +0 -10
- package/dist/server/index.js +0 -48
- package/dist/server/migrations/20240301164024-migrate-acl-resources.d.ts +0 -15
- package/dist/server/migrations/20240301164024-migrate-acl-resources.js +0 -127
- package/dist/server/migrations/20240414103927-update-snippet-name.d.ts +0 -14
- package/dist/server/migrations/20240414103927-update-snippet-name.js +0 -60
- package/dist/server/models/connections-roles-resources-action.d.ts +0 -11
- package/dist/server/models/connections-roles-resources-action.js +0 -38
- package/dist/server/models/connections-roles-resources.d.ts +0 -11
- package/dist/server/models/connections-roles-resources.js +0 -38
- package/dist/server/models/data-source.d.ts +0 -25
- package/dist/server/models/data-source.js +0 -173
- package/dist/server/models/data-sources-collection-model.d.ts +0 -15
- package/dist/server/models/data-sources-collection-model.js +0 -46
- package/dist/server/models/data-sources-field-model.d.ts +0 -18
- package/dist/server/models/data-sources-field-model.js +0 -63
- package/dist/server/models/data-sources-roles-model.d.ts +0 -17
- package/dist/server/models/data-sources-roles-model.js +0 -64
- package/dist/server/plugin.d.ts +0 -21
- package/dist/server/plugin.js +0 -443
- package/dist/server/resourcers/data-sources-collections-fields.d.ts +0 -19
- package/dist/server/resourcers/data-sources-collections-fields.js +0 -140
- package/dist/server/resourcers/data-sources-collections.d.ts +0 -16
- package/dist/server/resourcers/data-sources-collections.js +0 -115
- package/dist/server/resourcers/data-sources-resources.d.ts +0 -17
- package/dist/server/resourcers/data-sources-resources.js +0 -97
- package/dist/server/resourcers/data-sources-roles.d.ts +0 -16
- package/dist/server/resourcers/data-sources-roles.js +0 -98
- package/dist/server/resourcers/roles-data-sources-collections.d.ts +0 -15
- package/dist/server/resourcers/roles-data-sources-collections.js +0 -111
- package/dist/server/services/full-data-repository.d.ts +0 -16
- package/dist/server/services/full-data-repository.js +0 -60
- package/dist/server/services/type-interface-map.d.ts +0 -191
- package/dist/server/services/type-interface-map.js +0 -253
- package/dist/server/utils.d.ts +0 -9
- package/dist/server/utils.js +0 -47
|
@@ -1,60 +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 full_data_repository_exports = {};
|
|
28
|
-
__export(full_data_repository_exports, {
|
|
29
|
-
FullDataRepository: () => FullDataRepository
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(full_data_repository_exports);
|
|
32
|
-
class FullDataRepository {
|
|
33
|
-
data = [];
|
|
34
|
-
constructor(data) {
|
|
35
|
-
this.data = data;
|
|
36
|
-
}
|
|
37
|
-
async count(countOptions) {
|
|
38
|
-
return this.data.length;
|
|
39
|
-
}
|
|
40
|
-
async find(options) {
|
|
41
|
-
const { limit, offset } = options || {};
|
|
42
|
-
let results = this.data;
|
|
43
|
-
if (offset) {
|
|
44
|
-
results = results.slice(offset);
|
|
45
|
-
}
|
|
46
|
-
if (limit) {
|
|
47
|
-
results = results.slice(0, limit);
|
|
48
|
-
}
|
|
49
|
-
return results;
|
|
50
|
-
}
|
|
51
|
-
async findAndCount(options = {}) {
|
|
52
|
-
const count = await this.count();
|
|
53
|
-
const results = count ? await this.find(options) : [];
|
|
54
|
-
return [results, count];
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
58
|
-
0 && (module.exports = {
|
|
59
|
-
FullDataRepository
|
|
60
|
-
});
|
|
@@ -1,191 +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
|
-
declare const typeInterfaceMap: {
|
|
10
|
-
array: string;
|
|
11
|
-
belongsTo: string;
|
|
12
|
-
belongsToMany: string;
|
|
13
|
-
boolean: () => {
|
|
14
|
-
interface: string;
|
|
15
|
-
uiSchema: {
|
|
16
|
-
type: string;
|
|
17
|
-
'x-component': string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
context: string;
|
|
21
|
-
date: () => {
|
|
22
|
-
interface: string;
|
|
23
|
-
uiSchema: {
|
|
24
|
-
'x-component': string;
|
|
25
|
-
'x-component-props': {
|
|
26
|
-
dateFormat: string;
|
|
27
|
-
showTime: boolean;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
hasMany: string;
|
|
32
|
-
hasOne: string;
|
|
33
|
-
json: () => {
|
|
34
|
-
interface: string;
|
|
35
|
-
uiSchema: {
|
|
36
|
-
'x-component': string;
|
|
37
|
-
'x-component-props': {
|
|
38
|
-
autoSize: {
|
|
39
|
-
minRows: number;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
default: any;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
jsonb: () => {
|
|
46
|
-
interface: string;
|
|
47
|
-
uiSchema: {
|
|
48
|
-
'x-component': string;
|
|
49
|
-
'x-component-props': {
|
|
50
|
-
autoSize: {
|
|
51
|
-
minRows: number;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
default: any;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
integer: () => {
|
|
58
|
-
interface: string;
|
|
59
|
-
uiSchema: {
|
|
60
|
-
type: string;
|
|
61
|
-
'x-component': string;
|
|
62
|
-
'x-component-props': {
|
|
63
|
-
stringMode: boolean;
|
|
64
|
-
step: string;
|
|
65
|
-
};
|
|
66
|
-
'x-validator': string;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
bigInt: (columnInfo: any) => {
|
|
70
|
-
interface: string;
|
|
71
|
-
uiSchema: {
|
|
72
|
-
'x-component': string;
|
|
73
|
-
'x-component-props': {
|
|
74
|
-
style: {
|
|
75
|
-
width: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
float: () => {
|
|
81
|
-
interface: string;
|
|
82
|
-
uiSchema: {
|
|
83
|
-
type: string;
|
|
84
|
-
'x-component': string;
|
|
85
|
-
'x-component-props': {
|
|
86
|
-
stringMode: boolean;
|
|
87
|
-
step: string;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
double: () => {
|
|
92
|
-
interface: string;
|
|
93
|
-
uiSchema: {
|
|
94
|
-
type: string;
|
|
95
|
-
'x-component': string;
|
|
96
|
-
'x-component-props': {
|
|
97
|
-
stringMode: boolean;
|
|
98
|
-
step: string;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
real: () => {
|
|
103
|
-
interface: string;
|
|
104
|
-
uiSchema: {
|
|
105
|
-
type: string;
|
|
106
|
-
'x-component': string;
|
|
107
|
-
'x-component-props': {
|
|
108
|
-
stringMode: boolean;
|
|
109
|
-
step: string;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
-
decimal: () => {
|
|
114
|
-
interface: string;
|
|
115
|
-
uiSchema: {
|
|
116
|
-
type: string;
|
|
117
|
-
'x-component': string;
|
|
118
|
-
'x-component-props': {
|
|
119
|
-
stringMode: boolean;
|
|
120
|
-
step: string;
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
password: () => {
|
|
125
|
-
interface: string;
|
|
126
|
-
hidden: boolean;
|
|
127
|
-
uiSchema: {
|
|
128
|
-
type: string;
|
|
129
|
-
'x-component': string;
|
|
130
|
-
};
|
|
131
|
-
};
|
|
132
|
-
radio: string;
|
|
133
|
-
set: string;
|
|
134
|
-
sort: string;
|
|
135
|
-
string: () => {
|
|
136
|
-
interface: string;
|
|
137
|
-
uiSchema: {
|
|
138
|
-
'x-component': string;
|
|
139
|
-
'x-component-props': {
|
|
140
|
-
style: {
|
|
141
|
-
width: string;
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
text: () => {
|
|
147
|
-
interface: string;
|
|
148
|
-
uiSchema: {
|
|
149
|
-
type: string;
|
|
150
|
-
'x-component': string;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
153
|
-
time: () => {
|
|
154
|
-
interface: string;
|
|
155
|
-
uiSchema: {
|
|
156
|
-
type: string;
|
|
157
|
-
'x-component': string;
|
|
158
|
-
'x-component-props': {
|
|
159
|
-
format: string;
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
};
|
|
163
|
-
uid: () => {
|
|
164
|
-
interface: string;
|
|
165
|
-
uiSchema: {
|
|
166
|
-
'x-component': string;
|
|
167
|
-
'x-component-props': {
|
|
168
|
-
style: {
|
|
169
|
-
width: string;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
};
|
|
174
|
-
uuid: () => {
|
|
175
|
-
interface: string;
|
|
176
|
-
uiSchema: {
|
|
177
|
-
'x-component': string;
|
|
178
|
-
'x-component-props': {
|
|
179
|
-
style: {
|
|
180
|
-
width: string;
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
};
|
|
184
|
-
};
|
|
185
|
-
virtual: string;
|
|
186
|
-
point: string;
|
|
187
|
-
polygon: string;
|
|
188
|
-
lineString: string;
|
|
189
|
-
circle: string;
|
|
190
|
-
};
|
|
191
|
-
export default typeInterfaceMap;
|
|
@@ -1,253 +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 type_interface_map_exports = {};
|
|
28
|
-
__export(type_interface_map_exports, {
|
|
29
|
-
default: () => type_interface_map_default
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(type_interface_map_exports);
|
|
32
|
-
/* istanbul ignore file -- @preserve */
|
|
33
|
-
const typeInterfaceMap = {
|
|
34
|
-
array: "",
|
|
35
|
-
belongsTo: "",
|
|
36
|
-
belongsToMany: "",
|
|
37
|
-
boolean: () => {
|
|
38
|
-
return {
|
|
39
|
-
interface: "checkbox",
|
|
40
|
-
uiSchema: {
|
|
41
|
-
type: "boolean",
|
|
42
|
-
"x-component": "Checkbox"
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
},
|
|
46
|
-
context: "",
|
|
47
|
-
date: () => {
|
|
48
|
-
return {
|
|
49
|
-
interface: "datetime",
|
|
50
|
-
uiSchema: {
|
|
51
|
-
"x-component": "DatePicker",
|
|
52
|
-
"x-component-props": {
|
|
53
|
-
dateFormat: "YYYY-MM-DD",
|
|
54
|
-
showTime: false
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
hasMany: "",
|
|
60
|
-
hasOne: "",
|
|
61
|
-
json: () => {
|
|
62
|
-
return {
|
|
63
|
-
interface: "json",
|
|
64
|
-
uiSchema: {
|
|
65
|
-
"x-component": "Input.JSON",
|
|
66
|
-
"x-component-props": {
|
|
67
|
-
autoSize: {
|
|
68
|
-
minRows: 5
|
|
69
|
-
// maxRows: 20,
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
default: null
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
},
|
|
76
|
-
jsonb: () => {
|
|
77
|
-
return {
|
|
78
|
-
interface: "json",
|
|
79
|
-
uiSchema: {
|
|
80
|
-
"x-component": "Input.JSON",
|
|
81
|
-
"x-component-props": {
|
|
82
|
-
autoSize: {
|
|
83
|
-
minRows: 5
|
|
84
|
-
// maxRows: 20,
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
default: null
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
},
|
|
91
|
-
integer: () => ({
|
|
92
|
-
interface: "integer",
|
|
93
|
-
// name,
|
|
94
|
-
uiSchema: {
|
|
95
|
-
type: "number",
|
|
96
|
-
// title,
|
|
97
|
-
"x-component": "InputNumber",
|
|
98
|
-
"x-component-props": {
|
|
99
|
-
stringMode: true,
|
|
100
|
-
step: "1"
|
|
101
|
-
},
|
|
102
|
-
"x-validator": "integer"
|
|
103
|
-
}
|
|
104
|
-
}),
|
|
105
|
-
bigInt: (columnInfo) => {
|
|
106
|
-
return {
|
|
107
|
-
interface: "integer",
|
|
108
|
-
uiSchema: {
|
|
109
|
-
"x-component": "InputNumber",
|
|
110
|
-
"x-component-props": {
|
|
111
|
-
style: {
|
|
112
|
-
width: "100%"
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
},
|
|
118
|
-
float: () => {
|
|
119
|
-
return {
|
|
120
|
-
interface: "number",
|
|
121
|
-
uiSchema: {
|
|
122
|
-
type: "number",
|
|
123
|
-
// title,
|
|
124
|
-
"x-component": "InputNumber",
|
|
125
|
-
"x-component-props": {
|
|
126
|
-
stringMode: true,
|
|
127
|
-
step: "1"
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
};
|
|
131
|
-
},
|
|
132
|
-
double: () => {
|
|
133
|
-
return {
|
|
134
|
-
interface: "number",
|
|
135
|
-
uiSchema: {
|
|
136
|
-
type: "number",
|
|
137
|
-
// title,
|
|
138
|
-
"x-component": "InputNumber",
|
|
139
|
-
"x-component-props": {
|
|
140
|
-
stringMode: true,
|
|
141
|
-
step: "1"
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
},
|
|
146
|
-
real: () => {
|
|
147
|
-
return {
|
|
148
|
-
interface: "number",
|
|
149
|
-
uiSchema: {
|
|
150
|
-
type: "number",
|
|
151
|
-
// title,
|
|
152
|
-
"x-component": "InputNumber",
|
|
153
|
-
"x-component-props": {
|
|
154
|
-
stringMode: true,
|
|
155
|
-
step: "1"
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
},
|
|
160
|
-
decimal: () => {
|
|
161
|
-
return {
|
|
162
|
-
interface: "number",
|
|
163
|
-
uiSchema: {
|
|
164
|
-
type: "number",
|
|
165
|
-
// title,
|
|
166
|
-
"x-component": "InputNumber",
|
|
167
|
-
"x-component-props": {
|
|
168
|
-
stringMode: true,
|
|
169
|
-
step: "1"
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
},
|
|
174
|
-
password: () => ({
|
|
175
|
-
interface: "password",
|
|
176
|
-
hidden: true,
|
|
177
|
-
// name,
|
|
178
|
-
uiSchema: {
|
|
179
|
-
type: "string",
|
|
180
|
-
// title,
|
|
181
|
-
"x-component": "Password"
|
|
182
|
-
}
|
|
183
|
-
}),
|
|
184
|
-
radio: "",
|
|
185
|
-
set: "",
|
|
186
|
-
sort: "",
|
|
187
|
-
string: () => {
|
|
188
|
-
return {
|
|
189
|
-
interface: "input",
|
|
190
|
-
uiSchema: {
|
|
191
|
-
"x-component": "Input",
|
|
192
|
-
"x-component-props": {
|
|
193
|
-
style: {
|
|
194
|
-
width: "100%"
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
};
|
|
199
|
-
},
|
|
200
|
-
text: () => {
|
|
201
|
-
return {
|
|
202
|
-
interface: "textarea",
|
|
203
|
-
// name,
|
|
204
|
-
uiSchema: {
|
|
205
|
-
type: "string",
|
|
206
|
-
"x-component": "Input.TextArea"
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
},
|
|
210
|
-
time: () => ({
|
|
211
|
-
interface: "time",
|
|
212
|
-
// name,
|
|
213
|
-
uiSchema: {
|
|
214
|
-
type: "string",
|
|
215
|
-
"x-component": "TimePicker",
|
|
216
|
-
"x-component-props": {
|
|
217
|
-
format: "HH:mm:ss"
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}),
|
|
221
|
-
uid: () => {
|
|
222
|
-
return {
|
|
223
|
-
interface: "input",
|
|
224
|
-
uiSchema: {
|
|
225
|
-
"x-component": "Input",
|
|
226
|
-
"x-component-props": {
|
|
227
|
-
style: {
|
|
228
|
-
width: "100%"
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
},
|
|
234
|
-
uuid: () => {
|
|
235
|
-
return {
|
|
236
|
-
interface: "input",
|
|
237
|
-
uiSchema: {
|
|
238
|
-
"x-component": "Input",
|
|
239
|
-
"x-component-props": {
|
|
240
|
-
style: {
|
|
241
|
-
width: "100%"
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
};
|
|
246
|
-
},
|
|
247
|
-
virtual: "",
|
|
248
|
-
point: "",
|
|
249
|
-
polygon: "",
|
|
250
|
-
lineString: "",
|
|
251
|
-
circle: ""
|
|
252
|
-
};
|
|
253
|
-
var type_interface_map_default = typeInterfaceMap;
|
package/dist/server/utils.d.ts
DELETED
|
@@ -1,9 +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
|
-
export declare function mergeOptions(fieldOptions: any, modelOptions: any): any;
|
package/dist/server/utils.js
DELETED
|
@@ -1,47 +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 utils_exports = {};
|
|
28
|
-
__export(utils_exports, {
|
|
29
|
-
mergeOptions: () => mergeOptions
|
|
30
|
-
});
|
|
31
|
-
module.exports = __toCommonJS(utils_exports);
|
|
32
|
-
function mergeOptions(fieldOptions, modelOptions) {
|
|
33
|
-
const newOptions = {
|
|
34
|
-
...fieldOptions,
|
|
35
|
-
...modelOptions
|
|
36
|
-
};
|
|
37
|
-
for (const key of Object.keys(modelOptions)) {
|
|
38
|
-
if (modelOptions[key] === null && fieldOptions[key]) {
|
|
39
|
-
newOptions[key] = fieldOptions[key];
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return newOptions;
|
|
43
|
-
}
|
|
44
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
-
0 && (module.exports = {
|
|
46
|
-
mergeOptions
|
|
47
|
-
});
|