@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
|
@@ -37780,10 +37780,10 @@ System.register(["@web-atoms/core/dist/core/XNode"], function (_export, _context
|
|
|
37780
37780
|
|
|
37781
37781
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/controls/Loader");
|
|
37782
37782
|
|
|
37783
|
-
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) {
|
|
37783
|
+
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) {
|
|
37784
37784
|
"use strict";
|
|
37785
37785
|
|
|
37786
|
-
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;
|
|
37786
|
+
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;
|
|
37787
37787
|
_export("default", void 0);
|
|
37788
37788
|
return {
|
|
37789
37789
|
setters: [function (_tslib) {
|
|
@@ -37853,6 +37853,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
37853
37853
|
EmailLabel = _commonControlsEmailRecipientsEmailLabel.default;
|
|
37854
37854
|
}, function (_commonControlsLoader) {
|
|
37855
37855
|
Loader = _commonControlsLoader.default;
|
|
37856
|
+
}, function (_webAtomsCoreDistWebCoreAtomUI) {
|
|
37857
|
+
descendentElementIterator = _webAtomsCoreDistWebCoreAtomUI.descendentElementIterator;
|
|
37856
37858
|
}],
|
|
37857
37859
|
execute: function () {
|
|
37858
37860
|
css = styled.css`
|
|
@@ -37926,14 +37928,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
37926
37928
|
this.app.runAsync(() => this.init());
|
|
37927
37929
|
}
|
|
37928
37930
|
init() {
|
|
37929
|
-
var _a, _b, _c, _d;
|
|
37930
|
-
var
|
|
37931
|
+
var _a, _b, _c, _d, _e;
|
|
37932
|
+
var _f;
|
|
37931
37933
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37932
37934
|
this.renderer = XNode.create("div", null, XNode.create(Loader, null));
|
|
37933
37935
|
yield sleep(100);
|
|
37934
37936
|
(_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;
|
|
37935
37937
|
if (this.draft) {
|
|
37936
|
-
(_c = (
|
|
37938
|
+
(_c = (_f = this.draft).attachments) !== null && _c !== void 0 ? _c : _f.attachments = [];
|
|
37937
37939
|
}
|
|
37938
37940
|
this.typedMessage = ((_d = this.draft) === null || _d === void 0 ? void 0 : _d.htmlBody) ? this.draft.htmlBody : defaultEmailBody;
|
|
37939
37941
|
this.renderer = XNode.create("div", null, XNode.create(MailHtmlEditor, {
|
|
@@ -37979,6 +37981,24 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
37979
37981
|
"data-color": "red"
|
|
37980
37982
|
}))
|
|
37981
37983
|
}));
|
|
37984
|
+
yield sleep(100);
|
|
37985
|
+
if (!this.draft.subject) {
|
|
37986
|
+
(_e = this.editor.element.querySelector("input.subject")) === null || _e === void 0 ? void 0 : _e.focus();
|
|
37987
|
+
return;
|
|
37988
|
+
}
|
|
37989
|
+
const editor = this.editor.element.querySelector(`[data-element="editor"]`);
|
|
37990
|
+
for (const iterator of descendentElementIterator(editor)) {
|
|
37991
|
+
if (iterator.isContentEditable) {
|
|
37992
|
+
let start = iterator;
|
|
37993
|
+
let next;
|
|
37994
|
+
while ((next = start.firstElementChild) && next.tagName !== "BR") {
|
|
37995
|
+
start = next;
|
|
37996
|
+
}
|
|
37997
|
+
start.focus();
|
|
37998
|
+
window.getSelection().setPosition(start.firstElementChild);
|
|
37999
|
+
return;
|
|
38000
|
+
}
|
|
38001
|
+
}
|
|
37982
38002
|
});
|
|
37983
38003
|
}
|
|
37984
38004
|
filesAvailable({
|
|
@@ -40562,10 +40582,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
40562
40582
|
|
|
40563
40583
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/engagements/EngagementDetails");
|
|
40564
40584
|
|
|
40565
|
-
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"
|
|
40585
|
+
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) {
|
|
40566
40586
|
"use strict";
|
|
40567
40587
|
|
|
40568
|
-
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,
|
|
40588
|
+
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;
|
|
40569
40589
|
_export("default", void 0);
|
|
40570
40590
|
return {
|
|
40571
40591
|
setters: [function (_tslib) {
|
|
@@ -40642,8 +40662,6 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
40642
40662
|
AddIconTextButton = _commonControlsButtonsIconButton.AddIconTextButton;
|
|
40643
40663
|
DeleteIconTextButton = _commonControlsButtonsIconButton.DeleteIconTextButton;
|
|
40644
40664
|
EditIconTextButton = _commonControlsButtonsIconButton.EditIconTextButton;
|
|
40645
|
-
}, function (_webAtomsCoreDistCoreSleep) {
|
|
40646
|
-
sleep = _webAtomsCoreDistCoreSleep.default;
|
|
40647
40665
|
}],
|
|
40648
40666
|
execute: function () {
|
|
40649
40667
|
itemCss = styled.css`
|
|
@@ -40909,23 +40927,13 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
40909
40927
|
});
|
|
40910
40928
|
}
|
|
40911
40929
|
startCompose(thread = null, email = null) {
|
|
40912
|
-
|
|
40913
|
-
|
|
40914
|
-
|
|
40915
|
-
|
|
40916
|
-
|
|
40917
|
-
|
|
40918
|
-
|
|
40919
|
-
});
|
|
40920
|
-
};
|
|
40921
|
-
yield sleep(100);
|
|
40922
|
-
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));
|
|
40923
|
-
if (focusSubject) {
|
|
40924
|
-
const subject = this.element.querySelector(`input.subject`);
|
|
40925
|
-
subject.focus();
|
|
40926
|
-
return;
|
|
40927
|
-
}
|
|
40928
|
-
});
|
|
40930
|
+
this.footerRenderer = () => {
|
|
40931
|
+
var _a;
|
|
40932
|
+
return XNode.create(MiniComposeBox, {
|
|
40933
|
+
mailboxContact: thread !== null && thread !== void 0 ? thread : this.parameters,
|
|
40934
|
+
draft: (_a = thread === null || thread === void 0 ? void 0 : thread.email) !== null && _a !== void 0 ? _a : email
|
|
40935
|
+
});
|
|
40936
|
+
};
|
|
40929
40937
|
}
|
|
40930
40938
|
onClick(a, e) {
|
|
40931
40939
|
var _a, _b, _c;
|
|
@@ -41195,7 +41203,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
41195
41203
|
__decorate([InjectProperty, __metadata("design:type", ConversationService)], ConversationPage.prototype, "conversationService", void 0);
|
|
41196
41204
|
__decorate([Action({
|
|
41197
41205
|
onEvent: "edit-draft"
|
|
41198
|
-
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, Object]), __metadata("design:returntype",
|
|
41206
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, Object]), __metadata("design:returntype", void 0)], ConversationPage.prototype, "startCompose", null);
|
|
41199
41207
|
__decorate([Action({
|
|
41200
41208
|
onEvent: "click"
|
|
41201
41209
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, PointerEvent]), __metadata("design:returntype", Promise)], ConversationPage.prototype, "onClick", null);
|
|
@@ -41690,6 +41698,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
41690
41698
|
}],
|
|
41691
41699
|
execute: function () {
|
|
41692
41700
|
css = styled.css`
|
|
41701
|
+
|
|
41693
41702
|
&[data-page-type=master-detail] {
|
|
41694
41703
|
& > [data-page-element=content] {
|
|
41695
41704
|
&[data-mode=desktop] {
|
|
@@ -41703,7 +41712,27 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
41703
41712
|
}
|
|
41704
41713
|
}
|
|
41705
41714
|
|
|
41715
|
+
& .add-contact {
|
|
41716
|
+
place-self: center;
|
|
41717
|
+
grid-row: 3;
|
|
41718
|
+
}
|
|
41719
|
+
|
|
41720
|
+
& .blocked-bar {
|
|
41721
|
+
grid-row: 1;
|
|
41722
|
+
place-self: center;
|
|
41723
|
+
margin: 5px;
|
|
41724
|
+
font-size: smaller;
|
|
41725
|
+
}
|
|
41726
|
+
|
|
41727
|
+
& .threads-container {
|
|
41728
|
+
display: grid;
|
|
41729
|
+
grid-template-rows: auto 1fr auto;
|
|
41730
|
+
overflow: hidden;
|
|
41731
|
+
grid-template-columns: 1fr;
|
|
41732
|
+
}
|
|
41733
|
+
|
|
41706
41734
|
& .threads {
|
|
41735
|
+
grid-row: 2;
|
|
41707
41736
|
display: flex;
|
|
41708
41737
|
gap: 5px;
|
|
41709
41738
|
flex-direction: column;
|
|
@@ -41829,21 +41858,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
41829
41858
|
}));
|
|
41830
41859
|
}
|
|
41831
41860
|
this.title = mailbox.emailAddress.emailAddress;
|
|
41832
|
-
this.renderer = XNode.create("div", null, XNode.create(Resizable, null, XNode.create(
|
|
41861
|
+
this.renderer = XNode.create("div", null, XNode.create(Resizable, null, XNode.create("div", {
|
|
41862
|
+
class: "threads-container"
|
|
41863
|
+
}, XNode.create(ToggleButtonBar, {
|
|
41864
|
+
class: "blocked-bar",
|
|
41865
|
+
items: types,
|
|
41866
|
+
value: Bind.sourceTwoWays(this, x => x.source.showBlocked)
|
|
41867
|
+
}), XNode.create(AtomRepeater, Object.assign({
|
|
41833
41868
|
class: "threads",
|
|
41834
|
-
header: true,
|
|
41835
|
-
headerRenderer: () => XNode.create("div", {
|
|
41836
|
-
"data-layout": "row",
|
|
41837
|
-
"data-font-size": "smaller"
|
|
41838
|
-
}, XNode.create(ToggleButtonBar, {
|
|
41839
|
-
items: types,
|
|
41840
|
-
value: Bind.sourceTwoWays(this, x => x.source.showBlocked)
|
|
41841
|
-
}), XNode.create("button", {
|
|
41842
|
-
"data-click-event": "add-new-contact",
|
|
41843
|
-
"data-layout": "accent-icon-button"
|
|
41844
|
-
}, XNode.create("i", {
|
|
41845
|
-
class: "fas fa-plus"
|
|
41846
|
-
}), "Add")),
|
|
41847
41869
|
"data-list-selection": "default",
|
|
41848
41870
|
"data-items-updated-event": "mails-available",
|
|
41849
41871
|
"data-selection-updated-event": "mail-selected",
|
|
@@ -41885,7 +41907,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
41885
41907
|
title: `Unread ${item.unread} out of ${item.total}`
|
|
41886
41908
|
}));
|
|
41887
41909
|
}
|
|
41888
|
-
}))
|
|
41910
|
+
})), XNode.create("div", {
|
|
41911
|
+
class: "add-contact"
|
|
41912
|
+
}, XNode.create("button", {
|
|
41913
|
+
"data-click-event": "add-new-contact",
|
|
41914
|
+
"data-layout": "accent-icon-button"
|
|
41915
|
+
}, XNode.create("i", {
|
|
41916
|
+
class: "fas fa-plus"
|
|
41917
|
+
}), "Contact")))));
|
|
41889
41918
|
this.registerDisposable(yield this.resolve(MailboxSocket).join(this.currentMailbox.mailboxID.toString(), {
|
|
41890
41919
|
newMail: (_, emailAddressID, emailID) => {
|
|
41891
41920
|
this.version++;
|