eco-vue-js 0.5.3 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Button/WButton.vue.d.ts +4 -3
- package/dist/components/Button/WButton.vue.d.ts.map +1 -1
- package/dist/components/Button/WButton.vue.js +2 -1
- package/dist/components/Button/WButtonAction.vue.d.ts +6 -5
- package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonAction.vue.js +2 -7
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMore.vue.js +2 -1
- package/dist/components/Button/WButtonMoreItem.vue.d.ts +26 -2
- package/dist/components/Button/WButtonMoreItem.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMoreItem.vue.js +4 -3
- package/dist/components/Button/WButtonSelection.vue.d.ts +10 -13
- package/dist/components/Button/WButtonSelection.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonSelection.vue.js +31 -15
- package/dist/components/Checkbox/WCheckbox.vue.d.ts +2 -0
- package/dist/components/Checkbox/WCheckbox.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/WCheckbox.vue.js +6 -3
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts +2 -0
- package/dist/components/DropdownMenu/WDropdownMenu.vue.d.ts.map +1 -1
- package/dist/components/DropdownMenu/WDropdownMenu.vue.js +4 -3
- package/dist/components/ImageViewer/WImageViewer.vue.d.ts.map +1 -1
- package/dist/components/ImageViewer/WImageViewer.vue.js +2 -0
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +48 -15
- package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteList.vue.js +81 -32
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +9 -9
- package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/WInfiniteListPages.vue.js +17 -17
- package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts +10 -0
- package/dist/components/InfiniteList/components/EmptyComponent.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/components/EmptyComponent.vue.js +11 -0
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +9 -9
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
- package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +49 -64
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts +33 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.d.ts.map +1 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue.js +27 -0
- package/dist/components/InfiniteList/components/InfiniteListPageSelectItem.vue2.js +5 -0
- package/dist/components/InfiniteList/models/injection.d.ts +16 -0
- package/dist/components/InfiniteList/models/injection.d.ts.map +1 -0
- package/dist/components/InfiniteList/models/injection.js +4 -0
- package/dist/components/InfiniteList/use/useSelected.d.ts +14 -0
- package/dist/components/InfiniteList/use/useSelected.d.ts.map +1 -0
- package/dist/components/InfiniteList/use/useSelected.js +159 -0
- package/dist/components/Input/WInput.vue.d.ts +3 -3
- package/dist/components/Input/WInputAsync.vue.d.ts +3 -3
- package/dist/components/Input/WInputOptions.vue.d.ts +3 -3
- package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue.d.ts +3 -3
- package/dist/components/Link/WLink.vue.d.ts +3 -2
- package/dist/components/Link/WLink.vue.d.ts.map +1 -1
- package/dist/components/Link/WLink.vue.js +2 -1
- package/dist/components/Link/WLinkArrow.vue.d.ts +2 -1
- package/dist/components/Link/WLinkArrow.vue.d.ts.map +1 -1
- package/dist/components/Link/WLinkArrow.vue.js +2 -1
- package/dist/components/ListCard/WListCard.vue.d.ts +10 -18
- package/dist/components/ListCard/WListCard.vue.d.ts.map +1 -1
- package/dist/components/ListCard/WListCard.vue.js +50 -25
- package/dist/components/MenuItem/WMenuItem.vue.d.ts +23 -2
- package/dist/components/MenuItem/WMenuItem.vue.d.ts.map +1 -1
- package/dist/components/MenuItem/WMenuItem.vue.js +3 -2
- package/dist/components/Modal/WModal.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItem.vue.d.ts +2 -1
- package/dist/components/Nav/WNavItem.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItem.vue.js +2 -1
- package/dist/components/Nav/WNavItemExpand.vue.d.ts +2 -1
- package/dist/components/Nav/WNavItemExpand.vue.d.ts.map +1 -1
- package/dist/components/Nav/WNavItemExpand.vue.js +2 -1
- package/dist/components/Notify/components/NotifyCard.vue.d.ts +25 -4
- package/dist/components/Notify/components/NotifyCard.vue.d.ts.map +1 -1
- package/dist/components/Notify/components/NotifyCard.vue.js +4 -3
- package/dist/components/Notify/models/types.d.ts +1 -0
- package/dist/components/Notify/models/types.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 +3 -3
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncList.vue.d.ts +3 -3
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +3 -3
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- 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 +3 -3
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectOption.vue.d.ts +3 -3
- package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
- package/dist/types/global.d.ts +13 -10
- package/dist/types/types.d.ts +9 -0
- package/dist/utils/Modal.d.ts +8 -5
- package/dist/utils/Modal.d.ts.map +1 -1
- package/dist/utils/useDefaultQuery.d.ts +1 -1
- package/dist/utils/useDefaultQuery.d.ts.map +1 -1
- package/package.json +4 -1
@@ -1,8 +1,8 @@
|
|
1
1
|
declare const _default: <Model extends string | number, Data extends DefaultData, ApiError, QueryParams>(__VLS_props: {
|
2
2
|
transition?: boolean | undefined;
|
3
|
+
"onUpdate:count"?: ((value: number) => any) | undefined;
|
3
4
|
valueGetter: (data: Data) => Model;
|
4
5
|
wrap?: boolean | undefined;
|
5
|
-
"onUpdate:count"?: ((value: number) => any) | undefined;
|
6
6
|
scrollingElement?: Element | null | undefined;
|
7
7
|
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
8
8
|
queryParams: QueryParams;
|
@@ -26,12 +26,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
26
26
|
noGap?: boolean | undefined;
|
27
27
|
resetting?: boolean | undefined;
|
28
28
|
emptyStub?: string | undefined;
|
29
|
-
reverseSelection?: boolean | undefined;
|
30
|
-
allowPageSelection?: boolean | undefined;
|
31
29
|
minHeight?: boolean | undefined;
|
32
30
|
pageClass?: string | undefined;
|
33
31
|
refetchInterval?: number | false | undefined;
|
34
32
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
33
|
+
reverseSelection?: boolean | undefined;
|
34
|
+
allowPageSelection?: boolean | undefined;
|
35
35
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
|
36
36
|
attrs: any;
|
37
37
|
slots: Readonly<{
|
@@ -81,9 +81,9 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
81
81
|
}>) => void) | undefined, __VLS_setup?: Promise<{
|
82
82
|
props: {
|
83
83
|
transition?: boolean | undefined;
|
84
|
+
"onUpdate:count"?: ((value: number) => any) | undefined;
|
84
85
|
valueGetter: (data: Data) => Model;
|
85
86
|
wrap?: boolean | undefined;
|
86
|
-
"onUpdate:count"?: ((value: number) => any) | undefined;
|
87
87
|
scrollingElement?: Element | null | undefined;
|
88
88
|
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
89
89
|
queryParams: QueryParams;
|
@@ -107,12 +107,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
107
107
|
noGap?: boolean | undefined;
|
108
108
|
resetting?: boolean | undefined;
|
109
109
|
emptyStub?: string | undefined;
|
110
|
-
reverseSelection?: boolean | undefined;
|
111
|
-
allowPageSelection?: boolean | undefined;
|
112
110
|
minHeight?: boolean | undefined;
|
113
111
|
pageClass?: string | undefined;
|
114
112
|
refetchInterval?: number | false | undefined;
|
115
113
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
114
|
+
reverseSelection?: boolean | undefined;
|
115
|
+
allowPageSelection?: boolean | undefined;
|
116
116
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
117
117
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
118
118
|
getFirst: () => Data | undefined;
|
@@ -166,9 +166,9 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
166
166
|
__ctx?: {
|
167
167
|
props: {
|
168
168
|
transition?: boolean | undefined;
|
169
|
+
"onUpdate:count"?: ((value: number) => any) | undefined;
|
169
170
|
valueGetter: (data: Data) => Model;
|
170
171
|
wrap?: boolean | undefined;
|
171
|
-
"onUpdate:count"?: ((value: number) => any) | undefined;
|
172
172
|
scrollingElement?: Element | null | undefined;
|
173
173
|
"onUpdate:selected"?: ((values: Model[]) => any) | undefined;
|
174
174
|
queryParams: QueryParams;
|
@@ -192,12 +192,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
192
192
|
noGap?: boolean | undefined;
|
193
193
|
resetting?: boolean | undefined;
|
194
194
|
emptyStub?: string | undefined;
|
195
|
-
reverseSelection?: boolean | undefined;
|
196
|
-
allowPageSelection?: boolean | undefined;
|
197
195
|
minHeight?: boolean | undefined;
|
198
196
|
pageClass?: string | undefined;
|
199
197
|
refetchInterval?: number | false | undefined;
|
200
198
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
199
|
+
reverseSelection?: boolean | undefined;
|
200
|
+
allowPageSelection?: boolean | undefined;
|
201
201
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
|
202
202
|
expose(exposed: import("vue").ShallowUnwrapRef<{
|
203
203
|
getFirst: () => Data | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"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"}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { defineComponent, ref, toRef, computed, watch, onMounted, nextTick, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, unref, Fragment, createElementVNode, createBlock, createCommentVNode, TransitionGroup, withCtx, renderList, renderSlot, toDisplayString } from 'vue';
|
1
|
+
import { defineComponent, ref, toRef, computed, watch, onMounted, nextTick, onBeforeUnmount, openBlock, createElementBlock, normalizeClass, unref, Fragment, createElementVNode, createBlock, createCommentVNode, resolveDynamicComponent, TransitionGroup, normalizeProps, mergeProps, withCtx, renderList, guardReactiveProps, renderSlot, toDisplayString } from 'vue';
|
2
2
|
import _sfc_main$2 from './InfiniteListPageTitle.vue.js';
|
3
3
|
import _sfc_main$1 from './InfiniteListPageSelection.vue.js';
|
4
|
+
import EmptyComponent from './EmptyComponent.vue.js';
|
4
5
|
|
5
|
-
const _hoisted_1 = { class: "
|
6
|
-
const _hoisted_2 = { class: "select-none cursor-default w-select-field sm-not:px-3" };
|
6
|
+
const _hoisted_1 = { class: "select-none cursor-default w-select-field sm-not:px-3" };
|
7
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
8
8
|
__name: "InfiniteListPage",
|
9
9
|
props: {
|
@@ -14,22 +14,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
14
|
firstPage: { type: Boolean },
|
15
15
|
lastPage: { type: Boolean },
|
16
16
|
hidePageTitle: { type: Boolean },
|
17
|
-
selected: { default: void 0 },
|
18
17
|
wrap: { type: Boolean },
|
19
18
|
noGap: { type: Boolean },
|
20
19
|
transition: { type: Boolean },
|
21
20
|
resetting: { type: Boolean },
|
22
21
|
emptyStub: { default: "Nothing to show" },
|
23
|
-
selectOnly: { type: Boolean },
|
24
|
-
unselectOnly: { type: Boolean },
|
25
|
-
reverseSelection: { type: Boolean },
|
26
|
-
allowPageSelection: { type: Boolean },
|
27
22
|
minHeight: { type: Boolean },
|
28
23
|
pageClass: { default: void 0 },
|
29
24
|
refetchInterval: { type: [Number, Boolean], default: void 0 },
|
30
25
|
scrollingElement: { default: void 0 },
|
26
|
+
queryOptions: { default: void 0 },
|
27
|
+
selected: { default: void 0 },
|
31
28
|
valueGetter: {},
|
32
|
-
|
29
|
+
selectOnly: { type: Boolean },
|
30
|
+
unselectOnly: { type: Boolean },
|
31
|
+
reverseSelection: { type: Boolean },
|
32
|
+
allowPageSelection: { type: Boolean }
|
33
33
|
},
|
34
34
|
emits: ["update:count", "update:pages-count", "update:next-page", "update:previous-page", "update:scroll", "remove:page", "refetch", "update-from-header:scroll", "update:selected", "fetched"],
|
35
35
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -204,60 +204,45 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
204
204
|
createElementVNode("div", {
|
205
205
|
class: normalizeClass(_ctx.pageClass)
|
206
206
|
}, [
|
207
|
-
unref(data)?.results ? (openBlock(),
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
return renderSlot(_ctx.$slots, "default", {
|
247
|
-
key: _ctx.valueGetter(item),
|
248
|
-
item,
|
249
|
-
setter: (newItem) => setItem(index, newItem),
|
250
|
-
refetch: emitRefetch,
|
251
|
-
skeleton: false,
|
252
|
-
next: unref(data)?.results[index + 1],
|
253
|
-
previous: unref(data)?.results[index - 1],
|
254
|
-
first: _ctx.firstPage && index === 0,
|
255
|
-
last: _ctx.lastPage && index === unref(data).results.length - 1,
|
256
|
-
page: page.value,
|
257
|
-
index
|
258
|
-
});
|
259
|
-
}), 128))
|
260
|
-
], 64)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.skeletonLength, (index) => {
|
207
|
+
unref(data)?.results ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? TransitionGroup : EmptyComponent), normalizeProps(mergeProps({ key: 0 }, _ctx.transition ? {
|
208
|
+
["enter-active-class"]: "transition-[grid-template-rows] overflow-hidden grid",
|
209
|
+
["enter-from-class"]: "grid-rows-[0fr]",
|
210
|
+
["enter-to-class"]: "grid-rows-[1fr]",
|
211
|
+
["leave-active-class"]: "transition-[grid-template-rows] overflow-hidden grid",
|
212
|
+
["leave-from-class"]: "grid-rows-[1fr]",
|
213
|
+
["leave-to-class"]: "grid-rows-[0fr]",
|
214
|
+
css: !_ctx.resetting
|
215
|
+
} : void 0)), {
|
216
|
+
default: withCtx(() => [
|
217
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(data).results, (item, index) => {
|
218
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? "div" : EmptyComponent), normalizeProps(mergeProps({
|
219
|
+
key: _ctx.valueGetter(item)
|
220
|
+
}, _ctx.transition ? { class: "w-full" } : void 0)), {
|
221
|
+
default: withCtx(() => [
|
222
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.transition ? "div" : EmptyComponent), normalizeProps(guardReactiveProps(_ctx.transition ? { class: "[overflow:inherit]" } : void 0)), {
|
223
|
+
default: withCtx(() => [
|
224
|
+
renderSlot(_ctx.$slots, "default", {
|
225
|
+
item,
|
226
|
+
setter: (newItem) => setItem(index, newItem),
|
227
|
+
refetch: emitRefetch,
|
228
|
+
skeleton: false,
|
229
|
+
next: unref(data)?.results[index + 1],
|
230
|
+
previous: unref(data)?.results[index - 1],
|
231
|
+
first: _ctx.firstPage && index === 0,
|
232
|
+
last: _ctx.lastPage && index === unref(data).results.length - 1,
|
233
|
+
page: page.value,
|
234
|
+
index
|
235
|
+
})
|
236
|
+
]),
|
237
|
+
_: 2
|
238
|
+
}, 1040))
|
239
|
+
]),
|
240
|
+
_: 2
|
241
|
+
}, 1040);
|
242
|
+
}), 128))
|
243
|
+
]),
|
244
|
+
_: 3
|
245
|
+
}, 16)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.skeletonLength, (index) => {
|
261
246
|
return renderSlot(_ctx.$slots, "default", {
|
262
247
|
key: index,
|
263
248
|
item: { id: index },
|
@@ -280,7 +265,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
280
265
|
"pt-4 pb-2 px-[1.0625rem]": _ctx.minHeight
|
281
266
|
}])
|
282
267
|
}, [
|
283
|
-
createElementVNode("div",
|
268
|
+
createElementVNode("div", _hoisted_1, toDisplayString(_ctx.emptyStub), 1)
|
284
269
|
], 2))
|
285
270
|
], 2);
|
286
271
|
};
|
@@ -0,0 +1,33 @@
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
2
|
+
selected?: boolean | undefined;
|
3
|
+
selectedBetween?: boolean | undefined;
|
4
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
5
|
+
"update:selected": (value: boolean) => void;
|
6
|
+
"update:selected-range": () => void;
|
7
|
+
"update:selected-range-hover": () => void;
|
8
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
9
|
+
selected?: boolean | undefined;
|
10
|
+
selectedBetween?: boolean | undefined;
|
11
|
+
}>>> & {
|
12
|
+
"onUpdate:selected"?: ((value: boolean) => any) | undefined;
|
13
|
+
"onUpdate:selected-range"?: (() => any) | undefined;
|
14
|
+
"onUpdate:selected-range-hover"?: (() => any) | undefined;
|
15
|
+
}, {}, {}>, {
|
16
|
+
default?(_: {}): any;
|
17
|
+
}>;
|
18
|
+
export default _default;
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
20
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
23
|
+
} : {
|
24
|
+
type: import('vue').PropType<T[K]>;
|
25
|
+
required: true;
|
26
|
+
};
|
27
|
+
};
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
29
|
+
new (): {
|
30
|
+
$slots: S;
|
31
|
+
};
|
32
|
+
};
|
33
|
+
//# sourceMappingURL=InfiniteListPageSelectItem.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"InfiniteListPageSelectItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPageSelectItem.vue"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;AAmFA,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { defineComponent, provide, toRef, renderSlot } from 'vue';
|
2
|
+
import { wInfiniteListSelectionItem } from '../models/injection.js';
|
3
|
+
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
|
+
__name: "InfiniteListPageSelectItem",
|
6
|
+
props: {
|
7
|
+
selected: { type: Boolean },
|
8
|
+
selectedBetween: { type: Boolean }
|
9
|
+
},
|
10
|
+
emits: ["update:selected", "update:selected-range", "update:selected-range-hover"],
|
11
|
+
setup(__props, { emit: __emit }) {
|
12
|
+
const props = __props;
|
13
|
+
const emit = __emit;
|
14
|
+
provide(wInfiniteListSelectionItem, {
|
15
|
+
selected: toRef(props, "selected"),
|
16
|
+
selectedBetween: toRef(props, "selectedBetween"),
|
17
|
+
updateSelected: (value) => emit("update:selected", value),
|
18
|
+
updateSelectedRange: () => emit("update:selected-range"),
|
19
|
+
updateSelectedRangeHover: () => emit("update:selected-range-hover")
|
20
|
+
});
|
21
|
+
return (_ctx, _cache) => {
|
22
|
+
return renderSlot(_ctx.$slots, "default");
|
23
|
+
};
|
24
|
+
}
|
25
|
+
});
|
26
|
+
|
27
|
+
export { _sfc_main as default };
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { InjectionKey, Ref } from 'vue';
|
2
|
+
export declare const wInfiniteListSelection: InjectionKey<{
|
3
|
+
allowSelect?: Ref<boolean> | undefined;
|
4
|
+
allowSelectRange?: Ref<boolean> | undefined;
|
5
|
+
allowSelectHover?: Ref<boolean> | undefined;
|
6
|
+
selectedCount?: Ref<number> | undefined;
|
7
|
+
clearSelected?(): void;
|
8
|
+
}>;
|
9
|
+
export declare const wInfiniteListSelectionItem: InjectionKey<{
|
10
|
+
selected?: Ref<boolean> | undefined;
|
11
|
+
selectedBetween?: Ref<boolean> | undefined;
|
12
|
+
updateSelected?(value: boolean): void;
|
13
|
+
updateSelectedRange?(): void;
|
14
|
+
updateSelectedRangeHover?(): void;
|
15
|
+
}>;
|
16
|
+
//# sourceMappingURL=injection.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"injection.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/models/injection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAE,GAAG,EAAC,MAAM,KAAK,CAAA;AAE1C,eAAO,MAAM,sBAAsB;;;;;sBAMf,IAAI;EACtB,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;2BAId,OAAO,GAAG,IAAI;4BACb,IAAI;iCACC,IAAI;EACjC,CAAA"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { type Ref } from 'vue';
|
2
|
+
export declare const useSelected: <Value>(count: Ref<number | undefined>, pageLength: Ref<number>, selected: Ref<Value[]>, reverse: Ref<boolean>, selectedRange: Ref<SelectedRange<Value> | undefined>, select: (value: Value[]) => void, selectReverse: (value: Value[]) => void, selectRange: (value: SelectedRange<Value>) => void) => {
|
3
|
+
setSelectedRange: (value: SelectedPage<Value>) => void;
|
4
|
+
getIsSelected: (id: Value) => boolean;
|
5
|
+
getIsSelectedBetween: (id: Value, page: number, index: number) => boolean;
|
6
|
+
setRangeHover: (value: SelectedPage<Value>) => void;
|
7
|
+
allowSelectHover: import("vue").ComputedRef<boolean>;
|
8
|
+
selectionRangeCount: import("vue").ComputedRef<number | undefined>;
|
9
|
+
setSelectedCursor: (value: SelectedPage<Value> | null) => void;
|
10
|
+
toggleSelected: (id: Value, value: boolean) => void;
|
11
|
+
selectedCount: import("vue").ComputedRef<number>;
|
12
|
+
selectAllValue: import("vue").ComputedRef<boolean | null>;
|
13
|
+
};
|
14
|
+
//# sourceMappingURL=useSelected.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useSelected.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/use/useSelected.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,GAAG,EAAC,MAAM,KAAK,CAAA;AA6BlD,eAAO,MAAM,WAAW,iBACf,IAAI,MAAM,GAAG,SAAS,CAAC,cAClB,IAAI,MAAM,CAAC,YACb,IAAI,KAAK,EAAE,CAAC,WACb,IAAI,OAAO,CAAC,iBACN,IAAI,cAAc,KAAK,CAAC,GAAG,SAAS,CAAC,kBAEpC,KAAK,EAAE,KAAK,IAAI,yBACT,KAAK,EAAE,KAAK,IAAI,gDACO,IAAI;8BAoBjB,aAAa,KAAK,CAAC;wBA4CzB,KAAK;+BAYE,KAAK,QAAQ,MAAM,SAAS,MAAM;2BAhBtC,aAAa,KAAK,CAAC;;;+BAsCf,aAAa,KAAK,CAAC,GAAG,IAAI;yBAIhC,KAAK,SAAS,OAAO,KAAG,IAAI;;;CAsEzD,CAAA"}
|
@@ -0,0 +1,159 @@
|
|
1
|
+
import { ref, computed, unref } from 'vue';
|
2
|
+
|
3
|
+
const isRightOrder = (value) => {
|
4
|
+
return value[0].page < value[1].page || value[0].page === value[1].page && value[0].index <= value[1].index;
|
5
|
+
};
|
6
|
+
const isSelectedBetween = (range, page, index) => {
|
7
|
+
if (range[0].page < page && range[1].page > page)
|
8
|
+
return true;
|
9
|
+
if (range[0].page === range[1].page && range[0].page === page)
|
10
|
+
return range[0].index < index && range[1].index > index;
|
11
|
+
return range[0].page === page && range[0].index < index || range[1].page === page && range[1].index > index;
|
12
|
+
};
|
13
|
+
const isWrongId = (selectionPage, id, page, index) => {
|
14
|
+
return selectionPage.id !== id && selectionPage.page === page && selectionPage.index === index;
|
15
|
+
};
|
16
|
+
const isWrongIdRange = (range, id, page, index) => {
|
17
|
+
return isWrongId(range[0], id, page, index) || isWrongId(range[1], id, page, index);
|
18
|
+
};
|
19
|
+
const getCount = (range, pageLength) => {
|
20
|
+
if (range[1].page === range[0].page)
|
21
|
+
return range[1].index - range[0].index + 1;
|
22
|
+
return (range[1].page - range[0].page) * pageLength + range[1].index - range[0].index + 1;
|
23
|
+
};
|
24
|
+
const useSelected = (count, pageLength, selected, reverse, selectedRange, select, selectReverse, selectRange) => {
|
25
|
+
const isSelecting = ref(false);
|
26
|
+
const rangeCursor = ref(null);
|
27
|
+
const rangeHover = ref(null);
|
28
|
+
const allowSelectHover = computed(() => rangeCursor.value !== null && isSelecting.value);
|
29
|
+
const selectionRangeCount = computed(() => {
|
30
|
+
if (!selectedRange.value)
|
31
|
+
return void 0;
|
32
|
+
return getCount(selectedRange.value, unref(pageLength));
|
33
|
+
});
|
34
|
+
const cursorReset = () => {
|
35
|
+
rangeCursor.value = null;
|
36
|
+
rangeHover.value = null;
|
37
|
+
isSelecting.value = false;
|
38
|
+
};
|
39
|
+
const setSelectedRange = (value) => {
|
40
|
+
if (!rangeCursor.value) {
|
41
|
+
rangeCursor.value = value;
|
42
|
+
rangeHover.value = value;
|
43
|
+
isSelecting.value = true;
|
44
|
+
select([]);
|
45
|
+
return;
|
46
|
+
}
|
47
|
+
if (value.id === rangeCursor.value.id) {
|
48
|
+
select([value.id]);
|
49
|
+
cursorReset();
|
50
|
+
return;
|
51
|
+
}
|
52
|
+
const result = [value, rangeCursor.value];
|
53
|
+
if (!isRightOrder(result))
|
54
|
+
result.reverse();
|
55
|
+
if (getCount(result, unref(pageLength)) === unref(count)) {
|
56
|
+
cursorReset();
|
57
|
+
selectReverse([]);
|
58
|
+
return;
|
59
|
+
}
|
60
|
+
selectRange(result);
|
61
|
+
cursorReset();
|
62
|
+
};
|
63
|
+
const resetSelectionRange = () => {
|
64
|
+
rangeCursor.value = null;
|
65
|
+
rangeHover.value = null;
|
66
|
+
select([]);
|
67
|
+
};
|
68
|
+
const setRangeHover = (value) => {
|
69
|
+
rangeHover.value = value;
|
70
|
+
};
|
71
|
+
const getIsSelected = (id) => {
|
72
|
+
if (selectedRange.value) {
|
73
|
+
return selectedRange.value[0].id === id || selectedRange.value[1].id === id;
|
74
|
+
}
|
75
|
+
if (rangeCursor.value && rangeHover.value) {
|
76
|
+
return rangeCursor.value.id === id || rangeHover.value.id === id;
|
77
|
+
}
|
78
|
+
return reverse.value ? !selected.value.includes(id) : selected.value.includes(id);
|
79
|
+
};
|
80
|
+
const getIsSelectedBetween = (id, page, index) => {
|
81
|
+
let is = false;
|
82
|
+
if (selectedRange.value) {
|
83
|
+
is = isSelectedBetween(selectedRange.value, page, index);
|
84
|
+
if (!is && isWrongIdRange(selectedRange.value, id, page, index))
|
85
|
+
resetSelectionRange();
|
86
|
+
}
|
87
|
+
if (rangeCursor.value && rangeHover.value) {
|
88
|
+
const range = [rangeCursor.value, rangeHover.value];
|
89
|
+
if (!isRightOrder(range))
|
90
|
+
range.reverse();
|
91
|
+
is = isSelectedBetween(range, page, index);
|
92
|
+
if (!is && isWrongIdRange(range, id, page, index))
|
93
|
+
resetSelectionRange();
|
94
|
+
}
|
95
|
+
return is;
|
96
|
+
};
|
97
|
+
const setSelectedCursor = (value) => {
|
98
|
+
rangeCursor.value = value;
|
99
|
+
};
|
100
|
+
const toggleSelected = (id, value) => {
|
101
|
+
if (reverse.value && count?.value === selected.value.length + 1) {
|
102
|
+
select([]);
|
103
|
+
cursorReset();
|
104
|
+
return;
|
105
|
+
}
|
106
|
+
const newSelected = selected.value.slice();
|
107
|
+
const index = newSelected.indexOf(id);
|
108
|
+
if (index !== -1 && !value) {
|
109
|
+
newSelected.splice(index, 1);
|
110
|
+
} else if (value) {
|
111
|
+
newSelected.push(id);
|
112
|
+
}
|
113
|
+
if (reverse.value) {
|
114
|
+
if (count?.value !== void 0 && count.value <= newSelected.length) {
|
115
|
+
if (newSelected.length === 0)
|
116
|
+
selectReverse([]);
|
117
|
+
else
|
118
|
+
select([]);
|
119
|
+
cursorReset();
|
120
|
+
return;
|
121
|
+
}
|
122
|
+
selectReverse(newSelected);
|
123
|
+
} else {
|
124
|
+
select(newSelected);
|
125
|
+
}
|
126
|
+
};
|
127
|
+
const selectedCount = computed(() => {
|
128
|
+
if (selectedRange.value)
|
129
|
+
return getCount(selectedRange.value, unref(pageLength));
|
130
|
+
const _count = unref(count);
|
131
|
+
return reverse.value && _count !== void 0 ? Math.max(_count - selected.value.length, 0) : selected.value.length;
|
132
|
+
});
|
133
|
+
const selectAllValue = computed(() => {
|
134
|
+
if (selectedRange.value)
|
135
|
+
return null;
|
136
|
+
const _count = unref(count);
|
137
|
+
if (_count === 0)
|
138
|
+
return false;
|
139
|
+
if (reverse.value) {
|
140
|
+
return selected.value.length === 0 ? true : null;
|
141
|
+
} else {
|
142
|
+
return _count !== void 0 && selected.value.length >= _count ? true : selected.value.length ? null : false;
|
143
|
+
}
|
144
|
+
});
|
145
|
+
return {
|
146
|
+
setSelectedRange,
|
147
|
+
getIsSelected,
|
148
|
+
getIsSelectedBetween,
|
149
|
+
setRangeHover,
|
150
|
+
allowSelectHover,
|
151
|
+
selectionRangeCount,
|
152
|
+
setSelectedCursor,
|
153
|
+
toggleSelected,
|
154
|
+
selectedCount,
|
155
|
+
selectAllValue
|
156
|
+
};
|
157
|
+
};
|
158
|
+
|
159
|
+
export { useSelected };
|
@@ -8,12 +8,12 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: {
|
|
8
8
|
onBlur?: ((value: FocusEvent) => any) | undefined;
|
9
9
|
onClick?: ((value: MouseEvent) => any) | undefined;
|
10
10
|
onMousedown?: ((value: MouseEvent) => any) | undefined;
|
11
|
+
icon?: SVGComponent | undefined;
|
11
12
|
disabled?: boolean | undefined;
|
12
13
|
loading?: boolean | undefined;
|
13
14
|
"onUpdate:modelValue"?: ((value: (Type extends "number" ? number : string) | undefined) => any) | undefined;
|
14
15
|
modelValue?: (Type extends "number" ? number : string) | undefined;
|
15
16
|
resize?: boolean | undefined;
|
16
|
-
icon?: SVGComponent | undefined;
|
17
17
|
readonly?: boolean | undefined;
|
18
18
|
skeleton?: boolean | undefined;
|
19
19
|
description?: string | undefined;
|
@@ -81,12 +81,12 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: {
|
|
81
81
|
onBlur?: ((value: FocusEvent) => any) | undefined;
|
82
82
|
onClick?: ((value: MouseEvent) => any) | undefined;
|
83
83
|
onMousedown?: ((value: MouseEvent) => any) | undefined;
|
84
|
+
icon?: SVGComponent | undefined;
|
84
85
|
disabled?: boolean | undefined;
|
85
86
|
loading?: boolean | undefined;
|
86
87
|
"onUpdate:modelValue"?: ((value: (Type extends "number" ? number : string) | undefined) => any) | undefined;
|
87
88
|
modelValue?: (Type extends "number" ? number : string) | undefined;
|
88
89
|
resize?: boolean | undefined;
|
89
|
-
icon?: SVGComponent | undefined;
|
90
90
|
readonly?: boolean | undefined;
|
91
91
|
skeleton?: boolean | undefined;
|
92
92
|
description?: string | undefined;
|
@@ -158,12 +158,12 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: {
|
|
158
158
|
onBlur?: ((value: FocusEvent) => any) | undefined;
|
159
159
|
onClick?: ((value: MouseEvent) => any) | undefined;
|
160
160
|
onMousedown?: ((value: MouseEvent) => any) | undefined;
|
161
|
+
icon?: SVGComponent | undefined;
|
161
162
|
disabled?: boolean | undefined;
|
162
163
|
loading?: boolean | undefined;
|
163
164
|
"onUpdate:modelValue"?: ((value: (Type extends "number" ? number : string) | undefined) => any) | undefined;
|
164
165
|
modelValue?: (Type extends "number" ? number : string) | undefined;
|
165
166
|
resize?: boolean | undefined;
|
166
|
-
icon?: SVGComponent | undefined;
|
167
167
|
readonly?: boolean | undefined;
|
168
168
|
skeleton?: boolean | undefined;
|
169
169
|
description?: string | undefined;
|
@@ -3,12 +3,12 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: {
|
|
3
3
|
required?: boolean | undefined;
|
4
4
|
textarea?: boolean | undefined;
|
5
5
|
title?: string | undefined;
|
6
|
+
icon?: SVGComponent | undefined;
|
6
7
|
disabled?: boolean | undefined;
|
7
8
|
loading?: boolean | undefined;
|
8
9
|
"onUpdate:modelValue"?: ((value: (Type extends "number" ? number : string) | undefined) => any) | undefined;
|
9
10
|
modelValue?: (Type extends "number" ? number : string) | undefined;
|
10
11
|
resize?: boolean | undefined;
|
11
|
-
icon?: SVGComponent | undefined;
|
12
12
|
skeleton?: boolean | undefined;
|
13
13
|
description?: string | undefined;
|
14
14
|
name?: string | undefined;
|
@@ -35,12 +35,12 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: {
|
|
35
35
|
required?: boolean | undefined;
|
36
36
|
textarea?: boolean | undefined;
|
37
37
|
title?: string | undefined;
|
38
|
+
icon?: SVGComponent | undefined;
|
38
39
|
disabled?: boolean | undefined;
|
39
40
|
loading?: boolean | undefined;
|
40
41
|
"onUpdate:modelValue"?: ((value: (Type extends "number" ? number : string) | undefined) => any) | undefined;
|
41
42
|
modelValue?: (Type extends "number" ? number : string) | undefined;
|
42
43
|
resize?: boolean | undefined;
|
43
|
-
icon?: SVGComponent | undefined;
|
44
44
|
skeleton?: boolean | undefined;
|
45
45
|
description?: string | undefined;
|
46
46
|
name?: string | undefined;
|
@@ -71,12 +71,12 @@ declare const _default: <Type extends InputType = "text">(__VLS_props: {
|
|
71
71
|
required?: boolean | undefined;
|
72
72
|
textarea?: boolean | undefined;
|
73
73
|
title?: string | undefined;
|
74
|
+
icon?: SVGComponent | undefined;
|
74
75
|
disabled?: boolean | undefined;
|
75
76
|
loading?: boolean | undefined;
|
76
77
|
"onUpdate:modelValue"?: ((value: (Type extends "number" ? number : string) | undefined) => any) | undefined;
|
77
78
|
modelValue?: (Type extends "number" ? number : string) | undefined;
|
78
79
|
resize?: boolean | undefined;
|
79
|
-
icon?: SVGComponent | undefined;
|
80
80
|
skeleton?: boolean | undefined;
|
81
81
|
description?: string | undefined;
|
82
82
|
name?: string | undefined;
|
@@ -7,11 +7,11 @@ declare const _default: <Type extends InputType = "text", Option extends Record<
|
|
7
7
|
type?: Type | undefined;
|
8
8
|
required?: boolean | undefined;
|
9
9
|
title?: string | undefined;
|
10
|
+
icon?: SVGComponent | undefined;
|
10
11
|
disabled?: boolean | undefined;
|
11
12
|
loading?: boolean | undefined;
|
12
13
|
valueGetter: (option: Option) => Type extends "number" ? number : string;
|
13
14
|
modelValue: Type extends "number" ? number : string;
|
14
|
-
icon?: SVGComponent | undefined;
|
15
15
|
readonly?: boolean | undefined;
|
16
16
|
skeleton?: boolean | undefined;
|
17
17
|
description?: string | undefined;
|
@@ -51,11 +51,11 @@ declare const _default: <Type extends InputType = "text", Option extends Record<
|
|
51
51
|
type?: Type | undefined;
|
52
52
|
required?: boolean | undefined;
|
53
53
|
title?: string | undefined;
|
54
|
+
icon?: SVGComponent | undefined;
|
54
55
|
disabled?: boolean | undefined;
|
55
56
|
loading?: boolean | undefined;
|
56
57
|
valueGetter: (option: Option) => Type extends "number" ? number : string;
|
57
58
|
modelValue: Type extends "number" ? number : string;
|
58
|
-
icon?: SVGComponent | undefined;
|
59
59
|
readonly?: boolean | undefined;
|
60
60
|
skeleton?: boolean | undefined;
|
61
61
|
description?: string | undefined;
|
@@ -99,11 +99,11 @@ declare const _default: <Type extends InputType = "text", Option extends Record<
|
|
99
99
|
type?: Type | undefined;
|
100
100
|
required?: boolean | undefined;
|
101
101
|
title?: string | undefined;
|
102
|
+
icon?: SVGComponent | undefined;
|
102
103
|
disabled?: boolean | undefined;
|
103
104
|
loading?: boolean | undefined;
|
104
105
|
valueGetter: (option: Option) => Type extends "number" ? number : string;
|
105
106
|
modelValue: Type extends "number" ? number : string;
|
106
|
-
icon?: SVGComponent | undefined;
|
107
107
|
readonly?: boolean | undefined;
|
108
108
|
skeleton?: boolean | undefined;
|
109
109
|
description?: string | undefined;
|