eco-vue-js 0.3.72 → 0.3.74

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,6 +35,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
35
35
  "onCreate:option"?: ((value: string) => any) | undefined;
36
36
  hidePrefix?: boolean | undefined;
37
37
  allowCreate?: boolean | undefined;
38
+ previewData?: Data[] | undefined;
38
39
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
39
40
  attrs: any;
40
41
  slots: Readonly<{
@@ -101,6 +102,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
101
102
  "onCreate:option"?: ((value: string) => any) | undefined;
102
103
  hidePrefix?: boolean | undefined;
103
104
  allowCreate?: boolean | undefined;
105
+ previewData?: Data[] | undefined;
104
106
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
105
107
  expose(exposed: import("vue").ShallowUnwrapRef<{
106
108
  focus: () => void;
@@ -171,6 +173,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
171
173
  "onCreate:option"?: ((value: string) => any) | undefined;
172
174
  hidePrefix?: boolean | undefined;
173
175
  allowCreate?: boolean | undefined;
176
+ previewData?: Data[] | undefined;
174
177
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
175
178
  expose(exposed: import("vue").ShallowUnwrapRef<{
176
179
  focus: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"AAsGA;AAEA,OAAO,EAA0B,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;;;;;;YAuZjD,MAAM;;gBADF,MAAM,EAAE;;;;;;;;;;;;;iBAIP,WAAW;;2BADD,OAAO,KAAK,OAAO;;;;;;;;;;;;;;WA8BrC,GAAG;;yBAtTQ,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;;;sBACG,OAAO;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rF,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;;;sBACG,OAAO;sBAAY,OAAO;mBAAS,OAAO;cAAM,IAAI;;;YAvFjG,QAAQ,QAAQ,MAAM,GAAG,IAAI;YAC7B,UAAU,QAAQ,MAAM,GAAG,IAAI;YAC/B,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,mBAAmB,SAAS,MAAM,EAAE,GAAG,IAAI;YAC3C,eAAe,SAAS,MAAM,GAAG,IAAI;;;;;;;;;;;;oBAwWjC,MAAM;;wBADF,MAAM,EAAE;;;;;;;;;;;;;yBAIP,WAAW;;mCADD,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;aA8B2B,IAAI;eACpE,GAAG;;6BAvTQ,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;;;0BACG,OAAO;0BAAY,OAAO;uBAAS,OAAO;kBAAM,IAAI;;6BADrF,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;;;0BACG,OAAO;0BAAY,OAAO;uBAAS,OAAO;kBAAM,IAAI;;;gBAvFjG,QAAQ,QAAQ,MAAM,GAAG,IAAI;gBAC7B,UAAU,QAAQ,MAAM,GAAG,IAAI;gBAC/B,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,mBAAmB,SAAS,MAAM,EAAE,GAAG,IAAI;gBAC3C,eAAe,SAAS,MAAM,GAAG,IAAI;;;;AAzC3C,wBAub2E"}
@@ -32,7 +32,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
32
  placeholder: {},
33
33
  noMargin: { type: Boolean },
34
34
  icon: {},
35
- mono: { type: Boolean }
35
+ mono: { type: Boolean },
36
+ previewData: {}
36
37
  },
37
38
  emits: ["select", "unselect", "update:search", "update:modelValue", "create:option"],
38
39
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -140,6 +141,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
140
141
  loading: _ctx.loading || isFetchingPrefix.value,
141
142
  "option-component": _ctx.optionComponent,
142
143
  "disable-clear": _ctx.disableClear,
144
+ "preview-data": _ctx.previewData,
143
145
  onUnselect: unselect,
144
146
  "onUpdate:fetching": _cache[0] || (_cache[0] = ($event) => {
145
147
  !$event && updateDropdown();
@@ -156,7 +158,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
156
158
  })
157
159
  ]),
158
160
  _: 3
159
- }, 8, ["use-query-fn", "model-value", "disabled", "loading", "option-component", "disable-clear"])) : createCommentVNode("", true)
161
+ }, 8, ["use-query-fn", "model-value", "disabled", "loading", "option-component", "disable-clear", "preview-data"])) : createCommentVNode("", true)
160
162
  ]),
