platform-calendar-seatmap 2.0.1 → 2.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.
Files changed (113) hide show
  1. package/dist/9ff54b1cefde15da74a9.svg +198 -0
  2. package/dist/components/actionsHandler/ActionsHandler.d.ts +11 -0
  3. package/dist/components/alignmentGuides/AlignmentGuides.d.ts +6 -0
  4. package/dist/components/app/App.d.ts +18 -0
  5. package/dist/components/background/Background.d.ts +7 -0
  6. package/dist/components/deleteModal/DeleteModal.d.ts +4 -0
  7. package/dist/components/draggable/Draggable.d.ts +14 -0
  8. package/dist/components/elementSelector/ElementSelector.d.ts +10 -0
  9. package/dist/components/elementSelector/dropdown/Dropdown.d.ts +7 -0
  10. package/dist/components/elementSelector/dropdown/sections/aisles/Aisles.d.ts +7 -0
  11. package/dist/components/elementSelector/dropdown/sections/info/Info.d.ts +3 -0
  12. package/dist/components/elementSelector/dropdown/sections/objects/Objects.d.ts +7 -0
  13. package/dist/components/elementSelector/dropdown/sections/seatEditor/SeatEditor.d.ts +3 -0
  14. package/dist/components/elementSelector/dropdown/sections/seatingGroup/SeatingGroup.d.ts +7 -0
  15. package/dist/components/elementSelector/dropdown/sections/settings/Settings.d.ts +3 -0
  16. package/dist/components/elementSelector/dropdown/sections/standingArea/StandingArea.d.ts +7 -0
  17. package/dist/components/elementSelector/dropdown/sections/stats/Statistics.d.ts +3 -0
  18. package/dist/components/elementSelector/dropdown/sections/tables/Tables.d.ts +7 -0
  19. package/dist/components/elementSelector/dropdown/sections/text/Text.d.ts +7 -0
  20. package/dist/components/elementTitle/ElementTitle.d.ts +15 -0
  21. package/dist/components/elementWrapper/ElementWrapper.d.ts +19 -0
  22. package/dist/components/elements/aisle/Aisle.d.ts +12 -0
  23. package/dist/components/elements/object/Object.d.ts +7 -0
  24. package/dist/components/elements/seatingGroup/SeatingGroup.d.ts +7 -0
  25. package/dist/components/elements/stage/Stage.d.ts +28 -0
  26. package/dist/components/elements/standingArea/StandingArea.d.ts +7 -0
  27. package/dist/components/elements/table/Table.d.ts +7 -0
  28. package/dist/components/elements/table/round/Round.d.ts +20 -0
  29. package/dist/components/elements/table/square/Square.d.ts +20 -0
  30. package/dist/components/elements/text/Text.d.ts +7 -0
  31. package/dist/components/mouseSeatSelector/MouseSeatSelector.d.ts +6 -0
  32. package/dist/components/numberingSettings/NumberingSettings.d.ts +12 -0
  33. package/dist/components/onboarding/Onboarding.d.ts +31 -0
  34. package/dist/components/previewMode/PreviewMode.d.ts +24 -0
  35. package/dist/components/resizer/Resizer.d.ts +18 -0
  36. package/dist/components/rotate/Rotate.d.ts +9 -0
  37. package/dist/components/scene3d/InteractionController3D.d.ts +18 -0
  38. package/dist/components/scene3d/Scene3D.d.ts +13 -0
  39. package/dist/components/scene3d/builders/Object3D.d.ts +3 -0
  40. package/dist/components/scene3d/builders/SeatingGroup3D.d.ts +3 -0
  41. package/dist/components/scene3d/builders/StandingArea3D.d.ts +3 -0
  42. package/dist/components/scene3d/builders/Table3D.d.ts +3 -0
  43. package/dist/components/scene3d/builders/Text3D.d.ts +3 -0
  44. package/dist/components/scene3d/builders/materials.d.ts +11 -0
  45. package/dist/components/scene3d/builders/types.d.ts +36 -0
  46. package/dist/components/sceneContainer/SceneContainer.d.ts +10 -0
  47. package/dist/components/seat/Seat.d.ts +39 -0
  48. package/dist/components/seat/seatIcons/index.d.ts +46 -0
  49. package/dist/components/seatTooltip/SeatTooltip.d.ts +30 -0
  50. package/dist/helpers/constants/commons.d.ts +10 -0
  51. package/dist/helpers/constants/numberingStyles.d.ts +55 -0
  52. package/dist/helpers/constants/seatColors.d.ts +35 -0
  53. package/dist/helpers/constants/seatMap.d.ts +12 -0
  54. package/dist/helpers/constants/standingAreaStyles.d.ts +51 -0
  55. package/dist/helpers/functions/commons.d.ts +9 -0
  56. package/dist/helpers/functions/export.d.ts +30 -0
  57. package/dist/helpers/functions/rowLabels.d.ts +7 -0
  58. package/dist/helpers/functions/seat.d.ts +16 -0
  59. package/dist/helpers/functions/seatMap.d.ts +38 -0
  60. package/dist/helpers/functions/seatSelectionUtils.d.ts +33 -0
  61. package/dist/helpers/functions/seatStatus.d.ts +20 -0
  62. package/dist/helpers/functions/seatingGroup.d.ts +4 -0
  63. package/dist/helpers/functions/statistics.d.ts +116 -0
  64. package/dist/helpers/functions/zoomToFit.d.ts +20 -0
  65. package/dist/helpers/types/aisle.d.ts +25 -0
  66. package/dist/helpers/types/commons.d.ts +10 -0
  67. package/dist/hooks/useCopyPaste.d.ts +1 -0
  68. package/dist/hooks/useElementWrapperActionHandlers.d.ts +21 -0
  69. package/dist/hooks/useIsViewOnly.d.ts +2 -0
  70. package/dist/hooks/useKeyboardSeatNavigation.d.ts +22 -0
  71. package/dist/hooks/useKeyboardShortcuts.d.ts +1 -0
  72. package/dist/hooks/useScaleTracker.d.ts +2 -0
  73. package/dist/hooks/useSmoothZoom.d.ts +18 -0
  74. package/dist/hooks/useUndoRedo.d.ts +4 -0
  75. package/dist/index.d.ts +2 -0
  76. package/dist/index.html +1 -0
  77. package/dist/index.js +2 -0
  78. package/dist/index.js.LICENSE.txt +66 -0
  79. package/dist/lib/numberInputWithSlider/NumberInputWithSlider.d.ts +11 -0
  80. package/dist/store/middleware/historyMiddleware.d.ts +3 -0
  81. package/dist/store/reducers/actionHandlers/actionCreators.d.ts +3 -0
  82. package/dist/store/reducers/actionHandlers/actionTypes.d.ts +2 -0
  83. package/dist/store/reducers/actionHandlers/reducer.d.ts +3 -0
  84. package/dist/store/reducers/actionHandlers/selectors.d.ts +8 -0
  85. package/dist/store/reducers/actionHandlers/types.d.ts +20 -0
  86. package/dist/store/reducers/clipboard/actionCreators.d.ts +6 -0
  87. package/dist/store/reducers/clipboard/actionTypes.d.ts +3 -0
  88. package/dist/store/reducers/clipboard/reducer.d.ts +3 -0
  89. package/dist/store/reducers/clipboard/selectors.d.ts +6 -0
  90. package/dist/store/reducers/clipboard/types.d.ts +19 -0
  91. package/dist/store/reducers/elementSelector/actionCreators.d.ts +7 -0
  92. package/dist/store/reducers/elementSelector/actionTypes.d.ts +5 -0
  93. package/dist/store/reducers/elementSelector/reducer.d.ts +3 -0
  94. package/dist/store/reducers/elementSelector/selectors.d.ts +8 -0
  95. package/dist/store/reducers/elementSelector/types.d.ts +45 -0
  96. package/dist/store/reducers/history/actionCreators.d.ts +10 -0
  97. package/dist/store/reducers/history/actionTypes.d.ts +4 -0
  98. package/dist/store/reducers/history/reducer.d.ts +21 -0
  99. package/dist/store/reducers/history/selectors.d.ts +5 -0
  100. package/dist/store/reducers/history/types.d.ts +18 -0
  101. package/dist/store/reducers/main/actionCreators.d.ts +15 -0
  102. package/dist/store/reducers/main/actionTypes.d.ts +12 -0
  103. package/dist/store/reducers/main/reducer.d.ts +3 -0
  104. package/dist/store/reducers/main/selectors.d.ts +65 -0
  105. package/dist/store/reducers/main/types.d.ts +89 -0
  106. package/dist/store/reducers/rootReducer.d.ts +28 -0
  107. package/dist/store/reducers/seatMap/actionCreators.d.ts +11 -0
  108. package/dist/store/reducers/seatMap/actionTypes.d.ts +9 -0
  109. package/dist/store/reducers/seatMap/reducer.d.ts +3 -0
  110. package/dist/store/reducers/seatMap/selectors.d.ts +474 -0
  111. package/dist/store/reducers/seatMap/types.d.ts +70 -0
  112. package/dist/store/store.d.ts +19 -0
  113. package/package.json +1 -1
