@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
|
@@ -18372,7 +18372,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
18372
18372
|
showDeleted = false,
|
|
18373
18373
|
showFolder = true
|
|
18374
18374
|
}) {
|
|
18375
|
-
var _a;
|
|
18375
|
+
var _a, _b;
|
|
18376
18376
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18377
18377
|
const parentID = folder === null || folder === void 0 ? void 0 : folder.appFileID;
|
|
18378
18378
|
if (!parentID) {
|
|
@@ -18407,6 +18407,12 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
18407
18407
|
const results = [];
|
|
18408
18408
|
for (const iterator of files) {
|
|
18409
18409
|
if (!iterator.isFolder) {
|
|
18410
|
+
if (accept && iterator.parentID === folder.appFileID) {
|
|
18411
|
+
const children = (_a = folder.children) !== null && _a !== void 0 ? _a : folder.children = [];
|
|
18412
|
+
if (!children.some(f => f.appFileID === iterator.appFileID)) {
|
|
18413
|
+
children.add(iterator);
|
|
18414
|
+
}
|
|
18415
|
+
}
|
|
18410
18416
|
results.push(iterator);
|
|
18411
18417
|
continue;
|
|
18412
18418
|
}
|
|
@@ -18416,7 +18422,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
18416
18422
|
fx.fileSize = iterator.fileSize;
|
|
18417
18423
|
continue;
|
|
18418
18424
|
}
|
|
18419
|
-
(
|
|
18425
|
+
(_b = iterator.children) !== null && _b !== void 0 ? _b : iterator.children = [];
|
|
18420
18426
|
folder.children.add(iterator);
|
|
18421
18427
|
results.push(iterator);
|
|
18422
18428
|
}
|
|
@@ -21230,6 +21236,9 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
21230
21236
|
}
|
|
21231
21237
|
send(email) {
|
|
21232
21238
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21239
|
+
if (email.textBody) {
|
|
21240
|
+
email.subject || (email.subject = email.textBody.substring(0, 80));
|
|
21241
|
+
}
|
|
21233
21242
|
for (const iterator of email.recipients) {
|
|
21234
21243
|
if (iterator.emailAddressText) {
|
|
21235
21244
|
iterator.emailAddressText = iterator.emailAddressText.trim();
|
|
@@ -21617,9 +21626,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
21617
21626
|
if (!email.textBody) {
|
|
21618
21627
|
email.textBody = email.mdBody;
|
|
21619
21628
|
}
|
|
21620
|
-
|
|
21621
|
-
email.subject = email.textBody.substring(0, 80);
|
|
21622
|
-
}
|
|
21629
|
+
email.subject || (email.subject = "");
|
|
21623
21630
|
const cloner = this.entityService.cloner(email).include(x => x.attachments).include(x => x.recipients);
|
|
21624
21631
|
yield this.entityService.save(cloner.copy);
|
|
21625
21632
|
return email;
|
|
@@ -32591,7 +32598,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
32591
32598
|
|
|
32592
32599
|
& > [data-element=editor] {
|
|
32593
32600
|
grid-row: 2;
|
|
32594
|
-
grid-column: 2;
|
|
32601
|
+
grid-column: 1 / span 2;
|
|
32595
32602
|
margin-left: 5px;
|
|
32596
32603
|
margin-right: 5px;
|
|
32597
32604
|
}
|
|
@@ -32707,12 +32714,18 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
32707
32714
|
});
|
|
32708
32715
|
}
|
|
32709
32716
|
sendEmail() {
|
|
32710
|
-
var _a;
|
|
32717
|
+
var _a, _b, _c, _d;
|
|
32711
32718
|
return __awaiter(this, void 0, void 0, function* () {
|
|
32719
|
+
if (!((_a = this.draft) === null || _a === void 0 ? void 0 : _a.textBody)) {
|
|
32720
|
+
if (!((_c = (_b = this.draft) === null || _b === void 0 ? void 0 : _b.attachments) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
32721
|
+
alert("Cannot send empty email");
|
|
32722
|
+
return;
|
|
32723
|
+
}
|
|
32724
|
+
}
|
|
32712
32725
|
this.draft.status = "scheduled";
|
|
32713
32726
|
this.draft.dateSent = DateTime.now.add(TimeSpan.fromSeconds(30));
|
|
32714
32727
|
yield this.mailService.send(this.draft);
|
|
32715
|
-
(
|
|
32728
|
+
(_d = this.draft) !== null && _d !== void 0 ? _d : this.draft = Email.create({
|
|
32716
32729
|
attachments: []
|
|
32717
32730
|
});
|
|
32718
32731
|
});
|
|
@@ -34849,7 +34862,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
34849
34862
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34850
34863
|
this.renderer = XNode.create("div", null, XNode.create("button", {
|
|
34851
34864
|
"data-click-event": "create-template",
|
|
34852
|
-
text: "Create"
|
|
34865
|
+
text: "Create From Template"
|
|
34853
34866
|
}));
|
|
34854
34867
|
});
|
|
34855
34868
|
}
|