@social-mail/social-mail-hosted-web 1.2.15 → 1.2.16

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.
@@ -18018,10 +18018,10 @@ System.register(["@web-atoms/date-time/dist/DateTime"], function (_export, _cont
18018
18018
 
18019
18019
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/date/DateFormats");
18020
18020
 
18021
- System.register(["tslib", "@social-mail/social-mail-client/dist/common/controls/repeater/InfiniteRepeater", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/AtomRepeater", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "./DnsZoneService", "../../../model/model", "@web-atoms/core/dist/view-model/Action", "../../commands/AdminCommands", "@social-mail/social-mail-client/dist/common/date/DateFormats"], function (_export, _context) {
18021
+ System.register(["tslib", "@social-mail/social-mail-client/dist/common/controls/repeater/InfiniteRepeater", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/AtomRepeater", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "./DnsZoneService", "../../../model/model", "@web-atoms/core/dist/view-model/Action", "../../commands/AdminCommands", "@social-mail/social-mail-client/dist/common/date/DateFormats", "@web-atoms/core/dist/web/services/PopupService"], function (_export, _context) {
18022
18022
  "use strict";
18023
18023
 
18024
- var __awaiter, __decorate, __metadata, InfiniteRepeater, InjectProperty, XNode, AtomRepeater, ContentPage, DnsZoneService, DnsZone, Action, AdminCommands, DateFormats, DnsZoneListPage;
18024
+ var __awaiter, __decorate, __metadata, InfiniteRepeater, InjectProperty, XNode, AtomRepeater, ContentPage, DnsZoneService, DnsZone, Action, AdminCommands, DateFormats, PopupService, DnsZoneListPage;
18025
18025
  _export("default", void 0);
18026
18026
  return {
18027
18027
  setters: [function (_tslib) {
@@ -18048,6 +18048,8 @@ System.register(["tslib", "@social-mail/social-mail-client/dist/common/controls/
18048
18048
  AdminCommands = _commandsAdminCommands.default;
18049
18049
  }, function (_socialMailSocialMailClientDistCommonDateDateFormats) {
18050
18050
  DateFormats = _socialMailSocialMailClientDistCommonDateDateFormats.DateFormats;
18051
+ }, function (_webAtomsCoreDistWebServicesPopupService) {
18052
+ PopupService = _webAtomsCoreDistWebServicesPopupService.default;
18051
18053
  }],
18052
18054
  execute: function () {
18053
18055
  _export("default", DnsZoneListPage = class DnsZoneListPage extends ContentPage {
@@ -18061,6 +18063,7 @@ System.register(["tslib", "@social-mail/social-mail-client/dist/common/controls/
18061
18063
  init() {
18062
18064
  return __awaiter(this, void 0, void 0, function* () {
18063
18065
  this.renderer = XNode.create("div", null, XNode.create(AtomRepeater, Object.assign({
18066
+ "data-layout": "data-grid",
18064
18067
  items: this.zones
18065
18068
  }, InfiniteRepeater.pagedItems(start => (c, e, cancelToken) => this.dnsZoneService.list({
18066
18069
  start,
@@ -18077,6 +18080,9 @@ System.register(["tslib", "@social-mail/social-mail-client/dist/common/controls/
18077
18080
  text: item.zone
18078
18081
  }), XNode.create("label", {
18079
18082
  text: DateFormats.relative.short(item.dateCreated)
18083
+ }), XNode.create("i", {
18084
+ class: "fa-regular fa-file-lines",
18085
+ "data-click-event": "view-zone"
18080
18086
  }), XNode.create("i", {
18081
18087
  class: "fas fa-trash-can",
18082
18088
  "data-click-event": "delete-zone"
@@ -18098,6 +18104,14 @@ System.register(["tslib", "@social-mail/social-mail-client/dist/common/controls/
18098
18104
  this.version++;
18099
18105
  });
18100
18106
  }
18107
+ viewZone(zone) {
18108
+ return __awaiter(this, void 0, void 0, function* () {
18109
+ PopupService.alert({
18110
+ title: zone.zone,
18111
+ message: XNode.create("div", null, XNode.create("pre", null, zone.unsigned))
18112
+ });
18113
+ });
18114
+ }
18101
18115
  addNew() {
18102
18116
  return __awaiter(this, void 0, void 0, function* () {
18103
18117
  const zone = prompt("Add host");
@@ -18116,6 +18130,9 @@ System.register(["tslib", "@social-mail/social-mail-client/dist/common/controls/
18116
18130
  onEvent: "delete-zone",
18117
18131
  confirm: "Are you sure you want to delete this zone?"
18118
18132
  }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "deleteZone", null);
18133
+ __decorate([Action({
18134
+ onEvent: "view-zone"
18135
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewZone", null);
18119
18136
  __decorate([Action({
18120
18137
  onEvent: "add-new"
18121
18138
  }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "addNew", null);