eco-vue-js 0.3.85 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/Form/WFormValidator.vue.js +3 -3
- package/dist/components/Form/models/utils.d.ts.map +1 -1
- package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +13 -10
- 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 +13 -10
- 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 +13 -10
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +6 -4
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts +13 -10
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.js +6 -5
- package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.d.ts +3 -3
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.d.ts +34 -25
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue.js +20 -15
- package/dist/components/Select/WSelectAsyncList.vue.d.ts +28 -22
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncList.vue.js +8 -6
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +22 -16
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue.js +7 -3
- package/dist/components/Select/WSelectSingle.vue.d.ts +3 -3
- package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts +25 -22
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue.js +34 -32
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +22 -16
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefix.vue.js +8 -5
- 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 +5 -4
- package/dist/components/Select/components/SelectOption.vue.d.ts +149 -62
- package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
- package/dist/components/Tabs/WTabs.vue.js +2 -2
- package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
- package/dist/types/global.d.ts +5 -0
- package/package.json +12 -12
@@ -1,13 +1,14 @@
|
|
1
1
|
import { type Component } from 'vue';
|
2
|
-
declare const _default: <Data extends DefaultData>(__VLS_props: {
|
2
|
+
declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
|
3
3
|
required?: boolean | undefined;
|
4
|
+
search: string;
|
4
5
|
title?: string | undefined;
|
5
|
-
onSelect?: ((item:
|
6
|
+
onSelect?: ((item: Model) => any) | undefined;
|
6
7
|
disabled?: boolean | undefined;
|
7
8
|
loading?: boolean | undefined;
|
8
|
-
|
9
|
-
|
10
|
-
|
9
|
+
"onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
|
10
|
+
modelValue: Model[];
|
11
|
+
valueGetter?: ((data: Data) => Model) | undefined;
|
11
12
|
icon?: SVGComponent | undefined;
|
12
13
|
readonly?: boolean | undefined;
|
13
14
|
skeleton?: boolean | undefined;
|
@@ -15,7 +16,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
15
16
|
placeholder?: string | undefined;
|
16
17
|
errorMessage?: string | undefined;
|
17
18
|
hasChanges?: boolean | undefined;
|
18
|
-
onUnselect?: ((item:
|
19
|
+
onUnselect?: ((item: Model) => any) | undefined;
|
19
20
|
mono?: boolean | undefined;
|
20
21
|
noMargin?: boolean | undefined;
|
21
22
|
mobileTitle?: string | undefined;
|
@@ -37,6 +38,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
37
38
|
hidePrefix?: boolean | undefined;
|
38
39
|
allowCreate?: boolean | undefined;
|
39
40
|
previewData?: Data[] | undefined;
|
41
|
+
valueQueryKey?: string | undefined;
|
40
42
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
41
43
|
attrs: any;
|
42
44
|
slots: Readonly<{
|
@@ -57,10 +59,10 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
57
59
|
}) => void) | undefined;
|
58
60
|
};
|
59
61
|
emit: {
|
60
|
-
(e: 'select', item:
|
61
|
-
(e: 'unselect', item:
|
62
|
+
(e: 'select', item: Model): void;
|
63
|
+
(e: 'unselect', item: Model): void;
|
62
64
|
(e: 'update:search', value: string): void;
|
63
|
-
(e: 'update:modelValue', value:
|
65
|
+
(e: 'update:modelValue', value: Model[]): void;
|
64
66
|
(e: 'create:option', value: string): void;
|
65
67
|
};
|
66
68
|
} | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
|
@@ -69,13 +71,14 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
69
71
|
}>) => void) | undefined, __VLS_setup?: Promise<{
|
70
72
|
props: {
|
71
73
|
required?: boolean | undefined;
|
74
|
+
search: string;
|
72
75
|
title?: string | undefined;
|
73
|
-
onSelect?: ((item:
|
76
|
+
onSelect?: ((item: Model) => any) | undefined;
|
74
77
|
disabled?: boolean | undefined;
|
75
78
|
loading?: boolean | undefined;
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
+
"onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
|
80
|
+
modelValue: Model[];
|
81
|
+
valueGetter?: ((data: Data) => Model) | undefined;
|
79
82
|
icon?: SVGComponent | undefined;
|
80
83
|
readonly?: boolean | undefined;
|
81
84
|
skeleton?: boolean | undefined;
|
@@ -83,7 +86,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
83
86
|
placeholder?: string | undefined;
|
84
87
|
errorMessage?: string | undefined;
|
85
88
|
hasChanges?: boolean | undefined;
|
86
|
-
onUnselect?: ((item:
|
89
|
+
onUnselect?: ((item: Model) => any) | undefined;
|
87
90
|
mono?: boolean | undefined;
|
88
91
|
noMargin?: boolean | undefined;
|
89
92
|
mobileTitle?: string | undefined;
|
@@ -105,6 +108,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
105
108
|
hidePrefix?: boolean | undefined;
|
106
109
|
allowCreate?: boolean | undefined;
|
107
110
|
previewData?: Data[] | undefined;
|
111
|
+
valueQueryKey?: string | undefined;
|
108
112
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
109
113
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
110
114
|
focus: () => void;
|
@@ -129,10 +133,10 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
129
133
|
}) => void) | undefined;
|
130
134
|
};
|
131
135
|
emit: {
|
132
|
-
(e: 'select', item:
|
133
|
-
(e: 'unselect', item:
|
136
|
+
(e: 'select', item: Model): void;
|
137
|
+
(e: 'unselect', item: Model): void;
|
134
138
|
(e: 'update:search', value: string): void;
|
135
|
-
(e: 'update:modelValue', value:
|
139
|
+
(e: 'update:modelValue', value: Model[]): void;
|
136
140
|
(e: 'create:option', value: string): void;
|
137
141
|
};
|
138
142
|
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
@@ -141,13 +145,14 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
141
145
|
__ctx?: {
|
142
146
|
props: {
|
143
147
|
required?: boolean | undefined;
|
148
|
+
search: string;
|
144
149
|
title?: string | undefined;
|
145
|
-
onSelect?: ((item:
|
150
|
+
onSelect?: ((item: Model) => any) | undefined;
|
146
151
|
disabled?: boolean | undefined;
|
147
152
|
loading?: boolean | undefined;
|
148
|
-
|
149
|
-
|
150
|
-
|
153
|
+
"onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
|
154
|
+
modelValue: Model[];
|
155
|
+
valueGetter?: ((data: Data) => Model) | undefined;
|
151
156
|
icon?: SVGComponent | undefined;
|
152
157
|
readonly?: boolean | undefined;
|
153
158
|
skeleton?: boolean | undefined;
|
@@ -155,7 +160,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
155
160
|
placeholder?: string | undefined;
|
156
161
|
errorMessage?: string | undefined;
|
157
162
|
hasChanges?: boolean | undefined;
|
158
|
-
onUnselect?: ((item:
|
163
|
+
onUnselect?: ((item: Model) => any) | undefined;
|
159
164
|
mono?: boolean | undefined;
|
160
165
|
noMargin?: boolean | undefined;
|
161
166
|
mobileTitle?: string | undefined;
|
@@ -177,6 +182,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
177
182
|
hidePrefix?: boolean | undefined;
|
178
183
|
allowCreate?: boolean | undefined;
|
179
184
|
previewData?: Data[] | undefined;
|
185
|
+
valueQueryKey?: string | undefined;
|
180
186
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
181
187
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
182
188
|
focus: () => void;
|
@@ -201,13 +207,16 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
201
207
|
}) => void) | undefined;
|
202
208
|
};
|
203
209
|
emit: {
|
204
|
-
(e: 'select', item:
|
205
|
-
(e: 'unselect', item:
|
210
|
+
(e: 'select', item: Model): void;
|
211
|
+
(e: 'unselect', item: Model): void;
|
206
212
|
(e: 'update:search', value: string): void;
|
207
|
-
(e: 'update:modelValue', value:
|
213
|
+
(e: 'update:modelValue', value: Model[]): void;
|
208
214
|
(e: 'create:option', value: string): void;
|
209
215
|
};
|
210
216
|
} | undefined;
|
211
217
|
};
|
212
218
|
export default _default;
|
219
|
+
type __VLS_Prettify<T> = {
|
220
|
+
[K in keyof T]: T[K];
|
221
|
+
} & {};
|
213
222
|
//# sourceMappingURL=WSelectAsync.vue.d.ts.map
|
@@ -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":[],"mappings":"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"}
|
@@ -10,31 +10,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
modelValue: {},
|
11
11
|
search: {},
|
12
12
|
useQueryFn: {},
|
13
|
-
isInvalidPage: {
|
13
|
+
isInvalidPage: {},
|
14
14
|
queryParams: {},
|
15
|
-
title: {},
|
16
|
-
mobileTitle: {},
|
17
|
-
description: {},
|
15
|
+
title: { default: void 0 },
|
16
|
+
mobileTitle: { default: void 0 },
|
17
|
+
description: { default: void 0 },
|
18
18
|
loading: { type: Boolean },
|
19
|
-
emptyStub: {},
|
20
|
-
maxSearchLength: {},
|
21
|
-
optionComponent: {},
|
19
|
+
emptyStub: { default: void 0 },
|
20
|
+
maxSearchLength: { default: void 0 },
|
21
|
+
optionComponent: { default: void 0 },
|
22
22
|
disableClear: { type: Boolean },
|
23
23
|
hidePrefix: { type: Boolean },
|
24
24
|
readonly: { type: Boolean },
|
25
25
|
disabled: { type: Boolean },
|
26
26
|
skeleton: { type: Boolean },
|
27
|
-
searchSize: {},
|
27
|
+
searchSize: { default: void 0 },
|
28
28
|
allowCreate: { type: Boolean },
|
29
|
-
errorMessage: {},
|
29
|
+
errorMessage: { default: void 0 },
|
30
30
|
required: { type: Boolean },
|
31
31
|
hasChanges: { type: Boolean },
|
32
|
-
placeholder: {},
|
32
|
+
placeholder: { default: void 0 },
|
33
33
|
noMargin: { type: Boolean },
|
34
|
-
icon: {},
|
34
|
+
icon: { default: void 0 },
|
35
35
|
mono: { type: Boolean },
|
36
|
-
previewData: {},
|
37
|
-
hideOptionIcon: { type: Boolean }
|
36
|
+
previewData: { default: void 0 },
|
37
|
+
hideOptionIcon: { type: Boolean },
|
38
|
+
valueGetter: { type: Function, default: (data) => data.id },
|
39
|
+
valueQueryKey: { default: "id__in" }
|
38
40
|
},
|
39
41
|
emits: ["select", "unselect", "update:search", "update:modelValue", "create:option"],
|
40
42
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -143,6 +145,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
143
145
|
"option-component": _ctx.optionComponent,
|
144
146
|
"disable-clear": _ctx.disableClear,
|
145
147
|
"preview-data": _ctx.previewData,
|
148
|
+
"value-getter": _ctx.valueGetter ?? ((item) => item.id),
|
149
|
+
"value-query-key": _ctx.valueQueryKey,
|
146
150
|
onUnselect: unselect,
|
147
151
|
"onUpdate:fetching": _cache[0] || (_cache[0] = ($event) => {
|
148
152
|
!$event && updateDropdown();
|
@@ -159,7 +163,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
159
163
|
})
|
160
164
|
]),
|
161
165
|
_: 3
|
162
|
-
}, 8, ["use-query-fn", "model-value", "disabled", "loading", "option-component", "disable-clear", "preview-data"])) : createCommentVNode("", true)
|
166
|
+
}, 8, ["use-query-fn", "model-value", "disabled", "loading", "option-component", "disable-clear", "preview-data", "value-getter", "value-query-key"])) : createCommentVNode("", true)
|
163
167
|
]),
|
164
168
|
content: withCtx(() => [
|
165
169
|
createVNode(_sfc_main$3, {
|
@@ -174,6 +178,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
174
178
|
"empty-stub": _ctx.emptyStub ?? "No match",
|
175
179
|
"allow-create": _ctx.allowCreate && _ctx.search !== "",
|
176
180
|
"hide-option-icon": _ctx.hideOptionIcon,
|
181
|
+
"value-getter": _ctx.valueGetter,
|
177
182
|
onSelect: select,
|
178
183
|
onUnselect: unselect,
|
179
184
|
"onCreate:option": create,
|
@@ -196,7 +201,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
196
201
|
])
|
197
202
|
]),
|
198
203
|
_: 3
|
199
|
-
}, 8, ["model-value", "use-query-fn", "query-params", "is-invalid-page", "loading", "disabled", "empty-stub", "allow-create", "hide-option-icon"])
|
204
|
+
}, 8, ["model-value", "use-query-fn", "query-params", "is-invalid-page", "loading", "disabled", "empty-stub", "allow-create", "hide-option-icon", "value-getter"])
|
200
205
|
]),
|
201
206
|
_: 2
|
202
207
|
}, [
|
@@ -1,9 +1,10 @@
|
|
1
|
-
declare const _default: <Data extends DefaultData>(__VLS_props: {
|
1
|
+
declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
|
2
2
|
title?: string | undefined;
|
3
|
-
onSelect?: ((value:
|
4
|
-
modelValue:
|
3
|
+
onSelect?: ((value: Model) => any) | undefined;
|
4
|
+
modelValue: Model[];
|
5
|
+
valueGetter?: ((data: Data) => Model) | undefined;
|
5
6
|
skeleton?: boolean | undefined;
|
6
|
-
onUnselect?: ((value:
|
7
|
+
onUnselect?: ((value: Model) => any) | undefined;
|
7
8
|
queryParams: QueryParams;
|
8
9
|
selectOnly?: boolean | undefined;
|
9
10
|
unselectOnly?: boolean | undefined;
|
@@ -12,7 +13,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
12
13
|
isInvalidPage: (error: unknown) => boolean;
|
13
14
|
emptyStub?: string | undefined;
|
14
15
|
excludeParams?: string[] | undefined;
|
15
|
-
"onUpdate:model-value"?: ((value:
|
16
|
+
"onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
|
16
17
|
hideOptionIcon?: boolean | undefined;
|
17
18
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
18
19
|
attrs: any;
|
@@ -32,18 +33,19 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
32
33
|
}) => void) | undefined;
|
33
34
|
};
|
34
35
|
emit: {
|
35
|
-
(e: 'select', value:
|
36
|
-
(e: 'unselect', value:
|
37
|
-
(e: 'update:model-value', value:
|
36
|
+
(e: 'select', value: Model): void;
|
37
|
+
(e: 'unselect', value: Model): void;
|
38
|
+
(e: 'update:model-value', value: Model[]): void;
|
38
39
|
(e: 'update:count', value: number): void;
|
39
40
|
};
|
40
41
|
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
41
42
|
props: {
|
42
43
|
title?: string | undefined;
|
43
|
-
onSelect?: ((value:
|
44
|
-
modelValue:
|
44
|
+
onSelect?: ((value: Model) => any) | undefined;
|
45
|
+
modelValue: Model[];
|
46
|
+
valueGetter?: ((data: Data) => Model) | undefined;
|
45
47
|
skeleton?: boolean | undefined;
|
46
|
-
onUnselect?: ((value:
|
48
|
+
onUnselect?: ((value: Model) => any) | undefined;
|
47
49
|
queryParams: QueryParams;
|
48
50
|
selectOnly?: boolean | undefined;
|
49
51
|
unselectOnly?: boolean | undefined;
|
@@ -52,7 +54,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
52
54
|
isInvalidPage: (error: unknown) => boolean;
|
53
55
|
emptyStub?: string | undefined;
|
54
56
|
excludeParams?: string[] | undefined;
|
55
|
-
"onUpdate:model-value"?: ((value:
|
57
|
+
"onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
|
56
58
|
hideOptionIcon?: boolean | undefined;
|
57
59
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
58
60
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
@@ -73,9 +75,9 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
73
75
|
}) => void) | undefined;
|
74
76
|
};
|
75
77
|
emit: {
|
76
|
-
(e: 'select', value:
|
77
|
-
(e: 'unselect', value:
|
78
|
-
(e: 'update:model-value', value:
|
78
|
+
(e: 'select', value: Model): void;
|
79
|
+
(e: 'unselect', value: Model): void;
|
80
|
+
(e: 'update:model-value', value: Model[]): void;
|
79
81
|
(e: 'update:count', value: number): void;
|
80
82
|
};
|
81
83
|
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
@@ -84,10 +86,11 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
84
86
|
__ctx?: {
|
85
87
|
props: {
|
86
88
|
title?: string | undefined;
|
87
|
-
onSelect?: ((value:
|
88
|
-
modelValue:
|
89
|
+
onSelect?: ((value: Model) => any) | undefined;
|
90
|
+
modelValue: Model[];
|
91
|
+
valueGetter?: ((data: Data) => Model) | undefined;
|
89
92
|
skeleton?: boolean | undefined;
|
90
|
-
onUnselect?: ((value:
|
93
|
+
onUnselect?: ((value: Model) => any) | undefined;
|
91
94
|
queryParams: QueryParams;
|
92
95
|
selectOnly?: boolean | undefined;
|
93
96
|
unselectOnly?: boolean | undefined;
|
@@ -96,7 +99,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
96
99
|
isInvalidPage: (error: unknown) => boolean;
|
97
100
|
emptyStub?: string | undefined;
|
98
101
|
excludeParams?: string[] | undefined;
|
99
|
-
"onUpdate:model-value"?: ((value:
|
102
|
+
"onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
|
100
103
|
hideOptionIcon?: boolean | undefined;
|
101
104
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
102
105
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
@@ -117,12 +120,15 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
117
120
|
}) => void) | undefined;
|
118
121
|
};
|
119
122
|
emit: {
|
120
|
-
(e: 'select', value:
|
121
|
-
(e: 'unselect', value:
|
122
|
-
(e: 'update:model-value', value:
|
123
|
+
(e: 'select', value: Model): void;
|
124
|
+
(e: 'unselect', value: Model): void;
|
125
|
+
(e: 'update:model-value', value: Model[]): void;
|
123
126
|
(e: 'update:count', value: number): void;
|
124
127
|
};
|
125
128
|
} | undefined;
|
126
129
|
};
|
127
130
|
export default _default;
|
131
|
+
type __VLS_Prettify<T> = {
|
132
|
+
[K in keyof T]: T[K];
|
133
|
+
} & {};
|
128
134
|
//# sourceMappingURL=WSelectAsyncList.vue.d.ts.map
|
@@ -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":"AAuDA;;;;gBAyOgB,KAAK,EAAE;0BASE,IAAI,KAAK,KAAK;;;iBANtB,WAAW;;;;gBAFZ,kBAAkB,IAAI,CAAC;2BACZ,OAAO,KAAK,OAAO;;;;;;WAevC,GAAG;;2BA3MU;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,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;YAC7B,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,oBAAoB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC3C,cAAc,SAAS,MAAM,GAAG,IAAI;;yCAgN1B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;oBAhBzC,KAAK,EAAE;8BASE,IAAI,KAAK,KAAK;;;qBANtB,WAAW;;;;oBAFZ,kBAAkB,IAAI,CAAC;+BACZ,OAAO,KAAK,OAAO;;;;;;oBAc9B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;2BA3MU;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;YAC7B,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,oBAAoB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC3C,cAAc,SAAS,MAAM,GAAG,IAAI;;;;;;;;;wBAgM1B,KAAK,EAAE;kCASE,IAAI,KAAK,KAAK;;;yBANtB,WAAW;;;;wBAFZ,kBAAkB,IAAI,CAAC;mCACZ,OAAO,KAAK,OAAO;;;;;;wBAc9B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;+BA3MU;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;;;;AAlC1C,wBAwP2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
@@ -9,17 +9,18 @@ const _hoisted_1 = {
|
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
10
|
__name: "WSelectAsyncList",
|
11
11
|
props: {
|
12
|
-
title: {},
|
13
|
-
emptyStub: {},
|
12
|
+
title: { default: void 0 },
|
13
|
+
emptyStub: { default: void 0 },
|
14
14
|
modelValue: {},
|
15
15
|
useQueryFn: {},
|
16
|
-
isInvalidPage: {
|
16
|
+
isInvalidPage: {},
|
17
17
|
queryParams: {},
|
18
18
|
skeleton: { type: Boolean },
|
19
|
-
excludeParams: {},
|
19
|
+
excludeParams: { default: void 0 },
|
20
20
|
selectOnly: { type: Boolean },
|
21
21
|
unselectOnly: { type: Boolean },
|
22
|
-
hideOptionIcon: { type: Boolean }
|
22
|
+
hideOptionIcon: { type: Boolean },
|
23
|
+
valueGetter: { type: Function, default: (data) => data.id }
|
23
24
|
},
|
24
25
|
emits: ["select", "unselect", "update:model-value", "update:count"],
|
25
26
|
setup(__props) {
|
@@ -51,6 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
51
52
|
"select-only": _ctx.selectOnly,
|
52
53
|
"unselect-only": _ctx.unselectOnly,
|
53
54
|
"hide-option-icon": _ctx.hideOptionIcon,
|
55
|
+
"value-getter": _ctx.valueGetter,
|
54
56
|
"allow-update-selected": "",
|
55
57
|
transition: "",
|
56
58
|
"no-padding": "",
|
@@ -68,7 +70,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
68
70
|
})
|
69
71
|
]),
|
70
72
|
_: 3
|
71
|
-
}, 8, ["model-value", "use-query-fn", "is-invalid-page", "query-params", "scrolling-element", "exclude-params", "empty-stub", "select-only", "unselect-only", "hide-option-icon"])
|
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"])
|
72
74
|
], 512))
|
73
75
|
]);
|
74
76
|
};
|
@@ -1,12 +1,13 @@
|
|
1
1
|
import { type Component } from 'vue';
|
2
|
-
declare const _default: <Data extends DefaultData>(__VLS_props: {
|
2
|
+
declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
|
3
3
|
required?: boolean | undefined;
|
4
|
+
search: string;
|
4
5
|
title?: string | undefined;
|
5
6
|
disabled?: boolean | undefined;
|
6
7
|
loading?: boolean | undefined;
|
7
|
-
|
8
|
-
|
9
|
-
|
8
|
+
"onUpdate:modelValue"?: ((value: Model | null) => any) | undefined;
|
9
|
+
modelValue: Model | null;
|
10
|
+
valueGetter?: ((data: Data) => Model) | undefined;
|
10
11
|
icon?: SVGComponent | undefined;
|
11
12
|
readonly?: boolean | undefined;
|
12
13
|
skeleton?: boolean | undefined;
|
@@ -34,18 +35,19 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
34
35
|
"onCreate:option"?: ((value: string) => any) | undefined;
|
35
36
|
allowCreate?: boolean | undefined;
|
36
37
|
previewData?: Data | undefined;
|
38
|
+
valueQueryKey?: string | undefined;
|
37
39
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
38
40
|
attrs: any;
|
39
41
|
slots: {
|
40
42
|
option?(_: {
|
41
|
-
option:
|
43
|
+
option: Data | null;
|
42
44
|
selected: boolean;
|
43
45
|
model: boolean;
|
44
46
|
}): any;
|
45
47
|
right?(_: {}): any;
|
46
48
|
};
|
47
49
|
emit: {
|
48
|
-
(e: 'update:modelValue', value:
|
50
|
+
(e: 'update:modelValue', value: Model | null): void;
|
49
51
|
(e: 'update:search', value: string): void;
|
50
52
|
(e: 'create:option', value: string): void;
|
51
53
|
};
|
@@ -54,12 +56,13 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
54
56
|
}>) => void) | undefined, __VLS_setup?: Promise<{
|
55
57
|
props: {
|
56
58
|
required?: boolean | undefined;
|
59
|
+
search: string;
|
57
60
|
title?: string | undefined;
|
58
61
|
disabled?: boolean | undefined;
|
59
62
|
loading?: boolean | undefined;
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
+
"onUpdate:modelValue"?: ((value: Model | null) => any) | undefined;
|
64
|
+
modelValue: Model | null;
|
65
|
+
valueGetter?: ((data: Data) => Model) | undefined;
|
63
66
|
icon?: SVGComponent | undefined;
|
64
67
|
readonly?: boolean | undefined;
|
65
68
|
skeleton?: boolean | undefined;
|
@@ -87,6 +90,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
87
90
|
"onCreate:option"?: ((value: string) => any) | undefined;
|
88
91
|
allowCreate?: boolean | undefined;
|
89
92
|
previewData?: Data | undefined;
|
93
|
+
valueQueryKey?: string | undefined;
|
90
94
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
91
95
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
92
96
|
blur: () => void;
|
@@ -94,14 +98,14 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
94
98
|
attrs: any;
|
95
99
|
slots: {
|
96
100
|
option?(_: {
|
97
|
-
option:
|
101
|
+
option: Data | null;
|
98
102
|
selected: boolean;
|
99
103
|
model: boolean;
|
100
104
|
}): any;
|
101
105
|
right?(_: {}): any;
|
102
106
|
};
|
103
107
|
emit: {
|
104
|
-
(e: 'update:modelValue', value:
|
108
|
+
(e: 'update:modelValue', value: Model | null): void;
|
105
109
|
(e: 'update:search', value: string): void;
|
106
110
|
(e: 'create:option', value: string): void;
|
107
111
|
};
|
@@ -111,12 +115,13 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
111
115
|
__ctx?: {
|
112
116
|
props: {
|
113
117
|
required?: boolean | undefined;
|
118
|
+
search: string;
|
114
119
|
title?: string | undefined;
|
115
120
|
disabled?: boolean | undefined;
|
116
121
|
loading?: boolean | undefined;
|
117
|
-
|
118
|
-
|
119
|
-
|
122
|
+
"onUpdate:modelValue"?: ((value: Model | null) => any) | undefined;
|
123
|
+
modelValue: Model | null;
|
124
|
+
valueGetter?: ((data: Data) => Model) | undefined;
|
120
125
|
icon?: SVGComponent | undefined;
|
121
126
|
readonly?: boolean | undefined;
|
122
127
|
skeleton?: boolean | undefined;
|
@@ -144,6 +149,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
144
149
|
"onCreate:option"?: ((value: string) => any) | undefined;
|
145
150
|
allowCreate?: boolean | undefined;
|
146
151
|
previewData?: Data | undefined;
|
152
|
+
valueQueryKey?: string | undefined;
|
147
153
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
148
154
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
149
155
|
blur: () => void;
|
@@ -151,14 +157,14 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
151
157
|
attrs: any;
|
152
158
|
slots: {
|
153
159
|
option?(_: {
|
154
|
-
option:
|
160
|
+
option: Data | null;
|
155
161
|
selected: boolean;
|
156
162
|
model: boolean;
|
157
163
|
}): any;
|
158
164
|
right?(_: {}): any;
|
159
165
|
};
|
160
166
|
emit: {
|
161
|
-
(e: 'update:modelValue', value:
|
167
|
+
(e: 'update:modelValue', value: Model | null): void;
|
162
168
|
(e: 'update:search', value: string): void;
|
163
169
|
(e: 'create:option', value: string): void;
|
164
170
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelectAsyncSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncSingle.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WSelectAsyncSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncSingle.vue"],"names":[],"mappings":"AAyDA;AAEA,OAAO,EAA8B,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;;YAwNrD,MAAM;;;;;gBADF,KAAK,GAAG,IAAI;0BA2BH,IAAI,KAAK,KAAK;;;;;;;;;;;;;iBAvBtB,WAAW;gBAFZ,kBAAkB,IAAI,CAAC;2BACZ,OAAO,KAAK,OAAO;;;;;gBAQL,IAAI;;;;;;;;;;WAyBpC,GAAG;;;;;;YA3DmB,GAAG;uBACJ,GAAG;;;YAtJzB,mBAAmB,SAAS,KAAK,GAAG,IAAI,GAAG,IAAI;YAC/C,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;OA6M4B,IAAI;;;gBAlCjE,MAAM;;;;;oBADF,KAAK,GAAG,IAAI;8BA2BH,IAAI,KAAK,KAAK;;;;;;;;;;;;;qBAvBtB,WAAW;oBAFZ,kBAAkB,IAAI,CAAC;+BACZ,OAAO,KAAK,OAAO;;;;;oBAQL,IAAI;;;;;;;;;;;;SAwB4B,IAAI;WACpE,GAAG;;;;;;YA3DmB,GAAG;uBACJ,GAAG;;;YAtJzB,mBAAmB,SAAS,KAAK,GAAG,IAAI,GAAG,IAAI;YAC/C,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;;;;;oBA2KjC,MAAM;;;;;wBADF,KAAK,GAAG,IAAI;kCA2BH,IAAI,KAAK,KAAK;;;;;;;;;;;;;yBAvBtB,WAAW;wBAFZ,kBAAkB,IAAI,CAAC;mCACZ,OAAO,KAAK,OAAO;;;;;wBAQL,IAAI;;;;;;;;;;;;aAwB4B,IAAI;eACpE,GAAG;;;;;;gBA3DmB,GAAG;2BACJ,GAAG;;;gBAtJzB,mBAAmB,SAAS,KAAK,GAAG,IAAI,GAAG,IAAI;gBAC/C,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;AAzC3C,wBA4P2E"}
|
@@ -30,7 +30,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
30
30
|
mono: { type: Boolean },
|
31
31
|
allowClear: { type: Boolean },
|
32
32
|
previewData: {},
|
33
|
-
hideOptionIcon: { type: Boolean }
|
33
|
+
hideOptionIcon: { type: Boolean },
|
34
|
+
valueGetter: { type: Function },
|
35
|
+
valueQueryKey: {}
|
34
36
|
},
|
35
37
|
emits: ["update:modelValue", "update:search", "create:option"],
|
36
38
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -84,9 +86,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
84
86
|
"disable-clear": !_ctx.allowClear,
|
85
87
|
"preview-data": _ctx.previewData ? [_ctx.previewData] : void 0,
|
86
88
|
"hide-option-icon": _ctx.hideOptionIcon,
|
89
|
+
"value-getter": _ctx.valueGetter,
|
90
|
+
"value-query-key": _ctx.valueQueryKey,
|
87
91
|
"hide-prefix": "",
|
88
92
|
onSelect: _cache[0] || (_cache[0] = ($event) => updateModelValue($event)),
|
89
|
-
onUnselect: _cache[1] || (_cache[1] = ($event) =>
|
93
|
+
onUnselect: _cache[1] || (_cache[1] = ($event) => _ctx.allowClear && updateModelValue(null)),
|
90
94
|
"onUpdate:search": _cache[2] || (_cache[2] = ($event) => emit("update:search", $event)),
|
91
95
|
"onCreate:option": _cache[3] || (_cache[3] = ($event) => createOption($event))
|
92
96
|
}, createSlots({
|
@@ -106,7 +110,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
106
110
|
]),
|
107
111
|
key: "0"
|
108
112
|
} : void 0
|
109
|
-
]), 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", "hide-option-icon"])
|
113
|
+
]), 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", "hide-option-icon", "value-getter", "value-query-key"])
|
110
114
|
]);
|
111
115
|
};
|
112
116
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { type Component } from 'vue';
|
2
2
|
declare const _default: <Item extends string | number = string>(__VLS_props: {
|
3
3
|
required?: boolean | undefined;
|
4
|
+
search: string;
|
4
5
|
title?: string | undefined;
|
5
6
|
disabled?: boolean | undefined;
|
6
7
|
loading?: boolean | undefined;
|
7
|
-
search: string;
|
8
8
|
"onUpdate:modelValue"?: ((value: Item | null) => any) | undefined;
|
9
9
|
modelValue: Item | null;
|
10
10
|
icon?: SVGComponent | undefined;
|
@@ -51,10 +51,10 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
|
|
51
51
|
}>) => void) | undefined, __VLS_setup?: Promise<{
|
52
52
|
props: {
|
53
53
|
required?: boolean | undefined;
|
54
|
+
search: string;
|
54
55
|
title?: string | undefined;
|
55
56
|
disabled?: boolean | undefined;
|
56
57
|
loading?: boolean | undefined;
|
57
|
-
search: string;
|
58
58
|
"onUpdate:modelValue"?: ((value: Item | null) => any) | undefined;
|
59
59
|
modelValue: Item | null;
|
60
60
|
icon?: SVGComponent | undefined;
|
@@ -105,10 +105,10 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
|
|
105
105
|
__ctx?: {
|
106
106
|
props: {
|
107
107
|
required?: boolean | undefined;
|
108
|
+
search: string;
|
108
109
|
title?: string | undefined;
|
109
110
|
disabled?: boolean | undefined;
|
110
111
|
loading?: boolean | undefined;
|
111
|
-
search: string;
|
112
112
|
"onUpdate:modelValue"?: ((value: Item | null) => any) | undefined;
|
113
113
|
modelValue: Item | null;
|
114
114
|
icon?: SVGComponent | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectSingle.vue"],"names":[],"mappings":"AAoDA;AAEA,OAAO,EAA8B,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA
|
1
|
+
{"version":3,"file":"WSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectSingle.vue"],"names":[],"mappings":"AAoDA;AAEA,OAAO,EAA8B,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;;YAmNrD,MAAM;;;;;gBADF,IAAI,GAAG,IAAI;;;;;;;;;;;;;;;aAEd,IAAI,EAAE;;;gBAOsB,IAAI;;;;;;;;WAsBpC,GAAG;;;;;;YAtDmB,GAAG;uBACJ,GAAG;;;YAtJzB,mBAAmB,SAAS,IAAI,GAAG,IAAI,GAAG,IAAI;YAC9C,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;OAwM4B,IAAI;;;gBA7BjE,MAAM;;;;;oBADF,IAAI,GAAG,IAAI;;;;;;;;;;;;;;;iBAEd,IAAI,EAAE;;;oBAOsB,IAAI;;;;;;;;;;SAqB4B,IAAI;WACpE,GAAG;;;;;;YAtDmB,GAAG;uBACJ,GAAG;;;YAtJzB,mBAAmB,SAAS,IAAI,GAAG,IAAI,GAAG,IAAI;YAC9C,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;;;;;oBA2KjC,MAAM;;;;;wBADF,IAAI,GAAG,IAAI;;;;;;;;;;;;;;;qBAEd,IAAI,EAAE;;;wBAOsB,IAAI;;;;;;;;;;aAqB4B,IAAI;eACpE,GAAG;;;;;;gBAtDmB,GAAG;2BACJ,GAAG;;;gBAtJzB,mBAAmB,SAAS,IAAI,GAAG,IAAI,GAAG,IAAI;gBAC9C,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;AApC3C,wBAkP2E"}
|