@social-mail/social-mail-client 1.0.41 → 1.0.43

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
  });
@@ -23309,10 +23320,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
23309
23320
  text: item.name || item.emailAddressText
23310
23321
  }),
23311
23322
  onKeyPressedItemToChip: (key, search) => key === "Enter" || key === "Comma" ? EmailRecipient.create({
23312
- emailAddressText: search
23323
+ emailAddressText: search.trim()
23313
23324
  }) : void 0,
23314
23325
  onBlurItemToChip: search => EmailRecipient.create({
23315
- emailAddressText: search
23326
+ emailAddressText: search.trim()
23316
23327
  })
23317
23328
  })), XNode.create(FormField, {
23318
23329
  label: ""
@@ -23759,7 +23770,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
23759
23770
  this.version = 1;
23760
23771
  }
23761
23772
  init() {
23762
- var _a;
23773
+ var _a, _b;
23763
23774
  return __awaiter(this, void 0, void 0, function* () {
23764
23775
  const mailboxes = yield this.mailService.mailboxes();
23765
23776
  this.element.className = css;
@@ -23775,7 +23786,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
23775
23786
  this.version++;
23776
23787
  }
23777
23788
  }));
23778
- document.title = first.name;
23789
+ document.title = (_b = first === null || first === void 0 ? void 0 : first.emailAddress) === null || _b === void 0 ? void 0 : _b.name;
23779
23790
  this.titleRenderer = () => XNode.create("div", {
23780
23791
  "data-layout": "row"
23781
23792
  }, XNode.create(DropDown, {