@inno_user/inno_clouds_lib 8.3.2 → 9.0.0
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 +4756 -7285
- package/dist/@inno_user/inno_clouds_lib.umd.js +6 -27
- package/dist/components/cardMain/CardMain.vue.d.ts +9 -73
- package/dist/components/drumItem/DrumItem.vue.d.ts +1 -1
- package/dist/hooks/useAnimationLoader/AnimationLoader.vue.d.ts +1 -1
- package/dist/hooks/useProductImage/useProductImage.d.ts +3 -3
- package/dist/index.d.ts +10 -5
- package/dist/requests.d.ts +5 -3
- package/dist/semantics/cardProduct/buttonPriceCount/ButtonPriceCount.vue.d.ts +1 -1
- package/dist/semantics/cardProduct/sectionModifiers/SectionModifiers.vue.d.ts +7 -4
- package/dist/store/card.d.ts +35 -14
- package/dist/store/cart.d.ts +1 -1
- package/dist/store/images.d.ts +2 -11
- package/dist/store/main.d.ts +20 -8
- package/dist/store/modals.d.ts +1 -1
- package/dist/store/modules.d.ts +30 -0
- package/dist/store/theme.d.ts +6 -6
- package/dist/types/iCardProduct.d.ts +5 -13
- package/dist/types/iIndexedDB.d.ts +8 -11
- package/dist/types/iMain.d.ts +1 -1
- package/dist/ui/bottomSheet/BottomSheet.vue.d.ts +86 -0
- package/dist/ui/bottomSheet/index.d.ts +1 -0
- package/dist/ui/bottomSheet/useSnapPoints.d.ts +8 -0
- package/dist/ui/bottomSheet/utils.d.ts +6 -0
- package/dist/utils/indexedDB.d.ts +10 -9
- package/dist/utils/updateIndexedDB.d.ts +1 -0
- package/package.json +5 -4
- package/dist/semantics/windows/popupWindowDraggable/PopupWindowDraggable.vue.d.ts +0 -32
|
@@ -15,9 +15,9 @@ export interface IProduct {
|
|
|
15
15
|
energy_amount?: number;
|
|
16
16
|
proteins_amount?: number;
|
|
17
17
|
fat_amount?: number;
|
|
18
|
-
upsell_set: any;
|
|
19
18
|
carbohydrates_amount?: number;
|
|
20
19
|
removals?: [];
|
|
20
|
+
groups: string[];
|
|
21
21
|
fastAdding?: boolean;
|
|
22
22
|
loc_name?: Record<string, string | null>;
|
|
23
23
|
loc_description?: Record<string, string | null>;
|
|
@@ -28,18 +28,6 @@ export interface IProduct {
|
|
|
28
28
|
adult?: boolean;
|
|
29
29
|
is_fake?: boolean;
|
|
30
30
|
}
|
|
31
|
-
export interface IUpsell {
|
|
32
|
-
id: string;
|
|
33
|
-
name: string;
|
|
34
|
-
new_price: string;
|
|
35
|
-
image_link?: string;
|
|
36
|
-
position: number;
|
|
37
|
-
price: string;
|
|
38
|
-
product_size?: string;
|
|
39
|
-
tag?: string;
|
|
40
|
-
video_link?: string;
|
|
41
|
-
amount: number;
|
|
42
|
-
}
|
|
43
31
|
export interface ISizes {
|
|
44
32
|
id: string;
|
|
45
33
|
title: string;
|
|
@@ -105,3 +93,7 @@ export interface IGroupSelect extends IGroupModifiers {
|
|
|
105
93
|
index: number;
|
|
106
94
|
size?: ISizes | null;
|
|
107
95
|
}
|
|
96
|
+
export interface IPopupVisible {
|
|
97
|
+
id: string | null;
|
|
98
|
+
visible: boolean;
|
|
99
|
+
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { DBSchema } from 'idb';
|
|
2
|
-
import { IProductMain } from './iMain';
|
|
3
2
|
export interface DBProduct extends DBSchema {
|
|
4
|
-
|
|
3
|
+
groups: {
|
|
5
4
|
key: string;
|
|
6
|
-
value:
|
|
7
|
-
data: IProductMain[];
|
|
8
|
-
images: any;
|
|
9
|
-
timestamp: number;
|
|
10
|
-
};
|
|
5
|
+
value: any;
|
|
11
6
|
};
|
|
12
|
-
|
|
7
|
+
media: {
|
|
13
8
|
key: string;
|
|
14
|
-
value:
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
value: any;
|
|
10
|
+
};
|
|
11
|
+
products: {
|
|
12
|
+
key: string;
|
|
13
|
+
value: any;
|
|
17
14
|
};
|
|
18
15
|
}
|
package/dist/types/iMain.d.ts
CHANGED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { RendererElement, ShallowUnwrapRef, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
interface BottomSheetProps {
|
|
3
|
+
duration?: number;
|
|
4
|
+
snapPoints?: Array<number | `${number}%`>;
|
|
5
|
+
initialSnapPoint?: number;
|
|
6
|
+
blocking?: boolean;
|
|
7
|
+
canSwipeClose?: boolean;
|
|
8
|
+
swipeCloseThreshold?: string | number;
|
|
9
|
+
canBackdropClose?: boolean;
|
|
10
|
+
expandOnContentDrag?: boolean;
|
|
11
|
+
modelValue?: boolean;
|
|
12
|
+
teleportTo?: string | RendererElement;
|
|
13
|
+
teleportDefer?: boolean;
|
|
14
|
+
headerClass?: string;
|
|
15
|
+
contentClass?: string;
|
|
16
|
+
footerClass?: string;
|
|
17
|
+
}
|
|
18
|
+
declare function __VLS_template(): {
|
|
19
|
+
attrs: Partial<{}>;
|
|
20
|
+
slots: {
|
|
21
|
+
header?(_: {}): any;
|
|
22
|
+
default?(_: {}): any;
|
|
23
|
+
footer?(_: {}): any;
|
|
24
|
+
};
|
|
25
|
+
refs: {
|
|
26
|
+
backdrop: ShallowUnwrapRef<{}> | null;
|
|
27
|
+
sheet: ShallowUnwrapRef<{}> | null;
|
|
28
|
+
sheetHeader: ShallowUnwrapRef<{}> | null;
|
|
29
|
+
sheetScroll: HTMLDivElement;
|
|
30
|
+
sheetContentWrapper: ShallowUnwrapRef<{}> | null;
|
|
31
|
+
sheetContent: HTMLDivElement;
|
|
32
|
+
sheetFooter: ShallowUnwrapRef<{}> | null;
|
|
33
|
+
};
|
|
34
|
+
rootEl: any;
|
|
35
|
+
};
|
|
36
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
37
|
+
declare const __VLS_component: DefineComponent<BottomSheetProps, {
|
|
38
|
+
open: () => Promise<void>;
|
|
39
|
+
close: () => void;
|
|
40
|
+
snapToPoint: (index: number) => void;
|
|
41
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
42
|
+
opened: () => any;
|
|
43
|
+
"opening-started": () => any;
|
|
44
|
+
closed: () => any;
|
|
45
|
+
"closing-started": () => any;
|
|
46
|
+
ready: () => any;
|
|
47
|
+
"dragging-up": () => any;
|
|
48
|
+
"dragging-down": () => any;
|
|
49
|
+
snapped: (snapPointIndex?: number | undefined) => any;
|
|
50
|
+
instinctHeight: (instinctHeight: number) => any;
|
|
51
|
+
"update:modelValue": () => any;
|
|
52
|
+
}, string, PublicProps, Readonly<BottomSheetProps> & Readonly<{
|
|
53
|
+
onOpened?: (() => any) | undefined;
|
|
54
|
+
"onOpening-started"?: (() => any) | undefined;
|
|
55
|
+
onClosed?: (() => any) | undefined;
|
|
56
|
+
"onClosing-started"?: (() => any) | undefined;
|
|
57
|
+
onReady?: (() => any) | undefined;
|
|
58
|
+
"onDragging-up"?: (() => any) | undefined;
|
|
59
|
+
"onDragging-down"?: (() => any) | undefined;
|
|
60
|
+
onSnapped?: ((snapPointIndex?: number | undefined) => any) | undefined;
|
|
61
|
+
onInstinctHeight?: ((instinctHeight: number) => any) | undefined;
|
|
62
|
+
"onUpdate:modelValue"?: (() => any) | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
duration: number;
|
|
65
|
+
blocking: boolean;
|
|
66
|
+
canSwipeClose: boolean;
|
|
67
|
+
canBackdropClose: boolean;
|
|
68
|
+
expandOnContentDrag: boolean;
|
|
69
|
+
teleportTo: string | RendererElement;
|
|
70
|
+
teleportDefer: boolean;
|
|
71
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
72
|
+
backdrop: ShallowUnwrapRef<{}> | null;
|
|
73
|
+
sheet: ShallowUnwrapRef<{}> | null;
|
|
74
|
+
sheetHeader: ShallowUnwrapRef<{}> | null;
|
|
75
|
+
sheetScroll: HTMLDivElement;
|
|
76
|
+
sheetContentWrapper: ShallowUnwrapRef<{}> | null;
|
|
77
|
+
sheetContent: HTMLDivElement;
|
|
78
|
+
sheetFooter: ShallowUnwrapRef<{}> | null;
|
|
79
|
+
}, any>;
|
|
80
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
81
|
+
export default _default;
|
|
82
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
83
|
+
new (): {
|
|
84
|
+
$slots: S;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as BottomSheet } from './BottomSheet.vue';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Ref, ComputedRef } from 'vue';
|
|
2
|
+
export declare function useSnapPoints(snapPoints: Ref<Array<number | `${number}%`>>, height: Ref<number>, windowHeight: Ref<number>): {
|
|
3
|
+
currentSnapPointIndex: Ref<number, number>;
|
|
4
|
+
flattenedSnapPoints: ComputedRef<number[]>;
|
|
5
|
+
minSnapPoint: ComputedRef<number>;
|
|
6
|
+
maxSnapPoint: ComputedRef<number>;
|
|
7
|
+
closestSnapPointIndex: ComputedRef<number>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const heightPercentToPixels: (heightStr: string, windowHeight: number) => number;
|
|
2
|
+
export declare const rubberbandIfOutOfBounds: (position: number, min: number, max: number, constant?: number) => number;
|
|
3
|
+
export declare const clamp: (value: number, { min, max }: {
|
|
4
|
+
min?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
}) => number;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare function
|
|
8
|
-
export declare function
|
|
9
|
-
export declare function
|
|
1
|
+
import { IDBPDatabase } from 'idb';
|
|
2
|
+
import { DBProduct } from '../types/iIndexedDB';
|
|
3
|
+
export declare function initDBProduct(): Promise<IDBPDatabase<DBProduct>>;
|
|
4
|
+
export declare function getCachedGroup(key: string): Promise<any>;
|
|
5
|
+
export declare function setCachedGroup(id: string, data: any): Promise<void>;
|
|
6
|
+
export declare function updateRootGroupsCache(pointId: string, currentMenu: any): Promise<void>;
|
|
7
|
+
export declare function setMediaBlob(id: string | number, blob: Blob): Promise<void>;
|
|
8
|
+
export declare function getMediaBlob(id: string): Promise<Blob | undefined>;
|
|
9
|
+
export declare function setCachedProduct(product: any): Promise<void>;
|
|
10
|
+
export declare function getCachedProduct(id: string): Promise<any | undefined>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const updateIndexedDB: (pointId: string, area: string) => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inno_user/inno_clouds_lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "9.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"./style.css": "./dist/@inno_user/inno_clouds_lib.css"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
|
-
"dev": "vite",
|
|
25
|
+
"dev": "vite build --watch",
|
|
26
26
|
"build": "vite build",
|
|
27
27
|
"lint": "eslint . --fix",
|
|
28
28
|
"format": "prettier --write \"**/*.{js,ts,vue,css,html}\"",
|
|
@@ -30,7 +30,9 @@
|
|
|
30
30
|
"preview": "vite preview"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"vue": "^3.5.12"
|
|
33
|
+
"vue": "^3.5.12",
|
|
34
|
+
"@vueuse/core": "^14.1.0",
|
|
35
|
+
"motion-v": "^1.7.4"
|
|
34
36
|
},
|
|
35
37
|
"devDependencies": {
|
|
36
38
|
"@types/tinycolor2": "^1.4.6",
|
|
@@ -54,7 +56,6 @@
|
|
|
54
56
|
"dependencies": {
|
|
55
57
|
"axios": "^1.10.0",
|
|
56
58
|
"dayjs": "^1.11.13",
|
|
57
|
-
"gsap": "^3.13.0",
|
|
58
59
|
"idb": "^8.0.3",
|
|
59
60
|
"jwt-decode": "^4.0.0",
|
|
60
61
|
"p-limit": "^7.2.0",
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
visible: boolean;
|
|
4
|
-
styleWindow: any;
|
|
5
|
-
};
|
|
6
|
-
declare function __VLS_template(): {
|
|
7
|
-
attrs: Partial<{}>;
|
|
8
|
-
slots: {
|
|
9
|
-
default?(_: {}): any;
|
|
10
|
-
};
|
|
11
|
-
refs: {
|
|
12
|
-
backgroundBlack: HTMLDivElement;
|
|
13
|
-
popupOverlay: HTMLDivElement;
|
|
14
|
-
};
|
|
15
|
-
rootEl: any;
|
|
16
|
-
};
|
|
17
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
18
|
-
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
19
|
-
"update:visible": (value: boolean) => any;
|
|
20
|
-
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
-
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
22
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
23
|
-
backgroundBlack: HTMLDivElement;
|
|
24
|
-
popupOverlay: HTMLDivElement;
|
|
25
|
-
}, any>;
|
|
26
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
-
export default _default;
|
|
28
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
-
new (): {
|
|
30
|
-
$slots: S;
|
|
31
|
-
};
|
|
32
|
-
};
|