@social-mail/social-mail-client 1.2.421 → 1.2.422
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/admin/AdminAppIndex.pack.js +21 -7
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +2 -2
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/HtmlPageEditor.js +1 -7
- package/dist/site-editor/editor/HtmlPageEditor.js.map +1 -1
- package/dist/site-editor/editor/SelectedElement.d.ts +2 -0
- package/dist/site-editor/editor/SelectedElement.d.ts.map +1 -1
- package/dist/site-editor/editor/SelectedElement.js +20 -0
- package/dist/site-editor/editor/SelectedElement.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +21 -7
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +2 -2
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/site-editor/editor/HtmlPageEditor.tsx +1 -7
- package/src/site-editor/editor/SelectedElement.tsx +23 -0
|
@@ -43823,6 +43823,15 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
|
|
|
43823
43823
|
}
|
|
43824
43824
|
});
|
|
43825
43825
|
}
|
|
43826
|
+
setDraggable() {
|
|
43827
|
+
const element = this.e;
|
|
43828
|
+
element.draggable = true;
|
|
43829
|
+
this.dragTimeout = setTimeout(() => {
|
|
43830
|
+
if (element.draggable) {
|
|
43831
|
+
element.removeAttribute("draggable");
|
|
43832
|
+
}
|
|
43833
|
+
}, 5000);
|
|
43834
|
+
}
|
|
43826
43835
|
getDropTarget(dragged, target) {
|
|
43827
43836
|
const isDropTarget = /^(main|section|carousel\-slider)$/i;
|
|
43828
43837
|
if (isDropTarget.test(dragged === null || dragged === void 0 ? void 0 : dragged.tagName)) {
|
|
@@ -43899,9 +43908,20 @@ System.register(["@web-atoms/core/dist/core/AtomBinder"], function (_export, _co
|
|
|
43899
43908
|
}
|
|
43900
43909
|
update(e) {
|
|
43901
43910
|
var _a;
|
|
43911
|
+
const oe = this.e;
|
|
43902
43912
|
if (e) {
|
|
43913
|
+
if (e === this.e) {
|
|
43914
|
+
return;
|
|
43915
|
+
}
|
|
43903
43916
|
if (this.e) {
|
|
43904
43917
|
this.mo.disconnect();
|
|
43918
|
+
if (oe.draggable) {
|
|
43919
|
+
oe.removeAttribute("draggable");
|
|
43920
|
+
}
|
|
43921
|
+
if (this.dragTimeout) {
|
|
43922
|
+
clearTimeout(this.dragTimeout);
|
|
43923
|
+
this.dragTimeout = 0;
|
|
43924
|
+
}
|
|
43905
43925
|
}
|
|
43906
43926
|
this.e = e;
|
|
43907
43927
|
AtomBinder.refreshValue(this, "element");
|
|
@@ -46217,13 +46237,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
46217
46237
|
}
|
|
46218
46238
|
}), XNode.create("i", {
|
|
46219
46239
|
"event-click": () => {
|
|
46220
|
-
|
|
46221
|
-
current.draggable = true;
|
|
46222
|
-
setTimeout(() => {
|
|
46223
|
-
if (current.draggable) {
|
|
46224
|
-
current.removeAttribute("draggable");
|
|
46225
|
-
}
|
|
46226
|
-
}, 5000);
|
|
46240
|
+
this.selection.setDraggable();
|
|
46227
46241
|
},
|
|
46228
46242
|
class: "fa-solid fa-up-down-left-right",
|
|
46229
46243
|
"data-click-event": "start-drag"
|