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.
- package/dist/components/Button/WButtonAction.vue.js +1 -0
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +16 -13
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +4 -2
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +16 -13
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.js +4 -2
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +10 -7
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +5 -3
- 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/Select/WSelect.vue.d.ts +12 -12
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.d.ts +7 -4
- 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 +10 -7
- 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 +7 -4
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue.js +4 -2
- package/dist/components/Select/WSelectSingle.vue.d.ts +10 -10
- package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectSingle.vue.js +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts +10 -7
- 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 +7 -4
- 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 +7 -4
- 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 +5 -2
@@ -7,6 +7,7 @@ import '../../utils/supportsPassive.js';
|
|
7
7
|
import '../Dropdown/utils/DropdownStyle.js';
|
8
8
|
import '../../utils/Modal.js';
|
9
9
|
import '../Link/WLink.vue.js';
|
10
|
+
import '@tanstack/vue-query';
|
10
11
|
|
11
12
|
const _hoisted_1 = { class: "font-normal text-center md:text-base text-[0.625rem] whitespace-nowrap" };
|
12
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -1,15 +1,15 @@
|
|
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
|
transition?: boolean | undefined;
|
3
3
|
valueGetter?: ((data: Data) => Model) | undefined;
|
4
4
|
wrap?: boolean | undefined;
|
5
5
|
"onUpdate:count"?: ((value: number) => any) | undefined;
|
6
6
|
scrollingElement?: Element | null | undefined;
|
7
|
-
queryParams: QueryParams;
|
8
7
|
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
8
|
+
queryParams: QueryParams;
|
9
9
|
selected?: Model[] | undefined;
|
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
|
skeletonLength?: number | undefined;
|
15
15
|
hidePageTitle?: boolean | undefined;
|
@@ -20,11 +20,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
20
20
|
minHeight?: boolean | undefined;
|
21
21
|
pageClass?: string | undefined;
|
22
22
|
refetchInterval?: number | false | undefined;
|
23
|
+
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
24
|
+
maxPages?: number | undefined;
|
23
25
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
24
26
|
skipScrollTarget?: boolean | undefined;
|
25
27
|
pageLength?: number | undefined;
|
26
|
-
excludeParams?:
|
27
|
-
maxPages?: number | undefined;
|
28
|
+
excludeParams?: (keyof QueryParams)[] | undefined;
|
28
29
|
"onUpdate:header-padding"?: ((value: number) => any) | undefined;
|
29
30
|
headerMargin?: number | undefined;
|
30
31
|
headerTopIgnore?: boolean | undefined;
|
@@ -72,12 +73,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
72
73
|
wrap?: boolean | undefined;
|
73
74
|
"onUpdate:count"?: ((value: number) => any) | undefined;
|
74
75
|
scrollingElement?: Element | null | undefined;
|
75
|
-
queryParams: QueryParams;
|
76
76
|
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
77
|
+
queryParams: QueryParams;
|
77
78
|
selected?: Model[] | undefined;
|
78
79
|
selectOnly?: boolean | undefined;
|
79
80
|
unselectOnly?: boolean | undefined;
|
80
|
-
useQueryFn:
|
81
|
+
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
81
82
|
isInvalidPage: (error: unknown) => boolean;
|
82
83
|
skeletonLength?: number | undefined;
|
83
84
|
hidePageTitle?: boolean | undefined;
|
@@ -88,11 +89,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
88
89
|
minHeight?: boolean | undefined;
|
89
90
|
pageClass?: string | undefined;
|
90
91
|
refetchInterval?: number | false | undefined;
|
92
|
+
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
93
|
+
maxPages?: number | undefined;
|
91
94
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
92
95
|
skipScrollTarget?: boolean | undefined;
|
93
96
|
pageLength?: number | undefined;
|
94
|
-
excludeParams?:
|
95
|
-
maxPages?: number | undefined;
|
97
|
+
excludeParams?: (keyof QueryParams)[] | undefined;
|
96
98
|
"onUpdate:header-padding"?: ((value: number) => any) | undefined;
|
97
99
|
headerMargin?: number | undefined;
|
98
100
|
headerTopIgnore?: boolean | undefined;
|
@@ -144,12 +146,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
144
146
|
wrap?: boolean | undefined;
|
145
147
|
"onUpdate:count"?: ((value: number) => any) | undefined;
|
146
148
|
scrollingElement?: Element | null | undefined;
|
147
|
-
queryParams: QueryParams;
|
148
149
|
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
150
|
+
queryParams: QueryParams;
|
149
151
|
selected?: Model[] | undefined;
|
150
152
|
selectOnly?: boolean | undefined;
|
151
153
|
unselectOnly?: boolean | undefined;
|
152
|
-
useQueryFn:
|
154
|
+
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
153
155
|
isInvalidPage: (error: unknown) => boolean;
|
154
156
|
skeletonLength?: number | undefined;
|
155
157
|
hidePageTitle?: boolean | undefined;
|
@@ -160,11 +162,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
160
162
|
minHeight?: boolean | undefined;
|
161
163
|
pageClass?: string | undefined;
|
162
164
|
refetchInterval?: number | false | undefined;
|
165
|
+
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
166
|
+
maxPages?: number | undefined;
|
163
167
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
164
168
|
skipScrollTarget?: boolean | undefined;
|
165
169
|
pageLength?: number | undefined;
|
166
|
-
excludeParams?:
|
167
|
-
maxPages?: number | undefined;
|
170
|
+
excludeParams?: (keyof QueryParams)[] | undefined;
|
168
171
|
"onUpdate:header-padding"?: ((value: number) => any) | undefined;
|
169
172
|
headerMargin?: number | undefined;
|
170
173
|
headerTopIgnore?: boolean | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"AAgEA;;;0BAsSyB,IAAI,KAAK,KAAK;;;;;iBAtBtB,WAAW;;;;gBAFZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;2BACnC,OAAO,KAAK,OAAO;;;;;;;;;;mBAwB3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;WAQlF,GAAG;;;kBAxMA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;0BACO,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;;;kBAVvC,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;0BACO,OAAO,MAAM,EAAE,KAAK,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,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;aAOlB,IAAI;eACpE,GAAG;;;sBAxMA,IAAI;mCACS,IAAI,GAAG,SAAS,KAAK,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;kBACd,IAAI;8BACO,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;;;sBAVvC,IAAI;mCACS,IAAI,GAAG,SAAS,KAAK,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;kBACd,IAAI;8BACO,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;;;gBAvD3C,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;gBAC/C,uBAAuB,SAAS,MAAM,GAAG,IAAI;gBAC7C,cAAc,SAAS,MAAM,GAAG,IAAI;gBACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;AAtD/C,wBA6S2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -29,7 +29,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
29
29
|
pageClass: { default: void 0 },
|
30
30
|
maxPages: { default: void 0 },
|
31
31
|
refetchInterval: { type: [Number, Boolean], default: void 0 },
|
32
|
-
valueGetter: { type: Function, default: (item) => item.id }
|
32
|
+
valueGetter: { type: Function, default: (item) => item.id },
|
33
|
+
queryOptions: {}
|
33
34
|
},
|
34
35
|
emits: ["update:page", "update:header-padding", "update:count", "update:selected"],
|
35
36
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -104,6 +105,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
104
105
|
"max-pages": _ctx.maxPages,
|
105
106
|
"refetch-interval": _ctx.refetchInterval,
|
106
107
|
"value-getter": _ctx.valueGetter,
|
108
|
+
"query-options": _ctx.queryOptions,
|
107
109
|
"onUpdate:count": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:count", $event)),
|
108
110
|
"onUpdate:selected": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:selected", $event)),
|
109
111
|
"onUpdate:page": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:page", $event))
|
@@ -122,7 +124,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
122
124
|
})
|
123
125
|
]),
|
124
126
|
_: 3
|
125
|
-
}, 8, ["query-params", "use-query-fn", "is-invalid-page", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "selected", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "exclude-params", "empty-stub", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "page-class", "max-pages", "refetch-interval", "value-getter"])
|
127
|
+
}, 8, ["query-params", "use-query-fn", "is-invalid-page", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "selected", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "exclude-params", "empty-stub", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "page-class", "max-pages", "refetch-interval", "value-getter", "query-options"])
|
126
128
|
], 64);
|
127
129
|
};
|
128
130
|
}
|
@@ -1,15 +1,15 @@
|
|
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
|
transition?: boolean | undefined;
|
3
3
|
valueGetter: (data: Data) => Model;
|
4
4
|
wrap?: boolean | undefined;
|
5
5
|
"onUpdate:count"?: ((value: number) => any) | undefined;
|
6
6
|
scrollingElement?: Element | null | undefined;
|
7
|
-
queryParams: QueryParams;
|
8
7
|
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
8
|
+
queryParams: QueryParams;
|
9
9
|
selected?: Model[] | undefined;
|
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
|
skeletonLength?: number | undefined;
|
15
15
|
hidePageTitle?: boolean | undefined;
|
@@ -20,13 +20,14 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
20
20
|
minHeight?: boolean | undefined;
|
21
21
|
pageClass?: string | undefined;
|
22
22
|
refetchInterval?: number | false | undefined;
|
23
|
+
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
24
|
+
maxPages?: number | undefined;
|
23
25
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
24
26
|
skipScrollTarget?: boolean | undefined;
|
25
27
|
pageLength?: number | undefined;
|
26
28
|
headerTop?: number | undefined;
|
27
29
|
headerHeight?: number | undefined;
|
28
|
-
excludeParams?:
|
29
|
-
maxPages?: number | undefined;
|
30
|
+
excludeParams?: (keyof QueryParams)[] | undefined;
|
30
31
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
31
32
|
attrs: any;
|
32
33
|
slots: Readonly<{
|
@@ -68,12 +69,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
68
69
|
wrap?: boolean | undefined;
|
69
70
|
"onUpdate:count"?: ((value: number) => any) | undefined;
|
70
71
|
scrollingElement?: Element | null | undefined;
|
71
|
-
queryParams: QueryParams;
|
72
72
|
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
73
|
+
queryParams: QueryParams;
|
73
74
|
selected?: Model[] | undefined;
|
74
75
|
selectOnly?: boolean | undefined;
|
75
76
|
unselectOnly?: boolean | undefined;
|
76
|
-
useQueryFn:
|
77
|
+
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
77
78
|
isInvalidPage: (error: unknown) => boolean;
|
78
79
|
skeletonLength?: number | undefined;
|
79
80
|
hidePageTitle?: boolean | undefined;
|
@@ -84,13 +85,14 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
84
85
|
minHeight?: boolean | undefined;
|
85
86
|
pageClass?: string | undefined;
|
86
87
|
refetchInterval?: number | false | undefined;
|
88
|
+
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
89
|
+
maxPages?: number | undefined;
|
87
90
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
88
91
|
skipScrollTarget?: boolean | undefined;
|
89
92
|
pageLength?: number | undefined;
|
90
93
|
headerTop?: number | undefined;
|
91
94
|
headerHeight?: number | undefined;
|
92
|
-
excludeParams?:
|
93
|
-
maxPages?: number | undefined;
|
95
|
+
excludeParams?: (keyof QueryParams)[] | undefined;
|
94
96
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
95
97
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
96
98
|
resetPage: () => void;
|
@@ -136,12 +138,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
136
138
|
wrap?: boolean | undefined;
|
137
139
|
"onUpdate:count"?: ((value: number) => any) | undefined;
|
138
140
|
scrollingElement?: Element | null | undefined;
|
139
|
-
queryParams: QueryParams;
|
140
141
|
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
142
|
+
queryParams: QueryParams;
|
141
143
|
selected?: Model[] | undefined;
|
142
144
|
selectOnly?: boolean | undefined;
|
143
145
|
unselectOnly?: boolean | undefined;
|
144
|
-
useQueryFn:
|
146
|
+
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
145
147
|
isInvalidPage: (error: unknown) => boolean;
|
146
148
|
skeletonLength?: number | undefined;
|
147
149
|
hidePageTitle?: boolean | undefined;
|
@@ -152,13 +154,14 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
152
154
|
minHeight?: boolean | undefined;
|
153
155
|
pageClass?: string | undefined;
|
154
156
|
refetchInterval?: number | false | undefined;
|
157
|
+
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
158
|
+
maxPages?: number | undefined;
|
155
159
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
156
160
|
skipScrollTarget?: boolean | undefined;
|
157
161
|
pageLength?: number | undefined;
|
158
162
|
headerTop?: number | undefined;
|
159
163
|
headerHeight?: number | undefined;
|
160
|
-
excludeParams?:
|
161
|
-
maxPages?: number | undefined;
|
164
|
+
excludeParams?: (keyof QueryParams)[] | undefined;
|
162
165
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
163
166
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
164
167
|
resetPage: () => void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"AA6EA;;;wBA+cwB,IAAI,KAAK,KAAK;;;;;iBAtBrB,WAAW;;;;gBAFZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;2BACnC,OAAO,KAAK,OAAO;;;;;;;;;;mBAwB3B,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;;;;;;WAQlF,GAAG;;;kBApRA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;kBATF,IAAI;+BACS,IAAI,GAAG,SAAS,KA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IAAI,GAAG,SAAS,KAAK,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;kBACd,IAAI;;;sBATF,IAAI;mCACS,IAAI,GAAG,SAAS,KAAK,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;kBACd,IAAI;;;gBA/IN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;gBAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;gBACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;AArD/C,wBAkd2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -33,7 +33,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
33
33
|
pageClass: { default: void 0 },
|
34
34
|
maxPages: { default: 5 },
|
35
35
|
refetchInterval: { type: [Number, Boolean], default: void 0 },
|
36
|
-
valueGetter: {}
|
36
|
+
valueGetter: {},
|
37
|
+
queryOptions: {}
|
37
38
|
},
|
38
39
|
emits: ["update:page", "update:count", "update:selected"],
|
39
40
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -183,6 +184,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
183
184
|
"refetch-interval": _ctx.refetchInterval,
|
184
185
|
"scrolling-element": _ctx.scrollingElement,
|
185
186
|
"value-getter": _ctx.valueGetter,
|
187
|
+
"query-options": _ctx.queryOptions,
|
186
188
|
class: normalizeClass({
|
187
189
|
"last:min-h-[calc(100vh-var(--header-height)-var(--infinite-list-header-height))] last:pb-16": !_ctx.minHeight
|
188
190
|
}),
|
@@ -217,7 +219,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
217
219
|
})
|
218
220
|
]),
|
219
221
|
_: 2
|
220
|
-
}, 1032, ["query-params", "use-query-fn", "is-invalid-page", "skeleton-length", "first-page", "last-page", "hide-page-title", "selected", "wrap", "no-gap", "transition", "resetting", "empty-stub", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "min-height", "page-class", "refetch-interval", "scrolling-element", "value-getter", "class", "onRefetch"]);
|
222
|
+
}, 1032, ["query-params", "use-query-fn", "is-invalid-page", "skeleton-length", "first-page", "last-page", "hide-page-title", "selected", "wrap", "no-gap", "transition", "resetting", "empty-stub", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "min-height", "page-class", "refetch-interval", "scrolling-element", "value-getter", "query-options", "class", "onRefetch"]);
|
221
223
|
}), 128)),
|
222
224
|
count.value !== 0 && nextPage.value ? (openBlock(), createBlock(_sfc_main$2, {
|
223
225
|
key: 1,
|
@@ -1,11 +1,11 @@
|
|
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
|
transition?: boolean | undefined;
|
3
3
|
valueGetter: (data: Data) => Model;
|
4
4
|
wrap?: boolean | undefined;
|
5
5
|
"onUpdate:count"?: ((value: number) => any) | undefined;
|
6
6
|
scrollingElement?: Element | null | undefined;
|
7
|
-
queryParams: QueryParams;
|
8
7
|
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
8
|
+
queryParams: QueryParams;
|
9
9
|
selected?: Model[] | undefined;
|
10
10
|
selectOnly?: boolean | undefined;
|
11
11
|
unselectOnly?: boolean | undefined;
|
@@ -17,7 +17,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
17
17
|
onRefetch?: (() => any) | undefined;
|
18
18
|
"onUpdate-from-header:scroll"?: (() => any) | undefined;
|
19
19
|
onFetched?: (() => any) | undefined;
|
20
|
-
useQueryFn:
|
20
|
+
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
21
21
|
isInvalidPage: (error: unknown) => boolean;
|
22
22
|
skeletonLength: number;
|
23
23
|
firstPage: boolean;
|
@@ -31,6 +31,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
31
31
|
minHeight?: boolean | undefined;
|
32
32
|
pageClass?: string | undefined;
|
33
33
|
refetchInterval?: number | false | undefined;
|
34
|
+
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
34
35
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
35
36
|
attrs: any;
|
36
37
|
slots: Readonly<{
|
@@ -79,8 +80,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
79
80
|
wrap?: boolean | undefined;
|
80
81
|
"onUpdate:count"?: ((value: number) => any) | undefined;
|
81
82
|
scrollingElement?: Element | null | undefined;
|
82
|
-
queryParams: QueryParams;
|
83
83
|
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
84
|
+
queryParams: QueryParams;
|
84
85
|
selected?: Model[] | undefined;
|
85
86
|
selectOnly?: boolean | undefined;
|
86
87
|
unselectOnly?: boolean | undefined;
|
@@ -92,7 +93,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
92
93
|
onRefetch?: (() => any) | undefined;
|
93
94
|
"onUpdate-from-header:scroll"?: (() => any) | undefined;
|
94
95
|
onFetched?: (() => any) | undefined;
|
95
|
-
useQueryFn:
|
96
|
+
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
96
97
|
isInvalidPage: (error: unknown) => boolean;
|
97
98
|
skeletonLength: number;
|
98
99
|
firstPage: boolean;
|
@@ -106,6 +107,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
106
107
|
minHeight?: boolean | undefined;
|
107
108
|
pageClass?: string | undefined;
|
108
109
|
refetchInterval?: number | false | undefined;
|
110
|
+
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
109
111
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
110
112
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
111
113
|
getFirst: () => Data | undefined;
|
@@ -158,8 +160,8 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
158
160
|
wrap?: boolean | undefined;
|
159
161
|
"onUpdate:count"?: ((value: number) => any) | undefined;
|
160
162
|
scrollingElement?: Element | null | undefined;
|
161
|
-
queryParams: QueryParams;
|
162
163
|
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
164
|
+
queryParams: QueryParams;
|
163
165
|
selected?: Model[] | undefined;
|
164
166
|
selectOnly?: boolean | undefined;
|
165
167
|
unselectOnly?: boolean | undefined;
|
@@ -171,7 +173,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
171
173
|
onRefetch?: (() => any) | undefined;
|
172
174
|
"onUpdate-from-header:scroll"?: (() => any) | undefined;
|
173
175
|
onFetched?: (() => any) | undefined;
|
174
|
-
useQueryFn:
|
176
|
+
useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
|
175
177
|
isInvalidPage: (error: unknown) => boolean;
|
176
178
|
skeletonLength: number;
|
177
179
|
firstPage: boolean;
|
@@ -185,6 +187,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
185
187
|
minHeight?: boolean | undefined;
|
186
188
|
pageClass?: string | undefined;
|
187
189
|
refetchInterval?: number | false | undefined;
|
190
|
+
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
188
191
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
189
192
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
190
193
|
getFirst: () => Data | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"AAuHA;;;
|
1
|
+
{"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"AAuHA;;;wBAoewB,IAAI,KAAK,KAAK;;;;;iBArBrB,WAAW;;;;;;;;;;;;gBACZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;2BACnC,OAAO,KAAK,OAAO;oBAC1B,MAAM;eACX,OAAO;cACR,OAAO;;;;;;;;;;mBAiBF,QAAQ,WAAW,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;WAQlF,GAAG;;;kBAvSA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;cACT,IAAI;;;kBARF,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;cACT,IAAI;;;YA3JN,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,mBAAmB,SAAS,MAAM,GAAG,IAAI;YACzC,iBAAiB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAC9C,qBAAqB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAClD,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,mBAAmB,SAAS,MAAM,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;YAChB,2BAA2B,GAAG,IAAI;YAClC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;;;;;;OAgbiD,IAAI;;;4BARnD,IAAI,KAAK,KAAK;;;;;qBArBrB,WAAW;;;;;;;;;;;;oBACZ,kBAAkB,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;+BACnC,OAAO,KAAK,OAAO;wBAC1B,MAAM;mBACX,OAAO;kBACR,OAAO;;;;;;;;;;uBAiBF,QA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AAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;kBACT,IAAI;;;gBA3JN,cAAc,SAAS,MAAM,GAAG,IAAI;gBACpC,mBAAmB,SAAS,MAAM,GAAG,IAAI;gBACzC,iBAAiB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;gBAC9C,qBAAqB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;gBAClD,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,mBAAmB,SAAS,MAAM,GAAG,IAAI;gBACzC,SAAS,GAAG,IAAI;gBAChB,2BAA2B,GAAG,IAAI;gBAClC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;gBACzC,SAAS,GAAG,IAAI;;;;AArDtB,wBA2e2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -28,7 +28,8 @@ 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: {}
|
32
33
|
},
|
33
34
|
emits: ["update:count", "update:pagesCount", "update:nextPage", "update:previousPage", "update:scroll", "error:invalidPage", "refetch", "update-from-header:scroll", "update:selected", "fetched"],
|
34
35
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -39,6 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
39
40
|
const { data, error, setData, refetch, isFetching } = props.useQueryFn(
|
40
41
|
toRef(props, "queryParams"),
|
41
42
|
{
|
43
|
+
...props.queryOptions ?? {},
|
42
44
|
refetchInterval: props.refetchInterval ? computed(() => isIntersecting.value ? props.refetchInterval : void 0) : void 0
|
43
45
|
}
|
44
46
|
);
|
@@ -82,14 +84,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
82
84
|
emit("update:previousPage", value.previous);
|
83
85
|
if (props.lastPage && value?.next !== void 0)
|
84
86
|
emit("update:nextPage", value.next);
|
85
|
-
if (value?.pages_count)
|
87
|
+
if (value?.pages_count !== void 0)
|
86
88
|
emit("update:pagesCount", value.pages_count);
|
87
89
|
if (value?.count !== void 0)
|
88
90
|
emit("update:count", value.count);
|
89
91
|
}, { immediate: true });
|
90
92
|
watch(error, (error2) => {
|
91
93
|
if (props.isInvalidPage(error2))
|
92
|
-
emit("error:invalidPage", props.queryParams.page);
|
94
|
+
emit("error:invalidPage", props.queryParams.page ?? 1);
|
93
95
|
}, { immediate: true });
|
94
96
|
watch(isFetching, (value) => {
|
95
97
|
if (value)
|
@@ -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"]);
|
@@ -3,7 +3,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
|
|
3
3
|
required?: boolean | undefined;
|
4
4
|
search: string;
|
5
5
|
title?: string | undefined;
|
6
|
-
onSelect?: ((item:
|
6
|
+
onSelect?: ((item: Item) => any) | undefined;
|
7
7
|
disabled?: boolean | undefined;
|
8
8
|
loading?: boolean | undefined;
|
9
9
|
modelValue: Item[];
|
@@ -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
|
-
onUnselect?: ((item:
|
17
|
+
onUnselect?: ((item: Item) => any) | undefined;
|
18
18
|
mono?: boolean | undefined;
|
19
19
|
noMargin?: boolean | undefined;
|
20
20
|
mobileTitle?: string | undefined;
|
@@ -44,8 +44,8 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
|
|
44
44
|
right?(_: {}): any;
|
45
45
|
};
|
46
46
|
emit: {
|
47
|
-
(e: 'select', item:
|
48
|
-
(e: 'unselect', item:
|
47
|
+
(e: 'select', item: Item): void;
|
48
|
+
(e: 'unselect', item: Item): void;
|
49
49
|
(e: 'update:search', value: string): void;
|
50
50
|
(e: 'create:option', value: string): void;
|
51
51
|
};
|
@@ -57,7 +57,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
|
|
57
57
|
required?: boolean | undefined;
|
58
58
|
search: string;
|
59
59
|
title?: string | undefined;
|
60
|
-
onSelect?: ((item:
|
60
|
+
onSelect?: ((item: Item) => any) | undefined;
|
61
61
|
disabled?: boolean | undefined;
|
62
62
|
loading?: boolean | undefined;
|
63
63
|
modelValue: Item[];
|
@@ -68,7 +68,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
|
|
68
68
|
placeholder?: string | undefined;
|
69
69
|
errorMessage?: string | undefined;
|
70
70
|
hasChanges?: boolean | undefined;
|
71
|
-
onUnselect?: ((item:
|
71
|
+
onUnselect?: ((item: Item) => any) | undefined;
|
72
72
|
mono?: boolean | undefined;
|
73
73
|
noMargin?: boolean | undefined;
|
74
74
|
mobileTitle?: string | undefined;
|
@@ -102,8 +102,8 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
|
|
102
102
|
right?(_: {}): any;
|
103
103
|
};
|
104
104
|
emit: {
|
105
|
-
(e: 'select', item:
|
106
|
-
(e: 'unselect', item:
|
105
|
+
(e: 'select', item: Item): void;
|
106
|
+
(e: 'unselect', item: Item): void;
|
107
107
|
(e: 'update:search', value: string): void;
|
108
108
|
(e: 'create:option', value: string): void;
|
109
109
|
};
|
@@ -115,7 +115,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
|
|
115
115
|
required?: boolean | undefined;
|
116
116
|
search: string;
|
117
117
|
title?: string | undefined;
|
118
|
-
onSelect?: ((item:
|
118
|
+
onSelect?: ((item: Item) => any) | undefined;
|
119
119
|
disabled?: boolean | undefined;
|
120
120
|
loading?: boolean | undefined;
|
121
121
|
modelValue: Item[];
|
@@ -126,7 +126,7 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
|
|
126
126
|
placeholder?: string | undefined;
|
127
127
|
errorMessage?: string | undefined;
|
128
128
|
hasChanges?: boolean | undefined;
|
129
|
-
onUnselect?: ((item:
|
129
|
+
onUnselect?: ((item: Item) => any) | undefined;
|
130
130
|
mono?: boolean | undefined;
|
131
131
|
noMargin?: boolean | undefined;
|
132
132
|
mobileTitle?: string | undefined;
|
@@ -160,8 +160,8 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
|
|
160
160
|
right?(_: {}): any;
|
161
161
|
};
|
162
162
|
emit: {
|
163
|
-
(e: 'select', item:
|
164
|
-
(e: 'unselect', item:
|
163
|
+
(e: 'select', item: Item): void;
|
164
|
+
(e: 'unselect', item: Item): void;
|
165
165
|
(e: 'update:search', value: string): void;
|
166
166
|
(e: 'create:option', value: string): void;
|
167
167
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AA0KA;AAEA,OAAO,EAAwC,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;;YAwnB/D,MAAM;;;;;gBADF,IAAI,EAAE;;;;;;;;;;;;;;;aAET,IAAI,EAAE;;;gBAOsB,IAAI;;;;;;;;;;WAuBpC,GAAG;;;;;;YArEoB,GAAG;uBACL,GAAG;;;YAxiBzB,QAAQ,QAAQ,
|
1
|
+
{"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AA0KA;AAEA,OAAO,EAAwC,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;;YAwnB/D,MAAM;;;;;gBADF,IAAI,EAAE;;;;;;;;;;;;;;;aAET,IAAI,EAAE;;;gBAOsB,IAAI;;;;;;;;;;WAuBpC,GAAG;;;;;;YArEoB,GAAG;uBACL,GAAG;;;YAxiBzB,QAAQ,QAAQ,IAAI,GAAG,IAAI;YAC3B,UAAU,QAAQ,IAAI,GAAG,IAAI;YAC7B,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MA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