@gomusdev/web-components 4.13.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 +6 -0
- package/dist-js/gomus-webcomponents.iife.js +45 -98
- package/dist-js/gomus-webcomponents.js +45 -98
- package/dist-js/gomus-webcomponents.min.iife.js +34 -34
- package/dist-js/gomus-webcomponents.min.js +4804 -4845
- 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 +4 -1
- 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';
|
|
@@ -342,7 +343,9 @@ export declare class Shop {
|
|
|
342
343
|
get apiUrl(): string | undefined;
|
|
343
344
|
get shopDomain(): string | undefined;
|
|
344
345
|
get baseUrl(): string;
|
|
345
|
-
get locale(): string
|
|
346
|
+
get locale(): string;
|
|
347
|
+
formatTime(value: string): string;
|
|
348
|
+
formatDate(value: Date | string, preset: DateFormatPreset): string;
|
|
346
349
|
get shop(): ShopType;
|
|
347
350
|
get _data(): {
|
|
348
351
|
apiUrl?: string;
|