@douyinfe/semi-foundation 2.72.2-alpha.1 → 2.72.2-alpha.2
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/jsonViewer/jsonViewer.scss +6 -1
- package/lib/cjs/jsonViewer/jsonViewer.css +6 -0
- package/lib/cjs/jsonViewer/jsonViewer.scss +6 -1
- package/lib/cjs/overflowList/constants.d.ts +1 -1
- package/lib/cjs/tree/treeUtil.d.ts +1 -1
- package/lib/cjs/upload/constants.d.ts +1 -1
- package/lib/es/jsonViewer/jsonViewer.css +6 -0
- package/lib/es/jsonViewer/jsonViewer.scss +6 -1
- package/lib/es/overflowList/constants.d.ts +1 -1
- package/lib/es/tree/treeUtil.d.ts +1 -1
- package/lib/es/upload/constants.d.ts +1 -1
- package/package.json +4 -4
|
@@ -82,6 +82,7 @@ $module: #{$prefix}-json-viewer;
|
|
|
82
82
|
color: $color-json-viewer-line-number;
|
|
83
83
|
text-align: center;
|
|
84
84
|
width: 50px;
|
|
85
|
+
user-select: none;
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
&-content-container {
|
|
@@ -196,5 +197,9 @@ $module: #{$prefix}-json-viewer;
|
|
|
196
197
|
cursor: pointer;
|
|
197
198
|
}
|
|
198
199
|
|
|
199
|
-
|
|
200
|
+
&-error {
|
|
201
|
+
text-decoration: underline wavy var(--semi-color-danger);
|
|
202
|
+
text-decoration-thickness: 1px;
|
|
203
|
+
text-underline-position: under;
|
|
204
|
+
}
|
|
200
205
|
}
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
color: rgba(var(--semi-grey-5), 1);
|
|
70
70
|
text-align: center;
|
|
71
71
|
width: 50px;
|
|
72
|
+
user-select: none;
|
|
72
73
|
}
|
|
73
74
|
.semi-json-viewer-content-container {
|
|
74
75
|
scrollbar-width: none; /* 隐藏滚动条(Firefox) */
|
|
@@ -165,4 +166,9 @@
|
|
|
165
166
|
padding: 8px 16px;
|
|
166
167
|
color: var(--semi-color-text-0);
|
|
167
168
|
cursor: pointer;
|
|
169
|
+
}
|
|
170
|
+
.semi-json-viewer-error {
|
|
171
|
+
text-decoration: underline wavy var(--semi-color-danger);
|
|
172
|
+
text-decoration-thickness: 1px;
|
|
173
|
+
text-underline-position: under;
|
|
168
174
|
}
|
|
@@ -82,6 +82,7 @@ $module: #{$prefix}-json-viewer;
|
|
|
82
82
|
color: $color-json-viewer-line-number;
|
|
83
83
|
text-align: center;
|
|
84
84
|
width: 50px;
|
|
85
|
+
user-select: none;
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
&-content-container {
|
|
@@ -196,5 +197,9 @@ $module: #{$prefix}-json-viewer;
|
|
|
196
197
|
cursor: pointer;
|
|
197
198
|
}
|
|
198
199
|
|
|
199
|
-
|
|
200
|
+
&-error {
|
|
201
|
+
text-decoration: underline wavy var(--semi-color-danger);
|
|
202
|
+
text-decoration-thickness: 1px;
|
|
203
|
+
text-underline-position: under;
|
|
204
|
+
}
|
|
200
205
|
}
|
|
@@ -83,6 +83,6 @@ export declare function getValueOrKey(data: any, keyMaps?: KeyMapProps): any;
|
|
|
83
83
|
export declare function normalizeValue(value: any, withObject: boolean, keyMaps?: KeyMapProps): any;
|
|
84
84
|
export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
|
|
85
85
|
export declare function calcDisabledKeys(keyEntities: KeyEntities, keyMaps?: KeyMapProps): Set<string>;
|
|
86
|
-
export declare function calcDropRelativePosition(event: any, treeNode: any):
|
|
86
|
+
export declare function calcDropRelativePosition(event: any, treeNode: any): 1 | -1 | 0;
|
|
87
87
|
export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
|
|
88
88
|
export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
|
|
@@ -18,7 +18,7 @@ declare const strings: {
|
|
|
18
18
|
DRAG_AREA_ILLEGAL: string;
|
|
19
19
|
TRIGGER_AUTO: "auto";
|
|
20
20
|
TRIGGER_CUSTOM: "custom";
|
|
21
|
-
UPLOAD_TRIGGER: ("
|
|
21
|
+
UPLOAD_TRIGGER: ("auto" | "custom")[];
|
|
22
22
|
VALIDATE_STATUS: readonly ["default", "error", "warning", "success"];
|
|
23
23
|
PROMPT_POSITION: readonly ["left", "right", "bottom"];
|
|
24
24
|
};
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
color: rgba(var(--semi-grey-5), 1);
|
|
70
70
|
text-align: center;
|
|
71
71
|
width: 50px;
|
|
72
|
+
user-select: none;
|
|
72
73
|
}
|
|
73
74
|
.semi-json-viewer-content-container {
|
|
74
75
|
scrollbar-width: none; /* 隐藏滚动条(Firefox) */
|
|
@@ -165,4 +166,9 @@
|
|
|
165
166
|
padding: 8px 16px;
|
|
166
167
|
color: var(--semi-color-text-0);
|
|
167
168
|
cursor: pointer;
|
|
169
|
+
}
|
|
170
|
+
.semi-json-viewer-error {
|
|
171
|
+
text-decoration: underline wavy var(--semi-color-danger);
|
|
172
|
+
text-decoration-thickness: 1px;
|
|
173
|
+
text-underline-position: under;
|
|
168
174
|
}
|
|
@@ -82,6 +82,7 @@ $module: #{$prefix}-json-viewer;
|
|
|
82
82
|
color: $color-json-viewer-line-number;
|
|
83
83
|
text-align: center;
|
|
84
84
|
width: 50px;
|
|
85
|
+
user-select: none;
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
&-content-container {
|
|
@@ -196,5 +197,9 @@ $module: #{$prefix}-json-viewer;
|
|
|
196
197
|
cursor: pointer;
|
|
197
198
|
}
|
|
198
199
|
|
|
199
|
-
|
|
200
|
+
&-error {
|
|
201
|
+
text-decoration: underline wavy var(--semi-color-danger);
|
|
202
|
+
text-decoration-thickness: 1px;
|
|
203
|
+
text-underline-position: under;
|
|
204
|
+
}
|
|
200
205
|
}
|
|
@@ -83,6 +83,6 @@ export declare function getValueOrKey(data: any, keyMaps?: KeyMapProps): any;
|
|
|
83
83
|
export declare function normalizeValue(value: any, withObject: boolean, keyMaps?: KeyMapProps): any;
|
|
84
84
|
export declare function updateKeys(keySet: Set<string> | string[], keyEntities: KeyEntities): string[];
|
|
85
85
|
export declare function calcDisabledKeys(keyEntities: KeyEntities, keyMaps?: KeyMapProps): Set<string>;
|
|
86
|
-
export declare function calcDropRelativePosition(event: any, treeNode: any):
|
|
86
|
+
export declare function calcDropRelativePosition(event: any, treeNode: any): 1 | -1 | 0;
|
|
87
87
|
export declare function getDragNodesKeys(key: string, keyEntities: KeyEntities): string[];
|
|
88
88
|
export declare function calcDropActualPosition(pos: string, relativeDropPos: any): any;
|
|
@@ -18,7 +18,7 @@ declare const strings: {
|
|
|
18
18
|
DRAG_AREA_ILLEGAL: string;
|
|
19
19
|
TRIGGER_AUTO: "auto";
|
|
20
20
|
TRIGGER_CUSTOM: "custom";
|
|
21
|
-
UPLOAD_TRIGGER: ("
|
|
21
|
+
UPLOAD_TRIGGER: ("auto" | "custom")[];
|
|
22
22
|
VALIDATE_STATUS: readonly ["default", "error", "warning", "success"];
|
|
23
23
|
PROMPT_POSITION: readonly ["left", "right", "bottom"];
|
|
24
24
|
};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.72.2-alpha.
|
|
3
|
+
"version": "2.72.2-alpha.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
7
7
|
"prepublishOnly": "npm run build:lib"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@douyinfe/semi-animation": "2.72.
|
|
11
|
-
"@douyinfe/semi-json-viewer-core": "2.72.2-alpha.
|
|
10
|
+
"@douyinfe/semi-animation": "2.72.0",
|
|
11
|
+
"@douyinfe/semi-json-viewer-core": "2.72.2-alpha.2",
|
|
12
12
|
"@mdx-js/mdx": "^3.0.1",
|
|
13
13
|
"async-validator": "^3.5.0",
|
|
14
14
|
"classnames": "^2.2.6",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"*.scss",
|
|
30
30
|
"*.css"
|
|
31
31
|
],
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "49ecf64970618ad594ae216fccf6d35b507bc52f",
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
35
35
|
"@babel/preset-env": "^7.15.8",
|