161
163
  content: withCtx(() => [
162
164
  createVNode(_sfc_main$3, {
@@ -32,6 +32,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
32
32
  searchSize?: number | undefined;
33
33
  "onCreate:option"?: ((value: string) => any) | undefined;
34
34
  allowCreate?: boolean | undefined;
35
+ previewData?: Data | undefined;
35
36
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
36
37
  attrs: any;
37
38
  slots: {
@@ -83,6 +84,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
83
84
  searchSize?: number | undefined;
84
85
  "onCreate:option"?: ((value: string) => any) | undefined;
85
86
  allowCreate?: boolean | undefined;
87
+ previewData?: Data | undefined;
86
88
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
87
89
  expose(exposed: import("vue").ShallowUnwrapRef<{
88
90
  blur: () => void;
@@ -138,6 +140,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
138
140
  searchSize?: number | undefined;
139
141
  "onCreate:option"?: ((value: string) => any) | undefined;
140
142
  allowCreate?: boolean | undefined;
143
+ previewData?: Data | undefined;
141
144
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
142
145
  expose(exposed: import("vue").ShallowUnwrapRef<{
143
146
  blur: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectAsyncSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncSingle.vue"],"names":[],"mappings":"AAqDA;AAEA,OAAO,EAA8B,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;;;;;YAoNrD,MAAM;;gBADF,MAAM,GAAG,IAAI;;;;;;;;;;;;;iBAIZ,WAAW;;2BADD,OAAO,KAAK,OAAO;;;;;;;;;;;;WA6BrC,GAAG;;;;;;YAvDmB,GAAG;uBACJ,GAAG;;;YAtJzB,mBAAmB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAChD,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;OAyM4B,IAAI;;;;;;gBA9BjE,MAAM;;oBADF,MAAM,GAAG,IAAI;;;;;;;;;;;;;qBAIZ,WAAW;;+BADD,OAAO,KAAK,OAAO;;;;;;;;;;;;;;SA4B2B,IAAI;WACpE,GAAG;;;;;;YAvDmB,GAAG;uBACJ,GAAG;;;YAtJzB,mBAAmB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAChD,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;;;;;;;;oBA2KjC,MAAM;;wBADF,MAAM,GAAG,IAAI;;;;;;;;;;;;;yBAIZ,WAAW;;mCADD,OAAO,KAAK,OAAO;;;;;;;;;;;;;;aA4B2B,IAAI;eACpE,GAAG;;;;;;gBAvDmB,GAAG;2BACJ,GAAG;;;gBAtJzB,mBAAmB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;gBAChD,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;AArC3C,wBAoP2E"}
1
+ {"version":3,"file":"WSelectAsyncSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncSingle.vue"],"names":[],"mappings":"AAsDA;AAEA,OAAO,EAA8B,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;;;;;YAqNrD,MAAM;;gBADF,MAAM,GAAG,IAAI;;;;;;;;;;;;;iBAIZ,WAAW;;2BADD,OAAO,KAAK,OAAO;;;;;;;;;;;;;WA8BrC,GAAG;;;;;;YAxDmB,GAAG;uBACJ,GAAG;;;YAtJzB,mBAAmB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAChD,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;OA0M4B,IAAI;;;;;;gBA/BjE,MAAM;;oBADF,MAAM,GAAG,IAAI;;;;;;;;;;;;;qBAIZ,WAAW;;+BADD,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;SA6B2B,IAAI;WACpE,GAAG;;;;;;YAxDmB,GAAG;uBACJ,GAAG;;;YAtJzB,mBAAmB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAChD,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;;;;;;;;oBA2KjC,MAAM;;wBADF,MAAM,GAAG,IAAI;;;;;;;;;;;;;yBAIZ,WAAW;;mCADD,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;aA6B2B,IAAI;eACpE,GAAG;;;;;;gBAxDmB,GAAG;2BACJ,GAAG;;;gBAtJzB,mBAAmB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;gBAChD,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;AAtC3C,wBAsP2E"}
@@ -28,7 +28,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  noMargin: { type: Boolean },
29
29
  icon: {},
30
30
  mono: { type: Boolean },
31
- allowClear: { type: Boolean }
31
+ allowClear: { type: Boolean },
32
+ previewData: {}
32
33
  },
33
34
  emits: ["update:modelValue", "update:search", "create:option"],
34
35
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -80,6 +81,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
81
  icon: _ctx.icon,
81
82
  mono: _ctx.mono,
82
83
  "disable-clear": !_ctx.allowClear,
84
+ "preview-data": _ctx.previewData ? [_ctx.previewData] : void 0,
83
85
  "hide-prefix": "",
84
86
  onSelect: _cache[0] || (_cache[0] = ($event) => updateModelValue($event)),
85
87
  onUnselect: _cache[1] || (_cache[1] = ($event) => updateModelValue(_ctx.allowClear ? null : $event)),
@@ -102,7 +104,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
102
104
  ]),
103
105
  key: "0"
104
106
  } : void 0
105
- ]), 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"])
107
+ ]), 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"])
106
108
  ]);
