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
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
|
disabled?: boolean | undefined;
|
4
4
|
loading?: boolean | undefined;
|
5
|
-
|
5
|
+
valueGetter: (value: Data) => Model;
|
6
|
+
onUnselect?: ((value: Model) => any) | undefined;
|
6
7
|
queryParams: QueryParams;
|
7
8
|
useQueryFn: UsePaginatedQuery<Data>;
|
8
9
|
optionComponent?: Component<{
|
@@ -28,7 +29,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
28
29
|
}) => void) | undefined;
|
29
30
|
};
|
30
31
|
emit: {
|
31
|
-
(e: 'unselect', value:
|
32
|
+
(e: 'unselect', value: Model): void;
|
32
33
|
(e: 'update:pages-count', value: number): void;
|
33
34
|
(e: 'update:fetching', value: boolean): void;
|
34
35
|
};
|
@@ -36,7 +37,8 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
36
37
|
props: {
|
37
38
|
disabled?: boolean | undefined;
|
38
39
|
loading?: boolean | undefined;
|
39
|
-
|
40
|
+
valueGetter: (value: Data) => Model;
|
41
|
+
onUnselect?: ((value: Model) => any) | undefined;
|
40
42
|
queryParams: QueryParams;
|
41
43
|
useQueryFn: UsePaginatedQuery<Data>;
|
42
44
|
optionComponent?: Component<{
|
@@ -63,7 +65,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
63
65
|
}) => void) | undefined;
|
64
66
|
};
|
65
67
|
emit: {
|
66
|
-
(e: 'unselect', value:
|
68
|
+
(e: 'unselect', value: Model): void;
|
67
69
|
(e: 'update:pages-count', value: number): void;
|
68
70
|
(e: 'update:fetching', value: boolean): void;
|
69
71
|
};
|
@@ -74,7 +76,8 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
74
76
|
props: {
|
75
77
|
disabled?: boolean | undefined;
|
76
78
|
loading?: boolean | undefined;
|
77
|
-
|
79
|
+
valueGetter: (value: Data) => Model;
|
80
|
+
onUnselect?: ((value: Model) => any) | undefined;
|
78
81
|
queryParams: QueryParams;
|
79
82
|
useQueryFn: UsePaginatedQuery<Data>;
|
80
83
|
optionComponent?: Component<{
|
@@ -101,7 +104,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
|
|
101
104
|
}) => void) | undefined;
|
102
105
|
};
|
103
106
|
emit: {
|
104
|
-
(e: 'unselect', value:
|
107
|
+
(e: 'unselect', value: Model): void;
|
105
108
|
(e: 'update:pages-count', value: number): void;
|
106
109
|
(e: 'update:fetching', value: boolean): void;
|
107
110
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SelectAsyncPrefixPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefixPage.vue"],"names":[],"mappings":"AAwDA;AAEA,OAAO,EAAyB,KAAK,SAAS,EAAkB,MAAM,KAAK,CAAA
|
1
|
+
{"version":3,"file":"SelectAsyncPrefixPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefixPage.vue"],"names":[],"mappings":"AAwDA;AAEA,OAAO,EAAyB,KAAK,SAAS,EAAkB,MAAM,KAAK,CAAA;;;;yBA4OpD,IAAI,KAAK,KAAK;;iBANtB,WAAW;gBADZ,kBAAkB,IAAI,CAAC;;gBAIE,IAAI;;;;;;;;;WAWpC,GAAG;;2BA7LU;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;2BAA1C;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YAjCxD,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,iBAAiB,SAAS,OAAO,GAAG,IAAI;;yCA2N9B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;6BAPlC,IAAI,KAAK,KAAK;;qBANtB,WAAW;oBADZ,kBAAkB,IAAI,CAAC;;oBAIE,IAAI;;;;;;;;;oBAU3B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;2BA7LU;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;2BAA1C;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YAjCxD,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,iBAAiB,SAAS,OAAO,GAAG,IAAI;;;;;;;;;iCAoNvB,IAAI,KAAK,KAAK;;yBANtB,WAAW;wBADZ,kBAAkB,IAAI,CAAC;;wBAIE,IAAI;;;;;;;;;wBAU3B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;+BA7LU;gBAAC,MAAM,EAAE,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;+BAA1C;gBAAC,MAAM,EAAE,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;;gBAjCxD,UAAU,SAAS,KAAK,GAAG,IAAI;gBAC/B,oBAAoB,SAAS,MAAM,GAAG,IAAI;gBAC1C,iBAAiB,SAAS,OAAO,GAAG,IAAI;;;;AApB9C,wBAqP2E"}
|
@@ -12,7 +12,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
12
|
loading: { type: Boolean },
|
13
13
|
optionComponent: {},
|
14
14
|
disableClear: { type: Boolean },
|
15
|
-
previewData: {}
|
15
|
+
previewData: {},
|
16
|
+
valueGetter: { type: Function }
|
16
17
|
},
|
17
18
|
emits: ["unselect", "update:pages-count", "update:fetching"],
|
18
19
|
setup(__props, { emit: __emit }) {
|
@@ -42,7 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
43
|
return (_ctx, _cache) => {
|
43
44
|
return openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.previewData ?? unref(data)?.results, (option) => {
|
44
45
|
return openBlock(), createElementBlock("div", {
|
45
|
-
key: option
|
46
|
+
key: _ctx.valueGetter(option),
|
46
47
|
class: normalizeClass(["relative flex overflow-hidden items-center text-description", {
|
47
48
|
"cursor-pointer": !_ctx.disabled,
|
48
49
|
"cursor-not-allowed": _ctx.disabled
|
@@ -69,7 +70,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
69
70
|
}]),
|
70
71
|
onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
|
71
72
|
}, ["stop", "prevent"])),
|
72
|
-
onClick: withModifiers(($event) => !_ctx.loading && _ctx.$emit("unselect", option
|
73
|
+
onClick: withModifiers(($event) => !_ctx.loading && _ctx.$emit("unselect", _ctx.valueGetter(option)), ["stop", "prevent"])
|
73
74
|
}, [
|
74
75
|
createVNode(unref(IconCancel), { class: "square-3" })
|
75
76
|
], 42, _hoisted_1)
|
@@ -86,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
86
87
|
}]),
|
87
88
|
onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {
|
88
89
|
}, ["stop", "prevent"])),
|
89
|
-
onClick: withModifiers(($event) => !_ctx.loading && _ctx.$emit("unselect", option
|
90
|
+
onClick: withModifiers(($event) => !_ctx.loading && _ctx.$emit("unselect", _ctx.valueGetter(option)), ["stop", "prevent"])
|
90
91
|
}, [
|
91
92
|
createVNode(unref(IconCancel), { class: "square-3" })
|
92
93
|
], 42, _hoisted_2)) : createCommentVNode("", true)
|
@@ -1,77 +1,164 @@
|
|
1
|
-
declare const _default:
|
2
|
-
|
3
|
-
isCursor?: boolean | undefined;
|
1
|
+
declare const _default: <Model extends string | number>(__VLS_props: {
|
2
|
+
onSelect?: (() => any) | undefined;
|
4
3
|
loading?: boolean | undefined;
|
5
|
-
skeleton?: boolean | undefined;
|
6
4
|
scroll?: boolean | undefined;
|
7
|
-
first?: boolean | undefined;
|
8
|
-
last?: boolean | undefined;
|
9
|
-
previous?: number | null | undefined;
|
10
|
-
next?: number | null | undefined;
|
11
|
-
isNoCursor?: boolean | undefined;
|
12
|
-
hideOptionIcon?: boolean | undefined;
|
13
|
-
}>, {
|
14
|
-
scrollIntoView: () => void;
|
15
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
16
|
-
select: () => void;
|
17
|
-
unselect: () => void;
|
18
|
-
"update:is-cursor": (value: {
|
19
|
-
previous: number | null | undefined;
|
20
|
-
next: number | null | undefined;
|
21
|
-
}) => void;
|
22
|
-
"update:cursor": () => void;
|
23
|
-
"update:previous": (value: number | null | undefined) => void;
|
24
|
-
"update:next": (value: number | null | undefined) => void;
|
25
|
-
unmounted: () => void;
|
26
|
-
"update:first": () => void;
|
27
|
-
"update:last": () => void;
|
28
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
29
|
-
isSelected: boolean;
|
30
|
-
isCursor?: boolean | undefined;
|
31
|
-
loading?: boolean | undefined;
|
32
5
|
skeleton?: boolean | undefined;
|
33
|
-
|
6
|
+
isSelected: boolean;
|
7
|
+
onUnselect?: (() => any) | undefined;
|
8
|
+
previous?: Model | null | undefined;
|
9
|
+
next?: Model | null | undefined;
|
34
10
|
first?: boolean | undefined;
|
35
11
|
last?: boolean | undefined;
|
36
|
-
previous?: number | null | undefined;
|
37
|
-
next?: number | null | undefined;
|
38
|
-
isNoCursor?: boolean | undefined;
|
39
|
-
hideOptionIcon?: boolean | undefined;
|
40
|
-
}>>> & {
|
41
|
-
onSelect?: (() => any) | undefined;
|
42
|
-
onUnselect?: (() => any) | undefined;
|
43
12
|
"onUpdate:is-cursor"?: ((value: {
|
44
|
-
previous:
|
45
|
-
next:
|
13
|
+
previous: Model | null | undefined;
|
14
|
+
next: Model | null | undefined;
|
46
15
|
}) => any) | undefined;
|
47
16
|
"onUpdate:cursor"?: (() => any) | undefined;
|
48
|
-
"onUpdate:previous"?: ((value:
|
49
|
-
"onUpdate:next"?: ((value:
|
17
|
+
"onUpdate:previous"?: ((value: Model | null | undefined) => any) | undefined;
|
18
|
+
"onUpdate:next"?: ((value: Model | null | undefined) => any) | undefined;
|
50
19
|
onUnmounted?: (() => any) | undefined;
|
51
20
|
"onUpdate:first"?: (() => any) | undefined;
|
52
21
|
"onUpdate:last"?: (() => any) | undefined;
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
}
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
67
|
-
} : {
|
68
|
-
type: import('vue').PropType<T[K]>;
|
69
|
-
required: true;
|
22
|
+
isCursor?: boolean | undefined;
|
23
|
+
isNoCursor?: boolean | undefined;
|
24
|
+
hideOptionIcon?: boolean | undefined;
|
25
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
26
|
+
attrs: any;
|
27
|
+
slots: Readonly<{
|
28
|
+
default: (props: {
|
29
|
+
selected: boolean;
|
30
|
+
}) => void;
|
31
|
+
}> & {
|
32
|
+
default: (props: {
|
33
|
+
selected: boolean;
|
34
|
+
}) => void;
|
70
35
|
};
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
36
|
+
emit: {
|
37
|
+
(e: 'select'): void;
|
38
|
+
(e: 'unselect'): void;
|
39
|
+
(e: 'update:is-cursor', value: {
|
40
|
+
previous: Model | null | undefined;
|
41
|
+
next: Model | null | undefined;
|
42
|
+
}): void;
|
43
|
+
(e: 'update:cursor'): void;
|
44
|
+
(e: 'update:previous', value: Model | null | undefined): void;
|
45
|
+
(e: 'update:next', value: Model | null | undefined): void;
|
46
|
+
(e: 'unmounted'): void;
|
47
|
+
(e: 'update:first'): void;
|
48
|
+
(e: 'update:last'): void;
|
49
|
+
};
|
50
|
+
} | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
|
51
|
+
scrollIntoView: () => void;
|
52
|
+
}>) => void) | undefined, __VLS_setup?: Promise<{
|
53
|
+
props: {
|
54
|
+
onSelect?: (() => any) | undefined;
|
55
|
+
loading?: boolean | undefined;
|
56
|
+
scroll?: boolean | undefined;
|
57
|
+
skeleton?: boolean | undefined;
|
58
|
+
isSelected: boolean;
|
59
|
+
onUnselect?: (() => any) | undefined;
|
60
|
+
previous?: Model | null | undefined;
|
61
|
+
next?: Model | null | undefined;
|
62
|
+
first?: boolean | undefined;
|
63
|
+
last?: boolean | undefined;
|
64
|
+
"onUpdate:is-cursor"?: ((value: {
|
65
|
+
previous: Model | null | undefined;
|
66
|
+
next: Model | null | undefined;
|
67
|
+
}) => any) | undefined;
|
68
|
+
"onUpdate:cursor"?: (() => any) | undefined;
|
69
|
+
"onUpdate:previous"?: ((value: Model | null | undefined) => any) | undefined;
|
70
|
+
"onUpdate:next"?: ((value: Model | null | undefined) => any) | undefined;
|
71
|
+
onUnmounted?: (() => any) | undefined;
|
72
|
+
"onUpdate:first"?: (() => any) | undefined;
|
73
|
+
"onUpdate:last"?: (() => any) | undefined;
|
74
|
+
isCursor?: boolean | undefined;
|
75
|
+
isNoCursor?: boolean | undefined;
|
76
|
+
hideOptionIcon?: boolean | undefined;
|
77
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
78
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{
|
79
|
+
scrollIntoView: () => void;
|
80
|
+
}>): void;
|
81
|
+
attrs: any;
|
82
|
+
slots: Readonly<{
|
83
|
+
default: (props: {
|
84
|
+
selected: boolean;
|
85
|
+
}) => void;
|
86
|
+
}> & {
|
87
|
+
default: (props: {
|
88
|
+
selected: boolean;
|
89
|
+
}) => void;
|
75
90
|
};
|
91
|
+
emit: {
|
92
|
+
(e: 'select'): void;
|
93
|
+
(e: 'unselect'): void;
|
94
|
+
(e: 'update:is-cursor', value: {
|
95
|
+
previous: Model | null | undefined;
|
96
|
+
next: Model | null | undefined;
|
97
|
+
}): void;
|
98
|
+
(e: 'update:cursor'): void;
|
99
|
+
(e: 'update:previous', value: Model | null | undefined): void;
|
100
|
+
(e: 'update:next', value: Model | null | undefined): void;
|
101
|
+
(e: 'unmounted'): void;
|
102
|
+
(e: 'update:first'): void;
|
103
|
+
(e: 'update:last'): void;
|
104
|
+
};
|
105
|
+
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
106
|
+
[key: string]: any;
|
107
|
+
}> & {
|
108
|
+
__ctx?: {
|
109
|
+
props: {
|
110
|
+
onSelect?: (() => any) | undefined;
|
111
|
+
loading?: boolean | undefined;
|
112
|
+
scroll?: boolean | undefined;
|
113
|
+
skeleton?: boolean | undefined;
|
114
|
+
isSelected: boolean;
|
115
|
+
onUnselect?: (() => any) | undefined;
|
116
|
+
previous?: Model | null | undefined;
|
117
|
+
next?: Model | null | undefined;
|
118
|
+
first?: boolean | undefined;
|
119
|
+
last?: boolean | undefined;
|
120
|
+
"onUpdate:is-cursor"?: ((value: {
|
121
|
+
previous: Model | null | undefined;
|
122
|
+
next: Model | null | undefined;
|
123
|
+
}) => any) | undefined;
|
124
|
+
"onUpdate:cursor"?: (() => any) | undefined;
|
125
|
+
"onUpdate:previous"?: ((value: Model | null | undefined) => any) | undefined;
|
126
|
+
"onUpdate:next"?: ((value: Model | null | undefined) => any) | undefined;
|
127
|
+
onUnmounted?: (() => any) | undefined;
|
128
|
+
"onUpdate:first"?: (() => any) | undefined;
|
129
|
+
"onUpdate:last"?: (() => any) | undefined;
|
130
|
+
isCursor?: boolean | undefined;
|
131
|
+
isNoCursor?: boolean | undefined;
|
132
|
+
hideOptionIcon?: boolean | undefined;
|
133
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
134
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{
|
135
|
+
scrollIntoView: () => void;
|
136
|
+
}>): void;
|
137
|
+
attrs: any;
|
138
|
+
slots: Readonly<{
|
139
|
+
default: (props: {
|
140
|
+
selected: boolean;
|
141
|
+
}) => void;
|
142
|
+
}> & {
|
143
|
+
default: (props: {
|
144
|
+
selected: boolean;
|
145
|
+
}) => void;
|
146
|
+
};
|
147
|
+
emit: {
|
148
|
+
(e: 'select'): void;
|
149
|
+
(e: 'unselect'): void;
|
150
|
+
(e: 'update:is-cursor', value: {
|
151
|
+
previous: Model | null | undefined;
|
152
|
+
next: Model | null | undefined;
|
153
|
+
}): void;
|
154
|
+
(e: 'update:cursor'): void;
|
155
|
+
(e: 'update:previous', value: Model | null | undefined): void;
|
156
|
+
(e: 'update:next', value: Model | null | undefined): void;
|
157
|
+
(e: 'unmounted'): void;
|
158
|
+
(e: 'update:first'): void;
|
159
|
+
(e: 'update:last'): void;
|
160
|
+
};
|
161
|
+
} | undefined;
|
76
162
|
};
|
163
|
+
export default _default;
|
77
164
|
//# sourceMappingURL=SelectOption.vue.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SelectOption.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOption.vue"],"names":[],"mappings":"AAsCA
|
1
|
+
{"version":3,"file":"SelectOption.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOption.vue"],"names":[],"mappings":"AAsCA;;;;;;gBAsPc,OAAO;;;;;;;kBAxNuB,KAAK,GAAG,IAAI,GAAG,SAAS;cAAQ,KAAK,GAAG,IAAI,GAAG,SAAS;;;;;;;;;;;;WA0O7F,GAAG;;yBAxKS;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;yBAA5B;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YApEzC,QAAQ,GAAG,IAAI;YACf,UAAU,GAAG,IAAI;YACjB,kBAAkB,SAAS;YAAC,QAAQ,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;YAAC,IAAI,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;SAAC,GAAG,IAAI;YACtG,eAAe,GAAG,IAAI;YACtB,iBAAiB,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;YACzD,aAAa,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;YACrD,WAAW,GAAG,IAAI;YAClB,cAAc,GAAG,IAAI;YACrB,aAAa,GAAG,IAAI;;;;OAmO6C,IAAI;;;;;;oBAjB7D,OAAO;;;;;;;sBAxNuB,KAAK,GAAG,IAAI,GAAG,SAAS;kBAAQ,KAAK,GAAG,IAAI,GAAG,SAAS;;;;;;;;;;;;;;SAyO7B,IAAI;WACpE,GAAG;;yBAxKS;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;yBAA5B;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YApEzC,QAAQ,GAAG,IAAI;YACf,UAAU,GAAG,IAAI;YACjB,kBAAkB,SAAS;YAAC,QAAQ,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;YAAC,IAAI,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;SAAC,GAAG,IAAI;YACtG,eAAe,GAAG,IAAI;YACtB,iBAAiB,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;YACzD,aAAa,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;YACrD,WAAW,GAAG,IAAI;YAClB,cAAc,GAAG,IAAI;YACrB,aAAa,GAAG,IAAI;;;;;;;;;;;wBAkNZ,OAAO;;;;;;;0BAxNuB,KAAK,GAAG,IAAI,GAAG,SAAS;sBAAQ,KAAK,GAAG,IAAI,GAAG,SAAS;;;;;;;;;;;;;;aAyO7B,IAAI;eACpE,GAAG;;6BAxKS;gBAAC,QAAQ,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;6BAA5B;gBAAC,QAAQ,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;;gBApEzC,QAAQ,GAAG,IAAI;gBACf,UAAU,GAAG,IAAI;gBACjB,kBAAkB,SAAS;gBAAC,QAAQ,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;gBAAC,IAAI,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAA;aAAC,GAAG,IAAI;gBACtG,eAAe,GAAG,IAAI;gBACtB,iBAAiB,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;gBACzD,aAAa,SAAS,KAAK,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;gBACrD,WAAW,GAAG,IAAI;gBAClB,cAAc,GAAG,IAAI;gBACrB,aAAa,GAAG,IAAI;;;;AA7B1B,wBAsQ2E"}
|
@@ -23,8 +23,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
23
23
|
setup(__props, { expose: __expose, emit: __emit }) {
|
24
24
|
const props = __props;
|
25
25
|
const emit = __emit;
|
26
|
-
const
|
27
|
-
const defaultSlots = computed(() => (props.slots ??
|
26
|
+
const usedSlots = useSlots();
|
27
|
+
const defaultSlots = computed(() => (props.slots ?? usedSlots.default?.() ?? []).filter((item) => typeof item.type !== "symbol"));
|
28
28
|
const current = ref(props.initTab ?? 0);
|
29
29
|
const isDirect = ref(true);
|
30
30
|
const button = ref([]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/WToggle.vue"],"names":[],"mappings":"AAsEA
|
1
|
+
{"version":3,"file":"WToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Toggle/WToggle.vue"],"names":[],"mappings":"AAsEA;;;;;;;gBAqNgB,KAAK;;;;;;;WAiBd,GAAG;;cAtMJ,mBAAmB,SAAS,KAAK,KAAG,IAAI;yCAqM9B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;;;;oBAhBzC,KAAK;;;;;;;oBAgBL,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cAtMJ,mBAAmB,SAAS,KAAK,KAAG,IAAI;;;;;;;;;;;wBAqL9B,KAAK;;;;;;;wBAgBL,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;kBAtMJ,mBAAmB,SAAS,KAAK,KAAG,IAAI;;;AA3B9C,wBAsO2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
package/dist/types/global.d.ts
CHANGED
@@ -1,15 +1,20 @@
|
|
1
1
|
|
2
2
|
declare type SVGComponent = import('vue').Raw<import('vue').FunctionalComponent<import('vue').SVGAttributes, Record<string, never>>>
|
3
3
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
4
5
|
declare type ComponentInstance<T> = T extends new (...args: any[]) => infer R
|
5
6
|
? R
|
7
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
6
8
|
: T extends (...args: any[]) => infer R
|
7
9
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
8
10
|
? R extends {__ctx?: infer K}
|
9
11
|
? Exclude<K, void> extends {expose: (...args: infer K) => void}
|
10
12
|
? K[0] & InstanceType<import('vue').DefineComponent>
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
11
14
|
: any
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
12
16
|
: any
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
13
18
|
: any
|
14
19
|
|
15
20
|
declare type PaginatedResponse<ValueType extends Record<string, unknown> | unknown = unknown> = {
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"type": "git",
|
5
5
|
"url": "https://github.com/rsmple/eco-vue-js.git"
|
6
6
|
},
|
7
|
-
"version": "0.
|
7
|
+
"version": "0.4.0",
|
8
8
|
"scripts": {
|
9
9
|
"dev": "vite",
|
10
10
|
"build": "run-p type-check build-only",
|
@@ -18,34 +18,34 @@
|
|
18
18
|
},
|
19
19
|
"peerDependencies": {
|
20
20
|
"@tanstack/vue-query": "^5.17.19",
|
21
|
-
"vue": "^3.4.
|
21
|
+
"vue": "^3.4.21",
|
22
22
|
"vue-router": "^4.2.5"
|
23
23
|
},
|
24
24
|
"devDependencies": {
|
25
|
-
"@rushstack/eslint-patch": "1.2
|
25
|
+
"@rushstack/eslint-patch": "1.7.2",
|
26
26
|
"@tsconfig/node18": "2.0.1",
|
27
27
|
"@types/jsdom": "21.1.1",
|
28
28
|
"@types/node": "18.16.17",
|
29
29
|
"@types/postcss-import": "14.0.0",
|
30
|
-
"@vitejs/plugin-vue": "
|
31
|
-
"@vue/eslint-config-typescript": "
|
32
|
-
"@vue/tsconfig": "0.
|
30
|
+
"@vitejs/plugin-vue": "5.0.4",
|
31
|
+
"@vue/eslint-config-typescript": "13.0.0",
|
32
|
+
"@vue/tsconfig": "0.5.1",
|
33
33
|
"autoprefixer": "10.4.13",
|
34
|
-
"eslint": "8.
|
34
|
+
"eslint": "8.57.0",
|
35
35
|
"eslint-plugin-unused-imports": "2.0.0",
|
36
|
-
"eslint-plugin-vue": "9.
|
36
|
+
"eslint-plugin-vue": "9.23.0",
|
37
37
|
"jsdom": "22.1.0",
|
38
38
|
"npm-run-all": "4.1.5",
|
39
39
|
"path": "0.12.7",
|
40
40
|
"postcss": "8.4.31",
|
41
41
|
"postcss-import": "15.1.0",
|
42
42
|
"tailwindcss": "3.4.1",
|
43
|
-
"typescript": "5.
|
44
|
-
"vite": "
|
45
|
-
"vite-plugin-dts": "3.7.
|
43
|
+
"typescript": "5.4.2",
|
44
|
+
"vite": "5.1.6",
|
45
|
+
"vite-plugin-dts": "3.7.3",
|
46
46
|
"vite-svg-loader": "4.0.0",
|
47
47
|
"vitest": "0.32.0",
|
48
|
-
"vue-tsc": "
|
48
|
+
"vue-tsc": "2.0.6"
|
49
49
|
},
|
50
50
|
"type": "module",
|
51
51
|
"files": [
|