eco-vue-js 0.5.4 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Button/WButtonMore.vue.d.ts.map +1 -1
- package/dist/components/Button/WButtonMore.vue.js +2 -1
- 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 +45 -12
- 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 +6 -6
- 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 +6 -6
- 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/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/Modal/WModal.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 -0
- package/dist/utils/Modal.d.ts +8 -5
- package/dist/utils/Modal.d.ts.map +1 -1
- package/package.json +1 -1
@@ -1,6 +1,9 @@
|
|
1
|
-
import { defineComponent, ref, watch, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, renderSlot, createCommentVNode, createVNode, withCtx } from 'vue';
|
1
|
+
import { defineComponent, ref, toRef, provide, watch, onMounted, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, renderSlot, normalizeProps, guardReactiveProps, createCommentVNode, createVNode, withCtx } from 'vue';
|
2
2
|
import { useInfiniteListHeader } from './use/useInfiniteListHeader.js';
|
3
3
|
import _sfc_main$1 from './WInfiniteListPages.vue.js';
|
4
|
+
import _sfc_main$2 from './components/InfiniteListPageSelectItem.vue.js';
|
5
|
+
import { useSelected } from './use/useSelected.js';
|
6
|
+
import { wInfiniteListSelection } from './models/injection.js';
|
4
7
|
|
5
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
9
|
__name: "WInfiniteList",
|
@@ -12,27 +15,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
15
|
hidePageTitle: { type: Boolean },
|
13
16
|
headerMargin: { default: 0 },
|
14
17
|
skipScrollTarget: { type: Boolean },
|
15
|
-
selected: { default: void 0 },
|
16
18
|
wrap: { type: Boolean },
|
17
19
|
noGap: { type: Boolean },
|
18
20
|
transition: { type: Boolean },
|
19
|
-
pageLength: { default: void 0 },
|
20
21
|
scrollingElement: { default: void 0 },
|
21
22
|
headerTopIgnore: { type: Boolean },
|
22
23
|
minHeight: { type: Boolean },
|
23
24
|
excludeParams: { default: void 0 },
|
24
25
|
emptyStub: { default: void 0 },
|
25
|
-
selectOnly: { type: Boolean },
|
26
|
-
unselectOnly: { type: Boolean },
|
27
|
-
reverseSelection: { type: Boolean },
|
28
|
-
allowPageSelection: { type: Boolean },
|
29
26
|
pageClass: { default: void 0 },
|
30
27
|
maxPages: { default: void 0 },
|
31
28
|
refetchInterval: { type: [Number, Boolean], default: void 0 },
|
29
|
+
queryOptions: { default: void 0 },
|
30
|
+
pageLength: { default: 24 },
|
31
|
+
count: { default: 0 },
|
32
|
+
allowSelect: { type: Boolean },
|
33
|
+
allowSelectRange: { type: Boolean },
|
32
34
|
valueGetter: { type: Function, default: (item) => item.id },
|
33
|
-
|
35
|
+
selected: { default: () => [] },
|
36
|
+
selectedRange: { default: void 0 },
|
37
|
+
reverse: { type: Boolean },
|
38
|
+
selectOnly: { type: Boolean },
|
39
|
+
unselectOnly: { type: Boolean },
|
40
|
+
reverseSelection: { type: Boolean },
|
41
|
+
allowPageSelection: { type: Boolean }
|
34
42
|
},
|
35
|
-
emits: ["update:page", "update:header-padding", "update:count", "
|
43
|
+
emits: ["update:page", "update:header-padding", "update:count", "select", "select-reverse", "select-range"],
|
36
44
|
setup(__props, { expose: __expose, emit: __emit }) {
|
37
45
|
const props = __props;
|
38
46
|
const emit = __emit;
|
@@ -44,6 +52,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
44
52
|
infiniteListPages.value?.goto(page, itemIndex);
|
45
53
|
};
|
46
54
|
const { indicator, header, headerTop, headerHeight, isIntersecting } = useInfiniteListHeader(props.scrollingElement);
|
55
|
+
const {
|
56
|
+
setSelectedRange,
|
57
|
+
getIsSelected,
|
58
|
+
getIsSelectedBetween,
|
59
|
+
allowSelectHover,
|
60
|
+
setRangeHover,
|
61
|
+
setSelectedCursor,
|
62
|
+
toggleSelected,
|
63
|
+
selectedCount,
|
64
|
+
selectAllValue
|
65
|
+
} = useSelected(
|
66
|
+
toRef(props, "count"),
|
67
|
+
toRef(props, "pageLength"),
|
68
|
+
toRef(props, "selected"),
|
69
|
+
toRef(props, "reverse"),
|
70
|
+
toRef(props, "selectedRange"),
|
71
|
+
(value) => emit("select", value),
|
72
|
+
(value) => emit("select-reverse", value),
|
73
|
+
(value) => emit("select-range", value)
|
74
|
+
);
|
75
|
+
provide(wInfiniteListSelection, {
|
76
|
+
allowSelect: toRef(props, "allowSelect"),
|
77
|
+
allowSelectRange: toRef(props, "allowSelectRange"),
|
78
|
+
allowSelectHover,
|
79
|
+
selectedCount,
|
80
|
+
clearSelected: () => emit("select", [])
|
81
|
+
});
|
47
82
|
watch(isIntersecting, (value) => {
|
48
83
|
if (!value && headerHeight.value) {
|
49
84
|
updateHeaderPadding(headerHeight.value - props.headerMargin);
|
@@ -79,7 +114,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
79
114
|
"z-20": !unref(isIntersecting)
|
80
115
|
}])
|
81
116
|
}, [
|
82
|
-
renderSlot(_ctx.$slots, "header", { goto })
|
117
|
+
renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({ selectAllValue: unref(selectAllValue), goto })))
|
83
118
|
], 2)
|
84
119
|
], 64)) : createCommentVNode("", true),
|
85
120
|
createVNode(_sfc_main$1, {
|
@@ -92,7 +127,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
92
127
|
"skip-scroll-target": _ctx.skipScrollTarget,
|
93
128
|
"skeleton-length": _ctx.skeletonLength,
|
94
129
|
"hide-page-title": _ctx.hidePageTitle,
|
95
|
-
selected: _ctx.selected,
|
96
130
|
wrap: _ctx.wrap,
|
97
131
|
"no-gap": _ctx.noGap,
|
98
132
|
transition: _ctx.transition,
|
@@ -102,36 +136,51 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
102
136
|
"min-height": _ctx.minHeight,
|
103
137
|
"exclude-params": _ctx.excludeParams,
|
104
138
|
"empty-stub": _ctx.emptyStub,
|
105
|
-
"select-only": _ctx.selectOnly,
|
106
|
-
"unselect-only": _ctx.unselectOnly,
|
107
|
-
"reverse-selection": _ctx.reverseSelection,
|
108
|
-
"allow-page-selection": _ctx.allowPageSelection,
|
109
139
|
"page-class": _ctx.pageClass,
|
110
140
|
"max-pages": _ctx.maxPages,
|
111
141
|
"refetch-interval": _ctx.refetchInterval,
|
112
|
-
"value-getter": _ctx.valueGetter,
|
113
142
|
"query-options": _ctx.queryOptions,
|
114
|
-
|
115
|
-
"
|
143
|
+
selected: _ctx.selected,
|
144
|
+
"value-getter": _ctx.valueGetter,
|
145
|
+
"select-only": _ctx.selectOnly,
|
146
|
+
"unselect-only": _ctx.unselectOnly,
|
147
|
+
"reverse-selection": _ctx.reverseSelection,
|
148
|
+
"allow-page-selection": _ctx.allowPageSelection,
|
149
|
+
"onUpdate:selected": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("select", $event)),
|
150
|
+
"onUpdate:count": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:count", $event)),
|
116
151
|
"onUpdate:page": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:page", $event))
|
117
152
|
}, {
|
118
153
|
default: withCtx(({ item, setter, skeleton, refetch, previous, next, first, last, resetting, page, index }) => [
|
119
|
-
|
120
|
-
item,
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
154
|
+
createVNode(_sfc_main$2, {
|
155
|
+
selected: skeleton ? false : unref(getIsSelected)(_ctx.valueGetter(item)),
|
156
|
+
"selected-between": skeleton ? false : unref(getIsSelectedBetween)(_ctx.valueGetter(item), page, index),
|
157
|
+
"onUpdate:selected": ($event) => {
|
158
|
+
unref(toggleSelected)(_ctx.valueGetter(item), _ctx.reverse && !_ctx.selectedRange ? !$event : $event);
|
159
|
+
unref(setSelectedCursor)($event ? { page, index, id: _ctx.valueGetter(item) } : null);
|
160
|
+
},
|
161
|
+
"onUpdate:selectedRange": ($event) => unref(setSelectedRange)({ page, index, id: _ctx.valueGetter(item) }),
|
162
|
+
"onUpdate:selectedRangeHover": ($event) => unref(setRangeHover)({ page, index, id: _ctx.valueGetter(item) })
|
163
|
+
}, {
|
164
|
+
default: withCtx(() => [
|
165
|
+
renderSlot(_ctx.$slots, "default", {
|
166
|
+
item,
|
167
|
+
setter,
|
168
|
+
skeleton,
|
169
|
+
refetch,
|
170
|
+
previous,
|
171
|
+
next,
|
172
|
+
first,
|
173
|
+
last,
|
174
|
+
resetting,
|
175
|
+
page,
|
176
|
+
index
|
177
|
+
})
|
178
|
+
]),
|
179
|
+
_: 2
|
180
|
+
}, 1032, ["selected", "selected-between", "onUpdate:selected", "onUpdate:selectedRange", "onUpdate:selectedRangeHover"])
|
132
181
|
]),
|
133
182
|
_: 3
|
134
|
-
}, 8, ["query-params", "use-query-fn", "is-invalid-page", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "
|
183
|
+
}, 8, ["query-params", "use-query-fn", "is-invalid-page", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "exclude-params", "empty-stub", "page-class", "max-pages", "refetch-interval", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection"])
|
135
184
|
], 64);
|
136
185
|
};
|
137
186
|
}
|
@@ -15,12 +15,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
15
15
|
hidePageTitle?: boolean | undefined;
|
16
16
|
noGap?: boolean | undefined;
|
17
17
|
emptyStub?: string | undefined;
|
18
|
-
reverseSelection?: boolean | undefined;
|
19
|
-
allowPageSelection?: boolean | undefined;
|
20
18
|
minHeight?: boolean | undefined;
|
21
19
|
pageClass?: string | undefined;
|
22
20
|
refetchInterval?: number | false | undefined;
|
23
21
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
22
|
+
reverseSelection?: boolean | undefined;
|
23
|
+
allowPageSelection?: boolean | undefined;
|
24
24
|
maxPages?: number | undefined;
|
25
25
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
26
26
|
skipScrollTarget?: boolean | undefined;
|
@@ -85,12 +85,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
85
85
|
hidePageTitle?: boolean | undefined;
|
86
86
|
noGap?: boolean | undefined;
|
87
87
|
emptyStub?: string | undefined;
|
88
|
-
reverseSelection?: boolean | undefined;
|
89
|
-
allowPageSelection?: boolean | undefined;
|
90
88
|
minHeight?: boolean | undefined;
|
91
89
|
pageClass?: string | undefined;
|
92
90
|
refetchInterval?: number | false | undefined;
|
93
91
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
92
|
+
reverseSelection?: boolean | undefined;
|
93
|
+
allowPageSelection?: boolean | undefined;
|
94
94
|
maxPages?: number | undefined;
|
95
95
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
96
96
|
skipScrollTarget?: boolean | undefined;
|
@@ -159,12 +159,12 @@ declare const _default: <Model extends string | number, Data extends DefaultData
|
|
159
159
|
hidePageTitle?: boolean | undefined;
|
160
160
|
noGap?: boolean | undefined;
|
161
161
|
emptyStub?: string | undefined;
|
162
|
-
reverseSelection?: boolean | undefined;
|
163
|
-
allowPageSelection?: boolean | undefined;
|
164
162
|
minHeight?: boolean | undefined;
|
165
163
|
pageClass?: string | undefined;
|
166
164
|
refetchInterval?: number | false | undefined;
|
167
165
|
queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
|
166
|
+
reverseSelection?: boolean | undefined;
|
167
|
+
allowPageSelection?: boolean | undefined;
|
168
168
|
maxPages?: number | undefined;
|
169
169
|
"onUpdate:page"?: ((value: number | undefined) => any) | undefined;
|
170
170
|
skipScrollTarget?: boolean | undefined;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"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"}
|
@@ -15,7 +15,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
15
15
|
skeletonLength: { default: void 0 },
|
16
16
|
hidePageTitle: { type: Boolean },
|
17
17
|
skipScrollTarget: { type: Boolean },
|
18
|
-
selected: { default: void 0 },
|
19
18
|
wrap: { type: Boolean },
|
20
19
|
noGap: { type: Boolean },
|
21
20
|
transition: { type: Boolean },
|
@@ -26,15 +25,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
25
|
minHeight: { type: Boolean },
|
27
26
|
excludeParams: { default: void 0 },
|
28
27
|
emptyStub: { default: void 0 },
|
29
|
-
selectOnly: { type: Boolean },
|
30
|
-
unselectOnly: { type: Boolean },
|
31
|
-
reverseSelection: { type: Boolean },
|
32
|
-
allowPageSelection: { type: Boolean },
|
33
28
|
pageClass: { default: void 0 },
|
34
29
|
maxPages: { default: 5 },
|
35
30
|
refetchInterval: { type: [Number, Boolean], default: void 0 },
|
31
|
+
queryOptions: { default: void 0 },
|
32
|
+
selected: { default: void 0 },
|
36
33
|
valueGetter: {},
|
37
|
-
|
34
|
+
selectOnly: { type: Boolean },
|
35
|
+
unselectOnly: { type: Boolean },
|
36
|
+
reverseSelection: { type: Boolean },
|
37
|
+
allowPageSelection: { type: Boolean }
|
38
38
|
},
|
39
39
|
emits: ["update:page", "update:count", "update:selected"],
|
40
40
|
setup(__props, { expose: __expose, emit: __emit }) {
|
@@ -184,37 +184,37 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
184
184
|
"first-page": index === 0,
|
185
185
|
"last-page": index === pages.value.length - 1,
|
186
186
|
"hide-page-title": _ctx.hidePageTitle,
|
187
|
-
selected: _ctx.selected,
|
188
187
|
wrap: _ctx.wrap,
|
189
188
|
"no-gap": _ctx.noGap,
|
190
189
|
transition: _ctx.transition,
|
191
190
|
resetting: isResettingPage.value,
|
192
191
|
"empty-stub": _ctx.emptyStub,
|
193
|
-
"select-only": _ctx.selectOnly,
|
194
|
-
"unselect-only": _ctx.unselectOnly,
|
195
|
-
"reverse-selection": _ctx.reverseSelection,
|
196
|
-
"allow-page-selection": _ctx.allowPageSelection,
|
197
192
|
"min-height": _ctx.minHeight,
|
198
193
|
"page-class": _ctx.pageClass,
|
199
194
|
"refetch-interval": _ctx.refetchInterval,
|
200
195
|
"scrolling-element": _ctx.scrollingElement,
|
201
|
-
"value-getter": _ctx.valueGetter,
|
202
196
|
"query-options": _ctx.queryOptions,
|
197
|
+
selected: _ctx.selected,
|
198
|
+
"value-getter": _ctx.valueGetter,
|
199
|
+
"select-only": _ctx.selectOnly,
|
200
|
+
"unselect-only": _ctx.unselectOnly,
|
201
|
+
"reverse-selection": _ctx.reverseSelection,
|
202
|
+
"allow-page-selection": _ctx.allowPageSelection,
|
203
|
+
"onUpdate:selected": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:selected", $event)),
|
203
204
|
"onUpdate:count": updateCount,
|
204
205
|
"onUpdate:pagesCount": updatePagesCount,
|
205
|
-
"onUpdate:nextPage": _cache[
|
206
|
+
"onUpdate:nextPage": _cache[2] || (_cache[2] = ($event) => {
|
206
207
|
updateNextPage($event);
|
207
208
|
infiniteScroll.value?.checkIsScrollDown();
|
208
209
|
}),
|
209
|
-
"onUpdate:previousPage": _cache[
|
210
|
+
"onUpdate:previousPage": _cache[3] || (_cache[3] = ($event) => {
|
210
211
|
updatePreviousPage($event);
|
211
212
|
infiniteScroll.value?.checkIsScrollUp();
|
212
213
|
}),
|
213
214
|
"onUpdate:scroll": updateScroll,
|
214
|
-
"onUpdateFromHeader:scroll": _cache[
|
215
|
+
"onUpdateFromHeader:scroll": _cache[4] || (_cache[4] = ($event) => _ctx.headerTop > 0 && nextTick(() => updateScroll(_ctx.headerTop))),
|
215
216
|
"onRemove:page": removePage,
|
216
217
|
onRefetch: ($event) => unref(refetchNextPages)(index),
|
217
|
-
"onUpdate:selected": _cache[4] || (_cache[4] = ($event) => _ctx.$emit("update:selected", $event)),
|
218
218
|
onFetched: _cache[5] || (_cache[5] = ($event) => isResettingPage.value = false)
|
219
219
|
}, {
|
220
220
|
default: withCtx(({ item, setter, skeleton, refetch, previous, next, first, last, page: itemPage, index: itemIndex }) => [
|
@@ -233,7 +233,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
233
233
|
})
|
234
234
|
]),
|
235
235
|
_: 2
|
236
|
-
}, 1032, ["query-params", "use-query-fn", "is-invalid-page", "skeleton-length", "first-page", "last-page", "hide-page-title", "
|
236
|
+
}, 1032, ["query-params", "use-query-fn", "is-invalid-page", "skeleton-length", "first-page", "last-page", "hide-page-title", "wrap", "no-gap", "transition", "resetting", "empty-stub", "min-height", "page-class", "refetch-interval", "scrolling-element", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "onRefetch"]);
|
237
237
|
}), 128)),
|
238
238
|
count.value !== 0 && nextPage.value ? (openBlock(), createBlock(_sfc_main$2, {
|
239
239
|
key: 1,
|
@@ -0,0 +1,10 @@
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
|
2
|
+
default?(_: {}): any;
|
3
|
+
}>;
|
4
|
+
export default _default;
|
5
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
6
|
+
new (): {
|
7
|
+
$slots: S;
|
8
|
+
};
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=EmptyComponent.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EmptyComponent.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/EmptyComponent.vue"],"names":[],"mappings":";;;AAiDA,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { renderSlot } from 'vue';
|
2
|
+
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.js';
|
3
|
+
|
4
|
+
const _sfc_main = {};
|
5
|
+
|
6
|
+
function _sfc_render(_ctx, _cache) {
|
7
|
+
return renderSlot(_ctx.$slots, "default")
|
8
|
+
}
|
9
|
+
const EmptyComponent = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]);
|
10
|
+
|
11
|
+
export { EmptyComponent as default };
|
@@ -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<{
|
@@ -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;
|
@@ -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 };
|