@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
|
@@ -8949,7 +8949,7 @@ System.register(["tslib", "../../core/AtomBinder", "../../core/AtomComponent", "
|
|
|
8949
8949
|
System.register([], function (_export, _context) {
|
|
8950
8950
|
"use strict";
|
|
8951
8951
|
|
|
8952
|
-
var StyleFragment, id, nextId, globalLow, global, globalHigh, localLow, local, localHigh, styles, styled, svgAsCssDataUrl;
|
|
8952
|
+
var StyleFragment, id, nextId, first, addMarker, globalLow, global, globalHigh, localLow, local, localHigh, styles, styled, svgAsCssDataUrl;
|
|
8953
8953
|
function* divide(text) {
|
|
8954
8954
|
const regex = /^(([^\{\n]+\{[\t\x20]*)|([^\n\}]*\}[^\S\n\r]*))$/gm;
|
|
8955
8955
|
let m;
|
|
@@ -8988,24 +8988,24 @@ System.register([], function (_export, _context) {
|
|
|
8988
8988
|
;
|
|
8989
8989
|
id = 1;
|
|
8990
8990
|
nextId = () => `styled-r${id++}`;
|
|
8991
|
-
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
|
|
9006
|
-
|
|
9007
|
-
|
|
9008
|
-
|
|
8991
|
+
first = document.head.firstElementChild;
|
|
8992
|
+
addMarker = name => {
|
|
8993
|
+
const m = document.createElement("meta");
|
|
8994
|
+
m.name = name;
|
|
8995
|
+
if (first) {
|
|
8996
|
+
first.insertAdjacentElement("afterend", m);
|
|
8997
|
+
} else {
|
|
8998
|
+
document.head.insertAdjacentElement("afterbegin", m);
|
|
8999
|
+
}
|
|
9000
|
+
first = m;
|
|
9001
|
+
return m;
|
|
9002
|
+
};
|
|
9003
|
+
globalLow = addMarker("global-low-style");
|
|
9004
|
+
global = addMarker("global-style");
|
|
9005
|
+
globalHigh = addMarker("global-high-style");
|
|
9006
|
+
localLow = addMarker("local-low-style");
|
|
9007
|
+
local = addMarker("local-style");
|
|
9008
|
+
localHigh = addMarker("local-high-style");
|
|
9009
9009
|
StyleFragment = class StyleFragment {
|
|
9010
9010
|
static newStyle({
|
|
9011
9011
|
selector = "",
|
|
@@ -38550,7 +38550,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
38550
38550
|
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) {
|
|
38551
38551
|
"use strict";
|
|
38552
38552
|
|
|
38553
|
-
var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, Email, Mailbox, MailboxContact, Sql, EmailContentDownloader, EngagementService, apiPath, ChannelService;
|
|
38553
|
+
var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, Email, Mailbox, MailboxContact, MailboxEmail, Sql, EmailContentDownloader, EngagementService, apiPath, ChannelService;
|
|
38554
38554
|
return {
|
|
38555
38555
|
setters: [function (_tslib) {
|
|
38556
38556
|
__awaiter = _tslib.__awaiter;
|
|
@@ -38566,6 +38566,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
38566
38566
|
Email = _modelModel.Email;
|
|
38567
38567
|
Mailbox = _modelModel.Mailbox;
|
|
38568
38568
|
MailboxContact = _modelModel.MailboxContact;
|
|
38569
|
+
MailboxEmail = _modelModel.MailboxEmail;
|
|
38569
38570
|
}, function (_commonSql) {
|
|
38570
38571
|
Sql = _commonSql.Sql;
|
|
38571
38572
|
}, function (_servicesEmailEmailContentDownloader) {
|
|
@@ -38587,16 +38588,16 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
38587
38588
|
cancelToken
|
|
38588
38589
|
}) {
|
|
38589
38590
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38590
|
-
let q = this.entityService.query(
|
|
38591
|
+
let q = this.entityService.query(MailboxEmail);
|
|
38591
38592
|
if (channelID) {
|
|
38592
38593
|
q = q.where({
|
|
38593
38594
|
channelID
|
|
38594
|
-
}, p => x => x.
|
|
38595
|
+
}, p => x => x.mailboxID === p.channelID);
|
|
38595
38596
|
}
|
|
38596
38597
|
if (published) {
|
|
38597
|
-
q = q.where(x => x.
|
|
38598
|
+
q = q.where(x => x.datePublished !== null);
|
|
38598
38599
|
} else {
|
|
38599
|
-
q = q.where(x => x.status
|
|
38600
|
+
q = q.where(x => x.email.status === null);
|
|
38600
38601
|
}
|
|
38601
38602
|
if (search) {
|
|
38602
38603
|
if (!/\%/.test(search)) {
|
|
@@ -38604,20 +38605,23 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
38604
38605
|
}
|
|
38605
38606
|
q = q.where({
|
|
38606
38607
|
search
|
|
38607
|
-
}, p => x => Sql.text.like(x.subject, p.search));
|
|
38608
|
+
}, p => x => Sql.text.like(x.email.subject, p.search));
|
|
38608
38609
|
}
|
|
38609
|
-
const result = yield q.orderByDescending(x => x.emailID).toPagedList({
|
|
38610
|
+
const result = yield q.orderByDescending(x => x.emailID).include(x => [x.email, x.email.attachments]).toPagedList({
|
|
38610
38611
|
start,
|
|
38611
38612
|
size,
|
|
38612
38613
|
cancelToken
|
|
38613
38614
|
});
|
|
38614
38615
|
const tasks = [];
|
|
38615
38616
|
for (const iterator of result.items) {
|
|
38616
|
-
tasks.push(this.emailContentDownloader.downloadFromUrl(apiPath(`/api/emails/channel/content/html/${channelID}/${iterator.emailID}/${iterator.headerMessageID}`), iterator));
|
|
38617
|
-
tasks.push(this.engagementService.downloadEngagements(iterator));
|
|
38617
|
+
tasks.push(this.emailContentDownloader.downloadFromUrl(apiPath(`/api/emails/channel/content/html/${channelID}/${iterator.emailID}/${iterator.email.headerMessageID}`), iterator.email));
|
|
38618
|
+
tasks.push(this.engagementService.downloadEngagements(iterator.email));
|
|
38618
38619
|
}
|
|
38619
38620
|
yield Promise.all(tasks);
|
|
38620
|
-
return
|
|
38621
|
+
return {
|
|
38622
|
+
items: result.items.map(x => x.email),
|
|
38623
|
+
total: result.total
|
|
38624
|
+
};
|
|
38621
38625
|
});
|
|
38622
38626
|
}
|
|
38623
38627
|
getMailbox(id) {
|