@social-mail/social-mail-client 1.2.711 → 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 +50 -17
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +19 -2
- 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.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 +9 -7
- package/src/web/page/mails/MailboxContacts.tsx +1 -1
|
@@ -42956,15 +42956,29 @@ System.register([], function (_export, _context) {
|
|
|
42956
42956
|
|
|
42957
42957
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/StringFormat");
|
|
42958
42958
|
|
|
42959
|
-
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) {
|
|
42959
|
+
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) {
|
|
42960
42960
|
"use strict";
|
|
42961
42961
|
|
|
42962
|
-
var __awaiter, __decorate, __metadata, DISingleton, Inject, modelEntitySchemas, EntityService, MailboxService, CloudFileService, MenuService;
|
|
42962
|
+
var __awaiter, __decorate, __metadata, __rest, DISingleton, Inject, modelEntitySchemas, EntityService, MailboxService, CloudFileService, XNode, styled, canMenuBeClosed, MenuService;
|
|
42963
|
+
function RemovableItem(_a, ...nodes) {
|
|
42964
|
+
var {
|
|
42965
|
+
removable = false
|
|
42966
|
+
} = _a,
|
|
42967
|
+
a = __rest(_a, ["removable"]);
|
|
42968
|
+
if (!removable) {
|
|
42969
|
+
return nodes[0];
|
|
42970
|
+
}
|
|
42971
|
+
return XNode.create("removable-menu", null, ...nodes, XNode.create("i", {
|
|
42972
|
+
class: "fas fa-times-circle"
|
|
42973
|
+
}));
|
|
42974
|
+
}
|
|
42975
|
+
_export("RemovableItem", RemovableItem);
|
|
42963
42976
|
return {
|
|
42964
42977
|
setters: [function (_tslib) {
|
|
42965
42978
|
__awaiter = _tslib.__awaiter;
|
|
42966
42979
|
__decorate = _tslib.__decorate;
|
|
42967
42980
|
__metadata = _tslib.__metadata;
|
|
42981
|
+
__rest = _tslib.__rest;
|
|
42968
42982
|
}, function (_webAtomsCoreDistDiDISingleton) {
|
|
42969
42983
|
DISingleton = _webAtomsCoreDistDiDISingleton.default;
|
|
42970
42984
|
}, function (_webAtomsCoreDistDiInject) {
|
|
@@ -42977,8 +42991,31 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
42977
42991
|
MailboxService = _pagesMailboxesServicesMailboxService.default;
|
|
42978
42992
|
}, function (_pagesFilesServiceCloudFileService) {
|
|
42979
42993
|
CloudFileService = _pagesFilesServiceCloudFileService.default;
|
|
42994
|
+
}, function (_webAtomsCoreDistCoreXNode) {
|
|
42995
|
+
XNode = _webAtomsCoreDistCoreXNode.default;
|
|
42996
|
+
}, function (_webAtomsCoreDistStyleStyled) {
|
|
42997
|
+
styled = _webAtomsCoreDistStyleStyled.default;
|
|
42980
42998
|
}],
|
|
42981
42999
|
execute: function () {
|
|
43000
|
+
_export("canMenuBeClosed", canMenuBeClosed = Symbol("canBeClosed"));
|
|
43001
|
+
styled.css`
|
|
43002
|
+
|
|
43003
|
+
display: flex;
|
|
43004
|
+
align-items: center;
|
|
43005
|
+
position: relative;
|
|
43006
|
+
|
|
43007
|
+
padding-right: 30px;
|
|
43008
|
+
|
|
43009
|
+
& > i {
|
|
43010
|
+
grid-column: 2;
|
|
43011
|
+
color: red;
|
|
43012
|
+
cursor: pointer;
|
|
43013
|
+
position: absolute;
|
|
43014
|
+
right: 5px;
|
|
43015
|
+
top: 5px;
|
|
43016
|
+
}
|
|
43017
|
+
|
|
43018
|
+
`.installGlobal("removable-menu");
|
|
42982
43019
|
MenuService = class MenuService {
|
|
42983
43020
|
constructor() {
|
|
42984
43021
|
this.websites = [];
|
|
@@ -43002,19 +43039,19 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
43002
43039
|
this.websites.addAll(websites);
|
|
43003
43040
|
});
|
|
43004
43041
|
}
|
|
43005
|
-
addMailbox(
|
|
43006
|
-
this.add(
|
|
43042
|
+
addMailbox(mb) {
|
|
43043
|
+
this.add(this.mailboxes, mb);
|
|
43007
43044
|
}
|
|
43008
|
-
addWebSite(
|
|
43009
|
-
this.add(
|
|
43045
|
+
addWebSite(mb) {
|
|
43046
|
+
this.add(this.websites, mb);
|
|
43010
43047
|
}
|
|
43011
|
-
addDrives(
|
|
43012
|
-
this.add(
|
|
43048
|
+
addDrives(mb) {
|
|
43049
|
+
this.add(this.drives, mb);
|
|
43013
43050
|
}
|
|
43014
|
-
addChannel(
|
|
43015
|
-
this.add(
|
|
43051
|
+
addChannel(mb) {
|
|
43052
|
+
this.add(this.mailboxes, mb);
|
|
43016
43053
|
}
|
|
43017
|
-
add(
|
|
43054
|
+
add(list, item) {
|
|
43018
43055
|
const model = modelEntitySchemas[item.$type];
|
|
43019
43056
|
const {
|
|
43020
43057
|
keys
|
|
@@ -43022,12 +43059,8 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
43022
43059
|
if (list.some(m => keys.every(k => m[k.name] === item[k.name]))) {
|
|
43023
43060
|
return;
|
|
43024
43061
|
}
|
|
43062
|
+
item[canMenuBeClosed] = true;
|
|
43025
43063
|
list.insert(0, item);
|
|
43026
|
-
arg.registerDisposable({
|
|
43027
|
-
dispose: () => {
|
|
43028
|
-
list.remove(item);
|
|
43029
|
-
}
|
|
43030
|
-
});
|
|
43031
43064
|
}
|
|
43032
43065
|
};
|
|
43033
43066
|
__decorate([Inject, __metadata("design:type", EntityService)], MenuService.prototype, "entityService", void 0);
|
|
@@ -43291,7 +43324,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
43291
43324
|
return __awaiter(this, void 0, void 0, function* () {
|
|
43292
43325
|
const mailboxID = this.parameters.id;
|
|
43293
43326
|
const mailbox = this.currentMailbox = yield this.mailService.mailbox(mailboxID);
|
|
43294
|
-
this.menuService.addMailbox(
|
|
43327
|
+
this.menuService.addMailbox(mailbox);
|
|
43295
43328
|
this.folder = mailbox.folders[0];
|
|
43296
43329
|
if (mailbox.isExternal) {
|
|
43297
43330
|
const es = this.resolve(EntityService);
|