@social-mail/social-mail-client 1.2.259 → 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.
@@ -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`
@@ -37979,10 +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);
37982
37985
  if (!this.draft.subject) {
37983
- (_e = this.element.querySelector("input.subject")) === null || _e === void 0 ? void 0 : _e.focus();
37986
+ (_e = this.editor.element.querySelector("input.subject")) === null || _e === void 0 ? void 0 : _e.focus();
37984
37987
  return;
37985
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
+ }
37986
38002
  });
37987
38003
  }
37988
38004
  filesAvailable({
@@ -41682,6 +41698,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
41682
41698
  }],
41683
41699
  execute: function () {
41684
41700
  css = styled.css`
41701
+
41685
41702
  &[data-page-type=master-detail] {
41686
41703
  & > [data-page-element=content] {
41687
41704
  &[data-mode=desktop] {
@@ -41695,7 +41712,27 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
41695
41712
  }
41696
41713
  }
41697
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
+
41698
41734
  & .threads {
41735
+ grid-row: 2;
41699
41736
  display: flex;
41700
41737
  gap: 5px;
41701
41738
  flex-direction: column;
@@ -41821,21 +41858,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
41821
41858
  }));
41822
41859
  }
41823
41860
  this.title = mailbox.emailAddress.emailAddress;
41824
- this.renderer = XNode.create("div", null, XNode.create(Resizable, null, XNode.create(AtomRepeater, Object.assign({
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({
41825
41868
  class: "threads",
41826
- header: true,
41827
- headerRenderer: () => XNode.create("div", {
41828
- "data-layout": "row",
41829
- "data-font-size": "smaller"
41830
- }, XNode.create(ToggleButtonBar, {
41831
- items: types,
41832
- value: Bind.sourceTwoWays(this, x => x.source.showBlocked)
41833
- }), XNode.create("button", {
41834
- "data-click-event": "add-new-contact",
41835
- "data-layout": "accent-icon-button"
41836
- }, XNode.create("i", {
41837
- class: "fas fa-plus"
41838
- }), "Add")),
41839
41869
  "data-list-selection": "default",
41840
41870
  "data-items-updated-event": "mails-available",
41841
41871
  "data-selection-updated-event": "mail-selected",
@@ -41877,7 +41907,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
41877
41907
  title: `Unread ${item.unread} out of ${item.total}`
41878
41908
  }));
41879
41909
  }
41880
- }))));
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")))));
41881
41918
  this.registerDisposable(yield this.resolve(MailboxSocket).join(this.currentMailbox.mailboxID.toString(), {
41882
41919
  newMail: (_, emailAddressID, emailID) => {
41883
41920
  this.version++;