@inno_user/inno_clouds_lib 8.1.5 → 8.2.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/README.md +25 -25
- package/dist/{inno_clouds_lib.css → @inno_user/inno_clouds_lib.css} +1 -1
- package/dist/{inno_clouds_lib.es.js → @inno_user/inno_clouds_lib.es.js} +1900 -1894
- package/dist/@inno_user/inno_clouds_lib.umd.js +27 -0
- package/dist/directives/vClickOutside.d.ts +6 -0
- package/dist/index.d.ts +4 -1
- package/dist/requests.d.ts +4 -1
- package/dist/store/card.d.ts +1 -1
- package/dist/store/cart.d.ts +3 -3
- package/dist/store/main.d.ts +10 -10
- package/dist/types/iRequests.d.ts +6 -0
- package/dist/views/cartPage/CartPage.vue.d.ts +1 -0
- package/package.json +6 -9
- package/dist/inno_clouds_lib.umd.js +0 -27
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ICallStaffRequest } from './types/iRequests';
|
|
1
2
|
import { initPinia } from './pinia';
|
|
2
3
|
import { initRouter, useRouter, useRoute } from './router';
|
|
3
4
|
import { InitConnection } from './requests';
|
|
@@ -19,6 +20,8 @@ import { useImageCacheStore } from './store/images';
|
|
|
19
20
|
import { useMainStore as useMainLibStore } from './store/main';
|
|
20
21
|
import { useCardStore as useCardLibStore } from './store/card';
|
|
21
22
|
import { useCartStore as useCartLibStore } from './store/cart';
|
|
23
|
+
import { vClickOutside } from './directives/vClickOutside';
|
|
22
24
|
import { default as ButtonDefault } from './ui/buttons/default/ButtonDefault.vue';
|
|
23
25
|
import { default as BasketButton } from './ui/buttons/basketButton/BasketButton.vue';
|
|
24
|
-
export { InitConnection, useThemeStore, useMainLibStore, useCardLibStore, useCartLibStore, useImageCacheStore, initPinia, initRouter, useRouter, useRoute, RetryPage, CartPage, CardProductPage, CardReader, CardMain, GroupMain, TagsMain, CartBox, DrumItem, ButtonDefault, BasketButton, ModalWindows, Recommendation, PopupWindowDraggable, PopupWindowDefault };
|
|
26
|
+
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, };
|
|
27
|
+
export type { ICallStaffRequest };
|
package/dist/requests.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ICallStaffRequest } from './types/iRequests';
|
|
1
2
|
import { AxiosInstance, AxiosResponse } from 'axios';
|
|
2
3
|
interface ConnectionConfig {
|
|
3
4
|
domain: string;
|
|
@@ -36,6 +37,7 @@ declare class InitConnection {
|
|
|
36
37
|
static create(config?: ConnectionConfig): InitConnection;
|
|
37
38
|
private static _initialize;
|
|
38
39
|
private currentUpsaleController;
|
|
40
|
+
private controller;
|
|
39
41
|
protected get config(): ConnectionConfig | null;
|
|
40
42
|
protected get cardStore(): any;
|
|
41
43
|
protected get stateCard(): any;
|
|
@@ -54,7 +56,8 @@ declare class InitConnection {
|
|
|
54
56
|
authorizeByCard(cardNumber: string): Promise<any>;
|
|
55
57
|
getLoyalSmsCode(phoneNumber: any): Promise<any>;
|
|
56
58
|
sendSmsCodeForAuth(code: number, phone: number): Promise<any>;
|
|
57
|
-
|
|
59
|
+
callStaff(tableId: string, reason: ICallStaffRequest['reason']): Promise<string | undefined>;
|
|
60
|
+
createOrder(clearCartProducts_lib: any, tableTitle: any, is_requestKiosk: boolean | undefined, comment: string, is_authorized?: boolean, is_tableservice?: boolean): Promise<any>;
|
|
58
61
|
initPaymentLink(order: string, is_requestKiosk?: boolean): Promise<any>;
|
|
59
62
|
orderPay(id: string): Promise< AxiosResponse<any, any, {}> | undefined>;
|
|
60
63
|
getProfile(): Promise<any>;
|
package/dist/store/card.d.ts
CHANGED
|
@@ -2410,4 +2410,4 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
|
|
|
2410
2410
|
isAnimationFly: boolean;
|
|
2411
2411
|
textErrorRequaired: string;
|
|
2412
2412
|
};
|
|
2413
|
-
}, "plusAmount" | "
|
|
2413
|
+
}, "plusAmount" | "minusAmount" | "summModifierAmount" | "setAddedProducts" | "setCurrentCard" | "toggleNotRequire" | "modifierSelect" | "defaultAmountModifiers" | "reset">>;
|
package/dist/store/cart.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare const useCartStore: StoreDefinition<"cartLib", Pick<{
|
|
|
20
20
|
isDrawerOpen: Ref<boolean, boolean>;
|
|
21
21
|
currentState: Ref<"wait" | "success" | "not_found", "wait" | "success" | "not_found">;
|
|
22
22
|
isAuthorized: ComputedRef<boolean>;
|
|
23
|
-
orderSocket: (orderId: string, is_requestKiosk: boolean) => void;
|
|
23
|
+
orderSocket: (orderId: string, is_requestKiosk: boolean, is_tableservice?: boolean) => void;
|
|
24
24
|
deleteCart: (path?: string | null, clearTokens?: boolean) => void;
|
|
25
25
|
setGuestInfo: (info: any) => any;
|
|
26
26
|
setState: (state: "wait" | "success" | "not_found") => void;
|
|
@@ -47,7 +47,7 @@ export declare const useCartStore: StoreDefinition<"cartLib", Pick<{
|
|
|
47
47
|
isDrawerOpen: Ref<boolean, boolean>;
|
|
48
48
|
currentState: Ref<"wait" | "success" | "not_found", "wait" | "success" | "not_found">;
|
|
49
49
|
isAuthorized: ComputedRef<boolean>;
|
|
50
|
-
orderSocket: (orderId: string, is_requestKiosk: boolean) => void;
|
|
50
|
+
orderSocket: (orderId: string, is_requestKiosk: boolean, is_tableservice?: boolean) => void;
|
|
51
51
|
deleteCart: (path?: string | null, clearTokens?: boolean) => void;
|
|
52
52
|
setGuestInfo: (info: any) => any;
|
|
53
53
|
setState: (state: "wait" | "success" | "not_found") => void;
|
|
@@ -74,7 +74,7 @@ export declare const useCartStore: StoreDefinition<"cartLib", Pick<{
|
|
|
74
74
|
isDrawerOpen: Ref<boolean, boolean>;
|
|
75
75
|
currentState: Ref<"wait" | "success" | "not_found", "wait" | "success" | "not_found">;
|
|
76
76
|
isAuthorized: ComputedRef<boolean>;
|
|
77
|
-
orderSocket: (orderId: string, is_requestKiosk: boolean) => void;
|
|
77
|
+
orderSocket: (orderId: string, is_requestKiosk: boolean, is_tableservice?: boolean) => void;
|
|
78
78
|
deleteCart: (path?: string | null, clearTokens?: boolean) => void;
|
|
79
79
|
setGuestInfo: (info: any) => any;
|
|
80
80
|
setState: (state: "wait" | "success" | "not_found") => void;
|
package/dist/store/main.d.ts
CHANGED
|
@@ -224,10 +224,10 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
224
224
|
setBonus: (value: number) => void;
|
|
225
225
|
setStateDrum: (toggle: boolean) => void;
|
|
226
226
|
addToCart: (item: any) => void;
|
|
227
|
-
plusAmount: (
|
|
228
|
-
|
|
227
|
+
plusAmount: (idSystem: string) => void;
|
|
228
|
+
minusAmount: (idSystem: string) => void;
|
|
229
229
|
loadCart: () => void;
|
|
230
|
-
|
|
230
|
+
deleteItemFromCart: (idSystem?: string) => void;
|
|
231
231
|
makeProductFullyReactive: (item: any) => IProduct;
|
|
232
232
|
}, "openApiKey" | "kiosk_timeout" | "cartProducts_lib" | "activeScrolling_lib" | "config_lib" | "is_notification_lib" | "notificationData_lib" | "xApiKey_lib" | "countBonus" | "toggleDrum" | "is_showApiKey" | "kiosk_FirstTimeout" | "is_OpenLoyal" | "profile">, Pick<{
|
|
233
233
|
cartProducts_lib: Ref<{
|
|
@@ -452,10 +452,10 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
452
452
|
setBonus: (value: number) => void;
|
|
453
453
|
setStateDrum: (toggle: boolean) => void;
|
|
454
454
|
addToCart: (item: any) => void;
|
|
455
|
-
plusAmount: (
|
|
456
|
-
|
|
455
|
+
plusAmount: (idSystem: string) => void;
|
|
456
|
+
minusAmount: (idSystem: string) => void;
|
|
457
457
|
loadCart: () => void;
|
|
458
|
-
|
|
458
|
+
deleteItemFromCart: (idSystem?: string) => void;
|
|
459
459
|
makeProductFullyReactive: (item: any) => IProduct;
|
|
460
460
|
}, "totalPrice_lib">, Pick<{
|
|
461
461
|
cartProducts_lib: Ref<{
|
|
@@ -680,9 +680,9 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
|
|
|
680
680
|
setBonus: (value: number) => void;
|
|
681
681
|
setStateDrum: (toggle: boolean) => void;
|
|
682
682
|
addToCart: (item: any) => void;
|
|
683
|
-
plusAmount: (
|
|
684
|
-
|
|
683
|
+
plusAmount: (idSystem: string) => void;
|
|
684
|
+
minusAmount: (idSystem: string) => void;
|
|
685
685
|
loadCart: () => void;
|
|
686
|
-
|
|
686
|
+
deleteItemFromCart: (idSystem?: string) => void;
|
|
687
687
|
makeProductFullyReactive: (item: any) => IProduct;
|
|
688
|
-
}, "removeFromLocalStorage" | "setKioskTimeout" | "setBonus" | "setStateDrum" | "addToCart" | "plusAmount" | "
|
|
688
|
+
}, "removeFromLocalStorage" | "setKioskTimeout" | "setBonus" | "setStateDrum" | "addToCart" | "plusAmount" | "minusAmount" | "loadCart" | "deleteItemFromCart" | "makeProductFullyReactive">>;
|
package/package.json
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inno_user/inno_clouds_lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "8.
|
|
5
|
-
"publishConfig": {
|
|
6
|
-
"access": "public"
|
|
7
|
-
},
|
|
4
|
+
"version": "8.2.0",
|
|
8
5
|
"type": "module",
|
|
9
6
|
"files": [
|
|
10
7
|
"dist"
|
|
11
8
|
],
|
|
12
9
|
"types": "./dist/index.d.ts",
|
|
13
|
-
"main": "./dist/inno_clouds_lib.umd.js",
|
|
14
|
-
"module": "./dist/inno_clouds_lib.es.js",
|
|
10
|
+
"main": "./dist/@inno_user/inno_clouds_lib.umd.js",
|
|
11
|
+
"module": "./dist/@inno_user/inno_clouds_lib.es.js",
|
|
15
12
|
"exports": {
|
|
16
13
|
".": {
|
|
17
|
-
"import": "./dist/inno_clouds_lib.es.js",
|
|
18
|
-
"require": "./dist/inno_clouds_lib.umd.js",
|
|
14
|
+
"import": "./dist/@inno_user/inno_clouds_lib.es.js",
|
|
15
|
+
"require": "./dist/@inno_user/inno_clouds_lib.umd.js",
|
|
19
16
|
"types": "./dist/index.d.ts"
|
|
20
17
|
},
|
|
21
18
|
"./requests": {
|
|
22
19
|
"import": "./dist/requests.js",
|
|
23
20
|
"types": "./dist/requests.d.ts"
|
|
24
21
|
},
|
|
25
|
-
"./style.css": "./dist/inno_clouds_lib.css"
|
|
22
|
+
"./style.css": "./dist/@inno_user/inno_clouds_lib.css"
|
|
26
23
|
},
|
|
27
24
|
"scripts": {
|
|
28
25
|
"dev": "vite",
|