@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.
@@ -46679,148 +46679,6 @@ System.register(["tslib", "@web-atoms/core/dist/di/Inject", "../../../services/E
46679
46679
  });
46680
46680
  //# sourceMappingURL=DnsZoneService.js.map
46681
46681
 
46682
- AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/pages/dns/DnsZoneListPage");
46683
-
46684
- 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) {
46685
- "use strict";
46686
-
46687
- var __awaiter, __decorate, __metadata, InjectProperty, XNode, AtomRepeater, ContentPage, Action, PopupService, InfiniteRepeater, CommonCommands, DnsZoneService, HostedZone, Bind, DnsZoneListPage;
46688
- _export("default", void 0);
46689
- return {
46690
- setters: [function (_tslib) {
46691
- __awaiter = _tslib.__awaiter;
46692
- __decorate = _tslib.__decorate;
46693
- __metadata = _tslib.__metadata;
46694
- }, function (_webAtomsCoreDistCoreInjectProperty) {
46695
- InjectProperty = _webAtomsCoreDistCoreInjectProperty.default;
46696
- }, function (_webAtomsCoreDistCoreXNode) {
46697
- XNode = _webAtomsCoreDistCoreXNode.default;
46698
- }, function (_webAtomsWebControlsDistBasicAtomRepeater) {
46699
- AtomRepeater = _webAtomsWebControlsDistBasicAtomRepeater.default;
46700
- }, function (_webAtomsWebControlsDistMobileAppMobileApp) {
46701
- ContentPage = _webAtomsWebControlsDistMobileAppMobileApp.ContentPage;
46702
- }, function (_webAtomsCoreDistViewModelAction) {
46703
- Action = _webAtomsCoreDistViewModelAction.default;
46704
- }, function (_webAtomsCoreDistWebServicesPopupService) {
46705
- PopupService = _webAtomsCoreDistWebServicesPopupService.default;
46706
- }, function (_controlsRepeaterInfiniteRepeater) {
46707
- InfiniteRepeater = _controlsRepeaterInfiniteRepeater.default;
46708
- }, function (_commandsCommonCommands) {
46709
- CommonCommands = _commandsCommonCommands.default;
46710
- }, function (_DnsZoneService) {
46711
- DnsZoneService = _DnsZoneService.default;
46712
- }, function (_modelModel) {
46713
- HostedZone = _modelModel.HostedZone;
46714
- }, function (_webAtomsCoreDistCoreBind) {
46715
- Bind = _webAtomsCoreDistCoreBind.default;
46716
- }],
46717
- execute: function () {
46718
- _export("default", DnsZoneListPage = class DnsZoneListPage extends ContentPage {
46719
- constructor() {
46720
- super(...arguments);
46721
- this.start = 0;
46722
- this.size = 100;
46723
- this.version = 1;
46724
- this.search = "";
46725
- this.zones = [];
46726
- }
46727
- init() {
46728
- return __awaiter(this, void 0, void 0, function* () {
46729
- this.headerRenderer = () => XNode.create("div", {
46730
- "data-layout": "header-row"
46731
- }, XNode.create("input", {
46732
- type: "search",
46733
- value: Bind.twoWaysImmediate(() => this.search)
46734
- }));
46735
- this.renderer = XNode.create("div", null, XNode.create(AtomRepeater, Object.assign({
46736
- "data-layout": "data-grid",
46737
- items: this.zones
46738
- }, InfiniteRepeater.pagedItems(start => (c, e, cancelToken) => this.dnsZoneService.list({
46739
- search: this.search,
46740
- start,
46741
- cancelToken,
46742
- version: this.version
46743
- })), {
46744
- itemRenderer: item => XNode.create("div", null, XNode.create("a", {
46745
- "data-click-event": "route",
46746
- href: CommonCommands.editDnsZone.displayRoute({
46747
- zoneID: item.zoneID
46748
- }),
46749
- text: item.domain.name
46750
- }), XNode.create("i", {
46751
- title: "View Zone File",
46752
- class: "fa-regular fa-file-lines",
46753
- "data-click-event": "view-zone"
46754
- }), XNode.create("i", {
46755
- title: "Delete Zone",
46756
- class: "fas fa-trash-can",
46757
- "data-click-event": "delete-zone"
46758
- }))
46759
- })));
46760
- this.footerRenderer = () => XNode.create("div", {
46761
- "data-layout": "command-row"
46762
- }, XNode.create("button", {
46763
- "data-click-event": "add-new",
46764
- text: "Add"
46765
- }));
46766
- });
46767
- }
46768
- deleteZone(zone) {
46769
- return __awaiter(this, void 0, void 0, function* () {
46770
- zone.$deleted = true;
46771
- yield this.dnsZoneService.save(zone);
46772
- this.zones.remove(zone);
46773
- this.version++;
46774
- });
46775
- }
46776
- viewZone(zone) {
46777
- return __awaiter(this, void 0, void 0, function* () {
46778
- yield PopupService.alert({
46779
- title: zone.domain.name,
46780
- message: XNode.create("div", null, XNode.create("pre", null, zone.unsigned))
46781
- });
46782
- });
46783
- }
46784
- viewDS(zone) {
46785
- return __awaiter(this, void 0, void 0, function* () {
46786
- yield PopupService.alert({
46787
- title: zone.domain.name,
46788
- message: XNode.create("div", null, XNode.create("pre", null, zone.digest))
46789
- });
46790
- });
46791
- }
46792
- addNew() {
46793
- return __awaiter(this, void 0, void 0, function* () {
46794
- const zone = prompt("Add host");
46795
- if (!zone) {
46796
- return;
46797
- }
46798
- yield this.dnsZoneService.save(HostedZone.create({
46799
- zone
46800
- }));
46801
- this.version++;
46802
- });
46803
- }
46804
- });
46805
- __decorate([InjectProperty, __metadata("design:type", DnsZoneService)], DnsZoneListPage.prototype, "dnsZoneService", void 0);
46806
- __decorate([Action({
46807
- onEvent: "delete-zone",
46808
- confirm: "Are you sure you want to delete this zone?"
46809
- }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "deleteZone", null);
46810
- __decorate([Action({
46811
- onEvent: "view-zone"
46812
- }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewZone", null);
46813
- __decorate([Action({
46814
- onEvent: "view-ds"
46815
- }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewDS", null);
46816
- __decorate([Action({
46817
- onEvent: "add-new"
46818
- }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "addNew", null);
46819
- }
46820
- };
46821
- });
46822
- //# sourceMappingURL=DnsZoneListPage.js.map
46823
-
46824
46682
  AmdLoader.instance.setup("@web-atoms/web-controls/dist/basic/ComboBox");
46825
46683
 
46826
46684
  System.register(["tslib", "@web-atoms/core/dist/core/BindableProperty", "@web-atoms/core/dist/core/XNode", "./AtomRepeater"], function (_export, _context) {
@@ -47225,6 +47083,158 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "@web-atom
47225
47083
  });
47226
47084
  //# sourceMappingURL=DnsZoneEditorPage.js.map
47227
47085
 
47086
+ AmdLoader.instance.setup("@social-mail/social-mail-client/dist/common/pages/dns/DnsZoneListPage");
47087
+
47088
+ 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) {
47089
+ "use strict";
47090
+
47091
+ var __awaiter, __decorate, __metadata, InjectProperty, XNode, AtomRepeater, Action, PopupService, InfiniteRepeater, DnsZoneService, HostedZone, Bind, MasterDetailPage, DnsZoneEditorPage, DnsZoneListPage;
47092
+ _export("default", void 0);
47093
+ return {
47094
+ setters: [function (_tslib) {
47095
+ __awaiter = _tslib.__awaiter;
47096
+ __decorate = _tslib.__decorate;
47097
+ __metadata = _tslib.__metadata;
47098
+ }, function (_webAtomsCoreDistCoreInjectProperty) {
47099
+ InjectProperty = _webAtomsCoreDistCoreInjectProperty.default;
47100
+ }, function (_webAtomsCoreDistCoreXNode) {
47101
+ XNode = _webAtomsCoreDistCoreXNode.default;
47102
+ }, function (_webAtomsWebControlsDistBasicAtomRepeater) {
47103
+ AtomRepeater = _webAtomsWebControlsDistBasicAtomRepeater.default;
47104
+ }, function (_webAtomsCoreDistViewModelAction) {
47105
+ Action = _webAtomsCoreDistViewModelAction.default;
47106
+ }, function (_webAtomsCoreDistWebServicesPopupService) {
47107
+ PopupService = _webAtomsCoreDistWebServicesPopupService.default;
47108
+ }, function (_controlsRepeaterInfiniteRepeater) {
47109
+ InfiniteRepeater = _controlsRepeaterInfiniteRepeater.default;
47110
+ }, function (_DnsZoneService) {
47111
+ DnsZoneService = _DnsZoneService.default;
47112
+ }, function (_modelModel) {
47113
+ HostedZone = _modelModel.HostedZone;
47114
+ }, function (_webAtomsCoreDistCoreBind) {
47115
+ Bind = _webAtomsCoreDistCoreBind.default;
47116
+ }, function (_webAtomsWebControlsDistMobileAppMasterDetailPage) {
47117
+ MasterDetailPage = _webAtomsWebControlsDistMobileAppMasterDetailPage.default;
47118
+ }, function (_editDnsZoneEditorPage) {
47119
+ DnsZoneEditorPage = _editDnsZoneEditorPage.default;
47120
+ }],
47121
+ execute: function () {
47122
+ _export("default", DnsZoneListPage = class DnsZoneListPage extends MasterDetailPage {
47123
+ constructor() {
47124
+ super(...arguments);
47125
+ this.start = 0;
47126
+ this.size = 100;
47127
+ this.version = 1;
47128
+ this.search = "";
47129
+ this.zones = [];
47130
+ }
47131
+ init() {
47132
+ return __awaiter(this, void 0, void 0, function* () {
47133
+ this.headerRenderer = () => XNode.create("div", {
47134
+ "data-layout": "header-row"
47135
+ }, XNode.create("input", {
47136
+ type: "search",
47137
+ value: Bind.twoWaysImmediate(() => this.search)
47138
+ }));
47139
+ this.renderer = XNode.create("div", null, XNode.create(AtomRepeater, Object.assign({
47140
+ "data-layout": "data-grid",
47141
+ "data-selection-updated-event": "item-selected",
47142
+ selectOnClick: true,
47143
+ items: this.zones
47144
+ }, InfiniteRepeater.pagedItems(start => (c, e, cancelToken) => this.dnsZoneService.list({
47145
+ search: this.search,
47146
+ start,
47147
+ cancelToken,
47148
+ version: this.version
47149
+ })), {
47150
+ itemRenderer: item => XNode.create("div", null, XNode.create("label", {
47151
+ text: item.domain.name
47152
+ }), XNode.create("i", {
47153
+ title: "View Zone File",
47154
+ class: "fa-regular fa-file-lines",
47155
+ "data-click-event": "view-zone"
47156
+ }), XNode.create("i", {
47157
+ title: "Delete Zone",
47158
+ class: "fas fa-trash-can",
47159
+ "data-click-event": "delete-zone"
47160
+ }))
47161
+ })));
47162
+ this.footerRenderer = () => XNode.create("div", {
47163
+ "data-layout": "command-row"
47164
+ }, XNode.create("button", {
47165
+ "data-click-event": "add-new",
47166
+ text: "Add"
47167
+ }));
47168
+ });
47169
+ }
47170
+ deleteZone(zone) {
47171
+ return __awaiter(this, void 0, void 0, function* () {
47172
+ zone.$deleted = true;
47173
+ yield this.dnsZoneService.save(zone);
47174
+ this.zones.remove(zone);
47175
+ this.version++;
47176
+ });
47177
+ }
47178
+ itemSelected(_a) {
47179
+ return __awaiter(this, arguments, void 0, function* ([domain]) {
47180
+ if (!domain) {
47181
+ return;
47182
+ }
47183
+ this.openDetail(DnsZoneEditorPage, domain);
47184
+ });
47185
+ }
47186
+ viewZone(zone) {
47187
+ return __awaiter(this, void 0, void 0, function* () {
47188
+ yield PopupService.alert({
47189
+ title: zone.domain.name,
47190
+ message: XNode.create("div", null, XNode.create("pre", null, zone.unsigned))
47191
+ });
47192
+ });
47193
+ }
47194
+ viewDS(zone) {
47195
+ return __awaiter(this, void 0, void 0, function* () {
47196
+ yield PopupService.alert({
47197
+ title: zone.domain.name,
47198
+ message: XNode.create("div", null, XNode.create("pre", null, zone.digest))
47199
+ });
47200
+ });
47201
+ }
47202
+ addNew() {
47203
+ return __awaiter(this, void 0, void 0, function* () {
47204
+ const zone = prompt("Add host");
47205
+ if (!zone) {
47206
+ return;
47207
+ }
47208
+ yield this.dnsZoneService.save(HostedZone.create({
47209
+ zone
47210
+ }));
47211
+ this.version++;
47212
+ });
47213
+ }
47214
+ });
47215
+ __decorate([InjectProperty, __metadata("design:type", DnsZoneService)], DnsZoneListPage.prototype, "dnsZoneService", void 0);
47216
+ __decorate([Action({
47217
+ onEvent: "delete-zone",
47218
+ confirm: "Are you sure you want to delete this zone?"
47219
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "deleteZone", null);
47220
+ __decorate([Action({
47221
+ onEvent: "item-selected",
47222
+ defer: 10
47223
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "itemSelected", null);
47224
+ __decorate([Action({
47225
+ onEvent: "view-zone"
47226
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewZone", null);
47227
+ __decorate([Action({
47228
+ onEvent: "view-ds"
47229
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "viewDS", null);
47230
+ __decorate([Action({
47231
+ onEvent: "add-new"
47232
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", []), __metadata("design:returntype", Promise)], DnsZoneListPage.prototype, "addNew", null);
47233
+ }
47234
+ };
47235
+ });
47236
+ //# sourceMappingURL=DnsZoneListPage.js.map
47237
+
47228
47238
  AmdLoader.instance.setup("@web-atoms/web-controls/dist/basic/PinchZoomView");
47229
47239
 
47230
47240
  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) {