@gomusdev/web-components 3.8.0 → 3.8.2

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.
@@ -16,6 +16,7 @@ export declare class TicketSelectionDetails {
16
16
  ticketGroupIds: number[] | undefined;
17
17
  selectedDate: CalendarDate | undefined;
18
18
  selectedTimeslot: string | undefined;
19
+ timeslotTicketIds: number[];
19
20
  selectedTime: string | undefined;
20
21
  ticketSegments: SegmentDetails[];
21
22
  preCarts: Cart[];
@@ -1,4 +1,12 @@
1
1
  import { TicketSelectionDetails } from '../../../../components/ticketSelection/TicketSelectionDetails.svelte.ts';
2
- import { DateDetails } from '@gomus/types';
2
+ import { DateDetails, Quotas } from '@gomus/types';
3
+ /**
4
+ * Load quotas fetched by a filter's loadTimeslots into the shared quota store and
5
+ * record which ticket ids this selection loaded for its picker. timeslotsOn() reads
6
+ * tsd.timeslotTicketIds, so only these tickets' slots render — a foreign
7
+ * segment/selection sharing the store can't leak in. Appends, so multiple active
8
+ * filters accumulate within one render pass (<go-timeslots> resets the list first).
9
+ */
10
+ export declare function loadPickerQuotas(tsd: TicketSelectionDetails, quotas: Quotas): void;
3
11
  export declare function filterDatesInWindow(dates: ReadonlyArray<DateDetails>, selectedDate: string, selectedTime: string): DateDetails[];
4
12
  export declare function loadEventsTimeslots(tsd: TicketSelectionDetails): Promise<void>;
@@ -64,7 +64,7 @@ export declare function createCapacityManager(): {
64
64
  }[];
65
65
  ticketCapacity(ticketId: number, timeslot: string): number;
66
66
  totalCapacity(ticketId: number, timeslot: string): number;
67
- timeslotsOn(date: import('@internationalized/date').CalendarDate): {
67
+ timeslotsOn(date: import('@internationalized/date').CalendarDate, ticketIds?: number[]): {
68
68
  timeSlot: string;
69
69
  quota: string;
70
70
  capacity: number;
@@ -52,7 +52,7 @@ export declare function createQuotaManager(quotas: Quotas): {
52
52
  }[];
53
53
  ticketCapacity(ticketId: number, timeslot: string): number;
54
54
  totalCapacity(ticketId: number, timeslot: string): number;
55
- timeslotsOn(date: CalendarDate): {
55
+ timeslotsOn(date: CalendarDate, ticketIds?: number[]): {
56
56
  timeSlot: string;
57
57
  quota: string;
58
58
  capacity: number;
@@ -60,7 +60,7 @@ export declare class Shop {
60
60
  }[];
61
61
  ticketCapacity(ticketId: number, timeslot: string): number;
62
62
  totalCapacity(ticketId: number, timeslot: string): number;
63
- timeslotsOn(date: import('@internationalized/date').CalendarDate): {
63
+ timeslotsOn(date: import('@internationalized/date').CalendarDate, ticketIds?: number[]): {
64
64
  timeSlot: string;
65
65
  quota: string;
66
66
  capacity: number;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "3.8.0",
7
+ "version": "3.8.2",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",