@social-mail/social-mail-client 1.2.539 → 1.2.541
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 +33 -29
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +2 -2
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.js +19 -19
- package/dist/public/channel/ChannelView.pack.js.map +1 -1
- package/dist/public/channel/ChannelView.pack.min.js +1 -1
- package/dist/public/channel/ChannelView.pack.min.js.map +1 -1
- package/dist/public/contact-us/ContactUsApp.pack.js +19 -19
- package/dist/public/contact-us/ContactUsApp.pack.js.map +1 -1
- package/dist/public/contact-us/ContactUsApp.pack.min.js +1 -1
- package/dist/public/contact-us/ContactUsApp.pack.min.js.map +1 -1
- package/dist/public/preview/pdf/PreviewPDF.pack.js +19 -19
- package/dist/public/preview/pdf/PreviewPDF.pack.js.map +1 -1
- package/dist/public/preview/pdf/PreviewPDF.pack.min.js +1 -1
- package/dist/public/preview/pdf/PreviewPDF.pack.min.js.map +1 -1
- package/dist/public/store/Store.pack.js +19 -19
- package/dist/public/store/Store.pack.js.map +1 -1
- package/dist/public/store/Store.pack.min.js +1 -1
- package/dist/public/store/Store.pack.min.js.map +1 -1
- package/dist/public/store/StoreApp.pack.js +19 -19
- package/dist/public/store/StoreApp.pack.js.map +1 -1
- package/dist/public/store/StoreApp.pack.min.js +1 -1
- package/dist/public/store/StoreApp.pack.min.js.map +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.js +19 -19
- package/dist/public/store/cart/ShoppingCart.pack.js.map +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.min.js +1 -1
- package/dist/public/store/cart/ShoppingCart.pack.min.js.map +1 -1
- package/dist/site-editor/SiteEditorApp.pack.js +19 -19
- package/dist/site-editor/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +33 -29
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +2 -2
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/channels/services/ChannelService.d.ts +4 -1
- package/dist/web/page/channels/services/ChannelService.d.ts.map +1 -1
- package/dist/web/page/channels/services/ChannelService.js +14 -10
- package/dist/web/page/channels/services/ChannelService.js.map +1 -1
- package/node_modules/@web-atoms/core/dist/style/styled.d.ts.map +1 -1
- package/node_modules/@web-atoms/core/dist/style/styled.js +19 -19
- package/node_modules/@web-atoms/core/dist/style/styled.js.map +1 -1
- package/node_modules/@web-atoms/core/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@web-atoms/core/package.json +1 -1
- package/node_modules/@web-atoms/core/src/style/styled.ts +19 -21
- package/package.json +2 -2
- package/src/web/page/channels/services/ChannelService.ts +11 -10
|
@@ -8923,7 +8923,7 @@ System.register(["tslib", "../../core/AtomBinder", "../../core/AtomComponent", "
|
|
|
8923
8923
|
System.register([], function (_export, _context) {
|
|
8924
8924
|
"use strict";
|
|
8925
8925
|
|
|
8926
|
-
var StyleFragment, id, nextId, globalLow, global, globalHigh, localLow, local, localHigh, styles, styled, svgAsCssDataUrl;
|
|
8926
|
+
var StyleFragment, id, nextId, first, addMarker, globalLow, global, globalHigh, localLow, local, localHigh, styles, styled, svgAsCssDataUrl;
|
|
8927
8927
|
function* divide(text) {
|
|
8928
8928
|
const regex = /^(([^\{\n]+\{[\t\x20]*)|([^\n\}]*\}[^\S\n\r]*))$/gm;
|
|
8929
8929
|
let m;
|
|
@@ -8962,24 +8962,24 @@ System.register([], function (_export, _context) {
|
|
|
8962
8962
|
;
|
|
8963
8963
|
id = 1;
|
|
8964
8964
|
nextId = () => `styled-r${id++}`;
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8965
|
+
first = document.head.firstElementChild;
|
|
8966
|
+
addMarker = name => {
|
|
8967
|
+
const m = document.createElement("meta");
|
|
8968
|
+
m.name = name;
|
|
8969
|
+
if (first) {
|
|
8970
|
+
first.insertAdjacentElement("afterend", m);
|
|
8971
|
+
} else {
|
|
8972
|
+
document.head.insertAdjacentElement("afterbegin", m);
|
|
8973
|
+
}
|
|
8974
|
+
first = m;
|
|
8975
|
+
return m;
|
|
8976
|
+
};
|
|
8977
|
+
globalLow = addMarker("global-low-style");
|
|
8978
|
+
global = addMarker("global-style");
|
|
8979
|
+
globalHigh = addMarker("global-high-style");
|
|
8980
|
+
localLow = addMarker("local-low-style");
|
|
8981
|
+
local = addMarker("local-style");
|
|
8982
|
+
localHigh = addMarker("local-high-style");
|
|
8983
8983
|
StyleFragment = class StyleFragment {
|
|
8984
8984
|
static newStyle({
|
|
8985
8985
|
selector = "",
|
|
@@ -45388,7 +45388,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
45388
45388
|
System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../../common/Sql", "../../../../services/email/EmailContentDownloader", "../../mails/service/EngagementService", "../../../../common/apiPath"], function (_export, _context) {
|
|
45389
45389
|
"use strict";
|
|
45390
45390
|
|
|
45391
|
-
var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, Email, Mailbox, MailboxContact, Sql, EmailContentDownloader, EngagementService, apiPath, ChannelService;
|
|
45391
|
+
var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, Email, Mailbox, MailboxContact, MailboxEmail, Sql, EmailContentDownloader, EngagementService, apiPath, ChannelService;
|
|
45392
45392
|
return {
|
|
45393
45393
|
setters: [function (_tslib) {
|
|
45394
45394
|
__awaiter = _tslib.__awaiter;
|
|
@@ -45404,6 +45404,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
45404
45404
|
Email = _modelModel.Email;
|
|
45405
45405
|
Mailbox = _modelModel.Mailbox;
|
|
45406
45406
|
MailboxContact = _modelModel.MailboxContact;
|
|
45407
|
+
MailboxEmail = _modelModel.MailboxEmail;
|
|
45407
45408
|
}, function (_commonSql) {
|
|
45408
45409
|
Sql = _commonSql.Sql;
|
|
45409
45410
|
}, function (_servicesEmailEmailContentDownloader) {
|
|
@@ -45425,16 +45426,16 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
45425
45426
|
cancelToken
|
|
45426
45427
|
}) {
|
|
45427
45428
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45428
|
-
let q = this.entityService.query(
|
|
45429
|
+
let q = this.entityService.query(MailboxEmail);
|
|
45429
45430
|
if (channelID) {
|
|
45430
45431
|
q = q.where({
|
|
45431
45432
|
channelID
|
|
45432
|
-
}, p => x => x.
|
|
45433
|
+
}, p => x => x.mailboxID === p.channelID);
|
|
45433
45434
|
}
|
|
45434
45435
|
if (published) {
|
|
45435
|
-
q = q.where(x => x.
|
|
45436
|
+
q = q.where(x => x.datePublished !== null);
|
|
45436
45437
|
} else {
|
|
45437
|
-
q = q.where(x => x.status
|
|
45438
|
+
q = q.where(x => x.email.status === null);
|
|
45438
45439
|
}
|
|
45439
45440
|
if (search) {
|
|
45440
45441
|
if (!/\%/.test(search)) {
|
|
@@ -45442,20 +45443,23 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
45442
45443
|
}
|
|
45443
45444
|
q = q.where({
|
|
45444
45445
|
search
|
|
45445
|
-
}, p => x => Sql.text.like(x.subject, p.search));
|
|
45446
|
+
}, p => x => Sql.text.like(x.email.subject, p.search));
|
|
45446
45447
|
}
|
|
45447
|
-
const result = yield q.orderByDescending(x => x.emailID).toPagedList({
|
|
45448
|
+
const result = yield q.orderByDescending(x => x.emailID).include(x => [x.email, x.email.attachments]).toPagedList({
|
|
45448
45449
|
start,
|
|
45449
45450
|
size,
|
|
45450
45451
|
cancelToken
|
|
45451
45452
|
});
|
|
45452
45453
|
const tasks = [];
|
|
45453
45454
|
for (const iterator of result.items) {
|
|
45454
|
-
tasks.push(this.emailContentDownloader.downloadFromUrl(apiPath(`/api/emails/channel/content/html/${channelID}/${iterator.emailID}/${iterator.headerMessageID}`), iterator));
|
|
45455
|
-
tasks.push(this.engagementService.downloadEngagements(iterator));
|
|
45455
|
+
tasks.push(this.emailContentDownloader.downloadFromUrl(apiPath(`/api/emails/channel/content/html/${channelID}/${iterator.emailID}/${iterator.email.headerMessageID}`), iterator.email));
|
|
45456
|
+
tasks.push(this.engagementService.downloadEngagements(iterator.email));
|
|
45456
45457
|
}
|
|
45457
45458
|
yield Promise.all(tasks);
|
|
45458
|
-
return
|
|
45459
|
+
return {
|
|
45460
|
+
items: result.items.map(x => x.email),
|
|
45461
|
+
total: result.total
|
|
45462
|
+
};
|
|
45459
45463
|
});
|
|
45460
45464
|
}
|
|
45461
45465
|
getMailbox(id) {
|