@gomusdev/web-components 1.20.1 → 1.22.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/mocks/gomusTicketMocks.d.ts +107 -10
- package/dist-js/components/cart/mocks/testCart.d.ts +1 -1
- package/dist-js/components/link/Link.svelte.d.ts +1 -0
- package/dist-js/components/link/entry.d.ts +0 -0
- package/dist-js/components/ticketSelection/TicketSelectionDetails.svelte.d.ts +6 -7
- package/dist-js/components/ticketSelection/subcomponents/calendar/lib/calendar.svelte.d.ts +24 -8
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/segment/TicketSegment.svelte.d.ts +1 -767
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/segment/TicketSegmentDetails.svelte.d.ts +1027 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/utils.svelte.d.ts +2 -7
- package/dist-js/gomus-webcomponents.css +9 -2
- package/dist-js/gomus-webcomponents.iife.js +757 -482
- package/dist-js/gomus-webcomponents.js +757 -482
- package/dist-js/lib/helpers/context.svelte.d.ts +1 -0
- package/dist-js/lib/models/cart/CartEvents.svelte.d.ts +1 -0
- package/dist-js/lib/models/cart/CartItem.d.ts +37 -0
- package/dist-js/lib/models/cart/cart.svelte.d.ts +191 -0
- package/dist-js/lib/models/cart/localStorage.spec.d.ts +1 -0
- package/dist-js/lib/models/cart/localStorage.svelte.d.ts +46 -0
- package/dist-js/lib/models/cart/selectOptions.d.ts +10 -0
- package/dist-js/lib/models/cart/selectOptions.spec.d.ts +1 -0
- package/dist-js/lib/models/cart/types.d.ts +13 -0
- package/dist-js/lib/models/scalePrice/UIScaledPrice.spec.d.ts +1 -0
- package/dist-js/lib/models/scalePrice/UIScaledPrice.svelte.d.ts +51 -0
- package/dist-js/lib/models/ticket/UITicket.spec.d.ts +1 -0
- package/dist-js/lib/{gomusTicket.svelte.d.ts → models/ticket/UITicket.svelte.d.ts} +109 -11
- package/dist-js/lib/stores/shop.svelte.d.ts +41 -0
- package/dist-js/lib/vitest/msw/handlers.d.ts +1 -1
- package/dist-js/mocks/MSWMocks.d.ts +3 -0
- package/dist-js/mocks/ScalingPricesMocks.d.ts +24 -0
- package/dist-js/mocks/mocks.d.ts +1324 -695
- package/package.json +1 -1
- package/dist-js/components/cart/lib/CartEvents.svelte.d.ts +0 -1
- package/dist-js/components/cart/lib/CartItem.d.ts +0 -135
- package/dist-js/components/cart/lib/cart.svelte.d.ts +0 -616
- package/dist-js/components/cart/lib/localStorage.svelte.d.ts +0 -146
- /package/dist-js/components/{cart/lib/CartEvents.spec.d.ts → link/Link.spec.d.ts} +0 -0
- /package/dist-js/components/{cart/lib/cart.svelte.spec.d.ts → ticketSelection/subcomponents/tickets/subcomponents/segment/TicketSegment.spec.d.ts} +0 -0
- /package/dist-js/{components/cart/lib/localStorage.spec.d.ts → lib/models/cart/CartEvents.spec.d.ts} +0 -0
- /package/dist-js/lib/{gomusTicket.spec.d.ts → models/cart/cart.svelte.spec.d.ts} +0 -0
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { Cart } from './cart.svelte.ts';
|
|
2
|
-
import { OrderItemType } from './CartItem.ts';
|
|
3
|
-
export declare function updateLocalStorage(cart: Cart): string;
|
|
4
|
-
export declare function clearLocalStorage(): void;
|
|
5
|
-
export declare function loadFromLocalStorage(cart: Cart): {
|
|
6
|
-
type: OrderItemType;
|
|
7
|
-
item: {
|
|
8
|
-
type: "annual" | "timeslot" | "day";
|
|
9
|
-
shop_order: number;
|
|
10
|
-
max_capacity: number;
|
|
11
|
-
min_quantity: number;
|
|
12
|
-
max_quantity: number;
|
|
13
|
-
minAvailableCapacity: number;
|
|
14
|
-
selectedTime: string;
|
|
15
|
-
quantity: number;
|
|
16
|
-
id: number;
|
|
17
|
-
title: string;
|
|
18
|
-
ticket_type: "time_slot" | "annual" | "normal";
|
|
19
|
-
bookable: boolean;
|
|
20
|
-
museum_ids: number[];
|
|
21
|
-
exhibition_ids: number[];
|
|
22
|
-
price_cents: number;
|
|
23
|
-
discount: number;
|
|
24
|
-
vat_pct: number;
|
|
25
|
-
tax_included: boolean;
|
|
26
|
-
entry_duration: number | null;
|
|
27
|
-
min_persons: number;
|
|
28
|
-
max_persons: number;
|
|
29
|
-
quota_ids: number[];
|
|
30
|
-
first_entry: number;
|
|
31
|
-
last_entry: number;
|
|
32
|
-
personalizeable: boolean;
|
|
33
|
-
attendees: boolean | string;
|
|
34
|
-
identification: boolean | string;
|
|
35
|
-
free_timing: boolean;
|
|
36
|
-
is_collective: boolean;
|
|
37
|
-
is_upgrade: boolean;
|
|
38
|
-
is_mantle: boolean;
|
|
39
|
-
description: string | null;
|
|
40
|
-
sub_ticket_ids: number[];
|
|
41
|
-
sub_tickets: {
|
|
42
|
-
[key: string]: {
|
|
43
|
-
title?: string;
|
|
44
|
-
min_persons?: number;
|
|
45
|
-
max_persons?: number;
|
|
46
|
-
description?: string | null;
|
|
47
|
-
};
|
|
48
|
-
} | null;
|
|
49
|
-
is_sub_ticket: boolean;
|
|
50
|
-
created_at: string;
|
|
51
|
-
updated_at: string;
|
|
52
|
-
shipped_with_merchandise_id: number | null;
|
|
53
|
-
restricted_shop_account: boolean;
|
|
54
|
-
cash_point_order: number;
|
|
55
|
-
capacities: {
|
|
56
|
-
[key: string]: number;
|
|
57
|
-
};
|
|
58
|
-
total_capacities: {
|
|
59
|
-
[key: string]: number;
|
|
60
|
-
};
|
|
61
|
-
max_total_capacity: number;
|
|
62
|
-
dynamic_prices: {
|
|
63
|
-
[key: string]: number;
|
|
64
|
-
} | null;
|
|
65
|
-
uid: number;
|
|
66
|
-
} | {
|
|
67
|
-
type: "annual" | "timeslot" | "day";
|
|
68
|
-
shop_order: number;
|
|
69
|
-
max_capacity: number;
|
|
70
|
-
min_quantity: number;
|
|
71
|
-
max_quantity: number;
|
|
72
|
-
minAvailableCapacity: number;
|
|
73
|
-
selectedTime: string;
|
|
74
|
-
quantity: number;
|
|
75
|
-
id: number;
|
|
76
|
-
title: string;
|
|
77
|
-
ticket_type: "time_slot" | "annual" | "normal";
|
|
78
|
-
bookable: boolean;
|
|
79
|
-
museum_ids: number[];
|
|
80
|
-
exhibition_ids: number[];
|
|
81
|
-
price_cents: number;
|
|
82
|
-
discount: number;
|
|
83
|
-
vat_pct: number;
|
|
84
|
-
tax_included: boolean;
|
|
85
|
-
entry_duration: number | null;
|
|
86
|
-
min_persons: number;
|
|
87
|
-
max_persons: number;
|
|
88
|
-
quota_ids: number[];
|
|
89
|
-
first_entry: number;
|
|
90
|
-
last_entry: number;
|
|
91
|
-
personalizeable: boolean;
|
|
92
|
-
attendees: boolean | string;
|
|
93
|
-
identification: boolean | string;
|
|
94
|
-
free_timing: boolean;
|
|
95
|
-
is_collective: boolean;
|
|
96
|
-
is_upgrade: boolean;
|
|
97
|
-
is_mantle: boolean;
|
|
98
|
-
description: string | null;
|
|
99
|
-
sub_ticket_ids: number[];
|
|
100
|
-
sub_tickets: {
|
|
101
|
-
[key: string]: {
|
|
102
|
-
title?: string;
|
|
103
|
-
min_persons?: number;
|
|
104
|
-
max_persons?: number;
|
|
105
|
-
description?: string | null;
|
|
106
|
-
};
|
|
107
|
-
} | null;
|
|
108
|
-
is_sub_ticket: boolean;
|
|
109
|
-
created_at: string;
|
|
110
|
-
updated_at: string;
|
|
111
|
-
shipped_with_merchandise_id: number | null;
|
|
112
|
-
restricted_shop_account: boolean;
|
|
113
|
-
cash_point_order: number;
|
|
114
|
-
dynamic_prices: {
|
|
115
|
-
[key: string]: number;
|
|
116
|
-
} | null;
|
|
117
|
-
uid: number;
|
|
118
|
-
};
|
|
119
|
-
attributes: {
|
|
120
|
-
id: number;
|
|
121
|
-
time: string;
|
|
122
|
-
quantity: number;
|
|
123
|
-
shipped_with_merchandise_id?: number | null;
|
|
124
|
-
} | {
|
|
125
|
-
id: number;
|
|
126
|
-
time: string;
|
|
127
|
-
quantity: number;
|
|
128
|
-
shipped_with_merchandise_id?: number | null;
|
|
129
|
-
};
|
|
130
|
-
uuid: string;
|
|
131
|
-
price_cents: number;
|
|
132
|
-
price_formatted: string;
|
|
133
|
-
final_price_cents: number;
|
|
134
|
-
final_price_formatted: string;
|
|
135
|
-
total_price_cents: number;
|
|
136
|
-
total_price_formatted: string;
|
|
137
|
-
quantity: number;
|
|
138
|
-
time: string;
|
|
139
|
-
}[];
|
|
140
|
-
/**
|
|
141
|
-
* Synchronizes the given shopping cart with the local storage. The method ensures that the cart is loaded from local storage,
|
|
142
|
-
* updates are reflected in the local storage, and any external changes to the local storage are propagated to the cart.
|
|
143
|
-
*
|
|
144
|
-
* @return {void} This method does not return a value.
|
|
145
|
-
*/
|
|
146
|
-
export declare function syncCartToLocalStorage(cart: Cart): void;
|
|
File without changes
|
|
File without changes
|
/package/dist-js/{components/cart/lib/localStorage.spec.d.ts → lib/models/cart/CartEvents.spec.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|