seat-editor 3.3.45 → 3.4.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.
Files changed (78) hide show
  1. package/dist/app/constant.d.ts +4 -3
  2. package/dist/app/constant.js +3 -2
  3. package/dist/app/layout.d.ts +1 -1
  4. package/dist/app/new-board/page.d.ts +1 -1
  5. package/dist/app/new-board/page.js +6 -1
  6. package/dist/app/new-board/page.jsx +6 -1
  7. package/dist/app/old-board/page.d.ts +1 -2
  8. package/dist/app/only-view/chair.d.ts +1 -1
  9. package/dist/app/only-view/chair.js +2 -10
  10. package/dist/app/only-view/constant.d.ts +288 -30
  11. package/dist/app/only-view/constant.js +7227 -912
  12. package/dist/app/only-view/page.d.ts +1 -1
  13. package/dist/app/only-view/page.js +7 -7
  14. package/dist/app/only-view/page.jsx +7 -7
  15. package/dist/app/only-view/user.d.ts +1 -1
  16. package/dist/app/only-view/user.js +2 -10
  17. package/dist/app/page.d.ts +1 -1
  18. package/dist/app/test/page.d.ts +1 -2
  19. package/dist/app/v2/page.d.ts +1 -1
  20. package/dist/components/button-tools/index.d.ts +1 -1
  21. package/dist/components/form-tools/label.d.ts +1 -1
  22. package/dist/components/form-tools/label.js +8 -4
  23. package/dist/components/form-tools/label.jsx +27 -21
  24. package/dist/components/form-tools/shape.d.ts +1 -1
  25. package/dist/components/form-tools/shape.js +41 -16
  26. package/dist/components/form-tools/shape.jsx +35 -14
  27. package/dist/components/input/number-indicator.d.ts +1 -1
  28. package/dist/components/joystick/index.d.ts +1 -2
  29. package/dist/components/layer/index.d.ts +1 -1
  30. package/dist/components/layer-v2/index.d.ts +1 -1
  31. package/dist/components/layer-v3/index.d.ts +1 -1
  32. package/dist/components/layer-v4/index.d.ts +1 -1
  33. package/dist/components/lib/index.d.ts +1 -1
  34. package/dist/components/modal-preview/index.d.ts +1 -1
  35. package/dist/features/board/index.d.ts +1 -1
  36. package/dist/features/board-v2/index.d.ts +1 -2
  37. package/dist/features/board-v3/index.d.ts +1 -1
  38. package/dist/features/board-v3/index.js +12 -5
  39. package/dist/features/board-v3/index.jsx +12 -5
  40. package/dist/features/navbar/index.d.ts +1 -1
  41. package/dist/features/package/index.d.ts +2 -1
  42. package/dist/features/package/index.js +22 -17
  43. package/dist/features/package/index.jsx +22 -17
  44. package/dist/features/panel/index.d.ts +1 -1
  45. package/dist/features/panel/index.js +26 -13
  46. package/dist/features/panel/index.jsx +26 -13
  47. package/dist/features/panel/panel-slice.d.ts +2 -0
  48. package/dist/features/panel/panel-slice.js +3 -0
  49. package/dist/features/panel/select-tool.d.ts +1 -1
  50. package/dist/features/panel/select-tool.js +31 -14
  51. package/dist/features/panel/select-tool.jsx +31 -24
  52. package/dist/features/panel/selected-group.d.ts +1 -1
  53. package/dist/features/panel/square-circle-tool.d.ts +1 -1
  54. package/dist/features/panel/table-seat-circle.d.ts +1 -1
  55. package/dist/features/panel/table-seat-circle.js +2 -2
  56. package/dist/features/panel/table-seat-circle.jsx +6 -14
  57. package/dist/features/panel/table-seat-square.d.ts +1 -1
  58. package/dist/features/panel/table-seat-square.js +8 -2
  59. package/dist/features/panel/table-seat-square.jsx +15 -8
  60. package/dist/features/panel/text-tool.d.ts +1 -1
  61. package/dist/features/panel/upload-tool.d.ts +1 -1
  62. package/dist/features/panel/upload-tool.js +3 -1
  63. package/dist/features/panel/upload-tool.jsx +4 -2
  64. package/dist/features/panel/utils.d.ts +8 -2
  65. package/dist/features/panel/utils.js +60 -23
  66. package/dist/features/side-tool/index.d.ts +1 -1
  67. package/dist/features/side-tool/index.js +9 -3
  68. package/dist/features/side-tool/index.jsx +16 -4
  69. package/dist/features/view-only/index.d.ts +1 -1
  70. package/dist/features/view-only-2/index.d.ts +1 -1
  71. package/dist/features/view-only-2/index.js +6 -4
  72. package/dist/features/view-only-2/index.jsx +6 -4
  73. package/dist/features/view-only-3/index.d.ts +1 -1
  74. package/dist/features/view-only-3/index.js +7 -5
  75. package/dist/features/view-only-3/index.jsx +7 -5
  76. package/dist/provider/redux-provider.d.ts +1 -1
  77. package/dist/provider/store-provider.d.ts +1 -1
  78. package/package.json +1 -1
