@social-mail/social-mail-client 1.2.24 → 1.2.26
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 +62 -11
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +5 -9
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/controls/html/InlineHtmlEditorWithToolbar.d.ts +1 -0
- package/dist/common/controls/html/InlineHtmlEditorWithToolbar.d.ts.map +1 -1
- package/dist/common/controls/html/InlineHtmlEditorWithToolbar.js +34 -3
- package/dist/common/controls/html/InlineHtmlEditorWithToolbar.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +62 -11
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +5 -9
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/files/preview/document/PreviewDocument.d.ts.map +1 -1
- package/dist/web/page/files/preview/document/PreviewDocument.js +6 -2
- package/dist/web/page/files/preview/document/PreviewDocument.js.map +1 -1
- package/dist/web/page/mails/ComposeMailPage.d.ts.map +1 -1
- package/dist/web/page/mails/ComposeMailPage.js +1 -0
- package/dist/web/page/mails/ComposeMailPage.js.map +1 -1
- package/dist/web/page/mails/ConversationPage.d.ts.map +1 -1
- package/dist/web/page/mails/ConversationPage.js +21 -2
- 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 +0 -4
- package/dist/web/page/mails/MailboxContacts.js.map +1 -1
- package/package.json +1 -1
- package/src/common/controls/html/InlineHtmlEditorWithToolbar.tsx +27 -0
- package/src/web/page/files/preview/document/PreviewDocument.tsx +8 -1
- package/src/web/page/mails/ComposeMailPage.tsx +1 -0
- package/src/web/page/mails/ConversationPage.tsx +21 -3
- package/src/web/page/mails/MailboxContacts.tsx +0 -4
|
@@ -24651,10 +24651,10 @@ System.register(["tslib", "@web-atoms/core/dist/App", "@web-atoms/core/dist/core
|
|
|
24651
24651
|
|
|
24652
24652
|
AmdLoader.instance.setup("@web-atoms/web-controls/dist/basic/UploadEvent");
|
|
24653
24653
|
|
|
24654
|
-
System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/html-editor/InlineHtmlEditor", "@web-atoms/web-controls/dist/html-editor/commands/Toolbar", "@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/Underline", "@web-atoms/web-controls/dist/html-editor/commands/StrikeThrough", "@web-atoms/web-controls/dist/html-editor/commands/Align", "@web-atoms/web-controls/dist/html-editor/commands/HorizontalRule", "@web-atoms/web-controls/dist/html-editor/commands/Separator", "@web-atoms/web-controls/dist/html-editor/commands/Headings", "@web-atoms/web-controls/dist/html-editor/commands/ChangeColor", "@web-atoms/web-controls/dist/html-editor/commands/ChangeFont", "@web-atoms/web-controls/dist/html-editor/commands/ChangeFontSize", "@web-atoms/web-controls/dist/html-editor/commands/NumberedList", "@web-atoms/web-controls/dist/html-editor/commands/UnorderedList", "@web-atoms/web-controls/dist/html-editor/commands/IndentLess", "@web-atoms/web-controls/dist/html-editor/commands/IndentMore", "@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/RemoveFormat", "@web-atoms/web-controls/dist/html-editor/commands/Source", "@web-atoms/web-controls/dist/basic/UploadEvent", "../../../services/files/LocalFileService", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/core/StringHelper", "@web-atoms/core/dist/style/styled"], function (_export, _context) {
|
|
24654
|
+
System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/html-editor/InlineHtmlEditor", "@web-atoms/web-controls/dist/html-editor/commands/Toolbar", "@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/Underline", "@web-atoms/web-controls/dist/html-editor/commands/StrikeThrough", "@web-atoms/web-controls/dist/html-editor/commands/Align", "@web-atoms/web-controls/dist/html-editor/commands/HorizontalRule", "@web-atoms/web-controls/dist/html-editor/commands/Separator", "@web-atoms/web-controls/dist/html-editor/commands/Headings", "@web-atoms/web-controls/dist/html-editor/commands/ChangeColor", "@web-atoms/web-controls/dist/html-editor/commands/ChangeFont", "@web-atoms/web-controls/dist/html-editor/commands/ChangeFontSize", "@web-atoms/web-controls/dist/html-editor/commands/NumberedList", "@web-atoms/web-controls/dist/html-editor/commands/UnorderedList", "@web-atoms/web-controls/dist/html-editor/commands/IndentLess", "@web-atoms/web-controls/dist/html-editor/commands/IndentMore", "@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/RemoveFormat", "@web-atoms/web-controls/dist/html-editor/commands/Source", "@web-atoms/web-controls/dist/basic/UploadEvent", "../../../services/files/LocalFileService", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/core/StringHelper", "@web-atoms/core/dist/style/styled", "@web-atoms/core/dist/web/core/AtomUI"], function (_export, _context) {
|
|
24655
24655
|
"use strict";
|
|
24656
24656
|
|
|
24657
|
-
var __awaiter, __decorate, __metadata, XNode, InlineHtmlEditor, Toolbar, Bold, Italic, Underline, StrikeThrough, Align, HorizontalRule, Separator, Headings, ChangeColor, ChangeFont, ChangeFontSize, NumberedList, UnorderedList, IndentLess, IndentMore, AddLink, Unlink, RemoveFormat, Source, UploadEvent, LocalFileService, acceptDocumentAndMedia, AtomControl, InjectProperty, StringHelper, styled, MailHtmlEditor, link, onAttachImage, onAttachInlineImage, css;
|
|
24657
|
+
var __awaiter, __decorate, __metadata, XNode, InlineHtmlEditor, Toolbar, Bold, Italic, Underline, StrikeThrough, Align, HorizontalRule, Separator, Headings, ChangeColor, ChangeFont, ChangeFontSize, NumberedList, UnorderedList, IndentLess, IndentMore, AddLink, Unlink, RemoveFormat, Source, UploadEvent, LocalFileService, acceptDocumentAndMedia, AtomControl, InjectProperty, StringHelper, styled, descendentElementIterator, MailHtmlEditor, link, onAttachImage, onAttachInlineImage, css;
|
|
24658
24658
|
function AttachFile({
|
|
24659
24659
|
accept = acceptDocumentAndMedia,
|
|
24660
24660
|
maxSize = 1024 * 1024 * 10,
|
|
@@ -24778,6 +24778,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
|
|
|
24778
24778
|
StringHelper = _webAtomsCoreDistCoreStringHelper.StringHelper;
|
|
24779
24779
|
}, function (_webAtomsCoreDistStyleStyled) {
|
|
24780
24780
|
styled = _webAtomsCoreDistStyleStyled.default;
|
|
24781
|
+
}, function (_webAtomsCoreDistWebCoreAtomUI) {
|
|
24782
|
+
descendentElementIterator = _webAtomsCoreDistWebCoreAtomUI.descendentElementIterator;
|
|
24781
24783
|
}],
|
|
24782
24784
|
execute: function () {
|
|
24783
24785
|
link = document.createElement("link");
|
|
@@ -24822,6 +24824,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
|
|
|
24822
24824
|
}
|
|
24823
24825
|
`.installLocal();
|
|
24824
24826
|
_export("MailHtmlEditor", MailHtmlEditor = class MailHtmlEditor extends InlineHtmlEditor {
|
|
24827
|
+
constructor() {
|
|
24828
|
+
super(...arguments);
|
|
24829
|
+
this.autofocus = false;
|
|
24830
|
+
}
|
|
24825
24831
|
onPasteEvent(e) {
|
|
24826
24832
|
if (e.clipboardData.files.length) {
|
|
24827
24833
|
e.preventDefault();
|
|
@@ -24875,7 +24881,32 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
|
|
|
24875
24881
|
}));
|
|
24876
24882
|
}
|
|
24877
24883
|
}
|
|
24878
|
-
updateTemplateContent() {
|
|
24884
|
+
updateTemplateContent() {
|
|
24885
|
+
var _a;
|
|
24886
|
+
if (!this.autofocus) {
|
|
24887
|
+
return;
|
|
24888
|
+
}
|
|
24889
|
+
for (const child of descendentElementIterator(this.editor)) {
|
|
24890
|
+
let e = child;
|
|
24891
|
+
if (e.isContentEditable) {
|
|
24892
|
+
while (((_a = e.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
24893
|
+
e = e.children[0];
|
|
24894
|
+
}
|
|
24895
|
+
if (e.tagName === "BR") {
|
|
24896
|
+
e = e.parentElement;
|
|
24897
|
+
}
|
|
24898
|
+
setTimeout(() => {
|
|
24899
|
+
const s = window.getSelection();
|
|
24900
|
+
const r = document.createRange();
|
|
24901
|
+
r.setStart(e, 1);
|
|
24902
|
+
r.setEnd(e, 1);
|
|
24903
|
+
s.removeAllRanges();
|
|
24904
|
+
s.addRange(r);
|
|
24905
|
+
}, 1000);
|
|
24906
|
+
return;
|
|
24907
|
+
}
|
|
24908
|
+
}
|
|
24909
|
+
}
|
|
24879
24910
|
});
|
|
24880
24911
|
__decorate([InjectProperty, __metadata("design:type", LocalFileService)], MailHtmlEditor.prototype, "localFileService", void 0);
|
|
24881
24912
|
}
|
|
@@ -26158,6 +26189,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
26158
26189
|
capitalize: "words",
|
|
26159
26190
|
value: Bind.twoWaysImmediate(() => this.model.subject)
|
|
26160
26191
|
})), XNode.create(InlineHtmlEditorWithToolbar, {
|
|
26192
|
+
autofocus: true,
|
|
26161
26193
|
"data-html-editor": "email-editor",
|
|
26162
26194
|
presenter: Bind.presenter(c => this.editor = c),
|
|
26163
26195
|
content: this.model.htmlBody,
|
|
@@ -30553,9 +30585,13 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
30553
30585
|
const html = yield FetchBuilder.get(`/api/files/html/${appFileID}/${fileContentID}/${name}/${name}.html`).responseAsText();
|
|
30554
30586
|
this.renderer = XNode.create("div", {
|
|
30555
30587
|
"style-overflow-y": "hidden"
|
|
30556
|
-
}, XNode.create("div",
|
|
30588
|
+
}, XNode.create("div", {
|
|
30589
|
+
"data-position": "absolute-fill",
|
|
30557
30590
|
"data-overflow": "auto"
|
|
30558
|
-
},
|
|
30591
|
+
}, XNode.create("div", Object.assign({
|
|
30592
|
+
"data-margin-left": "auto",
|
|
30593
|
+
"data-margin-right": "auto"
|
|
30594
|
+
}, renderHTML(html)))));
|
|
30559
30595
|
});
|
|
30560
30596
|
}
|
|
30561
30597
|
});
|
|
@@ -33216,11 +33252,15 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
33216
33252
|
if (/all/i.test(ce.type)) {
|
|
33217
33253
|
for (const {
|
|
33218
33254
|
name: rName,
|
|
33255
|
+
emailAddressID,
|
|
33219
33256
|
emailAddress: {
|
|
33220
33257
|
emailAddress
|
|
33221
33258
|
}
|
|
33222
33259
|
} of email.recipients) {
|
|
33223
|
-
if (recipients.some(er => er.
|
|
33260
|
+
if (recipients.some(er => er.emailAddressText === emailAddress)) {
|
|
33261
|
+
continue;
|
|
33262
|
+
}
|
|
33263
|
+
if (this.parameters.mailboxID === emailAddressID) {
|
|
33224
33264
|
continue;
|
|
33225
33265
|
}
|
|
33226
33266
|
recipients.push(EmailRecipient.create({
|
|
@@ -33236,7 +33276,22 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
33236
33276
|
parentID,
|
|
33237
33277
|
received: false,
|
|
33238
33278
|
recipients,
|
|
33239
|
-
htmlBody: `<
|
|
33279
|
+
htmlBody: `<section>
|
|
33280
|
+
<section contentEditable="true">
|
|
33281
|
+
<p>
|
|
33282
|
+
<br/>
|
|
33283
|
+
<br/>
|
|
33284
|
+
</p>
|
|
33285
|
+
</section>
|
|
33286
|
+
<blockquote data-type="reply-to" style="margin-inline-start: 20px; margin-inline-end: 0; border-left: solid 1px lightgray; padding-left: 10px;">
|
|
33287
|
+
<details>
|
|
33288
|
+
<summary>From: ${email.senderName} ${`<${this.parameters.emailAddress.emailAddress}>`}<br/>Subject: ${email.subject} </summary>
|
|
33289
|
+
<div>
|
|
33290
|
+
${email.htmlBody}
|
|
33291
|
+
</div>
|
|
33292
|
+
</details>
|
|
33293
|
+
</blockquote>
|
|
33294
|
+
</section>`
|
|
33240
33295
|
});
|
|
33241
33296
|
yield PageNavigator.pushPageForResult(ComposeMailPage, {
|
|
33242
33297
|
mailboxID: child.senderID,
|
|
@@ -33861,10 +33916,6 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
33861
33916
|
}
|
|
33862
33917
|
}
|
|
33863
33918
|
|
|
33864
|
-
& [data-page-element=content] {
|
|
33865
|
-
background-color: #80808030;
|
|
33866
|
-
}
|
|
33867
|
-
|
|
33868
33919
|
& .threads {
|
|
33869
33920
|
display: flex;
|
|
33870
33921
|
gap: 5px;
|