@social-mail/social-mail-client 1.0.91 → 1.0.93

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.
@@ -25135,12 +25135,18 @@ System.register(["tslib", "@web-atoms/core/dist/di/Inject", "../EntityService",
25135
25135
  if (!search) {
25136
25136
  return [];
25137
25137
  }
25138
+ let q = this.entityService.query(EmailAddress);
25138
25139
  if (!/\%$/.test(search)) {
25139
- search = search + "%";
25140
+ search = `${search}%`.toLocaleLowerCase();
25141
+ q = q.where({
25142
+ search
25143
+ }, p => x => Sql.text.like(x.emailAddress, p.search) || Sql.text.like(x.name, p.search));
25144
+ } else {
25145
+ q = q.where({
25146
+ search
25147
+ }, p => x => Sql.text.iLike(x.emailAddress, p.search) || Sql.text.iLike(x.name, p.search));
25140
25148
  }
25141
- const list = yield this.entityService.query(EmailAddress).where({
25142
- search
25143
- }, p => x => Sql.text.like(x.emailAddress, p.search)).orderByDescending(x => x.emailAddressID).toPagedList({
25149
+ const list = yield q.orderByDescending(x => x.emailAddressID).toPagedList({
25144
25150
  start: 0,
25145
25151
  size: 10,
25146
25152
  count: false,
@@ -26114,9 +26120,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
26114
26120
  var _a, _b, _c, _d, _e;
26115
26121
  const item = thread.email;
26116
26122
  const internalDate = (_b = (_a = item.dateSent) !== null && _a !== void 0 ? _a : item.dateReceived) !== null && _b !== void 0 ? _b : item.dateCreated;
26123
+ const sent = item.senderID === thread.mailboxID;
26117
26124
  return XNode.create("div", {
26118
26125
  class: itemCss,
26119
- "data-sent": item.senderID === thread.mailboxID
26126
+ "data-sent": sent
26120
26127
  }, XNode.create("div", {
26121
26128
  "data-layout": "row"
26122
26129
  }, XNode.create("div", {
@@ -26146,7 +26153,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
26146
26153
  text: a.name,
26147
26154
  target: "_blank",
26148
26155
  href: a.url
26149
- })))), item.received && XNode.create("div", {
26156
+ })))), !sent && XNode.create("div", {
26150
26157
  "data-layout": "row"
26151
26158
  }, XNode.create("i", {
26152
26159
  "data-click-event": "reply-email",