@social-mail/social-mail-client 1.2.1 → 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 +19 -1
- 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/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +19 -1
- 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/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 +19 -1
- package/dist/web/page/channels/subscribers/ChannelSubscribersPage.js.map +1 -1
- package/package.json +1 -1
- package/src/web/page/channels/subscribers/ChannelSubscribersPage.tsx +18 -0
|
@@ -32731,6 +32731,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
32731
32731
|
value: Bind.twoWaysImmediate(() => this.search)
|
|
32732
32732
|
}));
|
|
32733
32733
|
this.renderer = XNode.create("div", null, XNode.create(AtomRepeater, Object.assign({
|
|
32734
|
+
"data-layout": "data-grid",
|
|
32734
32735
|
items: this.subscribers,
|
|
32735
32736
|
selectedItems: this.selected,
|
|
32736
32737
|
allowMultipleSelection: true
|
|
@@ -32757,7 +32758,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
32757
32758
|
this.footerRenderer = () => XNode.create("div", {
|
|
32758
32759
|
"style-display": Bind.oneWay(() => this.selected.length > 0),
|
|
32759
32760
|
"data-layout": "command-row"
|
|
32760
|
-
}, XNode.create(
|
|
32761
|
+
}, XNode.create(SaveIconTextButton, {
|
|
32762
|
+
"data-click-event": "activate-subscribers",
|
|
32763
|
+
text: "Activate"
|
|
32764
|
+
}), XNode.create(DeleteIconTextButton, {
|
|
32761
32765
|
"data-click-event": "delete-subscribers",
|
|
32762
32766
|
text: "Delete"
|
|
32763
32767
|
}), XNode.create(SaveIconTextButton, {
|
|
@@ -32784,6 +32788,16 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
32784
32788
|
this.version++;
|
|
32785
32789
|
});
|
|
32786
32790
|
}
|
|
32791
|
+
activateSubscribers() {
|
|
32792
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32793
|
+
for (const iterator of this.selected) {
|
|
32794
|
+
iterator.status = "active";
|
|
32795
|
+
}
|
|
32796
|
+
yield this.channelService.saveAll(this.selected);
|
|
32797
|
+
this.selected.clear();
|
|
32798
|
+
this.version++;
|
|
32799
|
+
});
|
|
32800
|
+
}
|
|
32787
32801
|
updateRights() {
|
|
32788
32802
|
return __awaiter(this, void 0, void 0, function* () {
|
|
32789
32803
|
const rights = yield PageNavigator.pushPageForResult(UpdateRightsPage);
|
|
@@ -32805,6 +32819,10 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
|
|
|
32805
32819
|
onEvent: "delete-subscribers",
|
|
32806
32820
|
confirm: "Are you sure you want to remove selected?"
|
|
32807
32821
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], ChannelSubscribersPage.prototype, "deleteSubscribers", null);
|
|
32822
|
+
__decorate([Action({
|
|
32823
|
+
onEvent: "activate-subscribers",
|
|
32824
|
+
confirm: "Are you sure you want to activate given subscribers?"
|
|
32825
|
+
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], ChannelSubscribersPage.prototype, "activateSubscribers", null);
|
|
32808
32826
|
__decorate([Action({
|
|
32809
32827
|
onEvent: "update-rights"
|
|
32810
32828
|
}), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], ChannelSubscribersPage.prototype, "updateRights", null);
|