@social-mail/social-mail-client 1.8.440 → 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-app/SiteEditorApp.pack.js +49 -13
- 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/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
|
@@ -28242,9 +28242,9 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
28242
28242
|
}
|
|
28243
28243
|
list(_a) {
|
|
28244
28244
|
return __awaiter(this, arguments, void 0, function* ({
|
|
28245
|
+
mailbox = void 0,
|
|
28245
28246
|
search = "",
|
|
28246
28247
|
searchInMessages = false,
|
|
28247
|
-
mailboxID,
|
|
28248
28248
|
conversationType = "all",
|
|
28249
28249
|
start = 0,
|
|
28250
28250
|
size = 20,
|
|
@@ -28252,6 +28252,10 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
28252
28252
|
folderID = null,
|
|
28253
28253
|
cancelToken
|
|
28254
28254
|
}) {
|
|
28255
|
+
var _b;
|
|
28256
|
+
const {
|
|
28257
|
+
mailboxID
|
|
28258
|
+
} = mailbox;
|
|
28255
28259
|
let q = this.entityService.query(MailboxContact).where({
|
|
28256
28260
|
mailboxID
|
|
28257
28261
|
}, p => x => x.mailboxID === p.mailboxID);
|
|
@@ -28288,11 +28292,31 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
28288
28292
|
} else {
|
|
28289
28293
|
q = q.orderByDescending(x => x.dateUpdated);
|
|
28290
28294
|
}
|
|
28291
|
-
|
|
28295
|
+
const query = q.include(x => [x.emailAddress, x.lastEmail]).toPagedList({
|
|
28292
28296
|
start,
|
|
28293
28297
|
size,
|
|
28294
28298
|
cancelToken
|
|
28295
28299
|
});
|
|
28300
|
+
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))) {
|
|
28301
|
+
const newContacts = this.list({
|
|
28302
|
+
mailbox,
|
|
28303
|
+
cancelToken,
|
|
28304
|
+
folderID: SocialMailApp.newFolderTagID,
|
|
28305
|
+
size: 2
|
|
28306
|
+
});
|
|
28307
|
+
const [nc, all] = yield Promise.all([newContacts, query]);
|
|
28308
|
+
if (nc.items.length) {
|
|
28309
|
+
const [i1, i2] = nc.items;
|
|
28310
|
+
if (i2) {
|
|
28311
|
+
all.items.insert(0, i2);
|
|
28312
|
+
}
|
|
28313
|
+
if (i1) {
|
|
28314
|
+
all.items.insert(0, i1);
|
|
28315
|
+
}
|
|
28316
|
+
}
|
|
28317
|
+
return all;
|
|
28318
|
+
}
|
|
28319
|
+
return yield query;
|
|
28296
28320
|
});
|
|
28297
28321
|
}
|
|
28298
28322
|
raw(email) {
|
|
@@ -42110,10 +42134,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "@web-at
|
|
|
42110
42134
|
|
|
42111
42135
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/contacts/MailboxContacts");
|
|
42112
42136
|
|
|
42113
|
-
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) {
|
|
42137
|
+
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) {
|
|
42114
42138
|
"use strict";
|
|
42115
42139
|
|
|
42116
|
-
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;
|
|
42140
|
+
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;
|
|
42117
42141
|
_export("default", void 0);
|
|
42118
42142
|
return {
|
|
42119
42143
|
setters: [function (_tslib) {
|
|
@@ -42183,6 +42207,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
42183
42207
|
Badge = _commonControlsBadgeBadge.default;
|
|
42184
42208
|
}, function (_ConversationBar) {
|
|
42185
42209
|
ConversationBar = _ConversationBar.default;
|
|
42210
|
+
}, function (_commonSocialMailApp) {
|
|
42211
|
+
SocialMailApp = _commonSocialMailApp.default;
|
|
42186
42212
|
}],
|
|
42187
42213
|
execute: function () {
|
|
42188
42214
|
displayName = item => {
|
|
@@ -42286,7 +42312,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
42286
42312
|
}, XNode.create("div", {
|
|
42287
42313
|
class: "blocked-bar"
|
|
42288
42314
|
}, XNode.create(ToggleButtonBar, {
|
|
42289
|
-
items:
|
|
42315
|
+
items: Bind.oneWay(() => this.currentMailbox.folders),
|
|
42290
42316
|
selectedItem: Bind.sourceTwoWays(this, x => x.source.folder),
|
|
42291
42317
|
itemRenderer: item => XNode.create("div", {
|
|
42292
42318
|
"data-item-type": "toggle-button",
|
|
@@ -42312,10 +42338,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
42312
42338
|
}, InfiniteRepeater.pagedItems(start => (c, e, cancelToken) => this.mailService.list({
|
|
42313
42339
|
start,
|
|
42314
42340
|
size: 20,
|
|
42341
|
+
mailbox: this.currentMailbox,
|
|
42315
42342
|
search: this.search,
|
|
42316
42343
|
searchInMessages: this.searchInMessages,
|
|
42317
42344
|
conversationType: this.conversationType,
|
|
42318
|
-
mailboxID: this.currentMailbox.mailboxID,
|
|
42319
42345
|
version: this.version,
|
|
42320
42346
|
folderID: this.folder.tagID,
|
|
42321
42347
|
cancelToken
|
|
@@ -42329,7 +42355,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
42329
42355
|
return XNode.create("div", {
|
|
42330
42356
|
class: "mailbox-thread",
|
|
42331
42357
|
"data-unread": item.unread > 0
|
|
42332
|
-
}, XNode.create("div", {
|
|
42358
|
+
}, item.folderTagID === SocialMailApp.newFolderTagID && this.folder.tagID === SocialMailApp.contactsFolderTagID && XNode.create("div", {
|
|
42359
|
+
class: "new",
|
|
42360
|
+
text: "New"
|
|
42361
|
+
}), XNode.create("div", {
|
|
42333
42362
|
class: "name",
|
|
42334
42363
|
title: fullName,
|
|
42335
42364
|
text: name
|
|
@@ -42368,14 +42397,16 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
42368
42397
|
class: "fas fa-gears"
|
|
42369
42398
|
})))));
|
|
42370
42399
|
this.registerDisposable(yield this.resolve(MailboxSocket).join(this.currentMailbox.mailboxID.toString(), {
|
|
42371
|
-
newMail: (_, emailAddressID, emailID) => {
|
|
42372
|
-
this.
|
|
42373
|
-
}
|
|
42400
|
+
newMail: (_, emailAddressID, emailID) => __awaiter(this, void 0, void 0, function* () {
|
|
42401
|
+
this.currentMailbox = yield this.mailService.mailbox(this.parameters.id);
|
|
42402
|
+
})
|
|
42374
42403
|
}));
|
|
42375
42404
|
});
|
|
42376
42405
|
}
|
|
42377
42406
|
refreshMailboxContacts() {
|
|
42378
|
-
this
|
|
42407
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42408
|
+
this.currentMailbox = yield this.mailService.mailbox(this.parameters.id);
|
|
42409
|
+
});
|
|
42379
42410
|
}
|
|
42380
42411
|
updateMailboxContact(mc) {
|
|
42381
42412
|
const {
|
|
@@ -42400,11 +42431,16 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
42400
42431
|
}
|
|
42401
42432
|
mailsAvailable() {
|
|
42402
42433
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42434
|
+
var _a;
|
|
42403
42435
|
if (isMobileView) {
|
|
42404
42436
|
return;
|
|
42405
42437
|
}
|
|
42406
42438
|
if (!this.selectedThread) {
|
|
42407
|
-
this.
|
|
42439
|
+
if (this.folder.tagID === SocialMailApp.contactsFolderTagID) {
|
|
42440
|
+
this.selectedThread = (_a = this.mails.find(x => x.folderTagID === this.folder.tagID)) !== null && _a !== void 0 ? _a : this.mails[0];
|
|
42441
|
+
} else {
|
|
42442
|
+
this.selectedThread = this.mails[0];
|
|
42443
|
+
}
|
|
42408
42444
|
if (this.selectedThread) {
|
|
42409
42445
|
return this.mailSelected();
|
|
42410
42446
|
}
|
|
@@ -42482,7 +42518,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
42482
42518
|
__decorate([InjectProperty, __metadata("design:type", MenuService)], MailsPage.prototype, "menuService", void 0);
|
|
42483
42519
|
__decorate([Action({
|
|
42484
42520
|
onEvent: MailAppEvents.refreshMailboxContacts
|
|
42485
|
-
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype",
|
|
42521
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], MailsPage.prototype, "refreshMailboxContacts", null);
|
|
42486
42522
|
__decorate([Action({
|
|
42487
42523
|
onEvent: MailAppEvents.mailboxContactUpdated
|
|
42488
42524
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", void 0)], MailsPage.prototype, "updateMailboxContact", null);
|