@inno_user/inno_clouds_lib 8.2.2 → 8.2.4

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.
@@ -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
- activeId: string;
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,5 +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
- 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 };
26
+ import { VList, Virtualizer } from 'virtua/vue';
27
+ import { useVirtuaLoop } from './composables/useVirtuaLoop';
28
+ import { preventZoom, PreventZoomConfig } from './utils/preventZoom';
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,
32
+ /** Utils */
33
+ preventZoom,
34
+ /** Components */
35
+ VList, Virtualizer, };
36
+ export type { ICallStaffRequest, PreventZoomConfig };
@@ -101,6 +101,7 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
101
101
  new_price: number;
102
102
  openApiKey?: any;
103
103
  show_recommendations: boolean;
104
+ adult?: boolean | undefined;
104
105
  } | null;
105
106
  currentModifier: {
106
107
  id: string;
@@ -353,6 +354,7 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
353
354
  new_price: number;
354
355
  openApiKey?: any;
355
356
  show_recommendations: boolean;
357
+ adult?: boolean | undefined;
356
358
  }[];
357
359
  plusButtonsRefs: HTMLElement[];
358
360
  modalCount: number;
@@ -473,6 +475,7 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
473
475
  new_price: number;
474
476
  openApiKey?: any;
475
477
  show_recommendations: boolean;
478
+ adult?: boolean | undefined;
476
479
  } | null;
477
480
  currentModifier: {
478
481
  id: string;
@@ -725,6 +728,7 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
725
728
  new_price: number;
726
729
  openApiKey?: any;
727
730
  show_recommendations: boolean;
731
+ adult?: boolean | undefined;
728
732
  }[];
729
733
  plusButtonsRefs: HTMLElement[];
730
734
  modalCount: number;
@@ -779,7 +783,9 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
779
783
  };
780
784
  }>;
781
785
  dataUpSale: Ref<any, any>;
786
+ productCards: Ref<any[], any[]>;
782
787
  isAddToCard: Ref<boolean, boolean>;
788
+ setProduct: (products: any) => void;
783
789
  summModifierAmount: (groupIndex: number) => number;
784
790
  setAddedProducts: (product: IProduct) => void;
785
791
  setCurrentCard: (card: any) => void;
@@ -804,7 +810,7 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
804
810
  isAnimationFly: boolean;
805
811
  textErrorRequaired: string;
806
812
  };
807
- }, "stateCard" | "isOpenWindow" | "isUpSale" | "dataUpSale" | "isAddToCard">, Pick<{
813
+ }, "stateCard" | "isOpenWindow" | "isUpSale" | "dataUpSale" | "productCards" | "isAddToCard">, Pick<{
808
814
  stateCard: Ref<{
809
815
  openCard: {
810
816
  id: string;
@@ -904,6 +910,7 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
904
910
  new_price: number;
905
911
  openApiKey?: any;
906
912
  show_recommendations: boolean;
913
+ adult?: boolean | undefined;
907
914
  } | null;
908
915
  currentModifier: {
909
916
  id: string;
@@ -1156,6 +1163,7 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
1156
1163
  new_price: number;
1157
1164
  openApiKey?: any;
1158
1165
  show_recommendations: boolean;
1166
+ adult?: boolean | undefined;
1159
1167
  }[];
1160
1168
  plusButtonsRefs: HTMLElement[];
1161
1169
  modalCount: number;
@@ -1276,6 +1284,7 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
1276
1284
  new_price: number;
1277
1285
  openApiKey?: any;
1278
1286
  show_recommendations: boolean;
1287
+ adult?: boolean | undefined;
1279
1288
  } | null;
1280
1289
  currentModifier: {
1281
1290
  id: string;
@@ -1528,6 +1537,7 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
1528
1537
  new_price: number;
1529
1538
  openApiKey?: any;
1530
1539
  show_recommendations: boolean;
1540
+ adult?: boolean | undefined;
1531
1541
  }[];
1532
1542
  plusButtonsRefs: HTMLElement[];
1533
1543
  modalCount: number;
@@ -1582,7 +1592,9 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
1582
1592
  };
