@social-mail/social-mail-client 1.2.258 → 1.2.260
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 +71 -42
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +26 -5
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +71 -42
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +26 -5
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/ConversationPage.d.ts +1 -1
- package/dist/web/page/mails/ConversationPage.d.ts.map +1 -1
- package/dist/web/page/mails/ConversationPage.js +10 -22
- package/dist/web/page/mails/ConversationPage.js.map +1 -1
- package/dist/web/page/mails/MailboxContacts.d.ts.map +1 -1
- package/dist/web/page/mails/MailboxContacts.js +36 -15
- package/dist/web/page/mails/MailboxContacts.js.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposeBox.d.ts.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposeBox.js +25 -5
- package/dist/web/page/mails/mini-compose/MiniComposeBox.js.map +1 -1
- package/package.json +1 -1
- package/src/web/page/mails/ConversationPage.tsx +1 -13
- package/src/web/page/mails/MailboxContacts.tsx +39 -36
- package/src/web/page/mails/mini-compose/MiniComposeBox.tsx +22 -0
|
@@ -30034,10 +30034,10 @@ System.register(["@web-atoms/core/dist/core/XNode"], function (_export, _context
|
|
|
30034
30034
|
|
|
30035
30035
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/controls/Loader");
|
|
30036
30036
|
|
|
30037
|
-
System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/web/controls/AtomControl", "../../../../model/model", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/view-model/Action", "../../../../common/controls/audio/AudioRecorder", "../service/ConversationService", "@web-atoms/web-controls/dist/basic/AtomRepeater", "@web-atoms/core/dist/core/InjectProperty", "../../../../common/events/CommonEvents", "../service/MailService", "@web-atoms/date-time/dist/DateTime", "@web-atoms/core/dist/core/sleep", "../../../../common/controls/html/InlineHtmlEditorWithToolbar", "@web-atoms/web-controls/dist/html-editor/AtomHtmlEditor", "@web-atoms/web-controls/dist/html-editor/commands/Align", "@web-atoms/web-controls/dist/html-editor/commands/Bold", "@web-atoms/web-controls/dist/html-editor/commands/Italic", "@web-atoms/web-controls/dist/html-editor/commands/StrikeThrough", "@web-atoms/web-controls/dist/html-editor/commands/Underline", "@web-atoms/web-controls/dist/html-editor/commands/AddLink", "@web-atoms/web-controls/dist/html-editor/commands/Unlink", "@web-atoms/web-controls/dist/html-editor/commands/Separator", "./Insert", "@web-atoms/date-time/dist/TimeSpan", "./Attach", "@web-atoms/core/dist/core/types", "@web-atoms/email-dom/dist/DomToString", "../../../../common/controls/email-recipients/EmailLabel", "../../../../common/controls/Loader"], function (_export, _context) {
|
|
30037
|
+
System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/web/controls/AtomControl", "../../../../model/model", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/view-model/Action", "../../../../common/controls/audio/AudioRecorder", "../service/ConversationService", "@web-atoms/web-controls/dist/basic/AtomRepeater", "@web-atoms/core/dist/core/InjectProperty", "../../../../common/events/CommonEvents", "../service/MailService", "@web-atoms/date-time/dist/DateTime", "@web-atoms/core/dist/core/sleep", "../../../../common/controls/html/InlineHtmlEditorWithToolbar", "@web-atoms/web-controls/dist/html-editor/AtomHtmlEditor", "@web-atoms/web-controls/dist/html-editor/commands/Align", "@web-atoms/web-controls/dist/html-editor/commands/Bold", "@web-atoms/web-controls/dist/html-editor/commands/Italic", "@web-atoms/web-controls/dist/html-editor/commands/StrikeThrough", "@web-atoms/web-controls/dist/html-editor/commands/Underline", "@web-atoms/web-controls/dist/html-editor/commands/AddLink", "@web-atoms/web-controls/dist/html-editor/commands/Unlink", "@web-atoms/web-controls/dist/html-editor/commands/Separator", "./Insert", "@web-atoms/date-time/dist/TimeSpan", "./Attach", "@web-atoms/core/dist/core/types", "@web-atoms/email-dom/dist/DomToString", "../../../../common/controls/email-recipients/EmailLabel", "../../../../common/controls/Loader", "@web-atoms/core/dist/web/core/AtomUI"], function (_export, _context) {
|
|
30038
30038
|
"use strict";
|
|
30039
30039
|
|
|
30040
|
-
var __awaiter, __decorate, __metadata, XNode, styled, AtomControl, AppFile, Email, Bind, Action, AudioRecorder, ConversationService, AtomRepeater, InjectProperty, CommonEvents, MailService, DateTime, sleep, MailHtmlEditor, Toolbar, Align, Bold, Italic, StrikeThrough, Underline, AddLink, Unlink, Separator, Insert, TimeSpan, Attach, CancelToken, DomToString, EmailLabel, Loader, MiniComposeBox, css, defaultEmailBody;
|
|
30040
|
+
var __awaiter, __decorate, __metadata, XNode, styled, AtomControl, AppFile, Email, Bind, Action, AudioRecorder, ConversationService, AtomRepeater, InjectProperty, CommonEvents, MailService, DateTime, sleep, MailHtmlEditor, Toolbar, Align, Bold, Italic, StrikeThrough, Underline, AddLink, Unlink, Separator, Insert, TimeSpan, Attach, CancelToken, DomToString, EmailLabel, Loader, descendentElementIterator, MiniComposeBox, css, defaultEmailBody;
|
|
30041
30041
|
_export("default", void 0);
|
|
30042
30042
|
return {
|
|
30043
30043
|
setters: [function (_tslib) {
|
|
@@ -30107,6 +30107,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
30107
30107
|
EmailLabel = _commonControlsEmailRecipientsEmailLabel.default;
|
|
30108
30108
|
}, function (_commonControlsLoader) {
|
|
30109
30109
|
Loader = _commonControlsLoader.default;
|
|
30110
|
+
}, function (_webAtomsCoreDistWebCoreAtomUI) {
|
|
30111
|
+
descendentElementIterator = _webAtomsCoreDistWebCoreAtomUI.descendentElementIterator;
|
|
30110
30112
|
}],
|
|
30111
30113
|
execute: function () {
|
|
30112
30114
|
css = styled.css`
|
|
@@ -30180,14 +30182,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
30180
30182
|
this.app.runAsync(() => this.init());
|
|
30181
30183
|
}
|
|
30182
30184
|
init() {
|
|
30183
|
-
var _a, _b, _c, _d;
|
|
30184
|
-
var
|
|
30185
|
+
var _a, _b, _c, _d, _e;
|
|
30186
|
+
var _f;
|
|
30185
30187
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30186
30188
|
this.renderer = XNode.create("div", null, XNode.create(Loader, null));
|
|
30187
30189
|
yield sleep(100);
|
|
30188
30190
|
(_a = this.draft) !== null && _a !== void 0 ? _a : this.draft = (_b = yield this.conversationService.getDraft(this.mailboxContact)) === null || _b === void 0 ? void 0 : _b.email;
|
|
30189
30191
|
if (this.draft) {
|
|
30190
|
-
(_c = (
|
|
30192
|
+
(_c = (_f = this.draft).attachments) !== null && _c !== void 0 ? _c : _f.attachments = [];
|
|
30191
30193
|
}
|
|
30192
30194
|
this.typedMessage = ((_d = this.draft) === null || _d === void 0 ? void 0 : _d.htmlBody) ? this.draft.htmlBody : defaultEmailBody;
|
|
30193
30195
|
this.renderer = XNode.create("div", null, XNode.create(MailHtmlEditor, {
|
|
@@ -30233,6 +30235,24 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
30233
30235
|
"data-color": "red"
|
|
30234
30236
|
}))
|
|
30235
30237
|
}));
|
|
30238
|
+
yield sleep(100);
|
|
30239
|
+
if (!this.draft.subject) {
|
|
30240
|
+
(_e = this.editor.element.querySelector("input.subject")) === null || _e === void 0 ? void 0 : _e.focus();
|
|
30241
|
+
return;
|
|
30242
|
+
}
|
|
30243
|
+
const editor = this.editor.element.querySelector(`[data-element="editor"]`);
|
|
30244
|
+
for (const iterator of descendentElementIterator(editor)) {
|
|
30245
|
+
if (iterator.isContentEditable) {
|
|
30246
|
+
let start = iterator;
|
|
30247
|
+
let next;
|
|
30248
|
+
while ((next = start.firstElementChild) && next.tagName !== "BR") {
|
|
30249
|
+
start = next;
|
|
30250
|
+
}
|
|
30251
|
+
start.focus();
|
|
30252
|
+
window.getSelection().setPosition(start.firstElementChild);
|
|
30253
|
+
return;
|
|
30254
|
+
}
|
|
30255
|
+
}
|
|
30236
30256
|
});
|
|
30237
30257
|
}
|
|
30238
30258
|
filesAvailable({
|
|
@@ -32816,10 +32836,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
32816
32836
|
|
|
32817
32837
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/engagements/EngagementDetails");
|
|
32818
32838
|
|
|
32819
|
-
System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../model/model", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/AtomRepeater", "../../../common/controls/repeater/InfiniteRepeater", "./service/ConversationService", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/web-controls/dist/basic/InlinePopupControl", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/view-model/Action", "@web-atoms/web-controls/dist/PageNavigator", "./ComposeMailPage", "../../../services/socket/sockets", "@web-atoms/web-controls/dist/basic/LimitedText", "../../../common/date/DateFormats", "@web-atoms/web-controls/dist/basic/InlinePopup", "@web-atoms/web-controls/dist/basic/PopupButton", "../../../common/pages/logs/LogsPage", "../../../common/SocialMailApp", "./detail/MailDetailPage", "../../../common/controls/file-preview/FilePreview", "./mini-compose/MiniComposeBox", "@web-atoms/core/dist/web/core/AtomUI", "../../../common/events/CommonEvents", "@web-atoms/date-time/dist/DateTime", "../../../common/controls/emoji-picker/EmojiPicker", "../../../services/EntityService", "./engagements/EngagementDetails", "../../../common/apiPath", "../../../common/controls/buttons/IconButton"
|
|
32839
|
+
System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../model/model", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/AtomRepeater", "../../../common/controls/repeater/InfiniteRepeater", "./service/ConversationService", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/web-controls/dist/basic/InlinePopupControl", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/view-model/Action", "@web-atoms/web-controls/dist/PageNavigator", "./ComposeMailPage", "../../../services/socket/sockets", "@web-atoms/web-controls/dist/basic/LimitedText", "../../../common/date/DateFormats", "@web-atoms/web-controls/dist/basic/InlinePopup", "@web-atoms/web-controls/dist/basic/PopupButton", "../../../common/pages/logs/LogsPage", "../../../common/SocialMailApp", "./detail/MailDetailPage", "../../../common/controls/file-preview/FilePreview", "./mini-compose/MiniComposeBox", "@web-atoms/core/dist/web/core/AtomUI", "../../../common/events/CommonEvents", "@web-atoms/date-time/dist/DateTime", "../../../common/controls/emoji-picker/EmojiPicker", "../../../services/EntityService", "./engagements/EngagementDetails", "../../../common/apiPath", "../../../common/controls/buttons/IconButton"], function (_export, _context) {
|
|
32820
32840
|
"use strict";
|
|
32821
32841
|
|
|
32822
|
-
var __awaiter, __decorate, __metadata, ContentPage, isMobileView, Email, EmailEngagement, EmailRecipient, MailboxContactEmail, XNode, AtomRepeater, InfiniteRepeater, ConversationService, renderMail, InjectProperty, InlinePopupControl, Bind, styled, Action, PageNavigator, ComposeMailPage, MailboxSocket, LimitedText, DateFormats, InlinePopup, MenuItem, PopupActionButton, LogsPage, SocialMailApp, MailDetailPage, FilePreview, MiniComposeBox, AncestorEnumerator, CommonEvents, DateTime, EmojiPicker, EntityService, EngagementDetails, apiPath, AddIconTextButton, DeleteIconTextButton, EditIconTextButton,
|
|
32842
|
+
var __awaiter, __decorate, __metadata, ContentPage, isMobileView, Email, EmailEngagement, EmailRecipient, MailboxContactEmail, XNode, AtomRepeater, InfiniteRepeater, ConversationService, renderMail, InjectProperty, InlinePopupControl, Bind, styled, Action, PageNavigator, ComposeMailPage, MailboxSocket, LimitedText, DateFormats, InlinePopup, MenuItem, PopupActionButton, LogsPage, SocialMailApp, MailDetailPage, FilePreview, MiniComposeBox, AncestorEnumerator, CommonEvents, DateTime, EmojiPicker, EntityService, EngagementDetails, apiPath, AddIconTextButton, DeleteIconTextButton, EditIconTextButton, ConversationPage, itemCss, css, id, fixLinks;
|
|
32823
32843
|
_export("default", void 0);
|
|
32824
32844
|
return {
|
|
32825
32845
|
setters: [function (_tslib) {
|
|
@@ -32896,8 +32916,6 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
32896
32916
|
AddIconTextButton = _commonControlsButtonsIconButton.AddIconTextButton;
|
|
32897
32917
|
DeleteIconTextButton = _commonControlsButtonsIconButton.DeleteIconTextButton;
|
|
32898
32918
|
EditIconTextButton = _commonControlsButtonsIconButton.EditIconTextButton;
|
|
32899
|
-
}, function (_webAtomsCoreDistCoreSleep) {
|
|
32900
|
-
sleep = _webAtomsCoreDistCoreSleep.default;
|
|
32901
32919
|
}],
|
|
32902
32920
|
execute: function () {
|
|
32903
32921
|
itemCss = styled.css`
|
|
@@ -33163,23 +33181,13 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
33163
33181
|
});
|
|
33164
33182
|
}
|
|
33165
33183
|
startCompose(thread = null, email = null) {
|
|
33166
|
-
|
|
33167
|
-
|
|
33168
|
-
|
|
33169
|
-
|
|
33170
|
-
|
|
33171
|
-
|
|
33172
|
-
|
|
33173
|
-
});
|
|
33174
|
-
};
|
|
33175
|
-
yield sleep(100);
|
|
33176
|
-
const focusSubject = !(((_a = thread === null || thread === void 0 ? void 0 : thread.email) === null || _a === void 0 ? void 0 : _a.subject) || (email === null || email === void 0 ? void 0 : email.subject));
|
|
33177
|
-
if (focusSubject) {
|
|
33178
|
-
const subject = this.element.querySelector(`input.subject`);
|
|
33179
|
-
subject.focus();
|
|
33180
|
-
return;
|
|
33181
|
-
}
|
|
33182
|
-
});
|
|
33184
|
+
this.footerRenderer = () => {
|
|
33185
|
+
var _a;
|
|
33186
|
+
return XNode.create(MiniComposeBox, {
|
|
33187
|
+
mailboxContact: thread !== null && thread !== void 0 ? thread : this.parameters,
|
|
33188
|
+
draft: (_a = thread === null || thread === void 0 ? void 0 : thread.email) !== null && _a !== void 0 ? _a : email
|
|
33189
|
+
});
|
|
33190
|
+
};
|
|
33183
33191
|
}
|
|
33184
33192
|
onClick(a, e) {
|
|
33185
33193
|
var _a, _b, _c;
|
|
@@ -33449,7 +33457,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
33449
33457
|
__decorate([InjectProperty, __metadata("design:type", ConversationService)], ConversationPage.prototype, "conversationService", void 0);
|
|
33450
33458
|
__decorate([Action({
|
|
33451
33459
|
onEvent: "edit-draft"
|
|
33452
|
-
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, Object]), __metadata("design:returntype",
|
|
33460
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, Object]), __metadata("design:returntype", void 0)], ConversationPage.prototype, "startCompose", null);
|
|
33453
33461
|
__decorate([Action({
|
|
33454
33462
|
onEvent: "click"
|
|
33455
33463
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, PointerEvent]), __metadata("design:returntype", Promise)], ConversationPage.prototype, "onClick", null);
|
|
@@ -35747,6 +35755,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
35747
35755
|
}],
|
|
35748
35756
|
execute: function () {
|
|
35749
35757
|
css = styled.css`
|
|
35758
|
+
|
|
35750
35759
|
&[data-page-type=master-detail] {
|
|
35751
35760
|
& > [data-page-element=content] {
|
|
35752
35761
|
&[data-mode=desktop] {
|
|
@@ -35760,7 +35769,27 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
35760
35769
|
}
|
|
35761
35770
|
}
|
|
35762
35771
|
|
|
35772
|
+
& .add-contact {
|
|
35773
|
+
place-self: center;
|
|
35774
|
+
grid-row: 3;
|
|
35775
|
+
}
|
|
35776
|
+
|
|
35777
|
+
& .blocked-bar {
|
|
35778
|
+
grid-row: 1;
|
|
35779
|
+
place-self: center;
|
|
35780
|
+
margin: 5px;
|
|
35781
|
+
font-size: smaller;
|
|
35782
|
+
}
|
|
35783
|
+
|
|
35784
|
+
& .threads-container {
|
|
35785
|
+
display: grid;
|
|
35786
|
+
grid-template-rows: auto 1fr auto;
|
|
35787
|
+
overflow: hidden;
|
|
35788
|
+
grid-template-columns: 1fr;
|
|
35789
|
+
}
|
|
35790
|
+
|
|
35763
35791
|
& .threads {
|
|
35792
|
+
grid-row: 2;
|
|
35764
35793
|
display: flex;
|
|
35765
35794
|
gap: 5px;
|
|
35766
35795
|
flex-direction: column;
|
|
@@ -35886,21 +35915,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
35886
35915
|
}));
|
|
35887
35916
|
}
|
|
35888
35917
|
this.title = mailbox.emailAddress.emailAddress;
|
|
35889
|
-
this.renderer = XNode.create("div", null, XNode.create(Resizable, null, XNode.create(
|
|
35918
|
+
this.renderer = XNode.create("div", null, XNode.create(Resizable, null, XNode.create("div", {
|
|
35919
|
+
class: "threads-container"
|
|
35920
|
+
}, XNode.create(ToggleButtonBar, {
|
|
35921
|
+
class: "blocked-bar",
|
|
35922
|
+
items: types,
|
|
35923
|
+
value: Bind.sourceTwoWays(this, x => x.source.showBlocked)
|
|
35924
|
+
}), XNode.create(AtomRepeater, Object.assign({
|
|
35890
35925
|
class: "threads",
|
|
35891
|
-
header: true,
|
|
35892
|
-
headerRenderer: () => XNode.create("div", {
|
|
35893
|
-
"data-layout": "row",
|
|
35894
|
-
"data-font-size": "smaller"
|
|
35895
|
-
}, XNode.create(ToggleButtonBar, {
|
|
35896
|
-
items: types,
|
|
35897
|
-
value: Bind.sourceTwoWays(this, x => x.source.showBlocked)
|
|
35898
|
-
}), XNode.create("button", {
|
|
35899
|
-
"data-click-event": "add-new-contact",
|
|
35900
|
-
"data-layout": "accent-icon-button"
|
|
35901
|
-
}, XNode.create("i", {
|
|
35902
|
-
class: "fas fa-plus"
|
|
35903
|
-
}), "Add")),
|
|
35904
35926
|
"data-list-selection": "default",
|
|
35905
35927
|
"data-items-updated-event": "mails-available",
|
|
35906
35928
|
"data-selection-updated-event": "mail-selected",
|
|
@@ -35942,7 +35964,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
35942
35964
|
title: `Unread ${item.unread} out of ${item.total}`
|
|
35943
35965
|
}));
|
|
35944
35966
|
}
|
|
35945
|
-
}))
|
|
35967
|
+
})), XNode.create("div", {
|
|
35968
|
+
class: "add-contact"
|
|
35969
|
+
}, XNode.create("button", {
|
|
35970
|
+
"data-click-event": "add-new-contact",
|
|
35971
|
+
"data-layout": "accent-icon-button"
|
|
35972
|
+
}, XNode.create("i", {
|
|
35973
|
+
class: "fas fa-plus"
|
|
35974
|
+
}), "Contact")))));
|
|
35946
35975
|
this.registerDisposable(yield this.resolve(MailboxSocket).join(this.currentMailbox.mailboxID.toString(), {
|
|
35947
35976
|
newMail: (_, emailAddressID, emailID) => {
|
|
35948
35977
|
this.version++;
|