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

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,15 +18063,14 @@ 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,
18067
18070
  cancelToken,
18068
18071
  version: this.version
18069
18072
  })), {
18070
- itemRenderer: item => XNode.create("div", {
18071
- "data-layout": "row"
18072
- }, XNode.create("a", {
18073
+ itemRenderer: item => XNode.create("div", null, XNode.create("a", {
18073
18074
  "data-click-event": "route",
18074
18075
  href: AdminCommands.editZone.displayRoute({
18075
18076
  zoneID: item.zoneID
@@ -18077,6 +18078,9 @@ System.register(["tslib", "@social-mail/social-mail-client/dist/common/controls/
18077
18078
  text: item.zone
18078
18079
  }), XNode.create("label", {
18079
18080
  text: DateFormats.relative.short(item.dateCreated)
18081
+ }), XNode.create("i", {
18082
+ class: "fa-regular fa-file-lines",
18083
+ "data-click-event": "view-zone"
18080
18084
  }), XNode.create("i", {
18081
18085
  class: "fas fa-trash-can",
18082
18086
  "data-click-event": "delete-zone"
@@ -18098,6 +18102,14 @@ System.register(["tslib", "@social-mail/social-mail-client/dist/common/controls/
18098
18102
  this.version++;
18099
18103
  });
18100
18104
  }
18105
+ viewZone(zone) {
18106
+ return __awaiter(this, void 0, void 0, function* () {
18107
+ PopupService.alert({
18108
+ title: zone.zone,
18109
+ message: XNode.create("div", null, XNode.create("pre", null, zone.unsigned))
18110
+ });
18111
+ });
18112
+ }
18101
18113
  addNew() {
18102
18114
  return __awaiter(this, void 0, void 0, function* () {
18103
18115
  const zone = prompt("Add host");
@@ -18116,6 +18128,9 @@ System.register(["tslib", "@social-mail/social-mail-client/dist/common/controls/
18116
18128
  onEvent: "delete-zone",
18117
18129
  confirm: "Are you sure you want to delete this zone?"
18118
18130
  }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "deleteZone", null);
18131
+ __decorate([Action({
18132
+ onEvent: "view-zone"
18133
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewZone", null);
18119
18134
  __decorate([Action({
18120
18135
  onEvent: "add-new"
18121
18136
  }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "addNew", null);