@social-mail/social-mail-client 1.1.39 → 1.2.2
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 +62 -46
- 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 +62 -46
- 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 +1 -0
- package/dist/web/page/channels/subscribers/ChannelSubscribersPage.d.ts.map +1 -1
- package/dist/web/page/channels/subscribers/ChannelSubscribersPage.js +20 -2
- 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 +23 -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
|
@@ -15286,7 +15286,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/ent
|
|
|
15286
15286
|
System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/services/BaseEntityService"], function (_export, _context) {
|
|
15287
15287
|
"use strict";
|
|
15288
15288
|
|
|
15289
|
-
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,
|
|
15289
|
+
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;
|
|
15290
15290
|
return {
|
|
15291
15291
|
setters: [function (_webAtomsDateTimeDistDateTime) {
|
|
15292
15292
|
DateTime = _webAtomsDateTimeDistDateTime.default;
|
|
@@ -15433,6 +15433,7 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
15433
15433
|
status: "queued",
|
|
15434
15434
|
forwardCount: 0,
|
|
15435
15435
|
replyCount: 0,
|
|
15436
|
+
viewCount: 0,
|
|
15436
15437
|
originalFileSize: 0
|
|
15437
15438
|
}));
|
|
15438
15439
|
_export("EmailEngagement", EmailEngagement = new Model("EmailEngagement", ["emailID"], {
|
|
@@ -15484,14 +15485,34 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
15484
15485
|
subscriberCount: 0
|
|
15485
15486
|
}));
|
|
15486
15487
|
_export("MailboxEmail", MailboxEmail = new Model("MailboxEmail", ["mailboxID", "emailID"], {}));
|
|
15487
|
-
_export("
|
|
15488
|
+
_export("MailboxContactStatusArray", MailboxContactStatusArray = [{
|
|
15489
|
+
"label": "invited",
|
|
15490
|
+
"value": "invited"
|
|
15491
|
+
}, {
|
|
15492
|
+
"label": "added",
|
|
15493
|
+
"value": "added"
|
|
15494
|
+
}, {
|
|
15495
|
+
"label": "active",
|
|
15496
|
+
"value": "active"
|
|
15497
|
+
}, {
|
|
15498
|
+
"label": "unsubscribed",
|
|
15499
|
+
"value": "unsubscribed"
|
|
15500
|
+
}, {
|
|
15501
|
+
"label": "blocked",
|
|
15502
|
+
"value": "blocked"
|
|
15503
|
+
}]);
|
|
15504
|
+
_export("MailboxContact", MailboxContact = new Model("MailboxContact", ["mailboxID", "emailAddressID"], {
|
|
15505
|
+
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
15488
15506
|
dateUpdated: new DefaultFactory(() => new DateTime()),
|
|
15489
15507
|
unread: 0,
|
|
15490
15508
|
total: 0,
|
|
15509
|
+
isOwner: false,
|
|
15510
|
+
canContribute: false,
|
|
15491
15511
|
priority: 0,
|
|
15492
|
-
blocked: false
|
|
15512
|
+
blocked: false,
|
|
15513
|
+
status: "invited"
|
|
15493
15514
|
}));
|
|
15494
|
-
_export("
|
|
15515
|
+
_export("MailboxContactEmail", MailboxContactEmail = new Model("MailboxContactEmail", ["mailboxID", "emailAddressID", "emailID"], {
|
|
15495
15516
|
dateReceived: new DefaultFactory(() => new DateTime())
|
|
15496
15517
|
}));
|
|
15497
15518
|
_export("MailboxSyncTargetDirectionArray", MailboxSyncTargetDirectionArray = [{
|
|
@@ -15527,29 +15548,6 @@ System.register(["@web-atoms/date-time/dist/DateTime", "@web-atoms/entity/dist/s
|
|
|
15527
15548
|
intervalSeconds: 0,
|
|
15528
15549
|
active: false
|
|
15529
15550
|
}));
|
|
15530
|
-
_export("MailboxSubscriberStatusArray", MailboxSubscriberStatusArray = [{
|
|
15531
|
-
"label": "invited",
|
|
15532
|
-
"value": "invited"
|
|
15533
|
-
}, {
|
|
15534
|
-
"label": "added",
|
|
15535
|
-
"value": "added"
|
|
15536
|
-
}, {
|
|
15537
|
-
"label": "active",
|
|
15538
|
-
"value": "active"
|
|
15539
|
-
}, {
|
|
15540
|
-
"label": "unsubscribed",
|
|
15541
|
-
"value": "unsubscribed"
|
|
15542
|
-
}, {
|
|
15543
|
-
"label": "blocked",
|
|
15544
|
-
"value": "blocked"
|
|
15545
|
-
}]);
|
|
15546
|
-
_export("MailboxSubscriber", MailboxSubscriber = new Model("MailboxSubscriber", ["mailboxID", "subscriberID"], {
|
|
15547
|
-
isOwner: false,
|
|
15548
|
-
canContribute: false,
|
|
15549
|
-
status: "invited",
|
|
15550
|
-
dateCreated: new DefaultFactory(() => new DateTime()),
|
|
15551
|
-
dateUpdated: new DefaultFactory(() => new DateTime())
|
|
15552
|
-
}));
|
|
15553
15551
|
_export("SubscriberActivity", SubscriberActivity = new Model("SubscriberActivity", ["activityID"], {
|
|
15554
15552
|
activity: "",
|
|
15555
15553
|
dateCreated: new DefaultFactory(() => new DateTime())
|
|
@@ -17442,7 +17440,7 @@ System.register([], function (_export, _context) {
|
|
|
17442
17440
|
System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../../common/Sql"], function (_export, _context) {
|
|
17443
17441
|
"use strict";
|
|
17444
17442
|
|
|
17445
|
-
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, AppFile, Mailbox,
|
|
17443
|
+
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, AppFile, Mailbox, MailboxContact, Sql, MailService;
|
|
17446
17444
|
return {
|
|
17447
17445
|
setters: [function (_tslib) {
|
|
17448
17446
|
__awaiter = _tslib.__awaiter;
|
|
@@ -17457,7 +17455,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
17457
17455
|
}, function (_modelModel) {
|
|
17458
17456
|
AppFile = _modelModel.AppFile;
|
|
17459
17457
|
Mailbox = _modelModel.Mailbox;
|
|
17460
|
-
|
|
17458
|
+
MailboxContact = _modelModel.MailboxContact;
|
|
17461
17459
|
}, function (_commonSql) {
|
|
17462
17460
|
Sql = _commonSql.Sql;
|
|
17463
17461
|
}],
|
|
@@ -17480,7 +17478,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
17480
17478
|
cancelToken
|
|
17481
17479
|
}) {
|
|
17482
17480
|
return __awaiter(this, void 0, void 0, function* () {
|
|
17483
|
-
let q = this.entityService.query(
|
|
17481
|
+
let q = this.entityService.query(MailboxContact).where({
|
|
17484
17482
|
mailboxID,
|
|
17485
17483
|
showBlocked
|
|
17486
17484
|
}, p => x => x.mailboxID === p.mailboxID && x.blocked === p.showBlocked).orderByDescending(x => x.dateUpdated);
|
|
@@ -18004,7 +18002,7 @@ System.register(["@web-atoms/core/dist/core/EventScope"], function (_export, _co
|
|
|
18004
18002
|
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) {
|
|
18005
18003
|
"use strict";
|
|
18006
18004
|
|
|
18007
|
-
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, Email,
|
|
18005
|
+
var __awaiter, __decorate, __metadata, DISingleton, Inject, EntityService, Email, MailboxContactEmail, Sql, DomToString, XNode, AtomControl, descendentElementIterator, DateTime, CommonEvents, BusyProgress, renderMail, downloadEmailContent, ConversationService;
|
|
18008
18006
|
return {
|
|
18009
18007
|
setters: [function (_tslib) {
|
|
18010
18008
|
__awaiter = _tslib.__awaiter;
|
|
@@ -18018,7 +18016,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
18018
18016
|
EntityService = _servicesEntityService.default;
|
|
18019
18017
|
}, function (_modelModel) {
|
|
18020
18018
|
Email = _modelModel.Email;
|
|
18021
|
-
|
|
18019
|
+
MailboxContactEmail = _modelModel.MailboxContactEmail;
|
|
18022
18020
|
}, function (_commonSql) {
|
|
18023
18021
|
Sql = _commonSql.Sql;
|
|
18024
18022
|
}, function (_webAtomsEmailDomDistDomToString) {
|
|
@@ -18081,7 +18079,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
18081
18079
|
thread.timeRead = timeRead;
|
|
18082
18080
|
const control = AtomControl.from(e);
|
|
18083
18081
|
const entityService = control.app.resolve(EntityService);
|
|
18084
|
-
entityService.save(
|
|
18082
|
+
entityService.save(MailboxContactEmail.patch(thread, {
|
|
18085
18083
|
timeRead
|
|
18086
18084
|
})).then(() => {
|
|
18087
18085
|
CommonEvents.onThreadMarkedAsRead.dispatchEvent(thread);
|
|
@@ -18130,7 +18128,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DISingleton", "@web-atoms/cor
|
|
|
18130
18128
|
}) {
|
|
18131
18129
|
var _a;
|
|
18132
18130
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18133
|
-
let q = this.entityService.query(
|
|
18131
|
+
let q = this.entityService.query(MailboxContactEmail).where({
|
|
18134
18132
|
mailboxID,
|
|
18135
18133
|
emailAddressID
|
|
18136
18134
|
}, p => x => x.mailboxID === p.mailboxID && x.emailAddressID === p.emailAddressID && x.engagement === null);
|
|
@@ -26849,7 +26847,7 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
|
|
|
26849
26847
|
System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/core/dist/di/Inject", "../../../../services/EntityService", "../../../../model/model", "../../../../common/Sql"], function (_export, _context) {
|
|
26850
26848
|
"use strict";
|
|
26851
26849
|
|
|
26852
|
-
var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, Mailbox,
|
|
26850
|
+
var __awaiter, __decorate, __metadata, DITransient, Inject, EntityService, Mailbox, MailboxContact, Sql, ChannelService;
|
|
26853
26851
|
return {
|
|
26854
26852
|
setters: [function (_tslib) {
|
|
26855
26853
|
__awaiter = _tslib.__awaiter;
|
|
@@ -26863,7 +26861,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
26863
26861
|
EntityService = _servicesEntityService.default;
|
|
26864
26862
|
}, function (_modelModel) {
|
|
26865
26863
|
Mailbox = _modelModel.Mailbox;
|
|
26866
|
-
|
|
26864
|
+
MailboxContact = _modelModel.MailboxContact;
|
|
26867
26865
|
}, function (_commonSql) {
|
|
26868
26866
|
Sql = _commonSql.Sql;
|
|
26869
26867
|
}],
|
|
@@ -26886,7 +26884,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
26886
26884
|
v
|
|
26887
26885
|
}) {
|
|
26888
26886
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26889
|
-
let q = this.entityService.query(
|
|
26887
|
+
let q = this.entityService.query(MailboxContact).where({
|
|
26890
26888
|
id
|
|
26891
26889
|
}, p => x => x.mailboxID === p.id);
|
|
26892
26890
|
if (search) {
|
|
@@ -26895,9 +26893,9 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
26895
26893
|
}
|
|
26896
26894
|
q = q.where({
|
|
26897
26895
|
search
|
|
26898
|
-
}, p => x => Sql.text.iLike(x.
|
|
26896
|
+
}, p => x => Sql.text.iLike(x.emailAddress.name, p.search) || Sql.text.iLike(x.emailAddress.emailAddress, p.search));
|
|
26899
26897
|
}
|
|
26900
|
-
return q.include(x => x.
|
|
26898
|
+
return q.include(x => x.emailAddress).toPagedList({
|
|
26901
26899
|
start,
|
|
26902
26900
|
size,
|
|
26903
26901
|
cancelToken
|
|
@@ -26930,7 +26928,7 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
|
|
|
26930
26928
|
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) {
|
|
26931
26929
|
"use strict";
|
|
26932
26930
|
|
|
26933
|
-
var __awaiter, __decorate, __metadata, Bind, XNode, Form, FormField, PopupWindowPage,
|
|
26931
|
+
var __awaiter, __decorate, __metadata, Bind, XNode, Form, FormField, PopupWindowPage, MailboxContact, SaveIconTextButton, Action, ChannelService, InjectProperty, Checkbox, AddSubscriberPage;
|
|
26934
26932
|
_export("default", void 0);
|
|
26935
26933
|
return {
|
|
26936
26934
|
setters: [function (_tslib) {
|
|
@@ -26948,7 +26946,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
26948
26946
|
}, function (_webAtomsWebControlsDistMobileAppMobileApp) {
|
|
26949
26947
|
PopupWindowPage = _webAtomsWebControlsDistMobileAppMobileApp.PopupWindowPage;
|
|
26950
26948
|
}, function (_modelModel) {
|
|
26951
|
-
|
|
26949
|
+
MailboxContact = _modelModel.MailboxContact;
|
|
26952
26950
|
}, function (_commonControlsButtonsIconButton) {
|
|
26953
26951
|
SaveIconTextButton = _commonControlsButtonsIconButton.SaveIconTextButton;
|
|
26954
26952
|
}, function (_webAtomsCoreDistViewModelAction) {
|
|
@@ -26964,7 +26962,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
26964
26962
|
_export("default", AddSubscriberPage = class AddSubscriberPage extends PopupWindowPage {
|
|
26965
26963
|
constructor() {
|
|
26966
26964
|
super(...arguments);
|
|
26967
|
-
this.model =
|
|
26965
|
+
this.model = MailboxContact.create({});
|
|
26968
26966
|
this.emailAddress = "";
|
|
26969
26967
|
}
|
|
26970
26968
|
init() {
|
|
@@ -26972,13 +26970,13 @@ System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dis
|
|
|
26972
26970
|
var _b;
|
|
26973
26971
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26974
26972
|
this.title = "Add/Invite new subscriber";
|
|
26975
|
-
(_a = (_b = this.model).
|
|
26973
|
+
(_a = (_b = this.model).emailAddressText) !== null && _a !== void 0 ? _a : _b.emailAddressText = "";
|
|
26976
26974
|
this.model.mailboxID = this.parameters.id;
|
|
26977
26975
|
this.renderer = XNode.create("div", null, XNode.create(Form, null, XNode.create(FormField, {
|
|
26978
26976
|
label: "Email Address"
|
|
26979
26977
|
}, XNode.create("input", {
|
|
26980
26978
|
autofocus: true,
|
|
26981
|
-
value: Bind.twoWaysImmediate(() => this.model.
|
|
26979
|
+
value: Bind.twoWaysImmediate(() => this.model.emailAddressText)
|
|
26982
26980
|
})), XNode.create(FormField, {
|
|
26983
26981
|
label: "Name"
|
|
26984
26982
|
}, XNode.create("input", {
|
|
@@ -27172,6 +27170,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
27172
27170
|
value: Bind.twoWaysImmediate(() => this.search)
|
|
27173
27171
|
}));
|
|
27174
27172
|
this.renderer = XNode.create("div", null, XNode.create(AtomRepeater, Object.assign({
|
|
27173
|
+
"data-layout": "data-grid",
|
|
27175
27174
|
items: this.subscribers,
|
|
27176
27175
|
selectedItems: this.selected,
|
|
27177
27176
|
allowMultipleSelection: true
|
|
@@ -27186,7 +27185,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
27186
27185
|
itemRenderer: item => XNode.create("div", {
|
|
27187
27186
|
"data-layout": "row"
|
|
27188
27187
|
}, XNode.create(SelectorCheckBox, null), XNode.create("div", {
|
|
27189
|
-
text: item.
|
|
27188
|
+
text: item.emailAddress.emailAddress
|
|
27190
27189
|
}), XNode.create("div", {
|
|
27191
27190
|
text: item.status
|
|
27192
27191
|
}), XNode.create("div", {
|
|
@@ -27198,7 +27197,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
27198
27197
|
this.footerRenderer = () => XNode.create("div", {
|
|
27199
27198
|
"style-display": Bind.oneWay(() => this.selected.length > 0),
|
|
27200
27199
|
"data-layout": "command-row"
|
|
27201
|
-
}, XNode.create(
|
|
27200
|
+
}, XNode.create(SaveIconTextButton, {
|
|
27201
|
+
"data-click-event": "activate-subscribers",
|
|
27202
|
+
text: "Activate"
|
|
27203
|
+
}), XNode.create(DeleteIconTextButton, {
|
|
27202
27204
|
"data-click-event": "delete-subscribers",
|
|
27203
27205
|
text: "Delete"
|
|
27204
27206
|
}), XNode.create(SaveIconTextButton, {
|
|
@@ -27225,6 +27227,16 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
27225
27227
|
this.version++;
|
|
27226
27228
|
});
|
|
27227
27229
|
}
|
|
27230
|
+
activateSubscribers() {
|
|
27231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27232
|
+
for (const iterator of this.selected) {
|
|
27233
|
+
iterator.status = "active";
|
|
27234
|
+
}
|
|
27235
|
+
yield this.channelService.saveAll(this.selected);
|
|
27236
|
+
this.selected.clear();
|
|
27237
|
+
this.version++;
|
|
27238
|
+
});
|
|
27239
|
+
}
|
|
27228
27240
|
updateRights() {
|
|
27229
27241
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27230
27242
|
const rights = yield PageNavigator.pushPageForResult(UpdateRightsPage);
|
|
@@ -27246,6 +27258,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
27246
27258
|
onEvent: "delete-subscribers",
|
|
27247
27259
|
confirm: "Are you sure you want to remove selected?"
|
|
27248
27260
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], ChannelSubscribersPage.prototype, "deleteSubscribers", null);
|
|
27261
|
+
__decorate([Action({
|
|
27262
|
+
onEvent: "activate-subscribers",
|
|
27263
|
+
confirm: "Are you sure you want to activate given subscribers?"
|
|
27264
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], ChannelSubscribersPage.prototype, "activateSubscribers", null);
|
|
27249
27265
|
__decorate([Action({
|
|
27250
27266
|
onEvent: "update-rights"
|
|
27251
27267
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], ChannelSubscribersPage.prototype, "updateRights", null);
|