@social-mail/social-mail-client 1.4.153 → 1.4.154

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.
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Welcome Email</title>
5
+ </head>
6
+ <body>
7
+ <main>
8
+ <h3>Welcome to Social Mail</h3>
9
+ <p>
10
+
11
+ </p>
12
+ </main>
13
+ </body>
14
+ </html>
@@ -34283,6 +34283,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
34283
34283
  this.itemRenderer = mb => XNode.create("div", null, mb.emailAddress.name, " (", mb.emailAddress.emailAddress, ")");
34284
34284
  }
34285
34285
  init() {
34286
+ var _a;
34286
34287
  return __awaiter(this, void 0, void 0, function* () {
34287
34288
  this.search = "";
34288
34289
  this.prompt = "From";
@@ -34290,9 +34291,11 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
34290
34291
  items: Bind.oneWayAsync((s, e, cancelToken) => this.searchMailboxes(this.search, this.value, cancelToken))
34291
34292
  }));
34292
34293
  const subscribe = '%subscribe%';
34294
+ const value = (_a = this.value) !== null && _a !== void 0 ? _a : 0;
34293
34295
  const item = yield this.entityService.query(Mailbox).where({
34296
+ value,
34294
34297
  subscribe
34295
- }, p => x => x.isChannel === false && !Sql.text.like(x.emailAddress.emailAddress, p.subscribe)).orderByDescending(x => x.dateUpdated).include(x => x.emailAddress).firstOrDefault();
34298
+ }, p => x => x.mailboxID === p.value || x.isChannel === false && !Sql.text.like(x.emailAddress.emailAddress, p.subscribe)).orderByDescending(x => x.dateUpdated).include(x => x.emailAddress).firstOrDefault();
34296
34299
  this.items = [item];
34297
34300
  this.selectedItem = item;
34298
34301
  });
@@ -34498,6 +34501,11 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
34498
34501
  }, this.showSender && XNode.create("div", {
34499
34502
  "data-layout": "row"
34500
34503
  }, "From: ", XNode.create(MailboxDropDown, {
34504
+ presenter: Bind.presenter(c => this.sender = c),
34505
+ "event-selection-changed": () => {
34506
+ var _a, _b;
34507
+ return this.draft.senderName = (_b = (_a = this.sender.selectedItem) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.draft.senderName;
34508
+ },
34501
34509
  value: Bind.sourceTwoWays(this, x => x.source.draft.senderID)
34502
34510
  })), XNode.create("div", {
34503
34511
  "data-layout": "row",