@karta.io/utils 1.0.0-beta.7 → 1.0.0-beta.9
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.cjs +2 -2
- package/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -506,7 +506,7 @@ function useAsyncMultiselect({
|
|
|
506
506
|
if (!items.value.length)
|
|
507
507
|
return [];
|
|
508
508
|
if (!mapOptionCallback)
|
|
509
|
-
return
|
|
509
|
+
return items.value;
|
|
510
510
|
return items.value.map(mapOptionCallback);
|
|
511
511
|
});
|
|
512
512
|
const hasNextPage = vue.computed(() => count.value > items.value.length);
|
|
@@ -656,7 +656,7 @@ function useAsyncSelect({
|
|
|
656
656
|
if (!items.value.length)
|
|
657
657
|
return [];
|
|
658
658
|
if (!mapOptionCallback)
|
|
659
|
-
return
|
|
659
|
+
return items.value;
|
|
660
660
|
return items.value.map(mapOptionCallback);
|
|
661
661
|
});
|
|
662
662
|
const hasNextPage = vue.computed(() => count.value > items.value.length);
|
package/dist/index.d.cts
CHANGED
|
@@ -134,11 +134,11 @@ declare function useAsyncItems<T extends (...args: any[]) => any>({ apiMethod, q
|
|
|
134
134
|
params: MaybeRef<Parameters<T>[0]>;
|
|
135
135
|
config?: AxiosRequestConfig;
|
|
136
136
|
}): {
|
|
137
|
-
isLoading: vue.Ref<
|
|
137
|
+
isLoading: vue.Ref<boolean> | vue.Ref<true> | vue.Ref<false>;
|
|
138
138
|
isFetching: vue.Ref<boolean>;
|
|
139
|
-
isError: vue.Ref<
|
|
139
|
+
isError: vue.Ref<true> | vue.Ref<false>;
|
|
140
140
|
data: vue.Ref<any>;
|
|
141
|
-
error: vue.Ref<
|
|
141
|
+
error: vue.Ref<Error>;
|
|
142
142
|
items: vue.ComputedRef<Awaited<ReturnType<T>>["results"]>;
|
|
143
143
|
count: vue.Ref<number>;
|
|
144
144
|
refetch: () => void;
|
|
@@ -169,7 +169,7 @@ declare function useAsyncMultiselect<T extends (...args: any[]) => any, K extend
|
|
|
169
169
|
search: vue.Ref<string>;
|
|
170
170
|
hasNextPage: vue.ComputedRef<boolean>;
|
|
171
171
|
isFetching: vue.Ref<boolean>;
|
|
172
|
-
isLoading: vue.Ref<
|
|
172
|
+
isLoading: vue.Ref<boolean> | vue.Ref<true> | vue.Ref<false>;
|
|
173
173
|
loadPage: (newPage?: number) => void;
|
|
174
174
|
updateSearch: (value: string) => void;
|
|
175
175
|
};
|
|
@@ -196,7 +196,7 @@ declare function useAsyncSelect<T extends (...args: any[]) => any, K extends (pa
|
|
|
196
196
|
search: vue.Ref<string>;
|
|
197
197
|
hasNextPage: vue.ComputedRef<boolean>;
|
|
198
198
|
isFetching: vue.Ref<boolean>;
|
|
199
|
-
isLoading: vue.Ref<
|
|
199
|
+
isLoading: vue.Ref<boolean> | vue.Ref<true> | vue.Ref<false>;
|
|
200
200
|
loadPage: (newPage?: number) => void;
|
|
201
201
|
updateSearch: (value: string) => void;
|
|
202
202
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -134,11 +134,11 @@ declare function useAsyncItems<T extends (...args: any[]) => any>({ apiMethod, q
|
|
|
134
134
|
params: MaybeRef<Parameters<T>[0]>;
|
|
135
135
|
config?: AxiosRequestConfig;
|
|
136
136
|
}): {
|
|
137
|
-
isLoading: vue.Ref<
|
|
137
|
+
isLoading: vue.Ref<boolean> | vue.Ref<true> | vue.Ref<false>;
|
|
138
138
|
isFetching: vue.Ref<boolean>;
|
|
139
|
-
isError: vue.Ref<
|
|
139
|
+
isError: vue.Ref<true> | vue.Ref<false>;
|
|
140
140
|
data: vue.Ref<any>;
|
|
141
|
-
error: vue.Ref<
|
|
141
|
+
error: vue.Ref<Error>;
|
|
142
142
|
items: vue.ComputedRef<Awaited<ReturnType<T>>["results"]>;
|
|
143
143
|
count: vue.Ref<number>;
|
|
144
144
|
refetch: () => void;
|
|
@@ -169,7 +169,7 @@ declare function useAsyncMultiselect<T extends (...args: any[]) => any, K extend
|
|
|
169
169
|
search: vue.Ref<string>;
|
|
170
170
|
hasNextPage: vue.ComputedRef<boolean>;
|
|
171
171
|
isFetching: vue.Ref<boolean>;
|
|
172
|
-
isLoading: vue.Ref<
|
|
172
|
+
isLoading: vue.Ref<boolean> | vue.Ref<true> | vue.Ref<false>;
|
|
173
173
|
loadPage: (newPage?: number) => void;
|
|
174
174
|
updateSearch: (value: string) => void;
|
|
175
175
|
};
|
|
@@ -196,7 +196,7 @@ declare function useAsyncSelect<T extends (...args: any[]) => any, K extends (pa
|
|
|
196
196
|
search: vue.Ref<string>;
|
|
197
197
|
hasNextPage: vue.ComputedRef<boolean>;
|
|
198
198
|
isFetching: vue.Ref<boolean>;
|
|
199
|
-
isLoading: vue.Ref<
|
|
199
|
+
isLoading: vue.Ref<boolean> | vue.Ref<true> | vue.Ref<false>;
|
|
200
200
|
loadPage: (newPage?: number) => void;
|
|
201
201
|
updateSearch: (value: string) => void;
|
|
202
202
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -134,11 +134,11 @@ declare function useAsyncItems<T extends (...args: any[]) => any>({ apiMethod, q
|
|
|
134
134
|
params: MaybeRef<Parameters<T>[0]>;
|
|
135
135
|
config?: AxiosRequestConfig;
|
|
136
136
|
}): {
|
|
137
|
-
isLoading: vue.Ref<
|
|
137
|
+
isLoading: vue.Ref<boolean> | vue.Ref<true> | vue.Ref<false>;
|
|
138
138
|
isFetching: vue.Ref<boolean>;
|
|
139
|
-
isError: vue.Ref<
|
|
139
|
+
isError: vue.Ref<true> | vue.Ref<false>;
|
|
140
140
|
data: vue.Ref<any>;
|
|
141
|
-
error: vue.Ref<
|
|
141
|
+
error: vue.Ref<Error>;
|
|
142
142
|
items: vue.ComputedRef<Awaited<ReturnType<T>>["results"]>;
|
|
143
143
|
count: vue.Ref<number>;
|
|
144
144
|
refetch: () => void;
|
|
@@ -169,7 +169,7 @@ declare function useAsyncMultiselect<T extends (...args: any[]) => any, K extend
|
|
|
169
169
|
search: vue.Ref<string>;
|
|
170
170
|
hasNextPage: vue.ComputedRef<boolean>;
|
|
171
171
|
isFetching: vue.Ref<boolean>;
|
|
172
|
-
isLoading: vue.Ref<
|
|
172
|
+
isLoading: vue.Ref<boolean> | vue.Ref<true> | vue.Ref<false>;
|
|
173
173
|
loadPage: (newPage?: number) => void;
|
|
174
174
|
updateSearch: (value: string) => void;
|
|
175
175
|
};
|
|
@@ -196,7 +196,7 @@ declare function useAsyncSelect<T extends (...args: any[]) => any, K extends (pa
|
|
|
196
196
|
search: vue.Ref<string>;
|
|
197
197
|
hasNextPage: vue.ComputedRef<boolean>;
|
|
198
198
|
isFetching: vue.Ref<boolean>;
|
|
199
|
-
isLoading: vue.Ref<
|
|
199
|
+
isLoading: vue.Ref<boolean> | vue.Ref<true> | vue.Ref<false>;
|
|
200
200
|
loadPage: (newPage?: number) => void;
|
|
201
201
|
updateSearch: (value: string) => void;
|
|
202
202
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -488,7 +488,7 @@ function useAsyncMultiselect({
|
|
|
488
488
|
if (!items.value.length)
|
|
489
489
|
return [];
|
|
490
490
|
if (!mapOptionCallback)
|
|
491
|
-
return
|
|
491
|
+
return items.value;
|
|
492
492
|
return items.value.map(mapOptionCallback);
|
|
493
493
|
});
|
|
494
494
|
const hasNextPage = computed(() => count.value > items.value.length);
|
|
@@ -638,7 +638,7 @@ function useAsyncSelect({
|
|
|
638
638
|
if (!items.value.length)
|
|
639
639
|
return [];
|
|
640
640
|
if (!mapOptionCallback)
|
|
641
|
-
return
|
|
641
|
+
return items.value;
|
|
642
642
|
return items.value.map(mapOptionCallback);
|
|
643
643
|
});
|
|
644
644
|
const hasNextPage = computed(() => count.value > items.value.length);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karta.io/utils",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.9",
|
|
4
4
|
"description": "karta.io utils for admin and application",
|
|
5
5
|
"author": "Vitaly Blokhin <karambafe@gmail.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"vue": "3.
|
|
25
|
+
"vue": "3.x"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@karta.io/common-data": "^1.0.0-beta.
|
|
29
|
-
"@tanstack/vue-query": "
|
|
28
|
+
"@karta.io/common-data": "^1.0.0-beta.9",
|
|
29
|
+
"@tanstack/vue-query": "5.x",
|
|
30
30
|
"@vueuse/core": "10.7.2",
|
|
31
31
|
"async-validator": "4.2.5",
|
|
32
32
|
"axios": "1.6.7",
|