platform-calendar-seatmap 2.0.2 → 2.1.3
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/.github/workflows/auto-pr-staging-to-main.yml +34 -0
- package/dist/components/actionsHandler/ActionsHandler.d.ts +1 -0
- package/dist/components/app/App.d.ts +9 -5
- package/dist/components/background/Background.d.ts +2 -0
- package/dist/components/elementSelector/ElementSelector.d.ts +1 -2
- package/dist/components/elementSelector/dropdown/Dropdown.d.ts +1 -1
- package/dist/components/elementSelector/dropdown/sections/aisles/Aisles.d.ts +1 -1
- package/dist/components/elementSelector/dropdown/sections/objects/Objects.d.ts +1 -1
- package/dist/components/elementSelector/dropdown/sections/seatingGroup/SeatingGroup.d.ts +1 -1
- package/dist/components/elementSelector/dropdown/sections/standingArea/StandingArea.d.ts +1 -1
- package/dist/components/elementSelector/dropdown/sections/tables/Tables.d.ts +1 -1
- package/dist/components/elementSelector/dropdown/sections/text/Text.d.ts +1 -1
- package/dist/components/elements/aisle/Aisle.d.ts +1 -1
- package/dist/components/elements/table/round/Round.d.ts +7 -3
- package/dist/components/elements/table/square/Square.d.ts +7 -3
- package/dist/components/numberingSettings/NumberingSettings.d.ts +3 -2
- package/dist/components/onboarding/Onboarding.d.ts +2 -0
- package/dist/components/scene3d/Scene3D.d.ts +1 -1
- package/dist/components/sceneContainer/SceneContainer.d.ts +1 -1
- package/dist/components/seat/Seat.d.ts +8 -2
- package/dist/components/seatTooltip/SeatTooltip.d.ts +2 -0
- package/dist/components/tableNumberingSettings/TableNumberingSettings.d.ts +16 -0
- package/dist/helpers/constants/commons.d.ts +7 -1
- package/dist/helpers/constants/numberingStyles.d.ts +198 -10
- package/dist/helpers/constants/seatColors.d.ts +1 -0
- package/dist/helpers/functions/export.d.ts +1 -1
- package/dist/helpers/functions/rowLabels.d.ts +2 -2
- package/dist/helpers/functions/seatMap.d.ts +2 -1
- package/dist/helpers/functions/seatStatus.d.ts +16 -6
- package/dist/helpers/functions/statistics.d.ts +1 -1
- package/dist/helpers/types/commons.d.ts +1 -1
- package/dist/hooks/useElementWrapperActionHandlers.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +1000 -0
- package/dist/store/reducers/actionHandlers/selectors.d.ts +1 -1
- package/dist/store/reducers/actionHandlers/types.d.ts +1 -1
- package/dist/store/reducers/clipboard/actionCreators.d.ts +1 -1
- package/dist/store/reducers/clipboard/types.d.ts +1 -1
- package/dist/store/reducers/main/actionCreators.d.ts +5 -3
- package/dist/store/reducers/main/actionTypes.d.ts +3 -1
- package/dist/store/reducers/main/selectors.d.ts +5 -3
- package/dist/store/reducers/main/types.d.ts +19 -5
- package/dist/store/reducers/rootReducer.d.ts +1 -1
- package/dist/store/reducers/seatMap/selectors.d.ts +1 -1
- package/dist/store/reducers/seatMap/types.d.ts +2 -2
- package/package.json +2 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T_RootState } from
|
|
1
|
+
import { T_RootState } from 'store/store';
|
|
2
2
|
declare const selectChangeHandler: (state: T_RootState) => (edited: boolean, seatMap: import("platform-calendar-helpers").T_SeatMap) => void;
|
|
3
3
|
declare const selectSelectHandler: (state: T_RootState) => (seats: (import("platform-calendar-helpers").T_Seat & {
|
|
4
4
|
elementId: import("platform-calendar-helpers").T_Element["id"];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { T_Element, T_Seat, T_SeatMap } from 'platform-calendar-helpers';
|
|
2
|
-
import { T_ElementType_SeatMap } from
|
|
2
|
+
import { T_ElementType_SeatMap } from 'store/reducers/seatMap/types';
|
|
3
3
|
import { SET_ACTION_HANDLERS } from './actionTypes';
|
|
4
4
|
type T_ActionHandlersState = {
|
|
5
5
|
onChange: (edited: boolean, seatMap: T_SeatMap) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { T_Element } from 'platform-calendar-helpers';
|
|
2
|
-
import { T_ElementType_SeatMap } from
|
|
2
|
+
import { T_ElementType_SeatMap } from 'store/reducers/seatMap/types';
|
|
3
3
|
import { T_CopyElementAction, T_ClearClipboardAction } from './types';
|
|
4
4
|
declare const copyElement: (element: T_Element, elementType: T_ElementType_SeatMap) => T_CopyElementAction;
|
|
5
5
|
declare const clearClipboard: () => T_ClearClipboardAction;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { T_Element } from 'platform-calendar-helpers';
|
|
2
|
-
import { T_ElementType_SeatMap } from
|
|
2
|
+
import { T_ElementType_SeatMap } from 'store/reducers/seatMap/types';
|
|
3
3
|
import { COPY_ELEMENT, CLEAR_CLIPBOARD } from './actionTypes';
|
|
4
4
|
type T_ClipboardState = {
|
|
5
5
|
element: T_Element | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T_Mode } from
|
|
1
|
+
import { T_Mode } from 'helpers/types/commons';
|
|
2
2
|
import { T_Ticket } from 'platform-calendar-helpers';
|
|
3
|
-
import { T_SetElementToDelete, T_SetError, T_SetHasChanges, T_SetInitialized, T_SetIsDraggingScene, T_SetMode, T_SetScale, T_SetSoldSeats, T_SetTickets, T_SetBackgroundColor, T_SetCurrencySymbol } from './types';
|
|
3
|
+
import { T_SetElementToDelete, T_SetError, T_SetHasChanges, T_SetInitialized, T_SetIsDraggingScene, T_SetMode, T_SetScale, T_SetSoldSeats, T_SetTickets, T_SetBackgroundColor, T_SetCurrencySymbol, T_SetIsFullscreen, T_SetTicketColors } from './types';
|
|
4
4
|
declare const setScale: (scale: number) => T_SetScale;
|
|
5
5
|
declare const setIsDraggingScene: (isDraggingScene: boolean) => T_SetIsDraggingScene;
|
|
6
6
|
declare const setElementToDelete: (elementToDelete: T_SetElementToDelete["payload"]["elementToDelete"]) => T_SetElementToDelete;
|
|
@@ -12,4 +12,6 @@ declare const setError: (payload: T_SetError["payload"]) => T_SetError;
|
|
|
12
12
|
declare const setSoldSeats: (soldSeats: T_SetSoldSeats["payload"]["soldSeats"]) => T_SetSoldSeats;
|
|
13
13
|
declare const setBackgroundColor: (backgroundColor: string) => T_SetBackgroundColor;
|
|
14
14
|
declare const setCurrencySymbol: (currencySymbol: string) => T_SetCurrencySymbol;
|
|
15
|
-
|
|
15
|
+
declare const setIsFullscreen: (isFullscreen: boolean) => T_SetIsFullscreen;
|
|
16
|
+
declare const setTicketColors: (ticketColors: Record<string, string>) => T_SetTicketColors;
|
|
17
|
+
export { setScale, setIsDraggingScene, setElementToDelete, setInitialized, setTickets, setHasChanges, setMode, setError, setSoldSeats, setBackgroundColor, setCurrencySymbol, setIsFullscreen, setTicketColors };
|
|
@@ -9,4 +9,6 @@ declare const SET_ERROR = "MAIN/SET_ERROR";
|
|
|
9
9
|
declare const SET_SOLD_SEATS = "MAIN/SET_SOLD_SEATS";
|
|
10
10
|
declare const SET_BACKGROUND_COLOR = "MAIN/SET_BACKGROUND_COLOR";
|
|
11
11
|
declare const SET_CURRENCY_SYMBOL = "MAIN/SET_CURRENCY_SYMBOL";
|
|
12
|
-
|
|
12
|
+
declare const SET_IS_FULLSCREEN = "MAIN/SET_IS_FULLSCREEN";
|
|
13
|
+
declare const SET_TICKET_COLORS = "MAIN/SET_TICKET_COLORS";
|
|
14
|
+
export { SET_SCALE, SET_IS_DRAGGING_SCENE, SET_ELEMENT_TO_DELETE, SET_INITIALIZED, SET_TICKETS, SET_HAS_CHANGES, SET_MODE, SET_ERROR, SET_SOLD_SEATS, SET_BACKGROUND_COLOR, SET_CURRENCY_SYMBOL, SET_IS_FULLSCREEN, SET_TICKET_COLORS };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T_Mode } from
|
|
1
|
+
import { T_Mode } from 'helpers/types/commons';
|
|
2
2
|
import { T_Ticket } from 'platform-calendar-helpers';
|
|
3
|
-
import { T_RootState } from
|
|
3
|
+
import { T_RootState } from 'store/store';
|
|
4
4
|
import { T_MainState } from './types';
|
|
5
5
|
declare const selectInitialized: (state: T_RootState) => boolean;
|
|
6
6
|
declare const selectScale: (state: T_RootState) => number;
|
|
@@ -13,6 +13,8 @@ declare const selectEmptyNameError: (state: T_RootState) => boolean;
|
|
|
13
13
|
declare const selectSoldSeats: (state: T_RootState) => T_MainState["soldSeats"];
|
|
14
14
|
declare const selectBackgroundColor: (state: T_RootState) => string;
|
|
15
15
|
declare const selectCurrencySymbol: (state: T_RootState) => string;
|
|
16
|
+
declare const selectIsFullscreen: (state: T_RootState) => boolean;
|
|
17
|
+
declare const selectTicketColors: (state: T_RootState) => Record<string, string>;
|
|
16
18
|
declare const selectTicketByIds: ((state: T_RootState) => {
|
|
17
19
|
ticketIds: {
|
|
18
20
|
[key: string | number]: boolean;
|
|
@@ -62,4 +64,4 @@ declare const selectTicketByIds: ((state: T_RootState) => {
|
|
|
62
64
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
63
65
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
64
66
|
};
|
|
65
|
-
export { selectScale, selectIsDraggingScene, selectElementToDelete, selectTickets, selectInitialized, selectHasChanges, selectMode, selectTicketByIds, selectEmptyNameError, selectSoldSeats, selectBackgroundColor, selectCurrencySymbol };
|
|
67
|
+
export { selectScale, selectIsDraggingScene, selectElementToDelete, selectTickets, selectInitialized, selectHasChanges, selectMode, selectTicketByIds, selectEmptyNameError, selectSoldSeats, selectBackgroundColor, selectCurrencySymbol, selectIsFullscreen, selectTicketColors };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { T_Mode } from
|
|
1
|
+
import { T_Mode } from 'helpers/types/commons';
|
|
2
2
|
import { T_Element, T_Ticket } from 'platform-calendar-helpers';
|
|
3
|
-
import { T_AddElement, T_DeleteElement, T_EditElement, T_EditSeats, T_ElementType_SeatMap, T_SetElementPosition, T_SetSeatMapName } from
|
|
3
|
+
import { T_AddElement, T_DeleteElement, T_EditElement, T_EditSeats, T_ElementType_SeatMap, T_SetElementPosition, T_SetSeatMapName } from 'store/reducers/seatMap/types';
|
|
4
4
|
import { T_SelectedSeats } from '../elementSelector/types';
|
|
5
|
-
import { SET_ELEMENT_TO_DELETE, SET_ERROR, SET_HAS_CHANGES, SET_INITIALIZED, SET_IS_DRAGGING_SCENE, SET_MODE, SET_SCALE, SET_SOLD_SEATS, SET_TICKETS, SET_BACKGROUND_COLOR, SET_CURRENCY_SYMBOL } from './actionTypes';
|
|
5
|
+
import { SET_ELEMENT_TO_DELETE, SET_ERROR, SET_HAS_CHANGES, SET_INITIALIZED, SET_IS_DRAGGING_SCENE, SET_MODE, SET_SCALE, SET_SOLD_SEATS, SET_TICKETS, SET_BACKGROUND_COLOR, SET_CURRENCY_SYMBOL, SET_IS_FULLSCREEN, SET_TICKET_COLORS } from './actionTypes';
|
|
6
6
|
type T_MainState = {
|
|
7
7
|
initialized: boolean;
|
|
8
8
|
scale: number;
|
|
@@ -19,7 +19,9 @@ type T_MainState = {
|
|
|
19
19
|
};
|
|
20
20
|
soldSeats: T_SelectedSeats[keyof T_SelectedSeats][];
|
|
21
21
|
backgroundColor: string;
|
|
22
|
+
ticketColors: Record<string, string>;
|
|
22
23
|
currencySymbol: string;
|
|
24
|
+
isFullscreen: boolean;
|
|
23
25
|
};
|
|
24
26
|
type T_SetScale = {
|
|
25
27
|
type: typeof SET_SCALE;
|
|
@@ -85,5 +87,17 @@ type T_SetCurrencySymbol = {
|
|
|
85
87
|
currencySymbol: string;
|
|
86
88
|
};
|
|
87
89
|
};
|
|
88
|
-
type
|
|
89
|
-
|
|
90
|
+
type T_SetIsFullscreen = {
|
|
91
|
+
type: typeof SET_IS_FULLSCREEN;
|
|
92
|
+
payload: {
|
|
93
|
+
isFullscreen: boolean;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
type T_SetTicketColors = {
|
|
97
|
+
type: typeof SET_TICKET_COLORS;
|
|
98
|
+
payload: {
|
|
99
|
+
ticketColors: Record<string, string>;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
type T_MainReducerAction = T_SetScale | T_SetIsDraggingScene | T_SetElementToDelete | T_DeleteElement | T_SetInitialized | T_SetTickets | T_SetHasChanges | T_AddElement | T_DeleteElement | T_SetElementPosition | T_EditSeats | T_EditElement | T_SetMode | T_SetSeatMapName | T_SetError | T_SetSoldSeats | T_SetBackgroundColor | T_SetCurrencySymbol | T_SetIsFullscreen | T_SetTicketColors;
|
|
103
|
+
export type { T_MainState, T_SetScale, T_MainReducerAction, T_SetIsDraggingScene, T_SetElementToDelete, T_SetInitialized, T_SetTickets, T_SetHasChanges, T_SetMode, T_SetError, T_SetSoldSeats, T_SetBackgroundColor, T_SetCurrencySymbol, T_SetIsFullscreen, T_SetTicketColors };
|
|
@@ -5,7 +5,7 @@ declare const rootReducer: import("redux").Reducer<{
|
|
|
5
5
|
actionHandlers: import("./actionHandlers/types").T_ActionHandlersState;
|
|
6
6
|
history: import("./history/types").T_HistoryState;
|
|
7
7
|
clipboard: import("./clipboard/types").T_ClipboardState;
|
|
8
|
-
}, import("./seatMap/types").T_SetSeatMap | import("./main/types").T_SetBackgroundColor | import("./main/types").
|
|
8
|
+
}, import("./main/types").T_SetIsFullscreen | import("./main/types").T_SetMode | import("./seatMap/types").T_SetSeatMap | import("./main/types").T_SetBackgroundColor | import("./main/types").T_SetTicketColors | import("./main/types").T_SetSoldSeats | import("./main/types").T_SetTickets | import("./main/types").T_SetCurrencySymbol | import("./actionHandlers/types").T_SetActionHandlers | import("./main/types").T_SetHasChanges | import("./main/types").T_SetInitialized | import("./main/types").T_SetIsDraggingScene | import("./elementSelector/types").T_SetSelectorActiveELement | import("./main/types").T_SetElementToDelete | import("./seatMap/types").T_DeleteElement | import("./main/types").T_SetScale | import("./elementSelector/types").T_UnselectSeats | import("./elementSelector/types").T_SetSelected | import("./elementSelector/types").T_AddSelectedSeats | import("./main/types").T_SetError | import("./seatMap/types").T_AddElement | import("./seatMap/types").T_SetElementPosition | import("./seatMap/types").T_EditSeats | import("./seatMap/types").T_EditElement | import("./seatMap/types").T_SetSeatMapName | import("./seatMap/types").T_ResetDefaultElement | import("./history/types").T_UndoAction | import("./history/types").T_RedoAction | import("./history/types").T_ClearHistoryAction | {
|
|
9
9
|
type: typeof import("./history/reducer").UPDATE_HISTORY;
|
|
10
10
|
payload: {
|
|
11
11
|
past: import("platform-calendar-helpers").T_SeatMap[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { T_Element, T_ElementType, T_Seat, T_SeatMap } from 'platform-calendar-helpers';
|
|
2
|
-
import { T_RootState } from
|
|
2
|
+
import { T_RootState } from 'store/store';
|
|
3
3
|
declare const selectSeatMap: (state: T_RootState) => T_SeatMap;
|
|
4
4
|
declare const selectSeatMapName: (state: T_RootState) => T_SeatMap["name"];
|
|
5
5
|
/** Sum of standing area limits per ticket ID (capacity "claimed" by standing areas for each ticket). */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RecursivePartial } from
|
|
1
|
+
import { RecursivePartial } from 'helpers/types/commons';
|
|
2
2
|
import { T_Element, T_ElementType, T_Seat, T_SeatMap } from 'platform-calendar-helpers';
|
|
3
|
-
import { T_Element_Aisle } from
|
|
3
|
+
import { T_Element_Aisle } from 'helpers/types/aisle';
|
|
4
4
|
import { ADD_ELEMENT, DELETE_ELEMENT, EDIT_ELEMENT, EDIT_SEATS, RESET_DEFAULT_ELEMENT, SET_ELEMENT_POSITION, SET_SEAT_MAP, SET_SEAT_MAP_NAME } from './actionTypes';
|
|
5
5
|
type T_ElementType_SeatMap = T_ElementType | 'aisles';
|
|
6
6
|
type T_Element_SeatMap = T_Element | T_Element_Aisle;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "platform-calendar-seatmap",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Powerful and customizable calendar package",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Arman Azaryan"
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "rimraf ./dist && webpack --env production",
|
|
13
|
-
"watch": "rimraf ./dist && webpack --env production --watch",
|
|
14
13
|
"start": "webpack serve --env development --hot --mode development",
|
|
15
14
|
"deploy": "npm i && npm run build && npm version patch && npm publish"
|
|
16
15
|
},
|
|
@@ -22,7 +21,7 @@
|
|
|
22
21
|
"@wix/design-system": "^1.121.0",
|
|
23
22
|
"@wix/wix-ui-icons-common": "^3.39.0",
|
|
24
23
|
"classnames": "^2.5.1",
|
|
25
|
-
"platform-calendar-helpers": "^1.5.
|
|
24
|
+
"platform-calendar-helpers": "^1.5.1",
|
|
26
25
|
"react-redux": "^9.1.2",
|
|
27
26
|
"redux": "^5.0.1",
|
|
28
27
|
"reselect": "^5.1.1",
|