@social-mail/social-mail-client 1.0.85 → 1.0.87

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.
@@ -20687,7 +20687,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
20687
20687
  q = q.where({
20688
20688
  search,
20689
20689
  likeSearch
20690
- }, p => x => x.emailAddress.emailAddress === p.search || Sql.text.like(x.lastEmail.textBody, p.likeSearch));
20690
+ }, p => x => x.emailAddress.emailAddress === p.search || Sql.text.iLike(x.lastEmail.textBody, p.likeSearch) || Sql.text.iLike(x.lastEmail.subject, p.likeSearch) || Sql.text.iLike(x.emailAddress.name, p.likeSearch) || Sql.text.iLike(x.lastEmail.senderName, p.likeSearch));
20691
20691
  }
20692
20692
  return q.include(x => [x.emailAddress, x.lastEmail]).toPagedList({
20693
20693
  start,
@@ -25845,10 +25845,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
25845
25845
 
25846
25846
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/pages/logs/LogsPage");
25847
25847
 
25848
- System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../../model/model", "@web-atoms/core/dist/core/XNode", "../../../../common/date/DateFormats", "@web-atoms/core/dist/core/InjectProperty", "../service/MailService"], function (_export, _context) {
25848
+ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../../model/model", "@web-atoms/core/dist/core/XNode", "../../../../common/date/DateFormats", "@web-atoms/core/dist/core/InjectProperty", "../service/MailService", "@web-atoms/core/dist/style/styled"], function (_export, _context) {
25849
25849
  "use strict";
25850
25850
 
25851
- var __awaiter, __decorate, __metadata, PopupWindowPage, EmailRecipient, XNode, DateFormats, InjectProperty, MailService, MailDetailPage, displayRecipient;
25851
+ var __awaiter, __decorate, __metadata, PopupWindowPage, EmailRecipient, XNode, DateFormats, InjectProperty, MailService, styled, MailDetailPage, displayRecipient, css;
25852
25852
  _export("default", void 0);
25853
25853
  return {
25854
25854
  setters: [function (_tslib) {
@@ -25867,6 +25867,8 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
25867
25867
  InjectProperty = _webAtomsCoreDistCoreInjectProperty.default;
25868
25868
  }, function (_serviceMailService) {
25869
25869
  MailService = _serviceMailService.default;
25870
+ }, function (_webAtomsCoreDistStyleStyled) {
25871
+ styled = _webAtomsCoreDistStyleStyled.default;
25870
25872
  }],
25871
25873
  execute: function () {
25872
25874
  displayRecipient = ({
@@ -25884,6 +25886,14 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
25884
25886
  href: `mailto:${emailAddress}`
25885
25887
  }, emailAddress);
25886
25888
  };
25889
+ css = styled.css`
25890
+ & pre {
25891
+ font-family: monospace;
25892
+ max-width: 85ch;
25893
+ white-space: pre-wrap;
25894
+ overflow-wrap: break-word;
25895
+ }
25896
+ `.installLocal();
25887
25897
  _export("default", MailDetailPage = class MailDetailPage extends PopupWindowPage {
25888
25898
  init() {
25889
25899
  return __awaiter(this, void 0, void 0, function* () {
@@ -25939,10 +25949,9 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
25939
25949
  }, XNode.create("table", null, from && XNode.create("tr", null, XNode.create("td", null, "From:"), XNode.create("td", null, from)), to.length && XNode.create("tr", null, XNode.create("td", null, "To:"), XNode.create("td", null, ...to)), cc.length && XNode.create("tr", null, XNode.create("td", null, "Cc:"), XNode.create("td", null, ...cc)), bcc.length && XNode.create("tr", null, XNode.create("td", null, "Bcc:"), XNode.create("td", null, ...bcc)), XNode.create("tr", null, XNode.create("td", null, "Subject:"), XNode.create("td", null, model.subject)), XNode.create("tr", null, XNode.create("td", null, "Date:"), XNode.create("td", null, DateFormats.withWeekDayAndTime((_a = model.dateReceived) !== null && _a !== void 0 ? _a : model.dateCreated)))));
25940
25950
  };
25941
25951
  this.renderer = XNode.create("div", {
25952
+ class: css,
25942
25953
  "data-padding": "auto"
25943
- }, XNode.create("pre", {
25944
- "style-font-family": "monospace"
25945
- }, ...text.split("\n").map(x => [x, XNode.create("br", null)]).flat()));
25954
+ }, XNode.create("pre", null, ...text.split("\n").map(x => [x, XNode.create("br", null)]).flat()));
25946
25955
  });
25947
25956
  }
25948
25957
  });
@@ -26021,6 +26030,9 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
26021
26030
  margin-right: 0;
26022
26031
  margin-left: 20%;
26023
26032
  }
26033
+ & > * > .message {
26034
+ margin-bottom: 25px;
26035
+ }
26024
26036
  `.installLocal();
26025
26037
  css = styled.css`
26026
26038
  background-color: var(--window-background);