eco-vue-js 0.4.14 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/dist/components/Button/WButtonAction.vue.js +1 -0
  2. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +16 -13
  3. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  4. package/dist/components/InfiniteList/WInfiniteList.vue.js +4 -2
  5. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +16 -13
  6. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
  7. package/dist/components/InfiniteList/WInfiniteListPages.vue.js +4 -2
  8. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +10 -7
  9. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  10. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +5 -3
  11. package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts +29 -17
  12. package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts.map +1 -1
  13. package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.js +1 -1
  14. package/dist/components/InfiniteList/use/useInfiniteListHeader.js +1 -0
  15. package/dist/components/Select/WSelect.vue.d.ts +12 -12
  16. package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
  17. package/dist/components/Select/WSelectAsync.vue.d.ts +7 -4
  18. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  19. package/dist/components/Select/WSelectAsync.vue.js +4 -2
  20. package/dist/components/Select/WSelectAsyncList.vue.d.ts +10 -7
  21. package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
  22. package/dist/components/Select/WSelectAsyncList.vue.js +4 -2
  23. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +7 -4
  24. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
  25. package/dist/components/Select/WSelectAsyncSingle.vue.js +4 -2
  26. package/dist/components/Select/WSelectSingle.vue.d.ts +10 -10
  27. package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
  28. package/dist/components/Select/WSelectSingle.vue.js +1 -1
  29. package/dist/components/Select/components/SelectAsyncList.vue.d.ts +10 -7
  30. package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
  31. package/dist/components/Select/components/SelectAsyncList.vue.js +4 -2
  32. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +7 -4
  33. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
  34. package/dist/components/Select/components/SelectAsyncPrefix.vue.js +4 -2
  35. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +7 -4
  36. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
  37. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +3 -1
  38. package/dist/main.d.ts +1 -0
  39. package/dist/main.d.ts.map +1 -1
  40. package/dist/main.js +1 -0
  41. package/dist/types/global.d.ts +11 -9
  42. package/dist/utils/useDefaultQuery.d.ts +7 -0
  43. package/dist/utils/useDefaultQuery.d.ts.map +1 -0
  44. package/dist/utils/useDefaultQuery.js +12 -0
  45. package/package.json +5 -2
@@ -1,5 +1,5 @@
1
1
  import { type Component } from 'vue';
2
- declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
2
+ declare const _default: <Model extends string | number, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: {
3
3
  required?: boolean | undefined;
4
4
  search: string;
5
5
  title?: string | undefined;
@@ -22,9 +22,10 @@ declare const _default: <Model extends string | number, Data extends DefaultData
22
22
  mobileTitle?: string | undefined;
23
23
  "onUpdate:search"?: ((value: string) => any) | undefined;
24
24
  queryParams: QueryParams;
25
- useQueryFn: UsePaginatedQuery<Data>;
25
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
26
26
  isInvalidPage: (error: unknown) => boolean;
27
27
  emptyStub?: string | undefined;
28
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
28
29
  hideOptionIcon?: boolean | undefined;
29
30
  maxSearchLength?: number | undefined;
30
31
  optionComponent?: Component<{
@@ -93,9 +94,10 @@ declare const _default: <Model extends string | number, Data extends DefaultData
93
94
  mobileTitle?: string | undefined;
94
95
  "onUpdate:search"?: ((value: string) => any) | undefined;
95
96
  queryParams: QueryParams;
96
- useQueryFn: UsePaginatedQuery<Data>;
97
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
97
98
  isInvalidPage: (error: unknown) => boolean;
98
99
  emptyStub?: string | undefined;
100
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
99
101
  hideOptionIcon?: boolean | undefined;
100
102
  maxSearchLength?: number | undefined;
101
103
  optionComponent?: Component<{
@@ -168,9 +170,10 @@ declare const _default: <Model extends string | number, Data extends DefaultData
168
170
  mobileTitle?: string | undefined;
169
171
  "onUpdate:search"?: ((value: string) => any) | undefined;
170
172
  queryParams: QueryParams;
171
- useQueryFn: UsePaginatedQuery<Data>;
173
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
172
174
  isInvalidPage: (error: unknown) => boolean;
173
175
  emptyStub?: string | undefined;
176
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
174
177
  hideOptionIcon?: boolean | undefined;
175
178
  maxSearchLength?: number | undefined;
176
179
  optionComponent?: Component<{
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"AA4GA;AAEA,OAAO,EAA0B,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;;YA8b/C,MAAM;;;;;;gBADF,KAAK,EAAE;0BA6BE,IAAI,KAAK,KAAK;;;;;;;;;;;;;iBAzBtB,WAAW;gBAFZ,kBAAkB,IAAI,CAAC;2BACZ,OAAO,KAAK,OAAO;;;;;gBAQL,IAAI;;;;;;;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;;aA2B0B,IAAI;eACpE,GAAG;;6BA5UQ,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;8BAC7B;gBAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAC;gBAAC,KAAK,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;6BADrF,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;8BAC7B;gBAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAC;gBAAC,KAAK,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;;gBAvFjG,QAAQ,QAAQ,KAAK,GAAG,IAAI;gBAC5B,UAAU,QAAQ,KAAK,GAAG,IAAI;gBAC9B,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;gBAC1C,eAAe,SAAS,MAAM,GAAG,IAAI;;;;AAhE3C,wBAme2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -37,7 +37,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
37
37
  createdData: { default: void 0 },
38
38
  hideOptionIcon: { type: Boolean },
39
39
  valueGetter: { type: Function, default: (data) => data.id },
40
- valueQueryKey: { default: "id__in" }
40
+ valueQueryKey: { default: "id__in" },
41
+ queryOptions: {}
41
42
  },
42
43
  emits: ["select", "unselect", "update:search", "update:modelValue", "create:option"],
43
44
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -181,6 +182,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
181
182
  "allow-create": _ctx.allowCreate && _ctx.search !== "",
182
183
  "hide-option-icon": _ctx.hideOptionIcon,
183
184
  "value-getter": _ctx.valueGetter,
185
+ "query-options": _ctx.queryOptions,
184
186
  onSelect: select,
185
187
  onUnselect: unselect,
186
188
  "onCreate:option": create,
@@ -203,7 +205,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
203
205
  ])
204
206
  ]),