@@ -280,10 +280,9 @@ export declare const test4: ({
280
280
  stroke?: undefined;
281
281
  strokeWidth?: undefined;
282
282
  text?: undefined;
283
- status?: undefined;
284
283
  };
285
284
  } | {
286
- status: string;
285
+ status: number;
287
286
  rsvp: number;
288
287
  properties: {
289
288
  x: number;
@@ -297,7 +296,6 @@ export declare const test4: ({
297
296
  width: number;
298
297
  height: number;
299
298
  gapTags: number;
300
- status: string;
301
299
  labels: {
302
300
  x: number;
303
301
  y: number;
@@ -344,6 +342,7 @@ export declare const test4: ({
344
342
  export declare const data4: ({
345
343
  uuid_table: string;
346
344
  status: number;
345
+ capacity: number;
347
346
  properties: {
348
347
  x: number;
349
348
  y: number;
@@ -525,6 +524,7 @@ export declare const data4: ({
525
524
  labels?: undefined;
526
525
  };
527
526
  uuid_table?: undefined;
527
+ capacity?: undefined;
528
528
  } | {
529
529
  properties: {
530
530
  x: number;
@@ -585,6 +585,7 @@ export declare const data4: ({
585
585
  };
586
586
  uuid_table?: undefined;
587
587
  status?: undefined;
588
+ capacity?: undefined;
588
589
  })[];
589
590
  export declare const extraComponent: any[];
590
591
  export declare const data5: {
@@ -3440,7 +3440,7 @@ export const test4 = [
3440
3440
  }
3441
3441
  },
3442
3442
  {
3443
- status: "aduhhh",
3443
+ status: 1,
3444
3444
  rsvp: 1,
3445
3445
  properties: {
3446
3446
  x: 400,
@@ -3454,7 +3454,7 @@ export const test4 = [
3454
3454
  width: 100,
3455
3455
  height: 100,
3456
3456
  gapTags: 20, //gap antara tags secara vertical,
3457
- status: "hold",
3457
+ // status: "hold",
3458
3458
  labels: [
3459
3459
  {
3460
3460
  x: 0,
@@ -3527,6 +3527,7 @@ export const data4 = [
3527
3527
  {
3528
3528
  uuid_table: "axxxxx",
3529
3529
  status: 0,
3530
+ capacity: 5,
3530
3531
  properties: {
3531
3532
  x: 500,
3532
3533
  y: 520,
@@ -3,4 +3,4 @@ import "./globals.css";
3
3
  export declare const metadata: Metadata;
4
4
  export default function RootLayout({ children, }: Readonly<{
5
5
  children: React.ReactNode;
6
- }>): import("react").JSX.Element;
6
+ }>): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export default function NewBoard(): import("react").JSX.Element;
1
+ export default function NewBoard(): import("react/jsx-runtime").JSX.Element;
@@ -54,5 +54,10 @@ export default function NewBoard() {
54
54
  }
55
55
  }, extraComponentProps: extraComponents, defaultBackground: backgroundColor,
56
56
  // dragOnly={true}
57
- statusKey: "status" }) })] }) }));
57
+ statusKey: "status",
58
+ // action={async (action: any) => {
59
+ // console.log({ action });
60
+ // return null
61
+ // }}
62
+ defaultSeatCountKey: "capacity" }) })] }) }));
58
63
  }
