@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.
Files changed (48) hide show
  1. package/dist/index.esm.js +356 -768
  2. package/dist/index.esm.min.js +1 -1474
  3. package/dist/index.js +1 -1662
  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 +1 -5
  39. package/dist/types/function/getSchemaByIndexRoute.d.ts +1 -5
  40. package/dist/types/function/getSchemaByKeyRoute.d.ts +1 -5
  41. package/dist/types/function/indexRoute2keyRoute.d.ts +1 -4
  42. package/dist/types/function/json2treeData.d.ts +2 -8
  43. package/dist/types/function/keyRoute2indexRoute.d.ts +1 -4
  44. package/dist/types/function/metaElemAnalyzer.d.ts +1 -4
  45. package/dist/types/utils/index.d.ts +2 -8
  46. package/dist/types/utils/jsonData.d.ts +1 -3
  47. package/dist/types/utils/jsonSchema.d.ts +6 -21
  48. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  /*!
2
- * @wibetter/json-utils v7.0.2
2
+ * @wibetter/json-utils v7.0.5
3
3
  * author: wibetter
4
4
  * build tool: AKFun
5
- * build time: Sun Mar 22 2026 19:16:08 GMT+0800 (中国标准时间)
5
+ * build time: Mon Mar 23 2026 00:10:46 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: {
4
- type: string;
5
- title: string;
6
- isContainer: boolean;
7
- properties: {
8
- type: {
9
- default: string;
3
+ on: {
10
4
  type: string;
11
- options: {
12
- label: string;
13
- value: string;
14
- }[];
15
5
  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
- };
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[];
30
32
  };
31
- propertyOrder: string[];
32
- };
33
- emit: {
34
- type: string;
35
- title: string;
36
- isContainer: boolean;
37
- properties: {
38
- type: {
39
- default: string;
33
+ emit: {
40
34
  type: string;
41
- options: {
42
- label: string;
43
- value: string;
44
- }[];
45
35
  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
- };
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[];
60
62
  };
61
- propertyOrder: string[];
62
- };
63
63
  };
64
64
  export declare const DataSourceTypeList: {
65
- local: {
66
- type: string;
67
- title: string;
68
- isContainer: boolean;
69
- properties: {
70
- type: {
71
- default: string;
65
+ local: {
72
66
  type: string;
73
- options: {
74
- label: string;
75
- value: string;
76
- }[];
77
67
  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
- };
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[];
94
96
  };
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: {
97
+ remote: {
120
98
  type: string;
121
99
  title: string;
122
- default: string;
123
- description: string;
124
- isRequired: boolean;
125
- };
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[];
126
128
  };
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;
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
+ };
12
35
  };
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[];
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: {
6
2
  type: string;
7
3
  title: string;
8
4
  description: string;
9
- properties: {
10
- name: {
5
+ items: {
11
6
  type: string;
12
7
  title: string;
13
- default: string;
14
8
  description: string;
15
- placeholder: string;
16
- };
9
+ properties: {
10
+ name: {
11
+ type: string;
12
+ title: string;
13
+ default: string;
14
+ description: string;
15
+ placeholder: string;
16
+ };
17
+ };
18
+ propertyOrder: string[];
17
19
  };
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;
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
+ };
20
30
  };
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[];
31
+ propertyOrder: string[];
32
32
  };
@@ -1,20 +1,20 @@
1
1
  export declare const initCascaderSchema: {
2
- type: string;
3
- title: string;
4
- options: {
5
- value: string;
6
- label: string;
7
- children: {
8
- value: string;
9
- label: string;
10
- children: {
2
+ type: string;
3
+ title: string;
4
+ options: {
11
5
  value: string;
12
6
  label: string;
13
- }[];
7
+ children: {
8
+ value: string;
9
+ label: string;
10
+ children: {
11
+ value: string;
12
+ label: string;
13
+ }[];
14
+ }[];
14
15
  }[];
15
- }[];
16
- default: string;
17
- description: string;
18
- showSearch: boolean;
19
- allowClear: boolean;
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;
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
+ };
23
39
  };
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[];
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;
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
+ };
70
71
  };
71
- };
72
- propertyOrder: string[];
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
  };