@gomusdev/web-components 1.8.6 → 1.10.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.
Files changed (18) hide show
  1. package/dist-js/components/annualTicketPersonalization/entry.d.ts +0 -0
  2. package/dist-js/components/annualTicketPersonalization/lib/PersonalizationDetails.svelte.d.ts +98 -0
  3. package/dist-js/components/annualTicketPersonalization/specs/AnnualTicketPersonalization.spec.d.ts +1 -0
  4. package/dist-js/components/annualTicketPersonalization/specs/AnnualTicketPersonalizationForm.spec.d.ts +1 -0
  5. package/dist-js/components/forms/ui/generic/DatePicker.svelte.d.ts +1 -0
  6. package/dist-js/components/ticketSelection/TicketSelectionDetails.svelte.d.ts +1 -1
  7. package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/segment/Body.svelte.d.ts +1 -0
  8. package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/segment/Sum.svelte.d.ts +1 -0
  9. package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/{TicketGroup.svelte.d.ts → segment/TicketSegment.svelte.d.ts} +7 -7
  10. package/dist-js/gomus-webcomponents.iife.js +21065 -8676
  11. package/dist-js/gomus-webcomponents.js +21044 -8655
  12. package/dist-js/lib/helpers/urls.d.ts +6 -0
  13. package/dist-js/lib/stores/shop.svelte.d.ts +73 -3
  14. package/dist-js/lib/vitest/msw/handlers.d.ts +79 -0
  15. package/dist-js/mocks/MSWMocks.d.ts +3 -0
  16. package/package.json +32 -37
  17. /package/dist-js/components/{ticketSelection/subcomponents/tickets/subcomponents/GroupBody.svelte.d.ts → annualTicketPersonalization/components/AnnualTicketPersonalization.svelte.d.ts} +0 -0
  18. /package/dist-js/components/{ticketSelection/subcomponents/tickets/subcomponents/GroupSum.svelte.d.ts → annualTicketPersonalization/components/AnnualTicketPersonalizationForm.svelte.d.ts} +0 -0
@@ -0,0 +1,98 @@
1
+ import { TicketSale } from '@gomus/types';
2
+ export declare class PersonalizationDetails {
3
+ token: string | undefined;
4
+ ticketSaleId?: number;
5
+ get order(): {
6
+ id: number;
7
+ token: string;
8
+ shipping_address_id: number;
9
+ customer: {
10
+ id: number;
11
+ name: string;
12
+ surname: string;
13
+ email: string;
14
+ customer_salutation_id: number | null;
15
+ personalization_token: string;
16
+ date_of_birth: string | null;
17
+ language_id: number | null;
18
+ addresses: {
19
+ id: number;
20
+ zip: string;
21
+ street: string;
22
+ country_id: number;
23
+ city: string;
24
+ }[];
25
+ };
26
+ ticket_sales: {
27
+ id: number;
28
+ start_at: string;
29
+ sent_at: string | null;
30
+ title: string;
31
+ description: string | null;
32
+ is_personalizable: boolean;
33
+ status: string;
34
+ photo_mandatory: string;
35
+ personalizations: {
36
+ id: number;
37
+ ready: boolean;
38
+ address_id: number | null;
39
+ dispatch_mode_id: number | null;
40
+ photo_url: string;
41
+ customer: {
42
+ id: number;
43
+ name: string;
44
+ surname: string;
45
+ email: string;
46
+ customer_salutation_id: number | null;
47
+ personalization_token: string;
48
+ date_of_birth: string | null;
49
+ language_id: number | null;
50
+ addresses: {
51
+ id: number;
52
+ zip: string;
53
+ street: string;
54
+ country_id: number;
55
+ city: string;
56
+ }[];
57
+ } | null;
58
+ }[];
59
+ }[];
60
+ } | undefined;
61
+ get ticketSale(): {
62
+ id: number;
63
+ start_at: string;
64
+ sent_at: string | null;
65
+ title: string;
66
+ description: string | null;
67
+ is_personalizable: boolean;
68
+ status: string;
69
+ photo_mandatory: string;
70
+ personalizations: {
71
+ id: number;
72
+ ready: boolean;
73
+ address_id: number | null;
74
+ dispatch_mode_id: number | null;
75
+ photo_url: string;
76
+ customer: {
77
+ id: number;
78
+ name: string;
79
+ surname: string;
80
+ email: string;
81
+ customer_salutation_id: number | null;
82
+ personalization_token: string;
83
+ date_of_birth: string | null;
84
+ language_id: number | null;
85
+ addresses: {
86
+ id: number;
87
+ zip: string;
88
+ street: string;
89
+ country_id: number;
90
+ city: string;
91
+ }[];
92
+ } | null;
93
+ }[];
94
+ } | undefined;
95
+ goToPersonalization(ticketSale: TicketSale): any;
96
+ }
97
+ export declare const setPersonalizationDetails: (host: HTMLElement, details: PersonalizationDetails) => void;
98
+ export declare const getPersonalizationDetails: (host: HTMLElement) => PersonalizationDetails | undefined;
@@ -0,0 +1 @@
1
+ export { SvelteComponent as default } from 'svelte';
@@ -1,5 +1,5 @@
1
1
  import { Cart } from '../cart/lib/cart.svelte.ts';