205
207
  _: 3
206
- }, 8, ["model-value", "use-query-fn", "query-params", "is-invalid-page", "loading", "disabled", "empty-stub", "allow-create", "hide-option-icon", "value-getter"])
208
+ }, 8, ["model-value", "use-query-fn", "query-params", "is-invalid-page", "loading", "disabled", "empty-stub", "allow-create", "hide-option-icon", "value-getter", "query-options"])
207
209
  ]),
208
210
  _: 2
209
211
  }, [
@@ -1,4 +1,4 @@
1
- declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
1
+ declare const _default: <Model extends string | number, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: {
2
2
  title?: string | undefined;
3
3
  onSelect?: ((value: Model) => any) | undefined;
4
4
  modelValue: Model[];
@@ -9,10 +9,11 @@ declare const _default: <Model extends string | number, Data extends DefaultData
9
9
  queryParams: QueryParams;
10
10
  selectOnly?: boolean | undefined;
11
11
  unselectOnly?: boolean | undefined;
12
- useQueryFn: UsePaginatedQuery<Data>;
12
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
13
13
  isInvalidPage: (error: unknown) => boolean;
14
14
  emptyStub?: string | undefined;
15
- excludeParams?: string[] | undefined;
15
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
16
+ excludeParams?: (keyof QueryParams)[] | undefined;
16
17
  "onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
17
18
  hideOptionIcon?: boolean | undefined;
18
19
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
@@ -50,10 +51,11 @@ declare const _default: <Model extends string | number, Data extends DefaultData
50
51
  queryParams: QueryParams;
51
52
  selectOnly?: boolean | undefined;
52
53
  unselectOnly?: boolean | undefined;
53
- useQueryFn: UsePaginatedQuery<Data>;
54
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
54
55
  isInvalidPage: (error: unknown) => boolean;
55
56
  emptyStub?: string | undefined;
56
- excludeParams?: string[] | undefined;
57
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
58
+ excludeParams?: (keyof QueryParams)[] | undefined;
57
59
  "onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
58
60
  hideOptionIcon?: boolean | undefined;
59
61
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
@@ -95,10 +97,11 @@ declare const _default: <Model extends string | number, Data extends DefaultData
95
97
  queryParams: QueryParams;
96
98
  selectOnly?: boolean | undefined;
97
99
  unselectOnly?: boolean | undefined;
98
- useQueryFn: UsePaginatedQuery<Data>;
100
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
99
101
  isInvalidPage: (error: unknown) => boolean;
100
102
  emptyStub?: string | undefined;
101
- excludeParams?: string[] | undefined;
103
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
104
+ excludeParams?: (keyof QueryParams)[] | undefined;
102
105
  "onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
103
106
  hideOptionIcon?: boolean | undefined;
104
107
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncList.vue"],"names":[],"mappings":"AAuDA;;;;gBAyOgB,KAAK,EAAE;0BASE,IAAI,KAAK,KAAK;;;;iBANtB,WAAW;;;gBAFZ,kBAAkB,IAAI,CAAC;2BACZ,OAAO,KAAK,OAAO;;;;;;WAevC,GAAG;;2BA3MU;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAA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AAE,GAAG,IAAI;YAC3C,cAAc,SAAS,MAAM,GAAG,IAAI;;;;;;;;;wBAgM1B,KAAK,EAAE;kCASE,IAAI,KAAK,KAAK;;;;yBANtB,WAAW;;;wBAFZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;mCACnC,OAAO,KAAK,OAAO;;2BAQ3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;wBAOzE,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;+BA5MU;gBAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAC;gBAAC,KAAK,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;+BAApF;gBAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAC;gBAAC,KAAK,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;;gBATlG,QAAQ,SAAS,KAAK,GAAG,IAAI;gBAC7B,UAAU,SAAS,KAAK,GAAG,IAAI;gBAC/B,oBAAoB,SAAS,KAAK,EAAE,GAAG,IAAI;gBAC3C,cAAc,SAAS,MAAM,GAAG,IAAI;;;;AAnC1C,wBA0P2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -20,7 +20,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  selectOnly: { type: Boolean },
21
21
  unselectOnly: { type: Boolean },
22
22
  hideOptionIcon: { type: Boolean },
23
- valueGetter: { type: Function, default: (data) => data.id }
23
+ valueGetter: { type: Function, default: (data) => data.id },
24
+ queryOptions: {}
24
25
  },
25
26
  emits: ["select", "unselect", "update:model-value", "update:count"],
26
27
  setup(__props) {
@@ -53,6 +54,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
53
54
  "unselect-only": _ctx.unselectOnly,
54
55
  "hide-option-icon": _ctx.hideOptionIcon,
55
56
  "value-getter": _ctx.valueGetter,
57
+ "query-options": _ctx.queryOptions,
56
58
  "allow-update-selected": "",
57
59
  transition: "",
58
60
  "no-padding": "",
@@ -70,7 +72,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
70
72
  })
