@seatsio/seatsio-types 2.7.0 → 2.9.0
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/index.d.ts +18 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -359,6 +359,22 @@ export interface EventManagerSelectModeConfigOptions extends BaseEventManagerCon
|
|
|
359
359
|
tooltipContents?: (object: object) => string;
|
|
360
360
|
unavailableObjectsSelectable?: boolean;
|
|
361
361
|
selectableObjects?: string[];
|
|
362
|
+
/**
|
|
363
|
+
* @param object
|
|
364
|
+
* @param defaultIcon
|
|
365
|
+
* @param extraConfig
|
|
366
|
+
* @returns A string with the name of a FontAwesome v4.7.0 icon. {@link https://fontawesome.com/v4.7.0/icons/ See the full list of available icons}.
|
|
367
|
+
* For more details, {@link https://docs.seats.io/docs/event-manager/modes/select#objecticon see the documentation}.
|
|
368
|
+
*/
|
|
369
|
+
objectIcon?: (object: SelectableObjectProps, defaultIcon: string | null, extraConfig?: ExtraConfig) => string;
|
|
370
|
+
objectTooltip?: {
|
|
371
|
+
showOrderId?: boolean;
|
|
372
|
+
showTechnicalLabel?: boolean;
|
|
373
|
+
showLabel?: boolean;
|
|
374
|
+
showCategory?: boolean;
|
|
375
|
+
showChannel?: boolean;
|
|
376
|
+
showActionHint?: boolean;
|
|
377
|
+
};
|
|
362
378
|
}
|
|
363
379
|
export interface EventManagerStaticModeConfigOptions extends BaseEventManagerConfigOptions, WithEvents {
|
|
364
380
|
mode: 'static';
|
|
@@ -679,6 +695,7 @@ interface SelectionValidatorNoOrphanSeats {
|
|
|
679
695
|
type: 'noOrphanSeats';
|
|
680
696
|
mode?: 'strict' | 'lenient';
|
|
681
697
|
highlight?: boolean;
|
|
698
|
+
ignoreCategories?: boolean;
|
|
682
699
|
}
|
|
683
700
|
interface SelectionValidatorConsecutiveSeats {
|
|
684
701
|
type: 'consecutiveSeats';
|
|
@@ -861,7 +878,7 @@ export interface SeatingChart {
|
|
|
861
878
|
zoomToObjects: (labels: string[]) => Promise<void>;
|
|
862
879
|
zoomToSelectedObjects: () => Promise<void>;
|
|
863
880
|
}
|
|
864
|
-
export interface EventManager extends Pick<SeatingChart, 'clearSelection' | 'deselectCategories' | 'deselectObjects' | 'destroy' | 'findObject' | 'listCategories' | 'listSelectedObjects' | 'render' | 'rerender' | 'resetView' | 'selectCategories' | 'selectObjects' | 'zoomToObjects' | 'zoomToSection' | 'zoomToSelectedObjects' | 'pulse' | 'unpulse'> {
|
|
881
|
+
export interface EventManager extends Pick<SeatingChart, 'clearSelection' | 'deselectCategories' | 'deselectObjects' | 'destroy' | 'findObject' | 'listCategories' | 'listSelectedObjects' | 'selectedObjects' | 'render' | 'rerender' | 'resetView' | 'selectCategories' | 'selectObjects' | 'zoomToObjects' | 'zoomToSection' | 'zoomToSelectedObjects' | 'pulse' | 'unpulse'> {
|
|
865
882
|
setHighlightedObjects(strings: string[]): void;
|
|
866
883
|
clearHighlightedObjects(): void;
|
|
867
884
|
setFilteredSection(label: string): void;
|