platform-calendar-seatmap 1.0.1 → 1.0.2
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/elementSelector/dropdown/sections/standingArea/StandingArea.d.ts +1 -1
- package/dist/components/elementSelector/dropdown/sections/text/Text.d.ts +1 -1
- package/dist/components/elementWrapper/ElementWrapper.d.ts +3 -0
- package/dist/components/elements/object/Object.d.ts +2 -2
- package/dist/components/rotate/Rotate.d.ts +1 -1
- package/dist/helpers/constants/commons.d.ts +3 -1
- package/dist/helpers/constants/defaults.d.ts +5 -2
- package/dist/helpers/functions/commons.d.ts +4 -1
- package/dist/helpers/functions/seatingGroup.d.ts +4 -0
- package/dist/helpers/types/commons.d.ts +4 -0
- package/dist/helpers/types/seatMap.d.ts +17 -1
- package/dist/hooks/useElementWrapperActionHandlers.d.ts +11 -0
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +12 -0
- package/dist/lib/numberInputWithSlider/NumberInputWithSlider.d.ts +9 -0
- package/dist/store/reducers/elementSelector/actionCreators.d.ts +6 -5
- package/dist/store/reducers/elementSelector/selectors.d.ts +2 -1
- package/dist/store/reducers/elementSelector/types.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { FC, MutableRefObject, PropsWithChildren } from 'react';
|
|
2
|
+
import { T_Element } from '../../helpers/types/seatMap';
|
|
2
3
|
type T_Props = {
|
|
3
4
|
rotateContainer: MutableRefObject<HTMLElement | null>;
|
|
5
|
+
elementId: T_Element['id'];
|
|
4
6
|
disablePadding?: boolean;
|
|
5
7
|
onEdit?: () => void;
|
|
6
8
|
onDelete?: () => void;
|
|
9
|
+
onDuplicate?: () => void;
|
|
7
10
|
};
|
|
8
11
|
declare const ElementWrapper: FC<PropsWithChildren<T_Props>>;
|
|
9
12
|
export { ElementWrapper };
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
declare const ALPHABET: string[];
|
|
2
|
-
|
|
2
|
+
declare const CURVE_UPDATED_EVENT_NAME = "CUSTOM_EVENTS/CURVE_UPDATED_EVENT";
|
|
3
|
+
declare const STRETCH_UPDATED_EVENT_NAME = "CUSTOM_EVENTS/STRETCH_UPDATED_EVENT_NAME";
|
|
4
|
+
export { ALPHABET, CURVE_UPDATED_EVENT_NAME, STRETCH_UPDATED_EVENT_NAME };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { T_Element_Object, T_Element_SeatingGroup } from '../types/seatMap';
|
|
1
|
+
import { T_Element_Object, T_Element_SeatingGroup, T_Element_StandingArea, T_Element_Table, T_Element_Text } from '../types/seatMap';
|
|
2
2
|
declare const D_ELEMENT_OBJECT: T_Element_Object;
|
|
3
3
|
declare const D_ELEMENT_SEATING_GROUP: T_Element_SeatingGroup;
|
|
4
|
-
|
|
4
|
+
declare const D_ELEMENT_STANDING_AREA: T_Element_StandingArea;
|
|
5
|
+
declare const D_ELEMENT_TEXT: T_Element_Text;
|
|
6
|
+
declare const D_ELEMENT_TABLE: T_Element_Table;
|
|
7
|
+
export { D_ELEMENT_OBJECT, D_ELEMENT_SEATING_GROUP, D_ELEMENT_STANDING_AREA, D_ELEMENT_TEXT, D_ELEMENT_TABLE };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { T_Element_Object, T_Element_StandingArea } from '../types/seatMap';
|
|
1
2
|
declare const getElementStyles: (element: HTMLElement) => {
|
|
2
3
|
top: number;
|
|
3
4
|
left: number;
|
|
4
5
|
height: number;
|
|
5
6
|
width: number;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
+
declare const debounce: (func: any, delay: number) => (...args: any) => void;
|
|
9
|
+
declare const islementCornarRadiusesSame: (element: T_Element_Object | T_Element_StandingArea) => boolean;
|
|
10
|
+
export { getElementStyles, debounce, islementCornarRadiusesSame };
|
|
@@ -15,7 +15,7 @@ type T_Seat = {
|
|
|
15
15
|
ticketId: number;
|
|
16
16
|
locked: boolean;
|
|
17
17
|
hide: boolean;
|
|
18
|
-
|
|
18
|
+
placement?: 'top' | 'right' | 'bottom' | 'left';
|
|
19
19
|
};
|
|
20
20
|
type T_Element_SeatingGroup = {
|
|
21
21
|
id: string;
|
|
@@ -28,13 +28,23 @@ type T_Element_SeatingGroup = {
|
|
|
28
28
|
top: number;
|
|
29
29
|
left: number;
|
|
30
30
|
};
|
|
31
|
+
curve: number;
|
|
32
|
+
stretch: number;
|
|
33
|
+
rotate: number;
|
|
31
34
|
};
|
|
32
35
|
type T_Element_StandingArea = {
|
|
33
36
|
id: string;
|
|
34
37
|
title: string;
|
|
38
|
+
backgroundColor: string;
|
|
35
39
|
height: number;
|
|
36
40
|
width: number;
|
|
37
41
|
ticketId: number;
|
|
42
|
+
cornerRadius: {
|
|
43
|
+
topLeft: number;
|
|
44
|
+
topRight: number;
|
|
45
|
+
bottomLeft: number;
|
|
46
|
+
bottomRight: number;
|
|
47
|
+
};
|
|
38
48
|
position: {
|
|
39
49
|
top: number;
|
|
40
50
|
left: number;
|
|
@@ -61,6 +71,12 @@ type T_Element_Object = {
|
|
|
61
71
|
icon: string;
|
|
62
72
|
iconColor: string;
|
|
63
73
|
backgroundColor: string;
|
|
74
|
+
cornerRadius: {
|
|
75
|
+
topLeft: number;
|
|
76
|
+
topRight: number;
|
|
77
|
+
bottomLeft: number;
|
|
78
|
+
bottomRight: number;
|
|
79
|
+
};
|
|
64
80
|
position: {
|
|
65
81
|
top: number;
|
|
66
82
|
left: number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { T_Element, T_ElementType } from '../helpers/types/seatMap';
|
|
2
|
+
type T_Props = {
|
|
3
|
+
element: T_Element;
|
|
4
|
+
elementType: T_ElementType;
|
|
5
|
+
};
|
|
6
|
+
declare const useElementWrapperActionHandlers: ({ element, elementType }: T_Props) => {
|
|
7
|
+
deleteElement: () => void;
|
|
8
|
+
editElement: () => void;
|
|
9
|
+
duplicateElement: () => void;
|
|
10
|
+
};
|
|
11
|
+
export { useElementWrapperActionHandlers };
|