2
- import { TicketGroupDetails } from './subcomponents/tickets/subcomponents/TicketGroup.svelte.ts';
2
+ import { TicketGroupDetails } from './subcomponents/tickets/subcomponents/segment/TicketSegment.svelte.ts';
3
3
  import { CalendarDate } from '@internationalized/date';
4
4
  export type TicketSelectionMode = 'ticket' | 'event' | 'tour';
5
5
  export declare const validTicketSelectionFilters: readonly ["timeslot", "day", "annual"];
@@ -0,0 +1 @@
1
+ export { SvelteComponent as default } from 'svelte';
@@ -0,0 +1 @@
1
+ export { SvelteComponent as default } from 'svelte';
@@ -1,11 +1,11 @@
1
- import { TicketSelectionDetails } from '../../../TicketSelectionDetails.svelte.ts';
2
- import { UITicket } from '../../../../../lib/gomusTicket.svelte.ts';
1
+ import { TicketSelectionDetails } from '../../../../TicketSelectionDetails.svelte.ts';
2
+ import { UITicket } from '../../../../../../lib/gomusTicket.svelte.ts';
3
3
  export type TicketGroupType = 'timeslot' | 'annual' | 'custom' | 'day';
4
4
  export declare class TicketGroupDetails {
5
5
  tickets: UITicket[];
6
6
  preCart: {
7
7
  items: {
8
- type: import('../../../../cart/lib/CartItem').OrderItemType;
8
+ type: import('../../../../../cart/lib/CartItem').OrderItemType;
9
9
  item: {
10
10
  type: "annual" | "timeslot" | "day";
11
11
  shop_order: number;
@@ -141,7 +141,7 @@ export declare class TicketGroupDetails {
141
141
  }[];
142
142
  uid: string;
143
143
  readonly nonEmptyItems: {
144
- type: import('../../../../cart/lib/CartItem').OrderItemType;
144
+ type: import('../../../../../cart/lib/CartItem').OrderItemType;
145
145
  item: {
146
146
  type: "annual" | "timeslot" | "day";
147
147
  shop_order: number;
@@ -304,9 +304,9 @@ export declare class TicketGroupDetails {
304
304
  };
305
305
  readonly totalFormatted: string;
306
306
  clearItems(): void;
307
- deleteItem(item: import('../../../../cart/lib/CartItem').CartItem): void;
308
- addItem(item: import('../../../../cart/lib/CartItem').CartItem): void;
309
- addItems(items: import('../../../../cart/lib/CartItem').CartItem[]): void;
307
+ deleteItem(item: import('../../../../../cart/lib/CartItem').CartItem): void;
308
+ addItem(item: import('../../../../../cart/lib/CartItem').CartItem): void;
309
+ addItems(items: import('../../../../../cart/lib/CartItem').CartItem[]): void;
310
310
  };
311
311
  filters: TicketGroupType;
312
312
  ticketSelectionDetails: TicketSelectionDetails | undefined;