@gomusdev/web-components 1.29.0 → 1.31.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/ticketSelection/subcomponents/tickets/TicketsEmpty.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/TicketsEmpty.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/utils.svelte.d.ts +1 -1
- package/dist-js/factories/EventFactories.d.ts +69 -0
- package/dist-js/factories/TicketFactories.d.ts +130 -0
- package/dist-js/gomus-webcomponents.css +11 -19
- package/dist-js/gomus-webcomponents.iife.js +194 -122
- package/dist-js/gomus-webcomponents.js +194 -122
- package/dist-js/lib/models/cart/CartItem.d.ts +2 -2
- package/dist-js/lib/models/scalePrice/UIScaledPrice.svelte.d.ts +2 -17
- package/dist-js/lib/models/ticket/UITicket.svelte.d.ts +1 -0
- package/dist-js/mocks/ScalingPricesMocks.d.ts +11 -0
- package/dist-js/mocks/TicketMocks.d.ts +2 -0
- package/dist-js/mocks/mocks.d.ts +2 -34
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/utils.svelte.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TicketSelectionDetails } from '../../../TicketSelectionDetails.svelte.ts';
|
|
2
2
|
import { Product } from '../../../../../lib/models/cart/types.ts';
|
|
3
|
-
export declare function selectedTime(product: Product, tsd: TicketSelectionDetails):
|
|
3
|
+
export declare function selectedTime(product: Product, tsd: TicketSelectionDetails): string | import('@internationalized/date').CalendarDate | undefined;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { EventDetails } from '@gomus/types';
|
|
2
|
+
export declare const EventFactories: {
|
|
3
|
+
event(options?: Partial<ReturnType<typeof defaultEvent>>): EventDetails;
|
|
4
|
+
};
|
|
5
|
+
declare function defaultEvent(): {
|
|
6
|
+
id: number;
|
|
7
|
+
description: string;
|
|
8
|
+
museum_id: number;
|
|
9
|
+
exhibition_id: number;
|
|
10
|
+
foreign_id: string;
|
|
11
|
+
title: string;
|
|
12
|
+
sub_title: string;
|
|
13
|
+
created_at: string;
|
|
14
|
+
updated_at: string;
|
|
15
|
+
featured: boolean;
|
|
16
|
+
bookable: boolean;
|
|
17
|
+
registerable: boolean;
|
|
18
|
+
picture: {
|
|
19
|
+
title: string;
|
|
20
|
+
description: string;
|
|
21
|
+
copyright_info: string;
|
|
22
|
+
original: string;
|
|
23
|
+
teaser: string;
|
|
24
|
+
teaser_3x2: string;
|
|
25
|
+
preview: string;
|
|
26
|
+
preview_3x2: string;
|
|
27
|
+
detail: string;
|
|
28
|
+
detail_3x2: string;
|
|
29
|
+
article: string;
|
|
30
|
+
article_3x2: string;
|
|
31
|
+
thumbnail: string;
|
|
32
|
+
};
|
|
33
|
+
duration: number;
|
|
34
|
+
location: {
|
|
35
|
+
id: number;
|
|
36
|
+
name: string;
|
|
37
|
+
city: string;
|
|
38
|
+
country: string;
|
|
39
|
+
street: string;
|
|
40
|
+
zip: string;
|
|
41
|
+
latitude: string;
|
|
42
|
+
longitude: string;
|
|
43
|
+
};
|
|
44
|
+
age_groups: never[];
|
|
45
|
+
audiences: never[];
|
|
46
|
+
catch_words: never[];
|
|
47
|
+
disablements: never[];
|
|
48
|
+
grades: never[];
|
|
49
|
+
proposal_categories: never[];
|
|
50
|
+
languages: never[];
|
|
51
|
+
category: {
|
|
52
|
+
id: number;
|
|
53
|
+
name: string;
|
|
54
|
+
filtername: string;
|
|
55
|
+
};
|
|
56
|
+
upcoming_bookings_start_times: never[];
|
|
57
|
+
tickets: never[];
|
|
58
|
+
quotas: never[];
|
|
59
|
+
ticket_sales_in_shop: boolean;
|
|
60
|
+
dates: {
|
|
61
|
+
first: string;
|
|
62
|
+
last: string;
|
|
63
|
+
count: number;
|
|
64
|
+
};
|
|
65
|
+
sellabilities: never[];
|
|
66
|
+
documents: never[];
|
|
67
|
+
content: {};
|
|
68
|
+
};
|
|
69
|
+
export {};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { ProductType } from '../lib/models/cart/types.ts';
|
|
2
|
+
export declare const TicketFactories: {
|
|
3
|
+
timeslot(options?: Partial<ReturnType<typeof defaultTicket>>): {
|
|
4
|
+
product_type: ProductType;
|
|
5
|
+
id: number;
|
|
6
|
+
ticket_type: "time_slot";
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
selectedTime: string;
|
|
10
|
+
museum_ids: never[];
|
|
11
|
+
exhibition_ids: never[];
|
|
12
|
+
quota_ids: never[];
|
|
13
|
+
first_entry: number;
|
|
14
|
+
last_entry: number;
|
|
15
|
+
personalizeable: boolean;
|
|
16
|
+
min_persons: number;
|
|
17
|
+
max_persons: number;
|
|
18
|
+
bookable: boolean;
|
|
19
|
+
price_cents: number;
|
|
20
|
+
discount: number;
|
|
21
|
+
vat_pct: number;
|
|
22
|
+
tax_included: boolean;
|
|
23
|
+
entry_duration: number;
|
|
24
|
+
attendees: boolean;
|
|
25
|
+
identification: string;
|
|
26
|
+
free_timing: boolean;
|
|
27
|
+
is_collective: boolean;
|
|
28
|
+
is_upgrade: boolean;
|
|
29
|
+
is_mantle: boolean;
|
|
30
|
+
sub_ticket_ids: never[];
|
|
31
|
+
sub_tickets: {};
|
|
32
|
+
is_sub_ticket: boolean;
|
|
33
|
+
created_at: string;
|
|
34
|
+
updated_at: string;
|
|
35
|
+
cash_point_order: number;
|
|
36
|
+
shop_order: number;
|
|
37
|
+
capacities: {};
|
|
38
|
+
total_capacities: {};
|
|
39
|
+
max_capacity: number;
|
|
40
|
+
max_total_capacity: number;
|
|
41
|
+
shipped_with_merchandise_id: null;
|
|
42
|
+
restricted_shop_account: boolean;
|
|
43
|
+
dynamic_prices: null;
|
|
44
|
+
};
|
|
45
|
+
day(options?: Partial<ReturnType<typeof defaultTicket>>): {
|
|
46
|
+
product_type: ProductType;
|
|
47
|
+
id: number;
|
|
48
|
+
ticket_type: "time_slot" | "normal";
|
|
49
|
+
title: string;
|
|
50
|
+
description: string;
|
|
51
|
+
selectedTime: string;
|
|
52
|
+
museum_ids: never[];
|
|
53
|
+
exhibition_ids: never[];
|
|
54
|
+
quota_ids: never[];
|
|
55
|
+
first_entry: number;
|
|
56
|
+
last_entry: number;
|
|
57
|
+
personalizeable: boolean;
|
|
58
|
+
min_persons: number;
|
|
59
|
+
max_persons: number;
|
|
60
|
+
bookable: boolean;
|
|
61
|
+
price_cents: number;
|
|
62
|
+
discount: number;
|
|
63
|
+
vat_pct: number;
|
|
64
|
+
tax_included: boolean;
|
|
65
|
+
entry_duration: number;
|
|
66
|
+
attendees: boolean;
|
|
67
|
+
identification: string;
|
|
68
|
+
free_timing: boolean;
|
|
69
|
+
is_collective: boolean;
|
|
70
|
+
is_upgrade: boolean;
|
|
71
|
+
is_mantle: boolean;
|
|
72
|
+
sub_ticket_ids: never[];
|
|
73
|
+
sub_tickets: {};
|
|
74
|
+
is_sub_ticket: boolean;
|
|
75
|
+
created_at: string;
|
|
76
|
+
updated_at: string;
|
|
77
|
+
cash_point_order: number;
|
|
78
|
+
shop_order: number;
|
|
79
|
+
capacities: {};
|
|
80
|
+
total_capacities: {};
|
|
81
|
+
max_capacity: number;
|
|
82
|
+
max_total_capacity: number;
|
|
83
|
+
shipped_with_merchandise_id: null;
|
|
84
|
+
restricted_shop_account: boolean;
|
|
85
|
+
dynamic_prices: null;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
declare function defaultTicket(): {
|
|
89
|
+
product_type: ProductType;
|
|
90
|
+
id: number;
|
|
91
|
+
ticket_type: "time_slot";
|
|
92
|
+
title: string;
|
|
93
|
+
description: string;
|
|
94
|
+
selectedTime: string;
|
|
95
|
+
museum_ids: never[];
|
|
96
|
+
exhibition_ids: never[];
|
|
97
|
+
quota_ids: never[];
|
|
98
|
+
first_entry: number;
|
|
99
|
+
last_entry: number;
|
|
100
|
+
personalizeable: boolean;
|
|
101
|
+
min_persons: number;
|
|
102
|
+
max_persons: number;
|
|
103
|
+
bookable: boolean;
|
|
104
|
+
price_cents: number;
|
|
105
|
+
discount: number;
|
|
106
|
+
vat_pct: number;
|
|
107
|
+
tax_included: boolean;
|
|
108
|
+
entry_duration: number;
|
|
109
|
+
attendees: boolean;
|
|
110
|
+
identification: string;
|
|
111
|
+
free_timing: boolean;
|
|
112
|
+
is_collective: boolean;
|
|
113
|
+
is_upgrade: boolean;
|
|
114
|
+
is_mantle: boolean;
|
|
115
|
+
sub_ticket_ids: never[];
|
|
116
|
+
sub_tickets: {};
|
|
117
|
+
is_sub_ticket: boolean;
|
|
118
|
+
created_at: string;
|
|
119
|
+
updated_at: string;
|
|
120
|
+
cash_point_order: number;
|
|
121
|
+
shop_order: number;
|
|
122
|
+
capacities: {};
|
|
123
|
+
total_capacities: {};
|
|
124
|
+
max_capacity: number;
|
|
125
|
+
max_total_capacity: number;
|
|
126
|
+
shipped_with_merchandise_id: null;
|
|
127
|
+
restricted_shop_account: boolean;
|
|
128
|
+
dynamic_prices: null;
|
|
129
|
+
};
|
|
130
|
+
export {};
|
|
@@ -962,11 +962,6 @@ go-timeslots > ul label {
|
|
|
962
962
|
|
|
963
963
|
/* Available timeslot */
|
|
964
964
|
|
|
965
|
-
go-timeslots > ul .available {
|
|
966
|
-
background-color: #fff;
|
|
967
|
-
color: #333;
|
|
968
|
-
}
|
|
969
|
-
|
|
970
965
|
go-timeslots > ul input[type='radio'] {
|
|
971
966
|
display: none; /* Hide the radio button */
|
|
972
967
|
}
|
|
@@ -985,19 +980,16 @@ go-timeslots > ul label:has(input[type='radio']:checked) {
|
|
|
985
980
|
|
|
986
981
|
/* Finished (unavailable) timeslot */
|
|
987
982
|
|
|
988
|
-
go-timeslots > ul .
|
|
983
|
+
go-timeslots > ul .is-sold-out,go-timeslots > ul .is-disabled {
|
|
989
984
|
background-color: #f0f0f0;
|
|
990
985
|
color: #999;
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
go-timeslots > ul .finished input {
|
|
994
|
-
display: none;
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
go-timeslots > ul .finished {
|
|
998
986
|
pointer-events: none;
|
|
999
987
|
}
|
|
1000
988
|
|
|
989
|
+
go-timeslots > ul .is-sold-out input,go-timeslots > ul .is-disabled input {
|
|
990
|
+
display: none;
|
|
991
|
+
}
|
|
992
|
+
|
|
1001
993
|
/* Disabled radio button appearance */
|
|
1002
994
|
|
|
1003
995
|
go-timeslots > ul input:disabled + label {
|
|
@@ -1098,9 +1090,9 @@ go-tickets [data-testid='tickets'] > li > article[data-go-ticket] > ul > li {
|
|
|
1098
1090
|
/*// enable text truncation*/
|
|
1099
1091
|
min-width: 0;
|
|
1100
1092
|
/*// Optional: single-line truncation (comment out if you want wrapping)*/
|
|
1101
|
-
white-space:
|
|
1102
|
-
overflow: hidden
|
|
1103
|
-
text-overflow: ellipsis
|
|
1093
|
+
/*white-space: ;*/
|
|
1094
|
+
/*overflow: hidden;*/
|
|
1095
|
+
/*text-overflow: ellipsis;*/
|
|
1104
1096
|
}
|
|
1105
1097
|
|
|
1106
1098
|
go-tickets [data-testid='tickets'] > li > article[data-go-ticket] > ul [data-go-tickets-title] {
|
|
@@ -1190,9 +1182,9 @@ go-cart {
|
|
|
1190
1182
|
[data-go-cart-item] article > ul > li {
|
|
1191
1183
|
list-style: none;
|
|
1192
1184
|
min-width: 0;
|
|
1193
|
-
white-space: nowrap
|
|
1194
|
-
overflow: hidden
|
|
1195
|
-
text-overflow: ellipsis
|
|
1185
|
+
/*white-space: nowrap;*/
|
|
1186
|
+
/*overflow: hidden;*/
|
|
1187
|
+
/*text-overflow: ellipsis;*/
|
|
1196
1188
|
}
|
|
1197
1189
|
[data-go-cart-item] article > ul [data-go-cart-item-title] {
|
|
1198
1190
|
flex: 2;
|