@katlux/block-ecommerce 0.1.1-alpha.95 → 0.1.1-alpha.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/runtime/components/KProductList/KProductList.d.vue.ts +10 -23
- package/dist/runtime/components/KProductList/KProductList.logic.d.ts +20 -0
- package/dist/runtime/components/KProductList/KProductList.logic.js +30 -9
- package/dist/runtime/components/KProductList/KProductList.vue +149 -51
- package/dist/runtime/components/KProductList/KProductList.vue.d.ts +10 -23
- package/package.json +3 -3
package/dist/module.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { KProductRowAction } from '@katlux/providers';
|
|
2
2
|
import { ADataProvider } from '@katlux/providers';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
dataProvider: ADataProvider;
|
|
@@ -10,23 +10,12 @@ type __VLS_Props = {
|
|
|
10
10
|
emptyText?: string;
|
|
11
11
|
currentPage?: number;
|
|
12
12
|
pageSize?: number;
|
|
13
|
+
virtualScroll?: boolean;
|
|
14
|
+
itemHeight?: number;
|
|
15
|
+
viewportHeight?: number;
|
|
16
|
+
buffer?: number;
|
|
13
17
|
};
|
|
14
|
-
declare
|
|
15
|
-
loading: true;
|
|
16
|
-
}, __VLS_3: {}, __VLS_5: {
|
|
17
|
-
item: KProductItemData;
|
|
18
|
-
index: number;
|
|
19
|
-
}, __VLS_15: string, __VLS_16: any;
|
|
20
|
-
type __VLS_Slots = {} & {
|
|
21
|
-
[K in NonNullable<typeof __VLS_15>]?: (props: typeof __VLS_16) => any;
|
|
22
|
-
} & {
|
|
23
|
-
loading?: (props: typeof __VLS_1) => any;
|
|
24
|
-
} & {
|
|
25
|
-
empty?: (props: typeof __VLS_3) => any;
|
|
26
|
-
} & {
|
|
27
|
-
default?: (props: typeof __VLS_5) => any;
|
|
28
|
-
};
|
|
29
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
30
19
|
"update:currentPage": (page: number) => any;
|
|
31
20
|
"update:pageSize": (size: number) => any;
|
|
32
21
|
"page-change": (page: number) => any;
|
|
@@ -37,18 +26,16 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
37
26
|
}>, {
|
|
38
27
|
currentPage: number;
|
|
39
28
|
pageSize: number;
|
|
29
|
+
buffer: number;
|
|
40
30
|
layout: "grid" | "list";
|
|
41
31
|
rowActions: KProductRowAction[];
|
|
42
32
|
gridColumns: number | string;
|
|
43
33
|
gap: string;
|
|
44
34
|
locale: string;
|
|
45
35
|
emptyText: string;
|
|
36
|
+
virtualScroll: boolean;
|
|
37
|
+
itemHeight: number;
|
|
38
|
+
viewportHeight: number;
|
|
46
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
47
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
48
40
|
declare const _default: typeof __VLS_export;
|
|
49
41
|
export default _default;
|
|
50
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
51
|
-
new (): {
|
|
52
|
-
$slots: S;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
@@ -10,6 +10,10 @@ export interface KProductListProps {
|
|
|
10
10
|
emptyText?: string;
|
|
11
11
|
currentPage?: number;
|
|
12
12
|
pageSize?: number;
|
|
13
|
+
virtualScroll?: boolean;
|
|
14
|
+
itemHeight?: number;
|
|
15
|
+
viewportHeight?: number;
|
|
16
|
+
buffer?: number;
|
|
13
17
|
}
|
|
14
18
|
export type KProductListEmits = {
|
|
15
19
|
(e: 'update:currentPage', page: number): void;
|
|
@@ -53,6 +57,22 @@ export declare const KProductListDefaultProps: {
|
|
|
53
57
|
type: NumberConstructor;
|
|
54
58
|
default: undefined;
|
|
55
59
|
};
|
|
60
|
+
virtualScroll: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
itemHeight: {
|
|
65
|
+
type: NumberConstructor;
|
|
66
|
+
default: undefined;
|
|
67
|
+
};
|
|
68
|
+
viewportHeight: {
|
|
69
|
+
type: NumberConstructor;
|
|
70
|
+
default: number;
|
|
71
|
+
};
|
|
72
|
+
buffer: {
|
|
73
|
+
type: NumberConstructor;
|
|
74
|
+
default: number;
|
|
75
|
+
};
|
|
56
76
|
};
|
|
57
77
|
export declare function useKProductListLogic(props: KProductListProps, emit?: KProductListEmits): {
|
|
58
78
|
isGrid: import("vue").ComputedRef<boolean>;
|
|
@@ -36,6 +36,22 @@ export const KProductListDefaultProps = {
|
|
|
36
36
|
pageSize: {
|
|
37
37
|
type: Number,
|
|
38
38
|
default: void 0
|
|
39
|
+
},
|
|
40
|
+
virtualScroll: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false
|
|
43
|
+
},
|
|
44
|
+
itemHeight: {
|
|
45
|
+
type: Number,
|
|
46
|
+
default: void 0
|
|
47
|
+
},
|
|
48
|
+
viewportHeight: {
|
|
49
|
+
type: Number,
|
|
50
|
+
default: 600
|
|
51
|
+
},
|
|
52
|
+
buffer: {
|
|
53
|
+
type: Number,
|
|
54
|
+
default: 2
|
|
39
55
|
}
|
|
40
56
|
};
|
|
41
57
|
export function useKProductListLogic(props, emit) {
|
|
@@ -50,16 +66,21 @@ export function useKProductListLogic(props, emit) {
|
|
|
50
66
|
setCurrentPage,
|
|
51
67
|
setPageSize
|
|
52
68
|
} = useDataProvider(() => props.dataProvider);
|
|
53
|
-
watch(() => props.currentPage, (
|
|
54
|
-
if (
|
|
55
|
-
|
|
69
|
+
watch([() => props.currentPage, () => props.pageSize], ([page, size]) => {
|
|
70
|
+
if (size !== void 0 && size !== dpPageSize.value) {
|
|
71
|
+
const targetPage = page !== void 0 ? page : dpCurrentPage.value;
|
|
72
|
+
if (typeof props.dataProvider?.setPageSize === "function") {
|
|
73
|
+
props.dataProvider.setPageSize(size, false);
|
|
74
|
+
if (targetPage !== dpCurrentPage.value) {
|
|
75
|
+
setCurrentPage(targetPage);
|
|
76
|
+
}
|
|
77
|
+
} else {
|
|
78
|
+
setPageSize(size);
|
|
79
|
+
}
|
|
80
|
+
} else if (page !== void 0 && page !== dpCurrentPage.value) {
|
|
81
|
+
setCurrentPage(page);
|
|
56
82
|
}
|
|
57
|
-
});
|
|
58
|
-
watch(() => props.pageSize, (val) => {
|
|
59
|
-
if (val !== void 0 && val !== dpPageSize.value) {
|
|
60
|
-
setPageSize(val);
|
|
61
|
-
}
|
|
62
|
-
});
|
|
83
|
+
}, { immediate: true });
|
|
63
84
|
watch(dpCurrentPage, (val) => {
|
|
64
85
|
emit?.("update:currentPage", val);
|
|
65
86
|
emit?.("page-change", val);
|
|
@@ -1,70 +1,77 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
</slot>
|
|
16
|
-
</div>
|
|
1
|
+
<template lang="pug">
|
|
2
|
+
.k-product-list(:class="{ 'is-grid': isGrid, 'is-list': !isGrid, 'is-virtual-scroll': props.virtualScroll }" :style="containerVars")
|
|
3
|
+
//- Loading state
|
|
4
|
+
.loading-container(v-if="loading")
|
|
5
|
+
slot(name="loading" :loading="loading")
|
|
6
|
+
.list-container
|
|
7
|
+
.k-product-skeleton-card(v-for="i in skeletonCount" :key="i")
|
|
8
|
+
.skeleton-image
|
|
9
|
+
.skeleton-details
|
|
10
|
+
.skeleton-line.skeleton-title
|
|
11
|
+
.skeleton-line.skeleton-price
|
|
17
12
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</div>
|
|
24
|
-
</slot>
|
|
25
|
-
</div>
|
|
13
|
+
//- Empty state
|
|
14
|
+
.empty-container(v-else-if="isEmpty")
|
|
15
|
+
slot(name="empty")
|
|
16
|
+
.k-product-empty-state
|
|
17
|
+
p.empty-message {{ props.emptyText || t('No products found') }}
|
|
26
18
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
19
|
+
//- Virtual scrolling mode
|
|
20
|
+
.k-product-virtual-container(
|
|
21
|
+
v-else-if="props.virtualScroll"
|
|
22
|
+
ref="containerRef"
|
|
23
|
+
tabindex="0"
|
|
24
|
+
role="feed"
|
|
25
|
+
aria-busy="false"
|
|
26
|
+
:style="containerCssVars"
|
|
27
|
+
@scroll.passive="onScroll"
|
|
28
|
+
@keydown.down.prevent="onKeyDownDown"
|
|
29
|
+
@keydown.up.prevent="onKeyDownUp"
|
|
30
|
+
)
|
|
31
|
+
.k-virtual-spacer.is-top(aria-hidden="true")
|
|
32
|
+
.list-container
|
|
33
|
+
template(v-if="$slots.default")
|
|
34
|
+
slot(v-for="(item, index) in displayProducts" :item="item" :index="startIndex + index")
|
|
35
|
+
template(v-else)
|
|
36
|
+
KProductListItem(
|
|
37
|
+
v-for="(item, index) in displayProducts"
|
|
38
|
+
:key="item.id || (startIndex + index)"
|
|
39
|
+
:item="item"
|
|
40
|
+
:row-actions="rowActions"
|
|
41
|
+
:locale="props.locale"
|
|
42
|
+
)
|
|
43
|
+
template(v-for="(_, slot) in $slots" #[slot]="scope")
|
|
44
|
+
slot(:name="slot" v-bind="scope")
|
|
45
|
+
.k-virtual-spacer.is-bottom(aria-hidden="true")
|
|
33
46
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
47
|
+
//- Traditional paginated mode
|
|
48
|
+
template(v-else)
|
|
49
|
+
.list-container(v-if="$slots.default")
|
|
50
|
+
slot(v-for="(item, index) in pageRows" :item="item" :index="index")
|
|
51
|
+
.list-container(v-else)
|
|
52
|
+
KProductListItem(
|
|
53
|
+
v-for="(item, index) in pageRows"
|
|
39
54
|
:key="item.id || index"
|
|
40
55
|
:item="item"
|
|
41
56
|
:row-actions="rowActions"
|
|
42
57
|
:locale="props.locale"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</template>
|
|
47
|
-
</KProductListItem>
|
|
48
|
-
</div>
|
|
49
|
-
</template>
|
|
58
|
+
)
|
|
59
|
+
template(v-for="(_, slot) in $slots" #[slot]="scope")
|
|
60
|
+
slot(:name="slot" v-bind="scope")
|
|
50
61
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
class="pagination"
|
|
62
|
+
.footer(v-if="!loading && !isEmpty && !props.virtualScroll")
|
|
63
|
+
KPagination.pagination(
|
|
54
64
|
:dataProvider="props.dataProvider"
|
|
55
|
-
:currentPage="props.currentPage"
|
|
56
|
-
:pageSize="props.pageSize"
|
|
57
65
|
@update:currentPage="emit('update:currentPage', $event)"
|
|
58
66
|
@update:pageSize="emit('update:pageSize', $event)"
|
|
59
|
-
|
|
60
|
-
</div>
|
|
61
|
-
</div>
|
|
67
|
+
)
|
|
62
68
|
</template>
|
|
63
69
|
|
|
64
70
|
<script setup>
|
|
65
71
|
import { computed } from "vue";
|
|
66
72
|
import { ADataProvider } from "@katlux/providers";
|
|
67
73
|
import { useKatluxI18n } from "#toolkit/composables/useKatluxI18n";
|
|
74
|
+
import { useVirtualScroll } from "#toolkit/composables/useVirtualScroll";
|
|
68
75
|
import { useKProductListLogic } from "./KProductList.logic";
|
|
69
76
|
const { t } = useKatluxI18n();
|
|
70
77
|
const emit = defineEmits(["update:currentPage", "update:pageSize", "page-change"]);
|
|
@@ -77,7 +84,11 @@ const props = defineProps({
|
|
|
77
84
|
locale: { type: String, required: false, default: void 0 },
|
|
78
85
|
emptyText: { type: String, required: false, default: void 0 },
|
|
79
86
|
currentPage: { type: Number, required: false, default: void 0 },
|
|
80
|
-
pageSize: { type: Number, required: false, default: void 0 }
|
|
87
|
+
pageSize: { type: Number, required: false, default: void 0 },
|
|
88
|
+
virtualScroll: { type: Boolean, required: false, default: false },
|
|
89
|
+
itemHeight: { type: Number, required: false, default: void 0 },
|
|
90
|
+
viewportHeight: { type: Number, required: false, default: 600 },
|
|
91
|
+
buffer: { type: Number, required: false, default: 2 }
|
|
81
92
|
});
|
|
82
93
|
const { isGrid, pageRows, loading } = useKProductListLogic(props, emit);
|
|
83
94
|
const skeletonCount = computed(() => Number(props.gridColumns) || 4);
|
|
@@ -85,6 +96,73 @@ const containerVars = computed(() => ({
|
|
|
85
96
|
"--k-product-grid-cols": String(props.gridColumns),
|
|
86
97
|
"--k-product-gap": props.gap
|
|
87
98
|
}));
|
|
99
|
+
const productItems = computed(() => {
|
|
100
|
+
const currentRows = pageRows.value;
|
|
101
|
+
const dp = props.dataProvider;
|
|
102
|
+
if (props.virtualScroll) {
|
|
103
|
+
if (Array.isArray(dp?.rowMap)) return dp.rowMap;
|
|
104
|
+
if (Array.isArray(dp?.rowMap?.value)) return dp.rowMap.value;
|
|
105
|
+
if (Array.isArray(dp?.allVisibleRows)) return dp.allVisibleRows;
|
|
106
|
+
if (Array.isArray(dp?.allVisibleRows?.value)) return dp.allVisibleRows.value;
|
|
107
|
+
if (Array.isArray(dp?.allData?.value)) return dp.allData.value;
|
|
108
|
+
if (Array.isArray(dp?.allData)) return dp.allData;
|
|
109
|
+
if (Array.isArray(dp?.data)) return dp.data;
|
|
110
|
+
}
|
|
111
|
+
return currentRows;
|
|
112
|
+
});
|
|
113
|
+
const columnsCount = computed(() => isGrid.value ? Number(props.gridColumns) || 4 : 1);
|
|
114
|
+
const effectiveItemHeight = computed(() => {
|
|
115
|
+
if (typeof props.itemHeight === "number" && props.itemHeight > 0) return props.itemHeight;
|
|
116
|
+
return isGrid.value ? 350 : 140;
|
|
117
|
+
});
|
|
118
|
+
const {
|
|
119
|
+
visibleItems,
|
|
120
|
+
startIndex,
|
|
121
|
+
endIndex,
|
|
122
|
+
topSpacerHeight,
|
|
123
|
+
bottomSpacerHeight,
|
|
124
|
+
containerRef,
|
|
125
|
+
onScroll,
|
|
126
|
+
scrollToIndex,
|
|
127
|
+
containerCssVars
|
|
128
|
+
} = useVirtualScroll({
|
|
129
|
+
items: productItems,
|
|
130
|
+
itemHeight: effectiveItemHeight,
|
|
131
|
+
containerHeight: props.viewportHeight || 600,
|
|
132
|
+
columns: columnsCount,
|
|
133
|
+
buffer: props.buffer ?? 2,
|
|
134
|
+
virtualScroll: computed(() => !!props.virtualScroll),
|
|
135
|
+
onThresholdReach: () => {
|
|
136
|
+
const dp = props.dataProvider;
|
|
137
|
+
if (typeof dp?.loadMore === "function") {
|
|
138
|
+
dp.loadMore();
|
|
139
|
+
} else if (typeof dp?.nextPage === "function" && dp.hasMore) {
|
|
140
|
+
dp.nextPage();
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
const displayProducts = computed(() => {
|
|
145
|
+
if (props.virtualScroll) {
|
|
146
|
+
return visibleItems.value;
|
|
147
|
+
}
|
|
148
|
+
return pageRows.value;
|
|
149
|
+
});
|
|
150
|
+
const isEmpty = computed(() => {
|
|
151
|
+
if (props.virtualScroll) {
|
|
152
|
+
return productItems.value.length === 0;
|
|
153
|
+
}
|
|
154
|
+
return pageRows.value.length === 0;
|
|
155
|
+
});
|
|
156
|
+
const onKeyDownDown = () => {
|
|
157
|
+
if (containerRef.value) {
|
|
158
|
+
containerRef.value.scrollTop += effectiveItemHeight.value;
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
const onKeyDownUp = () => {
|
|
162
|
+
if (containerRef.value) {
|
|
163
|
+
containerRef.value.scrollTop = Math.max(0, containerRef.value.scrollTop - effectiveItemHeight.value);
|
|
164
|
+
}
|
|
165
|
+
};
|
|
88
166
|
</script>
|
|
89
167
|
|
|
90
168
|
<style scoped>
|
|
@@ -104,6 +182,26 @@ const containerVars = computed(() => ({
|
|
|
104
182
|
flex-direction: column;
|
|
105
183
|
gap: var(--k-product-gap, 1rem);
|
|
106
184
|
}
|
|
185
|
+
.k-product-list .k-product-virtual-container {
|
|
186
|
+
overflow-y: auto;
|
|
187
|
+
max-height: var(--virtual-container-height, 600px);
|
|
188
|
+
position: relative;
|
|
189
|
+
width: 100%;
|
|
190
|
+
}
|
|
191
|
+
.k-product-list .k-product-virtual-container:focus-visible {
|
|
192
|
+
outline: 2px solid var(--primary-color, #3b82f6);
|
|
193
|
+
outline-offset: -2px;
|
|
194
|
+
}
|
|
195
|
+
.k-product-list .k-product-virtual-container .k-virtual-spacer {
|
|
196
|
+
width: 100%;
|
|
197
|
+
flex-shrink: 0;
|
|
198
|
+
}
|
|
199
|
+
.k-product-list .k-product-virtual-container .k-virtual-spacer.is-top {
|
|
200
|
+
height: var(--virtual-spacer-top, 0px);
|
|
201
|
+
}
|
|
202
|
+
.k-product-list .k-product-virtual-container .k-virtual-spacer.is-bottom {
|
|
203
|
+
height: var(--virtual-spacer-bottom, 0px);
|
|
204
|
+
}
|
|
107
205
|
.k-product-list .k-product-empty-state {
|
|
108
206
|
display: flex;
|
|
109
207
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { KProductRowAction } from '@katlux/providers';
|
|
2
2
|
import { ADataProvider } from '@katlux/providers';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
dataProvider: ADataProvider;
|
|
@@ -10,23 +10,12 @@ type __VLS_Props = {
|
|
|
10
10
|
emptyText?: string;
|
|
11
11
|
currentPage?: number;
|
|
12
12
|
pageSize?: number;
|
|
13
|
+
virtualScroll?: boolean;
|
|
14
|
+
itemHeight?: number;
|
|
15
|
+
viewportHeight?: number;
|
|
16
|
+
buffer?: number;
|
|
13
17
|
};
|
|
14
|
-
declare
|
|
15
|
-
loading: true;
|
|
16
|
-
}, __VLS_3: {}, __VLS_5: {
|
|
17
|
-
item: KProductItemData;
|
|
18
|
-
index: number;
|
|
19
|
-
}, __VLS_15: string, __VLS_16: any;
|
|
20
|
-
type __VLS_Slots = {} & {
|
|
21
|
-
[K in NonNullable<typeof __VLS_15>]?: (props: typeof __VLS_16) => any;
|
|
22
|
-
} & {
|
|
23
|
-
loading?: (props: typeof __VLS_1) => any;
|
|
24
|
-
} & {
|
|
25
|
-
empty?: (props: typeof __VLS_3) => any;
|
|
26
|
-
} & {
|
|
27
|
-
default?: (props: typeof __VLS_5) => any;
|
|
28
|
-
};
|
|
29
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
30
19
|
"update:currentPage": (page: number) => any;
|
|
31
20
|
"update:pageSize": (size: number) => any;
|
|
32
21
|
"page-change": (page: number) => any;
|
|
@@ -37,18 +26,16 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {},
|
|
|
37
26
|
}>, {
|
|
38
27
|
currentPage: number;
|
|
39
28
|
pageSize: number;
|
|
29
|
+
buffer: number;
|
|
40
30
|
layout: "grid" | "list";
|
|
41
31
|
rowActions: KProductRowAction[];
|
|
42
32
|
gridColumns: number | string;
|
|
43
33
|
gap: string;
|
|
44
34
|
locale: string;
|
|
45
35
|
emptyText: string;
|
|
36
|
+
virtualScroll: boolean;
|
|
37
|
+
itemHeight: number;
|
|
38
|
+
viewportHeight: number;
|
|
46
39
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
47
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
48
40
|
declare const _default: typeof __VLS_export;
|
|
49
41
|
export default _default;
|
|
50
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
51
|
-
new (): {
|
|
52
|
-
$slots: S;
|
|
53
|
-
};
|
|
54
|
-
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@katlux/block-ecommerce",
|
|
3
|
-
"version": "0.1.1-alpha.
|
|
3
|
+
"version": "0.1.1-alpha.97",
|
|
4
4
|
"description": "Pre-built eCommerce block components for Katlux toolkit",
|
|
5
5
|
"author": "Katlux",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"./components/*": "./dist/runtime/components/*"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@katlux/providers": "^0.1.1-alpha.
|
|
27
|
-
"@katlux/toolkit": "^0.1.1-alpha.
|
|
26
|
+
"@katlux/providers": "^0.1.1-alpha.106",
|
|
27
|
+
"@katlux/toolkit": "^0.1.1-alpha.120",
|
|
28
28
|
"@nuxt/kit": "^3.12.0",
|
|
29
29
|
"pug": "^3.0.0",
|
|
30
30
|
"sass": "^1.80.0"
|