@wibetter/json-utils 7.0.2 → 7.0.3

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