@social-mail/social-mail-client 1.1.39 → 1.2.1
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 +43 -45
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +3 -3
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/events/CommonEvents.d.ts +3 -3
- package/dist/common/events/CommonEvents.d.ts.map +1 -1
- package/dist/common/events/CommonEvents.js.map +1 -1
- package/dist/model/model.d.ts +22 -30
- package/dist/model/model.d.ts.map +1 -1
- package/dist/model/model.js +25 -27
- package/dist/model/model.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +43 -45
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +4 -4
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/dist/web/page/channels/services/ChannelService.d.ts +4 -4
- package/dist/web/page/channels/services/ChannelService.d.ts.map +1 -1
- package/dist/web/page/channels/services/ChannelService.js +5 -5
- package/dist/web/page/channels/services/ChannelService.js.map +1 -1
- package/dist/web/page/channels/subscribers/ChannelSubscribersPage.d.ts.map +1 -1
- package/dist/web/page/channels/subscribers/ChannelSubscribersPage.js +1 -1
- package/dist/web/page/channels/subscribers/ChannelSubscribersPage.js.map +1 -1
- package/dist/web/page/channels/subscribers/add/AddSubscriberPage.d.ts.map +1 -1
- package/dist/web/page/channels/subscribers/add/AddSubscriberPage.js +5 -5
- package/dist/web/page/channels/subscribers/add/AddSubscriberPage.js.map +1 -1
- package/dist/web/page/mails/ConversationPage.d.ts +5 -5
- package/dist/web/page/mails/ConversationPage.d.ts.map +1 -1
- package/dist/web/page/mails/ConversationPage.js.map +1 -1
- package/dist/web/page/mails/MailboxContacts.d.ts +2 -2
- package/dist/web/page/mails/MailboxContacts.d.ts.map +1 -1
- package/dist/web/page/mails/MailboxContacts.js.map +1 -1
- package/dist/web/page/mails/service/ConversationService.d.ts +3 -3
- package/dist/web/page/mails/service/ConversationService.d.ts.map +1 -1
- package/dist/web/page/mails/service/ConversationService.js +4 -4
- package/dist/web/page/mails/service/ConversationService.js.map +1 -1
- package/dist/web/page/mails/service/MailService.d.ts +1 -1
- package/dist/web/page/mails/service/MailService.d.ts.map +1 -1
- package/dist/web/page/mails/service/MailService.js +3 -3
- package/dist/web/page/mails/service/MailService.js.map +1 -1
- package/package.json +1 -1
- package/src/common/events/CommonEvents.ts +3 -3
- package/src/model/model.ts +21 -32
- package/src/web/page/channels/services/ChannelService.ts +7 -7
- package/src/web/page/channels/subscribers/ChannelSubscribersPage.tsx +5 -5
- package/src/web/page/channels/subscribers/add/AddSubscriberPage.tsx +4 -4
- package/src/web/page/mails/ConversationPage.tsx +8 -8
- package/src/web/page/mails/MailboxContacts.tsx +7 -7
- package/src/web/page/mails/service/ConversationService.tsx +5 -5
- package/src/web/page/mails/service/MailService.ts +2 -2
|
@@ -13240,7 +13240,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
|
|
|
13240
13240
|
System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/services/BaseEntityService"], function (_export, _context) {
|
|
13241
13241
|
"use strict";
|
|
13242
13242
|
|
|
13243
|
-
var DateTime, Model, DefaultFactory, AppRole, AppFileContentDispositionArray, AppFile, AppFileVersion, AppFileAccessTypeArray, AppFileAccess, AppFileTag, FileContent, Configuration, Contact, ContactEmail, ContactPhone, ContactItem, ContactDomain, CachedItem, Domain, HostedDomain, DomainUser, DomainRelayTypeArray, DomainRelay, DomainKey, EmailStatusArray, Email, EmailEngagement, AppLog, EmailRecipientTypeArray, EmailRecipient, EmailTag, EmailAddress, EmailTemplate, Mailbox, MailboxEmail,
|
|
13243
|
+
var DateTime, Model, DefaultFactory, AppRole, AppFileContentDispositionArray, AppFile, AppFileVersion, AppFileAccessTypeArray, AppFileAccess, AppFileTag, FileContent, Configuration, Contact, ContactEmail, ContactPhone, ContactItem, ContactDomain, CachedItem, Domain, HostedDomain, DomainUser, DomainRelayTypeArray, DomainRelay, DomainKey, EmailStatusArray, Email, EmailEngagement, AppLog, EmailRecipientTypeArray, EmailRecipient, EmailTag, EmailAddress, EmailTemplate, Mailbox, MailboxEmail, MailboxContactStatusArray, MailboxContact, MailboxContactEmail, MailboxSyncTargetDirectionArray, MailboxSyncTargetProtocolArray, MailboxSyncTargetLastSyncStatusArray, MailboxSyncTarget, SubscriberActivity, SearchWordStatusArray, SearchWord, SearchWordIndex, UserStatusArray, User, UserPin, UserRole, UserMailbox, UserAuthFactorMethodArray, UserAuthFactor, WebSiteFolder, WebSiteFolderHost, WebSiteFolderVersion, LoginSession, TextDocument, Tag;
|
|
13244
13244
|
return {
|
|
13245
13245
|
setters: [function (_webAtomsDateTimeDistDateTime) {
|
|
13246
13246
|
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
@@ -13387,6 +13387,7 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
13387
13387
|
status: "queued",
|
|
13388
13388
|
forwardCount: 0,
|
|
13389
13389
|
replyCount: 0,
|
|
13390
|
+
viewCount: 0,
|
|
13390
13391
|
originalFileSize: 0
|
|
13391
13392
|
}));
|
|
13392
13393
|
_export("EmailEngagement", EmailEngagement = new Model("EmailEngagement", ["emailID"], {
|
|
@@ -13438,14 +13439,34 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
13438
13439
|
subscriberCount: 0
|
|
13439
13440
|
}));
|
|
13440
13441
|
_export("MailboxEmail", MailboxEmail = new Model("MailboxEmail", ["mailboxID", "emailID"], {}));
|
|
13441
|
-
_export("
|
|
13442
|
+
_export("MailboxContactStatusArray", MailboxContactStatusArray = [{
|
|
13443
|
+
"label": "invited",
|
|
13444
|
+
"value": "invited"
|
|
13445
|
+
}, {
|
|
13446
|
+
"label": "added",
|
|
13447
|
+
"value": "added"
|
|
13448
|
+
}, {
|
|
13449
|
+
"label": "active",
|
|
13450
|
+
"value": "active"
|
|
13451
|
+
}, {
|
|
13452
|
+
"label": "unsubscribed",
|
|
13453
|
+
"value": "unsubscribed"
|
|
13454
|
+
}, {
|
|
13455
|
+
"label": "blocked",
|
|
13456
|
+
"value": "blocked"
|
|
13457
|
+
}]);
|
|
13458
|
+
_export("MailboxContact", MailboxContact = new Model("MailboxContact", ["mailboxID", "emailAddressID"], {
|
|
13459
|
+
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
13442
13460
|
dateUpdated: new DefaultFactory(() => new DateTime()),
|
|
13443
13461
|
unread: 0,
|
|
13444
13462
|
total: 0,
|
|
13463
|
+
isOwner: false,
|
|
13464
|
+
canContribute: false,
|
|
13445
13465
|
priority: 0,
|
|
13446
|
-
blocked: false
|
|
13466
|
+
blocked: false,
|
|
13467
|
+
status: "invited"
|
|
13447
13468
|
}));
|
|
13448
|
-
_export("
|
|
13469
|
+
_export("MailboxContactEmail", MailboxContactEmail = new Model("MailboxContactEmail", ["mailboxID", "emailAddressID", "emailID"], {
|
|
13449
13470
|
dateReceived: new DefaultFactory(() => new DateTime())
|
|
13450
13471
|
}));
|
|
13451
13472
|
_export("MailboxSyncTargetDirectionArray", MailboxSyncTargetDirectionArray = [{
|
|
@@ -13481,29 +13502,6 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
13481
13502
|
intervalSeconds: 0,
|
|
13482
13503
|
active: false
|
|
13483
13504
|
}));
|
|
13484
|
-
_export("MailboxSubscriberStatusArray", MailboxSubscriberStatusArray = [{
|
|
13485
|
-
"label": "invited",
|
|
13486
|
-
"value": "invited"
|
|
13487
|
-
}, {
|
|
13488
|
-
"label": "added",
|
|
13489
|
-
"value": "added"
|
|
13490
|
-
}, {
|
|
13491
|
-
"label": "active",
|
|
13492
|
-
"value": "active"
|
|
13493
|
-
}, {
|
|
13494
|
-
"label": "unsubscribed",
|
|
13495
|
-
"value": "unsubscribed"
|
|
13496
|
-
}, {
|
|
13497
|
-
"label": "blocked",
|
|
13498
|
-
"value": "blocked"
|
|
13499
|
-
}]);
|
|
13500
|
-
_export("MailboxSubscriber", MailboxSubscriber = new Model("MailboxSubscriber", ["mailboxID", "subscriberID"], {
|
|
13501
|
-
isOwner: false,
|
|
13502
|
-
canContribute: false,
|
|
13503
|
-
status: "invited",
|
|
13504
|
-
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
13505
|
-
dateUpdated: new DefaultFactory(() => new DateTime())
|
|
13506
|
-
}));
|
|
13507
13505
|
_export("SubscriberActivity", SubscriberActivity = new Model("SubscriberActivity", ["activityID"], {
|
|
13508
13506
|
activity: "",
|
|
13509
13507
|
dateCreated: new DefaultFactory(() => new DateTime())
|
|
@@ -21096,7 +21094,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
21096
21094
|
System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../../common/Sql"], function (_export, _context) {
|
|
21097
21095
|
"use strict";
|
|
21098
21096
|
|
|
21099
|
-
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, AppFile, Mailbox,
|
|
21097
|
+
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, AppFile, Mailbox, MailboxContact, Sql, MailService;
|
|
21100
21098
|
return {
|
|
21101
21099
|
setters: [function (_tslib) {
|
|
21102
21100
|
__awaiter = _tslib.__awaiter;
|
|
@@ -21111,7 +21109,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
21111
21109
|
}, function (_modelModel) {
|
|
21112
21110
|
AppFile = _modelModel.AppFile;
|
|
21113
21111
|
Mailbox = _modelModel.Mailbox;
|
|
21114
|
-
|
|
21112
|
+
MailboxContact = _modelModel.MailboxContact;
|
|
21115
21113
|
}, function (_commonSql) {
|
|
21116
21114
|
Sql = _commonSql.Sql;
|
|
21117
21115
|
}],
|
|
@@ -21134,7 +21132,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
21134
21132
|
cancelToken
|
|
21135
21133
|
}) {
|
|
21136
21134
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21137
|
-
let q = this.entityService.query(
|
|
21135
|
+
let q = this.entityService.query(MailboxContact).where({
|
|
21138
21136
|
mailboxID,
|
|
21139
21137
|
showBlocked
|
|
21140
21138
|
}, p => x => x.mailboxID === p.mailboxID && x.blocked === p.showBlocked).orderByDescending(x => x.dateUpdated);
|
|
@@ -21413,7 +21411,7 @@ System.register(["@web-atoms/core/dist/core/EventScope"], function (_export, _co
|
|
|
21413
21411
|
System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../../common/Sql", "@web-atoms/email-dom/dist/DomToString", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/controls/AtomControl", "@web-atoms/core/dist/web/core/AtomUI", "@web-atoms/date-time/dist/DateTime", "../../../../common/events/CommonEvents", "../../../../services/BusyProgress"], function (_export, _context) {
|
|
21414
21412
|
"use strict";
|
|
21415
21413
|
|
|
21416
|
-
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, Email,
|
|
21414
|
+
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, Email, MailboxContactEmail, Sql, DomToString, XNode, AtomControl, descendentElementIterator, DateTime, CommonEvents, BusyProgress, renderMail, downloadEmailContent, ConversationService;
|
|
21417
21415
|
return {
|
|
21418
21416
|
setters: [function (_tslib) {
|
|
21419
21417
|
__awaiter = _tslib.__awaiter;
|
|
@@ -21427,7 +21425,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
21427
21425
|
EntityService = _servicesEntityService.default;
|
|
21428
21426
|
}, function (_modelModel) {
|
|
21429
21427
|
Email = _modelModel.Email;
|
|
21430
|
-
|
|
21428
|
+
MailboxContactEmail = _modelModel.MailboxContactEmail;
|
|
21431
21429
|
}, function (_commonSql) {
|
|
21432
21430
|
Sql = _commonSql.Sql;
|
|
21433
21431
|
}, function (_webAtomsEmailDomDistDomToString) {
|
|
@@ -21490,7 +21488,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
21490
21488
|
thread.timeRead = timeRead;
|
|
21491
21489
|
const control = AtomControl.from(e);
|
|
21492
21490
|
const entityService = control.app.resolve(EntityService);
|
|
21493
|
-
entityService.save(
|
|
21491
|
+
entityService.save(MailboxContactEmail.patch(thread, {
|
|
21494
21492
|
timeRead
|
|
21495
21493
|
})).then(() => {
|
|
21496
21494
|
CommonEvents.onThreadMarkedAsRead.dispatchEvent(thread);
|
|
@@ -21539,7 +21537,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
21539
21537
|
}) {
|
|
21540
21538
|
var _a;
|
|
21541
21539
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21542
|
-
let q = this.entityService.query(
|
|
21540
|
+
let q = this.entityService.query(MailboxContactEmail).where({
|
|
21543
21541
|
mailboxID,
|
|
21544
21542
|
emailAddressID
|
|
21545
21543
|
}, p => x => x.mailboxID === p.mailboxID && x.emailAddressID === p.emailAddressID && x.engagement === null);
|
|
@@ -32410,7 +32408,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
32410
32408
|
System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../../common/Sql"], function (_export, _context) {
|
|
32411
32409
|
"use strict";
|
|
32412
32410
|
|
|
32413
|
-
var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, Mailbox,
|
|
32411
|
+
var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, Mailbox, MailboxContact, Sql, ChannelService;
|
|
32414
32412
|
return {
|
|
32415
32413
|
setters: [function (_tslib) {
|
|
32416
32414
|
__awaiter = _tslib.__awaiter;
|
|
@@ -32424,7 +32422,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
32424
32422
|
EntityService = _servicesEntityService.default;
|
|
32425
32423
|
}, function (_modelModel) {
|
|
32426
32424
|
Mailbox = _modelModel.Mailbox;
|
|
32427
|
-
|
|
32425
|
+
MailboxContact = _modelModel.MailboxContact;
|
|
32428
32426
|
}, function (_commonSql) {
|
|
32429
32427
|
Sql = _commonSql.Sql;
|
|
32430
32428
|
}],
|
|
@@ -32447,7 +32445,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
32447
32445
|
v
|
|
32448
32446
|
}) {
|
|
32449
32447
|
return __awaiter(this, void 0, void 0, function* () {
|
|
32450
|
-
let q = this.entityService.query(
|
|
32448
|
+
let q = this.entityService.query(MailboxContact).where({
|
|
32451
32449
|
id
|
|
32452
32450
|
}, p => x => x.mailboxID === p.id);
|
|
32453
32451
|
if (search) {
|
|
@@ -32456,9 +32454,9 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
32456
32454
|
}
|
|
32457
32455
|
q = q.where({
|
|
32458
32456
|
search
|
|
32459
|
-
}, p => x => Sql.text.iLike(x.
|
|
32457
|
+
}, p => x => Sql.text.iLike(x.emailAddress.name, p.search) || Sql.text.iLike(x.emailAddress.emailAddress, p.search));
|
|
32460
32458
|
}
|
|
32461
|
-
return q.include(x => x.
|
|
32459
|
+
return q.include(x => x.emailAddress).toPagedList({
|
|
32462
32460
|
start,
|
|
32463
32461
|
size,
|
|
32464
32462
|
cancelToken
|
|
@@ -32491,7 +32489,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
32491
32489
|
System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/Form", "@web-atoms/web-controls/dist/basic/FormField", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "../../../../../model/model", "../../../../../common/controls/buttons/IconButton", "@web-atoms/core/dist/view-model/Action", "../../services/ChannelService", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/web-controls/dist/basic/Checkbox"], function (_export, _context) {
|
|
32492
32490
|
"use strict";
|
|
32493
32491
|
|
|
32494
|
-
var __awaiter, __decorate, __metadata, Bind, XNode, Form, FormField, PopupWindowPage,
|
|
32492
|
+
var __awaiter, __decorate, __metadata, Bind, XNode, Form, FormField, PopupWindowPage, MailboxContact, SaveIconTextButton, Action, ChannelService, InjectProperty, Checkbox, AddSubscriberPage;
|
|
32495
32493
|
_export("default", void 0);
|
|
32496
32494
|
return {
|
|
32497
32495
|
setters: [function (_tslib) {
|
|
@@ -32509,7 +32507,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
32509
32507
|
}, function (_webAtomsWebControlsDistMobileAppMobileApp) {
|
|
32510
32508
|
PopupWindowPage = _webAtomsWebControlsDistMobileAppMobileApp.PopupWindowPage;
|
|
32511
32509
|
}, function (_modelModel) {
|
|
32512
|
-
|
|
32510
|
+
MailboxContact = _modelModel.MailboxContact;
|
|
32513
32511
|
}, function (_commonControlsButtonsIconButton) {
|
|
32514
32512
|
SaveIconTextButton = _commonControlsButtonsIconButton.SaveIconTextButton;
|
|
32515
32513
|
}, function (_webAtomsCoreDistViewModelAction) {
|
|
@@ -32525,7 +32523,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
32525
32523
|
_export("default", AddSubscriberPage = class AddSubscriberPage extends PopupWindowPage {
|
|
32526
32524
|
constructor() {
|
|
32527
32525
|
super(...arguments);
|
|
32528
|
-
this.model =
|
|
32526
|
+
this.model = MailboxContact.create({});
|
|
32529
32527
|
this.emailAddress = "";
|
|
32530
32528
|
}
|
|
32531
32529
|
init() {
|
|
@@ -32533,13 +32531,13 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
32533
32531
|
var _b;
|
|
32534
32532
|
return __awaiter(this, void 0, void 0, function* () {
|
|
32535
32533
|
this.title = "Add/Invite new subscriber";
|
|
32536
|
-
(_a = (_b = this.model).
|
|
32534
|
+
(_a = (_b = this.model).emailAddressText) !== null && _a !== void 0 ? _a : _b.emailAddressText = "";
|
|
32537
32535
|
this.model.mailboxID = this.parameters.id;
|
|
32538
32536
|
this.renderer = XNode.create("div", null, XNode.create(Form, null, XNode.create(FormField, {
|
|
32539
32537
|
label: "Email Address"
|
|
32540
32538
|
}, XNode.create("input", {
|
|
32541
32539
|
autofocus: true,
|
|
32542
|
-
value: Bind.twoWaysImmediate(() => this.model.
|
|
32540
|
+
value: Bind.twoWaysImmediate(() => this.model.emailAddressText)
|
|
32543
32541
|
})), XNode.create(FormField, {
|
|
32544
32542
|
label: "Name"
|
|
32545
32543
|
}, XNode.create("input", {
|
|
@@ -32747,7 +32745,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
32747
32745
|
itemRenderer: item => XNode.create("div", {
|
|
32748
32746
|
"data-layout": "row"
|
|
32749
32747
|
}, XNode.create(SelectorCheckBox, null), XNode.create("div", {
|
|
32750
|
-
text: item.
|
|
32748
|
+
text: item.emailAddress.emailAddress
|
|
32751
32749
|
}), XNode.create("div", {
|
|
32752
32750
|
text: item.status
|
|
32753
32751
|
}), XNode.create("div", {
|