@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.
Files changed (31) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +62 -11
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +5 -9
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/common/controls/html/InlineHtmlEditorWithToolbar.d.ts +1 -0
  6. package/dist/common/controls/html/InlineHtmlEditorWithToolbar.d.ts.map +1 -1
  7. package/dist/common/controls/html/InlineHtmlEditorWithToolbar.js +34 -3
  8. package/dist/common/controls/html/InlineHtmlEditorWithToolbar.js.map +1 -1
  9. package/dist/tsconfig.tsbuildinfo +1 -1
  10. package/dist/web/AppIndex.pack.js +62 -11
  11. package/dist/web/AppIndex.pack.js.map +1 -1
  12. package/dist/web/AppIndex.pack.min.js +5 -9
  13. package/dist/web/AppIndex.pack.min.js.map +1 -1
  14. package/dist/web/page/files/preview/document/PreviewDocument.d.ts.map +1 -1
  15. package/dist/web/page/files/preview/document/PreviewDocument.js +6 -2
  16. package/dist/web/page/files/preview/document/PreviewDocument.js.map +1 -1
  17. package/dist/web/page/mails/ComposeMailPage.d.ts.map +1 -1
  18. package/dist/web/page/mails/ComposeMailPage.js +1 -0
  19. package/dist/web/page/mails/ComposeMailPage.js.map +1 -1
  20. package/dist/web/page/mails/ConversationPage.d.ts.map +1 -1
  21. package/dist/web/page/mails/ConversationPage.js +21 -2
  22. package/dist/web/page/mails/ConversationPage.js.map +1 -1
  23. package/dist/web/page/mails/MailboxContacts.d.ts.map +1 -1
  24. package/dist/web/page/mails/MailboxContacts.js +0 -4
  25. package/dist/web/page/mails/MailboxContacts.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/common/controls/html/InlineHtmlEditorWithToolbar.tsx +27 -0
  28. package/src/web/page/files/preview/document/PreviewDocument.tsx +8 -1
  29. package/src/web/page/mails/ComposeMailPage.tsx +1 -0
  30. package/src/web/page/mails/ConversationPage.tsx +21 -3
  31. package/src/web/page/mails/MailboxContacts.tsx +0 -4
