@karta.io/utils 1.0.0-beta.15 → 1.0.0-beta.17
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 +54 -6
- package/dist/index.d.cts +12 -8
- package/dist/index.d.mts +12 -8
- package/dist/index.d.ts +12 -8
- package/dist/index.mjs +54 -6
- package/package.json +27 -30
package/dist/index.cjs
CHANGED
|
@@ -95,7 +95,7 @@ function formatMoney(value, currency = commonData.CURRENCY_DEFAULT, options = {}
|
|
|
95
95
|
...otherOptions
|
|
96
96
|
});
|
|
97
97
|
return formatter.format(convertedValue);
|
|
98
|
-
} catch (
|
|
98
|
+
} catch (_error) {
|
|
99
99
|
return defaultValue;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
@@ -125,7 +125,7 @@ function genUUID() {
|
|
|
125
125
|
r = (d2 + r) % 16 | 0;
|
|
126
126
|
d2 = Math.floor(d2 / 16);
|
|
127
127
|
}
|
|
128
|
-
return (c
|
|
128
|
+
return (c === "x" ? r : r & 7 | 8).toString(16);
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
|
|
@@ -542,6 +542,28 @@ function useAsyncMultiselect({
|
|
|
542
542
|
search.value = value;
|
|
543
543
|
updateSearchWithDebounce(value);
|
|
544
544
|
};
|
|
545
|
+
const queryClient = vueQuery.useQueryClient();
|
|
546
|
+
const refetch = () => {
|
|
547
|
+
if (reactiveData.page !== 1) {
|
|
548
|
+
queryClient.invalidateQueries({
|
|
549
|
+
queryKey: [queryKey],
|
|
550
|
+
refetchType: "none"
|
|
551
|
+
});
|
|
552
|
+
loadPage(1);
|
|
553
|
+
} else {
|
|
554
|
+
queryClient.invalidateQueries({
|
|
555
|
+
queryKey: [queryKey]
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
};
|
|
559
|
+
const reload = () => {
|
|
560
|
+
if (reactiveData.page !== 1) {
|
|
561
|
+
queryClient.removeQueries({ queryKey: [queryKey] });
|
|
562
|
+
loadPage(1);
|
|
563
|
+
} else {
|
|
564
|
+
queryClient.resetQueries({ queryKey: [queryKey] });
|
|
565
|
+
}
|
|
566
|
+
};
|
|
545
567
|
if (vue.isRef(selectedValues)) {
|
|
546
568
|
vue.watch(selectedValues, async (newSelectedValues) => {
|
|
547
569
|
if (!newSelectedValues.length) {
|
|
@@ -582,7 +604,9 @@ function useAsyncMultiselect({
|
|
|
582
604
|
isFetching,
|
|
583
605
|
isLoading,
|
|
584
606
|
loadPage,
|
|
585
|
-
updateSearch
|
|
607
|
+
updateSearch,
|
|
608
|
+
refetch,
|
|
609
|
+
reload
|
|
586
610
|
};
|
|
587
611
|
}
|
|
588
612
|
|
|
@@ -691,6 +715,28 @@ function useAsyncSelect({
|
|
|
691
715
|
search.value = value;
|
|
692
716
|
updateSearchWithDebounce(value);
|
|
693
717
|
};
|
|
718
|
+
const queryClient = vueQuery.useQueryClient();
|
|
719
|
+
const refetch = () => {
|
|
720
|
+
if (reactiveData.page !== 1) {
|
|
721
|
+
queryClient.invalidateQueries({
|
|
722
|
+
queryKey: [queryKey],
|
|
723
|
+
refetchType: "none"
|
|
724
|
+
});
|
|
725
|
+
loadPage(1);
|
|
726
|
+
} else {
|
|
727
|
+
queryClient.invalidateQueries({
|
|
728
|
+
queryKey: [queryKey]
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
};
|
|
732
|
+
const reload = () => {
|
|
733
|
+
if (reactiveData.page !== 1) {
|
|
734
|
+
queryClient.removeQueries({ queryKey: [queryKey] });
|
|
735
|
+
loadPage(1);
|
|
736
|
+
} else {
|
|
737
|
+
queryClient.resetQueries({ queryKey: [queryKey] });
|
|
738
|
+
}
|
|
739
|
+
};
|
|
694
740
|
if (vue.isRef(selectedValue)) {
|
|
695
741
|
vue.watch(selectedValue, (newSelectedValue) => {
|
|
696
742
|
reactiveData.page = 1;
|
|
@@ -714,7 +760,9 @@ function useAsyncSelect({
|
|
|
714
760
|
isFetching,
|
|
715
761
|
isLoading,
|
|
716
762
|
loadPage,
|
|
717
|
-
updateSearch
|
|
763
|
+
updateSearch,
|
|
764
|
+
refetch,
|
|
765
|
+
reload
|
|
718
766
|
};
|
|
719
767
|
}
|
|
720
768
|
|
|
@@ -876,7 +924,7 @@ function useDialog() {
|
|
|
876
924
|
let dataFromHash;
|
|
877
925
|
try {
|
|
878
926
|
dataFromHash = JSON.parse(window.atob(hash.slice(HASH_PREFIX.length)));
|
|
879
|
-
} catch (
|
|
927
|
+
} catch (_error) {
|
|
880
928
|
logger.warn("*parseHash* cant parse hash");
|
|
881
929
|
}
|
|
882
930
|
if (typeof dataFromHash !== "object")
|
|
@@ -1361,7 +1409,7 @@ function usePanel() {
|
|
|
1361
1409
|
let dataFromHash;
|
|
1362
1410
|
try {
|
|
1363
1411
|
dataFromHash = JSON.parse(window.atob(newHash.slice(1)));
|
|
1364
|
-
} catch (
|
|
1412
|
+
} catch (_error) {
|
|
1365
1413
|
logger.error("*watchHash* cant parse hash");
|
|
1366
1414
|
}
|
|
1367
1415
|
if (typeof dataFromHash !== "object")
|
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<boolean> | vue.Ref<
|
|
137
|
+
isLoading: vue.Ref<boolean> | vue.Ref<false> | vue.Ref<true>;
|
|
138
138
|
isFetching: vue.Ref<boolean>;
|
|
139
|
-
isError: vue.Ref<
|
|
140
|
-
data: vue.Ref<any>;
|
|
141
|
-
error: vue.Ref<Error>;
|
|
139
|
+
isError: vue.Ref<false> | vue.Ref<true>;
|
|
140
|
+
data: vue.Ref<any> | vue.Ref<undefined>;
|
|
141
|
+
error: vue.Ref<Error> | vue.Ref<null>;
|
|
142
142
|
items: vue.ComputedRef<Awaited<ReturnType<T>>["results"]>;
|
|
143
143
|
count: vue.Ref<number>;
|
|
144
144
|
refetch: () => void;
|
|
@@ -169,9 +169,11 @@ 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<boolean> | vue.Ref<
|
|
172
|
+
isLoading: vue.Ref<boolean> | vue.Ref<false> | vue.Ref<true>;
|
|
173
173
|
loadPage: (newPage?: number) => void;
|
|
174
174
|
updateSearch: (value: string) => void;
|
|
175
|
+
refetch: () => void;
|
|
176
|
+
reload: () => void;
|
|
175
177
|
};
|
|
176
178
|
|
|
177
179
|
interface ReactiveData {
|
|
@@ -196,9 +198,11 @@ declare function useAsyncSelect<T extends (...args: any[]) => any, K extends (pa
|
|
|
196
198
|
search: vue.Ref<string>;
|
|
197
199
|
hasNextPage: vue.ComputedRef<boolean>;
|
|
198
200
|
isFetching: vue.Ref<boolean>;
|
|
199
|
-
isLoading: vue.Ref<boolean> | vue.Ref<
|
|
201
|
+
isLoading: vue.Ref<boolean> | vue.Ref<false> | vue.Ref<true>;
|
|
200
202
|
loadPage: (newPage?: number) => void;
|
|
201
203
|
updateSearch: (value: string) => void;
|
|
204
|
+
refetch: () => void;
|
|
205
|
+
reload: () => void;
|
|
202
206
|
};
|
|
203
207
|
|
|
204
208
|
declare function useBreakpoint(): {
|
|
@@ -246,7 +250,7 @@ type VersionsList = {
|
|
|
246
250
|
declare function useDetectBrowser(versions: VersionsList, userAgent?: any): BrowserInfo;
|
|
247
251
|
|
|
248
252
|
interface VNodeCustom$1 extends VNode {
|
|
249
|
-
close()
|
|
253
|
+
close: () => void;
|
|
250
254
|
}
|
|
251
255
|
declare function useDialog(): {
|
|
252
256
|
open: ({ layer, component, props, }: {
|
|
@@ -306,7 +310,7 @@ interface Options {
|
|
|
306
310
|
declare function useLogger(scope: string, options?: Options): logdown.Logger;
|
|
307
311
|
|
|
308
312
|
interface VNodeCustom extends VNode {
|
|
309
|
-
close()
|
|
313
|
+
close: () => void;
|
|
310
314
|
}
|
|
311
315
|
/**
|
|
312
316
|
* @deprecated use useDialog
|
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<boolean> | vue.Ref<
|
|
137
|
+
isLoading: vue.Ref<boolean> | vue.Ref<false> | vue.Ref<true>;
|
|
138
138
|
isFetching: vue.Ref<boolean>;
|
|
139
|
-
isError: vue.Ref<
|
|
140
|
-
data: vue.Ref<any>;
|
|
141
|
-
error: vue.Ref<Error>;
|
|
139
|
+
isError: vue.Ref<false> | vue.Ref<true>;
|
|
140
|
+
data: vue.Ref<any> | vue.Ref<undefined>;
|
|
141
|
+
error: vue.Ref<Error> | vue.Ref<null>;
|
|
142
142
|
items: vue.ComputedRef<Awaited<ReturnType<T>>["results"]>;
|
|
143
143
|
count: vue.Ref<number>;
|
|
144
144
|
refetch: () => void;
|
|
@@ -169,9 +169,11 @@ 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<boolean> | vue.Ref<
|
|
172
|
+
isLoading: vue.Ref<boolean> | vue.Ref<false> | vue.Ref<true>;
|
|
173
173
|
loadPage: (newPage?: number) => void;
|
|
174
174
|
updateSearch: (value: string) => void;
|
|
175
|
+
refetch: () => void;
|
|
176
|
+
reload: () => void;
|
|
175
177
|
};
|
|
176
178
|
|
|
177
179
|
interface ReactiveData {
|
|
@@ -196,9 +198,11 @@ declare function useAsyncSelect<T extends (...args: any[]) => any, K extends (pa
|
|
|
196
198
|
search: vue.Ref<string>;
|
|
197
199
|
hasNextPage: vue.ComputedRef<boolean>;
|
|
198
200
|
isFetching: vue.Ref<boolean>;
|
|
199
|
-
isLoading: vue.Ref<boolean> | vue.Ref<
|
|
201
|
+
isLoading: vue.Ref<boolean> | vue.Ref<false> | vue.Ref<true>;
|
|
200
202
|
loadPage: (newPage?: number) => void;
|
|
201
203
|
updateSearch: (value: string) => void;
|
|
204
|
+
refetch: () => void;
|
|
205
|
+
reload: () => void;
|
|
202
206
|
};
|
|
203
207
|
|
|
204
208
|
declare function useBreakpoint(): {
|
|
@@ -246,7 +250,7 @@ type VersionsList = {
|
|
|
246
250
|
declare function useDetectBrowser(versions: VersionsList, userAgent?: any): BrowserInfo;
|
|
247
251
|
|
|
248
252
|
interface VNodeCustom$1 extends VNode {
|
|
249
|
-
close()
|
|
253
|
+
close: () => void;
|
|
250
254
|
}
|
|
251
255
|
declare function useDialog(): {
|
|
252
256
|
open: ({ layer, component, props, }: {
|
|
@@ -306,7 +310,7 @@ interface Options {
|
|
|
306
310
|
declare function useLogger(scope: string, options?: Options): logdown.Logger;
|
|
307
311
|
|
|
308
312
|
interface VNodeCustom extends VNode {
|
|
309
|
-
close()
|
|
313
|
+
close: () => void;
|
|
310
314
|
}
|
|
311
315
|
/**
|
|
312
316
|
* @deprecated use useDialog
|
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<boolean> | vue.Ref<
|
|
137
|
+
isLoading: vue.Ref<boolean> | vue.Ref<false> | vue.Ref<true>;
|
|
138
138
|
isFetching: vue.Ref<boolean>;
|
|
139
|
-
isError: vue.Ref<
|
|
140
|
-
data: vue.Ref<any>;
|
|
141
|
-
error: vue.Ref<Error>;
|
|
139
|
+
isError: vue.Ref<false> | vue.Ref<true>;
|
|
140
|
+
data: vue.Ref<any> | vue.Ref<undefined>;
|
|
141
|
+
error: vue.Ref<Error> | vue.Ref<null>;
|
|
142
142
|
items: vue.ComputedRef<Awaited<ReturnType<T>>["results"]>;
|
|
143
143
|
count: vue.Ref<number>;
|
|
144
144
|
refetch: () => void;
|
|
@@ -169,9 +169,11 @@ 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<boolean> | vue.Ref<
|
|
172
|
+
isLoading: vue.Ref<boolean> | vue.Ref<false> | vue.Ref<true>;
|
|
173
173
|
loadPage: (newPage?: number) => void;
|
|
174
174
|
updateSearch: (value: string) => void;
|
|
175
|
+
refetch: () => void;
|
|
176
|
+
reload: () => void;
|
|
175
177
|
};
|
|
176
178
|
|
|
177
179
|
interface ReactiveData {
|
|
@@ -196,9 +198,11 @@ declare function useAsyncSelect<T extends (...args: any[]) => any, K extends (pa
|
|
|
196
198
|
search: vue.Ref<string>;
|
|
197
199
|
hasNextPage: vue.ComputedRef<boolean>;
|
|
198
200
|
isFetching: vue.Ref<boolean>;
|
|
199
|
-
isLoading: vue.Ref<boolean> | vue.Ref<
|
|
201
|
+
isLoading: vue.Ref<boolean> | vue.Ref<false> | vue.Ref<true>;
|
|
200
202
|
loadPage: (newPage?: number) => void;
|
|
201
203
|
updateSearch: (value: string) => void;
|
|
204
|
+
refetch: () => void;
|
|
205
|
+
reload: () => void;
|
|
202
206
|
};
|
|
203
207
|
|
|
204
208
|
declare function useBreakpoint(): {
|
|
@@ -246,7 +250,7 @@ type VersionsList = {
|
|
|
246
250
|
declare function useDetectBrowser(versions: VersionsList, userAgent?: any): BrowserInfo;
|
|
247
251
|
|
|
248
252
|
interface VNodeCustom$1 extends VNode {
|
|
249
|
-
close()
|
|
253
|
+
close: () => void;
|
|
250
254
|
}
|
|
251
255
|
declare function useDialog(): {
|
|
252
256
|
open: ({ layer, component, props, }: {
|
|
@@ -306,7 +310,7 @@ interface Options {
|
|
|
306
310
|
declare function useLogger(scope: string, options?: Options): logdown.Logger;
|
|
307
311
|
|
|
308
312
|
interface VNodeCustom extends VNode {
|
|
309
|
-
close()
|
|
313
|
+
close: () => void;
|
|
310
314
|
}
|
|
311
315
|
/**
|
|
312
316
|
* @deprecated use useDialog
|
package/dist/index.mjs
CHANGED
|
@@ -77,7 +77,7 @@ function formatMoney(value, currency = CURRENCY_DEFAULT, options = {}) {
|
|
|
77
77
|
...otherOptions
|
|
78
78
|
});
|
|
79
79
|
return formatter.format(convertedValue);
|
|
80
|
-
} catch (
|
|
80
|
+
} catch (_error) {
|
|
81
81
|
return defaultValue;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -107,7 +107,7 @@ function genUUID() {
|
|
|
107
107
|
r = (d2 + r) % 16 | 0;
|
|
108
108
|
d2 = Math.floor(d2 / 16);
|
|
109
109
|
}
|
|
110
|
-
return (c
|
|
110
|
+
return (c === "x" ? r : r & 7 | 8).toString(16);
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -524,6 +524,28 @@ function useAsyncMultiselect({
|
|
|
524
524
|
search.value = value;
|
|
525
525
|
updateSearchWithDebounce(value);
|
|
526
526
|
};
|
|
527
|
+
const queryClient = useQueryClient();
|
|
528
|
+
const refetch = () => {
|
|
529
|
+
if (reactiveData.page !== 1) {
|
|
530
|
+
queryClient.invalidateQueries({
|
|
531
|
+
queryKey: [queryKey],
|
|
532
|
+
refetchType: "none"
|
|
533
|
+
});
|
|
534
|
+
loadPage(1);
|
|
535
|
+
} else {
|
|
536
|
+
queryClient.invalidateQueries({
|
|
537
|
+
queryKey: [queryKey]
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
const reload = () => {
|
|
542
|
+
if (reactiveData.page !== 1) {
|
|
543
|
+
queryClient.removeQueries({ queryKey: [queryKey] });
|
|
544
|
+
loadPage(1);
|
|
545
|
+
} else {
|
|
546
|
+
queryClient.resetQueries({ queryKey: [queryKey] });
|
|
547
|
+
}
|
|
548
|
+
};
|
|
527
549
|
if (isRef(selectedValues)) {
|
|
528
550
|
watch(selectedValues, async (newSelectedValues) => {
|
|
529
551
|
if (!newSelectedValues.length) {
|
|
@@ -564,7 +586,9 @@ function useAsyncMultiselect({
|
|
|
564
586
|
isFetching,
|
|
565
587
|
isLoading,
|
|
566
588
|
loadPage,
|
|
567
|
-
updateSearch
|
|
589
|
+
updateSearch,
|
|
590
|
+
refetch,
|
|
591
|
+
reload
|
|
568
592
|
};
|
|
569
593
|
}
|
|
570
594
|
|
|
@@ -673,6 +697,28 @@ function useAsyncSelect({
|
|
|
673
697
|
search.value = value;
|
|
674
698
|
updateSearchWithDebounce(value);
|
|
675
699
|
};
|
|
700
|
+
const queryClient = useQueryClient();
|
|
701
|
+
const refetch = () => {
|
|
702
|
+
if (reactiveData.page !== 1) {
|
|
703
|
+
queryClient.invalidateQueries({
|
|
704
|
+
queryKey: [queryKey],
|
|
705
|
+
refetchType: "none"
|
|
706
|
+
});
|
|
707
|
+
loadPage(1);
|
|
708
|
+
} else {
|
|
709
|
+
queryClient.invalidateQueries({
|
|
710
|
+
queryKey: [queryKey]
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
};
|
|
714
|
+
const reload = () => {
|
|
715
|
+
if (reactiveData.page !== 1) {
|
|
716
|
+
queryClient.removeQueries({ queryKey: [queryKey] });
|
|
717
|
+
loadPage(1);
|
|
718
|
+
} else {
|
|
719
|
+
queryClient.resetQueries({ queryKey: [queryKey] });
|
|
720
|
+
}
|
|
721
|
+
};
|
|
676
722
|
if (isRef(selectedValue)) {
|
|
677
723
|
watch(selectedValue, (newSelectedValue) => {
|
|
678
724
|
reactiveData.page = 1;
|
|
@@ -696,7 +742,9 @@ function useAsyncSelect({
|
|
|
696
742
|
isFetching,
|
|
697
743
|
isLoading,
|
|
698
744
|
loadPage,
|
|
699
|
-
updateSearch
|
|
745
|
+
updateSearch,
|
|
746
|
+
refetch,
|
|
747
|
+
reload
|
|
700
748
|
};
|
|
701
749
|
}
|
|
702
750
|
|
|
@@ -858,7 +906,7 @@ function useDialog() {
|
|
|
858
906
|
let dataFromHash;
|
|
859
907
|
try {
|
|
860
908
|
dataFromHash = JSON.parse(window.atob(hash.slice(HASH_PREFIX.length)));
|
|
861
|
-
} catch (
|
|
909
|
+
} catch (_error) {
|
|
862
910
|
logger.warn("*parseHash* cant parse hash");
|
|
863
911
|
}
|
|
864
912
|
if (typeof dataFromHash !== "object")
|
|
@@ -1343,7 +1391,7 @@ function usePanel() {
|
|
|
1343
1391
|
let dataFromHash;
|
|
1344
1392
|
try {
|
|
1345
1393
|
dataFromHash = JSON.parse(window.atob(newHash.slice(1)));
|
|
1346
|
-
} catch (
|
|
1394
|
+
} catch (_error) {
|
|
1347
1395
|
logger.error("*watchHash* cant parse hash");
|
|
1348
1396
|
}
|
|
1349
1397
|
if (typeof dataFromHash !== "object")
|
package/package.json
CHANGED
|
@@ -1,63 +1,60 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@karta.io/utils",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.17",
|
|
4
4
|
"description": "karta.io utils for admin and application",
|
|
5
|
-
"author": "Vitaly Blokhin <karambafe@gmail.com>",
|
|
6
|
-
"homepage": "",
|
|
7
|
-
"license": "MIT",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"prettier": "@karta.io/prettier-config",
|
|
10
5
|
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "",
|
|
8
|
+
"author": "Vitaly Blokhin <karambafe@gmail.com>",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"main": "./dist/index.cjs",
|
|
13
|
+
"module": "./dist/index.mjs",
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
11
15
|
"exports": {
|
|
12
16
|
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
13
18
|
"require": "./dist/index.cjs",
|
|
14
|
-
"import": "./dist/index.mjs"
|
|
15
|
-
"types": "./dist/index.d.ts"
|
|
19
|
+
"import": "./dist/index.mjs"
|
|
16
20
|
},
|
|
17
21
|
"./*": "./*"
|
|
18
22
|
},
|
|
19
|
-
"
|
|
20
|
-
"module": "./dist/index.mjs",
|
|
21
|
-
"types": "./dist/index.d.ts",
|
|
22
|
-
"files": [
|
|
23
|
-
"dist"
|
|
24
|
-
],
|
|
23
|
+
"sideEffects": false,
|
|
25
24
|
"peerDependencies": {
|
|
26
25
|
"vue": "3.x"
|
|
27
26
|
},
|
|
28
27
|
"dependencies": {
|
|
29
|
-
"@karta.io/common-data": "^1.0.0-beta.
|
|
30
|
-
"@tanstack/vue-query": "5.
|
|
28
|
+
"@karta.io/common-data": "^1.0.0-beta.17",
|
|
29
|
+
"@tanstack/vue-query": "5.36.0",
|
|
31
30
|
"@vueuse/core": "10.9.0",
|
|
32
31
|
"async-validator": "4.2.5",
|
|
33
32
|
"axios": "1.6.8",
|
|
34
|
-
"dayjs": "1.11.
|
|
33
|
+
"dayjs": "1.11.11",
|
|
35
34
|
"detect-browser": "5.3.0",
|
|
36
|
-
"libphonenumber-js": "1.
|
|
35
|
+
"libphonenumber-js": "1.11.1",
|
|
37
36
|
"lodash": "4.17.21",
|
|
38
37
|
"logdown": "3.3.1",
|
|
39
|
-
"qs": "6.
|
|
40
|
-
"vue-router": "4.
|
|
38
|
+
"qs": "6.12.1",
|
|
39
|
+
"vue-router": "4.3.2"
|
|
41
40
|
},
|
|
42
41
|
"devDependencies": {
|
|
42
|
+
"@karta.io/eslint-config": "1.1.0",
|
|
43
43
|
"@karta.io/prettier-config": "1.0.0",
|
|
44
|
-
"@types/lodash": "4.17.
|
|
45
|
-
"
|
|
46
|
-
"@typescript-eslint/parser": "6.20.0",
|
|
47
|
-
"eslint": "8.56.0",
|
|
48
|
-
"eslint-config-airbnb-base": "15.0.0",
|
|
49
|
-
"eslint-plugin-import": "2.29.1",
|
|
44
|
+
"@types/lodash": "4.17.1",
|
|
45
|
+
"eslint": "9.2.0",
|
|
50
46
|
"prettier": "3.2.5",
|
|
51
|
-
"typescript": "5.4.
|
|
47
|
+
"typescript": "5.4.5",
|
|
52
48
|
"unbuild": "2.0.0",
|
|
53
49
|
"vitest": "1.2.2",
|
|
54
|
-
"vue": "3.4.
|
|
50
|
+
"vue": "3.4.27"
|
|
55
51
|
},
|
|
52
|
+
"prettier": "@karta.io/prettier-config",
|
|
56
53
|
"scripts": {
|
|
57
54
|
"dev": "vitest",
|
|
58
55
|
"build": "unbuild",
|
|
59
|
-
"lint": "eslint
|
|
60
|
-
"lint:fix": "eslint --fix
|
|
56
|
+
"lint": "eslint .",
|
|
57
|
+
"lint:fix": "eslint . --fix",
|
|
61
58
|
"test": "pnpm lint && vitest run",
|
|
62
59
|
"prettier": "prettier --check --ignore-unknown \"**/*\"",
|
|
63
60
|
"prettier:fix": "prettier --write --ignore-unknown \"**/*\"",
|