@nocobase/plugin-field-code 2.1.0-beta.32 → 2.1.0-beta.34
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/client-v2.d.ts +2 -0
- package/client-v2.js +1 -0
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.js +1 -1
- package/dist/client-v2/176.45d20379a03bad30.js +10 -0
- package/dist/client-v2/214.107d983429dc5ea5.js +10 -0
- package/dist/client-v2/299.668132ff7ded6ae4.js +10 -0
- package/dist/client-v2/613.7b65107f9b244b17.js +10 -0
- package/dist/client-v2/707.17a07fdd58ee4bee.js +10 -0
- package/dist/client-v2/815.aa4bc8d658a3f27f.js +10 -0
- package/dist/client-v2/index.d.ts +11 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/client-v2/interface.d.ts +76 -0
- package/dist/client-v2/locale.d.ts +10 -0
- package/dist/{client → client-v2}/models/CodeFieldModel.d.ts +2 -1
- package/dist/{client → client-v2}/models/DisplayCodeFieldModel.d.ts +2 -1
- package/dist/client-v2/models/index.d.ts +10 -0
- package/dist/client-v2/plugin.d.ts +14 -0
- package/dist/externalVersion.js +6 -5
- package/package.json +3 -2
- /package/dist/{client → client-v2}/CodeEditor.d.ts +0 -0
- /package/dist/{client/models/settings.d.ts → client-v2/codeFieldSettings.d.ts} +0 -0
- /package/dist/{client/languages/index.d.ts → client-v2/languages.d.ts} +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
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 { CollectionFieldInterface } from '@nocobase/client-v2';
|
|
10
|
+
export declare class CodeFieldInterface extends CollectionFieldInterface {
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
group: string;
|
|
14
|
+
order: number;
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
sortable: boolean;
|
|
18
|
+
default: {
|
|
19
|
+
interface: string;
|
|
20
|
+
type: string;
|
|
21
|
+
uiSchema: {
|
|
22
|
+
type: string;
|
|
23
|
+
'x-component': string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
availableTypes: string[];
|
|
27
|
+
filterable: {
|
|
28
|
+
operators: ({
|
|
29
|
+
label: string;
|
|
30
|
+
value: string;
|
|
31
|
+
selected: boolean;
|
|
32
|
+
schema: {
|
|
33
|
+
type: string;
|
|
34
|
+
'x-component': string;
|
|
35
|
+
};
|
|
36
|
+
noValue?: undefined;
|
|
37
|
+
} | {
|
|
38
|
+
label: string;
|
|
39
|
+
value: string;
|
|
40
|
+
schema: {
|
|
41
|
+
type: string;
|
|
42
|
+
'x-component': string;
|
|
43
|
+
};
|
|
44
|
+
selected?: undefined;
|
|
45
|
+
noValue?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
label: string;
|
|
48
|
+
value: string;
|
|
49
|
+
noValue: boolean;
|
|
50
|
+
schema: {
|
|
51
|
+
type: string;
|
|
52
|
+
'x-component': string;
|
|
53
|
+
};
|
|
54
|
+
selected?: undefined;
|
|
55
|
+
})[];
|
|
56
|
+
};
|
|
57
|
+
titleUsable: boolean;
|
|
58
|
+
properties: {
|
|
59
|
+
'uiSchema.x-component-props.language': {
|
|
60
|
+
type: string;
|
|
61
|
+
title: string;
|
|
62
|
+
'x-decorator': string;
|
|
63
|
+
'x-component': string;
|
|
64
|
+
'x-component-props': {
|
|
65
|
+
showSearch: boolean;
|
|
66
|
+
allowClear: boolean;
|
|
67
|
+
placeholder: string;
|
|
68
|
+
};
|
|
69
|
+
enum: {
|
|
70
|
+
label: string;
|
|
71
|
+
value: string;
|
|
72
|
+
}[];
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -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
|
+
export declare function useT(): (str: string) => string;
|
|
10
|
+
export declare function tExpr(key: string): string;
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import { FieldModel } from '@nocobase/client';
|
|
10
|
+
import { FieldModel } from '@nocobase/client-v2';
|
|
11
11
|
export declare class CodeFieldModel extends FieldModel {
|
|
12
|
+
props: Record<string, any>;
|
|
12
13
|
render(): React.JSX.Element;
|
|
13
14
|
}
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import { FieldModel } from '@nocobase/client';
|
|
10
|
+
import { FieldModel } from '@nocobase/client-v2';
|
|
11
11
|
export declare class DisplayCodeFieldModel extends FieldModel {
|
|
12
|
+
props: Record<string, any>;
|
|
12
13
|
render(): React.JSX.Element;
|
|
13
14
|
}
|
|
@@ -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
|
+
export { CodeFieldModel } from './CodeFieldModel';
|
|
10
|
+
export { DisplayCodeFieldModel } from './DisplayCodeFieldModel';
|
|
@@ -0,0 +1,14 @@
|
|
|
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 { Application, Plugin } from '@nocobase/client-v2';
|
|
10
|
+
export declare class PluginFieldCodeClient extends Plugin<any, Application> {
|
|
11
|
+
app: any;
|
|
12
|
+
load(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
export default PluginFieldCodeClient;
|
package/dist/externalVersion.js
CHANGED
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"react": "18.2.0",
|
|
12
|
-
"antd-style": "3.7.1",
|
|
13
12
|
"@formily/react": "2.3.7",
|
|
14
|
-
"@nocobase/client": "2.1.0-beta.
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
13
|
+
"@nocobase/client": "2.1.0-beta.34",
|
|
14
|
+
"antd-style": "3.7.1",
|
|
15
|
+
"antd": "5.24.2",
|
|
16
|
+
"@nocobase/client-v2": "2.1.0-beta.34",
|
|
17
|
+
"@nocobase/flow-engine": "2.1.0-beta.34",
|
|
18
|
+
"@nocobase/server": "2.1.0-beta.34"
|
|
18
19
|
};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "数据表字段:代码",
|
|
5
5
|
"description": "For code editing and highlighting, supporting Java, JavaScript, Python, SQL and other languages.",
|
|
6
6
|
"description.zh-CN": "用于代码编辑和高亮显示,支持 Java、JavaScript、Python、SQL 等语言。",
|
|
7
|
-
"version": "2.1.0-beta.
|
|
7
|
+
"version": "2.1.0-beta.34",
|
|
8
8
|
"main": "dist/server/index.js",
|
|
9
9
|
"nocobase": {
|
|
10
10
|
"supportedVersions": [
|
|
@@ -29,6 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@nocobase/client": "2.x",
|
|
32
|
+
"@nocobase/client-v2": "2.x",
|
|
32
33
|
"@nocobase/server": "2.x",
|
|
33
34
|
"@nocobase/test": "2.x"
|
|
34
35
|
},
|
|
@@ -36,5 +37,5 @@
|
|
|
36
37
|
"Collection fields"
|
|
37
38
|
],
|
|
38
39
|
"license": "Apache-2.0",
|
|
39
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "ca804833299c547f8d49f8d58f73273a4bfcd03c"
|
|
40
41
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|