@gomusdev/web-components 1.40.0 → 1.41.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/TicketSelectionDetails.svelte.d.ts +2 -0
- package/dist-js/components/ticketSelection/subcomponents/timeslots/lib/lib.svelte.d.ts +1 -0
- package/dist-js/gomus-webcomponents.iife.js +11 -0
- package/dist-js/gomus-webcomponents.js +11 -0
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Cart } from '../../lib/models/cart/cart.svelte.ts';
|
|
2
2
|
import { SegmentDetails } from './subcomponents/tickets/subcomponents/segment/SegmentDetails.svelte.ts';
|
|
3
|
+
import { Details as TimeslotDetails } from './subcomponents/timeslots/lib/lib.svelte.ts';
|
|
3
4
|
import { CalendarDate } from '@internationalized/date';
|
|
4
5
|
export type TicketSelectionMode = 'ticket' | 'event' | 'tour';
|
|
5
6
|
export declare const validTicketSelectionFilters: readonly ["timeslot", "day", "annual", "event:scaled-price", "event:ticket", "events:scaled-price"];
|
|
@@ -18,6 +19,7 @@ export declare class TicketSelectionDetails {
|
|
|
18
19
|
selectedTime: string | undefined;
|
|
19
20
|
ticketSegments: SegmentDetails[];
|
|
20
21
|
preCarts: Cart[];
|
|
22
|
+
timeslotDetails: TimeslotDetails | undefined;
|
|
21
23
|
addTicketSegment(ticketGroup: SegmentDetails): void;
|
|
22
24
|
get isTimeslotsVisible(): boolean;
|
|
23
25
|
get isTicketsVisible(): boolean | undefined;
|
|
@@ -31373,6 +31373,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
31373
31373
|
set preCarts(value) {
|
|
31374
31374
|
set(this.#preCarts, value);
|
|
31375
31375
|
}
|
|
31376
|
+
#timeslotDetails = /* @__PURE__ */ state();
|
|
31377
|
+
get timeslotDetails() {
|
|
31378
|
+
return get$2(this.#timeslotDetails);
|
|
31379
|
+
}
|
|
31380
|
+
set timeslotDetails(value) {
|
|
31381
|
+
set(this.#timeslotDetails, value, true);
|
|
31382
|
+
}
|
|
31376
31383
|
addTicketSegment(ticketGroup) {
|
|
31377
31384
|
this.ticketSegments.push(ticketGroup);
|
|
31378
31385
|
}
|
|
@@ -32935,6 +32942,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32935
32942
|
constructor(tsdWrapper) {
|
|
32936
32943
|
if (!tsdWrapper) return;
|
|
32937
32944
|
this.#tsd = /* @__PURE__ */ user_derived(() => tsdWrapper.value);
|
|
32945
|
+
if (this.tsd) this.tsd.timeslotDetails = this;
|
|
32946
|
+
}
|
|
32947
|
+
get boockedOutCount() {
|
|
32948
|
+
return this.timeslots.filter((t) => t.capacity == 0).length;
|
|
32938
32949
|
}
|
|
32939
32950
|
get timeslots() {
|
|
32940
32951
|
const tsd = this.tsd;
|
|
@@ -31373,6 +31373,13 @@ class TicketSelectionDetails {
|
|
|
31373
31373
|
set preCarts(value) {
|
|
31374
31374
|
set(this.#preCarts, value);
|
|
31375
31375
|
}
|
|
31376
|
+
#timeslotDetails = /* @__PURE__ */ state();
|
|
31377
|
+
get timeslotDetails() {
|
|
31378
|
+
return get$2(this.#timeslotDetails);
|
|
31379
|
+
}
|
|
31380
|
+
set timeslotDetails(value) {
|
|
31381
|
+
set(this.#timeslotDetails, value, true);
|
|
31382
|
+
}
|
|
31376
31383
|
addTicketSegment(ticketGroup) {
|
|
31377
31384
|
this.ticketSegments.push(ticketGroup);
|
|
31378
31385
|
}
|
|
@@ -32935,6 +32942,10 @@ let Details$2 = class Details {
|
|
|
32935
32942
|
constructor(tsdWrapper) {
|
|
32936
32943
|
if (!tsdWrapper) return;
|
|
32937
32944
|
this.#tsd = /* @__PURE__ */ user_derived(() => tsdWrapper.value);
|
|
32945
|
+
if (this.tsd) this.tsd.timeslotDetails = this;
|
|
32946
|
+
}
|
|
32947
|
+
get boockedOutCount() {
|
|
32948
|
+
return this.timeslots.filter((t) => t.capacity == 0).length;
|
|
32938
32949
|
}
|
|
32939
32950
|
get timeslots() {
|
|
32940
32951
|
const tsd = this.tsd;
|