eco-vue-js 0.3.84 → 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/Button/WButtonSelection.vue.d.ts +4 -9
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelection.vue.js +51 -6
- package/dist/components/Button/WButtonSelectionAction.vue.js +15 -15
- 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,8 +1,9 @@
|
|
1
|
-
declare const _default: <Data extends DefaultData>(__VLS_props: {
|
1
|
+
declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
|
2
2
|
reverse?: boolean | undefined;
|
3
3
|
disabled?: boolean | undefined;
|
4
|
-
|
5
|
-
selected:
|
4
|
+
valueGetter: (data: Data) => Model;
|
5
|
+
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
6
|
+
selected: Model[];
|
6
7
|
items: Data[];
|
7
8
|
tooltipTextPersisted?: boolean | undefined;
|
8
9
|
selectOnly?: boolean | undefined;
|
@@ -10,13 +11,14 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
10
11
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
11
12
|
attrs: any;
|
12
13
|
slots: {};
|
13
|
-
emit: (e: 'update:selected', values:
|
14
|
+
emit: (e: 'update:selected', values: Model[]) => void;
|
14
15
|
} | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
|
15
16
|
props: {
|
16
17
|
reverse?: boolean | undefined;
|
17
18
|
disabled?: boolean | undefined;
|
18
|
-
|
19
|
-
selected:
|
19
|
+
valueGetter: (data: Data) => Model;
|
20
|
+
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
21
|
+
selected: Model[];
|
20
22
|
items: Data[];
|
21
23
|
tooltipTextPersisted?: boolean | undefined;
|
22
24
|
selectOnly?: boolean | undefined;
|
@@ -25,7 +27,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
25
27
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
26
28
|
attrs: any;
|
27
29
|
slots: {};
|
28
|
-
emit: (e: 'update:selected', values:
|
30
|
+
emit: (e: 'update:selected', values: Model[]) => void;
|
29
31
|
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
30
32
|
[key: string]: any;
|
31
33
|
}> & {
|
@@ -33,8 +35,9 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
33
35
|
props: {
|
34
36
|
reverse?: boolean | undefined;
|
35
37
|
disabled?: boolean | undefined;
|
36
|
-
|
37
|
-
selected:
|
38
|
+
valueGetter: (data: Data) => Model;
|
39
|
+
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
40
|
+
selected: Model[];
|
38
41
|
items: Data[];
|
39
42
|
tooltipTextPersisted?: boolean | undefined;
|
40
43
|
selectOnly?: boolean | undefined;
|
@@ -43,7 +46,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
43
46
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
44
47
|
attrs: any;
|
45
48
|
slots: {};
|
46
|
-
emit: (e: 'update:selected', values:
|
49
|
+
emit: (e: 'update:selected', values: Model[]) => void;
|
47
50
|
} | undefined;
|
48
51
|
};
|
49
52
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfiniteListPageSelection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPageSelection.vue"],"names":[],"mappings":"AAqBA
|
1
|
+
{"version":3,"file":"InfiniteListPageSelection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPageSelection.vue"],"names":[],"mappings":"AAqBA;;;;wBA2IsB,IAAI,KAAK,KAAK;;cAPxB,KAAK,EAAE;WACV,IAAI,EAAE;;;;;WAcR,GAAG;;cA3HJ,iBAAiB,UAAU,KAAK,EAAE,KAAG,IAAI;yCA0H/B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;4BAPnC,IAAI,KAAK,KAAK;;kBAPxB,KAAK,EAAE;eACV,IAAI,EAAE;;;;;oBAaC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cA3HJ,iBAAiB,UAAU,KAAK,EAAE,KAAG,IAAI;;;;;;;;gCAmHzB,IAAI,KAAK,KAAK;;sBAPxB,KAAK,EAAE;mBACV,IAAI,EAAE;;;;;wBAaC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;kBA3HJ,iBAAiB,UAAU,KAAK,EAAE,KAAG,IAAI;;;AAlB/C,wBAkJ2E"}
|
@@ -10,14 +10,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
10
|
tooltipTextPersisted: { type: Boolean },
|
11
11
|
selectOnly: { type: Boolean },
|
12
12
|
unselectOnly: { type: Boolean },
|
13
|
-
reverse: { type: Boolean }
|
13
|
+
reverse: { type: Boolean },
|
14
|
+
valueGetter: { type: Function }
|
14
15
|
},
|
15
16
|
emits: ["update:selected"],
|
16
17
|
setup(__props, { emit: __emit }) {
|
17
18
|
const props = __props;
|
18
19
|
const emit = __emit;
|
19
|
-
const
|
20
|
-
const selectedItems = computed(() =>
|
20
|
+
const models = computed(() => props.items.map((item) => props.valueGetter(item)));
|
21
|
+
const selectedItems = computed(() => models.value.filter((item) => props.selected.includes(item)));
|
21
22
|
const hasSelected = computed(() => selectedItems.value.length !== 0);
|
22
23
|
const chekboxValue = computed(() => {
|
23
24
|
if (props.selectOnly)
|
@@ -34,9 +35,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
35
|
const tooltipText = computed(() => `${chekboxValueReversed.value === true ? "Unselect" : "Select"} page (${props.items.length} item${props.items.length === 1 ? "" : "s"})`);
|
35
36
|
const selectOrUnselect = (isSelect) => {
|
36
37
|
if (props.reverse ? !isSelect : isSelect) {
|
37
|
-
emit("update:selected", [...props.selected, ...
|
38
|
+
emit("update:selected", [...props.selected, ...models.value].filter((item, index, arr) => arr.indexOf(item) === index));
|
38
39
|
} else {
|
39
|
-
emit("update:selected", props.selected.filter((
|
40
|
+
emit("update:selected", props.selected.filter((item) => !models.value.includes(item)));
|
40
41
|
}
|
41
42
|
};
|
42
43
|
return (_ctx, _cache) => {
|
@@ -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
|
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,11 +1,11 @@
|
|
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
|
onSelect?: ((item: string | number) => any) | undefined;
|
6
7
|
disabled?: boolean | undefined;
|
7
8
|
loading?: boolean | undefined;
|
8
|
-
search: string;
|
9
9
|
modelValue: Item[];
|
10
10
|
icon?: SVGComponent | undefined;
|
11
11
|
readonly?: boolean | undefined;
|
@@ -55,11 +55,11 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
|
|
55
55
|
}>) => void) | undefined, __VLS_setup?: Promise<{
|
56
56
|
props: {
|
57
57
|
required?: boolean | undefined;
|
58
|
+
search: string;
|
58
59
|
title?: string | undefined;
|
59
60
|
onSelect?: ((item: string | number) => any) | undefined;
|
60
61
|
disabled?: boolean | undefined;
|
61
62
|
loading?: boolean | undefined;
|
62
|
-
search: string;
|
63
63
|
modelValue: Item[];
|
64
64
|
icon?: SVGComponent | undefined;
|
65
65
|
readonly?: boolean | undefined;
|
@@ -113,11 +113,11 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
|
|
113
113
|
__ctx?: {
|
114
114
|
props: {
|
115
115
|
required?: boolean | undefined;
|
116
|
+
search: string;
|
116
117
|
title?: string | undefined;
|
117
118
|
onSelect?: ((item: string | number) => any) | undefined;
|
118
119
|
disabled?: boolean | undefined;
|
119
120
|
loading?: boolean | undefined;
|
120
|
-
search: string;
|
121
121
|
modelValue: Item[];
|
122
122
|
icon?: SVGComponent | undefined;
|
123
123
|
readonly?: boolean | undefined;
|
@@ -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
|
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,MAAM,GAAG,MAAM,GAAG,IAAI;YACtC,UAAU,QAAQ,MAAM,GAAG,MAAM,GAAG,IAAI;YACxC,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;;OAwmB4B,IAAI;;;gBA9BjE,MAAM;;;;;oBADF,IAAI,EAAE;;;;;;;;;;;;;;;iBAET,IAAI,EAAE;;;oBAOsB,IAAI;;;;;;;;;;;;;SAsB4B,IAAI;WACpE,GAAG;;;;;;YArEoB,GAAG;uBACL,GAAG;;;YAxiBzB,QAAQ,QAAQ,MAAM,GAAG,MAAM,GAAG,IAAI;YACtC,UAAU,QAAQ,MAAM,GAAG,MAAM,GAAG,IAAI;YACxC,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;;;;;oBA0kBjC,MAAM;;;;;wBADF,IAAI,EAAE;;;;;;;;;;;;;;;qBAET,IAAI,EAAE;;;wBAOsB,IAAI;;;;;;;;;;;;;aAsB4B,IAAI;eACpE,GAAG;;;;;;gBArEoB,GAAG;2BACL,GAAG;;;gBAxiBzB,QAAQ,QAAQ,MAAM,GAAG,MAAM,GAAG,IAAI;gBACtC,UAAU,QAAQ,MAAM,GAAG,MAAM,GAAG,IAAI;gBACxC,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;AAtC3C,wBAopB2E"}
|
@@ -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
|
};
|