platform-calendar-seatmap 2.1.8 → 2.1.9
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/components/app/App.d.ts +6 -0
- package/dist/components/scene3d/builders/types.d.ts +2 -0
- package/dist/helpers/functions/seatStatus.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +980 -0
- package/dist/store/reducers/actionHandlers/selectors.d.ts +4 -4
- package/dist/store/reducers/clipboard/selectors.d.ts +1 -1
- package/dist/store/reducers/main/actionCreators.d.ts +6 -2
- package/dist/store/reducers/main/actionTypes.d.ts +5 -1
- package/dist/store/reducers/main/selectors.d.ts +5 -1
- package/dist/store/reducers/main/types.d.ts +31 -3
- package/dist/store/reducers/rootReducer.d.ts +8 -8
- package/package.json +1 -1
- package/tsconfig.json +3 -1
|
@@ -16,9 +16,15 @@ type T_Props = {
|
|
|
16
16
|
soldSeats?: T_MainState['soldSeats'];
|
|
17
17
|
currencySymbol?: string;
|
|
18
18
|
isFullscreen?: boolean;
|
|
19
|
+
designOnly?: boolean;
|
|
20
|
+
ticketOnly?: boolean;
|
|
21
|
+
hideTicketSettings?: boolean;
|
|
22
|
+
hideTicketAssignmentColors?: boolean;
|
|
19
23
|
onSave?: () => void;
|
|
20
24
|
onCancel?: () => void;
|
|
21
25
|
onFullscreenChange?: (isFullscreen: boolean) => void;
|
|
26
|
+
isSaving?: boolean;
|
|
27
|
+
isSaved?: boolean;
|
|
22
28
|
onPreviewChange?: (isPreview: boolean) => void;
|
|
23
29
|
} & Partial<T_ActionHandlersState>;
|
|
24
30
|
declare const App: FC<T_Props>;
|
|
@@ -9,6 +9,8 @@ export type T_BuildContext = {
|
|
|
9
9
|
ticketIds?: {
|
|
10
10
|
[key: string | number]: boolean;
|
|
11
11
|
};
|
|
12
|
+
/** When true, only sold seats get special color; available/locked use unassigned */
|
|
13
|
+
hideTicketAssignmentColors?: boolean;
|
|
12
14
|
};
|
|
13
15
|
export type T_BuiltObject = {
|
|
14
16
|
object: THREE.Object3D;
|
|
@@ -19,10 +19,11 @@ export declare const getSeatStatus: (seat: T_Seat, soldSeatIds: Set<string | num
|
|
|
19
19
|
* When the seat is 'available' and a per-ticket color is defined in ticketColors,
|
|
20
20
|
* that color takes priority over the generic available color.
|
|
21
21
|
* Locked seats use their assigned ticket color (same as available seats), not a dedicated lock color.
|
|
22
|
+
* When hideTicketAssignmentColors is true, only sold seats get special coloring; available/locked use unassigned.
|
|
22
23
|
*/
|
|
23
24
|
export declare const getSeatColor: (seat: T_Seat, seatColors: T_SeatColors, soldSeatIds: Set<string | number>, ticketIds?: {
|
|
24
25
|
[key: string | number]: boolean;
|
|
25
|
-
}, ticketColors?: Record<string, string>, highlightedTicketIds?: string[]) => string;
|
|
26
|
+
}, ticketColors?: Record<string, string>, highlightedTicketIds?: string[], hideTicketAssignmentColors?: boolean) => string;
|
|
26
27
|
/**
|
|
27
28
|
* Gets seat colors with fallback to defaults if missing.
|
|
28
29
|
* Locked seats now use ticket color (no dedicated lock color), but we keep locked in the type for backward compat.
|