@gomusdev/web-components 4.12.0 → 4.13.1
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/README.md +12 -0
- package/dist-js/gomus-webcomponents.iife.js +156 -115
- package/dist-js/gomus-webcomponents.js +156 -115
- package/dist-js/gomus-webcomponents.min.iife.js +46 -46
- package/dist-js/gomus-webcomponents.min.js +6290 -6261
- package/dist-js/src/components/shared/quantityStepper/quantityLabel.d.ts +3 -1
- package/dist-js/src/lib/stores/shop.formatters.spec.d.ts +1 -0
- package/dist-js/src/lib/stores/shop.svelte.d.ts +5 -4
- package/dist-js/src/lib/stores/shop.translate.spec.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4,8 +4,10 @@ import { Product } from '../../../../lib/models/cart/types.ts';
|
|
|
4
4
|
* the visible row title: event rows compose it from event_title + time because a
|
|
5
5
|
* flat-price event's price row carries no title (the row IS the event) — naming
|
|
6
6
|
* the control from product.title alone left it unnamed (WI #141).
|
|
7
|
+
*
|
|
8
|
+
* Locale comes in as a parameter — shared/ components stay store-agnostic (WI #151).
|
|
7
9
|
*/
|
|
8
10
|
export declare function quantityLabel(item: {
|
|
9
11
|
product: Product;
|
|
10
12
|
time?: string;
|
|
11
|
-
}): string;
|
|
13
|
+
}, locale: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,6 +4,7 @@ import { CapacityManager } from '../../../lib/models/capacity/CapacityManager.ts
|
|
|
4
4
|
import { Cart } from '../../../lib/models/cart/cart.svelte.ts';
|
|
5
5
|
import { Auth } from '../../../lib/stores/auth.svelte.ts';
|
|
6
6
|
import { User } from '../../../lib/stores/user.svelte.ts';
|
|
7
|
+
import { DateFormatPreset } from '@gomus/types/lib/helpers/utils';
|
|
7
8
|
import { OpenApiClient } from '@gomus/api';
|
|
8
9
|
import { TicketsAndQuotasParams, TicketsCalendarParams, TicketsParams } from '@gomus/api/lib/types.ts';
|
|
9
10
|
import { CapacitiesResponse, CheckoutParams, CheckoutResponse, Country, CustomerAddressesSuccess, CustomerMembershipsSuccess, Event, Exhibition, FinalizePersonalizationParams, FinalizePersonalizationResponse, LocaleOptions, MembershipActivationParams, MembershipActivationResponse, Merchandise, Museum, OrdersParams, OrdersSuccess, PasswordResetResponse, PasswordUpdateResponse, PostCartParams, PostCartResponse, Salutation, ShopType, SignInParams, SignInResponse, SignUpParams, SignUpResponse, TicketContentEntry, Tour, UploadPersonalizationPhotoResponse, ValidateTokenError, ValidateTokenSuccess, WithdrawalParams, WithdrawalResponse } from '@gomus/types';
|
|
@@ -331,9 +332,7 @@ export declare class Shop {
|
|
|
331
332
|
};
|
|
332
333
|
}[];
|
|
333
334
|
} | undefined;
|
|
334
|
-
get translations():
|
|
335
|
-
[key: string]: string;
|
|
336
|
-
};
|
|
335
|
+
get translations(): Record<string, string>;
|
|
337
336
|
get currency(): string;
|
|
338
337
|
t(key: string, values?: {
|
|
339
338
|
[key: string]: string | number;
|
|
@@ -344,7 +343,9 @@ export declare class Shop {
|
|
|
344
343
|
get apiUrl(): string | undefined;
|
|
345
344
|
get shopDomain(): string | undefined;
|
|
346
345
|
get baseUrl(): string;
|
|
347
|
-
get locale(): string
|
|
346
|
+
get locale(): string;
|
|
347
|
+
formatTime(value: string): string;
|
|
348
|
+
formatDate(value: Date | string, preset: DateFormatPreset): string;
|
|
348
349
|
get shop(): ShopType;
|
|
349
350
|
get _data(): {
|
|
350
351
|
apiUrl?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|