@@ -64,7 +64,12 @@ export default function NewBoard() {
64
64
  }
65
65
  }} extraComponentProps={extraComponents} defaultBackground={backgroundColor}
66
66
  // dragOnly={true}
67
- statusKey="status"/>
67
+ statusKey="status"
68
+ // action={async (action: any) => {
69
+ // console.log({ action });
70
+ // return null
71
+ // }}
72
+ defaultSeatCountKey="capacity"/>
68
73
  </div>
69
74
 
70
75
  </div>
@@ -1,3 +1,2 @@
1
- import React from "react";
2
- declare const SeatEditor: () => React.JSX.Element;
1
+ declare const SeatEditor: () => import("react/jsx-runtime").JSX.Element;
3
2
  export default SeatEditor;
@@ -1 +1 @@
1
- export function ChairIcon(): import("react").JSX.Element;
1
+ export function ChairIcon(): import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  export const ChairIcon = () => {
2
- return (<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
3
- <g clip-path="url(#clip0_3019_14165)">
4
- <path d="M15.9717 7.5339V4.70339C15.9717 3.07627 14.7076 2.5 13.5189 2.5H6.46226C5.27359 2.5 4.00943 3.07627 4.00943 4.70339V7.5339C3.14151 7.73729 2.5 8.4322 2.5 9.27966V13.822C2.5 15.161 3.5 15.6864 4.48113 15.7373V16.8898C4.48113 17.2288 4.78302 17.5 5.16038 17.5H5.85849C6.23585 17.5 6.53774 17.2288 6.53774 16.8898V15.7373H13.4623V16.8898C13.4623 17.2288 13.7642 17.5 14.1415 17.5H14.8396C15.217 17.5 15.5189 17.2288 15.5189 16.8898V15.7373C16.9717 15.6695 17.5 14.7203 17.5 13.822V9.26271C17.4623 8.4322 16.8208 7.72034 15.9717 7.5339ZM4.68868 4.70339C4.68868 3.31356 5.80189 3.09322 6.46226 3.09322H13.5189C14.1792 3.09322 15.2925 3.29661 15.2925 4.68644V7.4661C14.2736 7.55085 13.4623 8.31356 13.4623 9.26271V9.68644H6.51887V9.26271C6.51887 8.31356 5.70755 7.55085 4.68868 7.4661V4.70339ZM13.4434 10.2966V12.3983H6.51887V10.2966H13.4434ZM5.85849 16.8898H5.16038V15.7373H5.85849V16.8898ZM14.8208 16.8898H14.1226V15.7373H14.8208V16.8898ZM16.8208 13.822H16.8019C16.8019 14.4153 16.5566 15.1441 15.3302 15.1441H14.8208H14.1226H5.85849H5.16038H4.65094C3.99057 15.1441 3.17925 14.9237 3.17925 13.822V9.26271C3.17925 8.6017 3.78302 8.05932 4.51887 8.05932C5.25472 8.05932 5.85849 8.6017 5.85849 9.26271V12.7034C5.85849 12.8729 6.00943 13.0085 6.19811 13.0085H13.8019C13.9906 13.0085 14.1415 12.8729 14.1415 12.7034V9.26271C14.1415 8.6017 14.7453 8.05932 15.4811 8.05932C16.217 8.05932 16.8208 8.6017 16.8208 9.26271V13.822Z" fill="#347ADB" stroke="#347ADB" stroke-width="0.8"/>
5
- </g>
6
- <defs>
7
- <clipPath id="clip0_3019_14165">
8
- <rect width="16.6667" height="16.6667" fill="white" transform="translate(1.66675 1.6665)"/>
9
- </clipPath>
10
- </defs>
11
- </svg>);
3
+ return (_jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("g", { "clip-path": "url(#clip0_3019_14165)", children: _jsx("path", { d: "M15.9717 7.5339V4.70339C15.9717 3.07627 14.7076 2.5 13.5189 2.5H6.46226C5.27359 2.5 4.00943 3.07627 4.00943 4.70339V7.5339C3.14151 7.73729 2.5 8.4322 2.5 9.27966V13.822C2.5 15.161 3.5 15.6864 4.48113 15.7373V16.8898C4.48113 17.2288 4.78302 17.5 5.16038 17.5H5.85849C6.23585 17.5 6.53774 17.2288 6.53774 16.8898V15.7373H13.4623V16.8898C13.4623 17.2288 13.7642 17.5 14.1415 17.5H14.8396C15.217 17.5 15.5189 17.2288 15.5189 16.8898V15.7373C16.9717 15.6695 17.5 14.7203 17.5 13.822V9.26271C17.4623 8.4322 16.8208 7.72034 15.9717 7.5339ZM4.68868 4.70339C4.68868 3.31356 5.80189 3.09322 6.46226 3.09322H13.5189C14.1792 3.09322 15.2925 3.29661 15.2925 4.68644V7.4661C14.2736 7.55085 13.4623 8.31356 13.4623 9.26271V9.68644H6.51887V9.26271C6.51887 8.31356 5.70755 7.55085 4.68868 7.4661V4.70339ZM13.4434 10.2966V12.3983H6.51887V10.2966H13.4434ZM5.85849 16.8898H5.16038V15.7373H5.85849V16.8898ZM14.8208 16.8898H14.1226V15.7373H14.8208V16.8898ZM16.8208 13.822H16.8019C16.8019 14.4153 16.5566 15.1441 15.3302 15.1441H14.8208H14.1226H5.85849H5.16038H4.65094C3.99057 15.1441 3.17925 14.9237 3.17925 13.822V9.26271C3.17925 8.6017 3.78302 8.05932 4.51887 8.05932C5.25472 8.05932 5.85849 8.6017 5.85849 9.26271V12.7034C5.85849 12.8729 6.00943 13.0085 6.19811 13.0085H13.8019C13.9906 13.0085 14.1415 12.8729 14.1415 12.7034V9.26271C14.1415 8.6017 14.7453 8.05932 15.4811 8.05932C16.217 8.05932 16.8208 8.6017 16.8208 9.26271V13.822Z", fill: "#347ADB", stroke: "#347ADB", "stroke-width": "0.8" }) }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_3019_14165", children: _jsx("rect", { width: "16.6667", height: "16.6667", fill: "white", transform: "translate(1.66675 1.6665)" }) }) })] }));
12
4
  };
@@ -18,43 +18,301 @@ export declare const dummyImage: {
18
18
  }[];
19
19
  }[];
20
20
  export declare const dataDummy: ({
21
- x: number;
22
- y: number;
23
- width: number;
24
- height: number;
25
- shape: string;
26
- id: string;
27
- fill: string;
28
- rotation: number;
29
- seatCount: number;
30
- text: string;
31
- labels: ({
32
- label: string;
33
- fontSize: number;
21
+ uuid_table: string;
22
+ uuid_rsvp: string;
23
+ uuid_event_outlet: any;
24
+ uuid_reserved: any;
25
+ uuid_rsvp_table: string;
26
+ code: string;
27
+ name: string;
28
+ capacity: number;
29
+ pax: {
30
+ adults: number;
31
+ };
32
+ req_pax: {
33
+ adults: number;
34
+ };
35
+ total_pax: number;
36
+ total_req_pax: number;
37
+ uuid_status: string;
38
+ status_bg_color: string;
39
+ status_name: string;
40
+ status_color: string;
41
+ status_icon: string;
42
+ title: string;
43
+ firstname: string;
44
+ lastname: string;
45
+ fullname: string;
46
+ ranks: {
47
+ name: string;
48
+ image: string;
49
+ }[];
50
+ tags: any;
51
+ rank_sp: string;
52
+ rank_ts: string;
53
+ start_date: string;
54
+ end_date: string;
55
+ start_time: string;
56
+ end_time: string;
57
+ walk_in: number;
58
+ dp_amount: string;
59
+ dp_status: number;
60
+ online_payment: number;
61
+ rsvp_type: number;
62
+ rsvp_input: number;
63
+ is_reserved: number;
64
+ is_hold: number;
65
+ is_lock: number;
66
+ is_overtime: number;
67
+ is_upcoming: number;
68
+ conflicted: number;
69
+ is_late: number;
70
+ properties: {
71
+ x: number;
34
72
  y: number;
73
+ id: string;
74
+ fill: string;
75
+ tags: ({
76
+ gap: string;
77
+ key: string;
78
+ items: {
79
+ type: string;
80
+ value: string;
81
+ }[];
82
+ direction: string;
83
+ offsetX?: undefined;
84
+ offsetY?: undefined;
85
+ } | {
86
+ gap: string;
87
+ key: string;
88
+ items: {
89
+ type: string;
90
+ value: string;
91
+ }[];
92
+ offsetX: string;
93
+ offsetY: string;
94
+ direction: string;
95
+ } | {
96
+ gap: string;
97
+ key: string;
98
+ items: {
99
+ type: string;
100
+ value: string;
101
+ fontWeight: string;
102
+ textDecoration: string;
103
+ }[];
104
+ offsetY: string;
105
+ direction: string;
106
+ offsetX?: undefined;
107
+ })[];
108
+ shape: string;
109
+ width: number;
110
+ height: number;
111
+ labels: {
112
+ x: number;
113
+ y: number;
114
+ label: string;
115
+ fontSize: number;
116
+ fontColor: string;
117
+ }[];
118
+ opacity: number;
119
+ rotation: number;
120
+ seatCount: number;
121
+ uuid_table: string;
122
+ stroke?: undefined;
123
+ };
124
+ image_mapping: ({
125
+ x: number;
126
+ y: number;
127
+ id: string;
128
+ src: string;
129
+ image: string;
130
+ shape: string;
131
+ width: number;
132
+ height: number;
133
+ fill?: undefined;
35
134
  } | {
36
- label: string;
135
+ x: number;
37
136
  y: number;
38
- fontSize?: undefined;
137
+ id: string;
138
+ shape: string;
139
+ width: number;
140
+ height: number;
141
+ src?: undefined;
142
+ image?: undefined;
143
+ fill?: undefined;
144
+ } | {
145
+ x: number;
146
+ y: number;
147
+ id: string;
148
+ fill: string;
149
+ shape: string;
150
+ width: number;
151
+ height: number;
152
+ src?: undefined;
153
+ image?: undefined;
39
154
  })[];
155
+ upcomings: {
156
+ time: string;
157
+ uuid: string;
158
+ }[];
159
+ areas: {
160
+ name: string;
161
+ uuid: string;
162
+ }[];
163
+ sections: {
164
+ icon: string;
165
+ name: string;
166
+ uuid: string;
167
+ image: any;
168
+ }[];
40
169
  } | {
41
- x: number;
42
- y: number;
43
- width: number;
44
- height: number;
45
- shape: string;
46
- id: number;
47
- fill: string;
48
- rotation: number;
49
- seatCount: number;
50
- text: string;
51
- labels: ({
52
- label: string;
53
- fontSize: number;
170
+ uuid_table: string;
171
+ uuid_rsvp: string;
172
+ uuid_event_outlet: any;
173
+ uuid_reserved: any;
174
+ uuid_rsvp_table: string;
175
+ code: string;
176
+ name: string;
177
+ capacity: number;
178
+ pax: {
179
+ adults: number;
180
+ };
181
+ req_pax: {
182
+ adults: number;
183
+ };
184
+ total_pax: number;
185
+ total_req_pax: number;
186
+ uuid_status: string;
187
+ status_bg_color: string;
188
+ status_name: string;
189
+ status_color: string;
190
+ status_icon: string;
191
+ title: string;
192
+ firstname: string;
193
+ lastname: string;
194
+ fullname: string;
195
+ ranks: {
196
+ name: string;
197
+ image: string;
198
+ }[];
199
+ tags: any;
200
+ rank_sp: string;
201
+ rank_ts: string;
202
+ start_date: string;
203
+ end_date: string;
204
+ start_time: string;
205
+ end_time: string;
206
+ walk_in: number;
207
+ dp_amount: string;
208
+ dp_status: number;
209
+ online_payment: number;
210
+ rsvp_type: number;
211
+ rsvp_input: number;
212
+ is_reserved: number;
213
+ is_hold: number;
214
+ is_lock: number;
215
+ is_overtime: number;
216
+ is_upcoming: number;
217
+ conflicted: number;
218
+ is_late: number;
219
+ properties: {
220
+ x: number;
54
221
  y: number;
222
+ id: string;
223
+ fill: string;
224
+ tags: ({
225
+ gap: string;
226
+ key: string;
227
+ items: {
228
+ type: string;
229
+ value: string;
230
+ }[];
231
+ direction: string;
232
+ offsetX?: undefined;
233
+ offsetY?: undefined;
234
+ } | {
235
+ gap: string;
236
+ key: string;
237
+ items: {
238
+ type: string;
239
+ value: string;
240
+ }[];
241
+ offsetX: string;
242
+ offsetY: string;
243
+ direction: string;
244
+ } | {
245
+ gap: string;
246
+ key: string;
247
+ items: {
248
+ type: string;
249
+ value: string;
250
+ fontWeight: string;
251
+ textDecoration: string;
252
+ }[];
253
+ offsetY: string;
254
+ direction: string;
255
+ offsetX?: undefined;
256
+ })[];
257
+ shape: string;
258
+ width: number;
259
+ height: number;
260
+ labels: {
261
+ x: number;
262
+ y: number;
263
+ label: string;
264
+ fontSize: number;
265
+ fontColor: string;
266
+ }[];
267
+ stroke: string;
268
+ opacity: number;
269
+ rotation: number;
270
+ seatCount: number;
271
+ uuid_table: string;
272
+ };
273
+ image_mapping: ({
274
+ x: number;
275
+ y: number;
276
+ id: string;
277
+ src: string;
278
+ image: string;
279
+ shape: string;
280
+ width: number;
281
+ height: number;
282
+ fill?: undefined;
55
283
  } | {
56
- label: string;
284
+ x: number;
285
+ y: number;
286
+ id: string;
287
+ shape: string;
288
+ width: number;
289
+ height: number;
290
+ src?: undefined;
291
+ image?: undefined;
292
+ fill?: undefined;
293
+ } | {
294
+ x: number;
57
295
  y: number;
58
- fontSize?: undefined;
296
+ id: string;
297
+ fill: string;
298
+ shape: string;
299
+ width: number;
300
+ height: number;
301
+ src?: undefined;
302
+ image?: undefined;
59
303
  })[];
304
+ upcomings: {
305
+ time: string;
306
+ uuid: string;
307
+ }[];
308
+ areas: {
309
+ name: string;
310
+ uuid: string;
311
+ }[];
312
+ sections: {
313
+ icon: string;
314
+ name: string;
315
+ uuid: string;
316
+ image: any;
317
+ }[];
60
318
  })[];