eco-vue-js 0.4.15 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Button/WButtonAction.vue.js +1 -0
- 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/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 +46 -19
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +16 -7
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +34 -16
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.js +29 -13
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +49 -31
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +47 -19
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts +29 -17
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPageTitle.vue.js +1 -1
- package/dist/components/InfiniteList/use/useInfiniteListHeader.js +1 -0
- package/dist/components/Input/WInputOptions.vue.d.ts +3 -3
- package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -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/Select/WSelectAsync.vue.d.ts +10 -7
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +4 -2
- package/dist/components/Select/WSelectAsyncList.vue.d.ts +13 -10
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncList.vue.js +4 -2
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +10 -7
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue.js +4 -2
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts +13 -10
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.js +4 -2
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +10 -7
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefix.vue.js +4 -2
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +10 -7
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +3 -1
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +1 -0
- package/dist/types/global.d.ts +11 -9
- package/dist/utils/useDefaultQuery.d.ts +7 -0
- package/dist/utils/useDefaultQuery.d.ts.map +1 -0
- package/dist/utils/useDefaultQuery.js +12 -0
- package/package.json +4 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, ref, toRef, computed, watch, onMounted, nextTick, onBeforeUnmount, openBlock, createElementBlock, unref, Fragment, createElementVNode,
|
1
|
+
import { defineComponent, ref, toRef, computed, watch, onMounted, nextTick, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, unref, Fragment, createElementVNode, createBlock, createCommentVNode, TransitionGroup, withCtx, renderList, renderSlot, toDisplayString } from 'vue';
|
2
2
|
import _sfc_main$2 from './InfiniteListPageTitle.vue.js';
|
3
3
|
import _sfc_main$1 from './InfiniteListPageSelection.vue.js';
|
4
4
|
|
@@ -28,22 +28,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
28
|
pageClass: { default: void 0 },
|
29
29
|
refetchInterval: { type: [Number, Boolean], default: void 0 },
|
30
30
|
scrollingElement: { default: void 0 },
|
31
|
-
valueGetter: {}
|
31
|
+
valueGetter: {},
|
32
|
+
queryOptions: { default: void 0 }
|
32
33
|
},
|
33
|
-
emits: ["update:count", "update:
|
34
|
+
emits: ["update:count", "update:pages-count", "update:next-page", "update:previous-page", "update:scroll", "remove:page", "refetch", "update-from-header:scroll", "update:selected", "fetched"],
|
34
35
|
setup(__props, { expose: __expose, emit: __emit }) {
|
35
36
|
const props = __props;
|
36
37
|
const emit = __emit;
|
37
38
|
const element = ref();
|
39
|
+
const resultElement = ref([]);
|
38
40
|
const isIntersecting = ref(false);
|
39
41
|
const { data, error, setData, refetch, isFetching } = props.useQueryFn(
|
40
42
|
toRef(props, "queryParams"),
|
41
43
|
{
|
44
|
+
...props.queryOptions ?? {},
|
42
45
|
refetchInterval: props.refetchInterval ? computed(() => isIntersecting.value ? props.refetchInterval : void 0) : void 0
|
43
46
|
}
|
44
47
|
);
|
45
48
|
const nextPage = computed(() => data.value?.next);
|
46
49
|
const previousPage = computed(() => data.value?.previous);
|
50
|
+
const page = computed(() => props.queryParams instanceof Object && "page" in props.queryParams && Number.isInteger(props.queryParams.page) ? props.queryParams.page : null);
|
47
51
|
const setItem = (index, newItem) => {
|
48
52
|
if (!data.value)
|
49
53
|
return;
|
@@ -63,9 +67,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
63
67
|
const refetchPage = async () => {
|
64
68
|
await refetch();
|
65
69
|
if (props.lastPage && nextPage.value !== void 0)
|
66
|
-
emit("update:
|
70
|
+
emit("update:next-page", nextPage.value);
|
67
71
|
if (props.firstPage && previousPage.value !== void 0)
|
68
|
-
emit("update:
|
72
|
+
emit("update:previous-page", previousPage.value);
|
69
73
|
};
|
70
74
|
const getFirst = () => {
|
71
75
|
if (!data.value)
|
@@ -77,19 +81,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
77
81
|
return void 0;
|
78
82
|
return data.value.results[data.value.results.length - 1];
|
79
83
|
};
|
84
|
+
const scrollTo = (index) => {
|
85
|
+
if (index) {
|
86
|
+
if (index !== -1 && resultElement.value[index]) {
|
87
|
+
resultElement.value[index].scrollIntoView({ block: "center", behavior: "smooth" });
|
88
|
+
return;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
element.value?.scrollIntoView({ block: "center", behavior: "smooth" });
|
92
|
+
};
|
80
93
|
watch(data, (value) => {
|
81
94
|
if (props.firstPage && value?.previous !== void 0)
|
82
|
-
emit("update:
|
95
|
+
emit("update:previous-page", value.previous);
|
83
96
|
if (props.lastPage && value?.next !== void 0)
|
84
|
-
emit("update:
|
85
|
-
if (value?.pages_count)
|
86
|
-
emit("update:
|
97
|
+
emit("update:next-page", value.next);
|
98
|
+
if (value?.pages_count !== void 0)
|
99
|
+
emit("update:pages-count", value.pages_count);
|
87
100
|
if (value?.count !== void 0)
|
88
101
|
emit("update:count", value.count);
|
89
102
|
}, { immediate: true });
|
90
103
|
watch(error, (error2) => {
|
91
|
-
if (props.isInvalidPage(error2))
|
92
|
-
emit("
|
104
|
+
if (props.isInvalidPage(error2) && page.value !== null)
|
105
|
+
emit("remove:page", page.value);
|
93
106
|
}, { immediate: true });
|
94
107
|
watch(isFetching, (value) => {
|
95
108
|
if (value)
|
@@ -123,7 +136,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
123
136
|
if (!props.firstPage)
|
124
137
|
return;
|
125
138
|
if (props.lastPage) {
|
126
|
-
if (
|
139
|
+
if (page.value !== 1)
|
127
140
|
nextTick().then(() => emit("update-from-header:scroll"));
|
128
141
|
return;
|
129
142
|
}
|
@@ -132,6 +145,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
132
145
|
onBeforeUnmount(() => {
|
133
146
|
intersectionObserver?.disconnect();
|
134
147
|
intersectionObserver = void 0;
|
148
|
+
if (page.value !== null)
|
149
|
+
emit("remove:page", page.value);
|
135
150
|
});
|
136
151
|
watch(data, async (_, oldValue) => {
|
137
152
|
if (oldValue)
|
@@ -149,15 +164,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
149
164
|
__expose({
|
150
165
|
getFirst,
|
151
166
|
getLast,
|
152
|
-
refetch: refetchPage
|
167
|
+
refetch: refetchPage,
|
168
|
+
scrollTo
|
153
169
|
});
|
154
170
|
return (_ctx, _cache) => {
|
155
171
|
return openBlock(), createElementBlock("div", {
|
156
172
|
ref_key: "element",
|
157
173
|
ref: element,
|
158
|
-
class: "relative"
|
174
|
+
class: normalizeClass(["relative", {
|
175
|
+
"last:min-h-[calc(100vh-var(--header-height)-var(--infinite-list-header-height))] last:pb-16": !_ctx.minHeight,
|
176
|
+
"last:min-h-full": _ctx.minHeight && !unref(data)
|
177
|
+
}])
|
159
178
|
}, [
|
160
|
-
|
179
|
+
page.value && unref(data)?.results.length !== 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
161
180
|
createElementVNode("div", {
|
162
181
|
class: normalizeClass(["flex", {
|
163
182
|
"sm:pt-4": (_ctx.selected === void 0 || !_ctx.allowPageSelection) && _ctx.hidePageTitle && !_ctx.noGap
|
@@ -200,6 +219,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
200
219
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(data).results, (item, index) => {
|
201
220
|
return openBlock(), createElementBlock("div", {
|
202
221
|
key: _ctx.valueGetter(item),
|
222
|
+
ref_for: true,
|
223
|
+
ref_key: "resultElement",
|
224
|
+
ref: resultElement,
|
203
225
|
class: "w-full group"
|
204
226
|
}, [
|
205
227
|
createElementVNode("div", _hoisted_1, [
|
@@ -211,7 +233,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
211
233
|
next: unref(data)?.results[index + 1],
|
212
234
|
previous: unref(data)?.results[index - 1],
|
213
235
|
first: _ctx.firstPage && index === 0,
|
214
|
-
last: _ctx.lastPage && index === unref(data).results.length - 1
|
236
|
+
last: _ctx.lastPage && index === unref(data).results.length - 1,
|
237
|
+
page: page.value,
|
238
|
+
index
|
215
239
|
})
|
216
240
|
])
|
217
241
|
]);
|
@@ -228,7 +252,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
228
252
|
next: unref(data)?.results[index + 1],
|
229
253
|
previous: unref(data)?.results[index - 1],
|
230
254
|
first: _ctx.firstPage && index === 0,
|
231
|
-
last: _ctx.lastPage && index === unref(data).results.length - 1
|
255
|
+
last: _ctx.lastPage && index === unref(data).results.length - 1,
|
256
|
+
page: page.value,
|
257
|
+
index
|
232
258
|
});
|
233
259
|
}), 128))
|
234
260
|
], 64)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.skeletonLength, (index) => {
|
@@ -241,7 +267,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
241
267
|
next: void 0,
|
242
268
|
previous: void 0,
|
243
269
|
first: _ctx.firstPage && index === 1,
|
244
|
-
last: _ctx.lastPage && index === _ctx.skeletonLength
|
270
|
+
last: _ctx.lastPage && index === _ctx.skeletonLength,
|
271
|
+
page: page.value,
|
272
|
+
index
|
245
273
|
});
|
246
274
|
}), 128))
|
247
275
|
], 2)
|
@@ -254,7 +282,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
254
282
|
}, [
|
255
283
|
createElementVNode("div", _hoisted_2, toDisplayString(_ctx.emptyStub), 1)
|
256
284
|
], 2))
|
257
|
-
],
|
285
|
+
], 2);
|
258
286
|
};
|
259
287
|
}
|
260
288
|
});
|
@@ -1,20 +1,32 @@
|
|
1
|
-
declare const _default:
|
2
|
-
queryParams: QueryParams;
|
3
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
4
|
-
"update:selected": (value: boolean) => void;
|
5
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
6
|
-
queryParams: QueryParams;
|
7
|
-
}>>> & {
|
1
|
+
declare const _default: <QueryParams>(__VLS_props: {
|
8
2
|
"onUpdate:selected"?: ((value: boolean) => any) | undefined;
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
};
|
3
|
+
queryParams: QueryParams;
|
4
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
5
|
+
attrs: any;
|
6
|
+
slots: {};
|
7
|
+
emit: (e: 'update:selected', value: boolean) => void;
|
8
|
+
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
9
|
+
props: {
|
10
|
+
"onUpdate:selected"?: ((value: boolean) => any) | undefined;
|
11
|
+
queryParams: QueryParams;
|
12
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
13
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
14
|
+
attrs: any;
|
15
|
+
slots: {};
|
16
|
+
emit: (e: 'update:selected', value: boolean) => void;
|
17
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
18
|
+
[key: string]: any;
|
19
|
+
}> & {
|
20
|
+
__ctx?: {
|
21
|
+
props: {
|
22
|
+
"onUpdate:selected"?: ((value: boolean) => any) | undefined;
|
23
|
+
queryParams: QueryParams;
|
24
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
25
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
26
|
+
attrs: any;
|
27
|
+
slots: {};
|
28
|
+
emit: (e: 'update:selected', value: boolean) => void;
|
29
|
+
} | undefined;
|
19
30
|
};
|
31
|
+
export default _default;
|
20
32
|
//# sourceMappingURL=InfiniteListPageTitle.vue.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfiniteListPageTitle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPageTitle.vue"],"names":[],"mappings":"AAUA
|
1
|
+
{"version":3,"file":"InfiniteListPageTitle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPageTitle.vue"],"names":[],"mappings":"AAUA;;;iBAuFe,WAAW;;WAQnB,GAAG;;cA9EJ,iBAAiB,SAAS,OAAO,KAAG,IAAI;yCA6E9B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;qBAP1C,WAAW;;oBAOV,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cA9EJ,iBAAiB,SAAS,OAAO,KAAG,IAAI;;;;;;;yBAsE/B,WAAW;;wBAOV,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;kBA9EJ,iBAAiB,SAAS,OAAO,KAAG,IAAI;;;AAX9C,wBA8F2E"}
|
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
24
24
|
onClick: copyRoute
|
25
25
|
}, {
|
26
26
|
default: withCtx(() => [
|
27
|
-
createTextVNode(" Page: " + toDisplayString(_ctx.queryParams.page), 1)
|
27
|
+
createTextVNode(" Page: " + toDisplayString(_ctx.queryParams.page ?? 1), 1)
|
28
28
|
]),
|
29
29
|
_: 1
|
30
30
|
}, 8, ["to"]);
|
@@ -9,8 +9,8 @@ declare const _default: <Type extends InputType = "text", Option extends Record<
|
|
9
9
|
title?: string | undefined;
|
10
10
|
disabled?: boolean | undefined;
|
11
11
|
loading?: boolean | undefined;
|
12
|
-
modelValue: Type extends "number" ? number : string;
|
13
12
|
valueGetter: (option: Option) => Type extends "number" ? number : string;
|
13
|
+
modelValue: Type extends "number" ? number : string;
|
14
14
|
icon?: SVGComponent | undefined;
|
15
15
|
readonly?: boolean | undefined;
|
16
16
|
skeleton?: boolean | undefined;
|
@@ -53,8 +53,8 @@ declare const _default: <Type extends InputType = "text", Option extends Record<
|
|
53
53
|
title?: string | undefined;
|
54
54
|
disabled?: boolean | undefined;
|
55
55
|
loading?: boolean | undefined;
|
56
|
-
modelValue: Type extends "number" ? number : string;
|
57
56
|
valueGetter: (option: Option) => Type extends "number" ? number : string;
|
57
|
+
modelValue: Type extends "number" ? number : string;
|
58
58
|
icon?: SVGComponent | undefined;
|
59
59
|
readonly?: boolean | undefined;
|
60
60
|
skeleton?: boolean | undefined;
|
@@ -101,8 +101,8 @@ declare const _default: <Type extends InputType = "text", Option extends Record<
|
|
101
101
|
title?: string | undefined;
|
102
102
|
disabled?: boolean | undefined;
|
103
103
|
loading?: boolean | undefined;
|
104
|
-
modelValue: Type extends "number" ? number : string;
|
105
104
|
valueGetter: (option: Option) => Type extends "number" ? number : string;
|
105
|
+
modelValue: Type extends "number" ? number : string;
|
106
106
|
icon?: SVGComponent | undefined;
|
107
107
|
readonly?: boolean | undefined;
|
108
108
|
skeleton?: boolean | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInputOptions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputOptions.vue"],"names":[],"mappings":"AAiFA;AAEA,OAAO,EAAwC,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;QAMmB,MAAM;;QAA+B,MAAM;;WA4W9H,IAAI,GAAG,SAAS
|
1
|
+
{"version":3,"file":"WInputOptions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputOptions.vue"],"names":[],"mappings":"AAiFA;AAEA,OAAO,EAAwC,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;QAMmB,MAAM;;QAA+B,MAAM;;WA4W9H,IAAI,GAAG,SAAS;;;;;0BAFD,MAAM;;;;;;;;;;;;;;aADnB,MAAM,EAAE;;;gBASoB,MAAM;;;;;;;WAoBtC,GAAG;;uBA/DkB,GAAG;;;;;YACF,GAAG;;cArS1B,oBAAoB,qDAAsB,IAAI;;;;OAkWmB,IAAI;;eAzBlE,IAAI,GAAG,SAAS;;;;;8BAFD,MAAM;;;;;;;;;;;;;;iBADnB,MAAM,EAAE;;;oBASoB,MAAM;;;;;;;;;;SAmB0B,IAAI;WACpE,GAAG;;uBA/DkB,GAAG;;;;;YACF,GAAG;;cArS1B,oBAAoB,qDAAsB,IAAI;;;;;;mBAyU3C,IAAI,GAAG,SAAS;;;;;kCAFD,MAAM;;;;;;;;;;;;;;qBADnB,MAAM,EAAE;;;wBASoB,MAAM;;;;;;;;;;aAmB0B,IAAI;eACpE,GAAG;;2BA/DkB,GAAG;;;;;gBACF,GAAG;;kBArS1B,oBAAoB,qDAAsB,IAAI;;;AAnCpD,wBA2Y2E"}
|
@@ -1,21 +1,33 @@
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
2
2
|
disabled?: boolean | undefined;
|
3
3
|
selected?: boolean | undefined;
|
4
|
+
selectedBetween?: boolean | undefined;
|
5
|
+
selectedHover?: boolean | undefined;
|
4
6
|
hideMore?: boolean | undefined;
|
5
7
|
mobile?: boolean | undefined;
|
6
8
|
allowSelect?: boolean | undefined;
|
9
|
+
allowSelectHover?: boolean | undefined;
|
7
10
|
moreBottom?: boolean | undefined;
|
11
|
+
allowShift?: boolean | undefined;
|
8
12
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
9
13
|
"update:selected": (value: boolean) => void;
|
14
|
+
"update-shift:selected": (value: boolean) => void;
|
15
|
+
"update-hover:selected": (value: boolean) => void;
|
10
16
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
11
17
|
disabled?: boolean | undefined;
|
12
18
|
selected?: boolean | undefined;
|
19
|
+
selectedBetween?: boolean | undefined;
|
20
|
+
selectedHover?: boolean | undefined;
|
13
21
|
hideMore?: boolean | undefined;
|
14
22
|
mobile?: boolean | undefined;
|
15
23
|
allowSelect?: boolean | undefined;
|
24
|
+
allowSelectHover?: boolean | undefined;
|
16
25
|
moreBottom?: boolean | undefined;
|
26
|
+
allowShift?: boolean | undefined;
|
17
27
|
}>>> & {
|
18
28
|
"onUpdate:selected"?: ((value: boolean) => any) | undefined;
|
29
|
+
"onUpdate-shift:selected"?: ((value: boolean) => any) | undefined;
|
30
|
+
"onUpdate-hover:selected"?: ((value: boolean) => any) | undefined;
|
19
31
|
}, {}, {}>, {
|
20
32
|
default?(_: {}): any;
|
21
33
|
more?(_: {}): any;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ListCard/WListCard.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WListCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ListCard/WListCard.vue"],"names":[],"mappings":"AA2DA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiPA,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, createVNode, Transition, withCtx, createCommentVNode, createBlock,
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createVNode, Transition, withCtx, createCommentVNode, createBlock, normalizeClass, renderSlot, markRaw, unref } from 'vue';
|
2
2
|
import _sfc_main$1 from '../Checkbox/WCheckbox.vue.js';
|
3
3
|
import _sfc_main$2 from '../Button/WButtonMore.vue.js';
|
4
4
|
import _sfc_main$3 from '../Button/WButtonMoreItem.vue.js';
|
@@ -15,12 +15,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
15
|
props: {
|
16
16
|
disabled: { type: Boolean },
|
17
17
|
selected: { type: Boolean },
|
18
|
+
selectedBetween: { type: Boolean },
|
19
|
+
selectedHover: { type: Boolean },
|
18
20
|
hideMore: { type: Boolean },
|
19
21
|
mobile: { type: Boolean },
|
20
22
|
allowSelect: { type: Boolean },
|
21
|
-
|
23
|
+
allowSelectHover: { type: Boolean },
|
24
|
+
moreBottom: { type: Boolean },
|
25
|
+
allowShift: { type: Boolean }
|
22
26
|
},
|
23
|
-
emits: ["update:selected"],
|
27
|
+
emits: ["update:selected", "update-shift:selected", "update-hover:selected"],
|
24
28
|
setup(__props) {
|
25
29
|
return (_ctx, _cache) => {
|
26
30
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
@@ -37,11 +41,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
37
41
|
}),
|
38
42
|
_ctx.allowSelect && !_ctx.mobile ? (openBlock(), createBlock(_sfc_main$1, {
|
39
43
|
key: 0,
|
40
|
-
"model-value": _ctx.selected ?? false,
|
44
|
+
"model-value": _ctx.selectedBetween ? null : _ctx.selected ?? false,
|
41
45
|
disabled: _ctx.disabled,
|
42
|
-
|
43
|
-
|
44
|
-
|
46
|
+
"allow-shift": _ctx.allowShift,
|
47
|
+
class: normalizeClass(["sm:w-list-row-item sm-not:hidden", {
|
48
|
+
"opacity-50": _ctx.allowSelectHover
|
49
|
+
}]),
|
50
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.allowSelectHover ? _ctx.$emit("update-shift:selected", $event) : _ctx.$emit("update:selected", $event)),
|
51
|
+
"onUpdateShift:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update-shift:selected", $event)),
|
52
|
+
onMouseover: _cache[2] || (_cache[2] = ($event) => _ctx.allowSelectHover ? _ctx.$emit("update-hover:selected", !_ctx.selected) : void 0)
|
53
|
+
}, null, 8, ["model-value", "disabled", "allow-shift", "class"])) : createCommentVNode("", true),
|
45
54
|
renderSlot(_ctx.$slots, "default"),
|
46
55
|
!_ctx.hideMore ? (openBlock(), createBlock(_sfc_main$2, {
|
47
56
|
key: 1,
|
@@ -56,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
56
65
|
key: 0,
|
57
66
|
text: _ctx.selected ? "Unselect" : "Select",
|
58
67
|
icon: _ctx.selected ? markRaw(unref(IconMinusCircle)) : markRaw(unref(IconAddCircle)),
|
59
|
-
onClick: _cache[
|
68
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("update:selected", !_ctx.selected))
|
60
69
|
}, null, 8, ["text", "icon"])) : createCommentVNode("", true),
|
61
70
|
renderSlot(_ctx.$slots, "more")
|
62
71
|
]),
|
@@ -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;
|
@@ -7,8 +7,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
7
7
|
disabled?: boolean | undefined;
|
8
8
|
loading?: boolean | undefined;
|
9
9
|
"onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
|
10
|
-
modelValue: Model[];
|
11
10
|
valueGetter?: ((data: Data) => Model) | undefined;
|
11
|
+
modelValue: Model[];
|
12
12
|
icon?: SVGComponent | undefined;
|
13
13
|
readonly?: boolean | undefined;
|
14
14
|
skeleton?: boolean | 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:
|
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<{
|
@@ -78,8 +79,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
78
79
|
disabled?: boolean | undefined;
|
79
80
|
loading?: boolean | undefined;
|
80
81
|
"onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
|
81
|
-
modelValue: Model[];
|
82
82
|
valueGetter?: ((data: Data) => Model) | undefined;
|
83
|
+
modelValue: Model[];
|
83
84
|
icon?: SVGComponent | undefined;
|
84
85
|
readonly?: boolean | undefined;
|
85
86
|
skeleton?: boolean | undefined;
|
@@ -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:
|
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<{
|
@@ -153,8 +155,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
153
155
|
disabled?: boolean | undefined;
|
154
156
|
loading?: boolean | undefined;
|
155
157
|
"onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
|
156
|
-
modelValue: Model[];
|
157
158
|
valueGetter?: ((data: Data) => Model) | undefined;
|
159
|
+
modelValue: Model[];
|
158
160
|
icon?: SVGComponent | undefined;
|
159
161
|
readonly?: boolean | undefined;
|
160
162
|
skeleton?: boolean | undefined;
|
@@ -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:
|
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":"
|
1
|
+
{"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsync.vue"],"names":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BAAC,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;;;;AAjE3C,wBAqe2E;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: { default: void 0 }
|
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,18 +1,19 @@
|
|
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
|
-
modelValue: Model[];
|
5
4
|
valueGetter?: ((data: Data) => Model) | undefined;
|
5
|
+
modelValue: Model[];
|
6
6
|
skeleton?: boolean | undefined;
|
7
7
|
"onUpdate:count"?: ((value: number) => any) | undefined;
|
8
8
|
onUnselect?: ((value: Model) => any) | undefined;
|
9
9
|
queryParams: QueryParams;
|
10
10
|
selectOnly?: boolean | undefined;
|
11
11
|
unselectOnly?: boolean | undefined;
|
12
|
-
useQueryFn:
|
12
|
+
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
13
13
|
isInvalidPage: (error: unknown) => boolean;
|
14
14
|
emptyStub?: string | undefined;
|
15
|
-
|
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?: {
|
@@ -42,18 +43,19 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
42
43
|
props: {
|
43
44
|
title?: string | undefined;
|
44
45
|
onSelect?: ((value: Model) => any) | undefined;
|
45
|
-
modelValue: Model[];
|
46
46
|
valueGetter?: ((data: Data) => Model) | undefined;
|
47
|
+
modelValue: Model[];
|
47
48
|
skeleton?: boolean | undefined;
|
48
49
|
"onUpdate:count"?: ((value: number) => any) | undefined;
|
49
50
|
onUnselect?: ((value: Model) => any) | undefined;
|
50
51
|
queryParams: QueryParams;
|
51
52
|
selectOnly?: boolean | undefined;
|
52
53
|
unselectOnly?: boolean | undefined;
|
53
|
-
useQueryFn:
|
54
|
+
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
54
55
|
isInvalidPage: (error: unknown) => boolean;
|
55
56
|
emptyStub?: string | undefined;
|
56
|
-
|
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;
|
@@ -87,18 +89,19 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
87
89
|
props: {
|
88
90
|
title?: string | undefined;
|
89
91
|
onSelect?: ((value: Model) => any) | undefined;
|
90
|
-
modelValue: Model[];
|
91
92
|
valueGetter?: ((data: Data) => Model) | undefined;
|
93
|
+
modelValue: Model[];
|
92
94
|
skeleton?: boolean | undefined;
|
93
95
|
"onUpdate:count"?: ((value: number) => any) | undefined;
|
94
96
|
onUnselect?: ((value: Model) => any) | undefined;
|
95
97
|
queryParams: QueryParams;
|
96
98
|
selectOnly?: boolean | undefined;
|
97
99
|
unselectOnly?: boolean | undefined;
|
98
|
-
useQueryFn:
|
100
|
+
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
99
101
|
isInvalidPage: (error: unknown) => boolean;
|
100
102
|
emptyStub?: string | undefined;
|
101
|
-
|
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":"
|
1
|
+
{"version":3,"file":"WSelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncList.vue"],"names":[],"mappings":"AAwDA;;;;0BAqPyB,IAAI,KAAK,KAAK;gBATvB,KAAK,EAAE;;;;iBAGN,WAAW;;;gBAFZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;2BACnC,OAAO,KAAK,OAAO;;mBAQ3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;WAQlF,GAAG;;2BA7MU;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;2BAApF;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YATlG,QAAQ,SAAS,KAAK,GAAG,IAAI;YA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C,CAAC,CAAC,CAAC;;;;;wBAOzE,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;+BA7MU;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;;;;AApC1C,wBA4P2E;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: { default: void 0 }
|
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
|
};
|