1583
1593
  }>;
1584
1594
  dataUpSale: Ref<any, any>;
1595
+ productCards: Ref<any[], any[]>;
1585
1596
  isAddToCard: Ref<boolean, boolean>;
1597
+ setProduct: (products: any) => void;
1586
1598
  summModifierAmount: (groupIndex: number) => number;
1587
1599
  setAddedProducts: (product: IProduct) => void;
1588
1600
  setCurrentCard: (card: any) => void;
@@ -1707,6 +1719,7 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
1707
1719
  new_price: number;
1708
1720
  openApiKey?: any;
1709
1721
  show_recommendations: boolean;
1722
+ adult?: boolean | undefined;
1710
1723
  } | null;
1711
1724
  currentModifier: {
1712
1725
  id: string;
@@ -1959,6 +1972,7 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
1959
1972
  new_price: number;
1960
1973
  openApiKey?: any;
1961
1974
  show_recommendations: boolean;
1975
+ adult?: boolean | undefined;
1962
1976
  }[];
1963
1977
  plusButtonsRefs: HTMLElement[];
1964
1978
  modalCount: number;
@@ -2079,6 +2093,7 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
2079
2093
  new_price: number;
2080
2094
  openApiKey?: any;
2081
2095
  show_recommendations: boolean;
2096
+ adult?: boolean | undefined;
2082
2097
  } | null;
2083
2098
  currentModifier: {
2084
2099
  id: string;
@@ -2331,6 +2346,7 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
2331
2346
  new_price: number;
2332
2347
  openApiKey?: any;
2333
2348
  show_recommendations: boolean;
2349
+ adult?: boolean | undefined;
2334
2350
  }[];
2335
2351
  plusButtonsRefs: HTMLElement[];
2336
2352
  modalCount: number;
@@ -2385,7 +2401,9 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
2385
2401
  };
2386
2402
  }>;
2387
2403
  dataUpSale: Ref<any, any>;
2404
+ productCards: Ref<any[], any[]>;
2388
2405
  isAddToCard: Ref<boolean, boolean>;
2406
+ setProduct: (products: any) => void;
2389
2407
  summModifierAmount: (groupIndex: number) => number;
2390
2408
  setAddedProducts: (product: IProduct) => void;
2391
2409
  setCurrentCard: (card: any) => void;
@@ -2410,4 +2428,4 @@ export declare const useCardStore: StoreDefinition<"cardLib", Pick<{
2410
2428
  isAnimationFly: boolean;
2411
2429
  textErrorRequaired: string;
2412
2430
  };
2413
- }, "plusAmount" | "minusAmount" | "summModifierAmount" | "setAddedProducts" | "setCurrentCard" | "toggleNotRequire" | "modifierSelect" | "defaultAmountModifiers" | "reset">>;
2431
+ }, "plusAmount" | "minusAmount" | "setProduct" | "summModifierAmount" | "setAddedProducts" | "setCurrentCard" | "toggleNotRequire" | "modifierSelect" | "defaultAmountModifiers" | "reset">>;
@@ -100,6 +100,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
100
100
  new_price: number;
101
101
  openApiKey?: any;
102
102
  show_recommendations: boolean;
103
+ adult?: boolean | undefined;
103
104
  }[], IProduct[] | {
104
105
  id: string;
105
106
  idSystem: string;
@@ -198,6 +199,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
198
199
  new_price: number;
199
200
  openApiKey?: any;
200
201
  show_recommendations: boolean;
202
+ adult?: boolean | undefined;
201
203
  }[]>;
202
204
  activeScrolling_lib: Ref<HTMLElement[], HTMLElement[]>;
203
205
  config_lib: Ref<any, any>;
@@ -219,6 +221,8 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
219
221
  kiosk_FirstTimeout: Ref<any, any>;
