@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.
@@ -30034,10 +30034,10 @@ System.register(["@web-atoms/core/dist/core/XNode"], function (_export, _context
30034
30034
 
30035
30035
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/controls/Loader");
30036
30036
 
30037
- 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) {
30037
+ 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) {
30038
30038
  "use strict";
30039
30039
 
30040
- 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;
30040
+ 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;
30041
30041
  _export("default", void 0);
30042
30042
  return {
30043
30043
  setters: [function (_tslib) {
@@ -30107,6 +30107,8 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
30107
30107
  EmailLabel = _commonControlsEmailRecipientsEmailLabel.default;
30108
30108
  }, function (_commonControlsLoader) {
30109
30109
  Loader = _commonControlsLoader.default;
30110
+ }, function (_webAtomsCoreDistWebCoreAtomUI) {
30111
+ descendentElementIterator = _webAtomsCoreDistWebCoreAtomUI.descendentElementIterator;
30110
30112
  }],
30111
30113
  execute: function () {
30112
30114
  css = styled.css`
@@ -30233,10 +30235,24 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
30233
30235
  "data-color": "red"
30234
30236
  }))
30235
30237
  }));
30238
+ yield sleep(100);
30236
30239
  if (!this.draft.subject) {
30237
- (_e = this.element.querySelector("input.subject")) === null || _e === void 0 ? void 0 : _e.focus();
30240
+ (_e = this.editor.element.querySelector("input.subject")) === null || _e === void 0 ? void 0 : _e.focus();
30238
30241
  return;
30239
30242
  }
30243
+ const editor = this.editor.element.querySelector(`[data-element="editor"]`);
30244
+ for (const iterator of descendentElementIterator(editor)) {
30245
+ if (iterator.isContentEditable) {
30246
+ let start = iterator;
30247
+ let next;
30248
+ while ((next = start.firstElementChild) && next.tagName !== "BR") {
30249
+ start = next;
30250
+ }
30251
+ start.focus();
30252
+ window.getSelection().setPosition(start.firstElementChild);
30253
+ return;
30254
+ }
30255
+ }
30240
30256
  });
30241
30257
  }
30242
30258
  filesAvailable({
@@ -35739,6 +35755,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
35739
35755
  }],
35740
35756
  execute: function () {
35741
35757
  css = styled.css`
35758
+
35742
35759
  &[data-page-type=master-detail] {
35743
35760
  & > [data-page-element=content] {
35744
35761
  &[data-mode=desktop] {
@@ -35752,7 +35769,27 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
35752
35769
  }
35753
35770
  }
35754
35771
 
35772
+ & .add-contact {
35773
+ place-self: center;
35774
+ grid-row: 3;
35775
+ }
35776
+
35777
+ & .blocked-bar {
35778
+ grid-row: 1;
35779
+ place-self: center;
35780
+ margin: 5px;
35781
+ font-size: smaller;
35782
+ }
35783
+
35784
+ & .threads-container {
35785
+ display: grid;
35786
+ grid-template-rows: auto 1fr auto;
35787
+ overflow: hidden;
35788
+ grid-template-columns: 1fr;
35789
+ }
35790
+
35755
35791
  & .threads {
35792
+ grid-row: 2;
35756
35793
  display: flex;
35757
35794
  gap: 5px;
35758
35795
  flex-direction: column;
@@ -35878,21 +35915,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
35878
35915
  }));
35879
35916
  }
35880
35917
  this.title = mailbox.emailAddress.emailAddress;
35881
- this.renderer = XNode.create("div", null, XNode.create(Resizable, null, XNode.create(AtomRepeater, Object.assign({
35918
+ this.renderer = XNode.create("div", null, XNode.create(Resizable, null, XNode.create("div", {
35919
+ class: "threads-container"
35920
+ }, XNode.create(ToggleButtonBar, {
35921
+ class: "blocked-bar",
35922
+ items: types,
35923
+ value: Bind.sourceTwoWays(this, x => x.source.showBlocked)
35924
+ }), XNode.create(AtomRepeater, Object.assign({
35882
35925
  class: "threads",
35883
- header: true,
35884
- headerRenderer: () => XNode.create("div", {
35885
- "data-layout": "row",
35886
- "data-font-size": "smaller"
35887
- }, XNode.create(ToggleButtonBar, {
35888
- items: types,
35889
- value: Bind.sourceTwoWays(this, x => x.source.showBlocked)
35890
- }), XNode.create("button", {
35891
- "data-click-event": "add-new-contact",
35892
- "data-layout": "accent-icon-button"
35893
- }, XNode.create("i", {
35894
- class: "fas fa-plus"
35895
- }), "Add")),
35896
35926
  "data-list-selection": "default",
35897
35927
  "data-items-updated-event": "mails-available",
35898
35928
  "data-selection-updated-event": "mail-selected",
@@ -35934,7 +35964,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
35934
35964
  title: `Unread ${item.unread} out of ${item.total}`
35935
35965
  }));
35936
35966
  }
35937
- }))));
35967
+ })), XNode.create("div", {
35968
+ class: "add-contact"
35969
+ }, XNode.create("button", {
35970
+ "data-click-event": "add-new-contact",
35971
+ "data-layout": "accent-icon-button"
35972
+ }, XNode.create("i", {
35973
+ class: "fas fa-plus"
35974
+ }), "Contact")))));
35938
35975
  this.registerDisposable(yield this.resolve(MailboxSocket).join(this.currentMailbox.mailboxID.toString(), {
35939
35976
  newMail: (_, emailAddressID, emailID) => {
35940
35977
  this.version++;