@wibetter/json-utils 6.0.5 → 7.0.1

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 (49) hide show
  1. package/dist/index.esm.js +753 -355
  2. package/dist/index.esm.min.js +1469 -1
  3. package/dist/index.js +1659 -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/function/schema2conditionValue.d.ts +4 -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
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * @wibetter/json-utils v6.0.5
2
+ * @wibetter/json-utils v7.0.1
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Tue Jan 27 2026 17:41:46 GMT+0800 (中国标准时间)
5
+ * build time: Fri Feb 27 2026 11:56:39 GMT+0800 (中国标准时间)
6
6
  * build tool info: https://github.com/wibetter/akfun
7
7
  */
@@ -1,129 +1,129 @@
1
1
  export declare const TypeDataList: any;
2
2
  export declare const EventTypeDataList: {
3
- on: {
3
+ on: {
4
+ type: string;
5
+ title: string;
6
+ isContainer: boolean;
7
+ properties: {
8
+ type: {
9
+ default: string;
4
10
  type: string;
11
+ options: {
12
+ label: string;
13
+ value: string;
14
+ }[];
5
15
  title: string;
6
- isContainer: boolean;
7
- properties: {
8
- type: {
9
- default: string;
10
- type: string;
11
- options: {
12
- label: string;
13
- value: string;
14
- }[];
15
- title: string;
16
- };
17
- register: {
18
- type: string;
19
- default: string;
20
- title: string;
21
- description: string;
22
- placeholder: string;
23
- };
24
- actionFunc: {
25
- title: string;
26
- type: string;
27
- default: string;
28
- description: string;
29
- };
30
- };
31
- propertyOrder: string[];
16
+ };
17
+ register: {
18
+ type: string;
19
+ default: string;
20
+ title: string;
21
+ description: string;
22
+ placeholder: string;
23
+ };
24
+ actionFunc: {
25
+ title: string;
26
+ type: string;
27
+ default: string;
28
+ description: string;
29
+ };
32
30
  };
33
- emit: {
31
+ propertyOrder: string[];
32
+ };
33
+ emit: {
34
+ type: string;
35
+ title: string;
36
+ isContainer: boolean;
37
+ properties: {
38
+ type: {
39
+ default: string;
34
40
  type: string;
41
+ options: {
42
+ label: string;
43
+ value: string;
44
+ }[];
35
45
  title: string;
36
- isContainer: boolean;
37
- properties: {
38
- type: {
39
- default: string;
40
- type: string;
41
- options: {
42
- label: string;
43
- value: string;
44
- }[];
45
- title: string;
46
- };
47
- trigger: {
48
- type: string;
49
- default: string;
50
- title: string;
51
- description: string;
52
- placeholder: string;
53
- };
54
- eventData: {
55
- title: string;
56
- type: string;
57
- default: string;
58
- description: string;
59
- };
60
- };
61
- propertyOrder: string[];
46
+ };
47
+ trigger: {
48
+ type: string;
49
+ default: string;
50
+ title: string;
51
+ description: string;
52
+ placeholder: string;
53
+ };
54
+ eventData: {
55
+ title: string;
56
+ type: string;
57
+ default: string;
58
+ description: string;
59
+ };
62
60
  };
61
+ propertyOrder: string[];
62
+ };
63
63
  };
64
64
  export declare const DataSourceTypeList: {
65
- local: {
65
+ local: {
66
+ type: string;
67
+ title: string;
68
+ isContainer: boolean;
69
+ properties: {
70
+ type: {
71
+ default: string;
66
72
  type: string;
73
+ options: {
74
+ label: string;
75
+ value: string;
76
+ }[];
67
77
  title: string;
68
- isContainer: boolean;
69
- properties: {
70
- type: {
71
- default: string;
72
- type: string;
73
- options: {
74
- label: string;
75
- value: string;
76
- }[];
77
- title: string;
78
- };
79
- data: {
80
- title: string;
81
- placeholder: string;
82
- type: string;
83
- default: string;
84
- description: string;
85
- isRequired: boolean;
86
- };
87
- filter: {
88
- title: string;
89
- type: string;
90
- default: string;
91
- description: string;
92
- isRequired: boolean;
93
- };
94
- };
95
- propertyOrder: string[];
78
+ };
79
+ data: {
80
+ title: string;
81
+ placeholder: string;
82
+ type: string;
83
+ default: string;
84
+ description: string;
85
+ isRequired: boolean;
86
+ };
87
+ filter: {
88
+ title: string;
89
+ type: string;
90
+ default: string;
91
+ description: string;
92
+ isRequired: boolean;
93
+ };
96
94
  };
97
- remote: {
95
+ propertyOrder: string[];
96
+ };
97
+ remote: {
98
+ type: string;
99
+ title: string;
100
+ isContainer: boolean;
101
+ properties: {
102
+ type: {
103
+ type: string;
104
+ default: string;
105
+ options: {
106
+ label: string;
107
+ value: string;
108
+ }[];
109
+ title: string;
110
+ };
111
+ data: {
112
+ type: string;
113
+ title: string;
114
+ placeholder: string;
115
+ default: string;
116
+ isRequired: boolean;
117
+ description: string;
118
+ };
119
+ filter: {
98
120
  type: string;
99
121
  title: string;
100
- isContainer: boolean;
101
- properties: {
102
- type: {
103
- type: string;
104
- default: string;
105
- options: {
106
- label: string;
107
- value: string;
108
- }[];
109
- title: string;
110
- };
111
- data: {
112
- type: string;
113
- title: string;
114
- placeholder: string;
115
- default: string;
116
- isRequired: boolean;
117
- description: string;
118
- };
119
- filter: {
120
- type: string;
121
- title: string;
122
- default: string;
123
- description: string;
124
- isRequired: boolean;
125
- };
126
- };
127
- propertyOrder: string[];
122
+ default: string;
123
+ description: string;
124
+ isRequired: boolean;
125
+ };
128
126
  };
127
+ propertyOrder: string[];
128
+ };
129
129
  };
@@ -1,43 +1,43 @@
1
1
  export declare const initApiData: {
2
- type: string;
3
- title: string;
4
- isContainer: boolean;
5
- properties: {
6
- url: {
7
- type: string;
8
- title: string;
9
- default: string;
10
- description: string;
11
- isRequired: boolean;
12
- };
13
- method: {
14
- type: string;
15
- title: string;
16
- default: string;
17
- options: {
18
- label: string;
19
- value: string;
20
- }[];
21
- isRequired: boolean;
22
- };
23
- headers: {
24
- type: string;
25
- title: string;
26
- default: string;
27
- description: string;
28
- };
29
- data: {
30
- type: string;
31
- title: string;
32
- default: string;
33
- description: string;
34
- };
2
+ type: string;
3
+ title: string;
4
+ isContainer: boolean;
5
+ properties: {
6
+ url: {
7
+ type: string;
8
+ title: string;
9
+ default: string;
10
+ description: string;
11
+ isRequired: boolean;
35
12
  };
36
- propertyOrder: string[];
13
+ method: {
14
+ type: string;
15
+ title: string;
16
+ default: string;
17
+ options: {
18
+ label: string;
19
+ value: string;
20
+ }[];
21
+ isRequired: boolean;
22
+ };
23
+ headers: {
24
+ type: string;
25
+ title: string;
26
+ default: string;
27
+ description: string;
28
+ };
29
+ data: {
30
+ type: string;
31
+ title: string;
32
+ default: string;
33
+ description: string;
34
+ };
35
+ };
36
+ propertyOrder: string[];
37
37
  };
38
38
  export declare const EmptyApiCont: {
39
- url: string;
40
- method: string;
41
- headers: {};
42
- data: {};
39
+ url: string;
40
+ method: string;
41
+ headers: {};
42
+ data: {};
43
43
  };
@@ -1,20 +1,20 @@
1
1
  export declare const initArrayData: {
2
+ type: string;
3
+ title: string;
4
+ description: string;
5
+ items: {
2
6
  type: string;
3
7
  title: string;
4
8
  description: string;
5
- items: {
9
+ properties: {
10
+ name: {
6
11
  type: string;
7
12
  title: string;
13
+ default: string;
8
14
  description: string;
9
- properties: {
10
- name: {
11
- type: string;
12
- title: string;
13
- default: string;
14
- description: string;
15
- placeholder: string;
16
- };
17
- };
18
- propertyOrder: string[];
15
+ placeholder: string;
16
+ };
19
17
  };
18
+ propertyOrder: string[];
19
+ };
20
20
  };
@@ -1,6 +1,6 @@
1
1
  export declare const initBooleanData: {
2
- type: string;
3
- title: string;
4
- default: boolean;
5
- description: string;
2
+ type: string;
3
+ title: string;
4
+ default: boolean;
5
+ description: string;
6
6
  };
@@ -8,25 +8,25 @@
8
8
  * propertyOrder:按序存放所有子字段的key值(排序功能)
9
9
  * */
10
10
  export declare const initBoxStyleData: {
11
- type: string;
12
- title: string;
13
- isContainer: boolean;
14
- properties: {
15
- unit: {
16
- title: string;
17
- type: string;
18
- default: string;
19
- description: string;
20
- };
21
- quantity: {
22
- type: string;
23
- default: string;
24
- options: {
25
- label: string;
26
- value: string;
27
- }[];
28
- title: string;
29
- };
11
+ type: string;
12
+ title: string;
13
+ isContainer: boolean;
14
+ properties: {
15
+ unit: {
16
+ title: string;
17
+ type: string;
18
+ default: string;
19
+ description: string;
30
20
  };
31
- propertyOrder: string[];
21
+ quantity: {
22
+ type: string;
23
+ default: string;
24
+ options: {
25
+ label: string;
26
+ value: string;
27
+ }[];
28
+ title: string;
29
+ };
30
+ };
31
+ propertyOrder: string[];
32
32
  };
@@ -1,20 +1,20 @@
1
1
  export declare const initCascaderSchema: {
2
- type: string;
3
- title: string;
4
- options: {
2
+ type: string;
3
+ title: string;
4
+ options: {
5
+ value: string;
6
+ label: string;
7
+ children: {
8
+ value: string;
9
+ label: string;
10
+ children: {
5
11
  value: string;
6
12
  label: string;
7
- children: {
8
- value: string;
9
- label: string;
10
- children: {
11
- value: string;
12
- label: string;
13
- }[];
14
- }[];
13
+ }[];
15
14
  }[];
16
- default: string;
17
- description: string;
18
- showSearch: boolean;
19
- allowClear: boolean;
15
+ }[];
16
+ default: string;
17
+ description: string;
18
+ showSearch: boolean;
19
+ allowClear: boolean;
20
20
  };
@@ -1,10 +1,10 @@
1
1
  export declare const initCheckboxSchema: {
2
- type: string;
3
- title: string;
4
- options: {
5
- label: string;
6
- value: string;
7
- }[];
8
- default: string[];
9
- description: string;
2
+ type: string;
3
+ title: string;
4
+ options: {
5
+ label: string;
6
+ value: string;
7
+ }[];
8
+ default: string[];
9
+ description: string;
10
10
  };
@@ -1,7 +1,7 @@
1
1
  export declare const initCodeAreaData: {
2
- type: string;
3
- title: string;
4
- placeholder: string;
5
- default: string;
6
- description: string;
2
+ type: string;
3
+ title: string;
4
+ placeholder: string;
5
+ default: string;
6
+ description: string;
7
7
  };
@@ -1,6 +1,6 @@
1
1
  export declare const initColorData: {
2
- type: string;
3
- title: string;
4
- default: string;
5
- description: string;
2
+ type: string;
3
+ title: string;
4
+ default: string;
5
+ description: string;
6
6
  };
@@ -8,66 +8,66 @@
8
8
  * propertyOrder:按序存放所有子字段的key值(排序功能)
9
9
  * */
10
10
  export declare const initDataSourceData: {
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
- data: {
25
- title: string;
26
- placeholder: string;
27
- type: string;
28
- default: string;
29
- description: string;
30
- isRequired: boolean;
31
- };
32
- filter: {
33
- title: string;
34
- type: string;
35
- default: string;
36
- description: string;
37
- isRequired: boolean;
38
- };
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;
39
23
  };
40
- propertyOrder: string[];
24
+ data: {
25
+ title: string;
26
+ placeholder: string;
27
+ type: string;
28
+ default: string;
29
+ description: string;
30
+ isRequired: boolean;
31
+ };
32
+ filter: {
33
+ title: string;
34
+ type: string;
35
+ default: string;
36
+ description: string;
37
+ isRequired: boolean;
38
+ };
39
+ };
40
+ propertyOrder: string[];
41
41
  };
42
42
  export declare const initDataSourceDataV2: {
43
- type: string;
44
- title: string;
45
- isContainer: boolean;
46
- properties: {
47
- type: {
48
- type: string;
49
- default: string;
50
- options: {
51
- label: string;
52
- value: string;
53
- }[];
54
- title: string;
55
- };
56
- data: {
57
- type: string;
58
- title: string;
59
- placeholder: string;
60
- default: string;
61
- isRequired: boolean;
62
- description: string;
63
- };
64
- filter: {
65
- type: string;
66
- title: string;
67
- default: string;
68
- description: string;
69
- isRequired: boolean;
70
- };
43
+ type: string;
44
+ title: string;
45
+ isContainer: boolean;
46
+ properties: {
47
+ type: {
48
+ type: string;
49
+ default: string;
50
+ options: {
51
+ label: string;
52
+ value: string;
53
+ }[];
54
+ title: string;
55
+ };
56
+ data: {
57
+ type: string;
58
+ title: string;
59
+ placeholder: string;
60
+ default: string;
61
+ isRequired: boolean;
62
+ description: string;
63
+ };
64
+ filter: {
65
+ type: string;
66
+ title: string;
67
+ default: string;
68
+ description: string;
69
+ isRequired: boolean;
71
70
  };
72
- propertyOrder: string[];
71
+ };
72
+ propertyOrder: string[];
73
73
  };
@@ -1,7 +1,7 @@
1
1
  export declare const initDateData: {
2
- type: string;
3
- title: string;
4
- default: string;
5
- description: string;
6
- placeholder: string;
2
+ type: string;
3
+ title: string;
4
+ default: string;
5
+ description: string;
6
+ placeholder: string;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  export declare const initDateTimeData: {
2
- type: string;
3
- title: string;
4
- default: string;
5
- description: string;
6
- placeholder: string;
2
+ type: string;
3
+ title: string;
4
+ default: string;
5
+ description: string;
6
+ placeholder: string;
7
7
  };