@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.
@@ -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({
@@ -35526,7 +35542,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/AtomDisposableList", "@web-
35526
35542
  display: grid;
35527
35543
  overflow: hidden;
35528
35544
  grid-template-columns: 1fr 2px;
35529
- gap: 5px;
35545
+ gap: 1px;
35530
35546
  & > * {
35531
35547
  grid-row: 1;
35532
35548
  grid-column: 1;
@@ -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,11 +35769,40 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
35752
35769
  }
35753
35770
  }
35754
35771
 
35772
+ & .add-contact {
35773
+ place-self: stretch;
35774
+ grid-row: 3;
35775
+ border-top: solid 1px lightgray;
35776
+ padding-top: 5px;
35777
+ display: flex;
35778
+ justify-content: center;
35779
+ }
35780
+
35781
+ & .blocked-bar {
35782
+ grid-row: 1;
35783
+ padding-bottom: 5px;
35784
+ place-self: stretch;
35785
+ font-size: smaller;
35786
+ display: flex;
35787
+ justify-content: center;
35788
+ border-bottom: solid 1px lightgray;
35789
+ }
35790
+
35791
+ & .threads-container {
35792
+ display: grid;
35793
+ grid-template-rows: auto 1fr auto;
35794
+ overflow: hidden;
35795
+ grid-template-columns: 1fr;
35796
+ }
35797
+
35755
35798
  & .threads {
35799
+ grid-row: 2;
35756
35800
  display: flex;
35757
35801
  gap: 5px;
35758
35802
  flex-direction: column;
35759
35803
  overflow-x: hidden !important;
35804
+ padding-top: 5px;
35805
+ padding-bottom: 5px;
35760
35806
  & .mailbox-thread {
35761
35807
  background-color: canvas;
35762
35808
  display: grid;
@@ -35878,21 +35924,15 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
35878
35924
  }));
35879
35925
  }
35880
35926
  this.title = mailbox.emailAddress.emailAddress;
35881
- this.renderer = XNode.create("div", null, XNode.create(Resizable, null, XNode.create(AtomRepeater, Object.assign({
35927
+ this.renderer = XNode.create("div", null, XNode.create(Resizable, null, XNode.create("div", {
35928
+ class: "threads-container"
35929
+ }, XNode.create("div", {
35930
+ class: "blocked-bar"
35931
+ }, XNode.create(ToggleButtonBar, {
35932
+ items: types,
35933
+ value: Bind.sourceTwoWays(this, x => x.source.showBlocked)
35934
+ })), XNode.create(AtomRepeater, Object.assign({
35882
35935
  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
35936
  "data-list-selection": "default",
35897
35937
  "data-items-updated-event": "mails-available",
35898
35938
  "data-selection-updated-event": "mail-selected",
@@ -35934,7 +35974,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
35934
35974
  title: `Unread ${item.unread} out of ${item.total}`
35935
35975
  }));
35936
35976
  }
35937
- }))));
35977
+ })), XNode.create("div", {
35978
+ class: "add-contact"
35979
+ }, XNode.create("button", {
35980
+ "data-click-event": "add-new-contact",
35981
+ "data-layout": "accent-icon-button"
35982
+ }, XNode.create("i", {
35983
+ class: "fas fa-plus"
35984
+ }), "Contact")))));
35938
35985
  this.registerDisposable(yield this.resolve(MailboxSocket).join(this.currentMailbox.mailboxID.toString(), {
35939
35986
  newMail: (_, emailAddressID, emailID) => {
35940
35987
  this.version++;