@social-mail/social-mail-client 1.2.15 → 1.2.17
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 +22 -9
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +5 -5
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/pages/websites/templates/ChooseWebSiteTemplatePage.js +1 -1
- package/dist/common/pages/websites/templates/ChooseWebSiteTemplatePage.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +22 -9
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +6 -6
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/files/service/CloudFileService.d.ts.map +1 -1
- package/dist/web/page/files/service/CloudFileService.js +8 -2
- package/dist/web/page/files/service/CloudFileService.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/common/pages/websites/templates/ChooseWebSiteTemplatePage.tsx +1 -1
- package/src/web/page/files/service/CloudFileService.ts +6 -0
- 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
|
@@ -17575,6 +17575,9 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
17575
17575
|
}
|
|
17576
17576
|
send(email) {
|
|
17577
17577
|
return __awaiter(this, void 0, void 0, function* () {
|
|
17578
|
+
if (email.textBody) {
|
|
17579
|
+
email.subject || (email.subject = email.textBody.substring(0, 80));
|
|
17580
|
+
}
|
|
17578
17581
|
for (const iterator of email.recipients) {
|
|
17579
17582
|
if (iterator.emailAddressText) {
|
|
17580
17583
|
iterator.emailAddressText = iterator.emailAddressText.trim();
|
|
@@ -18207,9 +18210,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
18207
18210
|
if (!email.textBody) {
|
|
18208
18211
|
email.textBody = email.mdBody;
|
|
18209
18212
|
}
|
|
18210
|
-
|
|
18211
|
-
email.subject = email.textBody.substring(0, 80);
|
|
18212
|
-
}
|
|
18213
|
+
email.subject || (email.subject = "");
|
|
18213
18214
|
const cloner = this.entityService.cloner(email).include(x => x.attachments).include(x => x.recipients);
|
|
18214
18215
|
yield this.entityService.save(cloner.copy);
|
|
18215
18216
|
return email;
|
|
@@ -25096,7 +25097,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
25096
25097
|
|
|
25097
25098
|
& > [data-element=editor] {
|
|
25098
25099
|
grid-row: 2;
|
|
25099
|
-
grid-column: 2;
|
|
25100
|
+
grid-column: 1 / span 2;
|
|
25100
25101
|
margin-left: 5px;
|
|
25101
25102
|
margin-right: 5px;
|
|
25102
25103
|
}
|
|
@@ -25212,12 +25213,18 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
25212
25213
|
});
|
|
25213
25214
|
}
|
|
25214
25215
|
sendEmail() {
|
|
25215
|
-
var _a;
|
|
25216
|
+
var _a, _b, _c, _d;
|
|
25216
25217
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25218
|
+
if (!((_a = this.draft) === null || _a === void 0 ? void 0 : _a.textBody)) {
|
|
25219
|
+
if (!((_c = (_b = this.draft) === null || _b === void 0 ? void 0 : _b.attachments) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
25220
|
+
alert("Cannot send empty email");
|
|
25221
|
+
return;
|
|
25222
|
+
}
|
|
25223
|
+
}
|
|
25217
25224
|
this.draft.status = "scheduled";
|
|
25218
25225
|
this.draft.dateSent = DateTime.now.add(TimeSpan.fromSeconds(30));
|
|
25219
25226
|
yield this.mailService.send(this.draft);
|
|
25220
|
-
(
|
|
25227
|
+
(_d = this.draft) !== null && _d !== void 0 ? _d : this.draft = Email.create({
|
|
25221
25228
|
attachments: []
|
|
25222
25229
|
});
|
|
25223
25230
|
});
|
|
@@ -26167,7 +26174,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
26167
26174
|
showDeleted = false,
|
|
26168
26175
|
showFolder = true
|
|
26169
26176
|
}) {
|
|
26170
|
-
var _a;
|
|
26177
|
+
var _a, _b;
|
|
26171
26178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26172
26179
|
const parentID = folder === null || folder === void 0 ? void 0 : folder.appFileID;
|
|
26173
26180
|
if (!parentID) {
|
|
@@ -26202,6 +26209,12 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
26202
26209
|
const results = [];
|
|
26203
26210
|
for (const iterator of files) {
|
|
26204
26211
|
if (!iterator.isFolder) {
|
|
26212
|
+
if (accept && iterator.parentID === folder.appFileID) {
|
|
26213
|
+
const children = (_a = folder.children) !== null && _a !== void 0 ? _a : folder.children = [];
|
|
26214
|
+
if (!children.some(f => f.appFileID === iterator.appFileID)) {
|
|
26215
|
+
children.add(iterator);
|
|
26216
|
+
}
|
|
26217
|
+
}
|
|
26205
26218
|
results.push(iterator);
|
|
26206
26219
|
continue;
|
|
26207
26220
|
}
|
|
@@ -26211,7 +26224,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
26211
26224
|
fx.fileSize = iterator.fileSize;
|
|
26212
26225
|
continue;
|
|
26213
26226
|
}
|
|
26214
|
-
(
|
|
26227
|
+
(_b = iterator.children) !== null && _b !== void 0 ? _b : iterator.children = [];
|
|
26215
26228
|
folder.children.add(iterator);
|
|
26216
26229
|
results.push(iterator);
|
|
26217
26230
|
}
|
|
@@ -31461,7 +31474,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
31461
31474
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31462
31475
|
this.renderer = XNode.create("div", null, XNode.create("button", {
|
|
31463
31476
|
"data-click-event": "create-template",
|
|
31464
|
-
text: "Create"
|
|
31477
|
+
text: "Create From Template"
|
|
31465
31478
|
}));
|
|
31466
31479
|
});
|
|
31467
31480
|
}
|