@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
|
@@ -35223,6 +35223,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
35223
35223
|
}
|
|
35224
35224
|
};
|
|
35225
35225
|
_export("default", MiniComposeBox = class MiniComposeBox extends AtomControl {
|
|
35226
|
+
get isEmpty() {
|
|
35227
|
+
var _a, _b;
|
|
35228
|
+
const {
|
|
35229
|
+
text
|
|
35230
|
+
} = this.editor.htmlTextContent;
|
|
35231
|
+
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);
|
|
35232
|
+
return isEmpty;
|
|
35233
|
+
}
|
|
35226
35234
|
constructor(app, e) {
|
|
35227
35235
|
super(app, e);
|
|
35228
35236
|
this.mailboxContacts = [];
|
|
@@ -35519,17 +35527,14 @@ System.register(["tslib", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/di
|
|
|
35519
35527
|
}
|
|
35520
35528
|
sendEmail() {
|
|
35521
35529
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35522
|
-
var _a, _b;
|
|
35523
35530
|
const {
|
|
35524
35531
|
html,
|
|
35525
35532
|
text
|
|
35526
35533
|
} = this.editor.htmlTextContent;
|
|
35527
35534
|
this.draft.htmlBody = html;
|
|
35528
35535
|
this.draft.textBody = text;
|
|
35529
|
-
if (
|
|
35530
|
-
|
|
35531
|
-
throw new Error("Cannot send empty email");
|
|
35532
|
-
}
|
|
35536
|
+
if (this.isEmpty) {
|
|
35537
|
+
throw new Error("Cannot send empty email");
|
|
35533
35538
|
}
|
|
35534
35539
|
yield this.save();
|
|
35535
35540
|
const {
|
|
@@ -38141,10 +38146,10 @@ System.register(["@web-atoms/core/dist/core/XNode"], function (_export, _context
|
|
|
38141
38146
|
|
|
38142
38147
|
AmdLoader.instance.setup("@social-mail/social-mail-client/dist/web/page/mails/mini-compose/MiniComposePage");
|
|
38143
38148
|
|
|
38144
|
-
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) {
|
|
38149
|
+
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) {
|
|
38145
38150
|
"use strict";
|
|
38146
38151
|
|
|
38147
|
-
var __awaiter, __decorate, __metadata, PopupWindowPage, AppFile, Email, EmailRecipient, DomToString, XNode, EmailLabel, MiniComposeBox, defaultMessageBodyStyle, Bind, EmailIconTextButton, SaveIconTextButton, Action, EntityService, InjectProperty, MiniComposePage;
|
|
38152
|
+
var __awaiter, __decorate, __metadata, PopupWindowPage, AppFile, Email, EmailRecipient, DomToString, XNode, EmailLabel, MiniComposeBox, defaultMessageBodyStyle, Bind, EmailIconTextButton, SaveIconTextButton, Action, EntityService, InjectProperty, ConfirmPopup, MiniComposePage;
|
|
38148
38153
|
_export("default", void 0);
|
|
38149
38154
|
return {
|
|
38150
38155
|
setters: [function (_tslib) {
|
|
@@ -38177,6 +38182,8 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
38177
38182
|
EntityService = _servicesEntityService.default;
|
|
38178
38183
|
}, function (_webAtomsCoreDistCoreInjectProperty) {
|
|
38179
38184
|
InjectProperty = _webAtomsCoreDistCoreInjectProperty.default;
|
|
38185
|
+
}, function (_webAtomsCoreDistWebServicesPopupWindow) {
|
|
38186
|
+
ConfirmPopup = _webAtomsCoreDistWebServicesPopupWindow.ConfirmPopup;
|
|
38180
38187
|
}],
|
|
38181
38188
|
execute: function () {
|
|
38182
38189
|
_export("default", MiniComposePage = class MiniComposePage extends PopupWindowPage {
|
|
@@ -38238,6 +38245,24 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
38238
38245
|
})));
|
|
38239
38246
|
});
|
|
38240
38247
|
}
|
|
38248
|
+
requestCancel() {
|
|
38249
|
+
const _super = Object.create(null, {
|
|
38250
|
+
requestCancel: {
|
|
38251
|
+
get: () => super.requestCancel
|
|
38252
|
+
}
|
|
38253
|
+
});
|
|
38254
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38255
|
+
if (!this.composer.isEmpty) {
|
|
38256
|
+
const result = yield ConfirmPopup.confirm({
|
|
38257
|
+
message: "Are you sure you want to cancel the compose?"
|
|
38258
|
+
});
|
|
38259
|
+
if (!result) {
|
|
38260
|
+
return;
|
|
38261
|
+
}
|
|
38262
|
+
}
|
|
38263
|
+
return _super.requestCancel.call(this);
|
|
38264
|
+
});
|
|
38265
|
+
}
|
|
38241
38266
|
sendEmail() {
|
|
38242
38267
|
return __awaiter(this, arguments, void 0, function* (send = false) {
|
|
38243
38268
|
if (send) {
|