107
109
  };
108
110
  }
@@ -13,6 +13,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
13
13
  }> | undefined;
14
14
  disableClear?: boolean | undefined;
15
15
  "onUpdate:fetching"?: ((value: boolean) => any) | undefined;
16
+ previewData?: Data[] | undefined;
16
17
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
17
18
  attrs: any;
18
19
  slots: Readonly<{
@@ -46,6 +47,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
46
47
  }> | undefined;
47
48
  disableClear?: boolean | undefined;
48
49
  "onUpdate:fetching"?: ((value: boolean) => any) | undefined;
50
+ previewData?: Data[] | undefined;
49
51
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
50
52
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
51
53
  attrs: any;
@@ -83,6 +85,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
83
85
  }> | undefined;
84
86
  disableClear?: boolean | undefined;
85
87
  "onUpdate:fetching"?: ((value: boolean) => any) | undefined;
88
+ previewData?: Data[] | undefined;
86
89
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
87
90
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
88
91
  attrs: any;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAsyncPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefix.vue"],"names":[],"mappings":"AAyCA;AAEA,OAAO,EAAuB,KAAK,SAAS,EAAkB,MAAM,KAAK,CAAA;;;;;gBAiN3D,MAAM,EAAE;;;;;;;;;;;WAYf,GAAG;;;;sBAvLmC,OAAO;cAAM,IAAI;;;;sBAAjB,OAAO;cAAM,IAAI;;;YAdxD,UAAU,SAAS,MAAM,GAAG,IAAI;YAChC,iBAAiB,SAAS,OAAO,GAAG,IAAI;YACxC,mBAAmB,SAAS,MAAM,EAAE,GAAG,IAAI;;yCAkMjC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;;oBAX3C,MAAM,EAAE;;;;;;;;;;;oBAWN,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;sBAvLmC,OAAO;cAAM,IAAI;;;;sBAAjB,OAAO;cAAM,IAAI;;;YAdxD,UAAU,SAAS,MAAM,GAAG,IAAI;YAChC,iBAAiB,SAAS,OAAO,GAAG,IAAI;YACxC,mBAAmB,SAAS,MAAM,EAAE,GAAG,IAAI;;;;;;;;;;wBAuLnC,MAAM,EAAE;;;;;;;;;;;wBAWN,OAAO,KAAK,EAAE,gBAAgB,CAAC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AM,GAAG,IAAI;gBAChC,iBAAiB,SAAS,OAAO,GAAG,IAAI;gBACxC,mBAAmB,SAAS,MAAM,EAAE,GAAG,IAAI;;;;AArBjD,wBA8N2E"}
@@ -16,7 +16,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
16
  disabled: { type: Boolean },
17
17
  loading: { type: Boolean },
18
18
  optionComponent: {},
19
- disableClear: { type: Boolean }
19
+ disableClear: { type: Boolean },
20
+ previewData: {}
20
21
  },
21
22
  emits: ["unselect", "update:fetching", "update:modelValue"],
22
23
  setup(__props, { emit: __emit }) {
@@ -39,6 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
40
  "disable-clear": _ctx.disableClear,
40
41
  loading: _ctx.loading,
41
42
  disabled: _ctx.disabled,
43
+ "preview-data": _ctx.previewData,
42
44
  onUnselect: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("unselect", $event)),
