@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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.9.36",
3
+ "version": "1.9.37",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,8 +9,10 @@ import CommonCommands from "../../commands/CommonCommands";
9
9
  import DnsZoneService from "./DnsZoneService";
10
10
  import { HostedZone, IHostedZone } from "../../../model/model";
11
11
  import Bind from "@web-atoms/core/dist/core/Bind";
12
+ import MasterDetailPage from "@web-atoms/web-controls/dist/mobile-app/MasterDetailPage";
13
+ import DnsZoneEditorPage from "./edit/DnsZoneEditorPage";
12
14
 
13
- export default class DnsZoneListPage extends ContentPage {
15
+ export default class DnsZoneListPage extends MasterDetailPage {
14
16
 
15
17
  start = 0;
16
18
  size = 100;
@@ -32,6 +34,8 @@ export default class DnsZoneListPage extends ContentPage {
32
34
  this.renderer = <div>
33
35
  <AtomRepeater
34
36
  data-layout="data-grid"
37
+ data-selection-updated-event="item-selected"
38
+ selectOnClick={true}
35
39
  items={this.zones}
36
40
  { ... InfiniteRepeater.pagedItems((start) =>
37
41
  (c, e, cancelToken) =>
@@ -42,9 +46,7 @@ export default class DnsZoneListPage extends ContentPage {
42
46
  version: this.version
43
47
  }))}
44
48
  itemRenderer={(item: IHostedZone) => <div>
45
- <a
46
- data-click-event="route"
47
- href={CommonCommands.editDnsZone.displayRoute({ zoneID: item.zoneID})}
49
+ <label
48
50
  text={item.domain.name}/>
49
51
  {/* <i
50
52
  title="View DS Records"
@@ -75,6 +77,14 @@ export default class DnsZoneListPage extends ContentPage {
75
77
  this.version++;
76
78
  }
77
79
 
80
+ @Action({ onEvent: "item-selected", defer: 10})
81
+ async itemSelected([domain]) {
82
+ if (!domain) {
83
+ return;
84
+ }
85
+ this.openDetail(DnsZoneEditorPage, domain);
86
+ }
87
+
78
88
  @Action({ onEvent: "view-zone"})
79
89
  async viewZone(zone: IHostedZone) {
80
90
  await PopupService.alert({