@inno_user/inno_clouds_lib 8.2.5 → 8.3.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.
@@ -1,12 +1,13 @@
1
1
  import { IProduct } from '../types/iCardProduct';
2
2
  import { StoreDefinition } from 'pinia';
3
- import { Ref, ComputedRef } from 'vue';
3
+ import { Ref, WritableComputedRef, ComputedRef } from 'vue';
4
4
  export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
5
5
  cartProducts_lib: Ref<{
6
6
  id: string;
7
7
  idSystem: string;
8
8
  name: string;
9
9
  price: number;
10
+ total_new_price?: number | null | undefined;
10
11
  amount: number;
11
12
  description: string;
12
13
  image_link?: string | undefined;
@@ -25,6 +26,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
25
26
  id: string;
26
27
  name: string;
27
28
  price: number;
29
+ total_new_price?: number | null | undefined;
28
30
  amount: number;
29
31
  required: boolean;
30
32
  max_amount: number;
@@ -63,6 +65,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
63
65
  id: string;
64
66
  name: string;
65
67
  price: number;
68
+ total_new_price?: number | null | undefined;
66
69
  amount: number;
67
70
  required: boolean;
68
71
  max_amount: number;
@@ -110,6 +113,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
110
113
  idSystem: string;
111
114
  name: string;
112
115
  price: number;
116
+ total_new_price?: number | null | undefined;
113
117
  amount: number;
114
118
  description: string;
115
119
  image_link?: string | undefined;
@@ -128,6 +132,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
128
132
  id: string;
129
133
  name: string;
130
134
  price: number;
135
+ total_new_price?: number | null | undefined;
131
136
  amount: number;
132
137
  required: boolean;
133
138
  max_amount: number;
@@ -166,6 +171,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
166
171
  id: string;
167
172
  name: string;
168
173
  price: number;
174
+ total_new_price?: number | null | undefined;
169
175
  amount: number;
170
176
  required: boolean;
171
177
  max_amount: number;
@@ -211,7 +217,8 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
211
217
  }[]>;
212
218
  activeScrolling_lib: Ref<HTMLElement[], HTMLElement[]>;
213
219
  config_lib: Ref<any, any>;
214
- totalPrice_lib: ComputedRef<any>;
220
+ totalPrice_lib: WritableComputedRef<any, any>;
221
+ initialCartPrice_lib: ComputedRef<any>;
215
222
  is_notification_lib: Ref<boolean, boolean>;
216
223
  notificationData_lib: Ref<{
217
224
  textNotification: string;
@@ -247,6 +254,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
247
254
  idSystem: string;
248
255
  name: string;
249
256
  price: number;
257
+ total_new_price?: number | null | undefined;
250
258
  amount: number;
251
259
  description: string;
252
260
  image_link?: string | undefined;
@@ -265,6 +273,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
265
273
  id: string;
266
274
  name: string;
267
275
  price: number;
276
+ total_new_price?: number | null | undefined;
268
277
  amount: number;
269
278
  required: boolean;
270
279
  max_amount: number;
@@ -303,6 +312,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
303
312
  id: string;
304
313
  name: string;
305
314
  price: number;
315
+ total_new_price?: number | null | undefined;
306
316
  amount: number;
307
317
  required: boolean;
308
318
  max_amount: number;
@@ -350,6 +360,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
350
360
  idSystem: string;
351
361
  name: string;
352
362
  price: number;
363
+ total_new_price?: number | null | undefined;
353
364
  amount: number;
354
365
  description: string;
355
366
  image_link?: string | undefined;
@@ -368,6 +379,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
368
379
  id: string;
369
380
  name: string;
370
381
  price: number;
382
+ total_new_price?: number | null | undefined;
371
383
  amount: number;
372
384
  required: boolean;
373
385
  max_amount: number;
@@ -406,6 +418,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
406
418
  id: string;
407
419
  name: string;
408
420
  price: number;
421
+ total_new_price?: number | null | undefined;
409
422
  amount: number;
410
423
  required: boolean;
411
424
  max_amount: number;
@@ -451,7 +464,8 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
451
464
  }[]>;
452
465
  activeScrolling_lib: Ref<HTMLElement[], HTMLElement[]>;
453
466
  config_lib: Ref<any, any>;
454
- totalPrice_lib: ComputedRef<any>;
467
+ totalPrice_lib: WritableComputedRef<any, any>;
468
+ initialCartPrice_lib: ComputedRef<any>;
455
469
  is_notification_lib: Ref<boolean, boolean>;
