From 38097c22a68901f8ef675c5f52719f69419ee914 Mon Sep 17 00:00:00 2001 From: Ben Verbeken Date: Fri, 29 Mar 2024 15:55:27 +0100 Subject: [PATCH] Added ignoreCategories property on noOrphanSeats selection validator (#10) --- src/index.test.ts | 2 +- src/index.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.test.ts b/src/index.test.ts index c061aa3..a773abc 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -34,7 +34,7 @@ const fullChartRendererConfig: Required = { selectionValidators: [ { type: 'minimumSelectedPlaces', minimum: 4 }, { type: 'consecutiveSeats' }, - { type: 'noOrphanSeats', highlight: false, mode: 'lenient'} + { type: 'noOrphanSeats', highlight: false, mode: 'lenient', ignoreCategories: false} ], maxSelectedObjects: [ { ticketType: 'adult', quantity: 2 }, diff --git a/src/index.ts b/src/index.ts index a04cdee..d764db8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -256,7 +256,7 @@ export interface ChartRendererConfigOptions extends DeprecatedConfigProperties, colorTitle?: string availableObjectColor?: string selectedObjectColor?: string - errorColor?: string + errorColor?: string } /** * Sets the preset of styles to use for the seating chart user interface. {@link https://docs.seats.io/docs/renderer/stylepreset See documentation} @@ -1050,6 +1050,7 @@ interface SelectionValidatorNoOrphanSeats { type: 'noOrphanSeats' mode?: 'strict' | 'lenient' highlight?: boolean + ignoreCategories?: boolean } interface SelectionValidatorConsecutiveSeats {