@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
|
@@ -28941,9 +28941,9 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
28941
28941
|
}
|
|
28942
28942
|
list(_a) {
|
|
28943
28943
|
return __awaiter(this, arguments, void 0, function* ({
|
|
28944
|
+
mailbox = void 0,
|
|
28944
28945
|
search = "",
|
|
28945
28946
|
searchInMessages = false,
|
|
28946
|
-
mailboxID,
|
|
28947
28947
|
conversationType = "all",
|
|
28948
28948
|
start = 0,
|
|
28949
28949
|
size = 20,
|
|
@@ -28951,6 +28951,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
28951
28951
|
folderID = null,
|
|
28952
28952
|
cancelToken
|
|
28953
28953
|
}) {
|
|
28954
|
+
var _b;
|
|
28955
|
+
const {
|
|
28956
|
+
mailboxID
|
|
28957
|
+
} = mailbox;
|
|
28954
28958
|
let q = this.entityService.query(MailboxContact).where({
|
|
28955
28959
|
mailboxID
|
|
28956
28960
|
}, p => x => x.mailboxID === p.mailboxID);
|
|
@@ -28987,11 +28991,31 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
28987
28991
|
} else {
|
|
28988
28992
|
q = q.orderByDescending(x => x.dateUpdated);
|
|
28989
28993
|
}
|
|
28990
|
-
|
|
28994
|
+
const query = q.include(x => [x.emailAddress, x.lastEmail]).toPagedList({
|
|
28991
28995
|
start,
|
|
28992
28996
|
size,
|
|
28993
28997
|
cancelToken
|
|
28994
28998
|
});
|
|
28999
|
+
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))) {
|
|
29000
|
+
const newContacts = this.list({
|
|
29001
|
+
mailbox,
|
|
29002
|
+
cancelToken,
|
|
29003
|
+
folderID: SocialMailApp.newFolderTagID,
|
|
29004
|
+
size: 2
|
|
29005
|
+
});
|
|
29006
|
+
const [nc, all] = yield Promise.all([newContacts, query]);
|
|
29007
|
+
if (nc.items.length) {
|
|
29008
|
+
const [i1, i2] = nc.items;
|
|
29009
|
+
if (i2) {
|
|
29010
|
+
all.items.insert(0, i2);
|
|
29011
|
+
}
|
|
29012
|
+
if (i1) {
|
|
29013
|
+
all.items.insert(0, i1);
|
|
29014
|
+
}
|
|
29015
|
+
}
|
|
29016
|
+
return all;
|
|
29017
|
+
}
|
|
29018
|
+
return yield query;
|
|
28995
29019
|
});
|
|
28996
29020
|
}
|
|
28997
29021
|
raw(email) {
|
|
@@ -41779,10 +41803,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "@web-at
|
|
|
41779
41803
|
|
|
41780
41804
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/contacts/MailboxContacts");
|
|
41781
41805
|
|
|
41782
|
-
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) {
|
|
41806
|
+
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) {
|
|
41783
41807
|
"use strict";
|
|
41784
41808
|
|
|
41785
|
-
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;
|
|
41809
|
+
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;
|
|
41786
41810
|
_export("default", void 0);
|
|
41787
41811
|
return {
|
|
41788
41812
|
setters: [function (_tslib) {
|
|
@@ -41852,6 +41876,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
41852
41876
|
Badge = _commonControlsBadgeBadge.default;
|
|
41853
41877
|
}, function (_ConversationBar) {
|
|
41854
41878
|
ConversationBar = _ConversationBar.default;
|
|
41879
|
+
}, function (_commonSocialMailApp) {
|
|
41880
|
+
SocialMailApp = _commonSocialMailApp.default;
|
|
41855
41881
|
}],
|
|
41856
41882
|
execute: function () {
|
|
41857
41883
|
displayName = item => {
|
|
@@ -41955,7 +41981,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
41955
41981
|
}, XNode.create("div", {
|
|
41956
41982
|
class: "blocked-bar"
|
|
41957
41983
|
}, XNode.create(ToggleButtonBar, {
|
|
41958
|
-
items:
|
|
41984
|
+
items: Bind.oneWay(() => this.currentMailbox.folders),
|
|
41959
41985
|
selectedItem: Bind.sourceTwoWays(this, x => x.source.folder),
|
|
41960
41986
|
itemRenderer: item => XNode.create("div", {
|
|
41961
41987
|
"data-item-type": "toggle-button",
|
|
@@ -41981,10 +42007,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
41981
42007
|
}, InfiniteRepeater.pagedItems(start => (c, e, cancelToken) => this.mailService.list({
|
|
41982
42008
|
start,
|
|
41983
42009
|
size: 20,
|
|
42010
|
+
mailbox: this.currentMailbox,
|
|
41984
42011
|
search: this.search,
|
|
41985
42012
|
searchInMessages: this.searchInMessages,
|
|
41986
42013
|
conversationType: this.conversationType,
|
|
41987
|
-
mailboxID: this.currentMailbox.mailboxID,
|
|
41988
42014
|
version: this.version,
|
|
41989
42015
|
folderID: this.folder.tagID,
|
|
41990
42016
|
cancelToken
|
|
@@ -41998,7 +42024,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
41998
42024
|
return XNode.create("div", {
|
|
41999
42025
|
class: "mailbox-thread",
|
|
42000
42026
|
"data-unread": item.unread > 0
|
|
42001
|
-
}, XNode.create("div", {
|
|
42027
|
+
}, item.folderTagID === SocialMailApp.newFolderTagID && this.folder.tagID === SocialMailApp.contactsFolderTagID && XNode.create("div", {
|
|
42028
|
+
class: "new",
|
|
42029
|
+
text: "New"
|
|
42030
|
+
}), XNode.create("div", {
|
|
42002
42031
|
class: "name",
|
|
42003
42032
|
title: fullName,
|
|
42004
42033
|
text: name
|
|
@@ -42037,14 +42066,16 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
42037
42066
|
class: "fas fa-gears"
|
|
42038
42067
|
})))));
|
|
42039
42068
|
this.registerDisposable(yield this.resolve(MailboxSocket).join(this.currentMailbox.mailboxID.toString(), {
|
|
42040
|
-
newMail: (_, emailAddressID, emailID) => {
|
|
42041
|
-
this.
|
|
42042
|
-
}
|
|
42069
|
+
newMail: (_, emailAddressID, emailID) => __awaiter(this, void 0, void 0, function* () {
|
|
42070
|
+
this.currentMailbox = yield this.mailService.mailbox(this.parameters.id);
|
|
42071
|
+
})
|
|
42043
42072
|
}));
|
|
42044
42073
|
});
|
|
42045
42074
|
}
|
|
42046
42075
|
refreshMailboxContacts() {
|
|
42047
|
-
this
|
|
42076
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42077
|
+
this.currentMailbox = yield this.mailService.mailbox(this.parameters.id);
|
|
42078
|
+
});
|
|
42048
42079
|
}
|
|
42049
42080
|
updateMailboxContact(mc) {
|
|
42050
42081
|
const {
|
|
@@ -42069,11 +42100,16 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
42069
42100
|
}
|
|
42070
42101
|
mailsAvailable() {
|
|
42071
42102
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42103
|
+
var _a;
|
|
42072
42104
|
if (isMobileView) {
|
|
42073
42105
|
return;
|
|
42074
42106
|
}
|
|
42075
42107
|
if (!this.selectedThread) {
|
|
42076
|
-
this.
|
|
42108
|
+
if (this.folder.tagID === SocialMailApp.contactsFolderTagID) {
|
|
42109
|
+
this.selectedThread = (_a = this.mails.find(x => x.folderTagID === this.folder.tagID)) !== null && _a !== void 0 ? _a : this.mails[0];
|
|
42110
|
+
} else {
|
|
42111
|
+
this.selectedThread = this.mails[0];
|
|
42112
|
+
}
|
|
42077
42113
|
if (this.selectedThread) {
|
|
42078
42114
|
return this.mailSelected();
|
|
42079
42115
|
}
|
|
@@ -42151,7 +42187,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
42151
42187
|
__decorate([InjectProperty, __metadata("design:type", MenuService)], MailsPage.prototype, "menuService", void 0);
|
|
42152
42188
|
__decorate([Action({
|
|
42153
42189
|
onEvent: MailAppEvents.refreshMailboxContacts
|
|
42154
|
-
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype",
|
|
42190
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MailsPage.prototype, "refreshMailboxContacts", null);
|
|
42155
42191
|
__decorate([Action({
|
|
42156
42192
|
onEvent: MailAppEvents.mailboxContactUpdated
|
|
42157
42193
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", void 0)], MailsPage.prototype, "updateMailboxContact", null);
|