71
73
  ]),
72
74
  _: 3
73
- }, 8, ["model-value", "use-query-fn", "is-invalid-page", "query-params", "scrolling-element", "exclude-params", "empty-stub", "select-only", "unselect-only", "hide-option-icon", "value-getter"])
75
+ }, 8, ["model-value", "use-query-fn", "is-invalid-page", "query-params", "scrolling-element", "exclude-params", "empty-stub", "select-only", "unselect-only", "hide-option-icon", "value-getter", "query-options"])
74
76
  ], 512))
75
77
  ]);
76
78
  };
@@ -1,5 +1,5 @@
1
1
  import { type Component } from 'vue';
2
- declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
2
+ declare const _default: <Model extends string | number, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: {
3
3
  required?: boolean | undefined;
4
4
  search: string;
5
5
  title?: string | undefined;
@@ -21,9 +21,10 @@ declare const _default: <Model extends string | number, Data extends DefaultData
21
21
  mobileTitle?: string | undefined;
22
22
  "onUpdate:search"?: ((value: string) => any) | undefined;
23
23
  queryParams: QueryParams;
24
- useQueryFn: UsePaginatedQuery<Data>;
24
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
25
25
  isInvalidPage: (error: unknown) => boolean;
26
26
  emptyStub?: string | undefined;
27
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
27
28
  hideOptionIcon?: boolean | undefined;
28
29
  maxSearchLength?: number | undefined;
29
30
  optionComponent?: Component<{
@@ -77,9 +78,10 @@ declare const _default: <Model extends string | number, Data extends DefaultData
77
78
  mobileTitle?: string | undefined;
78
79
  "onUpdate:search"?: ((value: string) => any) | undefined;
79
80
  queryParams: QueryParams;
80
- useQueryFn: UsePaginatedQuery<Data>;
81
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
81
82
  isInvalidPage: (error: unknown) => boolean;
82
83
  emptyStub?: string | undefined;
84
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
83
85
  hideOptionIcon?: boolean | undefined;
84
86
  maxSearchLength?: number | undefined;
85
87
  optionComponent?: Component<{
@@ -137,9 +139,10 @@ declare const _default: <Model extends string | number, Data extends DefaultData
137
139
  mobileTitle?: string | undefined;
138
140
  "onUpdate:search"?: ((value: string) => any) | undefined;
139
141
  queryParams: QueryParams;
140
- useQueryFn: UsePaginatedQuery<Data>;
142
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
141
143
  isInvalidPage: (error: unknown) => boolean;
142
144
  emptyStub?: string | undefined;
145
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
143
146
  hideOptionIcon?: boolean | undefined;
144
147
  maxSearchLength?: number | undefined;
145
148
  optionComponent?: Component<{
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectAsyncSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncSingle.vue"],"names":[],"mappings":"AA0DA;AAEA,OAAO,EAA8B,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;;YAyNrD,MAAM;;;;;gBADF,KAAK,GAAG,IAAI;0BA4BH,IAAI,KAAK,KAAK;;;;;;;;;;;;;iBAxBtB,WAAW;gBAFZ,kBAAkB,IAAI,CAAC;2BACZ,OAAO,KAAK,OAAO;;;;;gBAQL,IAAI;;;;;;;;;;;WA0BpC,GAAG;;;;;;YA5DmB,GAAG;uBACJ,GAAG;;;YAtJzB,mBAAmB,SAAS,KAAK,GAAG,IAAI,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zB,mBAAmB,SAAS,KAAK,GAAG,IAAI,GAAG,IAAI;gBAC/C,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;AA3C3C,wBAgQ2E"}
@@ -33,7 +33,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
33
  createdData: {},
34
34
  hideOptionIcon: { type: Boolean },
35
35
  valueGetter: { type: Function },
36
- valueQueryKey: {}
36
+ valueQueryKey: {},
37
+ queryOptions: {}
37
38
  },
38
39
  emits: ["update:modelValue", "update:search", "create:option"],
39
40
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -90,6 +91,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
90
91
  "hide-option-icon": _ctx.hideOptionIcon,
91
92
  "value-getter": _ctx.valueGetter,
92
93
  "value-query-key": _ctx.valueQueryKey,
94
+ "query-options": _ctx.queryOptions,
93
95
  "hide-prefix": "",
94
96
  onSelect: _cache[0] || (_cache[0] = ($event) => updateModelValue($event)),
95
97
  onUnselect: _cache[1] || (_cache[1] = ($event) => _ctx.allowClear && updateModelValue(null)),
@@ -112,7 +114,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
112
114
  ]),
113
115
  key: "0"
114
116
  } : void 0