43
45
  "onUpdate:fetching": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:fetching", $event))
44
46
  }, {
@@ -49,7 +51,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
51
  })
50
52
  ]),
51
53
  _: 3
52
- }, 8, ["use-query-fn", "query-params", "option-component", "disable-clear", "loading", "disabled"]),
54
+ }, 8, ["use-query-fn", "query-params", "option-component", "disable-clear", "loading", "disabled", "preview-data"]),
53
55
  _ctx.modelValue.length > PAGE_LENGTH ? (openBlock(), createElementBlock("div", _hoisted_1, [
54
56
  createElementVNode("div", null, "... " + toDisplayString(unref(numberFormatter).format(_ctx.modelValue.length)) + " items", 1),
55
57
  !_ctx.disableClear && !_ctx.disabled ? (openBlock(), createElementBlock("button", {
@@ -13,6 +13,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
13
13
  disableClear?: boolean | undefined;
14
14
  "onUpdate:pages-count"?: ((value: number) => any) | undefined;
15
15
  "onUpdate:fetching"?: ((value: boolean) => any) | undefined;
16
+ previewData?: Data[] | undefined;
16
17
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
17
18
  attrs: any;
18
19
  slots: Readonly<{
@@ -46,6 +47,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
46
47
  disableClear?: boolean | undefined;
47
48
  "onUpdate:pages-count"?: ((value: number) => any) | undefined;
48
49
  "onUpdate:fetching"?: ((value: boolean) => any) | undefined;
50
+ previewData?: Data[] | undefined;
49
51
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
50
52
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
51
53
  attrs: any;
@@ -83,6 +85,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
83
85
  disableClear?: boolean | undefined;
84
86
  "onUpdate:pages-count"?: ((value: number) => any) | undefined;
85
87
  "onUpdate:fetching"?: ((value: boolean) => any) | undefined;
88
+ previewData?: Data[] | undefined;
86
89
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
87
90
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
88
91
  attrs: any;
@@ -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;;;;;iBA2N5D,WAAW;;;;;;;;;;;WAYnB,GAAG;;;;sBA3LmC,OAAO;cAAM,IAAI;;;;sBAAjB,OAAO;cAAM,IAAI;;;YAxBxD,UAAU,SAAS,MAAM,GAAG,IAAI;YAChC,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,iBAAiB,SAAS,OAAO,GAAG,IAAI;;yCAgN9B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;;qBAX1C,WAAW;;;;;;;;;;;oBAWV,OAAO,KAAK,EAAE,gBAA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ChC,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,iBAAiB,SAAS,OAAO,GAAG,IAAI;;;;;;;;;;yBA8M/B,WAAW;;;;;;;;;;;;wBAYV,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;;;0BA5LmC,OAAO;kBAAM,IAAI;;;;0BAAjB,OAAO;kBAAM,IAAI;;;gBAjCxD,UAAU,SAAS,MAAM,GAAG,IAAI;gBAChC,oBAAoB,SAAS,MAAM,GAAG,IAAI;gBAC1C,iBAAiB,SAAS,OAAO,GAAG,IAAI;;;;AAnB9C,wBAmP2E"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, toRef, computed, watch, onBeforeUnmount, openBlock, createElementBlock, Fragment, renderList, unref, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, createSlots, withCtx, createElementVNode, withModifiers, createVNode, createCommentVNode } from 'vue';
1
+ import { defineComponent, computed, toRef, watch, onBeforeUnmount, openBlock, createElementBlock, Fragment, renderList, unref, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, createSlots, withCtx, createElementVNode, withModifiers, createVNode, createCommentVNode } from 'vue';
2
2
  import IconCancel from '../../../assets/icons/default/IconCancel.svg.js';
3
3
 
4
4
  const _hoisted_1 = ["onClick"];
@@ -11,13 +11,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  disabled: { type: Boolean },
12
12
  loading: { type: Boolean },
13
13
  optionComponent: {},
14
- disableClear: { type: Boolean }
14
+ disableClear: { type: Boolean },
15
+ previewData: {}
15
16
  },
16
17
  emits: ["unselect", "update:pages-count", "update:fetching"],
17
18
  setup(__props, { emit: __emit }) {
18
19
  const props = __props;
19
20
  const emit = __emit;
20
- const { data, isFetching } = props.useQueryFn(toRef(props, "queryParams"));
21
+ const queryEnabled = computed(() => !props.previewData);
22
+ const { data, isFetching } = props.useQueryFn(toRef(props, "queryParams"), {
23
+ enabled: queryEnabled,
24
+ refetchInterval: false,
25
+ refetchOnMount: false,
26
+ refetchOnReconnect: false,
27
+ refetchIntervalInBackground: false,
28
+ refetchOnWindowFocus: false
29
+ });
21
30
  const pagesCount = computed(() => data.value?.pages_count);
22
31
  watch(pagesCount, (value) => {
23
32
  if (value === void 0)
@@ -31,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
31
40
  emit("update:fetching", false);
32
41
  });
33
42
  return (_ctx, _cache) => {
34
- return openBlock(true), createElementBlock(Fragment, null, renderList(unref(data)?.results, (option) => {
43
+ return openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.previewData ?? unref(data)?.results, (option) => {
35
44
  return openBlock(), createElementBlock("div", {
36
45
  key: option.id,
37
46
  class: normalizeClass(["relative flex overflow-hidden items-center text-description", {
@@ -41,14 +50,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
50
  }, [
42
51
  renderSlot(_ctx.$slots, "default", {
43
52
  option,
44
- skeleton: !unref(data)
53
+ skeleton: false
45
54
  }, () => [
46
55
  _ctx.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), {
47
56
  key: 0,
48
57
  option,
49
58
  selected: true,
50
59
  model: true,
51
- skeleton: !unref(data)
60
+ skeleton: false
52
61
  }, createSlots({ _: 2 }, [
53
62
  !_ctx.disableClear && !_ctx.disabled ? {
54
63
  name: "default",
@@ -67,7 +76,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
67
76
  ]),
68
77
  key: "0"
69
78
  } : void 0
70
- ]), 1032, ["option", "skeleton"])) : createCommentVNode("", true)
79
+ ]), 1032, ["option"])) : createCommentVNode("", true)
71
80
  ]),
72
81
  !_ctx.optionComponent && !_ctx.disableClear && !_ctx.disabled ? (openBlock(), createElementBlock("button", {
73
82
  key: 0,
@@ -37,12 +37,12 @@ type Params = Parameters<import('@tanstack/vue-query').QueryClient['setQueriesDa
37
37
 
38
38
  declare type QueryParams = Partial<Record<string, number | string> & {page?: number}>
39
39
 
40
- declare type UseDefaultQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends QueryKey = QueryKey> =
40
+ declare type UseDefaultQuery<TQueryFnData = unknown, TError = unknown, TData = TQueryFnData, TQueryKey extends import('@tanstack/vue-query').QueryKey = import('@tanstack/vue-query').QueryKey> =
41
41
  (...args: Parameters<typeof useQuery<TQueryFnData, TError, TData, TQueryKey>>) => import('@tanstack/vue-query').UseQueryReturnType<TData, TError> & {
42
42
  setData: (updater: TQueryFnData, options?: Params[2]) => ReturnType<import('@tanstack/vue-query').QueryClient['setQueriesData']>
43
43
  }
44
44
 
45
45
  declare type UsePaginatedQuery<Data extends DefaultData = DefaultData> = (
46
46
  queryParams: import('vue').Ref<QueryParams>,
47
- options?: Parameters<UseDefaultQuery<PaginatedResponse<Data>>>[2]
47
+ options?: Partial<Parameters<UseDefaultQuery<PaginatedResponse<Data>>>[0]>
48
48
  ) => ReturnType<UseDefaultQuery<PaginatedResponse<Data>>>
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.3.72",
7
+ "version": "0.3.74",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",
@@ -17,7 +17,7 @@
17
17
  "write-imports": "node write-imports.js"
18
18
  },
19
19
  "peerDependencies": {
20
- "@tanstack/vue-query": "^4.32.0",
20
+ "@tanstack/vue-query": "^5.17.19",
21
21
  "vue": "^3.4.15",
22
22
  "vue-router": "^4.2.5"
23
23
  },