@social-mail/social-mail-client 1.0.40 → 1.0.42

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.
@@ -18410,6 +18410,12 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
18410
18410
  }
18411
18411
  save(model) {
18412
18412
  return __awaiter(this, void 0, void 0, function* () {
18413
+ if (model.name) {
18414
+ model.name = model.name.trim();
18415
+ }
18416
+ if (model.username) {
18417
+ model.username = model.username.trim();
18418
+ }
18413
18419
  const cloner = this.entityService.cloner(model);
18414
18420
  yield this.entityService.save(cloner.copy);
18415
18421
  return model;
@@ -18748,6 +18754,11 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
18748
18754
  }
18749
18755
  send(email) {
18750
18756
  return __awaiter(this, void 0, void 0, function* () {
18757
+ for (const iterator of email.recipients) {
18758
+ if (iterator.emailAddressText) {
18759
+ iterator.emailAddressText = iterator.emailAddressText.trim();
18760
+ }
18761
+ }
18751
18762
  const cloner = this.entityService.cloner(email).include(x => x.recipients).include(x => x.attachments).copy;
18752
18763
  yield this.entityService.save(cloner);
18753
18764
  });
@@ -19339,10 +19350,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
19339
19350
  size,
19340
19351
  cancelToken
19341
19352
  });
19342
- return {
19343
- total: emails.total,
19344
- items: emails
19345
- };
19353
+ return emails;
19346
19354
  });
19347
19355
  }
19348
19356
  renderText(html) {
@@ -23312,10 +23320,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
23312
23320
  text: item.name || item.emailAddressText
23313
23321
  }),
23314
23322
  onKeyPressedItemToChip: (key, search) => key === "Enter" || key === "Comma" ? EmailRecipient.create({
23315
- emailAddressText: search
23323
+ emailAddressText: search.trim()
23316
23324
  }) : void 0,
23317
23325
  onBlurItemToChip: search => EmailRecipient.create({
23318
- emailAddressText: search
23326
+ emailAddressText: search.trim()
23319
23327
  })
23320
23328
  })), XNode.create(FormField, {
23321
23329
  label: ""
@@ -23606,8 +23614,9 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
23606
23614
  version: this.version,
23607
23615
  cancelToken
23608
23616
  })), {
23609
- itemRenderer: item => {
23617
+ itemRenderer: thread => {
23610
23618
  var _a;
23619
+ const item = thread.email;
23611
23620
  return XNode.create("div", {
23612
23621
  class: css,
23613
23622
  "data-sent": !item.received
@@ -23622,7 +23631,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
23622
23631
  title: "Reply"
23623
23632
  })), XNode.create("div", Object.assign({
23624
23633
  class: "message"
23625
- }, renderMail(item))), ((_a = item.attachments) === null || _a === void 0 ? void 0 : _a.length) && XNode.create("div", {
23634
+ }, renderMail(thread))), ((_a = item.attachments) === null || _a === void 0 ? void 0 : _a.length) && XNode.create("div", {
23626
23635
  class: "attachments",
23627
23636
  "data-layout": "flex-wrap-padding"
23628
23637
  }, ...item.attachments.map(a => XNode.create("div", null, XNode.create("i", {