@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.
Files changed (31) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +50 -17
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +19 -2
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/common/MenuService.d.ts +18 -6
  6. package/dist/common/MenuService.d.ts.map +1 -1
  7. package/dist/common/MenuService.js +49 -16
  8. package/dist/common/MenuService.js.map +1 -1
  9. package/dist/site-editor-app/SiteEditorApp.pack.js +56 -19
  10. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  11. package/dist/site-editor-app/SiteEditorApp.pack.min.js +21 -4
  12. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  13. package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.d.ts +1 -0
  14. package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.d.ts.map +1 -1
  15. package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.js +6 -2
  16. package/dist/site-editor-app/pages/websites/studio/WebSiteStudioPage.js.map +1 -1
  17. package/dist/tsconfig.tsbuildinfo +1 -1
  18. package/dist/web/AppIndex.pack.js +51 -17
  19. package/dist/web/AppIndex.pack.js.map +1 -1
  20. package/dist/web/AppIndex.pack.min.js +20 -3
  21. package/dist/web/AppIndex.pack.min.js.map +1 -1
  22. package/dist/web/drawer/AppDrawer.d.ts.map +1 -1
  23. package/dist/web/drawer/AppDrawer.js +1 -0
  24. package/dist/web/drawer/AppDrawer.js.map +1 -1
  25. package/dist/web/page/mails/MailboxContacts.js +1 -1
  26. package/dist/web/page/mails/MailboxContacts.js.map +1 -1
  27. package/package.json +1 -1
  28. package/src/common/{MenuService.ts → MenuService.tsx} +53 -15
  29. package/src/site-editor-app/pages/websites/studio/WebSiteStudioPage.tsx +5 -0
  30. package/src/web/drawer/AppDrawer.tsx +10 -7
  31. 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(arg, mb) {
43006
- this.add(arg, this.mailboxes, mb);
43042
+ addMailbox(mb) {
43043
+ this.add(this.mailboxes, mb);
43007
43044
  }
43008
- addWebSite(arg, mb) {
43009
- this.add(arg, this.websites, mb);
43045
+ addWebSite(mb) {
43046
+ this.add(this.websites, mb);
43010
43047
  }
43011
- addDrives(arg, mb) {
43012
- this.add(arg, this.drives, mb);
43048
+ addDrives(mb) {
43049
+ this.add(this.drives, mb);
43013
43050
  }
43014
- addChannel(arg, mb) {
43015
- this.add(arg, this.mailboxes, mb);
43051
+ addChannel(mb) {
43052
+ this.add(this.mailboxes, mb);
43016
43053
  }
43017
- add(arg, list, item) {
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(this, mailbox);
43327
+ this.menuService.addMailbox(mailbox);
43295
43328
  this.folder = mailbox.folders[0];
43296
43329
  if (mailbox.isExternal) {
43297
43330
  const es = this.resolve(EntityService);