220
222
  is_OpenLoyal: Ref<boolean, boolean>;
221
223
  profile: Ref<any, any>;
224
+ is_18_above_content: Ref<boolean, boolean>;
225
+ is18Allowed: Ref<boolean, boolean>;
222
226
  removeFromLocalStorage: (elements: any[]) => void;
223
227
  setKioskTimeout: <H extends number | string>(timeout: H) => void;
224
228
  setBonus: (value: number) => void;
@@ -229,7 +233,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
229
233
  loadCart: () => void;
230
234
  deleteItemFromCart: (idSystem?: string) => void;
231
235
  makeProductFullyReactive: (item: any) => IProduct;
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<{
236
+ }, "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" | "is_18_above_content" | "is18Allowed">, Pick<{
233
237
  cartProducts_lib: Ref<{
234
238
  id: string;
235
239
  idSystem: string;
@@ -328,6 +332,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
328
332
  new_price: number;
329
333
  openApiKey?: any;
330
334
  show_recommendations: boolean;
335
+ adult?: boolean | undefined;
331
336
  }[], IProduct[] | {
332
337
  id: string;
333
338
  idSystem: string;
@@ -426,6 +431,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
426
431
  new_price: number;
427
432
  openApiKey?: any;
428
433
  show_recommendations: boolean;
434
+ adult?: boolean | undefined;
429
435
  }[]>;
430
436
  activeScrolling_lib: Ref<HTMLElement[], HTMLElement[]>;
431
437
  config_lib: Ref<any, any>;
@@ -447,6 +453,8 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
447
453
  kiosk_FirstTimeout: Ref<any, any>;
448
454
  is_OpenLoyal: Ref<boolean, boolean>;
449
455
  profile: Ref<any, any>;
456
+ is_18_above_content: Ref<boolean, boolean>;
457
+ is18Allowed: Ref<boolean, boolean>;
450
458
  removeFromLocalStorage: (elements: any[]) => void;
451
459
  setKioskTimeout: <H extends number | string>(timeout: H) => void;
452
460
  setBonus: (value: number) => void;
@@ -556,6 +564,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
556
564
  new_price: number;
557
565
  openApiKey?: any;
558
566
  show_recommendations: boolean;
567
+ adult?: boolean | undefined;
559
568
  }[], IProduct[] | {
560
569
  id: string;
561
570
  idSystem: string;
@@ -654,6 +663,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
654
663
  new_price: number;
655
664
  openApiKey?: any;
656
665
  show_recommendations: boolean;
666
+ adult?: boolean | undefined;
657
667
  }[]>;
658
668
  activeScrolling_lib: Ref<HTMLElement[], HTMLElement[]>;
659
669
  config_lib: Ref<any, any>;
@@ -675,6 +685,8 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
675
685
  kiosk_FirstTimeout: Ref<any, any>;
676
686
  is_OpenLoyal: Ref<boolean, boolean>;
677
687
  profile: Ref<any, any>;
688
+ is_18_above_content: Ref<boolean, boolean>;
689
+ is18Allowed: Ref<boolean, boolean>;
678
690
  removeFromLocalStorage: (elements: any[]) => void;
679
691
  setKioskTimeout: <H extends number | string>(timeout: H) => void;
680
692
  setBonus: (value: number) => void;
@@ -29,10 +29,14 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
29
29
  background: string;
30
30
  backgroundColor: string;
31
31
  } | null;
32
+ kiosk_inactivity_timeout: number | null;
32
33
  kiosk_show_loyalty_card_button: boolean | null;
33
34
  kiosk_show_loyalty_phone_input_button: boolean | null;
34
35
  show_order_comment: boolean | null;
35
36
  show_nutrition_in_cart: boolean | null;
37
+ apply_custom_size_picker_fonts: boolean | null;
38
+ size_picker_unselected_font_size: number | null;
39
+ size_picker_selected_font_size: number | null;
36
40
  }, ITheme | {
37
41
  id: string;
38
42
  created_at: string | null;
@@ -60,10 +64,14 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
60
64
  background: string;
61
65
  backgroundColor: string;
62
66
  } | null;
