@social-mail/social-mail-client 1.9.36 → 1.9.37

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.
@@ -47040,148 +47040,6 @@ System.register(["tslib", "@web-atoms/core/dist/di/Inject", "../../../services/E
47040
47040
  });
47041
47041
  //# sourceMappingURL=DnsZoneService.js.map
47042
47042
 
47043
- AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/pages/dns/DnsZoneListPage");
47044
-
47045
- System.register(["tslib", "@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", "@web-atoms/core/dist/view-model/Action", "@web-atoms/core/dist/web/services/PopupService", "../../controls/repeater/InfiniteRepeater", "../../commands/CommonCommands", "./DnsZoneService", "../../../model/model", "@web-atoms/core/dist/core/Bind"], function (_export, _context) {
47046
- "use strict";
47047
-
47048
- var __awaiter, __decorate, __metadata, InjectProperty, XNode, AtomRepeater, ContentPage, Action, PopupService, InfiniteRepeater, CommonCommands, DnsZoneService, HostedZone, Bind, DnsZoneListPage;
47049
- _export("default", void 0);
47050
- return {
47051
- setters: [function (_tslib) {
47052
- __awaiter = _tslib.__awaiter;
47053
- __decorate = _tslib.__decorate;
47054
- __metadata = _tslib.__metadata;
47055
- }, function (_webAtomsCoreDistCoreInjectProperty) {
47056
- InjectProperty = _webAtomsCoreDistCoreInjectProperty.default;
47057
- }, function (_webAtomsCoreDistCoreXNode) {
47058
- XNode = _webAtomsCoreDistCoreXNode.default;
47059
- }, function (_webAtomsWebControlsDistBasicAtomRepeater) {
47060
- AtomRepeater = _webAtomsWebControlsDistBasicAtomRepeater.default;
47061
- }, function (_webAtomsWebControlsDistMobileAppMobileApp) {
47062
- ContentPage = _webAtomsWebControlsDistMobileAppMobileApp.ContentPage;
47063
- }, function (_webAtomsCoreDistViewModelAction) {
47064
- Action = _webAtomsCoreDistViewModelAction.default;
47065
- }, function (_webAtomsCoreDistWebServicesPopupService) {
47066
- PopupService = _webAtomsCoreDistWebServicesPopupService.default;
47067
- }, function (_controlsRepeaterInfiniteRepeater) {
47068
- InfiniteRepeater = _controlsRepeaterInfiniteRepeater.default;
47069
- }, function (_commandsCommonCommands) {
47070
- CommonCommands = _commandsCommonCommands.default;
47071
- }, function (_DnsZoneService) {
47072
- DnsZoneService = _DnsZoneService.default;
47073
- }, function (_modelModel) {
47074
- HostedZone = _modelModel.HostedZone;
47075
- }, function (_webAtomsCoreDistCoreBind) {
47076
- Bind = _webAtomsCoreDistCoreBind.default;
47077
- }],
47078
- execute: function () {
47079
- _export("default", DnsZoneListPage = class DnsZoneListPage extends ContentPage {
47080
- constructor() {
47081
- super(...arguments);
47082
- this.start = 0;
47083
- this.size = 100;
47084
- this.version = 1;
47085
- this.search = "";
47086
- this.zones = [];
47087
- }
47088
- init() {
47089
- return __awaiter(this, void 0, void 0, function* () {
47090
- this.headerRenderer = () => XNode.create("div", {
47091
- "data-layout": "header-row"
47092
- }, XNode.create("input", {
47093
- type: "search",
47094
- value: Bind.twoWaysImmediate(() => this.search)
47095
- }));
47096
- this.renderer = XNode.create("div", null, XNode.create(AtomRepeater, Object.assign({
47097
- "data-layout": "data-grid",
47098
- items: this.zones
47099
- }, InfiniteRepeater.pagedItems(start => (c, e, cancelToken) => this.dnsZoneService.list({
47100
- search: this.search,
47101
- start,
47102
- cancelToken,
47103
- version: this.version
47104
- })), {
47105
- itemRenderer: item => XNode.create("div", null, XNode.create("a", {
47106
- "data-click-event": "route",
47107
- href: CommonCommands.editDnsZone.displayRoute({
47108
- zoneID: item.zoneID
47109
- }),
47110
- text: item.domain.name
47111
- }), XNode.create("i", {
47112
- title: "View Zone File",
47113
- class: "fa-regular fa-file-lines",
47114
- "data-click-event": "view-zone"
47115
- }), XNode.create("i", {
47116
- title: "Delete Zone",
47117
- class: "fas fa-trash-can",
47118
- "data-click-event": "delete-zone"
47119
- }))
47120
- })));
47121
- this.footerRenderer = () => XNode.create("div", {
47122
- "data-layout": "command-row"
47123
- }, XNode.create("button", {
47124
- "data-click-event": "add-new",
47125
- text: "Add"
47126
- }));
47127
- });
47128
- }
47129
- deleteZone(zone) {
47130
- return __awaiter(this, void 0, void 0, function* () {
47131
- zone.$deleted = true;
47132
- yield this.dnsZoneService.save(zone);
47133
- this.zones.remove(zone);
47134
- this.version++;
47135
- });
47136
- }
47137
- viewZone(zone) {
47138
- return __awaiter(this, void 0, void 0, function* () {
47139
- yield PopupService.alert({
47140
- title: zone.domain.name,
47141
- message: XNode.create("div", null, XNode.create("pre", null, zone.unsigned))
47142
- });
47143
- });
47144
- }
47145
- viewDS(zone) {
47146
- return __awaiter(this, void 0, void 0, function* () {
47147
- yield PopupService.alert({
47148
- title: zone.domain.name,
47149
- message: XNode.create("div", null, XNode.create("pre", null, zone.digest))
47150
- });
47151
- });
47152
- }
47153
- addNew() {
47154
- return __awaiter(this, void 0, void 0, function* () {
47155
- const zone = prompt("Add host");
47156
- if (!zone) {
47157
- return;
47158
- }
47159
- yield this.dnsZoneService.save(HostedZone.create({
47160
- zone
47161
- }));
47162
- this.version++;
47163
- });
47164
- }
47165
- });
47166
- __decorate([InjectProperty, __metadata("design:type", DnsZoneService)], DnsZoneListPage.prototype, "dnsZoneService", void 0);
47167
- __decorate([Action({
47168
- onEvent: "delete-zone",
47169
- confirm: "Are you sure you want to delete this zone?"
47170
- }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "deleteZone", null);
47171
- __decorate([Action({
47172
- onEvent: "view-zone"
47173
- }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewZone", null);
47174
- __decorate([Action({
47175
- onEvent: "view-ds"
47176
- }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewDS", null);
47177
- __decorate([Action({
47178
- onEvent: "add-new"
47179
- }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "addNew", null);
47180
- }
47181
- };
47182
- });
47183
- //# sourceMappingURL=DnsZoneListPage.js.map
47184
-
47185
47043
  AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/pages/dns/edit/DnsRecordEditorPage");
47186
47044
 
47187
47045
  System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "@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/basic/ComboBox", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/view-model/Action", "../../../../model/model"], function (_export, _context) {
@@ -47501,6 +47359,158 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
47501
47359
  });
47502
47360
  //# sourceMappingURL=DnsZoneEditorPage.js.map
47503
47361
 
47362
+ AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/pages/dns/DnsZoneListPage");
47363
+
47364
+ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atoms/core/dist/core/XNode", "@web-atoms/web-controls/dist/basic/AtomRepeater", "@web-atoms/core/dist/view-model/Action", "@web-atoms/core/dist/web/services/PopupService", "../../controls/repeater/InfiniteRepeater", "./DnsZoneService", "../../../model/model", "@web-atoms/core/dist/core/Bind", "@web-atoms/web-controls/dist/mobile-app/MasterDetailPage", "./edit/DnsZoneEditorPage"], function (_export, _context) {
47365
+ "use strict";
47366
+
47367
+ var __awaiter, __decorate, __metadata, InjectProperty, XNode, AtomRepeater, Action, PopupService, InfiniteRepeater, DnsZoneService, HostedZone, Bind, MasterDetailPage, DnsZoneEditorPage, DnsZoneListPage;
47368
+ _export("default", void 0);
47369
+ return {
47370
+ setters: [function (_tslib) {
47371
+ __awaiter = _tslib.__awaiter;
47372
+ __decorate = _tslib.__decorate;
47373
+ __metadata = _tslib.__metadata;
47374
+ }, function (_webAtomsCoreDistCoreInjectProperty) {
47375
+ InjectProperty = _webAtomsCoreDistCoreInjectProperty.default;
47376
+ }, function (_webAtomsCoreDistCoreXNode) {
47377
+ XNode = _webAtomsCoreDistCoreXNode.default;
47378
+ }, function (_webAtomsWebControlsDistBasicAtomRepeater) {
47379
+ AtomRepeater = _webAtomsWebControlsDistBasicAtomRepeater.default;
47380
+ }, function (_webAtomsCoreDistViewModelAction) {
47381
+ Action = _webAtomsCoreDistViewModelAction.default;
47382
+ }, function (_webAtomsCoreDistWebServicesPopupService) {
47383
+ PopupService = _webAtomsCoreDistWebServicesPopupService.default;
47384
+ }, function (_controlsRepeaterInfiniteRepeater) {
47385
+ InfiniteRepeater = _controlsRepeaterInfiniteRepeater.default;
47386
+ }, function (_DnsZoneService) {
47387
+ DnsZoneService = _DnsZoneService.default;
47388
+ }, function (_modelModel) {
47389
+ HostedZone = _modelModel.HostedZone;
47390
+ }, function (_webAtomsCoreDistCoreBind) {
47391
+ Bind = _webAtomsCoreDistCoreBind.default;
47392
+ }, function (_webAtomsWebControlsDistMobileAppMasterDetailPage) {
47393
+ MasterDetailPage = _webAtomsWebControlsDistMobileAppMasterDetailPage.default;
47394
+ }, function (_editDnsZoneEditorPage) {
47395
+ DnsZoneEditorPage = _editDnsZoneEditorPage.default;
47396
+ }],
47397
+ execute: function () {
47398
+ _export("default", DnsZoneListPage = class DnsZoneListPage extends MasterDetailPage {
47399
+ constructor() {
47400
+ super(...arguments);
47401
+ this.start = 0;
47402
+ this.size = 100;
47403
+ this.version = 1;
47404
+ this.search = "";
47405
+ this.zones = [];
47406
+ }
47407
+ init() {
47408
+ return __awaiter(this, void 0, void 0, function* () {
47409
+ this.headerRenderer = () => XNode.create("div", {
47410
+ "data-layout": "header-row"
47411
+ }, XNode.create("input", {
47412
+ type: "search",
47413
+ value: Bind.twoWaysImmediate(() => this.search)
47414
+ }));
47415
+ this.renderer = XNode.create("div", null, XNode.create(AtomRepeater, Object.assign({
47416
+ "data-layout": "data-grid",
47417
+ "data-selection-updated-event": "item-selected",
47418
+ selectOnClick: true,
47419
+ items: this.zones
47420
+ }, InfiniteRepeater.pagedItems(start => (c, e, cancelToken) => this.dnsZoneService.list({
47421
+ search: this.search,
47422
+ start,
47423
+ cancelToken,
47424
+ version: this.version
47425
+ })), {
47426
+ itemRenderer: item => XNode.create("div", null, XNode.create("label", {
47427
+ text: item.domain.name
47428
+ }), XNode.create("i", {
47429
+ title: "View Zone File",
47430
+ class: "fa-regular fa-file-lines",
47431
+ "data-click-event": "view-zone"
47432
+ }), XNode.create("i", {
47433
+ title: "Delete Zone",
47434
+ class: "fas fa-trash-can",
47435
+ "data-click-event": "delete-zone"
47436
+ }))
47437
+ })));
47438
+ this.footerRenderer = () => XNode.create("div", {
47439
+ "data-layout": "command-row"
47440
+ }, XNode.create("button", {
47441
+ "data-click-event": "add-new",
47442
+ text: "Add"
47443
+ }));
47444
+ });
47445
+ }
47446
+ deleteZone(zone) {
47447
+ return __awaiter(this, void 0, void 0, function* () {
47448
+ zone.$deleted = true;
47449
+ yield this.dnsZoneService.save(zone);
47450
+ this.zones.remove(zone);
47451
+ this.version++;
47452
+ });
47453
+ }
47454
+ itemSelected(_a) {
47455
+ return __awaiter(this, arguments, void 0, function* ([domain]) {
47456
+ if (!domain) {
47457
+ return;
47458
+ }
47459
+ this.openDetail(DnsZoneEditorPage, domain);
47460
+ });
47461
+ }
47462
+ viewZone(zone) {
47463
+ return __awaiter(this, void 0, void 0, function* () {
47464
+ yield PopupService.alert({
47465
+ title: zone.domain.name,
47466
+ message: XNode.create("div", null, XNode.create("pre", null, zone.unsigned))
47467
+ });
47468
+ });
47469
+ }
47470
+ viewDS(zone) {
47471
+ return __awaiter(this, void 0, void 0, function* () {
47472
+ yield PopupService.alert({
47473
+ title: zone.domain.name,
47474
+ message: XNode.create("div", null, XNode.create("pre", null, zone.digest))
47475
+ });
47476
+ });
47477
+ }
47478
+ addNew() {
47479
+ return __awaiter(this, void 0, void 0, function* () {
47480
+ const zone = prompt("Add host");
47481
+ if (!zone) {
47482
+ return;
47483
+ }
47484
+ yield this.dnsZoneService.save(HostedZone.create({
47485
+ zone
47486
+ }));
47487
+ this.version++;
47488
+ });
47489
+ }
47490
+ });
47491
+ __decorate([InjectProperty, __metadata("design:type", DnsZoneService)], DnsZoneListPage.prototype, "dnsZoneService", void 0);
47492
+ __decorate([Action({
47493
+ onEvent: "delete-zone",
47494
+ confirm: "Are you sure you want to delete this zone?"
47495
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "deleteZone", null);
47496
+ __decorate([Action({
47497
+ onEvent: "item-selected",
47498
+ defer: 10
47499
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "itemSelected", null);
47500
+ __decorate([Action({
47501
+ onEvent: "view-zone"
47502
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewZone", null);
47503
+ __decorate([Action({
47504
+ onEvent: "view-ds"
47505
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewDS", null);
47506
+ __decorate([Action({
47507
+ onEvent: "add-new"
47508
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "addNew", null);
47509
+ }
47510
+ };
47511
+ });
47512
+ //# sourceMappingURL=DnsZoneListPage.js.map
47513
+
47504
47514
  AmdLoader.instance.setup("@web-atoms/web-controls/dist/basic/PinchZoomView");
47505
47515
 
47506
47516
  System.register(["tslib", "@web-atoms/core/dist/core/Bind", "@web-atoms/core/dist/core/BindableProperty", "@web-atoms/core/dist/core/XNode", "@web-atoms/core/dist/web/controls/AtomControl", "./styles/pinch-zoom-view.global.css"], function (_export, _context) {