@social-mail/social-mail-client 1.4.135 → 1.4.136

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.
@@ -26633,7 +26633,9 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
26633
26633
  }), XNode.create("td", {
26634
26634
  text: toFileSize(item.file.fileSize)
26635
26635
  }))
26636
- })));
26636
+ }), XNode.create("details", null, XNode.create("summary", null, "Delete User"), XNode.create("div", null, "Warning, this will delete everything associated with this user and there is no way to revert this action.", XNode.create("br", null), XNode.create(DeleteIconTextButton, {
26637
+ "data-click-event": "delete-user"
26638
+ })))));
26637
26639
  });
26638
26640
  }
26639
26641
  activateUser() {
@@ -26680,6 +26682,13 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
26680
26682
  yield this.userService.save(this.model);
26681
26683
  });
26682
26684
  }
26685
+ deleteUser() {
26686
+ return __awaiter(this, void 0, void 0, function* () {
26687
+ const es = this.resolve(EntityService);
26688
+ this.model.$deleted = true;
26689
+ yield es.save(this.model, c => c);
26690
+ });
26691
+ }
26683
26692
  });
26684
26693
  __decorate([InjectProperty, __metadata("design:type", AdminUserService)], UserDetailsPage.prototype, "userService", void 0);
26685
26694
  __decorate([Action({
@@ -26707,6 +26716,11 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
26707
26716
  __decorate([Action({
26708
26717
  onEvent: "save-user"
26709
26718
  }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], UserDetailsPage.prototype, "saveUser", null);
26719
+ __decorate([Action({
26720
+ onEvent: "delete-user",
26721
+ success: "User deleted successfully",
26722
+ close: true
26723
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], UserDetailsPage.prototype, "deleteUser", null);
26710
26724
  }
26711
26725
  };
26712
26726
  });