@social-mail/social-mail-client 1.9.170 → 1.9.172
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 +51 -1
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/controls/drag-drop/FilesDragDrop.d.ts.map +1 -1
- package/dist/common/controls/drag-drop/FilesDragDrop.js +13 -1
- package/dist/common/controls/drag-drop/FilesDragDrop.js.map +1 -1
- package/dist/common/pages/files/service/CloudFileService.d.ts +1 -0
- package/dist/common/pages/files/service/CloudFileService.d.ts.map +1 -1
- package/dist/common/pages/files/service/CloudFileService.js +38 -0
- package/dist/common/pages/files/service/CloudFileService.js.map +1 -1
- package/dist/site-editor/drag-drop/DragDropHelper.d.ts.map +1 -1
- package/dist/site-editor/drag-drop/DragDropHelper.js +26 -4
- package/dist/site-editor/drag-drop/DragDropHelper.js.map +1 -1
- package/dist/site-editor/editor/SelectedElement.d.ts +1 -1
- package/dist/site-editor/editor/SelectedElement.d.ts.map +1 -1
- package/dist/site-editor/editor/SelectedElement.js +14 -1
- package/dist/site-editor/editor/SelectedElement.js.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.d.ts +1 -0
- package/dist/site-editor/editor/WebSitePageEditor.d.ts.map +1 -1
- package/dist/site-editor/editor/WebSitePageEditor.js +25 -0
- package/dist/site-editor/editor/WebSitePageEditor.js.map +1 -1
- package/dist/site-editor/editor/ui/SelectionUI.d.ts.map +1 -1
- package/dist/site-editor/editor/ui/SelectionUI.js +30 -2
- package/dist/site-editor/editor/ui/SelectionUI.js.map +1 -1
- package/dist/site-editor/services/DragAndDropStore.d.ts +7 -0
- package/dist/site-editor/services/DragAndDropStore.d.ts.map +1 -0
- package/dist/site-editor/services/DragAndDropStore.js +45 -0
- package/dist/site-editor/services/DragAndDropStore.js.map +1 -0
- package/dist/site-editor/tools/files/SiteFiles.d.ts +12 -5
- package/dist/site-editor/tools/files/SiteFiles.d.ts.map +1 -1
- package/dist/site-editor/tools/files/SiteFiles.js +135 -35
- package/dist/site-editor/tools/files/SiteFiles.js.map +1 -1
- package/dist/site-editor/tools/section/ToolSection.d.ts +9 -2
- package/dist/site-editor/tools/section/ToolSection.d.ts.map +1 -1
- package/dist/site-editor/tools/section/ToolSection.js +47 -9
- package/dist/site-editor/tools/section/ToolSection.js.map +1 -1
- package/dist/site-editor/tools/section/ToolSection.local.css +1 -1
- package/dist/site-editor/tools/section/ToolSection.local.css.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.global.css +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.global.css.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +466 -39
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.local.css +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.local.css.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.d.ts.map +1 -1
- package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.js +27 -21
- package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.js.map +1 -1
- package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.local.css +1 -1
- package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.local.css.map +1 -1
- package/dist/site-editor-app/pages/websites/studio/tool-bar/StudioToolBar.global.css +1 -1
- package/dist/site-editor-app/pages/websites/studio/tool-bar/StudioToolBar.global.css.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +51 -1
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/common/controls/drag-drop/FilesDragDrop.ts +13 -1
- package/src/common/pages/files/service/CloudFileService.ts +47 -0
- package/src/site-editor/drag-drop/DragDropHelper.ts +27 -2
- package/src/site-editor/editor/SelectedElement.tsx +16 -1
- package/src/site-editor/editor/WebSitePageEditor.tsx +19 -0
- package/src/site-editor/editor/ui/SelectionUI.tsx +29 -0
- package/src/site-editor/services/DragAndDropStore.ts +42 -0
- package/src/site-editor/tools/files/SiteFiles.tsx +141 -22
- package/src/site-editor/tools/section/ToolSection.local.css +36 -4
- package/src/site-editor/tools/section/ToolSection.tsx +55 -9
- package/src/site-editor-app/pages/websites/studio/WebSiteStudioPage.local.css +4 -1
- package/src/site-editor-app/pages/websites/studio/WebSiteStudioPage.tsx +27 -20
- package/src/site-editor-app/pages/websites/studio/tool-bar/StudioToolBar.global.css +2 -1
|
@@ -24606,6 +24606,44 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
24606
24606
|
yield this.entityService.save(files);
|
|
24607
24607
|
});
|
|
24608
24608
|
}
|
|
24609
|
+
getRelativePath(page, res) {
|
|
24610
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24611
|
+
const src = page.path.split("/");
|
|
24612
|
+
const dest = res.path.split("/");
|
|
24613
|
+
src.pop();
|
|
24614
|
+
dest.pop();
|
|
24615
|
+
while (src.length && dest.length) {
|
|
24616
|
+
const topSrc = src[0];
|
|
24617
|
+
const topDest = dest[0];
|
|
24618
|
+
if (topSrc !== topDest) {
|
|
24619
|
+
break;
|
|
24620
|
+
}
|
|
24621
|
+
src.shift();
|
|
24622
|
+
dest.shift();
|
|
24623
|
+
}
|
|
24624
|
+
const pageFolder = [];
|
|
24625
|
+
while (src.length > 1) {
|
|
24626
|
+
pageFolder.push("..");
|
|
24627
|
+
src.shift();
|
|
24628
|
+
}
|
|
24629
|
+
if (!pageFolder.length) {
|
|
24630
|
+
pageFolder.push(".");
|
|
24631
|
+
}
|
|
24632
|
+
const ids = [];
|
|
24633
|
+
while (dest.length > 1) {
|
|
24634
|
+
ids.push(dest.shift());
|
|
24635
|
+
}
|
|
24636
|
+
const folders = yield this.entityService.query(AppFile).where({
|
|
24637
|
+
ids
|
|
24638
|
+
}, p => x => Sql.in(x.appFileID, p.ids)).toArray();
|
|
24639
|
+
for (const id of ids) {
|
|
24640
|
+
const folder = folders.find(x => x.appFileID === id);
|
|
24641
|
+
pageFolder.push(folder.name);
|
|
24642
|
+
}
|
|
24643
|
+
pageFolder.push(res.name);
|
|
24644
|
+
return pageFolder.join("/");
|
|
24645
|
+
});
|
|
24646
|
+
}
|
|
24609
24647
|
getFilePath(root, selectedFile) {
|
|
24610
24648
|
var _a;
|
|
24611
24649
|
const all = selectedFile.path.split("/");
|
|
@@ -37651,6 +37689,12 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "./Fi
|
|
|
37651
37689
|
if (!e.dataTransfer) {
|
|
37652
37690
|
return;
|
|
37653
37691
|
}
|
|
37692
|
+
e.preventDefault();
|
|
37693
|
+
if (e.dataTransfer.types.includes("application/tool-id")) {
|
|
37694
|
+
e.dataTransfer.dropEffect = "none";
|
|
37695
|
+
return;
|
|
37696
|
+
}
|
|
37697
|
+
e.dataTransfer.dropEffect = "copy";
|
|
37654
37698
|
clearTimeout(dragLeaveTimer);
|
|
37655
37699
|
e.currentTarget.setAttribute("data-drop-enabled", "1");
|
|
37656
37700
|
};
|
|
@@ -37659,6 +37703,11 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "./Fi
|
|
|
37659
37703
|
return;
|
|
37660
37704
|
}
|
|
37661
37705
|
e.preventDefault();
|
|
37706
|
+
if (e.dataTransfer.types.includes("application/tool-id")) {
|
|
37707
|
+
e.dataTransfer.dropEffect = "none";
|
|
37708
|
+
return;
|
|
37709
|
+
}
|
|
37710
|
+
e.dataTransfer.dropEffect = "copy";
|
|
37662
37711
|
clearTimeout(dragLeaveTimer);
|
|
37663
37712
|
e.currentTarget.setAttribute("data-drop-enabled", "1");
|
|
37664
37713
|
};
|
|
@@ -37666,7 +37715,8 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl", "./Fi
|
|
|
37666
37715
|
if (!e.dataTransfer) {
|
|
37667
37716
|
return;
|
|
37668
37717
|
}
|
|
37669
|
-
|
|
37718
|
+
const currentTarget = e.currentTarget;
|
|
37719
|
+
dragLeaveTimer = setTimeout(() => currentTarget.removeAttribute("data-drop-enabled"), 500);
|
|
37670
37720
|
};
|
|
37671
37721
|
eventDrop = e => {
|
|
37672
37722
|
var _a;
|