115
- ]), 1032, ["model-value", "search", "title", "mobile-title", "description", "loading", "max-search-length", "empty-stub", "query-params", "use-query-fn", "is-invalid-page", "option-component", "readonly", "disabled", "skeleton", "allow-create", "error-message", "has-changes", "placeholder", "search-size", "required", "no-margin", "icon", "mono", "disable-clear", "preview-data", "created-data", "hide-option-icon", "value-getter", "value-query-key"])
117
+ ]), 1032, ["model-value", "search", "title", "mobile-title", "description", "loading", "max-search-length", "empty-stub", "query-params", "use-query-fn", "is-invalid-page", "option-component", "readonly", "disabled", "skeleton", "allow-create", "error-message", "has-changes", "placeholder", "search-size", "required", "no-margin", "icon", "mono", "disable-clear", "preview-data", "created-data", "hide-option-icon", "value-getter", "value-query-key", "query-options"])
116
118
  ]);
117
119
  };
118
120
  }
@@ -1,11 +1,11 @@
1
1
  import { type Component } from 'vue';
2
- declare const _default: <Item extends string | number = string>(__VLS_props: {
2
+ declare const _default: <Item extends string | number, AllowClear extends boolean = false>(__VLS_props: {
3
3
  required?: boolean | undefined;
4
4
  search: string;
5
5
  title?: string | undefined;
6
6
  disabled?: boolean | undefined;
7
7
  loading?: boolean | undefined;
8
- "onUpdate:modelValue"?: ((value: Item | null) => any) | undefined;
8
+ "onUpdate:modelValue"?: ((value: AllowClear extends true ? Item | null : Item) => any) | undefined;
9
9
  modelValue: Item | null;
10
10
  icon?: SVGComponent | undefined;
11
11
  readonly?: boolean | undefined;
@@ -14,7 +14,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
14
14
  placeholder?: string | undefined;
15
15
  errorMessage?: string | undefined;
16
16
  hasChanges?: boolean | undefined;
17
- allowClear?: boolean | undefined;
17
+ allowClear?: AllowClear | undefined;
18
18
  mono?: boolean | undefined;
19
19
  noMargin?: boolean | undefined;
20
20
  mobileTitle?: string | undefined;
@@ -42,7 +42,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
42
42
  right?(_: {}): any;
43
43
  };
44
44
  emit: {
45
- (e: 'update:modelValue', value: Item | null): void;
45
+ (e: 'update:modelValue', value: AllowClear extends true ? Item | null : Item): void;
46
46
  (e: 'update:search', value: string): void;
47
47
  (e: 'create:option', value: string): void;
48
48
  };
@@ -55,7 +55,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
55
55
  title?: string | undefined;
56
56
  disabled?: boolean | undefined;
57
57
  loading?: boolean | undefined;
58
- "onUpdate:modelValue"?: ((value: Item | null) => any) | undefined;
58
+ "onUpdate:modelValue"?: ((value: AllowClear extends true ? Item | null : Item) => any) | undefined;
59
59
  modelValue: Item | null;
60
60
  icon?: SVGComponent | undefined;
61
61
  readonly?: boolean | undefined;
@@ -64,7 +64,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
64
64
  placeholder?: string | undefined;
65
65
  errorMessage?: string | undefined;
66
66
  hasChanges?: boolean | undefined;
67
- allowClear?: boolean | undefined;
67
+ allowClear?: AllowClear | undefined;
68
68
  mono?: boolean | undefined;
69
69
  noMargin?: boolean | undefined;
70
70
  mobileTitle?: string | undefined;
@@ -95,7 +95,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
95
95
  right?(_: {}): any;
96
96
  };
97
97
  emit: {
98
- (e: 'update:modelValue', value: Item | null): void;
98
+ (e: 'update:modelValue', value: AllowClear extends true ? Item | null : Item): void;
99
99
  (e: 'update:search', value: string): void;
100
100
  (e: 'create:option', value: string): void;
101
101
  };
@@ -109,7 +109,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
109
109
  title?: string | undefined;
110
110
  disabled?: boolean | undefined;
111
111
  loading?: boolean | undefined;
112
- "onUpdate:modelValue"?: ((value: Item | null) => any) | undefined;
112
+ "onUpdate:modelValue"?: ((value: AllowClear extends true ? Item | null : Item) => any) | undefined;
113
113
  modelValue: Item | null;
114
114
  icon?: SVGComponent | undefined;
115
115
  readonly?: boolean | undefined;
@@ -118,7 +118,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
118
118
  placeholder?: string | undefined;
119
119
  errorMessage?: string | undefined;
120
120
  hasChanges?: boolean | undefined;
121
- allowClear?: boolean | undefined;
121
+ allowClear?: AllowClear | undefined;
122
122
  mono?: boolean | undefined;
123
123
  noMargin?: boolean | undefined;
124
124
  mobileTitle?: string | undefined;
@@ -149,7 +149,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
149
149
  right?(_: {}): any;
150
150
  };
151
151
  emit: {
152
- (e: 'update:modelValue', value: Item | null): void;
152
+ (e: 'update:modelValue', value: AllowClear extends true ? Item | null : Item): void;
153
153
  (e: 'update:search', value: string): void;
154
154
  (e: 'create:option', value: string): void;
155
155
  };
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectSingle.vue"],"names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AI,EAAE;;;gBAOsB,IAAI;;;;;;;;WAsBpC,GAAG;;;;;;YAtDmB,GAAG;uBACJ,GAAG;;;YAxJzB,mBAAmB,wDAAoB,IAAI;YAC3C,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;OA0M4B,IAAI;;;gBA7BjE,MAAM;;;;;oBADF,IAAI,GAAG,IAAI;;;;;;;;;;;;;;;iBAEd,IAAI,EAAE;;;oBAOsB,IAAI;;;;;;;;;;SAqB4B,IAAI;WACpE,GAAG;;;;;;YAtDmB,GAAG;uBACJ,GAAG;;;YAxJzB,mBAAmB,wDAAoB,IAAI;YAC3C,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;;;;;oBA6KjC,MAAM;;;;;wBADF,IAAI,GAAG,IAAI;;;;;;;;;;;;;;;qBAEd,IAAI,EAAE;;;wBAOsB,IAAI;;;;;;;;;;aAqB4B,IAAI;eACpE,GAAG;;;;;;gBAtDmB,GAAG;2BACJ,GAAG;;;gBAxJzB,mBAAmB,wDAAoB,IAAI;gBAC3C,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;AAtC3C,wBAsP2E"}
@@ -26,7 +26,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
26
26
  noMargin: { type: Boolean },
27
27
  icon: {},
28
28
  mono: { type: Boolean },
29
- allowClear: { type: Boolean },
29
+ allowClear: {},
30
30
  hideOptionIcon: { type: Boolean }
31
31
  },
