@social-mail/social-mail-client 1.8.299 → 1.8.301
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 +36 -11
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/pages/websites/detail/reports/DailyVisitors.d.ts.map +1 -1
- package/dist/common/pages/websites/detail/reports/DailyVisitors.js +1 -1
- package/dist/common/pages/websites/detail/reports/DailyVisitors.js.map +1 -1
- package/dist/common/pages/websites/detail/reports/DailyVisitorsByCountry.d.ts.map +1 -1
- package/dist/common/pages/websites/detail/reports/DailyVisitorsByCountry.js +1 -1
- package/dist/common/pages/websites/detail/reports/DailyVisitorsByCountry.js.map +1 -1
- package/dist/common/pages/websites/detail/reports/DailyVisitorsByDevices.d.ts.map +1 -1
- package/dist/common/pages/websites/detail/reports/DailyVisitorsByDevices.js +1 -1
- package/dist/common/pages/websites/detail/reports/DailyVisitorsByDevices.js.map +1 -1
- package/dist/common/pages/websites/detail/reports/DailyVisitorsBySources.d.ts.map +1 -1
- package/dist/common/pages/websites/detail/reports/DailyVisitorsBySources.js +1 -1
- package/dist/common/pages/websites/detail/reports/DailyVisitorsBySources.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +36 -11
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +36 -11
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposeBox.d.ts +2 -1
- package/dist/web/page/mails/mini-compose/MiniComposeBox.d.ts.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposeBox.js +10 -5
- package/dist/web/page/mails/mini-compose/MiniComposeBox.js.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposePage.d.ts +1 -0
- package/dist/web/page/mails/mini-compose/MiniComposePage.d.ts.map +1 -1
- package/dist/web/page/mails/mini-compose/MiniComposePage.js +22 -2
- package/dist/web/page/mails/mini-compose/MiniComposePage.js.map +1 -1
- package/package.json +1 -1
- package/src/common/pages/websites/detail/reports/DailyVisitors.tsx +1 -0
- package/src/common/pages/websites/detail/reports/DailyVisitorsByCountry.tsx +1 -0
- package/src/common/pages/websites/detail/reports/DailyVisitorsByDevices.tsx +1 -0
- package/src/common/pages/websites/detail/reports/DailyVisitorsBySources.tsx +1 -0
- package/src/web/page/mails/mini-compose/MiniComposeBox.tsx +12 -5
- package/src/web/page/mails/mini-compose/MiniComposePage.tsx +12 -0
|
@@ -31334,6 +31334,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
31334
31334
|
}
|
|
31335
31335
|
};
|
|
31336
31336
|
_export("default", MiniComposeBox = class MiniComposeBox extends AtomControl {
|
|
31337
|
+
get isEmpty() {
|
|
31338
|
+
var _a, _b;
|
|
31339
|
+
const {
|
|
31340
|
+
text
|
|
31341
|
+
} = this.editor.htmlTextContent;
|
|
31342
|
+
const isEmpty = !(text === null || text === void 0 ? void 0 : text.trim()) && !((_b = (_a = this.draft) === null || _a === void 0 ? void 0 : _a.attachments) === null || _b === void 0 ? void 0 : _b.length);
|
|
31343
|
+
return isEmpty;
|
|
31344
|
+
}
|
|
31337
31345
|
constructor(app, e) {
|
|
31338
31346
|
super(app, e);
|
|
31339
31347
|
this.mailboxContacts = [];
|
|
@@ -31630,17 +31638,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
31630
31638
|
}
|
|
31631
31639
|
sendEmail() {
|
|
31632
31640
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31633
|
-
var _a, _b;
|
|
31634
31641
|
const {
|
|
31635
31642
|
html,
|
|
31636
31643
|
text
|
|
31637
31644
|
} = this.editor.htmlTextContent;
|
|
31638
31645
|
this.draft.htmlBody = html;
|
|
31639
31646
|
this.draft.textBody = text;
|
|
31640
|
-
if (
|
|
31641
|
-
|
|
31642
|
-
throw new Error("Cannot send empty email");
|
|
31643
|
-
}
|
|
31647
|
+
if (this.isEmpty) {
|
|
31648
|
+
throw new Error("Cannot send empty email");
|
|
31644
31649
|
}
|
|
31645
31650
|
yield this.save();
|
|
31646
31651
|
const {
|
|
@@ -34252,10 +34257,10 @@ System.register(["@web-atoms/core/dist/core/XNode"], function (_export, _context
|
|
|
34252
34257
|
|
|
34253
34258
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/mini-compose/MiniComposePage");
|
|
34254
34259
|
|
|
34255
|
-
System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../../model/model", "@web-atoms/email-dom/dist/DomToString", "@web-atoms/core/dist/core/XNode", "../../../../common/controls/email-recipients/EmailLabel", "./MiniComposeBox", "@web-atoms/core/dist/core/Bind", "../../../../common/controls/buttons/IconButton", "@web-atoms/core/dist/view-model/Action", "../../../../services/EntityService", "@web-atoms/core/dist/core/InjectProperty"], function (_export, _context) {
|
|
34260
|
+
System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../../model/model", "@web-atoms/email-dom/dist/DomToString", "@web-atoms/core/dist/core/XNode", "../../../../common/controls/email-recipients/EmailLabel", "./MiniComposeBox", "@web-atoms/core/dist/core/Bind", "../../../../common/controls/buttons/IconButton", "@web-atoms/core/dist/view-model/Action", "../../../../services/EntityService", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/web/services/PopupWindow"], function (_export, _context) {
|
|
34256
34261
|
"use strict";
|
|
34257
34262
|
|
|
34258
|
-
var __awaiter, __decorate, __metadata, PopupWindowPage, AppFile, Email, EmailRecipient, DomToString, XNode, EmailLabel, MiniComposeBox, defaultMessageBodyStyle, Bind, EmailIconTextButton, SaveIconTextButton, Action, EntityService, InjectProperty, MiniComposePage;
|
|
34263
|
+
var __awaiter, __decorate, __metadata, PopupWindowPage, AppFile, Email, EmailRecipient, DomToString, XNode, EmailLabel, MiniComposeBox, defaultMessageBodyStyle, Bind, EmailIconTextButton, SaveIconTextButton, Action, EntityService, InjectProperty, ConfirmPopup, MiniComposePage;
|
|
34259
34264
|
_export("default", void 0);
|
|
34260
34265
|
return {
|
|
34261
34266
|
setters: [function (_tslib) {
|
|
@@ -34288,6 +34293,8 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
34288
34293
|
EntityService = _servicesEntityService.default;
|
|
34289
34294
|
}, function (_webAtomsCoreDistCoreInjectProperty) {
|
|
34290
34295
|
InjectProperty = _webAtomsCoreDistCoreInjectProperty.default;
|
|
34296
|
+
}, function (_webAtomsCoreDistWebServicesPopupWindow) {
|
|
34297
|
+
ConfirmPopup = _webAtomsCoreDistWebServicesPopupWindow.ConfirmPopup;
|
|
34291
34298
|
}],
|
|
34292
34299
|
execute: function () {
|
|
34293
34300
|
_export("default", MiniComposePage = class MiniComposePage extends PopupWindowPage {
|
|
@@ -34349,6 +34356,24 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
34349
34356
|
})));
|
|
34350
34357
|
});
|
|
34351
34358
|
}
|
|
34359
|
+
requestCancel() {
|
|
34360
|
+
const _super = Object.create(null, {
|
|
34361
|
+
requestCancel: {
|
|
34362
|
+
get: () => super.requestCancel
|
|
34363
|
+
}
|
|
34364
|
+
});
|
|
34365
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34366
|
+
if (!this.composer.isEmpty) {
|
|
34367
|
+
const result = yield ConfirmPopup.confirm({
|
|
34368
|
+
message: "Are you sure you want to cancel the compose?"
|
|
34369
|
+
});
|
|
34370
|
+
if (!result) {
|
|
34371
|
+
return;
|
|
34372
|
+
}
|
|
34373
|
+
}
|
|
34374
|
+
return _super.requestCancel.call(this);
|
|
34375
|
+
});
|
|
34376
|
+
}
|
|
34352
34377
|
sendEmail() {
|
|
34353
34378
|
return __awaiter(this, arguments, void 0, function* (send = false) {
|
|
34354
34379
|
if (send) {
|
|
@@ -41679,7 +41704,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "../../../
|
|
|
41679
41704
|
siteID,
|
|
41680
41705
|
start,
|
|
41681
41706
|
end
|
|
41682
|
-
}, p => x => x.siteID === p.siteID && x.date >= p.start && x.date <= p.end && x.duration === "daily" && x.category === "").toArray();
|
|
41707
|
+
}, p => x => x.siteID === p.siteID && x.date >= p.start && x.date <= p.end && x.duration === "daily" && x.category === "").orderBy(x => x.date).toArray();
|
|
41683
41708
|
this.renderChart({
|
|
41684
41709
|
title: "Daily",
|
|
41685
41710
|
type: "line",
|
|
@@ -41807,7 +41832,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "../../../
|
|
|
41807
41832
|
siteID,
|
|
41808
41833
|
start,
|
|
41809
41834
|
end
|
|
41810
|
-
}, p => x => x.siteID === p.siteID && x.date >= p.start && x.date <= p.end && x.duration === "daily" && Sql.text.like(x.category, "/country/%")).toArray();
|
|
41835
|
+
}, p => x => x.siteID === p.siteID && x.date >= p.start && x.date <= p.end && x.duration === "daily" && Sql.text.like(x.category, "/country/%")).orderBy(x => x.date).toArray();
|
|
41811
41836
|
const data = new ChartDataBuilder(daily, x => ({
|
|
41812
41837
|
x: x.date.day,
|
|
41813
41838
|
group: x.category.split("/").pop(),
|
|
@@ -41870,7 +41895,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "../../../
|
|
|
41870
41895
|
siteID,
|
|
41871
41896
|
start,
|
|
41872
41897
|
end
|
|
41873
|
-
}, p => x => x.siteID === p.siteID && x.date >= p.start && x.date <= p.end && x.duration === "daily" && Sql.text.like(x.category, "/devices/%") && Sql.text.indexOf(Sql.text.right(x.category, Sql.text.length(x.category) - 9), "/") === -1).toArray();
|
|
41898
|
+
}, p => x => x.siteID === p.siteID && x.date >= p.start && x.date <= p.end && x.duration === "daily" && Sql.text.like(x.category, "/devices/%") && Sql.text.indexOf(Sql.text.right(x.category, Sql.text.length(x.category) - 9), "/") === -1).orderBy(x => x.date).toArray();
|
|
41874
41899
|
const data = new ChartDataBuilder(daily, x => ({
|
|
41875
41900
|
x: x.date.day,
|
|
41876
41901
|
group: x.category.split("/").pop(),
|
|
@@ -41947,7 +41972,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "../../../
|
|
|
41947
41972
|
siteID,
|
|
41948
41973
|
start,
|
|
41949
41974
|
end
|
|
41950
|
-
}, p => x => x.siteID === p.siteID && x.date >= p.start && x.date <= p.end && x.duration === "daily" && Sql.text.like(x.category, "/source/%")).toArray();
|
|
41975
|
+
}, p => x => x.siteID === p.siteID && x.date >= p.start && x.date <= p.end && x.duration === "daily" && Sql.text.like(x.category, "/source/%")).orderBy(x => x.date).toArray();
|
|
41951
41976
|
const data = new ChartDataBuilder(daily, x => ({
|
|
41952
41977
|
x: x.date.day,
|
|
41953
41978
|
group: getHost(x.category),
|