@social-mail/social-mail-client 1.2.783 → 1.2.784

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.
@@ -27422,10 +27422,10 @@ System.register(["./apiPath"], function (_export, _context) {
27422
27422
 
27423
27423
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/fileUrl");
27424
27424
 
27425
- System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../../common/Sql", "@web-atoms/email-dom/dist/DomToString", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/core/dist/web/core/AtomUI", "@web-atoms/date-time/dist/DateTime", "../../../../common/events/CommonEvents", "../../../../services/email/EmailContentDownloader", "./EngagementService", "../../../commands/MailAppEvents", "../../../../common/fileUrl", "../../../../common/cache/CacheTTL"], function (_export, _context) {
27425
+ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../../common/Sql", "@web-atoms/email-dom/dist/DomToString", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/core/dist/web/core/AtomUI", "@web-atoms/date-time/dist/DateTime", "../../../../common/events/CommonEvents", "../../../../services/email/EmailContentDownloader", "./EngagementService", "../../../commands/MailAppEvents", "../../../../common/fileUrl", "../../../../common/cache/CacheTTL", "../../../../common/controls/Loader"], function (_export, _context) {
27426
27426
  "use strict";
27427
27427
 
27428
- var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, Email, EmailRecipient, MailboxContactEmail, MailboxEmail, Sql, DomToString, XNode, AtomControl, AncestorEnumerator, descendentIterator, DateTime, CommonEvents, EmailContentDownloader, EngagementService, MailAppEvents, fileUrl, CacheTTL, cacheVersion, renderMailPromise, ConversationService;
27428
+ var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, Email, EmailRecipient, MailboxContactEmail, MailboxEmail, Sql, DomToString, XNode, AtomControl, AncestorEnumerator, descendentIterator, DateTime, CommonEvents, EmailContentDownloader, EngagementService, MailAppEvents, fileUrl, CacheTTL, Loader, cacheVersion, renderMailPromise, ConversationService;
27429
27429
  return {
27430
27430
  setters: [function (_tslib) {
27431
27431
  __awaiter = _tslib.__awaiter;
@@ -27467,6 +27467,8 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
27467
27467
  fileUrl = _commonFileUrl.fileUrl;
27468
27468
  }, function (_commonCacheCacheTTL) {
27469
27469
  CacheTTL = _commonCacheCacheTTL.CacheTTL;
27470
+ }, function (_commonControlsLoader) {
27471
+ Loader = _commonControlsLoader.default;
27470
27472
  }],
27471
27473
  execute: function () {
27472
27474
  cacheVersion = "c1";
@@ -27483,18 +27485,22 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
27483
27485
  const mail = email !== null && email !== void 0 ? email : thread.email;
27484
27486
  let html = mail.htmlBody;
27485
27487
  if (!html) {
27488
+ c.render(XNode.create("div", null, XNode.create("div", {
27489
+ "style-height": "40vh"
27490
+ }, XNode.create(Loader, null))), e, c);
27486
27491
  const es = c.app.resolve(EntityService);
27487
27492
  if (thread) {
27488
- html = yield es.run(MailboxContactEmail, "getBody", thread, {
27493
+ mail.htmlBody = html = yield es.run(MailboxContactEmail, "getBody", thread, {
27489
27494
  cacheSeconds: CacheTTL.seconds.oneMonth,
27490
27495
  cacheVersion
27491
27496
  }).asText();
27492
27497
  } else {
27493
- html = yield es.run(Email, "getBody", email, {
27498
+ mail.htmlBody = html = yield es.run(Email, "getBody", email, {
27494
27499
  cacheSeconds: CacheTTL.seconds.oneMonth,
27495
27500
  cacheVersion
27496
27501
  }).asText();
27497
27502
  }
27503
+ e.innerHTML = "";
27498
27504
  }
27499
27505
  const msg = document.createElement("div");
27500
27506
  if (!html) {