Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ignoreCategories property on noOrphanSeats selection validator #10

Merged
merged 1 commit into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading