seat-editor 3.2.21 → 3.2.22

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.
@@ -200,12 +200,14 @@ const TouchScrollDetect = () => {
200
200
  },
201
201
  ]} defaultBackground="#000000" mappingKey="properties" componentProps={test1} onDrop={(e, data) => handleDrop(e, data)} onSwitch={(e, data) => handleSwitch(e, data)} extraComponentProps={[]} onSelectComponent={(component) => {
202
202
  handleSelectTable(component);
203
- }} dragTableBlockKey={[
204
- {
205
- key: "is_lock",
206
- value: 1,
207
- },
208
- ]} tableMatchKey={[
203
+ }}
204
+ // dragTableBlockKey={[
205
+ // {
206
+ // key: "is_lock",
207
+ // value: 1,
208
+ // },
209
+ // ]}
210
+ tableMatchKey={[
209
211
  {
210
212
  key: 0,
211
213
  properties: { fill: "white" },
@@ -298,10 +298,10 @@ const LayerView = (props) => {
298
298
  // clone element yang diklik
299
299
  let ghost = targetGroup.cloneNode(true);
300
300
  const ghostId = JSON.parse(targetGroup.getAttribute("data-id") || "{}");
301
- const allowedDrag = (_a = props === null || props === void 0 ? void 0 : props.dragTableBlockKey) === null || _a === void 0 ? void 0 : _a.some((_) => {
301
+ const allowedDrag = ((_a = props === null || props === void 0 ? void 0 : props.dragTableBlockKey) === null || _a === void 0 ? void 0 : _a.some((_) => {
302
302
  const dataRaw = originalData({ id: ghostId, type: "find" });
303
303
  return _.value !== (dataRaw === null || dataRaw === void 0 ? void 0 : dataRaw[_.key]);
304
- });
304
+ })) || true;
305
305
  if (ghostAttributes) {
306
306
  Object.keys(ghostAttributes).forEach((key) => {
307
307
  ghost.setAttribute(key, ghostAttributes[key]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seat-editor",
3
- "version": "3.2.21",
3
+ "version": "3.2.22",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",