@social-mail/social-mail-client 1.2.24 → 1.2.25

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 (27) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +56 -9
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +4 -8
  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 +56 -9
  11. package/dist/web/AppIndex.pack.js.map +1 -1
  12. package/dist/web/AppIndex.pack.min.js +4 -8
  13. package/dist/web/AppIndex.pack.min.js.map +1 -1
  14. package/dist/web/page/mails/ComposeMailPage.d.ts.map +1 -1
  15. package/dist/web/page/mails/ComposeMailPage.js +1 -0
  16. package/dist/web/page/mails/ComposeMailPage.js.map +1 -1
  17. package/dist/web/page/mails/ConversationPage.d.ts.map +1 -1
  18. package/dist/web/page/mails/ConversationPage.js +21 -2
  19. package/dist/web/page/mails/ConversationPage.js.map +1 -1
  20. package/dist/web/page/mails/MailboxContacts.d.ts.map +1 -1
  21. package/dist/web/page/mails/MailboxContacts.js +0 -4
  22. package/dist/web/page/mails/MailboxContacts.js.map +1 -1
  23. package/package.json +1 -1
  24. package/src/common/controls/html/InlineHtmlEditorWithToolbar.tsx +27 -0
  25. package/src/web/page/mails/ComposeMailPage.tsx +1 -0
  26. package/src/web/page/mails/ConversationPage.tsx +21 -3
  27. 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,
@@ -33216,11 +33248,15 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
33216
33248
  if (/all/i.test(ce.type)) {
33217
33249
  for (const {
33218
33250
  name: rName,
33251
+ emailAddressID,
33219
33252
  emailAddress: {
33220
33253
  emailAddress
33221
33254
  }
33222
33255
  } of email.recipients) {
33223
- if (recipients.some(er => er.emailAddress.emailAddress === emailAddress)) {
33256
+ if (recipients.some(er => er.emailAddressText === emailAddress)) {
33257
+ continue;
33258
+ }
33259
+ if (this.parameters.mailboxID === emailAddressID) {
33224
33260
  continue;
33225
33261
  }
33226
33262
  recipients.push(EmailRecipient.create({
@@ -33236,7 +33272,22 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
33236
33272
  parentID,
33237
33273
  received: false,
33238
33274
  recipients,
33239
- htmlBody: `<div contentEditable="true"><p><br/><br/><br/><br/><br/></p></div>`
33275
+ htmlBody: `<section>
33276
+ <section contentEditable="true">
33277
+ <p>
33278
+ <br/>
33279
+ <br/>
33280
+ </p>
33281
+ </section>
33282
+ <blockquote data-type="reply-to" style="margin-inline-start: 20px; margin-inline-end: 0; border-left: solid 1px lightgray; padding-left: 10px;">
33283
+ <details>
33284
+ <summary>From: ${email.senderName} ${`<${this.parameters.emailAddress.emailAddress}>`}<br/>Subject: ${email.subject} </summary>
33285
+ <div>
33286
+ ${email.htmlBody}
33287
+ </div>
33288
+ </details>
33289
+ </blockquote>
33290
+ </section>`
33240
33291
  });
33241
33292
  yield PageNavigator.pushPageForResult(ComposeMailPage, {
33242
33293
  mailboxID: child.senderID,
@@ -33861,10 +33912,6 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
33861
33912
  }
33862
33913
  }
33863
33914
 
33864
- & [data-page-element=content] {
33865
- background-color: #80808030;
33866
- }
33867
-
33868
33915
  & .threads {
33869
33916
  display: flex;
33870
33917
  gap: 5px;