Skip to content

Commit

Permalink
Added ignoreCategories property on noOrphanSeats selection validator (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bverbeken authored Mar 29, 2024
1 parent a1963bb commit 38097c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const fullChartRendererConfig: Required<ChartRendererConfigOptions> = {
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 },
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -1050,6 +1050,7 @@ interface SelectionValidatorNoOrphanSeats {
type: 'noOrphanSeats'
mode?: 'strict' | 'lenient'
highlight?: boolean
ignoreCategories?: boolean
}

interface SelectionValidatorConsecutiveSeats {
Expand Down

0 comments on commit 38097c2

Please sign in to comment.