@inno_user/inno_clouds_lib 8.2.3 → 8.2.5
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/@inno_user/inno_clouds_lib.css +1 -1
- package/dist/@inno_user/inno_clouds_lib.es.js +4135 -3721
- package/dist/@inno_user/inno_clouds_lib.umd.js +12 -12
- package/dist/components/cardMain/CardMain.vue.d.ts +9 -0
- package/dist/components/drumItem/DrumItem.vue.d.ts +1 -4
- package/dist/components/recommendation/Recommendation.vue.d.ts +1 -0
- package/dist/composables/useVirtuaLoop.d.ts +189 -0
- package/dist/index.d.ts +7 -1
- package/dist/store/card.d.ts +110 -2
- package/dist/store/main.d.ts +37 -1
- package/dist/store/theme.d.ts +9 -0
- package/dist/types/iCardProduct.d.ts +4 -0
- package/dist/types/iMain.d.ts +1 -0
- package/dist/types/iTheme.d.ts +1 -0
- package/package.json +2 -1
|
@@ -35,6 +35,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
35
35
|
type: PropType<(id: number) => void>;
|
|
36
36
|
required: false;
|
|
37
37
|
};
|
|
38
|
+
is_qr: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
38
42
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
39
43
|
data: {
|
|
40
44
|
type: PropType<IProduct | IGroup>;
|
|
@@ -69,10 +73,15 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
69
73
|
type: PropType<(id: number) => void>;
|
|
70
74
|
required: false;
|
|
71
75
|
};
|
|
76
|
+
is_qr: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
72
80
|
}>> & Readonly<{}>, {
|
|
73
81
|
activeTags: Record<string, any>;
|
|
74
82
|
is_product: boolean;
|
|
75
83
|
is_group: boolean;
|
|
76
84
|
isLoading: boolean;
|
|
85
|
+
is_qr: boolean;
|
|
77
86
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
78
87
|
export default _default;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
drumItemTransition: string;
|
|
4
3
|
group: any;
|
|
5
|
-
localDisplay: any;
|
|
6
4
|
index: number;
|
|
7
|
-
|
|
8
|
-
durationAnimation: number;
|
|
5
|
+
active: boolean;
|
|
9
6
|
};
|
|
10
7
|
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
8
|
export default _default;
|
|
@@ -2,6 +2,7 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
closeCurrentCard: any;
|
|
4
4
|
openCurrentCard: any;
|
|
5
|
+
is_qr?: boolean;
|
|
5
6
|
};
|
|
6
7
|
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
8
|
export default _default;
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { ScrollToIndexOpts, CacheSnapshot } from 'virtua';
|
|
2
|
+
import { MaybeRefOrGetter, Ref, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, NativeElements, ComponentOptionsMixin, PublicProps, IntrinsicElementAttributes, SlotsType, VNode, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComputedRef } from 'vue';
|
|
3
|
+
import { ItemProps } from 'node_modules/virtua/lib/vue/utils';
|
|
4
|
+
import { VirtualizerHandle } from 'node_modules/virtua/lib/vue/Virtualizer';
|
|
5
|
+
interface VirtuaLoopOptions {
|
|
6
|
+
align?: 'start' | 'center';
|
|
7
|
+
mode?: 'auto' | 'loop' | 'virtual';
|
|
8
|
+
}
|
|
9
|
+
export declare function useVirtuaLoop<T>(source: MaybeRefOrGetter<T[]>, options?: VirtuaLoopOptions): {
|
|
10
|
+
listRef: Ref< CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
11
|
+
data: {
|
|
12
|
+
type: ArrayConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
bufferSize: NumberConstructor;
|
|
16
|
+
itemSize: NumberConstructor;
|
|
17
|
+
shift: BooleanConstructor;
|
|
18
|
+
horizontal: BooleanConstructor;
|
|
19
|
+
startMargin: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
ssrCount: NumberConstructor;
|
|
24
|
+
scrollRef: PropType<HTMLElement>;
|
|
25
|
+
as: {
|
|
26
|
+
type: PropType<keyof NativeElements>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
item: {
|
|
30
|
+
type: PropType<keyof NativeElements>;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
itemProps: PropType<ItemProps>;
|
|
34
|
+
keepMounted: PropType<readonly number[]>;
|
|
35
|
+
cache: PropType<CacheSnapshot>;
|
|
36
|
+
}>> & {
|
|
37
|
+
onScroll?: ((offset: number) => any) | undefined;
|
|
38
|
+
onScrollEnd?: (() => any) | undefined;
|
|
39
|
+
}, VirtualizerHandle, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
40
|
+
scroll: (offset: number) => void;
|
|
41
|
+
scrollEnd: () => void;
|
|
42
|
+
}, PublicProps, {
|
|
43
|
+
shift: boolean;
|
|
44
|
+
horizontal: boolean;
|
|
45
|
+
startMargin: number;
|
|
46
|
+
as: keyof IntrinsicElementAttributes;
|
|
47
|
+
item: keyof IntrinsicElementAttributes;
|
|
48
|
+
}, true, {}, SlotsType<{
|
|
49
|
+
default: (arg: {
|
|
50
|
+
item: any;
|
|
51
|
+
index: number;
|
|
52
|
+
}) => VNode[];
|
|
53
|
+
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
54
|
+
P: {};
|
|
55
|
+
B: {};
|
|
56
|
+
D: {};
|
|
57
|
+
C: {};
|
|
58
|
+
M: {};
|
|
59
|
+
Defaults: {};
|
|
60
|
+
}, Readonly< ExtractPropTypes<{
|
|
61
|
+
data: {
|
|
62
|
+
type: ArrayConstructor;
|
|
63
|
+
required: true;
|
|
64
|
+
};
|
|
65
|
+
bufferSize: NumberConstructor;
|
|
66
|
+
itemSize: NumberConstructor;
|
|
67
|
+
shift: BooleanConstructor;
|
|
68
|
+
horizontal: BooleanConstructor;
|
|
69
|
+
startMargin: {
|
|
70
|
+
type: NumberConstructor;
|
|
71
|
+
default: number;
|
|
72
|
+
};
|
|
73
|
+
ssrCount: NumberConstructor;
|
|
74
|
+
scrollRef: PropType<HTMLElement>;
|
|
75
|
+
as: {
|
|
76
|
+
type: PropType<keyof NativeElements>;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
item: {
|
|
80
|
+
type: PropType<keyof NativeElements>;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
itemProps: PropType<ItemProps>;
|
|
84
|
+
keepMounted: PropType<readonly number[]>;
|
|
85
|
+
cache: PropType<CacheSnapshot>;
|
|
86
|
+
}>> & {
|
|
87
|
+
onScroll?: ((offset: number) => any) | undefined;
|
|
88
|
+
onScrollEnd?: (() => any) | undefined;
|
|
89
|
+
}, VirtualizerHandle, {}, {}, {}, {
|
|
90
|
+
shift: boolean;
|
|
91
|
+
horizontal: boolean;
|
|
92
|
+
startMargin: number;
|
|
93
|
+
as: keyof IntrinsicElementAttributes;
|
|
94
|
+
item: keyof IntrinsicElementAttributes;
|
|
95
|
+
}> | null, CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
96
|
+
data: {
|
|
97
|
+
type: ArrayConstructor;
|
|
98
|
+
required: true;
|
|
99
|
+
};
|
|
100
|
+
bufferSize: NumberConstructor;
|
|
101
|
+
itemSize: NumberConstructor;
|
|
102
|
+
shift: BooleanConstructor;
|
|
103
|
+
horizontal: BooleanConstructor;
|
|
104
|
+
startMargin: {
|
|
105
|
+
type: NumberConstructor;
|
|
106
|
+
default: number;
|
|
107
|
+
};
|
|
108
|
+
ssrCount: NumberConstructor;
|
|
109
|
+
scrollRef: PropType<HTMLElement>;
|
|
110
|
+
as: {
|
|
111
|
+
type: PropType<keyof NativeElements>;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
114
|
+
item: {
|
|
115
|
+
type: PropType<keyof NativeElements>;
|
|
116
|
+
default: string;
|
|
117
|
+
};
|
|
118
|
+
itemProps: PropType<ItemProps>;
|
|
119
|
+
keepMounted: PropType<readonly number[]>;
|
|
120
|
+
cache: PropType<CacheSnapshot>;
|
|
121
|
+
}>> & {
|
|
122
|
+
onScroll?: ((offset: number) => any) | undefined;
|
|
123
|
+
onScrollEnd?: (() => any) | undefined;
|
|
124
|
+
}, VirtualizerHandle, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
125
|
+
scroll: (offset: number) => void;
|
|
126
|
+
scrollEnd: () => void;
|
|
127
|
+
}, PublicProps, {
|
|
128
|
+
shift: boolean;
|
|
129
|
+
horizontal: boolean;
|
|
130
|
+
startMargin: number;
|
|
131
|
+
as: keyof IntrinsicElementAttributes;
|
|
132
|
+
item: keyof IntrinsicElementAttributes;
|
|
133
|
+
}, true, {}, SlotsType<{
|
|
134
|
+
default: (arg: {
|
|
135
|
+
item: any;
|
|
136
|
+
index: number;
|
|
137
|
+
}) => VNode[];
|
|
138
|
+
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
139
|
+
P: {};
|
|
140
|
+
B: {};
|
|
141
|
+
D: {};
|
|
142
|
+
C: {};
|
|
143
|
+
M: {};
|
|
144
|
+
Defaults: {};
|
|
145
|
+
}, Readonly< ExtractPropTypes<{
|
|
146
|
+
data: {
|
|
147
|
+
type: ArrayConstructor;
|
|
148
|
+
required: true;
|
|
149
|
+
};
|
|
150
|
+
bufferSize: NumberConstructor;
|
|
151
|
+
itemSize: NumberConstructor;
|
|
152
|
+
shift: BooleanConstructor;
|
|
153
|
+
horizontal: BooleanConstructor;
|
|
154
|
+
startMargin: {
|
|
155
|
+
type: NumberConstructor;
|
|
156
|
+
default: number;
|
|
157
|
+
};
|
|
158
|
+
ssrCount: NumberConstructor;
|
|
159
|
+
scrollRef: PropType<HTMLElement>;
|
|
160
|
+
as: {
|
|
161
|
+
type: PropType<keyof NativeElements>;
|
|
162
|
+
default: string;
|
|
163
|
+
};
|
|
164
|
+
item: {
|
|
165
|
+
type: PropType<keyof NativeElements>;
|
|
166
|
+
default: string;
|
|
167
|
+
};
|
|
168
|
+
itemProps: PropType<ItemProps>;
|
|
169
|
+
keepMounted: PropType<readonly number[]>;
|
|
170
|
+
cache: PropType<CacheSnapshot>;
|
|
171
|
+
}>> & {
|
|
172
|
+
onScroll?: ((offset: number) => any) | undefined;
|
|
173
|
+
onScrollEnd?: (() => any) | undefined;
|
|
174
|
+
}, VirtualizerHandle, {}, {}, {}, {
|
|
175
|
+
shift: boolean;
|
|
176
|
+
horizontal: boolean;
|
|
177
|
+
startMargin: number;
|
|
178
|
+
as: keyof IntrinsicElementAttributes;
|
|
179
|
+
item: keyof IntrinsicElementAttributes;
|
|
180
|
+
}> | null>;
|
|
181
|
+
items: ComputedRef<number[]>;
|
|
182
|
+
hasScroll: Ref<boolean, boolean>;
|
|
183
|
+
realIndex: (vIndex: number) => number;
|
|
184
|
+
findNearestIndex: (currentVIndex: number, targetRealIndex: number) => number;
|
|
185
|
+
scrollToIndex: (index: number, opts?: ScrollToIndexOpts) => void;
|
|
186
|
+
init: () => Promise<void>;
|
|
187
|
+
onScroll: () => void;
|
|
188
|
+
};
|
|
189
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -23,8 +23,14 @@ import { useCartStore as useCartLibStore } from './store/cart';
|
|
|
23
23
|
import { vClickOutside } from './directives/vClickOutside';
|
|
24
24
|
import { default as ButtonDefault } from './ui/buttons/default/ButtonDefault.vue';
|
|
25
25
|
import { default as BasketButton } from './ui/buttons/basketButton/BasketButton.vue';
|
|
26
|
+
import { VList, Virtualizer } from 'virtua/vue';
|
|
27
|
+
import { useVirtuaLoop } from './composables/useVirtuaLoop';
|
|
26
28
|
import { preventZoom, PreventZoomConfig } from './utils/preventZoom';
|
|
27
29
|
export { InitConnection, useThemeStore, useMainLibStore, useCardLibStore, useCartLibStore, useImageCacheStore, vClickOutside, initPinia, initRouter, useRouter, useRoute, RetryPage, CartPage, CardProductPage, CardReader, CardMain, GroupMain, TagsMain, CartBox, DrumItem, ButtonDefault, BasketButton, ModalWindows, Recommendation, PopupWindowDraggable, PopupWindowDefault,
|
|
30
|
+
/** Composables */
|
|
31
|
+
useVirtuaLoop,
|
|
28
32
|
/** Utils */
|
|
29
|
-
preventZoom,
|
|
33
|
+
preventZoom,
|
|
34
|
+
/** Components */
|
|
35
|
+
VList, Virtualizer, };
|
|
30
36
|
export type { ICallStaffRequest, PreventZoomConfig };
|