@social-mail/social-mail-client 1.8.120 → 1.8.122

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.
@@ -23137,7 +23137,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "../../../
23137
23137
  "data-width": "100%"
23138
23138
  }, XNode.create("image-grid", null, ...items.map(m => XNode.create("img", {
23139
23139
  src: UrlService.toImageUrl(m, 300),
23140
- "large-src": UrlService.toImageUrl(m, 1024)
23140
+ "attr-large-src": UrlService.toImageUrl(m, 1600)
23141
23141
  }))), XNode.create(Pager, {
23142
23142
  current: this.start,
23143
23143
  end: Math.floor(photos.total / this.size) - 1,
@@ -26926,7 +26926,6 @@ System.register(["tslib", "../../BlogService", "../../../../model/model", "@web-
26926
26926
  if (tag) {
26927
26927
  tag = tag.toLowerCase();
26928
26928
  q = q.where({
26929
- emailID,
26930
26929
  tag
26931
26930
  }, p => x => x.email.emailTags.some(t => t.tag.lowerCaseName === p.tag));
26932
26931
  }
@@ -26935,22 +26934,20 @@ System.register(["tslib", "../../BlogService", "../../../../model/model", "@web-
26935
26934
  author
26936
26935
  }, p => x => x.email.senderName === p.author);
26937
26936
  }
26938
- if (emailID) {
26939
- q = q.union({
26940
- emailID
26941
- }, p => x => x.emailID === p.emailID);
26942
- q = q.orderByDescending({
26943
- emailID
26944
- }, p => x => x.emailID === p.emailID).thenByDescending(x => x.datePublished);
26945
- start = 0;
26946
- } else {
26947
- q = q.orderByDescending(x => x.datePublished);
26948
- }
26937
+ q = q.orderByDescending(x => x.datePublished);
26949
26938
  const size = this.size;
26939
+ const emailLoader = emailID && this.entityService.query(ChannelEmail, "channelEmails").where({
26940
+ emailID
26941
+ }, p => x => x.emailID === p.emailID).include(x => [x.mailbox.emailAddress, x.email.engagements, x.email.attachments]).firstOrDefault();
26950
26942
  const result = yield q.include(x => [x.mailbox.emailAddress, x.email.engagements, x.email.attachments]).toPagedList({
26951
26943
  start,
26952
26944
  size
26953
26945
  });
26946
+ if (emailLoader) {
26947
+ const e = yield emailLoader;
26948
+ result.items.remove(i => i.emailID === e.emailID);
26949
+ result.items.splice(0, 0, e);
26950
+ }
26954
26951
  const tasks = [];
26955
26952
  for (const {
26956
26953
  postID,