@social-mail/social-mail-client 1.9.35 → 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.
@@ -44648,148 +44648,6 @@ System.register(["tslib", "@web-atoms/core/dist/di/Inject", "../../../services/E
44648
44648
  });
44649
44649
  //# sourceMappingURL=DnsZoneService.js.map
44650
44650
 
44651
- AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/pages/dns/DnsZoneListPage");
44652
-
44653
- 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) {
44654
- "use strict";
44655
-
44656
- var __awaiter, __decorate, __metadata, InjectProperty, XNode, AtomRepeater, ContentPage, Action, PopupService, InfiniteRepeater, CommonCommands, DnsZoneService, HostedZone, Bind, DnsZoneListPage;
44657
- _export("default", void 0);
44658
- return {
44659
- setters: [function (_tslib) {
44660
- __awaiter = _tslib.__awaiter;
44661
- __decorate = _tslib.__decorate;
44662
- __metadata = _tslib.__metadata;
44663
- }, function (_webAtomsCoreDistCoreInjectProperty) {
44664
- InjectProperty = _webAtomsCoreDistCoreInjectProperty.default;
44665
- }, function (_webAtomsCoreDistCoreXNode) {
44666
- XNode = _webAtomsCoreDistCoreXNode.default;
44667
- }, function (_webAtomsWebControlsDistBasicAtomRepeater) {
44668
- AtomRepeater = _webAtomsWebControlsDistBasicAtomRepeater.default;
44669
- }, function (_webAtomsWebControlsDistMobileAppMobileApp) {
44670
- ContentPage = _webAtomsWebControlsDistMobileAppMobileApp.ContentPage;
44671
- }, function (_webAtomsCoreDistViewModelAction) {
44672
- Action = _webAtomsCoreDistViewModelAction.default;
44673
- }, function (_webAtomsCoreDistWebServicesPopupService) {
44674
- PopupService = _webAtomsCoreDistWebServicesPopupService.default;
44675
- }, function (_controlsRepeaterInfiniteRepeater) {
44676
- InfiniteRepeater = _controlsRepeaterInfiniteRepeater.default;
44677
- }, function (_commandsCommonCommands) {
44678
- CommonCommands = _commandsCommonCommands.default;
44679
- }, function (_DnsZoneService) {
44680
- DnsZoneService = _DnsZoneService.default;
44681
- }, function (_modelModel) {
44682
- HostedZone = _modelModel.HostedZone;
44683
- }, function (_webAtomsCoreDistCoreBind) {
44684
- Bind = _webAtomsCoreDistCoreBind.default;
44685
- }],
44686
- execute: function () {
44687
- _export("default", DnsZoneListPage = class DnsZoneListPage extends ContentPage {
44688
- constructor() {
44689
- super(...arguments);
44690
- this.start = 0;
44691
- this.size = 100;
44692
- this.version = 1;
44693
- this.search = "";
44694
- this.zones = [];
44695
- }
44696
- init() {
44697
- return __awaiter(this, void 0, void 0, function* () {
44698
- this.headerRenderer = () => XNode.create("div", {
44699
- "data-layout": "header-row"
44700
- }, XNode.create("input", {
44701
- type: "search",
44702
- value: Bind.twoWaysImmediate(() => this.search)
44703
- }));
44704
- this.renderer = XNode.create("div", null, XNode.create(AtomRepeater, Object.assign({
44705
- "data-layout": "data-grid",
44706
- items: this.zones
44707
- }, InfiniteRepeater.pagedItems(start => (c, e, cancelToken) => this.dnsZoneService.list({
44708
- search: this.search,
44709
- start,
44710
- cancelToken,
44711
- version: this.version
44712
- })), {
44713
- itemRenderer: item => XNode.create("div", null, XNode.create("a", {
44714
- "data-click-event": "route",
44715
- href: CommonCommands.editDnsZone.displayRoute({
44716
- zoneID: item.zoneID
44717
- }),
44718
- text: item.domain.name
44719
- }), XNode.create("i", {
44720
- title: "View Zone File",
44721
- class: "fa-regular fa-file-lines",
44722
- "data-click-event": "view-zone"
44723
- }), XNode.create("i", {
44724
- title: "Delete Zone",
44725
- class: "fas fa-trash-can",
44726
- "data-click-event": "delete-zone"
44727
- }))
44728
- })));
44729
- this.footerRenderer = () => XNode.create("div", {
44730
- "data-layout": "command-row"
44731
- }, XNode.create("button", {
44732
- "data-click-event": "add-new",
44733
- text: "Add"
44734
- }));
44735
- });
44736
- }
44737
- deleteZone(zone) {
44738
- return __awaiter(this, void 0, void 0, function* () {
44739
- zone.$deleted = true;
44740
- yield this.dnsZoneService.save(zone);
44741
- this.zones.remove(zone);
44742
- this.version++;
44743
- });
44744
- }
44745
- viewZone(zone) {
44746
- return __awaiter(this, void 0, void 0, function* () {
44747
- yield PopupService.alert({
44748
- title: zone.domain.name,
44749
- message: XNode.create("div", null, XNode.create("pre", null, zone.unsigned))
44750
- });
44751
- });
44752
- }
44753
- viewDS(zone) {
44754
- return __awaiter(this, void 0, void 0, function* () {
44755
- yield PopupService.alert({
44756
- title: zone.domain.name,
44757
- message: XNode.create("div", null, XNode.create("pre", null, zone.digest))
44758
- });
44759
- });
44760
- }
44761
- addNew() {
44762
- return __awaiter(this, void 0, void 0, function* () {
44763
- const zone = prompt("Add host");
44764
- if (!zone) {
44765
- return;
44766
- }
44767
- yield this.dnsZoneService.save(HostedZone.create({
44768
- zone
44769
- }));
44770
- this.version++;
44771
- });
44772
- }
44773
- });
44774
- __decorate([InjectProperty, __metadata("design:type", DnsZoneService)], DnsZoneListPage.prototype, "dnsZoneService", void 0);
44775
- __decorate([Action({
44776
- onEvent: "delete-zone",
44777
- confirm: "Are you sure you want to delete this zone?"
44778
- }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "deleteZone", null);
44779
- __decorate([Action({
44780
- onEvent: "view-zone"
44781
- }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewZone", null);
44782
- __decorate([Action({
44783
- onEvent: "view-ds"
44784
- }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewDS", null);
44785
- __decorate([Action({
44786
- onEvent: "add-new"
44787
- }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "addNew", null);
44788
- }
44789
- };
44790
- });
44791
- //# sourceMappingURL=DnsZoneListPage.js.map
44792
-
44793
44651
  AmdLoader.instance.setup("@web-atoms/web-controls/dist/basic/ComboBox");
44794
44652
 
44795
44653
  System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "@web-atoms/core/dist/core/XNode", "./AtomRepeater"], function (_export, _context) {
@@ -45194,6 +45052,158 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
45194
45052
  });
45195
45053
  //# sourceMappingURL=DnsZoneEditorPage.js.map
45196
45054
 
45055
+ AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/pages/dns/DnsZoneListPage");
45056
+
45057
+ 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) {
45058
+ "use strict";
45059
+
45060
+ var __awaiter, __decorate, __metadata, InjectProperty, XNode, AtomRepeater, Action, PopupService, InfiniteRepeater, DnsZoneService, HostedZone, Bind, MasterDetailPage, DnsZoneEditorPage, DnsZoneListPage;
45061
+ _export("default", void 0);
45062
+ return {
45063
+ setters: [function (_tslib) {
45064
+ __awaiter = _tslib.__awaiter;
45065
+ __decorate = _tslib.__decorate;
45066
+ __metadata = _tslib.__metadata;
45067
+ }, function (_webAtomsCoreDistCoreInjectProperty) {
45068
+ InjectProperty = _webAtomsCoreDistCoreInjectProperty.default;
45069
+ }, function (_webAtomsCoreDistCoreXNode) {
45070
+ XNode = _webAtomsCoreDistCoreXNode.default;
45071
+ }, function (_webAtomsWebControlsDistBasicAtomRepeater) {
45072
+ AtomRepeater = _webAtomsWebControlsDistBasicAtomRepeater.default;
45073
+ }, function (_webAtomsCoreDistViewModelAction) {
45074
+ Action = _webAtomsCoreDistViewModelAction.default;
45075
+ }, function (_webAtomsCoreDistWebServicesPopupService) {
45076
+ PopupService = _webAtomsCoreDistWebServicesPopupService.default;
45077
+ }, function (_controlsRepeaterInfiniteRepeater) {
45078
+ InfiniteRepeater = _controlsRepeaterInfiniteRepeater.default;
45079
+ }, function (_DnsZoneService) {
45080
+ DnsZoneService = _DnsZoneService.default;
45081
+ }, function (_modelModel) {
45082
+ HostedZone = _modelModel.HostedZone;
45083
+ }, function (_webAtomsCoreDistCoreBind) {
45084
+ Bind = _webAtomsCoreDistCoreBind.default;
45085
+ }, function (_webAtomsWebControlsDistMobileAppMasterDetailPage) {
45086
+ MasterDetailPage = _webAtomsWebControlsDistMobileAppMasterDetailPage.default;
45087
+ }, function (_editDnsZoneEditorPage) {
45088
+ DnsZoneEditorPage = _editDnsZoneEditorPage.default;
45089
+ }],
45090
+ execute: function () {
45091
+ _export("default", DnsZoneListPage = class DnsZoneListPage extends MasterDetailPage {
45092
+ constructor() {
45093
+ super(...arguments);
45094
+ this.start = 0;
45095
+ this.size = 100;
45096
+ this.version = 1;
45097
+ this.search = "";
45098
+ this.zones = [];
45099
+ }
45100
+ init() {
45101
+ return __awaiter(this, void 0, void 0, function* () {
45102
+ this.headerRenderer = () => XNode.create("div", {
45103
+ "data-layout": "header-row"
45104
+ }, XNode.create("input", {
45105
+ type: "search",
45106
+ value: Bind.twoWaysImmediate(() => this.search)
45107
+ }));
45108
+ this.renderer = XNode.create("div", null, XNode.create(AtomRepeater, Object.assign({
45109
+ "data-layout": "data-grid",
45110
+ "data-selection-updated-event": "item-selected",
45111
+ selectOnClick: true,
45112
+ items: this.zones
45113
+ }, InfiniteRepeater.pagedItems(start => (c, e, cancelToken) => this.dnsZoneService.list({
45114
+ search: this.search,
45115
+ start,
45116
+ cancelToken,
45117
+ version: this.version
45118
+ })), {
45119
+ itemRenderer: item => XNode.create("div", null, XNode.create("label", {
45120
+ text: item.domain.name
45121
+ }), XNode.create("i", {
45122
+ title: "View Zone File",
45123
+ class: "fa-regular fa-file-lines",
45124
+ "data-click-event": "view-zone"
45125
+ }), XNode.create("i", {
45126
+ title: "Delete Zone",
45127
+ class: "fas fa-trash-can",
45128
+ "data-click-event": "delete-zone"
45129
+ }))
45130
+ })));
45131
+ this.footerRenderer = () => XNode.create("div", {
45132
+ "data-layout": "command-row"
45133
+ }, XNode.create("button", {
45134
+ "data-click-event": "add-new",
45135
+ text: "Add"
45136
+ }));
45137
+ });
45138
+ }
45139
+ deleteZone(zone) {
45140
+ return __awaiter(this, void 0, void 0, function* () {
45141
+ zone.$deleted = true;
45142
+ yield this.dnsZoneService.save(zone);
45143
+ this.zones.remove(zone);
45144
+ this.version++;
45145
+ });
45146
+ }
45147
+ itemSelected(_a) {
45148
+ return __awaiter(this, arguments, void 0, function* ([domain]) {
45149
+ if (!domain) {
45150
+ return;
45151
+ }
45152
+ this.openDetail(DnsZoneEditorPage, domain);
45153
+ });
45154
+ }
45155
+ viewZone(zone) {
45156
+ return __awaiter(this, void 0, void 0, function* () {
45157
+ yield PopupService.alert({
45158
+ title: zone.domain.name,
45159
+ message: XNode.create("div", null, XNode.create("pre", null, zone.unsigned))
45160
+ });
45161
+ });
45162
+ }
45163
+ viewDS(zone) {
45164
+ return __awaiter(this, void 0, void 0, function* () {
45165
+ yield PopupService.alert({
45166
+ title: zone.domain.name,
45167
+ message: XNode.create("div", null, XNode.create("pre", null, zone.digest))
45168
+ });
45169
+ });
45170
+ }
45171
+ addNew() {
45172
+ return __awaiter(this, void 0, void 0, function* () {
45173
+ const zone = prompt("Add host");
45174
+ if (!zone) {
45175
+ return;
45176
+ }
45177
+ yield this.dnsZoneService.save(HostedZone.create({
45178
+ zone
45179
+ }));
45180
+ this.version++;
45181
+ });
45182
+ }
45183
+ });
45184
+ __decorate([InjectProperty, __metadata("design:type", DnsZoneService)], DnsZoneListPage.prototype, "dnsZoneService", void 0);
45185
+ __decorate([Action({
45186
+ onEvent: "delete-zone",
45187
+ confirm: "Are you sure you want to delete this zone?"
45188
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "deleteZone", null);
45189
+ __decorate([Action({
45190
+ onEvent: "item-selected",
45191
+ defer: 10
45192
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "itemSelected", null);
45193
+ __decorate([Action({
45194
+ onEvent: "view-zone"
45195
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewZone", null);
45196
+ __decorate([Action({
45197
+ onEvent: "view-ds"
45198
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewDS", null);
45199
+ __decorate([Action({
45200
+ onEvent: "add-new"
45201
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "addNew", null);
45202
+ }
45203
+ };
45204
+ });
45205
+ //# sourceMappingURL=DnsZoneListPage.js.map
45206
+
45197
45207
  AmdLoader.instance.setup("@web-atoms/web-controls/dist/basic/PinchZoomView");
45198
45208
 
45199
45209
  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) {