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.
Files changed (62) hide show
  1. package/dist/components/Button/WButton.vue.d.ts +14 -26
  2. package/dist/components/Button/WButton.vue.d.ts.map +1 -1
  3. package/dist/components/Button/WButton.vue.js +0 -1
  4. package/dist/components/Button/WButtonAction.vue.d.ts +11 -21
  5. package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
  6. package/dist/components/Button/WButtonAction.vue.js +0 -1
  7. package/dist/components/Button/WButtonGroup.vue.d.ts +12 -6
  8. package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
  9. package/dist/components/Button/WButtonGroup.vue.js +6 -4
  10. package/dist/components/Button/WButtonMoreItem.vue.d.ts +7 -15
  11. package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -1
  12. package/dist/components/Button/WButtonMoreItem.vue.js +0 -1
  13. package/dist/components/Button/WButtonSelection.vue.d.ts +23 -3
  14. package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
  15. package/dist/components/Button/WButtonSelection.vue.js +8 -6
  16. package/dist/components/Checkbox/WCheckbox.vue.d.ts +4 -0
  17. package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
  18. package/dist/components/Checkbox/WCheckbox.vue.js +20 -18
  19. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +30 -6
  20. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  21. package/dist/components/InfiniteList/WInfiniteList.vue.js +13 -6
  22. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +18 -3
  23. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
  24. package/dist/components/InfiniteList/WInfiniteListPages.vue.js +27 -13
  25. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +39 -24
  26. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  27. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +44 -18
  28. package/dist/components/Input/WInputOptions.vue.d.ts +3 -3
  29. package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
  30. package/dist/components/Link/WLink.vue.d.ts +10 -18
  31. package/dist/components/Link/WLink.vue.d.ts.map +1 -1
  32. package/dist/components/Link/WLink.vue.js +0 -1
  33. package/dist/components/ListCard/WListCard.vue.d.ts +12 -0
  34. package/dist/components/ListCard/WListCard.vue.d.ts.map +1 -1
  35. package/dist/components/ListCard/WListCard.vue.js +17 -8
  36. package/dist/components/MenuItem/WMenuItem.vue.d.ts +6 -12
  37. package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
  38. package/dist/components/MenuItem/WMenuItem.vue.js +0 -1
  39. package/dist/components/Nav/WNavItem.vue.d.ts +10 -20
  40. package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
  41. package/dist/components/Nav/WNavItem.vue.js +0 -1
  42. package/dist/components/Nav/WNavItemExpand.vue.d.ts +7 -15
  43. package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
  44. package/dist/components/Nav/WNavItemExpand.vue.js +0 -1
  45. package/dist/components/Select/WSelectAsync.vue.d.ts +3 -3
  46. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  47. package/dist/components/Select/WSelectAsync.vue.js +1 -1
  48. package/dist/components/Select/WSelectAsyncList.vue.d.ts +3 -3
  49. package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
  50. package/dist/components/Select/WSelectAsyncList.vue.js +1 -1
  51. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +3 -3
  52. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
  53. package/dist/components/Select/components/SelectAsyncList.vue.d.ts +3 -3
  54. package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
  55. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +3 -3
  56. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
  57. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +3 -3
  58. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
  59. package/dist/types/global.d.ts +11 -3
  60. package/dist/utils/useDefaultQuery.d.ts +1 -1
  61. package/dist/utils/useDefaultQuery.d.ts.map +1 -1
  62. package/package.json +2 -2
@@ -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 type ApiErrorDefault = unknown
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 = ApiErrorDefault, TData = TQueryFnData, TQueryKey extends import('@tanstack/vue-query').QueryKey = import('@tanstack/vue-query').QueryKey> =
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 = ApiErrorDefault> = Partial<Parameters<typeof import('../utils/useDefaultQuery').useDefaultQuery<Data, Error>>[0]>
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 = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey>(options: import("@tanstack/vue-query").UseQueryOptions<TQueryFnData, TError, TData, TQueryFnData, TQueryKey>, queryClient?: QueryClient | undefined) => UseQueryReturnType<TData, 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;uBAEL,YAAY,YAAY,MAAM,CAAC,CAAC,CAAC,KAAK,WAAW,WAAW,CAAC,gBAAgB,CAAC,CAAC;CAUrG,CAAA"}
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.0",
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.1.6",
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",