eco-vue-js 0.5.0 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Button/WButton.vue.d.ts +14 -26
- package/dist/components/Button/WButton.vue.d.ts.map +1 -1
- package/dist/components/Button/WButton.vue.js +0 -1
- package/dist/components/Button/WButtonAction.vue.d.ts +11 -21
- package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonAction.vue.js +0 -1
- package/dist/components/Button/WButtonGroup.vue.d.ts +12 -6
- package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonGroup.vue.js +6 -4
- package/dist/components/Button/WButtonMoreItem.vue.d.ts +7 -15
- package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMoreItem.vue.js +0 -1
- package/dist/components/Button/WButtonSelection.vue.d.ts +23 -3
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelection.vue.js +8 -6
- package/dist/components/Checkbox/WCheckbox.vue.d.ts +4 -0
- package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +20 -18
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +30 -6
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +13 -6
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +18 -3
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.js +27 -13
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +39 -24
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +44 -18
- package/dist/components/Input/WInputOptions.vue.d.ts +3 -3
- package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
- package/dist/components/Link/WLink.vue.d.ts +10 -18
- package/dist/components/Link/WLink.vue.d.ts.map +1 -1
- package/dist/components/Link/WLink.vue.js +0 -1
- package/dist/components/ListCard/WListCard.vue.d.ts +12 -0
- package/dist/components/ListCard/WListCard.vue.d.ts.map +1 -1
- package/dist/components/ListCard/WListCard.vue.js +17 -8
- package/dist/components/MenuItem/WMenuItem.vue.d.ts +6 -12
- package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.js +0 -1
- package/dist/components/Nav/WNavItem.vue.d.ts +10 -20
- package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItem.vue.js +0 -1
- package/dist/components/Nav/WNavItemExpand.vue.d.ts +7 -15
- package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.js +0 -1
- package/dist/components/Select/WSelectAsync.vue.d.ts +3 -3
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +1 -1
- package/dist/components/Select/WSelectAsyncList.vue.d.ts +3 -3
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncList.vue.js +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +3 -3
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts +3 -3
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +3 -3
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +3 -3
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
- package/dist/types/global.d.ts +11 -3
- package/dist/utils/useDefaultQuery.d.ts +1 -1
- package/dist/utils/useDefaultQuery.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/types/global.d.ts
CHANGED
@@ -40,12 +40,20 @@ declare type DefaultData = {id: number, [key: string]: unknown}
|
|
40
40
|
|
41
41
|
type Params = Parameters<import('@tanstack/vue-query').QueryClient['setQueriesData']>
|
42
42
|
|
43
|
-
declare
|
43
|
+
declare interface LinkProps {
|
44
|
+
to: import('vue-router').RouterLinkProps['to']
|
45
|
+
}
|
46
|
+
|
47
|
+
declare interface DefaultQueryError {}
|
48
|
+
|
49
|
+
declare interface DefaultQueryConfig {
|
50
|
+
ApiError: DefaultQueryError
|
51
|
+
}
|
44
52
|
|
45
|
-
declare type UseQueryDefault<TQueryFnData = unknown, TError =
|
53
|
+
declare type UseQueryDefault<TQueryFnData = unknown, TError = DefaultQueryConfig['ApiError'], TData = TQueryFnData, TQueryKey extends import('@tanstack/vue-query').QueryKey = import('@tanstack/vue-query').QueryKey> =
|
46
54
|
typeof import('../utils/useDefaultQuery').useDefaultQuery<TQueryFnData, TError, TData, TQueryKey>
|
47
55
|
|
48
|
-
declare type QueryOptions<Data, Error =
|
56
|
+
declare type QueryOptions<Data, Error = DefaultQueryConfig['ApiError']> = Partial<Parameters<typeof import('../utils/useDefaultQuery').useDefaultQuery<Data, Error>>[0]>
|
49
57
|
|
50
58
|
declare type UseQueryEmpty<Model, ApiError> = (options?: QueryOptions<Model, ApiError>) => ReturnType<typeof import('../utils/useDefaultQuery').useDefaultQuery<Model, ApiError>>
|
51
59
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type QueryClient, type UseQueryReturnType, type QueryKey } from '@tanstack/vue-query';
|
2
2
|
type Params = Parameters<QueryClient['setQueriesData']>;
|
3
|
-
export declare const useDefaultQuery: <TQueryFnData = unknown, TError =
|
3
|
+
export declare const useDefaultQuery: <TQueryFnData = unknown, TError = DefaultQueryError, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: import("@tanstack/vue-query").UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, queryClient?: QueryClient | undefined) => UseQueryReturnType<TData, TError> & {
|
4
4
|
setData: (updater: TQueryFnData, options?: Params[2]) => ReturnType<QueryClient['setQueriesData']>;
|
5
5
|
};
|
6
6
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"useDefaultQuery.d.ts","sourceRoot":"","sources":["../../src/utils/useDefaultQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAC,MAAM,qBAAqB,CAAA;AAEtH,KAAK,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAEvD,eAAO,MAAM,eAAe;
|
1
|
+
{"version":3,"file":"useDefaultQuery.d.ts","sourceRoot":"","sources":["../../src/utils/useDefaultQuery.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,WAAW,EAAE,KAAK,kBAAkB,EAAE,KAAK,QAAQ,EAAC,MAAM,qBAAqB,CAAA;AAEtH,KAAK,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAA;AAEvD,eAAO,MAAM,eAAe;uBAOL,YAAY,YAAY,MAAM,CAAC,CAAC,CAAC,KAAK,WAAW,WAAW,CAAC,gBAAgB,CAAC,CAAC;CAUrG,CAAA"}
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"type": "git",
|
5
5
|
"url": "https://github.com/rsmple/eco-vue-js.git"
|
6
6
|
},
|
7
|
-
"version": "0.5.
|
7
|
+
"version": "0.5.2",
|
8
8
|
"scripts": {
|
9
9
|
"dev": "vite",
|
10
10
|
"build": "run-p type-check build-only",
|
@@ -41,7 +41,7 @@
|
|
41
41
|
"postcss-import": "15.1.0",
|
42
42
|
"tailwindcss": "3.4.1",
|
43
43
|
"typescript": "5.4.2",
|
44
|
-
"vite": "5.
|
44
|
+
"vite": "5.2.13",
|
45
45
|
"vite-plugin-dts": "3.7.3",
|
46
46
|
"vite-svg-loader": "4.0.0",
|
47
47
|
"vitest": "0.32.0",
|