67
+ kiosk_inactivity_timeout: number | null;
63
68
  kiosk_show_loyalty_card_button: boolean | null;
64
69
  kiosk_show_loyalty_phone_input_button: boolean | null;
65
70
  show_order_comment: boolean | null;
66
71
  show_nutrition_in_cart: boolean | null;
72
+ apply_custom_size_picker_fonts: boolean | null;
73
+ size_picker_unselected_font_size: number | null;
74
+ size_picker_selected_font_size: number | null;
67
75
  }>;
68
76
  updateColor: (data: ITheme) => {
69
77
  id: string;
@@ -92,10 +100,14 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
92
100
  background: string;
93
101
  backgroundColor: string;
94
102
  } | null;
103
+ kiosk_inactivity_timeout: number | null;
95
104
  kiosk_show_loyalty_card_button: boolean | null;
96
105
  kiosk_show_loyalty_phone_input_button: boolean | null;
97
106
  show_order_comment: boolean | null;
98
107
  show_nutrition_in_cart: boolean | null;
108
+ apply_custom_size_picker_fonts: boolean | null;
109
+ size_picker_unselected_font_size: number | null;
110
+ size_picker_selected_font_size: number | null;
99
111
  } | undefined;
100
112
  }, "itemThemes">, Pick<{
101
113
  itemThemes: Ref<{
@@ -125,10 +137,14 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
125
137
  background: string;
126
138
  backgroundColor: string;
127
139
  } | null;
140
+ kiosk_inactivity_timeout: number | null;
128
141
  kiosk_show_loyalty_card_button: boolean | null;
129
142
  kiosk_show_loyalty_phone_input_button: boolean | null;
130
143
  show_order_comment: boolean | null;
131
144
  show_nutrition_in_cart: boolean | null;
145
+ apply_custom_size_picker_fonts: boolean | null;
146
+ size_picker_unselected_font_size: number | null;
147
+ size_picker_selected_font_size: number | null;
132
148
  }, ITheme | {
133
149
  id: string;
134
150
  created_at: string | null;
@@ -156,10 +172,14 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
156
172
  background: string;
157
173
  backgroundColor: string;
158
174
  } | null;
175
+ kiosk_inactivity_timeout: number | null;
159
176
  kiosk_show_loyalty_card_button: boolean | null;
160
177
  kiosk_show_loyalty_phone_input_button: boolean | null;
161
178
  show_order_comment: boolean | null;
162
179
  show_nutrition_in_cart: boolean | null;
180
+ apply_custom_size_picker_fonts: boolean | null;
181
+ size_picker_unselected_font_size: number | null;
182
+ size_picker_selected_font_size: number | null;
163
183
  }>;
164
184
  updateColor: (data: ITheme) => {
165
185
  id: string;
@@ -188,10 +208,14 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
188
208
  background: string;
189
209
  backgroundColor: string;
190
210
  } | null;
211
+ kiosk_inactivity_timeout: number | null;
191
212
  kiosk_show_loyalty_card_button: boolean | null;
192
213
  kiosk_show_loyalty_phone_input_button: boolean | null;
193
214
  show_order_comment: boolean | null;
194
215
  show_nutrition_in_cart: boolean | null;
216
+ apply_custom_size_picker_fonts: boolean | null;
217
+ size_picker_unselected_font_size: number | null;
218
+ size_picker_selected_font_size: number | null;
195
219
  } | undefined;
