seat-editor 3.1.18 → 3.1.19
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
CHANGED
|
@@ -162,6 +162,23 @@ export declare const test1: {
|
|
|
162
162
|
offsetX: string;
|
|
163
163
|
offsetY: string;
|
|
164
164
|
direction: string;
|
|
165
|
+
} | {
|
|
166
|
+
gap: string;
|
|
167
|
+
key: string;
|
|
168
|
+
items: ({
|
|
169
|
+
type: string;
|
|
170
|
+
value: string;
|
|
171
|
+
fontWeight: string;
|
|
172
|
+
textDecoration: string;
|
|
173
|
+
} | {
|
|
174
|
+
type: string;
|
|
175
|
+
value: string;
|
|
176
|
+
fontWeight?: undefined;
|
|
177
|
+
textDecoration?: undefined;
|
|
178
|
+
})[];
|
|
179
|
+
direction: string;
|
|
180
|
+
offsetY: number;
|
|
181
|
+
offsetX?: undefined;
|
|
165
182
|
})[];
|
|
166
183
|
shape: string;
|
|
167
184
|
width: number;
|
package/dist/app/constant.js
CHANGED
|
@@ -3138,6 +3138,12 @@ export const test1 = [
|
|
|
3138
3138
|
gap: "2",
|
|
3139
3139
|
key: "rsvp_time",
|
|
3140
3140
|
items: [
|
|
3141
|
+
{
|
|
3142
|
+
type: "text",
|
|
3143
|
+
value: "18:00",
|
|
3144
|
+
fontWeight: "bold",
|
|
3145
|
+
textDecoration: "underline",
|
|
3146
|
+
},
|
|
3141
3147
|
{
|
|
3142
3148
|
type: "text",
|
|
3143
3149
|
value: "19:00",
|
|
@@ -3148,6 +3154,7 @@ export const test1 = [
|
|
|
3148
3154
|
},
|
|
3149
3155
|
],
|
|
3150
3156
|
direction: "column",
|
|
3157
|
+
offsetY: -25
|
|
3151
3158
|
},
|
|
3152
3159
|
],
|
|
3153
3160
|
shape: "square",
|
|
@@ -3189,6 +3196,10 @@ export const test1 = [
|
|
|
3189
3196
|
},
|
|
3190
3197
|
],
|
|
3191
3198
|
upcomings: [
|
|
3199
|
+
{
|
|
3200
|
+
time: "18:00",
|
|
3201
|
+
uuid: "9d5504a8-0f35-4027-8fff-c33235acfef0",
|
|
3202
|
+
},
|
|
3192
3203
|
{
|
|
3193
3204
|
time: "19:00",
|
|
3194
3205
|
uuid: "ab7eb02b-1c4b-4e13-9ad8-122c891376db",
|
|
@@ -194,7 +194,7 @@ const TouchScrollDetect = () => {
|
|
|
194
194
|
items: ["text", "icon"],
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
|
-
key: "
|
|
197
|
+
key: "rsvp_time",
|
|
198
198
|
items: ["text", "icon"],
|
|
199
199
|
},
|
|
200
200
|
]} defaultBackground="#000000" mappingKey="properties" componentProps={test1} onDrop={(e, data) => handleDrop(e, data)} onSwitch={(e, data) => handleSwitch(e, data)} extraComponentProps={[]} onSelectComponent={(component) => {
|
|
@@ -76,7 +76,8 @@ const LayerView = (props) => {
|
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
if (type === "get" && dataParams) {
|
|
79
|
-
|
|
79
|
+
const mapped = mappingKey ? dataParams[mappingKey] : undefined;
|
|
80
|
+
data = mapped !== undefined ? mapped : dataParams;
|
|
80
81
|
}
|
|
81
82
|
return data;
|
|
82
83
|
};
|
|
@@ -228,6 +229,7 @@ const LayerView = (props) => {
|
|
|
228
229
|
const tableId = JSON.parse(group.getAttribute("data-id") || "{}");
|
|
229
230
|
const dragEvent = event;
|
|
230
231
|
const dataTransfer = JSON.parse(((_a = dragEvent.dataTransfer) === null || _a === void 0 ? void 0 : _a.getData("application/json")) || "{}");
|
|
232
|
+
console.log({ dataTransfer });
|
|
231
233
|
const data = {
|
|
232
234
|
targetTable: originalData({ id: tableId, type: "find" }),
|
|
233
235
|
sourceTable: originalData({ dataParams: dataTransfer, type: "get" }),
|