@social-mail/social-mail-client 1.8.439 → 1.8.441
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.
- package/dist/admin/AdminAppIndex.pack.js +49 -13
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.local.css +1 -1
- package/dist/admin/AdminAppIndex.pack.local.css.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/site-editor/editor/ui/SelectionUI.d.ts.map +1 -1
- package/dist/site-editor/editor/ui/SelectionUI.js +5 -1
- package/dist/site-editor/editor/ui/SelectionUI.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +54 -14
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.local.css +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.local.css.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +49 -13
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.local.css +1 -1
- package/dist/web/AppIndex.pack.local.css.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/contacts/MailboxContact.local.css +1 -1
- package/dist/web/page/mails/contacts/MailboxContact.local.css.map +1 -1
- package/dist/web/page/mails/contacts/MailboxContacts.d.ts +1 -1
- package/dist/web/page/mails/contacts/MailboxContacts.d.ts.map +1 -1
- package/dist/web/page/mails/contacts/MailboxContacts.js +23 -11
- package/dist/web/page/mails/contacts/MailboxContacts.js.map +1 -1
- package/dist/web/page/mails/service/MailService.d.ts +5 -4
- package/dist/web/page/mails/service/MailService.d.ts.map +1 -1
- package/dist/web/page/mails/service/MailService.js +26 -2
- package/dist/web/page/mails/service/MailService.js.map +1 -1
- package/package.json +1 -1
- package/src/site-editor/editor/ui/SelectionUI.tsx +7 -1
- package/src/web/page/mails/contacts/MailboxContact.local.css +14 -0
- package/src/web/page/mails/contacts/MailboxContacts.tsx +15 -7
- package/src/web/page/mails/service/MailService.ts +30 -3
|
@@ -23556,9 +23556,9 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
23556
23556
|
}
|
|
23557
23557
|
list(_a) {
|
|
23558
23558
|
return __awaiter(this, arguments, void 0, function* ({
|
|
23559
|
+
mailbox = void 0,
|
|
23559
23560
|
search = "",
|
|
23560
23561
|
searchInMessages = false,
|
|
23561
|
-
mailboxID,
|
|
23562
23562
|
conversationType = "all",
|
|
23563
23563
|
start = 0,
|
|
23564
23564
|
size = 20,
|
|
@@ -23566,6 +23566,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
23566
23566
|
folderID = null,
|
|
23567
23567
|
cancelToken
|
|
23568
23568
|
}) {
|
|
23569
|
+
var _b;
|
|
23570
|
+
const {
|
|
23571
|
+
mailboxID
|
|
23572
|
+
} = mailbox;
|
|
23569
23573
|
let q = this.entityService.query(MailboxContact).where({
|
|
23570
23574
|
mailboxID
|
|
23571
23575
|
}, p => x => x.mailboxID === p.mailboxID);
|
|
@@ -23602,11 +23606,31 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
23602
23606
|
} else {
|
|
23603
23607
|
q = q.orderByDescending(x => x.dateUpdated);
|
|
23604
23608
|
}
|
|
23605
|
-
|
|
23609
|
+
const query = q.include(x => [x.emailAddress, x.lastEmail]).toPagedList({
|
|
23606
23610
|
start,
|
|
23607
23611
|
size,
|
|
23608
23612
|
cancelToken
|
|
23609
23613
|
});
|
|
23614
|
+
if (folderID === SocialMailApp.contactsFolderTagID && mailbox && !mailbox.isExternal && ((_b = mailbox.folders) === null || _b === void 0 ? void 0 : _b.some(f => f.tagID === SocialMailApp.newFolderTagID && f.count > 0))) {
|
|
23615
|
+
const newContacts = this.list({
|
|
23616
|
+
mailbox,
|
|
23617
|
+
cancelToken,
|
|
23618
|
+
folderID: SocialMailApp.newFolderTagID,
|
|
23619
|
+
size: 2
|
|
23620
|
+
});
|
|
23621
|
+
const [nc, all] = yield Promise.all([newContacts, query]);
|
|
23622
|
+
if (nc.items.length) {
|
|
23623
|
+
const [i1, i2] = nc.items;
|
|
23624
|
+
if (i2) {
|
|
23625
|
+
all.items.insert(0, i2);
|
|
23626
|
+
}
|
|
23627
|
+
if (i1) {
|
|
23628
|
+
all.items.insert(0, i1);
|
|
23629
|
+
}
|
|
23630
|
+
}
|
|
23631
|
+
return all;
|
|
23632
|
+
}
|
|
23633
|
+
return yield query;
|
|
23610
23634
|
});
|
|
23611
23635
|
}
|
|
23612
23636
|
raw(email) {
|
|
@@ -38571,10 +38595,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "@web-at
|
|
|
38571
38595
|
|
|
38572
38596
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/contacts/MailboxContacts");
|
|
38573
38597
|
|
|
38574
|
-
System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/core/XNode", "../service/MailService", "@web-atoms/web-controls/dist/basic/AtomRepeater", "../../../../model/model", "../../../../common/controls/repeater/InfiniteRepeater", "@web-atoms/core/dist/core/Bind", "@web-atoms/web-controls/dist/mobile-app/MasterDetailPage", "@web-atoms/core/dist/view-model/Action", "../ConversationPage", "@web-atoms/web-controls/dist/PageNavigator", "../../../../services/socket/sockets", "../ChooseMailboxPage", "../../../../common/pages/folders/ChooseTemplatePage", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "@web-atoms/web-controls/dist/basic/Resizable", "../../../../common/events/CommonEvents", "@web-atoms/web-controls/dist/basic/Checkbox", "@web-atoms/web-controls/dist/basic/ToggleButtonBar", "@web-atoms/core/dist/web/services/PopupService", "../../../../common/pages/mailboxes/services/MailboxService", "../../../../common/NumberFormats", "../../../commands/MailAppEvents", "../../../../services/EntityService", "../../../../common/StringFormat", "../../../../common/menu/MenuService", "../web-hooks/WebHookListPage", "../../../../common/date/DateFormats", "../mini-compose/MiniComposePage", "./MailboxContact.local.css", "../../../../common/controls/badge/Badge", "./ConversationBar"], function (_export, _context) {
|
|
38598
|
+
System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/core/XNode", "../service/MailService", "@web-atoms/web-controls/dist/basic/AtomRepeater", "../../../../model/model", "../../../../common/controls/repeater/InfiniteRepeater", "@web-atoms/core/dist/core/Bind", "@web-atoms/web-controls/dist/mobile-app/MasterDetailPage", "@web-atoms/core/dist/view-model/Action", "../ConversationPage", "@web-atoms/web-controls/dist/PageNavigator", "../../../../services/socket/sockets", "../ChooseMailboxPage", "../../../../common/pages/folders/ChooseTemplatePage", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "@web-atoms/web-controls/dist/basic/Resizable", "../../../../common/events/CommonEvents", "@web-atoms/web-controls/dist/basic/Checkbox", "@web-atoms/web-controls/dist/basic/ToggleButtonBar", "@web-atoms/core/dist/web/services/PopupService", "../../../../common/pages/mailboxes/services/MailboxService", "../../../../common/NumberFormats", "../../../commands/MailAppEvents", "../../../../services/EntityService", "../../../../common/StringFormat", "../../../../common/menu/MenuService", "../web-hooks/WebHookListPage", "../../../../common/date/DateFormats", "../mini-compose/MiniComposePage", "./MailboxContact.local.css", "../../../../common/controls/badge/Badge", "./ConversationBar", "../../../../common/SocialMailApp"], function (_export, _context) {
|
|
38575
38599
|
"use strict";
|
|
38576
38600
|
|
|
38577
|
-
var __awaiter, __decorate, __metadata, InjectProperty, XNode, MailService, AtomRepeater, Mailbox, MailboxContactEmail, InfiniteRepeater, Bind, MasterDetailPage, Action, ConversationPage, PageNavigator, MailboxSocket, ChooseMailboxPage, ChooserTemplatePage, isMobileView, Resizable, CommonEvents, Checkbox, ToggleButtonBar, PopupService, MailboxService, toKMBString, MailAppEvents, EntityService, toSentenceCase, MenuService, WebHookListPage, DateFormats, MiniComposePage, Badge, ConversationBar, MailsPage, displayName, types, conversationTypes, getConversationNumber;
|
|
38601
|
+
var __awaiter, __decorate, __metadata, InjectProperty, XNode, MailService, AtomRepeater, Mailbox, MailboxContactEmail, InfiniteRepeater, Bind, MasterDetailPage, Action, ConversationPage, PageNavigator, MailboxSocket, ChooseMailboxPage, ChooserTemplatePage, isMobileView, Resizable, CommonEvents, Checkbox, ToggleButtonBar, PopupService, MailboxService, toKMBString, MailAppEvents, EntityService, toSentenceCase, MenuService, WebHookListPage, DateFormats, MiniComposePage, Badge, ConversationBar, SocialMailApp, MailsPage, displayName, types, conversationTypes, getConversationNumber;
|
|
38578
38602
|
_export("default", void 0);
|
|
38579
38603
|
return {
|
|
38580
38604
|
setters: [function (_tslib) {
|
|
@@ -38644,6 +38668,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
38644
38668
|
Badge = _commonControlsBadgeBadge.default;
|
|
38645
38669
|
}, function (_ConversationBar) {
|
|
38646
38670
|
ConversationBar = _ConversationBar.default;
|
|
38671
|
+
}, function (_commonSocialMailApp) {
|
|
38672
|
+
SocialMailApp = _commonSocialMailApp.default;
|
|
38647
38673
|
}],
|
|
38648
38674
|
execute: function () {
|
|
38649
38675
|
displayName = item => {
|
|
@@ -38747,7 +38773,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
38747
38773
|
}, XNode.create("div", {
|
|
38748
38774
|
class: "blocked-bar"
|
|
38749
38775
|
}, XNode.create(ToggleButtonBar, {
|
|
38750
|
-
items:
|
|
38776
|
+
items: Bind.oneWay(() => this.currentMailbox.folders),
|
|
38751
38777
|
selectedItem: Bind.sourceTwoWays(this, x => x.source.folder),
|
|
38752
38778
|
itemRenderer: item => XNode.create("div", {
|
|
38753
38779
|
"data-item-type": "toggle-button",
|
|
@@ -38773,10 +38799,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
38773
38799
|
}, InfiniteRepeater.pagedItems(start => (c, e, cancelToken) => this.mailService.list({
|
|
38774
38800
|
start,
|
|
38775
38801
|
size: 20,
|
|
38802
|
+
mailbox: this.currentMailbox,
|
|
38776
38803
|
search: this.search,
|
|
38777
38804
|
searchInMessages: this.searchInMessages,
|
|
38778
38805
|
conversationType: this.conversationType,
|
|
38779
|
-
mailboxID: this.currentMailbox.mailboxID,
|
|
38780
38806
|
version: this.version,
|
|
38781
38807
|
folderID: this.folder.tagID,
|
|
38782
38808
|
cancelToken
|
|
@@ -38790,7 +38816,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
38790
38816
|
return XNode.create("div", {
|
|
38791
38817
|
class: "mailbox-thread",
|
|
38792
38818
|
"data-unread": item.unread > 0
|
|
38793
|
-
}, XNode.create("div", {
|
|
38819
|
+
}, item.folderTagID === SocialMailApp.newFolderTagID && this.folder.tagID === SocialMailApp.contactsFolderTagID && XNode.create("div", {
|
|
38820
|
+
class: "new",
|
|
38821
|
+
text: "New"
|
|
38822
|
+
}), XNode.create("div", {
|
|
38794
38823
|
class: "name",
|
|
38795
38824
|
title: fullName,
|
|
38796
38825
|
text: name
|
|
@@ -38829,14 +38858,16 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
38829
38858
|
class: "fas fa-gears"
|
|
38830
38859
|
})))));
|
|
38831
38860
|
this.registerDisposable(yield this.resolve(MailboxSocket).join(this.currentMailbox.mailboxID.toString(), {
|
|
38832
|
-
newMail: (_, emailAddressID, emailID) => {
|
|
38833
|
-
this.
|
|
38834
|
-
}
|
|
38861
|
+
newMail: (_, emailAddressID, emailID) => __awaiter(this, void 0, void 0, function* () {
|
|
38862
|
+
this.currentMailbox = yield this.mailService.mailbox(this.parameters.id);
|
|
38863
|
+
})
|
|
38835
38864
|
}));
|
|
38836
38865
|
});
|
|
38837
38866
|
}
|
|
38838
38867
|
refreshMailboxContacts() {
|
|
38839
|
-
this
|
|
38868
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38869
|
+
this.currentMailbox = yield this.mailService.mailbox(this.parameters.id);
|
|
38870
|
+
});
|
|
38840
38871
|
}
|
|
38841
38872
|
updateMailboxContact(mc) {
|
|
38842
38873
|
const {
|
|
@@ -38861,11 +38892,16 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
38861
38892
|
}
|
|
38862
38893
|
mailsAvailable() {
|
|
38863
38894
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38895
|
+
var _a;
|
|
38864
38896
|
if (isMobileView) {
|
|
38865
38897
|
return;
|
|
38866
38898
|
}
|
|
38867
38899
|
if (!this.selectedThread) {
|
|
38868
|
-
this.
|
|
38900
|
+
if (this.folder.tagID === SocialMailApp.contactsFolderTagID) {
|
|
38901
|
+
this.selectedThread = (_a = this.mails.find(x => x.folderTagID === this.folder.tagID)) !== null && _a !== void 0 ? _a : this.mails[0];
|
|
38902
|
+
} else {
|
|
38903
|
+
this.selectedThread = this.mails[0];
|
|
38904
|
+
}
|
|
38869
38905
|
if (this.selectedThread) {
|
|
38870
38906
|
return this.mailSelected();
|
|
38871
38907
|
}
|
|
@@ -38943,7 +38979,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
38943
38979
|
__decorate([InjectProperty, __metadata("design:type", MenuService)], MailsPage.prototype, "menuService", void 0);
|
|
38944
38980
|
__decorate([Action({
|
|
38945
38981
|
onEvent: MailAppEvents.refreshMailboxContacts
|
|
38946
|
-
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype",
|
|
38982
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MailsPage.prototype, "refreshMailboxContacts", null);
|
|
38947
38983
|
__decorate([Action({
|
|
38948
38984
|
onEvent: MailAppEvents.mailboxContactUpdated
|
|
38949
38985
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", void 0)], MailsPage.prototype, "updateMailboxContact", null);
|