196
220
  }, never>, Pick<{
197
221
  itemThemes: Ref<{
@@ -221,10 +245,14 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
221
245
  background: string;
222
246
  backgroundColor: string;
223
247
  } | null;
248
+ kiosk_inactivity_timeout: number | null;
224
249
  kiosk_show_loyalty_card_button: boolean | null;
225
250
  kiosk_show_loyalty_phone_input_button: boolean | null;
226
251
  show_order_comment: boolean | null;
227
252
  show_nutrition_in_cart: boolean | null;
253
+ apply_custom_size_picker_fonts: boolean | null;
254
+ size_picker_unselected_font_size: number | null;
255
+ size_picker_selected_font_size: number | null;
228
256
  }, ITheme | {
229
257
  id: string;
230
258
  created_at: string | null;
@@ -252,10 +280,14 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
252
280
  background: string;
253
281
  backgroundColor: string;
254
282
  } | null;
283
+ kiosk_inactivity_timeout: number | null;
255
284
  kiosk_show_loyalty_card_button: boolean | null;
256
285
  kiosk_show_loyalty_phone_input_button: boolean | null;
257
286
  show_order_comment: boolean | null;
258
287
  show_nutrition_in_cart: boolean | null;
288
+ apply_custom_size_picker_fonts: boolean | null;
289
+ size_picker_unselected_font_size: number | null;
290
+ size_picker_selected_font_size: number | null;
259
291
  }>;
260
292
  updateColor: (data: ITheme) => {
261
293
  id: string;
@@ -284,9 +316,13 @@ export declare const useThemeStore: StoreDefinition<"themeLib", Pick<{
284
316
  background: string;
285
317
  backgroundColor: string;
286
318
  } | null;
319
+ kiosk_inactivity_timeout: number | null;
287
320
  kiosk_show_loyalty_card_button: boolean | null;
288
321
  kiosk_show_loyalty_phone_input_button: boolean | null;
289
322
  show_order_comment: boolean | null;
290
323
  show_nutrition_in_cart: boolean | null;
324
+ apply_custom_size_picker_fonts: boolean | null;
325
+ size_picker_unselected_font_size: number | null;
326
+ size_picker_selected_font_size: number | null;
291
327
  } | undefined;
292
328
  }, "updateColor">>;
@@ -24,6 +24,7 @@ export interface IProduct {
24
24
  new_price: number;
25
25
  openApiKey?: any;
26
26
  show_recommendations: boolean;
27
+ adult?: boolean;
27
28
  }
28
29
  export interface IUpsell {
29
30
  id: string;
@@ -6,6 +6,7 @@ export interface IGroup {
6
6
  tags: [];
7
7
  image_link: null;
8
8
  video_link: null;
9
+ adult?: boolean;
9
10
  }
10
11
  export interface IProductMain {
11
12
  id: string;
@@ -22,10 +22,14 @@ export interface ITheme {
22
22
  kiosk_preloader: string | null;
23
23
  organization: string;
24
24
  gradientStyle: IGradient | null;
25
+ kiosk_inactivity_timeout: number | null;
25
26
  kiosk_show_loyalty_card_button: boolean | null;
26
27
  kiosk_show_loyalty_phone_input_button: boolean | null;
27
28
  show_order_comment: boolean | null;
28
29
  show_nutrition_in_cart: boolean | null;
30
+ apply_custom_size_picker_fonts: boolean | null;
31
+ size_picker_unselected_font_size: number | null;
32
+ size_picker_selected_font_size: number | null;
29
33
  }
30
34
  interface IGradient {
31
35
  background: string;
@@ -0,0 +1,11 @@
1
+ export interface PreventZoomConfig {
2
+ pinch: boolean;
3
+ doubleTap: boolean;
4
+ wheel: boolean;
5
+ buttons: string[];
6
+ }
7
+ /**
8
+ * Prevent browser zooming
9
+ * @param {PreventZoomConfig} options
10
+ */
11
+ export declare const preventZoom: (options?: Partial<PreventZoomConfig>) => 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": "8.2.2",
4
+ "version": "8.2.4",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -61,6 +61,7 @@
61
61
  "pinia": "^3.0.3",
62
62
  "qrious": "^4.0.2",
63
63
  "tinycolor2": "^1.6.0",
64
+ "virtua": "^0.48.2",
64
65
  "vue-router": "^4.5.1"
65
66
  }
66
67
  }