@social-mail/social-mail-client 1.2.259 → 1.2.261

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({
@@ -41469,7 +41485,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/AtomDisposableList", "@web-
41469
41485
  display: grid;
41470
41486
  overflow: hidden;
41471
41487
  grid-template-columns: 1fr 2px;
41472
- gap: 5px;
41488
+ gap: 1px;
41473
41489
  & > * {
41474
41490
  grid-row: 1;
41475
41491
  grid-column: 1;
@@ -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,11 +41712,40 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
41695
41712
  }
41696
41713
  }
41697
41714
 
41715
+ & .add-contact {
41716
+ place-self: stretch;
41717
+ grid-row: 3;
41718
+ border-top: solid 1px lightgray;
41719
+ padding-top: 5px;
41720
+ display: flex;
41721
+ justify-content: center;
41722
+ }
41723
+
41724
+ & .blocked-bar {
41725
+ grid-row: 1;
41726
+ padding-bottom: 5px;
41727
+ place-self: stretch;
41728
+ font-size: smaller;
41729
+ display: flex;
41730
+ justify-content: center;
41731
+ border-bottom: solid 1px lightgray;
41732
+ }
41733
+
41734
+ & .threads-container {
41735
+ display: grid;
41736
+ grid-template-rows: auto 1fr auto;
41737
+ overflow: hidden;
41738
+ grid-template-columns: 1fr;
41739
+ }
41740
+
41698
41741
  & .threads {
41742
+ grid-row: 2;
41699
41743
  display: flex;
41700
41744
  gap: 5px;
41701
41745
  flex-direction: column;
41702
41746
  overflow-x: hidden !important;
41747
+ padding-top: 5px;
41748
+ padding-bottom: 5px;
41703
41749
  & .mailbox-thread {
41704
41750
  background-color: canvas;
41705
41751
  display: grid;
@@ -41821,21 +41867,15 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
41821
41867
  }));
41822
41868
  }
41823
41869
  this.title = mailbox.emailAddress.emailAddress;
41824
- this.renderer = XNode.create("div", null, XNode.create(Resizable, null, XNode.create(AtomRepeater, Object.assign({
41870
+ this.renderer = XNode.create("div", null, XNode.create(Resizable, null, XNode.create("div", {
41871
+ class: "threads-container"
41872
+ }, XNode.create("div", {
41873
+ class: "blocked-bar"
41874
+ }, XNode.create(ToggleButtonBar, {
41875
+ items: types,
41876
+ value: Bind.sourceTwoWays(this, x => x.source.showBlocked)
41877
+ })), XNode.create(AtomRepeater, Object.assign({
41825
41878
  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
41879
  "data-list-selection": "default",
41840
41880
  "data-items-updated-event": "mails-available",
41841
41881
  "data-selection-updated-event": "mail-selected",
@@ -41877,7 +41917,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
41877
41917
  title: `Unread ${item.unread} out of ${item.total}`
41878
41918
  }));
41879
41919
  }
41880
- }))));
41920
+ })), XNode.create("div", {
41921
+ class: "add-contact"
41922
+ }, XNode.create("button", {
41923
+ "data-click-event": "add-new-contact",
41924
+ "data-layout": "accent-icon-button"
41925
+ }, XNode.create("i", {
41926
+ class: "fas fa-plus"
41927
+ }), "Contact")))));
41881
41928
  this.registerDisposable(yield this.resolve(MailboxSocket).join(this.currentMailbox.mailboxID.toString(), {
41882
41929
  newMail: (_, emailAddressID, emailID) => {
41883
41930
  this.version++;