@social-mail/social-mail-client 1.2.710 → 1.2.712
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 +50 -17
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +19 -2
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/MenuService.d.ts +18 -6
- package/dist/common/MenuService.d.ts.map +1 -1
- package/dist/common/MenuService.js +49 -16
- package/dist/common/MenuService.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +56 -19
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +21 -4
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.d.ts +1 -0
- package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.d.ts.map +1 -1
- package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.js +6 -2
- package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +51 -17
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +20 -3
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/drawer/AppDrawer.d.ts.map +1 -1
- package/dist/web/drawer/AppDrawer.js +1 -0
- package/dist/web/drawer/AppDrawer.js.map +1 -1
- package/dist/web/page/mails/MailboxContacts.js +1 -1
- package/dist/web/page/mails/MailboxContacts.js.map +1 -1
- package/package.json +1 -1
- package/src/common/{MenuService.ts → MenuService.tsx} +53 -15
- package/src/site-editor-app/pages/websites/studio/WebSiteStudioPage.tsx +5 -0
- package/src/web/drawer/AppDrawer.tsx +10 -7
- package/src/web/page/mails/MailboxContacts.tsx +1 -1
|
@@ -39677,15 +39677,29 @@ System.register([], function (_export, _context) {
|
|
|
39677
39677
|
|
|
39678
39678
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/StringFormat");
|
|
39679
39679
|
|
|
39680
|
-
System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../model/model", "../services/EntityService", "./pages/mailboxes/services/MailboxService", "./pages/files/service/CloudFileService"], function (_export, _context) {
|
|
39680
|
+
System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../model/model", "../services/EntityService", "./pages/mailboxes/services/MailboxService", "./pages/files/service/CloudFileService", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/style/styled"], function (_export, _context) {
|
|
39681
39681
|
"use strict";
|
|
39682
39682
|
|
|
39683
|
-
var __awaiter, __decorate, __metadata, DISingleton, Inject, modelEntitySchemas, EntityService, MailboxService, CloudFileService, MenuService;
|
|
39683
|
+
var __awaiter, __decorate, __metadata, __rest, DISingleton, Inject, modelEntitySchemas, EntityService, MailboxService, CloudFileService, XNode, styled, canMenuBeClosed, MenuService;
|
|
39684
|
+
function RemovableItem(_a, ...nodes) {
|
|
39685
|
+
var {
|
|
39686
|
+
removable = false
|
|
39687
|
+
} = _a,
|
|
39688
|
+
a = __rest(_a, ["removable"]);
|
|
39689
|
+
if (!removable) {
|
|
39690
|
+
return nodes[0];
|
|
39691
|
+
}
|
|
39692
|
+
return XNode.create("removable-menu", null, ...nodes, XNode.create("i", {
|
|
39693
|
+
class: "fas fa-times-circle"
|
|
39694
|
+
}));
|
|
39695
|
+
}
|
|
39696
|
+
_export("RemovableItem", RemovableItem);
|
|
39684
39697
|
return {
|
|
39685
39698
|
setters: [function (_tslib) {
|
|
39686
39699
|
__awaiter = _tslib.__awaiter;
|
|
39687
39700
|
__decorate = _tslib.__decorate;
|
|
39688
39701
|
__metadata = _tslib.__metadata;
|
|
39702
|
+
__rest = _tslib.__rest;
|
|
39689
39703
|
}, function (_webAtomsCoreDistDiDISingleton) {
|
|
39690
39704
|
DISingleton = _webAtomsCoreDistDiDISingleton.default;
|
|
39691
39705
|
}, function (_webAtomsCoreDistDiInject) {
|
|
@@ -39698,8 +39712,31 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
39698
39712
|
MailboxService = _pagesMailboxesServicesMailboxService.default;
|
|
39699
39713
|
}, function (_pagesFilesServiceCloudFileService) {
|
|
39700
39714
|
CloudFileService = _pagesFilesServiceCloudFileService.default;
|
|
39715
|
+
}, function (_webAtomsCoreDistCoreXNode) {
|
|
39716
|
+
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
39717
|
+
}, function (_webAtomsCoreDistStyleStyled) {
|
|
39718
|
+
styled = _webAtomsCoreDistStyleStyled.default;
|
|
39701
39719
|
}],
|
|
39702
39720
|
execute: function () {
|
|
39721
|
+
_export("canMenuBeClosed", canMenuBeClosed = Symbol("canBeClosed"));
|
|
39722
|
+
styled.css`
|
|
39723
|
+
|
|
39724
|
+
display: flex;
|
|
39725
|
+
align-items: center;
|
|
39726
|
+
position: relative;
|
|
39727
|
+
|
|
39728
|
+
padding-right: 30px;
|
|
39729
|
+
|
|
39730
|
+
& > i {
|
|
39731
|
+
grid-column: 2;
|
|
39732
|
+
color: red;
|
|
39733
|
+
cursor: pointer;
|
|
39734
|
+
position: absolute;
|
|
39735
|
+
right: 5px;
|
|
39736
|
+
top: 5px;
|
|
39737
|
+
}
|
|
39738
|
+
|
|
39739
|
+
`.installGlobal("removable-menu");
|
|
39703
39740
|
MenuService = class MenuService {
|
|
39704
39741
|
constructor() {
|
|
39705
39742
|
this.websites = [];
|
|
@@ -39723,19 +39760,19 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
39723
39760
|
this.websites.addAll(websites);
|
|
39724
39761
|
});
|
|
39725
39762
|
}
|
|
39726
|
-
addMailbox(
|
|
39727
|
-
this.add(
|
|
39763
|
+
addMailbox(mb) {
|
|
39764
|
+
this.add(this.mailboxes, mb);
|
|
39728
39765
|
}
|
|
39729
|
-
addWebSite(
|
|
39730
|
-
this.add(
|
|
39766
|
+
addWebSite(mb) {
|
|
39767
|
+
this.add(this.websites, mb);
|
|
39731
39768
|
}
|
|
39732
|
-
addDrives(
|
|
39733
|
-
this.add(
|
|
39769
|
+
addDrives(mb) {
|
|
39770
|
+
this.add(this.drives, mb);
|
|
39734
39771
|
}
|
|
39735
|
-
addChannel(
|
|
39736
|
-
this.add(
|
|
39772
|
+
addChannel(mb) {
|
|
39773
|
+
this.add(this.mailboxes, mb);
|
|
39737
39774
|
}
|
|
39738
|
-
add(
|
|
39775
|
+
add(list, item) {
|
|
39739
39776
|
const model = modelEntitySchemas[item.$type];
|
|
39740
39777
|
const {
|
|
39741
39778
|
keys
|
|
@@ -39743,12 +39780,8 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
39743
39780
|
if (list.some(m => keys.every(k => m[k.name] === item[k.name]))) {
|
|
39744
39781
|
return;
|
|
39745
39782
|
}
|
|
39783
|
+
item[canMenuBeClosed] = true;
|
|
39746
39784
|
list.insert(0, item);
|
|
39747
|
-
arg.registerDisposable({
|
|
39748
|
-
dispose: () => {
|
|
39749
|
-
list.remove(item);
|
|
39750
|
-
}
|
|
39751
|
-
});
|
|
39752
39785
|
}
|
|
39753
39786
|
};
|
|
39754
39787
|
__decorate([Inject, __metadata("design:type", EntityService)], MenuService.prototype, "entityService", void 0);
|
|
@@ -40012,7 +40045,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
40012
40045
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40013
40046
|
const mailboxID = this.parameters.id;
|
|
40014
40047
|
const mailbox = this.currentMailbox = yield this.mailService.mailbox(mailboxID);
|
|
40015
|
-
this.menuService.addMailbox(
|
|
40048
|
+
this.menuService.addMailbox(mailbox);
|
|
40016
40049
|
this.folder = mailbox.folders[0];
|
|
40017
40050
|
if (mailbox.isExternal) {
|
|
40018
40051
|
const es = this.resolve(EntityService);
|
|
@@ -49088,6 +49121,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "../../common/Socia
|
|
|
49088
49121
|
items: this.menuService.websites,
|
|
49089
49122
|
itemRenderer: d => XNode.create(MenuItem, {
|
|
49090
49123
|
href: AppUrlService.editWebSite(d),
|
|
49124
|
+
target: `_web_${d.folderID}`,
|
|
49091
49125
|
label: d.folder.name,
|
|
49092
49126
|
description: toFileSize(Number(d.folder.fileSize) + Number(d.snapshotStorage))
|
|
49093
49127
|
})
|