@gomusdev/web-components 1.7.0 → 1.8.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/auth/entry.d.ts +0 -0
- package/dist-js/components/auth/signIn/SignIn.spec.d.ts +1 -0
- package/dist-js/components/auth/signIn/SignIn.svelte.d.ts +1 -0
- package/dist-js/components/auth/signIn/lib.d.ts +7 -0
- package/dist-js/components/auth/signUp/SignUp.svelte.d.ts +1 -0
- package/dist-js/components/auth/signUp/specs/SignUp.spec.d.ts +1 -0
- package/dist-js/components/cart/components/Cart.spec.d.ts +1 -0
- package/dist-js/components/cart/components/Cart.svelte.d.ts +1 -0
- package/dist-js/components/cart/entry.d.ts +0 -0
- package/dist-js/components/cart/lib/CartItem.d.ts +135 -0
- package/dist-js/components/cart/lib/cart.svelte.d.ts +616 -0
- package/dist-js/components/cart/lib/cart.svelte.spec.d.ts +1 -0
- package/dist-js/components/cart/lib/localStorage.spec.d.ts +1 -0
- package/dist-js/components/cart/lib/localStorage.svelte.d.ts +146 -0
- package/dist-js/components/cart/mocks/gomusTicketMocks.d.ts +112 -0
- package/dist-js/components/cart/mocks/testCart.d.ts +306 -0
- package/dist-js/components/checkoutForm/CheckoutForm.spec.d.ts +1 -0
- package/dist-js/components/checkoutForm/CheckoutForm.svelte.d.ts +1 -0
- package/dist-js/components/checkoutForm/entry.d.ts +0 -0
- package/dist-js/components/checkoutForm/lib.d.ts +1 -0
- package/dist-js/components/donations/lib/donation.spec.d.ts +1 -0
- package/dist-js/components/donations/lib/donation.svelte.d.ts +9 -0
- package/dist-js/components/entry.d.ts +0 -0
- package/dist-js/components/forms/entry.d.ts +0 -0
- package/dist-js/components/forms/lib/Field.spec.d.ts +1 -0
- package/dist-js/components/forms/lib/Field.svelte.d.ts +28 -0
- package/dist-js/components/forms/lib/Forms.svelte.d.ts +31 -0
- package/dist-js/components/forms/lib/allFields.d.ts +3 -0
- package/dist-js/components/forms/lib/forms.spec.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/AllFields.svelte.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/ErrorsFeedback.svelte.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/Field.spec.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/Field.svelte.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/Form.svelte.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/FormDetails.spec.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/FormDetails.svelte.d.ts +25 -0
- package/dist-js/components/forms/ui/generic/FormFeedback.svelte.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/InputAndLabel.svelte.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/Submit.spec.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/Submit.svelte.d.ts +1 -0
- package/dist-js/components/forms/ui/generic/SuccessFeedback.svelte.d.ts +1 -0
- package/dist-js/components/forms/ui/specs/IfInForm.spec.d.ts +1 -0
- package/dist-js/components/forms/ui/specs/TestForm.spec.d.ts +1 -0
- package/dist-js/components/graveyard/event/entry.d.ts +0 -0
- package/dist-js/components/graveyard/event/lib.svelte.d.ts +43 -0
- package/dist-js/components/graveyard/events/entry.d.ts +0 -0
- package/dist-js/components/if/If.svelte.d.ts +1 -0
- package/dist-js/components/if/If.svelte.spec.d.ts +1 -0
- package/dist-js/components/if/entry.d.ts +0 -0
- package/dist-js/components/if/expression.d.ts +1 -0
- package/dist-js/components/if/expression.spec.d.ts +1 -0
- package/dist-js/components/init/GomusInit.svelte.d.ts +1 -0
- package/dist-js/components/init/GomusInit.test.d.ts +1 -0
- package/dist-js/components/init/Init.svelte.d.ts +1 -0
- package/dist-js/components/init/entry.d.ts +0 -0
- package/dist-js/components/mainnav/components/MainNav.spec.d.ts +1 -0
- package/dist-js/components/mainnav/fixtures/fixtures.d.ts +2 -0
- package/dist-js/components/mainnav/lib/generators/generate.d.ts +4 -0
- package/dist-js/components/mainnav/lib/generators/generate.spec.d.ts +1 -0
- package/dist-js/components/mainnav/lib/generators/labelGenerators.d.ts +2 -0
- package/dist-js/components/mainnav/lib/generators/navGenerators.d.ts +2 -0
- package/dist-js/components/mainnav/lib/generators/subNavGenerators.d.ts +7 -0
- package/dist-js/components/mainnav/lib/generators/urlGenerators.d.ts +2 -0
- package/dist-js/components/mainnav/lib/navigation.d.ts +32 -0
- package/dist-js/components/mainnav/lib/navigation.spec.d.ts +1 -0
- package/dist-js/components/mainnav/lib/states/OpenedDropdown.svelte.d.ts +20 -0
- package/dist-js/components/mainnav/lib/states/pageState.svelte.d.ts +7 -0
- package/dist-js/components/paypal/lib/PaymentError.d.ts +3 -0
- package/dist-js/components/paypal/lib/approvePaypalOrder.d.ts +4 -0
- package/dist-js/components/paypal/lib/getPaypalOrder.d.ts +1 -0
- package/dist-js/components/paypal/payment-method-component/paymentIcons.d.ts +14 -0
- package/dist-js/components/paypal/payment-method-component/paymentMethodStore.svelte.d.ts +3 -0
- package/dist-js/components/paypal/payment-methods/apm.d.ts +3 -0
- package/dist-js/components/paypal/payment-methods/applepay/applePay.d.ts +2 -0
- package/dist-js/components/paypal/payment-methods/currentOrder.svelte.d.ts +3 -0
- package/dist-js/components/paypal/payment-methods/defaults.d.ts +28 -0
- package/dist-js/components/paypal/payment-methods/googlepay/googlePay.d.ts +2 -0
- package/dist-js/components/paypal/payment-methods/loadPaypalScript.d.ts +5 -0
- package/dist-js/components/ticketSelection/SpecUtils.d.ts +3 -0
- package/dist-js/components/ticketSelection/TicketSelection.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/TicketSelection.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/TicketSelectionDetails.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/TicketSelectionDetails.svelte.d.ts +27 -0
- package/dist-js/components/ticketSelection/entry.d.ts +0 -0
- package/dist-js/components/ticketSelection/subcomponents/addToCartButton/AddToCartButton.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/addToCartButton/AddToCartButton.svelte.d.ts +6 -0
- package/dist-js/components/ticketSelection/subcomponents/addToCartButton/AddToCartButton.svelte.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/addToCartButton/entry.d.ts +0 -0
- package/dist-js/components/ticketSelection/subcomponents/calendar/components/Calendar.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/calendar/components/CalendarUI.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/calendar/components/CalendarUI.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/calendar/entry.d.ts +0 -0
- package/dist-js/components/ticketSelection/subcomponents/calendar/lib/calendar.svelte.d.ts +35 -0
- package/dist-js/components/ticketSelection/subcomponents/calendar/mocks/datesMock.d.ts +33 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/Tickets.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/Tickets.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/entry.d.ts +0 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/fixtures/ticketFixtures.d.ts +191 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/GroupBody.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/GroupSum.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/TicketGroup.svelte.d.ts +764 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/TicketsSum.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/addToCartButton/entry.d.ts +0 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/utils.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/tickets/subcomponents/utils.svelte.d.ts +9 -0
- package/dist-js/components/ticketSelection/subcomponents/timeslots/Timeslots.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/timeslots/Timeslots.svelte.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/timeslots/entry.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/timeslots/lib/__mocks__/generateAvailableTimeSlots.d.ts +8 -0
- package/dist-js/components/ticketSelection/subcomponents/timeslots/lib/generateAvailableTimeSlots.d.ts +50 -0
- package/dist-js/components/ticketSelection/subcomponents/timeslots/lib/generateAvailableTimeSlots.specs.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/timeslots/lib/lib.spec.d.ts +1 -0
- package/dist-js/components/ticketSelection/subcomponents/timeslots/lib/lib.svelte.d.ts +6 -0
- package/dist-js/config/config.d.ts +8 -0
- package/dist-js/config/config.spec.d.ts +1 -0
- package/dist-js/config/defaultConfig.d.ts +16 -0
- package/dist-js/e2e/APMs.e2e.spec.d.ts +1 -0
- package/dist-js/e2e/Card.e2e.spec.d.ts +1 -0
- package/dist-js/e2e/testApm.d.ts +7 -0
- package/dist-js/go.svelte.d.ts +1 -0
- package/dist-js/gomus-webcomponents.css +1255 -0
- package/dist-js/gomus-webcomponents.iife.js +18826 -0
- package/dist-js/gomus-webcomponents.js +18825 -0
- package/dist-js/lib/annual-ticket-personalization/index.d.ts +1 -0
- package/dist-js/lib/annual-ticket-personalization/stores.d.ts +3 -0
- package/dist-js/lib/gomusTicket.spec.d.ts +1 -0
- package/dist-js/lib/gomusTicket.svelte.d.ts +122 -0
- package/dist-js/lib/helpers/DataHolder.d.ts +3 -0
- package/dist-js/lib/helpers/Events.d.ts +6 -0
- package/dist-js/lib/helpers/PropertyTracker.d.ts +9 -0
- package/dist-js/lib/helpers/PropertyTracker.spec.d.ts +1 -0
- package/dist-js/lib/helpers/ShadowStyles.svelte.d.ts +7 -0
- package/dist-js/lib/helpers/Wrapper.svelte.d.ts +1 -0
- package/dist-js/lib/helpers/context.spec.d.ts +1 -0
- package/dist-js/lib/helpers/context.svelte.d.ts +2 -0
- package/dist-js/lib/helpers/cookies.d.ts +7 -0
- package/dist-js/lib/helpers/cookies.spec.d.ts +1 -0
- package/dist-js/lib/helpers/dataAttr.d.ts +9 -0
- package/dist-js/lib/helpers/dataAttr.spec.d.ts +1 -0
- package/dist-js/lib/helpers/fixtures/context/lib.d.ts +5 -0
- package/dist-js/lib/helpers/shopCart.d.ts +34 -0
- package/dist-js/lib/helpers/translations.d.ts +752 -0
- package/dist-js/lib/helpers/urls.d.ts +64 -0
- package/dist-js/lib/helpers/utils.d.ts +24 -0
- package/dist-js/lib/helpers/wrapInElement.d.ts +1 -0
- package/dist-js/lib/helpers/wrapInElement.spec.d.ts +1 -0
- package/dist-js/lib/middlewares/AuthMiddleware.d.ts +23 -0
- package/dist-js/lib/middlewares/AuthMiddleware.spec.d.ts +1 -0
- package/dist-js/lib/stores/__mocks__/shop.svelte.d.ts +2 -0
- package/dist-js/lib/stores/auth.svelte.d.ts +25 -0
- package/dist-js/lib/stores/auth.svelte.spec.d.ts +1 -0
- package/dist-js/lib/stores/shop.svelte.d.ts +412 -0
- package/dist-js/lib/stores/shop.svelte.test.d.ts +1 -0
- package/dist-js/lib/stores/user.svelte.d.ts +16 -0
- package/dist-js/lib/stores/user.svelte.test.d.ts +1 -0
- package/dist-js/lib/storybook/WrapperComponent.d.ts +1 -0
- package/dist-js/lib/storybook/sbGlobals.svelte.d.ts +9 -0
- package/dist-js/lib/types/types.d.ts +1 -0
- package/dist-js/lib/utils.d.ts +16 -0
- package/dist-js/lib/vitest/mockedCookies.d.ts +2 -0
- package/dist-js/lib/vitest/msw/RequestLogger.d.ts +1 -0
- package/dist-js/lib/vitest/msw/basicHandlers.d.ts +3 -0
- package/dist-js/lib/vitest/msw/handlers.d.ts +1758 -0
- package/dist-js/lib/vitest/msw/vitestMSWSetup.d.ts +3 -0
- package/dist-js/lib/vitest/snapshotSerializer.d.ts +1 -0
- package/dist-js/main.d.ts +5 -0
- package/dist-js/mocks/MSWMocks.d.ts +11 -0
- package/dist-js/mocks/ShopMocks.d.ts +179 -0
- package/dist-js/mocks/mocks.d.ts +2049 -0
- package/dist-js/sveltekit/app/environment.d.ts +1 -0
- package/dist-js/sveltekit/app/forms.d.ts +23 -0
- package/dist-js/sveltekit/app/navigation.d.ts +4 -0
- package/dist-js/sveltekit/app/stores.d.ts +2 -0
- package/dist-js/vitest-setup.d.ts +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Field } from '../../lib/Field.svelte.ts';
|
|
2
|
+
export declare class FormDetails {
|
|
3
|
+
#private;
|
|
4
|
+
formId: string;
|
|
5
|
+
form: HTMLFormElement;
|
|
6
|
+
isValid: boolean;
|
|
7
|
+
get formData(): any;
|
|
8
|
+
ensureApiRequiredFields(): boolean;
|
|
9
|
+
get requiredApiKeys(): string[];
|
|
10
|
+
get apiErrors(): string[] | Record<string, string[]>;
|
|
11
|
+
/**
|
|
12
|
+
* Sets API errors for the current instance.
|
|
13
|
+
*
|
|
14
|
+
* @param {string[] | Record<string, string[]>} errors - Errors passed as an array or an object where keys are API field keys and values are arrays of error messages. If an array is provided, it assigns the errors directly. If an object is provided, it maps the errors to the respective fields based on their API keys.
|
|
15
|
+
*/
|
|
16
|
+
set apiErrors(errors: string[] | Record<string, string[]>);
|
|
17
|
+
addField(field: Field): void;
|
|
18
|
+
/**
|
|
19
|
+
* The list of fields associated with form in the config.
|
|
20
|
+
*/
|
|
21
|
+
get fields(): readonly Field[];
|
|
22
|
+
constructor(formId: string, form: HTMLFormElement);
|
|
23
|
+
}
|
|
24
|
+
export declare const setDetails: (host: HTMLElement, details: FormDetails) => void;
|
|
25
|
+
export declare const getDetails: (host: HTMLElement) => FormDetails | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare class Details {
|
|
2
|
+
eventId: number | undefined;
|
|
3
|
+
constructor(eventId: number);
|
|
4
|
+
get event(): {
|
|
5
|
+
id: number;
|
|
6
|
+
description: string | null;
|
|
7
|
+
museum_id: number;
|
|
8
|
+
exhibition_id: number | null;
|
|
9
|
+
foreign_id: string | null;
|
|
10
|
+
title: string;
|
|
11
|
+
sub_title: string | null;
|
|
12
|
+
created_at: string;
|
|
13
|
+
updated_at: string;
|
|
14
|
+
featured: boolean;
|
|
15
|
+
bookable: boolean;
|
|
16
|
+
registerable: boolean;
|
|
17
|
+
picture: import('@gomus/types').components["schemas"]["picture"];
|
|
18
|
+
duration: number;
|
|
19
|
+
location: import('@gomus/types').components["schemas"]["location"];
|
|
20
|
+
age_groups: import('@gomus/types').components["schemas"]["name_id_pair"];
|
|
21
|
+
audiences: import('@gomus/types').components["schemas"]["name_id_pair"];
|
|
22
|
+
catch_words: import('@gomus/types').components["schemas"]["name_id_pair"];
|
|
23
|
+
disablements: import('@gomus/types').components["schemas"]["name_id_pair"];
|
|
24
|
+
grades: import('@gomus/types').components["schemas"]["name_id_pair"];
|
|
25
|
+
proposal_categories: import('@gomus/types').components["schemas"]["name_id_pair"];
|
|
26
|
+
languages: import('@gomus/types').components["schemas"]["language"][];
|
|
27
|
+
category: import('@gomus/types').components["schemas"]["category"];
|
|
28
|
+
upcoming_bookings_start_times: string[];
|
|
29
|
+
tickets: number[];
|
|
30
|
+
quotas: number[];
|
|
31
|
+
ticket_sales_in_shop: boolean;
|
|
32
|
+
dates: {
|
|
33
|
+
first: string;
|
|
34
|
+
last: string;
|
|
35
|
+
count: number;
|
|
36
|
+
};
|
|
37
|
+
sellabilities: import('@gomus/types').components["schemas"]["time_frame"][];
|
|
38
|
+
documents: import('@gomus/types').components["schemas"]["document"][];
|
|
39
|
+
content: Record<string, never>;
|
|
40
|
+
} | undefined;
|
|
41
|
+
}
|
|
42
|
+
export declare const setDetails: (host: HTMLElement, details: Details) => void;
|
|
43
|
+
export declare const getDetails: (host: HTMLElement) => Details | undefined;
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function evaluateExpression<T>(expression: string, data: unknown): T | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getShop_success: import('msw').HttpHandler;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function generate(type: 'url' | 'subnav' | 'label' | 'nav', expression: string): any;
|
|
2
|
+
export declare function extractArgs(expression: string): (string | number)[];
|
|
3
|
+
export declare function extractCommand(expression: string): string;
|
|
4
|
+
export declare function mainNavTranslate(key: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SingleNavEntry } from '../navigation.ts';
|
|
2
|
+
export declare const museumsSubnavGenerator: (count: number) => SingleNavEntry[];
|
|
3
|
+
export declare const exhibitionsSubnavGenerator: (count: number) => SingleNavEntry[];
|
|
4
|
+
export declare const eventsSubnavGenerator: (count: number) => SingleNavEntry[];
|
|
5
|
+
export declare const toursSubnavGenerator: (count: number) => SingleNavEntry[];
|
|
6
|
+
export declare const merchandisesSubnavGenerator: (count: number) => SingleNavEntry[];
|
|
7
|
+
export declare const subNavGenerators: Record<`subnav:${string}`, (...args: number[]) => SingleNavEntry[]>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { navGenerators } from './generators/navGenerators.ts';
|
|
2
|
+
import { subNavGenerators } from './generators/subNavGenerators.ts';
|
|
3
|
+
export type SubNav = {
|
|
4
|
+
navId?: string;
|
|
5
|
+
label: string;
|
|
6
|
+
parentUrl: string;
|
|
7
|
+
items: SingleNavEntry[];
|
|
8
|
+
};
|
|
9
|
+
export type NavItem = {
|
|
10
|
+
navId?: string;
|
|
11
|
+
label: string;
|
|
12
|
+
url: string;
|
|
13
|
+
};
|
|
14
|
+
export type NavDivider = 'divider';
|
|
15
|
+
export type SingleNavEntry = NavItem | NavDivider;
|
|
16
|
+
export type NavEntry = SingleNavEntry | SubNav;
|
|
17
|
+
export type Navigation = NavEntry[];
|
|
18
|
+
export type GenericSubNav = SubNav | {
|
|
19
|
+
label: string;
|
|
20
|
+
parentUrl: string;
|
|
21
|
+
items: keyof typeof subNavGenerators;
|
|
22
|
+
};
|
|
23
|
+
export type GenericNavItem = SingleNavEntry | keyof typeof navGenerators;
|
|
24
|
+
export type GenericNavEntry = GenericNavItem | GenericSubNav;
|
|
25
|
+
export type GenericNavigation = GenericNavEntry[];
|
|
26
|
+
export declare function isNavItem(entry: any): entry is NavItem;
|
|
27
|
+
export declare function isGenericNavItem(entry: any): entry is GenericNavItem;
|
|
28
|
+
export declare function isNavDivider(entry: any): entry is NavDivider;
|
|
29
|
+
export declare function isSingleNavEntry(entry: any): entry is SingleNavEntry;
|
|
30
|
+
export declare function isGenerator(value: any): boolean;
|
|
31
|
+
export declare function generateNavEntry(item: GenericNavEntry): NavEntry;
|
|
32
|
+
export declare function generateNavigation(settings: GenericNavigation): Navigation;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Manages the state of dropdown menus, ensuring only one can be open at a time
|
|
3
|
+
*/
|
|
4
|
+
export declare class OpenedDropdown {
|
|
5
|
+
id: number | undefined;
|
|
6
|
+
isOpen(id: number): boolean;
|
|
7
|
+
toggle(id: number): void;
|
|
8
|
+
close(): void;
|
|
9
|
+
}
|
|
10
|
+
export declare function outsideClicksHandler(): (element: HTMLElement) => {
|
|
11
|
+
destroy(): void;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Sets up a click handler that closes dropdowns when clicking outside of them
|
|
15
|
+
*/
|
|
16
|
+
export declare function handleOutsideClicks(element: HTMLElement, openedDropdown: OpenedDropdown): {
|
|
17
|
+
destroy(): void;
|
|
18
|
+
};
|
|
19
|
+
export declare function setOpenedDropdown(): OpenedDropdown;
|
|
20
|
+
export declare function getOpenedDropdown(): OpenedDropdown;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NavEntry } from '../navigation.ts';
|
|
2
|
+
export declare class PageState {
|
|
3
|
+
currentPage: string | undefined;
|
|
4
|
+
isActivePage(currentUrl: string, entry: NavEntry): boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function setPageState(): PageState;
|
|
7
|
+
export declare function getPageState(): PageState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getPaypalOrder(orderId: string): Promise<any>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const paymentIcons: {
|
|
2
|
+
applepay: string;
|
|
3
|
+
bancontact: string;
|
|
4
|
+
blik: string;
|
|
5
|
+
eps: string;
|
|
6
|
+
googlepay: string;
|
|
7
|
+
ideal: string;
|
|
8
|
+
mybank: string;
|
|
9
|
+
p24: string;
|
|
10
|
+
paypal: string;
|
|
11
|
+
trustly: string;
|
|
12
|
+
card: string;
|
|
13
|
+
multibanco: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { PayPalButtonsComponentOptions, PayPalNamespace } from '@paypal/paypal-js';
|
|
2
|
+
export declare function apmButton(paypal: PayPalNamespace, containerSelector: string, options: PayPalButtonsComponentOptions, currency?: string): Promise<void>;
|
|
3
|
+
export declare function apmFields(paypal: PayPalNamespace, containerSelector: string, options: {}): Promise<void>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const setCart: (card: string) => void;
|
|
2
|
+
export declare const setDefaultCart: () => void;
|
|
3
|
+
export declare const defaultCart: {
|
|
4
|
+
type: string;
|
|
5
|
+
attributes: {
|
|
6
|
+
id: number;
|
|
7
|
+
time: string;
|
|
8
|
+
quantity: number;
|
|
9
|
+
shipped_with_merchandise_id: null;
|
|
10
|
+
};
|
|
11
|
+
cart: {
|
|
12
|
+
name: string;
|
|
13
|
+
price_cents: number;
|
|
14
|
+
vats: {
|
|
15
|
+
vat_pct: string;
|
|
16
|
+
price_cents: number;
|
|
17
|
+
}[];
|
|
18
|
+
tax_included: boolean;
|
|
19
|
+
meta: {
|
|
20
|
+
startDate: string;
|
|
21
|
+
};
|
|
22
|
+
available: number[];
|
|
23
|
+
free_timing: boolean;
|
|
24
|
+
flex_description: null;
|
|
25
|
+
totalCents: number;
|
|
26
|
+
};
|
|
27
|
+
updated_at: string;
|
|
28
|
+
}[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Cart } from '../cart/lib/cart.svelte.ts';
|
|
2
|
+
import { TicketGroupDetails } from './subcomponents/tickets/subcomponents/TicketGroup.svelte.ts';
|
|
3
|
+
import { CalendarDate } from '@internationalized/date';
|
|
4
|
+
export type TicketSelectionMode = 'ticket' | 'event' | 'tour';
|
|
5
|
+
export declare const validTicketSelectionFilters: readonly ["timeslot", "day", "annual"];
|
|
6
|
+
export type TicketSelectionFilter = (typeof validTicketSelectionFilters)[number];
|
|
7
|
+
export declare class TicketSelectionDetails {
|
|
8
|
+
uid: number;
|
|
9
|
+
mode: TicketSelectionMode | undefined;
|
|
10
|
+
filters: TicketSelectionFilter[] | undefined;
|
|
11
|
+
apiFilters: string[] | undefined;
|
|
12
|
+
eventId: number | undefined;
|
|
13
|
+
museumIds: number[] | undefined;
|
|
14
|
+
exhibitionIds: number[] | undefined;
|
|
15
|
+
ticketIds: number[] | undefined;
|
|
16
|
+
ticketGroupIds: number[] | undefined;
|
|
17
|
+
selectedDate: CalendarDate | undefined;
|
|
18
|
+
selectedTimeslot: string | undefined;
|
|
19
|
+
ticketGroups: TicketGroupDetails[];
|
|
20
|
+
preCarts: Cart[];
|
|
21
|
+
addTicketGroup(ticketGroup: TicketGroupDetails): void;
|
|
22
|
+
get isTimeslotsVisible(): boolean;
|
|
23
|
+
get isTicketsVisible(): boolean | undefined;
|
|
24
|
+
get isCalendarVisible(): boolean;
|
|
25
|
+
}
|
|
26
|
+
export declare const setTicketSelectionDetails: (host: HTMLElement, details: TicketSelectionDetails) => void;
|
|
27
|
+
export declare const getTicketSelectionDetails: (host: HTMLElement) => TicketSelectionDetails | undefined;
|
|
File without changes
|
package/dist-js/components/ticketSelection/subcomponents/addToCartButton/AddToCartButton.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
package/dist-js/components/ticketSelection/subcomponents/calendar/components/Calendar.svelte.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
package/dist-js/components/ticketSelection/subcomponents/calendar/components/CalendarUI.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-js/components/ticketSelection/subcomponents/calendar/components/CalendarUI.svelte.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
File without changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { TicketSelectionDetails } from '../../../TicketSelectionDetails.svelte.ts';
|
|
2
|
+
import { TicketsCalendarParams } from '@gomus/api/lib/types.ts';
|
|
3
|
+
import { DateValue, CalendarDate } from '@internationalized/date';
|
|
4
|
+
export type CalendarDates = {
|
|
5
|
+
[key: string]: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare abstract class Calendar {
|
|
8
|
+
startAt: CalendarDate;
|
|
9
|
+
selected: CalendarDate | undefined;
|
|
10
|
+
abstract get dates(): {
|
|
11
|
+
[key: string]: boolean;
|
|
12
|
+
} | undefined;
|
|
13
|
+
isDateDisabled(date: DateValue): boolean;
|
|
14
|
+
isDateUnavailable(date: DateValue): boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare class StaticCalendar extends Calendar {
|
|
17
|
+
#private;
|
|
18
|
+
params: {
|
|
19
|
+
start_at: undefined;
|
|
20
|
+
};
|
|
21
|
+
constructor(dates?: {
|
|
22
|
+
[key: string]: boolean;
|
|
23
|
+
});
|
|
24
|
+
get dates(): {
|
|
25
|
+
[key: string]: boolean;
|
|
26
|
+
};
|
|
27
|
+
set dates(dates: {
|
|
28
|
+
[key: string]: boolean;
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
export declare class TicketsCalendar extends Calendar {
|
|
32
|
+
details: TicketSelectionDetails | undefined;
|
|
33
|
+
params: TicketsCalendarParams;
|
|
34
|
+
get dates(): CalendarDates;
|
|
35
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const datesMock: {
|
|
2
|
+
'2025-07-01': boolean;
|
|
3
|
+
'2025-07-02': boolean;
|
|
4
|
+
'2025-07-03': boolean;
|
|
5
|
+
'2025-07-04': boolean;
|
|
6
|
+
'2025-07-05': boolean;
|
|
7
|
+
'2025-07-06': boolean;
|
|
8
|
+
'2025-07-07': boolean;
|
|
9
|
+
'2025-07-08': boolean;
|
|
10
|
+
'2025-07-09': boolean;
|
|
11
|
+
'2025-07-10': boolean;
|
|
12
|
+
'2025-07-11': boolean;
|
|
13
|
+
'2025-07-12': boolean;
|
|
14
|
+
'2025-07-13': boolean;
|
|
15
|
+
'2025-07-14': boolean;
|
|
16
|
+
'2025-07-15': boolean;
|
|
17
|
+
'2025-07-16': boolean;
|
|
18
|
+
'2025-07-17': boolean;
|
|
19
|
+
'2025-07-18': boolean;
|
|
20
|
+
'2025-07-19': boolean;
|
|
21
|
+
'2025-07-20': boolean;
|
|
22
|
+
'2025-07-21': boolean;
|
|
23
|
+
'2025-07-22': boolean;
|
|
24
|
+
'2025-07-23': boolean;
|
|
25
|
+
'2025-07-24': boolean;
|
|
26
|
+
'2025-07-25': boolean;
|
|
27
|
+
'2025-07-26': boolean;
|
|
28
|
+
'2025-07-27': boolean;
|
|
29
|
+
'2025-07-28': boolean;
|
|
30
|
+
'2025-07-29': boolean;
|
|
31
|
+
'2025-07-30': boolean;
|
|
32
|
+
'2025-07-31': boolean;
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
File without changes
|