@seatsio/seatsio-types 2.5.0 → 2.6.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 +11 -11
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,11 +27,11 @@ export interface CommonConfigOptions {
|
|
|
27
27
|
*/
|
|
28
28
|
divId?: string;
|
|
29
29
|
}
|
|
30
|
-
interface WithEvents {
|
|
30
|
+
export interface WithEvents {
|
|
31
31
|
event?: string;
|
|
32
32
|
events?: string[];
|
|
33
33
|
}
|
|
34
|
-
interface WithEvent {
|
|
34
|
+
export interface WithEvent {
|
|
35
35
|
event: string;
|
|
36
36
|
}
|
|
37
37
|
type Session = 'continue' | 'manual' | 'none' | 'start';
|
|
@@ -278,7 +278,7 @@ export interface ChartRendererConfigOptions extends DeprecatedConfigProperties,
|
|
|
278
278
|
channels?: string[];
|
|
279
279
|
}
|
|
280
280
|
export type ExtractedEventManagerProps = Pick<ChartRendererConfigOptions, 'colors' | 'colorScheme' | 'extraConfig' | 'fitTo' | 'objectColor' | 'showFullScreenButton' | 'style' | 'stylePreset' | 'tooltipInfo' | 'themePreset' | 'themeColors'>;
|
|
281
|
-
interface BaseEventManagerConfigOptions extends CommonConfigOptions, ExtractedEventManagerProps, EventManagerCallbacks {
|
|
281
|
+
export interface BaseEventManagerConfigOptions extends CommonConfigOptions, ExtractedEventManagerProps, EventManagerCallbacks {
|
|
282
282
|
mode: EventManagerMode;
|
|
283
283
|
/**
|
|
284
284
|
* The secret key of a workspace.
|
|
@@ -329,24 +329,24 @@ interface BaseEventManagerConfigOptions extends CommonConfigOptions, ExtractedEv
|
|
|
329
329
|
useChannelColors?: boolean;
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
interface EventManagerManageObjectStatusesModeConfigOptions extends BaseEventManagerConfigOptions, WithEvents {
|
|
332
|
+
export interface EventManagerManageObjectStatusesModeConfigOptions extends BaseEventManagerConfigOptions, WithEvents {
|
|
333
333
|
mode: 'manageObjectStatuses';
|
|
334
334
|
session?: Session;
|
|
335
335
|
}
|
|
336
|
-
interface EventManagerManageChannelsModeConfigOptions extends BaseEventManagerConfigOptions, WithEvent {
|
|
336
|
+
export interface EventManagerManageChannelsModeConfigOptions extends BaseEventManagerConfigOptions, WithEvent {
|
|
337
337
|
mode: 'manageChannels';
|
|
338
338
|
manageChannelsList?: boolean;
|
|
339
339
|
unavailableObjectsSelectable?: boolean;
|
|
340
340
|
}
|
|
341
|
-
interface EventManagerManageCategoriesModeConfigOptions extends BaseEventManagerConfigOptions, WithEvent {
|
|
341
|
+
export interface EventManagerManageCategoriesModeConfigOptions extends BaseEventManagerConfigOptions, WithEvent {
|
|
342
342
|
mode: 'manageCategories';
|
|
343
343
|
unavailableObjectsSelectable?: boolean;
|
|
344
344
|
}
|
|
345
|
-
interface EventManagerFilterSectionsModeConfigOptions extends BaseEventManagerConfigOptions, WithEvent {
|
|
345
|
+
export interface EventManagerFilterSectionsModeConfigOptions extends BaseEventManagerConfigOptions, WithEvent {
|
|
346
346
|
mode: 'filterSections';
|
|
347
347
|
onFilteredSectionChange: (sectionLabels: string[]) => {};
|
|
348
348
|
}
|
|
349
|
-
interface EventManagerSelectModeConfigOptions extends BaseEventManagerConfigOptions, WithEvents {
|
|
349
|
+
export interface EventManagerSelectModeConfigOptions extends BaseEventManagerConfigOptions, WithEvents {
|
|
350
350
|
mode: 'select';
|
|
351
351
|
maxSelectedObjects?: SelectionLimiter;
|
|
352
352
|
numberOfPlacesToSelect?: number;
|
|
@@ -357,7 +357,7 @@ interface EventManagerSelectModeConfigOptions extends BaseEventManagerConfigOpti
|
|
|
357
357
|
unavailableObjectsSelectable?: boolean;
|
|
358
358
|
selectableObjects?: string[];
|
|
359
359
|
}
|
|
360
|
-
interface EventManagerStaticModeConfigOptions extends BaseEventManagerConfigOptions, WithEvents {
|
|
360
|
+
export interface EventManagerStaticModeConfigOptions extends BaseEventManagerConfigOptions, WithEvents {
|
|
361
361
|
mode: 'static';
|
|
362
362
|
onObjectMouseOver?: (object: SelectableObjectProps) => void;
|
|
363
363
|
onObjectMouseOut?: (object: SelectableObjectProps) => void;
|
|
@@ -593,10 +593,10 @@ export type CategoryFilter = {
|
|
|
593
593
|
*/
|
|
594
594
|
zoomOnSelect?: boolean;
|
|
595
595
|
/**
|
|
596
|
-
* Sort categories by
|
|
596
|
+
* Sort categories by property, or use `none` for the order they are defined on the chart
|
|
597
597
|
* @default price
|
|
598
598
|
*/
|
|
599
|
-
sortBy?: 'price' | '
|
|
599
|
+
sortBy?: 'none' | 'name' | 'price' | 'priceDescending';
|
|
600
600
|
};
|
|
601
601
|
export type DeprecatedConfigProperties = {
|
|
602
602
|
/**
|