@wibetter/json-utils 7.0.3 → 7.0.5
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/index.esm.js +356 -768
- package/dist/index.esm.min.js +1 -1474
- package/dist/index.js +1 -1662
- package/dist/index.js.LICENSE.txt +2 -2
- package/dist/types/data/TypeDataList.d.ts +112 -112
- package/dist/types/data/initSchemaEntity/Api.d.ts +38 -38
- package/dist/types/data/initSchemaEntity/Array.d.ts +11 -11
- package/dist/types/data/initSchemaEntity/Boolean.d.ts +4 -4
- package/dist/types/data/initSchemaEntity/BoxStyle.d.ts +20 -20
- package/dist/types/data/initSchemaEntity/Cascader.d.ts +15 -15
- package/dist/types/data/initSchemaEntity/Checkbox.d.ts +8 -8
- package/dist/types/data/initSchemaEntity/CodeArea.d.ts +5 -5
- package/dist/types/data/initSchemaEntity/Color.d.ts +4 -4
- package/dist/types/data/initSchemaEntity/DataSource.d.ts +58 -58
- package/dist/types/data/initSchemaEntity/Date.d.ts +5 -5
- package/dist/types/data/initSchemaEntity/DateTime.d.ts +5 -5
- package/dist/types/data/initSchemaEntity/DynamicData.d.ts +86 -86
- package/dist/types/data/initSchemaEntity/EmptyArray.d.ts +7 -7
- package/dist/types/data/initSchemaEntity/EmptyObject.d.ts +4 -4
- package/dist/types/data/initSchemaEntity/Event.d.ts +74 -74
- package/dist/types/data/initSchemaEntity/FuncBody.d.ts +5 -5
- package/dist/types/data/initSchemaEntity/HtmlArea.d.ts +5 -5
- package/dist/types/data/initSchemaEntity/IMG.d.ts +7 -7
- package/dist/types/data/initSchemaEntity/Input.d.ts +5 -5
- package/dist/types/data/initSchemaEntity/InputImage.d.ts +5 -5
- package/dist/types/data/initSchemaEntity/JSONSchema.d.ts +45 -45
- package/dist/types/data/initSchemaEntity/Json.d.ts +4 -4
- package/dist/types/data/initSchemaEntity/Number.d.ts +6 -6
- package/dist/types/data/initSchemaEntity/Object.d.ts +12 -12
- package/dist/types/data/initSchemaEntity/PaddingMargin.d.ts +26 -26
- package/dist/types/data/initSchemaEntity/Quantity.d.ts +22 -22
- package/dist/types/data/initSchemaEntity/Radio.d.ts +7 -7
- package/dist/types/data/initSchemaEntity/Select.d.ts +7 -7
- package/dist/types/data/initSchemaEntity/TextEditor.d.ts +5 -5
- package/dist/types/data/initSchemaEntity/Textarea.d.ts +5 -5
- package/dist/types/data/initSchemaEntity/Time.d.ts +5 -5
- package/dist/types/data/initSchemaEntity/URL.d.ts +5 -5
- package/dist/types/function/getJsonDataByKeyRoute.d.ts +1 -5
- package/dist/types/function/getSchemaByIndexRoute.d.ts +1 -5
- package/dist/types/function/getSchemaByKeyRoute.d.ts +1 -5
- package/dist/types/function/indexRoute2keyRoute.d.ts +1 -4
- package/dist/types/function/json2treeData.d.ts +2 -8
- package/dist/types/function/keyRoute2indexRoute.d.ts +1 -4
- package/dist/types/function/metaElemAnalyzer.d.ts +1 -4
- package/dist/types/utils/index.d.ts +2 -8
- package/dist/types/utils/jsonData.d.ts +1 -3
- package/dist/types/utils/jsonSchema.d.ts +6 -21
- package/package.json +1 -1
|
@@ -8,98 +8,98 @@
|
|
|
8
8
|
* propertyOrder:按序存放所有子字段的key值(排序功能)
|
|
9
9
|
* */
|
|
10
10
|
export declare const initDynamicData: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
config: {
|
|
25
|
-
title: string;
|
|
26
|
-
type: string;
|
|
27
|
-
description: string;
|
|
28
|
-
isRequired: boolean;
|
|
29
|
-
properties: {
|
|
30
|
-
url: {
|
|
31
|
-
type: string;
|
|
32
|
-
title: string;
|
|
33
|
-
default: string;
|
|
34
|
-
description: string;
|
|
35
|
-
isRequired: boolean;
|
|
11
|
+
type: string;
|
|
12
|
+
title: string;
|
|
13
|
+
isContainer: boolean;
|
|
14
|
+
properties: {
|
|
15
|
+
type: {
|
|
16
|
+
default: string;
|
|
17
|
+
type: string;
|
|
18
|
+
options: {
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}[];
|
|
22
|
+
title: string;
|
|
36
23
|
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
24
|
+
config: {
|
|
25
|
+
title: string;
|
|
26
|
+
type: string;
|
|
27
|
+
description: string;
|
|
28
|
+
isRequired: boolean;
|
|
29
|
+
properties: {
|
|
30
|
+
url: {
|
|
31
|
+
type: string;
|
|
32
|
+
title: string;
|
|
33
|
+
default: string;
|
|
34
|
+
description: string;
|
|
35
|
+
isRequired: boolean;
|
|
36
|
+
};
|
|
37
|
+
method: {
|
|
38
|
+
type: string;
|
|
39
|
+
title: string;
|
|
40
|
+
default: string;
|
|
41
|
+
options: {
|
|
42
|
+
label: string;
|
|
43
|
+
value: string;
|
|
44
|
+
}[];
|
|
45
|
+
isRequired: boolean;
|
|
46
|
+
};
|
|
47
|
+
headers: {
|
|
48
|
+
type: string;
|
|
49
|
+
title: string;
|
|
50
|
+
default: string;
|
|
51
|
+
description: string;
|
|
52
|
+
};
|
|
53
|
+
data: {
|
|
54
|
+
type: string;
|
|
55
|
+
title: string;
|
|
56
|
+
default: string;
|
|
57
|
+
description: string;
|
|
58
|
+
};
|
|
59
|
+
dataType: {
|
|
60
|
+
type: string;
|
|
61
|
+
title: string;
|
|
62
|
+
default: string;
|
|
63
|
+
options: {
|
|
64
|
+
label: string;
|
|
65
|
+
value: string;
|
|
66
|
+
}[];
|
|
67
|
+
};
|
|
68
|
+
cache: {
|
|
69
|
+
type: string;
|
|
70
|
+
title: string;
|
|
71
|
+
default: undefined;
|
|
72
|
+
description: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
propertyOrder: string[];
|
|
52
76
|
};
|
|
53
77
|
data: {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
dataType: {
|
|
60
|
-
type: string;
|
|
61
|
-
title: string;
|
|
62
|
-
default: string;
|
|
63
|
-
options: {
|
|
64
|
-
label: string;
|
|
65
|
-
value: string;
|
|
66
|
-
}[];
|
|
78
|
+
title: string;
|
|
79
|
+
type: string;
|
|
80
|
+
default: string;
|
|
81
|
+
description: string;
|
|
82
|
+
isRequired: boolean;
|
|
67
83
|
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
84
|
+
localFilter: {
|
|
85
|
+
title: string;
|
|
86
|
+
type: string;
|
|
87
|
+
default: string;
|
|
88
|
+
description: string;
|
|
89
|
+
isRequired: boolean;
|
|
73
90
|
};
|
|
74
|
-
};
|
|
75
|
-
propertyOrder: string[];
|
|
76
91
|
};
|
|
77
|
-
|
|
78
|
-
title: string;
|
|
79
|
-
type: string;
|
|
80
|
-
default: string;
|
|
81
|
-
description: string;
|
|
82
|
-
isRequired: boolean;
|
|
83
|
-
};
|
|
84
|
-
localFilter: {
|
|
85
|
-
title: string;
|
|
86
|
-
type: string;
|
|
87
|
-
default: string;
|
|
88
|
-
description: string;
|
|
89
|
-
isRequired: boolean;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
propertyOrder: string[];
|
|
92
|
+
propertyOrder: string[];
|
|
93
93
|
};
|
|
94
94
|
export declare const EmptyDynamicDataCont: {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
95
|
+
type: string;
|
|
96
|
+
config: {
|
|
97
|
+
url: string;
|
|
98
|
+
method: string;
|
|
99
|
+
headers: {};
|
|
100
|
+
data: {};
|
|
101
|
+
dataType: string;
|
|
102
|
+
};
|
|
103
|
+
data: string;
|
|
104
|
+
localFilter: string;
|
|
105
105
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const EmptyArray: {
|
|
2
|
-
type: string;
|
|
3
|
-
title: string;
|
|
4
|
-
description: string;
|
|
5
|
-
default: never[];
|
|
6
|
-
items: {
|
|
7
2
|
type: string;
|
|
8
3
|
title: string;
|
|
9
4
|
description: string;
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
default: never[];
|
|
6
|
+
items: {
|
|
7
|
+
type: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
properties: {};
|
|
11
|
+
};
|
|
12
12
|
};
|
|
@@ -8,89 +8,89 @@
|
|
|
8
8
|
* propertyOrder:按序存放所有子字段的key值(排序功能)
|
|
9
9
|
* */
|
|
10
10
|
export declare const initEventDataV1: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
type: string;
|
|
12
|
+
title: string;
|
|
13
|
+
isContainer: boolean;
|
|
14
|
+
properties: {
|
|
15
|
+
type: {
|
|
16
|
+
default: string;
|
|
17
|
+
type: string;
|
|
18
|
+
options: {
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}[];
|
|
22
|
+
title: string;
|
|
23
|
+
readOnlyInJson: boolean;
|
|
24
|
+
};
|
|
25
|
+
filter: {
|
|
26
|
+
type: string;
|
|
27
|
+
default: string;
|
|
28
|
+
title: string;
|
|
29
|
+
};
|
|
24
30
|
};
|
|
25
|
-
|
|
26
|
-
type: string;
|
|
27
|
-
default: string;
|
|
28
|
-
title: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
propertyOrder: string[];
|
|
31
|
+
propertyOrder: string[];
|
|
32
32
|
};
|
|
33
33
|
/** 新版EventData
|
|
34
34
|
* type: emit 的默认数据 */
|
|
35
35
|
export declare const initEventData: {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
36
|
+
type: string;
|
|
37
|
+
title: string;
|
|
38
|
+
isContainer: boolean;
|
|
39
|
+
properties: {
|
|
40
|
+
type: {
|
|
41
|
+
default: string;
|
|
42
|
+
type: string;
|
|
43
|
+
options: {
|
|
44
|
+
label: string;
|
|
45
|
+
value: string;
|
|
46
|
+
}[];
|
|
47
|
+
title: string;
|
|
48
|
+
};
|
|
49
|
+
trigger: {
|
|
50
|
+
type: string;
|
|
51
|
+
default: string;
|
|
52
|
+
title: string;
|
|
53
|
+
description: string;
|
|
54
|
+
placeholder: string;
|
|
55
|
+
};
|
|
56
|
+
eventData: {
|
|
57
|
+
title: string;
|
|
58
|
+
type: string;
|
|
59
|
+
default: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
61
62
|
};
|
|
62
|
-
|
|
63
|
-
propertyOrder: string[];
|
|
63
|
+
propertyOrder: string[];
|
|
64
64
|
};
|
|
65
65
|
/** 新版EventData
|
|
66
66
|
* type: on 的默认数据 */
|
|
67
67
|
export declare const initEventDataTypeON: {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
68
|
+
type: string;
|
|
69
|
+
title: string;
|
|
70
|
+
isContainer: boolean;
|
|
71
|
+
properties: {
|
|
72
|
+
type: {
|
|
73
|
+
default: string;
|
|
74
|
+
type: string;
|
|
75
|
+
options: {
|
|
76
|
+
label: string;
|
|
77
|
+
value: string;
|
|
78
|
+
}[];
|
|
79
|
+
title: string;
|
|
80
|
+
};
|
|
81
|
+
register: {
|
|
82
|
+
type: string;
|
|
83
|
+
default: string;
|
|
84
|
+
title: string;
|
|
85
|
+
description: string;
|
|
86
|
+
placeholder: string;
|
|
87
|
+
};
|
|
88
|
+
actionFunc: {
|
|
89
|
+
title: string;
|
|
90
|
+
type: string;
|
|
91
|
+
default: string;
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
93
94
|
};
|
|
94
|
-
|
|
95
|
-
propertyOrder: string[];
|
|
95
|
+
propertyOrder: string[];
|
|
96
96
|
};
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* 用户可以使用此组件上传图片,最后返回对应的图片资源地址
|
|
3
3
|
* */
|
|
4
4
|
export declare const initIMGData: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
title: string;
|
|
6
|
+
type: string;
|
|
7
|
+
default: string;
|
|
8
|
+
description: string;
|
|
9
|
+
imgWidth: number;
|
|
10
|
+
imgHeight: number;
|
|
11
|
+
imgRatioReadOnly: boolean;
|
|
12
12
|
};
|
|
@@ -8,53 +8,53 @@
|
|
|
8
8
|
* propertyOrder:按序存放所有子字段的key值(排序功能)
|
|
9
9
|
* */
|
|
10
10
|
export declare const initJSONSchemaData: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
11
|
+
type: string;
|
|
12
|
+
title: string;
|
|
13
|
+
properties: {
|
|
14
|
+
func: {
|
|
15
|
+
type: string;
|
|
16
|
+
title: string;
|
|
17
|
+
properties: {
|
|
18
|
+
a: {
|
|
19
|
+
title: string;
|
|
20
|
+
type: string;
|
|
21
|
+
default: string;
|
|
22
|
+
description: string;
|
|
23
|
+
placeholder: string;
|
|
24
|
+
isRequired: boolean;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
propertyOrder: string[];
|
|
25
28
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
29
|
+
style: {
|
|
30
|
+
type: string;
|
|
31
|
+
title: string;
|
|
32
|
+
properties: {
|
|
33
|
+
b: {
|
|
34
|
+
title: string;
|
|
35
|
+
type: string;
|
|
36
|
+
default: string;
|
|
37
|
+
description: string;
|
|
38
|
+
placeholder: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
propertyOrder: string[];
|
|
39
42
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
43
|
+
data: {
|
|
44
|
+
type: string;
|
|
45
|
+
title: string;
|
|
46
|
+
properties: {
|
|
47
|
+
c: {
|
|
48
|
+
title: string;
|
|
49
|
+
type: string;
|
|
50
|
+
default: string;
|
|
51
|
+
description: string;
|
|
52
|
+
placeholder: string;
|
|
53
|
+
isRequired: boolean;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
propertyOrder: string[];
|
|
54
57
|
};
|
|
55
|
-
};
|
|
56
|
-
propertyOrder: string[];
|
|
57
58
|
};
|
|
58
|
-
|
|
59
|
-
propertyOrder: string[];
|
|
59
|
+
propertyOrder: string[];
|
|
60
60
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const initNumberData: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
type: string;
|
|
3
|
+
title: string;
|
|
4
|
+
default: number;
|
|
5
|
+
minimum: number;
|
|
6
|
+
maximum: number;
|
|
7
|
+
description: string;
|
|
8
8
|
};
|
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
* propertyOrder:按序存放所有子字段的key值(排序功能)
|
|
9
9
|
* */
|
|
10
10
|
export declare const initObjectData: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
type: string;
|
|
12
|
+
title: string;
|
|
13
|
+
description: string;
|
|
14
|
+
properties: {
|
|
15
|
+
a: {
|
|
16
|
+
type: string;
|
|
17
|
+
title: string;
|
|
18
|
+
default: string;
|
|
19
|
+
description: string;
|
|
20
|
+
placeholder: string;
|
|
21
|
+
};
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
-
propertyOrder: string[];
|
|
23
|
+
propertyOrder: string[];
|
|
24
24
|
};
|
|
@@ -8,31 +8,31 @@
|
|
|
8
8
|
* propertyOrder:按序存放所有子字段的key值(排序功能)
|
|
9
9
|
* */
|
|
10
10
|
export declare const initPaddingMarginData: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
11
|
+
type: string;
|
|
12
|
+
title: string;
|
|
13
|
+
isContainer: boolean;
|
|
14
|
+
properties: {
|
|
15
|
+
margin: {
|
|
16
|
+
title: string;
|
|
17
|
+
type: string;
|
|
18
|
+
default: string;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
padding: {
|
|
22
|
+
title: string;
|
|
23
|
+
type: string;
|
|
24
|
+
default: string;
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
quantity: {
|
|
28
|
+
type: string;
|
|
29
|
+
default: string;
|
|
30
|
+
options: {
|
|
31
|
+
label: string;
|
|
32
|
+
value: string;
|
|
33
|
+
}[];
|
|
34
|
+
title: string;
|
|
35
|
+
};
|
|
20
36
|
};
|
|
21
|
-
|
|
22
|
-
title: string;
|
|
23
|
-
type: string;
|
|
24
|
-
default: string;
|
|
25
|
-
description: string;
|
|
26
|
-
};
|
|
27
|
-
quantity: {
|
|
28
|
-
type: string;
|
|
29
|
-
default: string;
|
|
30
|
-
options: {
|
|
31
|
-
label: string;
|
|
32
|
-
value: string;
|
|
33
|
-
}[];
|
|
34
|
-
title: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
propertyOrder: string[];
|
|
37
|
+
propertyOrder: string[];
|
|
38
38
|
};
|