@social-mail/social-mail-client 1.2.15 → 1.2.16
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.
- package/dist/admin/AdminAppIndex.pack.js +13 -6
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +3 -3
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +13 -6
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +4 -4
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposeBox.d.ts.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposeBox.js +9 -3
- package/dist/web/page/mails/mini-compose/MiniComposeBox.js.map +1 -1
- package/dist/web/page/mails/service/ConversationService.d.ts.map +1 -1
- package/dist/web/page/mails/service/ConversationService.js +1 -3
- package/dist/web/page/mails/service/ConversationService.js.map +1 -1
- package/dist/web/page/mails/service/MailService.d.ts.map +1 -1
- package/dist/web/page/mails/service/MailService.js +3 -0
- package/dist/web/page/mails/service/MailService.js.map +1 -1
- package/package.json +1 -1
- package/src/web/page/mails/mini-compose/MiniComposeBox.tsx +9 -1
- package/src/web/page/mails/service/ConversationService.tsx +1 -3
- package/src/web/page/mails/service/MailService.ts +3 -0
|
@@ -21230,6 +21230,9 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
21230
21230
|
}
|
|
21231
21231
|
send(email) {
|
|
21232
21232
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21233
|
+
if (email.textBody) {
|
|
21234
|
+
email.subject || (email.subject = email.textBody.substring(0, 80));
|
|
21235
|
+
}
|
|
21233
21236
|
for (const iterator of email.recipients) {
|
|
21234
21237
|
if (iterator.emailAddressText) {
|
|
21235
21238
|
iterator.emailAddressText = iterator.emailAddressText.trim();
|
|
@@ -21617,9 +21620,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
21617
21620
|
if (!email.textBody) {
|
|
21618
21621
|
email.textBody = email.mdBody;
|
|
21619
21622
|
}
|
|
21620
|
-
|
|
21621
|
-
email.subject = email.textBody.substring(0, 80);
|
|
21622
|
-
}
|
|
21623
|
+
email.subject || (email.subject = "");
|
|
21623
21624
|
const cloner = this.entityService.cloner(email).include(x => x.attachments).include(x => x.recipients);
|
|
21624
21625
|
yield this.entityService.save(cloner.copy);
|
|
21625
21626
|
return email;
|
|
@@ -32591,7 +32592,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
32591
32592
|
|
|
32592
32593
|
& > [data-element=editor] {
|
|
32593
32594
|
grid-row: 2;
|
|
32594
|
-
grid-column: 2;
|
|
32595
|
+
grid-column: 1 / span 2;
|
|
32595
32596
|
margin-left: 5px;
|
|
32596
32597
|
margin-right: 5px;
|
|
32597
32598
|
}
|
|
@@ -32707,12 +32708,18 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
32707
32708
|
});
|
|
32708
32709
|
}
|
|
32709
32710
|
sendEmail() {
|
|
32710
|
-
var _a;
|
|
32711
|
+
var _a, _b, _c, _d;
|
|
32711
32712
|
return __awaiter(this, void 0, void 0, function* () {
|
|
32713
|
+
if (!((_a = this.draft) === null || _a === void 0 ? void 0 : _a.textBody)) {
|
|
32714
|
+
if (!((_c = (_b = this.draft) === null || _b === void 0 ? void 0 : _b.attachments) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
32715
|
+
alert("Cannot send empty email");
|
|
32716
|
+
return;
|
|
32717
|
+
}
|
|
32718
|
+
}
|
|
32712
32719
|
this.draft.status = "scheduled";
|
|
32713
32720
|
this.draft.dateSent = DateTime.now.add(TimeSpan.fromSeconds(30));
|
|
32714
32721
|
yield this.mailService.send(this.draft);
|
|
32715
|
-
(
|
|
32722
|
+
(_d = this.draft) !== null && _d !== void 0 ? _d : this.draft = Email.create({
|
|
32716
32723
|
attachments: []
|
|
32717
32724
|
});
|
|
32718
32725
|
});
|