32
32
  emits: ["update:modelValue", "update:search", "create:option"],
@@ -1,4 +1,4 @@
1
- declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
1
+ declare const _default: <Model extends string | number, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: {
2
2
  onSelect?: ((value: Model) => any) | undefined;
3
3
  transition?: boolean | undefined;
4
4
  disabled?: boolean | undefined;
@@ -12,10 +12,11 @@ declare const _default: <Model extends string | number, Data extends DefaultData
12
12
  queryParams: QueryParams;
13
13
  selectOnly?: boolean | undefined;
14
14
  unselectOnly?: boolean | undefined;
15
- useQueryFn: UsePaginatedQuery<Data>;
15
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
16
16
  isInvalidPage: (error: unknown) => boolean;
17
17
  emptyStub?: string | undefined;
18
- excludeParams?: string[] | undefined;
18
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
19
+ excludeParams?: (keyof QueryParams)[] | undefined;
19
20
  hideOptionIcon?: boolean | undefined;
20
21
  "onCreate:option"?: (() => any) | undefined;
21
22
  allowCreate?: boolean | undefined;
@@ -61,10 +62,11 @@ declare const _default: <Model extends string | number, Data extends DefaultData
61
62
  queryParams: QueryParams;
62
63
  selectOnly?: boolean | undefined;
63
64
  unselectOnly?: boolean | undefined;
64
- useQueryFn: UsePaginatedQuery<Data>;
65
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
65
66
  isInvalidPage: (error: unknown) => boolean;
66
67
  emptyStub?: string | undefined;
67
- excludeParams?: string[] | undefined;
68
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
69
+ excludeParams?: (keyof QueryParams)[] | undefined;
68
70
  hideOptionIcon?: boolean | undefined;
69
71
  "onCreate:option"?: (() => any) | undefined;
70
72
  allowCreate?: boolean | undefined;
@@ -114,10 +116,11 @@ declare const _default: <Model extends string | number, Data extends DefaultData
114
116
  queryParams: QueryParams;
115
117
  selectOnly?: boolean | undefined;
116
118
  unselectOnly?: boolean | undefined;
117
- useQueryFn: UsePaginatedQuery<Data>;
119
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
118
120
  isInvalidPage: (error: unknown) => boolean;
119
121
  emptyStub?: string | undefined;
120
- excludeParams?: string[] | undefined;
122
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
123
+ excludeParams?: (keyof QueryParams)[] | undefined;
121
124
  hideOptionIcon?: boolean | undefined;
122
125
  "onCreate:option"?: (() => any) | undefined;
123
126
  allowCreate?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncList.vue"],"names":[],"mappings":"AA4FA;;;;;;;gBA0Zc,KAAK,EAAE;wBAeC,IAAI,KAAK,KAAK;;;;iBAbrB,WAAW;;;gBADZ,kBAAkB,IAAI,CAAC;2BAEZ,OAAO,KAAK,OAAO;;;;;;;;WAoBrC,GAAG;;2BA1TU;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;2BAApE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YArFlF,QAAQ,SAAS,KAAK,GAAG,IAAI;YAC7B,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC1C,eAAe,GAAG,IAAI;;;;;;OA0Y2C,IAAI;;;;;;;oBAtB7D,KAAK,EAAE;4BAeC,IAAI,KAAK,KAAK;;;;qBAbrB,WAAW;;;oBADZ,kBAAkB,IAAI,CAAC;+BAEZ,OAAO,KAAK,OAAO;;;;;;;;;;;;SAmB2B,IAAI;WACpE,GAAG;;2BA1TU;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;2BAApE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAA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YAC1C,eAAe,GAAG,IAAI;;;;;;;;;;;;wBAoXd,KAAK,EAAE;gCAeC,IAAI,KAAK,KAAK;;;;yBAbrB,WAAW;;;wBADZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;mCAEnC,OAAO,KAAK,OAAO;;2BAa3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;aAOhB,IAAI;eACpE,GAAG;;+BA3TU;gBAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;+BAApE;gBAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;;gBArFlF,QAAQ,SAAS,KAAK,GAAG,IAAI;gBAC7B,UAAU,SAAS,KAAK,GAAG,IAAI;gBAC/B,cAAc,SAAS,MAAM,GAAG,IAAI;gBACpC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;gBAC1C,eAAe,GAAG,IAAI;;;;AA/B5B,wBAgb2E"}
@@ -23,7 +23,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
23
  unselectOnly: { type: Boolean },
24
24
  allowCreate: { type: Boolean },
25
25
  hideOptionIcon: { type: Boolean },
26
- valueGetter: { type: Function }
26
+ valueGetter: { type: Function },
27
+ queryOptions: {}
27
28
  },
