@social-mail/social-mail-client 1.0.81 → 1.0.83

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.
@@ -20667,7 +20667,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
20667
20667
  return __awaiter(this, void 0, void 0, function* () {
20668
20668
  let q = this.entityService.query(MailboxThread).where({
20669
20669
  mailboxID
20670
- }, p => x => x.mailboxID === p.mailboxID).orderByDescending(x => x.lastEmailID);
20670
+ }, p => x => x.mailboxID === p.mailboxID).orderByDescending(x => x.dateUpdated);
20671
20671
  if (search) {
20672
20672
  const likeSearch = `%${search}%`;
20673
20673
  q = q.where({
@@ -29494,15 +29494,20 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
29494
29494
  grid-template-columns: 1fr minmax(200px, 5fr) auto;
29495
29495
  }
29496
29496
 
29497
+ & [data-page-element=content] {
29498
+ background-color: #80808030;
29499
+ }
29500
+
29497
29501
  & .threads {
29498
29502
  display: flex;
29499
29503
  gap: 5px;
29500
29504
  flex-direction: column;
29501
29505
  overflow-x: hidden !important;
29502
29506
  & .mailbox-thread {
29507
+ background-color: canvas;
29503
29508
  display: grid;
29504
29509
  grid-template-columns: 1fr auto auto;
29505
- grid-template-rows: auto 1fr;
29510
+ grid-template-rows: 1fr auto auto;
29506
29511
  gap: 5px;
29507
29512
  padding: 5px;
29508
29513
  padding-left: 10px;
@@ -29511,17 +29516,42 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
29511
29516
  margin-right: 5px;
29512
29517
  border: solid 1px lightgray;
29513
29518
 
29519
+ &:hover {
29520
+ background-color: var(--selection-color);
29521
+ color: var(--selection-text-color)
29522
+ }
29523
+
29524
+ &[data-selected-item] {
29525
+ background-color: var(--selection-color);
29526
+ color: var(--selection-text-color)
29527
+ }
29528
+
29514
29529
  & > .name {
29515
29530
  grid-row: 1;
29516
29531
  grid-column: 1;
29532
+ overflow: hidden;
29533
+ white-space: nowrap;
29534
+ text-overflow: ellipsis;
29517
29535
  }
29518
- & > .email-address {
29536
+ & > .subject {
29519
29537
  grid-row: 2;
29520
29538
  grid-column: 1;
29539
+ overflow: hidden;
29540
+ white-space: nowrap;
29541
+ text-overflow: ellipsis;
29542
+ font-size: smaller;
29543
+ }
29544
+ & > .summary {
29545
+ grid-row: 3;
29546
+ grid-column: 1;
29547
+ overflow: hidden;
29548
+ white-space: nowrap;
29549
+ text-overflow: ellipsis;
29550
+ font-size: smaller;
29521
29551
  }
29522
29552
  & > .unread {
29523
29553
  grid-column: 2;
29524
- grid-row: 1 / span 2;
29554
+ grid-row: 1 / span 3;
29525
29555
  place-self: center;
29526
29556
  font-weight: bold;
29527
29557
  border-radius: 9999px;
@@ -29614,20 +29644,26 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
29614
29644
  version: this.version,
29615
29645
  cancelToken
29616
29646
  })), {
29617
- itemRenderer: item => XNode.create("div", {
29618
- class: "mailbox-thread",
29619
- "data-unread": item.unread > 0
29620
- }, XNode.create("div", {
29621
- class: "name",
29622
- text: displayName(item)
29623
- }), XNode.create("div", {
29624
- class: "email-address",
29625
- text: item.emailAddress.emailAddress
29626
- }), item.unread && XNode.create("div", {
29627
- class: "unread",
29628
- text: item.unread,
29629
- title: `Unread ${item.unread} out of ${item.total}`
29630
- }))
29647
+ itemRenderer: item => {
29648
+ var _a, _b;
29649
+ return XNode.create("div", {
29650
+ class: "mailbox-thread",
29651
+ "data-unread": item.unread > 0
29652
+ }, XNode.create("div", {
29653
+ class: "name",
29654
+ text: displayName(item) + " " + item.emailAddress.emailAddress
29655
+ }), XNode.create("div", {
29656
+ class: "subject",
29657
+ text: (_a = item.lastEmail) === null || _a === void 0 ? void 0 : _a.subject
29658
+ }), XNode.create("div", {
29659
+ class: "summary",
29660
+ text: (_b = item.lastEmail) === null || _b === void 0 ? void 0 : _b.summary
29661
+ }), item.unread && XNode.create("div", {
29662
+ class: "unread",
29663
+ text: item.unread,
29664
+ title: `Unread ${item.unread} out of ${item.total}`
29665
+ }));
29666
+ }
29631
29667
  })));
29632
29668
  this.registerDisposable(yield this.resolve(MailboxSocket).join(this.currentMailbox.mailboxID.toString(), {
29633
29669
  newMail: (_, emailAddressID, emailID) => {