seat-editor 1.6.19 → 1.6.20
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/app/constant.d.ts +44 -0
- package/dist/app/constant.js +232 -0
- package/dist/app/layout.d.ts +1 -1
- package/dist/app/{layout.js → layout.jsx} +7 -2
- package/dist/app/new-board/page.d.ts +1 -1
- package/dist/app/new-board/page.jsx +72 -0
- package/dist/app/old-board/page.d.ts +2 -1
- package/dist/app/old-board/{page.js → page.jsx} +215 -82
- package/dist/app/only-view/page.d.ts +1 -1
- package/dist/app/only-view/{page.js → page.jsx} +1 -2
- package/dist/app/page.d.ts +1 -1
- package/dist/app/page.jsx +13 -0
- package/dist/app/test/page.d.ts +2 -1
- package/dist/app/test/{page.js → page.jsx} +5 -3
- package/dist/app/v2/page.d.ts +1 -1
- package/dist/app/v2/page.jsx +13 -0
- package/dist/components/button-tools/index.d.ts +1 -1
- package/dist/components/button-tools/index.jsx +17 -0
- package/dist/components/form-tools/label.d.ts +1 -1
- package/dist/components/form-tools/label.jsx +44 -0
- package/dist/components/form-tools/shape.d.ts +1 -1
- package/dist/components/form-tools/shape.jsx +66 -0
- package/dist/components/input/number-indicator.d.ts +1 -1
- package/dist/components/input/{number-indicator.js → number-indicator.jsx} +11 -2
- package/dist/components/joystick/index.d.ts +2 -1
- package/dist/components/joystick/{index.js → index.jsx} +14 -13
- package/dist/components/layer/index.d.ts +1 -1
- package/dist/components/layer/index.jsx +383 -0
- package/dist/components/layer-v2/index.d.ts +1 -1
- package/dist/components/layer-v2/index.jsx +370 -0
- package/dist/components/lib/index.d.ts +1 -1
- package/dist/components/lib/{index.js → index.jsx} +7 -2
- package/dist/components/modal-preview/index.d.ts +1 -1
- package/dist/components/modal-preview/index.jsx +11 -0
- package/dist/features/board/index.d.ts +1 -1
- package/dist/features/board/{index.js → index.jsx} +90 -31
- package/dist/features/board-v2/index.d.ts +2 -1
- package/dist/features/board-v2/{index.js → index.jsx} +98 -39
- package/dist/features/navbar/index.d.ts +1 -1
- package/dist/features/navbar/index.jsx +5 -0
- package/dist/features/package/index.d.ts +1 -1
- package/dist/features/package/{index.js → index.jsx} +16 -6
- package/dist/features/panel/index.d.ts +1 -1
- package/dist/features/panel/{index.js → index.jsx} +16 -8
- package/dist/features/panel/select-tool.d.ts +1 -1
- package/dist/features/panel/{select-tool.js → select-tool.jsx} +20 -8
- package/dist/features/panel/square-circle-tool.d.ts +1 -1
- package/dist/features/panel/{square-circle-tool.js → square-circle-tool.jsx} +4 -2
- package/dist/features/panel/table-seat-circle.d.ts +1 -1
- package/dist/features/panel/table-seat-circle.jsx +31 -0
- package/dist/features/panel/text-tool.d.ts +1 -1
- package/dist/features/panel/text-tool.jsx +26 -0
- package/dist/features/panel/upload-tool.d.ts +1 -1
- package/dist/features/panel/{upload-tool.js → upload-tool.jsx} +24 -2
- package/dist/features/side-tool/index.d.ts +1 -1
- package/dist/features/side-tool/{index.js → index.jsx} +90 -71
- package/dist/features/view/index.d.ts +1 -1
- package/dist/features/view/index.jsx +8 -2
- package/dist/features/view-only/index.d.ts +1 -1
- package/dist/features/view-only/{index.js → index.jsx} +38 -31
- package/dist/provider/antd-provider.jsx +46 -0
- package/dist/provider/redux-provider.d.ts +1 -1
- package/dist/provider/{redux-provider.js → redux-provider.jsx} +1 -2
- package/dist/provider/store-provider.d.ts +1 -1
- package/dist/provider/{store-provider.js → store-provider.jsx} +3 -2
- package/package.json +1 -1
- package/dist/app/new-board/page.js +0 -49
- package/dist/app/page.js +0 -8
- package/dist/app/v2/page.js +0 -8
- package/dist/components/button-tools/index.js +0 -11
- package/dist/components/form-tools/label.js +0 -7
- package/dist/components/form-tools/shape.js +0 -25
- package/dist/components/layer/index.js +0 -295
- package/dist/components/layer-v2/index.js +0 -282
- package/dist/components/modal-preview/index.js +0 -10
- package/dist/features/navbar/index.js +0 -6
- package/dist/features/panel/table-seat-circle.js +0 -9
- package/dist/features/panel/text-tool.js +0 -7
- package/dist/features/view/index.js +0 -219
- package/dist/provider/antd-provider.js +0 -43
package/dist/app/constant.d.ts
CHANGED
|
@@ -12,3 +12,47 @@ export declare const constantData: {
|
|
|
12
12
|
};
|
|
13
13
|
janu: string;
|
|
14
14
|
}[];
|
|
15
|
+
export declare const data2: {
|
|
16
|
+
uuid: string;
|
|
17
|
+
uuid_event_outlet: string;
|
|
18
|
+
uuid_area: any;
|
|
19
|
+
area_name: any;
|
|
20
|
+
uuid_area_group: string;
|
|
21
|
+
area_group_name: string;
|
|
22
|
+
uuid_table: string;
|
|
23
|
+
table_name: string;
|
|
24
|
+
name: string;
|
|
25
|
+
capacity: number;
|
|
26
|
+
max_capacity: any;
|
|
27
|
+
mc_amount: string;
|
|
28
|
+
dp_mc_amount: string;
|
|
29
|
+
price: string;
|
|
30
|
+
benefit: string;
|
|
31
|
+
notes: string;
|
|
32
|
+
properties: {
|
|
33
|
+
x: number;
|
|
34
|
+
y: number;
|
|
35
|
+
id: number;
|
|
36
|
+
src: string;
|
|
37
|
+
fill: string;
|
|
38
|
+
image: string;
|
|
39
|
+
shape: string;
|
|
40
|
+
width: number;
|
|
41
|
+
height: number;
|
|
42
|
+
labels: {
|
|
43
|
+
x: number;
|
|
44
|
+
y: number;
|
|
45
|
+
label: string;
|
|
46
|
+
fontSize: number;
|
|
47
|
+
fontColor: string;
|
|
48
|
+
}[];
|
|
49
|
+
opacity: number;
|
|
50
|
+
rotation: number;
|
|
51
|
+
seatCount: number;
|
|
52
|
+
uuid_table: string;
|
|
53
|
+
};
|
|
54
|
+
status: number;
|
|
55
|
+
media: any;
|
|
56
|
+
is_fdc: number;
|
|
57
|
+
max_pax_fdc: number;
|
|
58
|
+
}[];
|
package/dist/app/constant.js
CHANGED
|
@@ -38,3 +38,235 @@ export const constantData = [
|
|
|
38
38
|
"janu": "test2"
|
|
39
39
|
}
|
|
40
40
|
];
|
|
41
|
+
export const data2 = [
|
|
42
|
+
{
|
|
43
|
+
"uuid": "d1b7568b-4711-40a3-b426-220db075785e",
|
|
44
|
+
"uuid_event_outlet": "82147ecc-d17c-4b10-bf7e-4ca704242445",
|
|
45
|
+
"uuid_area": null,
|
|
46
|
+
"area_name": null,
|
|
47
|
+
"uuid_area_group": "a77c1139-dc00-4169-93a8-75ed1825c344",
|
|
48
|
+
"area_group_name": "Area Musholla",
|
|
49
|
+
"uuid_table": "c160055a-c1df-49be-b52d-1baf3891c646",
|
|
50
|
+
"table_name": "New Table 3",
|
|
51
|
+
"name": "New Table 3",
|
|
52
|
+
"capacity": 1,
|
|
53
|
+
"max_capacity": null,
|
|
54
|
+
"mc_amount": "0",
|
|
55
|
+
"dp_mc_amount": "0",
|
|
56
|
+
"price": "0",
|
|
57
|
+
"benefit": "",
|
|
58
|
+
"notes": "",
|
|
59
|
+
"properties": {
|
|
60
|
+
"x": 20,
|
|
61
|
+
"y": 234,
|
|
62
|
+
"id": 1753784212894,
|
|
63
|
+
"src": "https://d3l3j4e3k9p181.cloudfront.net/dev/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1753784261235494218_png-transparent-club-chair-couch-furniture-fbx-armchair-angle-3d-computer-graphics-furniture.png",
|
|
64
|
+
"fill": "#bca16a",
|
|
65
|
+
"image": "/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1753784261235494218_png-transparent-club-chair-couch-furniture-fbx-armchair-angle-3d-computer-graphics-furniture.png",
|
|
66
|
+
"shape": "image-table",
|
|
67
|
+
"width": 61,
|
|
68
|
+
"height": 91,
|
|
69
|
+
"labels": [
|
|
70
|
+
{
|
|
71
|
+
"x": 0,
|
|
72
|
+
"y": 26,
|
|
73
|
+
"label": "New Table 3",
|
|
74
|
+
"fontSize": 12,
|
|
75
|
+
"fontColor": "#0d0c0c"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"opacity": 1,
|
|
79
|
+
"rotation": 0,
|
|
80
|
+
"seatCount": 0,
|
|
81
|
+
"uuid_table": "c160055a-c1df-49be-b52d-1baf3891c646"
|
|
82
|
+
},
|
|
83
|
+
"status": 0,
|
|
84
|
+
"media": null,
|
|
85
|
+
"is_fdc": 0,
|
|
86
|
+
"max_pax_fdc": 0
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"uuid": "a934afa7-88e2-4a2a-8121-f6827e598e59",
|
|
90
|
+
"uuid_event_outlet": "82147ecc-d17c-4b10-bf7e-4ca704242445",
|
|
91
|
+
"uuid_area": null,
|
|
92
|
+
"area_name": null,
|
|
93
|
+
"uuid_area_group": "a77c1139-dc00-4169-93a8-75ed1825c344",
|
|
94
|
+
"area_group_name": "Area Musholla",
|
|
95
|
+
"uuid_table": "b71b4c48-90d9-4992-9098-51e20175d0bc",
|
|
96
|
+
"table_name": "New Table 5",
|
|
97
|
+
"name": "New Table 5",
|
|
98
|
+
"capacity": 1,
|
|
99
|
+
"max_capacity": null,
|
|
100
|
+
"mc_amount": "0",
|
|
101
|
+
"dp_mc_amount": "0",
|
|
102
|
+
"price": "0",
|
|
103
|
+
"benefit": "",
|
|
104
|
+
"notes": "",
|
|
105
|
+
"properties": {
|
|
106
|
+
"x": 499,
|
|
107
|
+
"y": 89,
|
|
108
|
+
"id": 1753784212896,
|
|
109
|
+
"src": "https://d3l3j4e3k9p181.cloudfront.net/dev/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1753784304409930195_png-transparent-club-chair-couch-furniture-fbx-armchair-angle-3d-computer-graphics-furniture.png",
|
|
110
|
+
"fill": "#bca16a",
|
|
111
|
+
"image": "/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1753784304409930195_png-transparent-club-chair-couch-furniture-fbx-armchair-angle-3d-computer-graphics-furniture.png",
|
|
112
|
+
"shape": "image-table",
|
|
113
|
+
"width": 61,
|
|
114
|
+
"height": 91,
|
|
115
|
+
"labels": [
|
|
116
|
+
{
|
|
117
|
+
"x": 0,
|
|
118
|
+
"y": 27,
|
|
119
|
+
"label": "New Table 5",
|
|
120
|
+
"fontSize": 12,
|
|
121
|
+
"fontColor": "#0d0c0c"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"opacity": 1,
|
|
125
|
+
"rotation": 0,
|
|
126
|
+
"seatCount": 0,
|
|
127
|
+
"uuid_table": "b71b4c48-90d9-4992-9098-51e20175d0bc"
|
|
128
|
+
},
|
|
129
|
+
"status": 0,
|
|
130
|
+
"media": null,
|
|
131
|
+
"is_fdc": 0,
|
|
132
|
+
"max_pax_fdc": 0
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"uuid": "3783aedc-7456-4a05-bdb1-fa800ba92886",
|
|
136
|
+
"uuid_event_outlet": "82147ecc-d17c-4b10-bf7e-4ca704242445",
|
|
137
|
+
"uuid_area": null,
|
|
138
|
+
"area_name": null,
|
|
139
|
+
"uuid_area_group": "a77c1139-dc00-4169-93a8-75ed1825c344",
|
|
140
|
+
"area_group_name": "Area Musholla",
|
|
141
|
+
"uuid_table": "5612fdfb-cd5f-4846-8e2b-b0358bb5fb99",
|
|
142
|
+
"table_name": "New Table 2",
|
|
143
|
+
"name": "New Table 2",
|
|
144
|
+
"capacity": 1,
|
|
145
|
+
"max_capacity": null,
|
|
146
|
+
"mc_amount": "0",
|
|
147
|
+
"dp_mc_amount": "0",
|
|
148
|
+
"price": "0",
|
|
149
|
+
"benefit": "",
|
|
150
|
+
"notes": "",
|
|
151
|
+
"properties": {
|
|
152
|
+
"x": 327,
|
|
153
|
+
"y": 94,
|
|
154
|
+
"id": 1753784212893,
|
|
155
|
+
"src": "https://d3l3j4e3k9p181.cloudfront.net/dev/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1753784223751899172_png-transparent-club-chair-couch-furniture-fbx-armchair-angle-3d-computer-graphics-furniture.png",
|
|
156
|
+
"fill": "#bca16a",
|
|
157
|
+
"image": "/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1753784223751899172_png-transparent-club-chair-couch-furniture-fbx-armchair-angle-3d-computer-graphics-furniture.png",
|
|
158
|
+
"shape": "image-table",
|
|
159
|
+
"width": 61,
|
|
160
|
+
"height": 91,
|
|
161
|
+
"labels": [
|
|
162
|
+
{
|
|
163
|
+
"x": 0,
|
|
164
|
+
"y": 26,
|
|
165
|
+
"label": "New Table 2",
|
|
166
|
+
"fontSize": 12,
|
|
167
|
+
"fontColor": "#0d0c0c"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
"opacity": 1,
|
|
171
|
+
"rotation": 0,
|
|
172
|
+
"seatCount": 0,
|
|
173
|
+
"uuid_table": "5612fdfb-cd5f-4846-8e2b-b0358bb5fb99"
|
|
174
|
+
},
|
|
175
|
+
"status": 0,
|
|
176
|
+
"media": null,
|
|
177
|
+
"is_fdc": 0,
|
|
178
|
+
"max_pax_fdc": 0
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"uuid": "dfe5ecee-ba43-479f-ba61-3a62190e6d54",
|
|
182
|
+
"uuid_event_outlet": "82147ecc-d17c-4b10-bf7e-4ca704242445",
|
|
183
|
+
"uuid_area": null,
|
|
184
|
+
"area_name": null,
|
|
185
|
+
"uuid_area_group": "a77c1139-dc00-4169-93a8-75ed1825c344",
|
|
186
|
+
"area_group_name": "Area Musholla",
|
|
187
|
+
"uuid_table": "601899a7-b836-4bff-9a72-6f099196327d",
|
|
188
|
+
"table_name": "New Table 4",
|
|
189
|
+
"name": "New Table 4",
|
|
190
|
+
"capacity": 1,
|
|
191
|
+
"max_capacity": null,
|
|
192
|
+
"mc_amount": "0",
|
|
193
|
+
"dp_mc_amount": "0",
|
|
194
|
+
"price": "0",
|
|
195
|
+
"benefit": "",
|
|
196
|
+
"notes": "",
|
|
197
|
+
"properties": {
|
|
198
|
+
"x": 622,
|
|
199
|
+
"y": 234,
|
|
200
|
+
"id": 1753784212895,
|
|
201
|
+
"src": "https://d3l3j4e3k9p181.cloudfront.net/dev/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1753784286964301060_png-transparent-club-chair-couch-furniture-fbx-armchair-angle-3d-computer-graphics-furniture.png",
|
|
202
|
+
"fill": "#bca16a",
|
|
203
|
+
"image": "/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1753784286964301060_png-transparent-club-chair-couch-furniture-fbx-armchair-angle-3d-computer-graphics-furniture.png",
|
|
204
|
+
"shape": "image-table",
|
|
205
|
+
"width": 61,
|
|
206
|
+
"height": 91,
|
|
207
|
+
"labels": [
|
|
208
|
+
{
|
|
209
|
+
"x": 0,
|
|
210
|
+
"y": 27,
|
|
211
|
+
"label": "New Table 4",
|
|
212
|
+
"fontSize": 12,
|
|
213
|
+
"fontColor": "#0d0c0c"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"opacity": 1,
|
|
217
|
+
"rotation": 0,
|
|
218
|
+
"seatCount": 0,
|
|
219
|
+
"uuid_table": "601899a7-b836-4bff-9a72-6f099196327d"
|
|
220
|
+
},
|
|
221
|
+
"status": 0,
|
|
222
|
+
"media": null,
|
|
223
|
+
"is_fdc": 0,
|
|
224
|
+
"max_pax_fdc": 0
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"uuid": "eb89cbaa-8ba6-4c78-bcd9-2fc190de945c",
|
|
228
|
+
"uuid_event_outlet": "82147ecc-d17c-4b10-bf7e-4ca704242445",
|
|
229
|
+
"uuid_area": null,
|
|
230
|
+
"area_name": null,
|
|
231
|
+
"uuid_area_group": "a77c1139-dc00-4169-93a8-75ed1825c344",
|
|
232
|
+
"area_group_name": "Area Musholla",
|
|
233
|
+
"uuid_table": "8ea6f8ca-7ecd-48ec-a1a7-7bd258e403f5",
|
|
234
|
+
"table_name": "New Table 6",
|
|
235
|
+
"name": "New Table 6",
|
|
236
|
+
"capacity": 1,
|
|
237
|
+
"max_capacity": null,
|
|
238
|
+
"mc_amount": "0",
|
|
239
|
+
"dp_mc_amount": "0",
|
|
240
|
+
"price": "0",
|
|
241
|
+
"benefit": "",
|
|
242
|
+
"notes": "",
|
|
243
|
+
"properties": {
|
|
244
|
+
"x": 645,
|
|
245
|
+
"y": 88,
|
|
246
|
+
"id": 1753784212897,
|
|
247
|
+
"src": "https://d3l3j4e3k9p181.cloudfront.net/dev/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1753784322083647106_png-transparent-club-chair-couch-furniture-fbx-armchair-angle-3d-computer-graphics-furniture.png",
|
|
248
|
+
"fill": "#bca16a",
|
|
249
|
+
"image": "/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1753784322083647106_png-transparent-club-chair-couch-furniture-fbx-armchair-angle-3d-computer-graphics-furniture.png",
|
|
250
|
+
"shape": "image-table",
|
|
251
|
+
"width": 61,
|
|
252
|
+
"height": 91,
|
|
253
|
+
"labels": [
|
|
254
|
+
{
|
|
255
|
+
"x": 0,
|
|
256
|
+
"y": 27,
|
|
257
|
+
"label": "New Table 6",
|
|
258
|
+
"fontSize": 12,
|
|
259
|
+
"fontColor": "#0d0c0c"
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
"opacity": 1,
|
|
263
|
+
"rotation": 0,
|
|
264
|
+
"seatCount": 0,
|
|
265
|
+
"uuid_table": "8ea6f8ca-7ecd-48ec-a1a7-7bd258e403f5"
|
|
266
|
+
},
|
|
267
|
+
"status": 0,
|
|
268
|
+
"media": null,
|
|
269
|
+
"is_fdc": 0,
|
|
270
|
+
"max_pax_fdc": 0
|
|
271
|
+
}
|
|
272
|
+
];
|
package/dist/app/layout.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
1
|
import localFont from "next/font/local";
|
|
3
2
|
import "./globals.css";
|
|
4
3
|
import { Layout } from "antd";
|
|
@@ -18,5 +17,11 @@ export const metadata = {
|
|
|
18
17
|
description: "Generated by create next app",
|
|
19
18
|
};
|
|
20
19
|
export default function RootLayout({ children, }) {
|
|
21
|
-
return (
|
|
20
|
+
return (<html lang="en">
|
|
21
|
+
<body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>
|
|
22
|
+
<StoreProvider>
|
|
23
|
+
<Layout>{children}</Layout>
|
|
24
|
+
</StoreProvider>
|
|
25
|
+
</body>
|
|
26
|
+
</html>);
|
|
22
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function NewBoard(): import("react
|
|
1
|
+
export default function NewBoard(): import("react").JSX.Element;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import SeatEditor from "../../features/package";
|
|
4
|
+
import { constantData } from "../constant";
|
|
5
|
+
export default function NewBoard() {
|
|
6
|
+
const [initialValue, setInitialValue] = useState([]);
|
|
7
|
+
const [extraComponents, setExtraComponents] = useState([]);
|
|
8
|
+
const [backgroundColor, setBackgroundColor] = useState("#ffffff");
|
|
9
|
+
const [viewOnly, setViewOnly] = useState(true);
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
setInitialValue(constantData);
|
|
12
|
+
setExtraComponents([{
|
|
13
|
+
src: "https://d3l3j4e3k9p181.cloudfront.net/dev/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1751350513582817819_download (10).jpg",
|
|
14
|
+
id: 1747388267450,
|
|
15
|
+
x: 0,
|
|
16
|
+
y: 0,
|
|
17
|
+
shape: "background",
|
|
18
|
+
width: 100,
|
|
19
|
+
height: 100,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
src: "https://d3l3j4e3k9p181.cloudfront.net/dev/5bf923de-2366-4a11-9b8b-e92de0afbf05/3a65cb36-7d85-4c38-9403-a15f94641920/68d45207-d66b-4bb5-92a2-4e5a87715e98/rsvp/1751350513582817819_download (10).jpg",
|
|
23
|
+
id: 1747388267451,
|
|
24
|
+
x: 100,
|
|
25
|
+
y: 100,
|
|
26
|
+
text: "tsdsdsds",
|
|
27
|
+
fill: "#000000",
|
|
28
|
+
shape: "text",
|
|
29
|
+
width: 100,
|
|
30
|
+
height: 100,
|
|
31
|
+
}]);
|
|
32
|
+
}, []);
|
|
33
|
+
return (<>
|
|
34
|
+
<div className="w-full h-screen flex flex-col relative justify-center">
|
|
35
|
+
{/* <div className="w-full h-[1000px] bg-white border-r border-gray-200"> */}
|
|
36
|
+
{/* <LayerView
|
|
37
|
+
componentProps={initialValue}
|
|
38
|
+
mappingKey="properties"
|
|
39
|
+
extraComponentProps={[]}
|
|
40
|
+
defaultBackground="#ffffff"
|
|
41
|
+
// dragOnly={true}
|
|
42
|
+
statusKey="status"
|
|
43
|
+
|
|
44
|
+
/> */}
|
|
45
|
+
{/* </div> */}
|
|
46
|
+
<button className="bg-blue-500 text-white px-4 py-2 rounded" onClick={() => setViewOnly(!viewOnly)}>
|
|
47
|
+
{viewOnly ? "Edit Mode" : "View Mode"}
|
|
48
|
+
</button>
|
|
49
|
+
<div className="flex-1 h-full">
|
|
50
|
+
<SeatEditor componentProps={initialValue} viewOnly={viewOnly} dragOnly deleteAutorized={{
|
|
51
|
+
component: true,
|
|
52
|
+
extraComponent: true,
|
|
53
|
+
}} mappingKey="properties" onCurrentStateChange={(setState) => {
|
|
54
|
+
var _a, _b, _c, _d;
|
|
55
|
+
console.log({ setState }, "masukk");
|
|
56
|
+
if (((_a = setState === null || setState === void 0 ? void 0 : setState.components) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
57
|
+
setInitialValue((_b = setState === null || setState === void 0 ? void 0 : setState.components) !== null && _b !== void 0 ? _b : []);
|
|
58
|
+
}
|
|
59
|
+
if (setState === null || setState === void 0 ? void 0 : setState.backgroundColor) {
|
|
60
|
+
setBackgroundColor(setState === null || setState === void 0 ? void 0 : setState.backgroundColor);
|
|
61
|
+
}
|
|
62
|
+
if (((_c = setState === null || setState === void 0 ? void 0 : setState.extraComponents) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
|
63
|
+
setExtraComponents((_d = setState === null || setState === void 0 ? void 0 : setState.extraComponents) !== null && _d !== void 0 ? _d : []);
|
|
64
|
+
}
|
|
65
|
+
}} extraComponentProps={extraComponents} defaultBackground={backgroundColor}
|
|
66
|
+
// dragOnly={true}
|
|
67
|
+
statusKey="status"/>
|
|
68
|
+
</div>
|
|
69
|
+
|
|
70
|
+
</div>
|
|
71
|
+
</>);
|
|
72
|
+
}
|