@gomusdev/web-components 1.41.0 → 1.42.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-js/components/cart/components/itemTitles/Ticket.svelte.d.ts +1 -0
- package/dist-js/gomus-webcomponents.iife.js +312 -134
- package/dist-js/gomus-webcomponents.js +312 -134
- package/dist-js/lib/helpers/localStorage.d.ts +4 -0
- package/dist-js/lib/models/capacity/CapacityManager.d.ts +5 -6
- package/dist-js/lib/models/capacity/localStorage.d.ts +5 -0
- package/dist-js/lib/models/capacity/localStorage.spec.d.ts +1 -0
- package/dist-js/lib/stores/shop.svelte.d.ts +3 -17
- package/dist-js/workflowSpecs/cart-respects-capacity.spec.d.ts +1 -0
- package/package.json +1 -1
- /package/dist-js/components/cart/components/{items/Event.svelte.d.ts → Item.svelte.d.ts} +0 -0
- /package/dist-js/components/cart/components/{items/Ticket.svelte.d.ts → itemTitles/Event.svelte.d.ts} +0 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CapacityManager, DateID, Seats } from './CapacityManager.ts';
|
|
2
|
+
import { Quotas } from '@gomus/types';
|
|
3
|
+
export declare function saveCapacityToLocalStorage(allSeats: Record<DateID, Seats>, allQuotas: Quotas): void;
|
|
4
|
+
export declare function loadCapacityFromLocalStorage(manager: CapacityManager): void;
|
|
5
|
+
export declare function syncCapacityAcrossTabs(manager: CapacityManager): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -14,14 +14,7 @@ export declare class Shop {
|
|
|
14
14
|
constructor();
|
|
15
15
|
load(apiUrl: string, shopDomain: string, locale: string, type?: ShopKind): Promise<void>;
|
|
16
16
|
get capacityManager(): {
|
|
17
|
-
allSeats: Record<
|
|
18
|
-
min?: number;
|
|
19
|
-
max?: number;
|
|
20
|
-
booked?: number;
|
|
21
|
-
available?: number;
|
|
22
|
-
max_per_registration?: number | null;
|
|
23
|
-
overbook?: boolean;
|
|
24
|
-
}>;
|
|
17
|
+
allSeats: Record<import('../models/capacity/CapacityManager.ts').DateID, import('../models/capacity/CapacityManager.ts').Seats>;
|
|
25
18
|
allQuotas: import('@gomus/types').Quotas;
|
|
26
19
|
quotaManager: {
|
|
27
20
|
apiData: {
|
|
@@ -74,15 +67,8 @@ export declare class Shop {
|
|
|
74
67
|
totalCapacity: number;
|
|
75
68
|
}[];
|
|
76
69
|
};
|
|
77
|
-
addQuotas(quotas: import('@gomus/types').Quotas): void;
|
|
78
|
-
addSeats(dateId:
|
|
79
|
-
min?: number;
|
|
80
|
-
max?: number;
|
|
81
|
-
booked?: number;
|
|
82
|
-
available?: number;
|
|
83
|
-
max_per_registration?: number | null;
|
|
84
|
-
overbook?: boolean;
|
|
85
|
-
}): void;
|
|
70
|
+
addQuotas(quotas: import('@gomus/types').Quotas, saveToLocalStorage?: boolean): void;
|
|
71
|
+
addSeats(dateId: import('../models/capacity/CapacityManager.ts').DateID, seats: import('../models/capacity/CapacityManager.ts').Seats, saveToLocalStorage?: boolean): void;
|
|
86
72
|
capacityPolicy(item: import('../models/cart/types').CartItem): "quotas" | "unlimited" | "seats";
|
|
87
73
|
capacity(cart: Cart, item: import('../models/cart/types').CartItem, preCart: Cart): import('../models/capacity/types').Capacity;
|
|
88
74
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|