@@ -0,0 +1,474 @@
1
+ import { T_Element, T_ElementType, T_Seat, T_SeatMap } from 'platform-calendar-helpers';
2
+ import { T_RootState } from "../../store";
3
+ declare const selectSeatMap: (state: T_RootState) => T_SeatMap;
4
+ declare const selectSeatMapName: (state: T_RootState) => T_SeatMap["name"];
5
+ /** Sum of standing area limits per ticket ID (capacity "claimed" by standing areas for each ticket). */
6
+ declare const selectStandingAreaCapacityByTicketId: ((state: T_RootState) => {
7
+ [ticketId: number]: number;
8
+ }) & {
9
+ clearCache: () => void;
10
+ resultsCount: () => number;
11
+ resetResultsCount: () => void;
12
+ } & {
13
+ resultFunc: (resultFuncArgs_0: import("platform-calendar-helpers").T_Element_StandingArea[]) => {
14
+ [ticketId: number]: number;
15
+ };
16
+ memoizedResultFunc: ((resultFuncArgs_0: import("platform-calendar-helpers").T_Element_StandingArea[]) => {
17
+ [ticketId: number]: number;
18
+ }) & {
19
+ clearCache: () => void;
20
+ resultsCount: () => number;
21
+ resetResultsCount: () => void;
22
+ };
23
+ lastResult: () => {
24
+ [ticketId: number]: number;
25
+ };
26
+ dependencies: [(state: T_RootState) => import("platform-calendar-helpers").T_Element_StandingArea[]];
27
+ recomputations: () => number;
28
+ resetRecomputations: () => void;
29
+ dependencyRecomputations: () => number;
30
+ resetDependencyRecomputations: () => void;
31
+ } & {
32
+ memoize: typeof import("reselect").weakMapMemoize;
33
+ argsMemoize: typeof import("reselect").weakMapMemoize;
34
+ };
35
+ declare const selectSelectedElement: ((state: T_RootState) => T_Element) & {
36
+ clearCache: () => void;
37
+ resultsCount: () => number;
38
+ resetResultsCount: () => void;
39
+ } & {
40
+ resultFunc: (resultFuncArgs_0: {
41
+ seatingGroup: import("platform-calendar-helpers").T_Element_SeatingGroup[];
42
+ standingArea: import("platform-calendar-helpers").T_Element_StandingArea[];
43
+ tables: import("platform-calendar-helpers").T_Element_Table[];
44
+ objects: import("platform-calendar-helpers").T_Element_Object[];
45
+ text: import("platform-calendar-helpers").T_Element_Text[];
46
+ aisles: import("platform-calendar-helpers").T_Element_Aisle[];
47
+ }, resultFuncArgs_1: {
48
+ elementType: T_ElementType;
49
+ elementId: T_Element["id"];
50
+ seats: {
51
+ [key: T_Seat["id"]]: {
52
+ id: T_Seat["id"];
53
+ elementType: T_ElementType;
54
+ elementId: T_Element["id"];
55
+ elementTitle: T_Element["title"];
56
+ } & Partial<T_Seat>;
57
+ };
58
+ seatIds: T_Seat["id"][];
59
+ }) => T_Element;
60
+ memoizedResultFunc: ((resultFuncArgs_0: {
61
+ seatingGroup: import("platform-calendar-helpers").T_Element_SeatingGroup[];
62
+ standingArea: import("platform-calendar-helpers").T_Element_StandingArea[];
63
+ tables: import("platform-calendar-helpers").T_Element_Table[];
64
+ objects: import("platform-calendar-helpers").T_Element_Object[];
65
+ text: import("platform-calendar-helpers").T_Element_Text[];
66
+ aisles: import("platform-calendar-helpers").T_Element_Aisle[];
67
+ }, resultFuncArgs_1: {
68
+ elementType: T_ElementType;
69
+ elementId: T_Element["id"];
70
+ seats: {
71
+ [key: T_Seat["id"]]: {
72
+ id: T_Seat["id"];
73
+ elementType: T_ElementType;
74
+ elementId: T_Element["id"];
75
+ elementTitle: T_Element["title"];
76
+ } & Partial<T_Seat>;
77
+ };
78
+ seatIds: T_Seat["id"][];
79
+ }) => T_Element) & {
80
+ clearCache: () => void;
81
+ resultsCount: () => number;
82
+ resetResultsCount: () => void;
83
+ };
84
+ lastResult: () => T_Element;
85
+ dependencies: [(state: T_RootState) => {
86
+ seatingGroup: import("platform-calendar-helpers").T_Element_SeatingGroup[];
87
+ standingArea: import("platform-calendar-helpers").T_Element_StandingArea[];
88
+ tables: import("platform-calendar-helpers").T_Element_Table[];
89
+ objects: import("platform-calendar-helpers").T_Element_Object[];
90
+ text: import("platform-calendar-helpers").T_Element_Text[];
91
+ aisles: import("platform-calendar-helpers").T_Element_Aisle[];
92
+ }, (state: T_RootState) => import("../elementSelector/types").T_ElementSelectorState["selected"]];
93
+ recomputations: () => number;
94
+ resetRecomputations: () => void;
95
+ dependencyRecomputations: () => number;
96
+ resetDependencyRecomputations: () => void;
97
+ } & {
98
+ memoize: typeof import("reselect").weakMapMemoize;
99
+ argsMemoize: typeof import("reselect").weakMapMemoize;
100
+ };
101
+ /** Set of seat IDs belonging to the currently selected table or seating group. */
102
+ declare const selectSelectedElementSeatIds: ((state: T_RootState) => Set<string>) & {
103
+ clearCache: () => void;
104
+ resultsCount: () => number;
105
+ resetResultsCount: () => void;
106
+ } & {
107
+ resultFunc: (resultFuncArgs_0: T_Element) => Set<string>;
108
+ memoizedResultFunc: ((resultFuncArgs_0: T_Element) => Set<string>) & {
109
+ clearCache: () => void;
110
+ resultsCount: () => number;
111
+ resetResultsCount: () => void;
112
+ };
113
+ lastResult: () => Set<string>;
114
+ dependencies: [((state: T_RootState) => T_Element) & {
115
+ clearCache: () => void;
116
+ resultsCount: () => number;
117
+ resetResultsCount: () => void;
118
+ } & {
119
+ resultFunc: (resultFuncArgs_0: {
120
+ seatingGroup: import("platform-calendar-helpers").T_Element_SeatingGroup[];
121
+ standingArea: import("platform-calendar-helpers").T_Element_StandingArea[];
122
+ tables: import("platform-calendar-helpers").T_Element_Table[];
123
+ objects: import("platform-calendar-helpers").T_Element_Object[];
124
+ text: import("platform-calendar-helpers").T_Element_Text[];
125
+ aisles: import("platform-calendar-helpers").T_Element_Aisle[];
126
+ }, resultFuncArgs_1: {
127
+ elementType: T_ElementType;
128
+ elementId: T_Element["id"];
129
+ seats: {
130
+ [key: T_Seat["id"]]: {
131
+ id: T_Seat["id"];
132
+ elementType: T_ElementType;
133
+ elementId: T_Element["id"];
134
+ elementTitle: T_Element["title"];
135
+ } & Partial<T_Seat>;
136
+ };
137
+ seatIds: T_Seat["id"][];
138
+ }) => T_Element;
139
+ memoizedResultFunc: ((resultFuncArgs_0: {
140
+ seatingGroup: import("platform-calendar-helpers").T_Element_SeatingGroup[];
141
+ standingArea: import("platform-calendar-helpers").T_Element_StandingArea[];
142
+ tables: import("platform-calendar-helpers").T_Element_Table[];
143
+ objects: import("platform-calendar-helpers").T_Element_Object[];
144
+ text: import("platform-calendar-helpers").T_Element_Text[];
145
+ aisles: import("platform-calendar-helpers").T_Element_Aisle[];
146
+ }, resultFuncArgs_1: {
147
+ elementType: T_ElementType;
148
+ elementId: T_Element["id"];
149
+ seats: {
150
+ [key: T_Seat["id"]]: {
151
+ id: T_Seat["id"];
152
+ elementType: T_ElementType;
153
+ elementId: T_Element["id"];
154
+ elementTitle: T_Element["title"];
155
+ } & Partial<T_Seat>;
156
+ };
157
+ seatIds: T_Seat["id"][];
158
+ }) => T_Element) & {
159
+ clearCache: () => void;
160
+ resultsCount: () => number;
161
+ resetResultsCount: () => void;
162
+ };
163
+ lastResult: () => T_Element;
164
+ dependencies: [(state: T_RootState) => {
165
+ seatingGroup: import("platform-calendar-helpers").T_Element_SeatingGroup[];
166
+ standingArea: import("platform-calendar-helpers").T_Element_StandingArea[];
167
+ tables: import("platform-calendar-helpers").T_Element_Table[];
168
+ objects: import("platform-calendar-helpers").T_Element_Object[];
169
+ text: import("platform-calendar-helpers").T_Element_Text[];
170
+ aisles: import("platform-calendar-helpers").T_Element_Aisle[];
171
+ }, (state: T_RootState) => import("../elementSelector/types").T_ElementSelectorState["selected"]];
172
+ recomputations: () => number;
173
+ resetRecomputations: () => void;
174
+ dependencyRecomputations: () => number;
175
+ resetDependencyRecomputations: () => void;
176
+ } & {
177
+ memoize: typeof import("reselect").weakMapMemoize;
178
+ argsMemoize: typeof import("reselect").weakMapMemoize;
179
+ }];
180
+ recomputations: () => number;
181
+ resetRecomputations: () => void;
182
+ dependencyRecomputations: () => number;
183
+ resetDependencyRecomputations: () => void;
184
+ } & {
185
+ memoize: typeof import("reselect").weakMapMemoize;
186
+ argsMemoize: typeof import("reselect").weakMapMemoize;
187
+ };
188
+ /** Count of seats assigned to each ticket in the currently selected table or seating group. */
189
+ declare const selectSelectedElementSeatsAssignedByTicket: ((state: T_RootState) => {
190
+ [ticketId: number]: number;
191
+ }) & {
192
+ clearCache: () => void;
193
+ resultsCount: () => number;
194
+ resetResultsCount: () => void;
195
+ } & {
196
+ resultFunc: (resultFuncArgs_0: T_Element) => {
197
+ [ticketId: number]: number;
198
+ };
199
+ memoizedResultFunc: ((resultFuncArgs_0: T_Element) => {
200
+ [ticketId: number]: number;
201
+ }) & {
202
+ clearCache: () => void;
203
+ resultsCount: () => number;
204
+ resetResultsCount: () => void;
205
+ };
206
+ lastResult: () => {
207
+ [ticketId: number]: number;
208
+ };
209
+ dependencies: [((state: T_RootState) => T_Element) & {
210
+ clearCache: () => void;
211
+ resultsCount: () => number;
212
+ resetResultsCount: () => void;
213
+ } & {
214
+ resultFunc: (resultFuncArgs_0: {
215
+ seatingGroup: import("platform-calendar-helpers").T_Element_SeatingGroup[];
216
+ standingArea: import("platform-calendar-helpers").T_Element_StandingArea[];
217
+ tables: import("platform-calendar-helpers").T_Element_Table[];
218
+ objects: import("platform-calendar-helpers").T_Element_Object[];
219
+ text: import("platform-calendar-helpers").T_Element_Text[];
220
+ aisles: import("platform-calendar-helpers").T_Element_Aisle[];
221
+ }, resultFuncArgs_1: {
222
+ elementType: T_ElementType;
223
+ elementId: T_Element["id"];
224
+ seats: {
225
+ [key: T_Seat["id"]]: {
226
+ id: T_Seat["id"];
227
+ elementType: T_ElementType;
228
+ elementId: T_Element["id"];
229
+ elementTitle: T_Element["title"];
230
+ } & Partial<T_Seat>;
231
+ };
232
+ seatIds: T_Seat["id"][];
233
+ }) => T_Element;
234
+ memoizedResultFunc: ((resultFuncArgs_0: {
235
+ seatingGroup: import("platform-calendar-helpers").T_Element_SeatingGroup[];
236
+ standingArea: import("platform-calendar-helpers").T_Element_StandingArea[];
237
+ tables: import("platform-calendar-helpers").T_Element_Table[];
238
+ objects: import("platform-calendar-helpers").T_Element_Object[];
239
+ text: import("platform-calendar-helpers").T_Element_Text[];
240
+ aisles: import("platform-calendar-helpers").T_Element_Aisle[];
241
+ }, resultFuncArgs_1: {
242
+ elementType: T_ElementType;
243
+ elementId: T_Element["id"];
244
+ seats: {
245
+ [key: T_Seat["id"]]: {
246
+ id: T_Seat["id"];
247
+ elementType: T_ElementType;
248
+ elementId: T_Element["id"];
249
+ elementTitle: T_Element["title"];
250
+ } & Partial<T_Seat>;
251
+ };
252
+ seatIds: T_Seat["id"][];
253
+ }) => T_Element) & {
254
+ clearCache: () => void;
255
+ resultsCount: () => number;
256
+ resetResultsCount: () => void;
257
+ };
258
+ lastResult: () => T_Element;
259
+ dependencies: [(state: T_RootState) => {
260
+ seatingGroup: import("platform-calendar-helpers").T_Element_SeatingGroup[];
261
+ standingArea: import("platform-calendar-helpers").T_Element_StandingArea[];
262
+ tables: import("platform-calendar-helpers").T_Element_Table[];
263
+ objects: import("platform-calendar-helpers").T_Element_Object[];
264
+ text: import("platform-calendar-helpers").T_Element_Text[];
265
+ aisles: import("platform-calendar-helpers").T_Element_Aisle[];
266
+ }, (state: T_RootState) => import("../elementSelector/types").T_ElementSelectorState["selected"]];
267
+ recomputations: () => number;
268
+ resetRecomputations: () => void;
269
+ dependencyRecomputations: () => number;
270
+ resetDependencyRecomputations: () => void;
271
+ } & {
272
+ memoize: typeof import("reselect").weakMapMemoize;
273
+ argsMemoize: typeof import("reselect").weakMapMemoize;
274
+ }];
275
+ recomputations: () => number;
276
+ resetRecomputations: () => void;
277
+ dependencyRecomputations: () => number;
278
+ resetDependencyRecomputations: () => void;
279
+ } & {
280
+ memoize: typeof import("reselect").weakMapMemoize;
281
+ argsMemoize: typeof import("reselect").weakMapMemoize;
282
+ };
283
+ declare const selectSelectorElementToEdit: ((state: T_RootState) => T_Element) & {
284
+ clearCache: () => void;
285
+ resultsCount: () => number;
286
+ resetResultsCount: () => void;
287
+ } & {
288
+ resultFunc: (resultFuncArgs_0: {
289
+ seatingGroup: import("platform-calendar-helpers").T_Element_SeatingGroup[];
290
+ standingArea: import("platform-calendar-helpers").T_Element_StandingArea[];
291
+ tables: import("platform-calendar-helpers").T_Element_Table[];
292
+ objects: import("platform-calendar-helpers").T_Element_Object[];
293
+ text: import("platform-calendar-helpers").T_Element_Text[];
294
+ aisles: import("platform-calendar-helpers").T_Element_Aisle[];
295
+ }, resultFuncArgs_1: {
296
+ elementType: T_ElementType;
297
+ elementId: T_Element["id"];
298
+ seats: {
299
+ [key: T_Seat["id"]]: {
300
+ id: T_Seat["id"];
301
+ elementType: T_ElementType;
302
+ elementId: T_Element["id"];
303
+ elementTitle: T_Element["title"];
304
+ } & Partial<T_Seat>;
305
+ };
306
+ seatIds: T_Seat["id"][];
307
+ }, resultFuncArgs_2: import("../elementSelector/types").T_SelectorActiveTab) => T_Element;
308
+ memoizedResultFunc: ((resultFuncArgs_0: {
309
+ seatingGroup: import("platform-calendar-helpers").T_Element_SeatingGroup[];
310
+ standingArea: import("platform-calendar-helpers").T_Element_StandingArea[];
311
+ tables: import("platform-calendar-helpers").T_Element_Table[];
312
+ objects: import("platform-calendar-helpers").T_Element_Object[];
313
+ text: import("platform-calendar-helpers").T_Element_Text[];
314
+ aisles: import("platform-calendar-helpers").T_Element_Aisle[];
315
+ }, resultFuncArgs_1: {
316
+ elementType: T_ElementType;
317
+ elementId: T_Element["id"];
318
+ seats: {
319
+ [key: T_Seat["id"]]: {
320
+ id: T_Seat["id"];
321
+ elementType: T_ElementType;
322
+ elementId: T_Element["id"];
323
+ elementTitle: T_Element["title"];
324
+ } & Partial<T_Seat>;
325
+ };
326
+ seatIds: T_Seat["id"][];
327
+ }, resultFuncArgs_2: import("../elementSelector/types").T_SelectorActiveTab) => T_Element) & {
328
+ clearCache: () => void;
329
+ resultsCount: () => number;
330
+ resetResultsCount: () => void;
331
+ };
332
+ lastResult: () => T_Element;
333
+ dependencies: [(state: T_RootState) => {
334
+ seatingGroup: import("platform-calendar-helpers").T_Element_SeatingGroup[];
335
+ standingArea: import("platform-calendar-helpers").T_Element_StandingArea[];
336
+ tables: import("platform-calendar-helpers").T_Element_Table[];
337
+ objects: import("platform-calendar-helpers").T_Element_Object[];
338
+ text: import("platform-calendar-helpers").T_Element_Text[];
339
+ aisles: import("platform-calendar-helpers").T_Element_Aisle[];
340
+ }, (state: T_RootState) => import("../elementSelector/types").T_ElementSelectorState["selected"], (state: T_RootState) => import("../elementSelector/types").T_SelectorActiveTab];
341
+ recomputations: () => number;
342
+ resetRecomputations: () => void;
343
+ dependencyRecomputations: () => number;
344
+ resetDependencyRecomputations: () => void;
345
+ } & {
346
+ memoize: typeof import("reselect").weakMapMemoize;
347
+ argsMemoize: typeof import("reselect").weakMapMemoize;
348
+ };
349
+ declare const selectSelectedSeatsObj: ((state: T_RootState) => {
350
+ [key: string]: T_Seat;
351
+ }) & {
352
+ clearCache: () => void;
353
+ resultsCount: () => number;
354
+ resetResultsCount: () => void;
355
+ } & {
356
+ resultFunc: (resultFuncArgs_0: import("platform-calendar-helpers").T_Element_Table[], resultFuncArgs_1: import("platform-calendar-helpers").T_Element_SeatingGroup[], resultFuncArgs_2: {
357
+ elementType: T_ElementType;
358
+ elementId: T_Element["id"];
359
+ seats: {
360
+ [key: T_Seat["id"]]: {
361
+ id: T_Seat["id"];
362
+ elementType: T_ElementType;
363
+ elementId: T_Element["id"];
364
+ elementTitle: T_Element["title"];
365
+ } & Partial<T_Seat>;
366
+ };
367
+ seatIds: T_Seat["id"][];
368
+ }) => {
369
+ [key: string]: T_Seat;
370
+ };
371
+ memoizedResultFunc: ((resultFuncArgs_0: import("platform-calendar-helpers").T_Element_Table[], resultFuncArgs_1: import("platform-calendar-helpers").T_Element_SeatingGroup[], resultFuncArgs_2: {
372
+ elementType: T_ElementType;
373
+ elementId: T_Element["id"];
374
+ seats: {
375
+ [key: T_Seat["id"]]: {
376
+ id: T_Seat["id"];
377
+ elementType: T_ElementType;
378
+ elementId: T_Element["id"];
379
+ elementTitle: T_Element["title"];
380
+ } & Partial<T_Seat>;
381
+ };
382
+ seatIds: T_Seat["id"][];
383
+ }) => {
384
+ [key: string]: T_Seat;
385
+ }) & {
386
+ clearCache: () => void;
387
+ resultsCount: () => number;
388
+ resetResultsCount: () => void;
389
+ };
390
+ lastResult: () => {
391
+ [key: string]: T_Seat;
392
+ };
393
+ dependencies: [(state: T_RootState) => import("platform-calendar-helpers").T_Element_Table[], (state: T_RootState) => import("platform-calendar-helpers").T_Element_SeatingGroup[], (state: T_RootState) => import("../elementSelector/types").T_ElementSelectorState["selected"]];
394
+ recomputations: () => number;
395
+ resetRecomputations: () => void;
396
+ dependencyRecomputations: () => number;
397
+ resetDependencyRecomputations: () => void;
398
+ } & {
399
+ memoize: typeof import("reselect").weakMapMemoize;
400
+ argsMemoize: typeof import("reselect").weakMapMemoize;
401
+ };
402
+ declare const selectTicketApplieableSeats: ((state: T_RootState, ticketIds: any) => {
403
+ [k: string]: any;
404
+ }) & {
405
+ clearCache: () => void;
406
+ resultsCount: () => number;
407
+ resetResultsCount: () => void;
408
+ } & {
409
+ resultFunc: (resultFuncArgs_0: import("platform-calendar-helpers").T_Element_Table[], resultFuncArgs_1: import("platform-calendar-helpers").T_Element_SeatingGroup[], resultFuncArgs_2: any) => {
410
+ [k: string]: any;
411
+ };
412
+ memoizedResultFunc: ((resultFuncArgs_0: import("platform-calendar-helpers").T_Element_Table[], resultFuncArgs_1: import("platform-calendar-helpers").T_Element_SeatingGroup[], resultFuncArgs_2: any) => {
413
+ [k: string]: any;
414
+ }) & {
415
+ clearCache: () => void;
416
+ resultsCount: () => number;
417
+ resetResultsCount: () => void;
418
+ };
419
+ lastResult: () => {
420
+ [k: string]: any;
421
+ };
422
+ dependencies: [(state: T_RootState) => import("platform-calendar-helpers").T_Element_Table[], (state: T_RootState) => import("platform-calendar-helpers").T_Element_SeatingGroup[], (_: T_RootState, ticketIds: any) => any];
423
+ recomputations: () => number;
424
+ resetRecomputations: () => void;
425
+ dependencyRecomputations: () => number;
426
+ resetDependencyRecomputations: () => void;
427
+ } & {
428
+ memoize: typeof import("reselect").weakMapMemoize;
429
+ argsMemoize: typeof import("reselect").weakMapMemoize;
430
+ };
431
+ /** Count of assigned seats for a specific ticket ID across all seating groups and tables. */
432
+ declare const selectAssignedSeatsCountByTicketId: ((state: T_RootState, ticketId: number) => number) & {
433
+ clearCache: () => void;
434
+ resultsCount: () => number;
435
+ resetResultsCount: () => void;
436
+ } & {
437
+ resultFunc: (resultFuncArgs_0: import("platform-calendar-helpers").T_Element_Table[], resultFuncArgs_1: import("platform-calendar-helpers").T_Element_SeatingGroup[], resultFuncArgs_2: number) => number;
438
+ memoizedResultFunc: ((resultFuncArgs_0: import("platform-calendar-helpers").T_Element_Table[], resultFuncArgs_1: import("platform-calendar-helpers").T_Element_SeatingGroup[], resultFuncArgs_2: number) => number) & {
439
+ clearCache: () => void;
440
+ resultsCount: () => number;
441
+ resetResultsCount: () => void;
442
+ };
443
+ lastResult: () => number;
444
+ dependencies: [(state: T_RootState) => import("platform-calendar-helpers").T_Element_Table[], (state: T_RootState) => import("platform-calendar-helpers").T_Element_SeatingGroup[], (_: T_RootState, ticketId: number) => number];
445
+ recomputations: () => number;
446
+ resetRecomputations: () => void;
447
+ dependencyRecomputations: () => number;
448
+ resetDependencyRecomputations: () => void;
449
+ } & {
450
+ memoize: typeof import("reselect").weakMapMemoize;
451
+ argsMemoize: typeof import("reselect").weakMapMemoize;
452
+ };
453
+ declare const selectAllSeatsCount: ((state: T_RootState) => number) & {
454
+ clearCache: () => void;
455
+ resultsCount: () => number;
456
+ resetResultsCount: () => void;
457
+ } & {
458
+ resultFunc: (resultFuncArgs_0: T_SeatMap) => number;
459
+ memoizedResultFunc: ((resultFuncArgs_0: T_SeatMap) => number) & {
460
+ clearCache: () => void;
461
+ resultsCount: () => number;
462
+ resetResultsCount: () => void;
463
+ };
464
+ lastResult: () => number;
465
+ dependencies: [(state: T_RootState) => T_SeatMap];
466
+ recomputations: () => number;
467
+ resetRecomputations: () => void;
468
+ dependencyRecomputations: () => number;
469
+ resetDependencyRecomputations: () => void;
470
+ } & {
471
+ memoize: typeof import("reselect").weakMapMemoize;
472
+ argsMemoize: typeof import("reselect").weakMapMemoize;
473
+ };
474
+ export { selectSeatMap, selectSelectedSeatsObj, selectSelectedElement, selectSelectedElementSeatIds, selectSelectedElementSeatsAssignedByTicket, selectSelectorElementToEdit, selectSeatMapName, selectTicketApplieableSeats, selectStandingAreaCapacityByTicketId, selectAllSeatsCount, selectAssignedSeatsCountByTicketId };
@@ -0,0 +1,70 @@
1
+ import { RecursivePartial } from "../../../helpers/types/commons";
2
+ import { T_Element, T_ElementType, T_Seat, T_SeatMap } from 'platform-calendar-helpers';
3
+ import { T_Element_Aisle } from "../../../helpers/types/aisle";
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
+ type T_ElementType_SeatMap = T_ElementType | 'aisles';
6
+ type T_Element_SeatMap = T_Element | T_Element_Aisle;
7
+ type T_SeatMapsState = T_SeatMap;
8
+ type T_SetSeatMap = {
9
+ type: typeof SET_SEAT_MAP;
10
+ payload: {
11
+ seatMap: T_SeatMap;
12
+ };
13
+ };
14
+ type T_SetSeatMapName = {
15
+ type: typeof SET_SEAT_MAP_NAME;
16
+ payload: {
17
+ name: T_SeatMap['name'];
18
+ };
19
+ };
20
+ type T_AddElement = {
21
+ type: typeof ADD_ELEMENT;
22
+ payload: {
23
+ element: T_Element_SeatMap;
24
+ type: T_ElementType_SeatMap;
25
+ };
26
+ };
27
+ type T_DeleteElement = {
28
+ type: typeof DELETE_ELEMENT;
29
+ payload: {
30
+ elementId: T_Element['id'];
31
+ type: T_ElementType_SeatMap;
32
+ };
33
+ };
34
+ type T_SetElementPosition = {
35
+ type: typeof SET_ELEMENT_POSITION;
36
+ payload: {
37
+ elementId: T_Element['id'];
38
+ elementType: T_ElementType_SeatMap;
39
+ position: {
40
+ top: number;
41
+ left: number;
42
+ };
43
+ };
44
+ };
45
+ type T_EditSeats = {
46
+ type: typeof EDIT_SEATS;
47
+ payload: {
48
+ elementId: T_Element['id'];
49
+ elementType: T_ElementType;
50
+ seats: {
51
+ [key: string]: Partial<T_Seat>;
52
+ };
53
+ };
54
+ };
55
+ type T_EditElement = {
56
+ type: typeof EDIT_ELEMENT;
57
+ payload: {
58
+ elementId: T_Element['id'];
59
+ elementType: T_ElementType_SeatMap;
60
+ element: RecursivePartial<T_Element_SeatMap>;
61
+ };
62
+ };
63
+ type T_ResetDefaultElement = {
64
+ type: typeof RESET_DEFAULT_ELEMENT;
65
+ payload: {
66
+ elementType: T_ElementType_SeatMap;
67
+ };
68
+ };
69
+ type T_SeatMapsReducerAction = T_SetSeatMap | T_AddElement | T_DeleteElement | T_SetElementPosition | T_EditSeats | T_EditElement | T_SetSeatMapName | T_ResetDefaultElement;
70
+ export type { T_SeatMapsReducerAction, T_SetSeatMap, T_SeatMapsState, T_AddElement, T_DeleteElement, T_SetElementPosition, T_EditSeats, T_EditElement, T_ElementType_SeatMap, T_SetSeatMapName, T_ResetDefaultElement };
@@ -0,0 +1,19 @@
1
+ import { legacy_createStore } from 'redux';
2
+ import { T_MainState } from './reducers/main/types';
3
+ import { T_SeatMapsState } from './reducers/seatMap/types';
4
+ import { T_ElementSelectorState } from './reducers/elementSelector/types';
5
+ import { T_ActionHandlersState } from './reducers/actionHandlers/types';
6
+ import { T_HistoryState } from './reducers/history/types';
7
+ import { T_ClipboardState } from './reducers/clipboard/types';
8
+ import { T_SeatMap } from 'platform-calendar-helpers';
9
+ declare const getStore: (seatMapId: T_SeatMap["id"]) => import("redux").Store<unknown, import("redux").Action<string>, unknown>;
10
+ type T_RootState = {
11
+ seatMap: T_SeatMapsState;
12
+ main: T_MainState;
13
+ elementSelector: T_ElementSelectorState;
14
+ actionHandlers: T_ActionHandlersState;
15
+ history: T_HistoryState;
16
+ clipboard: T_ClipboardState;
17
+ };
18
+ type T_Dispatch = ReturnType<typeof legacy_createStore>['dispatch'];
19
+ export { getStore, type T_RootState, type T_Dispatch };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "platform-calendar-seatmap",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Powerful and customizable calendar package",
5
5
  "author": {
6
6
  "name": "Arman Azaryan"