@@ -21646,10 +21646,10 @@ System.register(["tslib", "@web-atoms/core/dist/App", "@web-atoms/core/dist/core
21646
21646
 
21647
21647
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/services/files/LocalFileService");
21648
21648
 
21649
- 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) {
21649
+ 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) {
21650
21650
  "use strict";
21651
21651
 
21652
- 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;
21652
+ 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;
21653
21653
  function AttachFile({
21654
21654
  accept = acceptDocumentAndMedia,
21655
21655
  maxSize = 1024 * 1024 * 10,
@@ -21773,6 +21773,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
21773
21773
  StringHelper = _webAtomsCoreDistCoreStringHelper.StringHelper;
21774
21774
  }, function (_webAtomsCoreDistStyleStyled) {
21775
21775
  styled = _webAtomsCoreDistStyleStyled.default;
21776
+ }, function (_webAtomsCoreDistWebCoreAtomUI) {
21777
+ descendentElementIterator = _webAtomsCoreDistWebCoreAtomUI.descendentElementIterator;
21776
21778
  }],
21777
21779
  execute: function () {
21778
21780
  link = document.createElement("link");
@@ -21817,6 +21819,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
21817
21819
  }
21818
21820
  `.installLocal();
21819
21821
  _export("MailHtmlEditor", MailHtmlEditor = class MailHtmlEditor extends InlineHtmlEditor {
21822
+ constructor() {
21823
+ super(...arguments);
21824
+ this.autofocus = false;
21825
+ }
21820
21826
  onPasteEvent(e) {
21821
21827
  if (e.clipboardData.files.length) {
21822
21828
  e.preventDefault();
@@ -21870,7 +21876,32 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-con
21870
21876
  }));
21871
21877
  }
21872
21878
  }
21873
- updateTemplateContent() {}
21879
+ updateTemplateContent() {
21880
+ var _a;
21881
+ if (!this.autofocus) {
21882
+ return;
21883
+ }
21884
+ for (const child of descendentElementIterator(this.editor)) {
21885
+ let e = child;
21886
+ if (e.isContentEditable) {
21887
+ while (((_a = e.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
21888
+ e = e.children[0];
21889
+ }
21890
+ if (e.tagName === "BR") {
21891
+ e = e.parentElement;
21892
+ }
21893
+ setTimeout(() => {
21894
+ const s = window.getSelection();
21895
+ const r = document.createRange();
21896
+ r.setStart(e, 1);
21897
+ r.setEnd(e, 1);
21898
+ s.removeAllRanges();
21899
+ s.addRange(r);
21900
+ }, 1000);
21901
+ return;
21902
+ }
21903
+ }
21904
+ }
21874
21905
  });
21875
21906
  __decorate([InjectProperty, __metadata("design:type", LocalFileService)], MailHtmlEditor.prototype, "localFileService", void 0);
21876
21907
  }
@@ -23153,6 +23184,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
23153
23184
  capitalize: "words",
23154
23185
  value: Bind.twoWaysImmediate(() => this.model.subject)
23155
23186
  })), XNode.create(InlineHtmlEditorWithToolbar, {
23187
+ autofocus: true,
23156
23188
  "data-html-editor": "email-editor",
23157
23189
  presenter: Bind.presenter(c => this.editor = c),
23158
23190
  content: this.model.htmlBody,
@@ -25680,11 +25712,15 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
25680
25712
  if (/all/i.test(ce.type)) {
25681
25713
  for (const {
25682
25714
  name: rName,
25715
+ emailAddressID,
25683
25716
  emailAddress: {
25684
25717
  emailAddress
25685
25718
  }
25686
25719
  } of email.recipients) {
25687
- if (recipients.some(er => er.emailAddress.emailAddress === emailAddress)) {
25720
+ if (recipients.some(er => er.emailAddressText === emailAddress)) {
25721
+ continue;
25722
+ }
25723
+ if (this.parameters.mailboxID === emailAddressID) {
25688
25724
  continue;
25689
25725
  }
25690
25726
  recipients.push(EmailRecipient.create({
@@ -25700,7 +25736,22 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
25700
25736
  parentID,
25701
25737
  received: false,
25702
25738
  recipients,
25703
- htmlBody: `<div contentEditable="true"><p><br/><br/><br/><br/><br/></p></div>`
25739
+ htmlBody: `<section>
25740
+ <section contentEditable="true">
25741
+ <p>
25742
+ <br/>
25743
+ <br/>
25744
+ </p>
25745
+ </section>
25746
+ <blockquote data-type="reply-to" style="margin-inline-start: 20px; margin-inline-end: 0; border-left: solid 1px lightgray; padding-left: 10px;">
25747
+ <details>
25748
+ <summary>From: ${email.senderName} ${`<${this.parameters.emailAddress.emailAddress}>`}<br/>Subject: ${email.subject} </summary>
25749
+ <div>
25750
+ ${email.htmlBody}
25751
+ </div>
25752
+ </details>
25753
+ </blockquote>
25754
+ </section>`
25704
25755
  });
25705
25756
  yield PageNavigator.pushPageForResult(ComposeMailPage, {
25706
25757
  mailboxID: child.senderID,
@@ -28103,10 +28154,6 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
28103
28154
  }
28104
28155
  }
28105
28156
 
28106
- & [data-page-element=content] {
28107
- background-color: #80808030;
28108
- }
28109
-
28110
28157
  & .threads {
28111
28158
  display: flex;
28112
28159
  gap: 5px;
@@ -38434,9 +38481,13 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
38434
38481
  const html = yield FetchBuilder.get(`/api/files/html/${appFileID}/${fileContentID}/${name}/${name}.html`).responseAsText();
38435
38482
  this.renderer = XNode.create("div", {
38436
38483
  "style-overflow-y": "hidden"
38437
- }, XNode.create("div", Object.assign({
38484
+ }, XNode.create("div", {
38485
+ "data-position": "absolute-fill",
38438
38486
  "data-overflow": "auto"
38439
- }, renderHTML(html))));
38487
+ }, XNode.create("div", Object.assign({
38488
+ "data-margin-left": "auto",
38489
+ "data-margin-right": "auto"
38490
+ }, renderHTML(html)))));
38440
38491
  });
38441
38492
  }
38442
38493
  });