28
29
  emits: ["select", "unselect", "update:count", "update:modelValue", "create:option"],
29
30
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -103,6 +104,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
103
104
  "select-only": _ctx.selectOnly,
104
105
  "unselect-only": _ctx.unselectOnly,
105
106
  "value-getter": _ctx.valueGetter,
107
+ "query-options": _ctx.queryOptions,
106
108
  "hide-page-title": "",
107
109
  "header-top-ignore": "",
108
110
  "min-height": "",
@@ -158,7 +160,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
158
160
  }, 1032, ["is-selected", "is-cursor", "loading", "skeleton", "scroll", "first", "last", "previous", "next", "is-no-cursor", "hide-option-icon", "class", "onSelect", "onUnselect", "onMouseenter", "onUpdate:cursor", "onUnmounted", "onUpdate:first", "onUpdate:last"])
159
161
  ]),
160
162
  _: 3
161
- }, 8, ["use-query-fn", "query-params", "is-invalid-page", "scrolling-element", "transition", "exclude-params", "selected", "empty-stub", "select-only", "unselect-only", "value-getter"]),
163
+ }, 8, ["use-query-fn", "query-params", "is-invalid-page", "scrolling-element", "transition", "exclude-params", "selected", "empty-stub", "select-only", "unselect-only", "value-getter", "query-options"]),
162
164
  _ctx.allowCreate ? (openBlock(), createBlock(_sfc_main$2, {
163
165
  key: 0,
164
166
  "is-selected": false,
@@ -1,12 +1,13 @@
1
1
  import { type Component } from 'vue';
2
- declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
2
+ declare const _default: <Model extends string | number, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: {
3
3
  disabled?: boolean | undefined;
4
4
  loading?: boolean | undefined;
5
5
  "onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
6
6
  modelValue: Model[];
7
7
  valueGetter: (value: Data) => Model;
8
8
  onUnselect?: ((value: Model) => any) | undefined;
9
- useQueryFn: UsePaginatedQuery<Data>;
9
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
10
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
10
11
  optionComponent?: Component<{
11
12
  option: Data;
12
13
  selected?: boolean | undefined;
@@ -43,7 +44,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
43
44
  modelValue: Model[];
44
45
  valueGetter: (value: Data) => Model;
45
46
  onUnselect?: ((value: Model) => any) | undefined;
46
- useQueryFn: UsePaginatedQuery<Data>;
47
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
48
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
47
49
  optionComponent?: Component<{
48
50
  option: Data;
49
51
  selected?: boolean | undefined;
@@ -84,7 +86,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
84
86
  modelValue: Model[];
85
87
  valueGetter: (value: Data) => Model;
86
88
  onUnselect?: ((value: Model) => any) | undefined;
87
- useQueryFn: UsePaginatedQuery<Data>;
89
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
90
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
88
91
  optionComponent?: Component<{
89
92
  option: Data;
90
93
  selected?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAsyncPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefix.vue"],"names":[],"mappings":"AA4CA;AAEA,OAAO,EAAuB,KAAK,SAAS,EAAkB,MAAM,KAAK,CAAA;;;;;gBAqN3D,KAAK,EAAE;yBAOE,IAAI,KAAK,KAAK;;gBARvB,kBAAkB,IAAI,CAAC;;gBAIE,IAAI;;;;;;;;mBAK1B,MAAM;;WAQhB,GAAG;;2BA3LU;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;2BAA1C;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YAdxD,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,iBAAiB,SAAS,OAAO,GAAG,IAAI;YACxC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;;yCAsMhC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;;oBAf3C,KAAK,EAAE;6BAOE,IAAI,KAAK,KAAK;;oBARv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I,EAAE,QAAQ,EAAE,WAAW,CAAC;2BAU3C,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;wBANhD,IAAI;;;;;;;;2BAK1B,MAAM;;wBAQP,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;+BA5LU;gBAAC,MAAM,EAAE,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;+BAA1C;gBAAC,MAAM,EAAE,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;;gBAdxD,UAAU,SAAS,KAAK,GAAG,IAAI;gBAC/B,iBAAiB,SAAS,OAAO,GAAG,IAAI;gBACxC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;;;;AAzBhD,wBAsO2E"}
@@ -20,7 +20,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  previewData: {},
21
21
  createdData: {},
22
22
  valueGetter: { type: Function },
23
- valueQueryKey: {}
23
+ valueQueryKey: {},
24
+ queryOptions: {}
24
25
  },
25
26
  emits: ["unselect", "update:fetching", "update:modelValue"],
26
27
  setup(__props, { emit: __emit }) {
@@ -46,6 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
46
47
  "preview-data": _ctx.previewData,
47
48
  "created-data": _ctx.createdData,
48
49
  "value-getter": _ctx.valueGetter,
50
+ "query-options": _ctx.queryOptions,
49
51
  onUnselect: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("unselect", $event)),
50
52
  "onUpdate:fetching": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:fetching", $event))
51
53
  }, {
@@ -56,7 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
56
58
  })
57
59
  ]),
58
60
  _: 3
59
- }, 8, ["use-query-fn", "query-params", "option-component", "disable-clear", "loading", "disabled", "preview-data", "created-data", "value-getter"]),
61
+ }, 8, ["use-query-fn", "query-params", "option-component", "disable-clear", "loading", "disabled", "preview-data", "created-data", "value-getter", "query-options"]),
60
62
  _ctx.modelValue.length > PAGE_LENGTH ? (openBlock(), createElementBlock("div", _hoisted_1, [
61
63
  createElementVNode("div", null, "... " + toDisplayString(unref(numberFormatter).format(_ctx.modelValue.length)) + " items", 1),
62
64
  !_ctx.disableClear && !_ctx.disabled ? (openBlock(), createElementBlock("button", {
@@ -1,11 +1,12 @@
1
1
  import { type Component } from 'vue';
2
- declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
2
+ declare const _default: <Model extends string | number, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: {
3
3
  disabled?: boolean | undefined;
4
4
  loading?: boolean | undefined;
5
5
  valueGetter: (value: Data) => Model;
6
6
  onUnselect?: ((value: Model) => any) | undefined;
7
7
  queryParams: QueryParams;
8
- useQueryFn: UsePaginatedQuery<Data>;
8
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
9
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
9
10
  optionComponent?: Component<{
10
11
  option: Data;
11
12
  selected?: boolean | undefined;
@@ -41,7 +42,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
41
42
  valueGetter: (value: Data) => Model;
42
43
  onUnselect?: ((value: Model) => any) | undefined;
43
44
  queryParams: QueryParams;
44
- useQueryFn: UsePaginatedQuery<Data>;
45
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
46
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
45
47
  optionComponent?: Component<{
46
48
  option: Data;
47
49
  selected?: boolean | undefined;
@@ -81,7 +83,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
81
83
  valueGetter: (value: Data) => Model;
82
84
  onUnselect?: ((value: Model) => any) | undefined;
83
85
  queryParams: QueryParams;
84
- useQueryFn: UsePaginatedQuery<Data>;
86
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
87
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
85
88
  optionComponent?: Component<{
86
89
  option: Data;
87
90
  selected?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAsyncPrefixPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefixPage.vue"],"names":[],"mappings":"AAwDA;AAEA,OAAO,EAAyB,KAAK,SAAS,EAAkB,MAAM,KAAK,CAAA;;;;yBA8OpD,IAAI,KAAK,KAAK;;iBAPtB,WAAW;gBADZ,kBAAkB,IAAI,CAAC;;gBAIE,IAAI;;;;;;;;;;WAYpC,GAAG;;2BA9LU;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;2BAA1C;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YAjCxD,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,iBAAiB,SAAS,OAAO,GAAG,IAAI;;yCA4N9B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;6BAPlC,IAAI,KAAK,KAAK;;qBAPtB,WAAW;oBADZ,kBAAkB,IAAI,CAAC;;oBAIE,IAAI;;;;;;;;;;oBAW3B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;2BA9LU;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;2BAA1C;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YAjCxD,UAAU,SAAS,KAAK,GAAG,IAAI;Y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U,SAAS,KAAK,GAAG,IAAI;gBAC/B,oBAAoB,SAAS,MAAM,GAAG,IAAI;gBAC1C,iBAAiB,SAAS,OAAO,GAAG,IAAI;;;;AAtB9C,wBA0P2E"}
@@ -14,7 +14,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  disableClear: { type: Boolean },
15
15
  previewData: {},
16
16
  createdData: {},
17
- valueGetter: { type: Function }
17
+ valueGetter: { type: Function },
18
+ queryOptions: {}
18
19
  },
19
20
  emits: ["unselect", "update:pages-count", "update:fetching"],
20
21
  setup(__props, { emit: __emit }) {
@@ -22,6 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
23
  const emit = __emit;
23
24
  const queryEnabled = computed(() => !props.previewData);
24
25
  const { data, isFetching } = props.useQueryFn(toRef(props, "queryParams"), {
26
+ ...props.queryOptions ?? {},
25
27
  enabled: queryEnabled,
26
28
  refetchInterval: false,
27
29
  refetchOnMount: false,
package/dist/main.d.ts CHANGED
@@ -8,5 +8,6 @@ export * from './utils/SemanticType';
8
8
  export * from './utils/HorizontalAlign';
9
9
  export * from './utils/dateTime';
10
10
  export * from './utils/mobile';
11
+ export * from './utils/useDefaultQuery';
11
12
  export * from './utils/utils';
12
13
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAC9C,cAAc,4BAA4B,CAAA;AAE1C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAA;AACtD,OAAO,KAAK,QAAQ,MAAM,oBAAoB,CAAA;AAC9C,cAAc,4BAA4B,CAAA;AAE1C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,8BAA8B,CAAA;AAC5C,cAAc,sBAAsB,CAAA;AACpC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,yBAAyB,CAAA;AACvC,cAAc,eAAe,CAAA"}
package/dist/main.js CHANGED
@@ -70,4 +70,5 @@ export { SemanticType } from './utils/SemanticType.js';
70
70
  export { HorizontalAlign } from './utils/HorizontalAlign.js';
71
71
  export { Month, WeekDay, addDay, addMonth, addYear, dateFormat, dateFormatter, dateRegexp, dateToQueryString, datetimeFormat, durationHumanize, getDurationRound, getStartOfDay, getStartOfMonth, getStartOfWeek, isSameDate, isSameMonth, isSameYear, monthShortFormatter, parseDate, timeFormat, weekdayShortFormatter } from './utils/dateTime.js';
72
72
  export { getIsMobile, getIsTouchDevice } from './utils/mobile.js';
73
+ export { useDefaultQuery } from './utils/useDefaultQuery.js';
73
74
  export { debounce, genId, getAllScrollParents, getScrollParent, hasParent, isClientSide, isEqualArr, isEqualObj, numberCompactFormatter, numberFormatter, percentCompactFormatter, throttle } from './utils/utils.js';