platform-calendar-seatmap 1.0.16 → 1.0.17
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/components/elements/table/round/Round.d.ts +2 -0
- package/dist/components/elements/table/square/Square.d.ts +2 -0
- package/dist/components/resizer/Resizer.d.ts +4 -0
- package/dist/components/seat/Seat.d.ts +2 -3
- package/dist/helpers/functions/seatMap.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/store/reducers/actionHandlers/selectors.d.ts +5 -1
- package/dist/store/reducers/actionHandlers/types.d.ts +6 -2
- package/dist/store/reducers/elementSelector/actionCreators.d.ts +5 -2
- package/dist/store/reducers/elementSelector/actionTypes.d.ts +5 -3
- package/dist/store/reducers/elementSelector/types.d.ts +25 -4
- package/dist/store/reducers/rootReducer.d.ts +1 -1
- package/dist/store/reducers/seatMap/selectors.d.ts +57 -55
- package/dist/store/store.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { T_Element_Table } from 'platform-calendar-helpers';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
+
import { selectSelectedSeatsObj } from 'store/reducers/seatMap/selectors';
|
|
3
4
|
type T_Props = {
|
|
4
5
|
table: T_Element_Table;
|
|
6
|
+
selectedSeatsObj: ReturnType<typeof selectSelectedSeatsObj>;
|
|
5
7
|
};
|
|
6
8
|
declare const Round: FC<T_Props>;
|
|
7
9
|
export { Round };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { T_Element_Table } from 'platform-calendar-helpers';
|
|
2
2
|
import { FC } from 'react';
|
|
3
|
+
import { selectSelectedSeatsObj } from 'store/reducers/seatMap/selectors';
|
|
3
4
|
type T_Props = {
|
|
4
5
|
table: T_Element_Table;
|
|
6
|
+
selectedSeatsObj: ReturnType<typeof selectSelectedSeatsObj>;
|
|
5
7
|
};
|
|
6
8
|
declare const Square: FC<T_Props>;
|
|
7
9
|
export { Square };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FC, RefObject } from 'react';
|
|
2
|
+
import { T_Element } from 'platform-calendar-helpers';
|
|
2
3
|
type T_UpdatedSizes = {
|
|
3
4
|
top: number;
|
|
4
5
|
left: number;
|
|
@@ -8,6 +9,9 @@ type T_UpdatedSizes = {
|
|
|
8
9
|
type T_Props = {
|
|
9
10
|
resizeContainer: RefObject<HTMLElement>;
|
|
10
11
|
positionAdjustContainer: RefObject<HTMLElement>;
|
|
12
|
+
elementPosition: T_Element['position'];
|
|
13
|
+
elementheight: number;
|
|
14
|
+
elementWidth: number;
|
|
11
15
|
onResizeEnd: (updatedSizes: T_UpdatedSizes) => void;
|
|
12
16
|
};
|
|
13
17
|
declare const Resizer: FC<T_Props>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { T_Seat } from 'platform-calendar-helpers';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
type T_Props = {
|
|
4
4
|
seat: T_Seat;
|
|
5
|
-
|
|
6
|
-
elementType: T_ElementTypeContainingSeats;
|
|
5
|
+
selected: boolean;
|
|
7
6
|
iconType?: 0 | 1 | 2;
|
|
8
7
|
absolutePosition?: {
|
|
9
8
|
top?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { T_SeatMap } from 'platform-calendar-helpers';
|
|
2
2
|
declare const removeFakeElementsFromSeatMap: (_seatMap: T_SeatMap) => T_SeatMap;
|
|
3
|
-
declare const
|
|
4
|
-
export { removeFakeElementsFromSeatMap,
|
|
3
|
+
declare const addFakeElementsToSeatMap: (_seatMap: T_SeatMap) => T_SeatMap;
|
|
4
|
+
export { removeFakeElementsFromSeatMap, addFakeElementsToSeatMap };
|