@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.
@@ -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;
@@ -4,5 +4,6 @@ import { TimeSlot } from '@gomus/types';
4
4
  export declare class Details {
5
5
  tsd: TicketSelectionDetails | undefined;
6
6
  constructor(tsdWrapper?: DetailsWrapper<TicketSelectionDetails>);
7
+ get boockedOutCount(): number;
7
8
  get timeslots(): TimeSlot[];
8
9
  }
@@ -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;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "1.40.0",
7
+ "version": "1.41.0",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",