@social-mail/social-mail-client 1.8.299 → 1.8.300
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 +32 -7
- 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/site-editor-app/SiteEditorApp.pack.js +32 -7
- 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 +32 -7
- 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/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) {
|