456
470
  notificationData_lib: Ref<{
457
471
  textNotification: string;
@@ -481,12 +495,13 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
481
495
  loadCart: () => void;
482
496
  deleteItemFromCart: (idSystem?: string) => void;
483
497
  makeProductFullyReactive: (item: any) => IProduct;
484
- }, "totalPrice_lib">, Pick<{
498
+ }, "totalPrice_lib" | "initialCartPrice_lib">, Pick<{
485
499
  cartProducts_lib: Ref<{
486
500
  id: string;
487
501
  idSystem: string;
488
502
  name: string;
489
503
  price: number;
504
+ total_new_price?: number | null | undefined;
490
505
  amount: number;
491
506
  description: string;
492
507
  image_link?: string | undefined;
@@ -505,6 +520,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
505
520
  id: string;
506
521
  name: string;
507
522
  price: number;
523
+ total_new_price?: number | null | undefined;
508
524
  amount: number;
509
525
  required: boolean;
510
526
  max_amount: number;
@@ -543,6 +559,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
543
559
  id: string;
544
560
  name: string;
545
561
  price: number;
562
+ total_new_price?: number | null | undefined;
546
563
  amount: number;
547
564
  required: boolean;
548
565
  max_amount: number;
@@ -590,6 +607,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
590
607
  idSystem: string;
591
608
  name: string;
592
609
  price: number;
610
+ total_new_price?: number | null | undefined;
593
611
  amount: number;
594
612
  description: string;
595
613
  image_link?: string | undefined;
@@ -608,6 +626,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
608
626
  id: string;
609
627
  name: string;
610
628
  price: number;
629
+ total_new_price?: number | null | undefined;
611
630
  amount: number;
612
631
  required: boolean;
613
632
  max_amount: number;
@@ -646,6 +665,7 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
646
665
  id: string;
647
666
  name: string;
648
667
  price: number;
668
+ total_new_price?: number | null | undefined;
649
669
  amount: number;
650
670
  required: boolean;
651
671
  max_amount: number;
@@ -691,7 +711,8 @@ export declare const useMainStore: StoreDefinition<"mainLib", Pick<{
691
711
  }[]>;
692
712
  activeScrolling_lib: Ref<HTMLElement[], HTMLElement[]>;
693
713
  config_lib: Ref<any, any>;
694
- totalPrice_lib: ComputedRef<any>;
714
+ totalPrice_lib: WritableComputedRef<any, any>;
715
+ initialCartPrice_lib: ComputedRef<any>;
695
716
  is_notification_lib: Ref<boolean, boolean>;
696
717
  notificationData_lib: Ref<{
697
718
  textNotification: string;
@@ -0,0 +1,20 @@
1
+ import { Ref } from 'vue';
2
+ import { StoreDefinition } from 'pinia';
3
+ interface ModalState {
4
+ visible: boolean;
5
+ context?: unknown;
6
+ }
7
+ export declare const useModalStore: StoreDefinition<"modals", Pick<{
8
+ state: (modalName: string) => Ref<ModalState, ModalState>;
9
+ open: (modalName: string, context?: ModalState["context"]) => void;
10
+ close: (modalName: string) => void;
11
+ }, never>, Pick<{
12
+ state: (modalName: string) => Ref<ModalState, ModalState>;
13
+ open: (modalName: string, context?: ModalState["context"]) => void;
14
+ close: (modalName: string) => void;
15
+ }, never>, Pick<{
16
+ state: (modalName: string) => Ref<ModalState, ModalState>;
17
+ open: (modalName: string, context?: ModalState["context"]) => void;
18
+ close: (modalName: string) => void;
19
+ }, "state" | "close" | "open">>;
20
+ export {};
@@ -3,6 +3,7 @@ export interface IProduct {
3
3
  idSystem: string;
4
4
  name: string;
5
5
  price: number;
6
+ total_new_price?: number | null;
6
7
  amount: number;
7
8
  description: string;
8
9
  image_link?: string;
@@ -74,6 +75,7 @@ export interface ISelectModifiers {
74
75
  id: string;
75
76
  name: string;
76
77
  price: number;
78
+ total_new_price?: number | null;
77
79
  amount: number;
78
80
  required: boolean;
79
81
  max_amount: number;
@@ -2,12 +2,18 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
2
2
  type __VLS_Props = {
3
3
  textNotificationDefault: string;
4
4
  backgroundColor: string;
5
- visible: boolean;
6
5
  buttonAccept: any;
6
+ type?: boolean;
7
+ };
8
+ declare const __VLS_defaults: {
9
+ visible: boolean;
7
10
  };
8
- declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
11
+ type __VLS_PublicProps = {
12
+ "visible"?: typeof __VLS_defaults['visible'];
13
+ } & __VLS_Props;
14
+ declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
9
15
  "update:visible": (value: boolean) => any;
10
- }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
11
17
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
12
18
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
13
19
  export default _default;
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.5",
4
+ "version": "8.3.0",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"