@sprucelabs/spruce-location-utils 5.0.23 → 5.0.26
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.
|
@@ -17,7 +17,7 @@ export default class LocationListCardViewController extends AbstractViewControll
|
|
|
17
17
|
private activeRecordCardVc;
|
|
18
18
|
constructor(options: LocationListCardViewControllerOptions & ViewControllerOptions);
|
|
19
19
|
private ActiveRecordCardVc;
|
|
20
|
-
private
|
|
20
|
+
private renderRow;
|
|
21
21
|
private handleDeleteLocation;
|
|
22
22
|
getCardVc(): import("@sprucelabs/heartwood-view-controllers").CardViewController;
|
|
23
23
|
getActiveRecordVc(): ActiveRecordCardViewController;
|
|
@@ -31,13 +31,13 @@ export default class LocationListCardViewController extends AbstractViewControll
|
|
|
31
31
|
},
|
|
32
32
|
payload: {},
|
|
33
33
|
responseKey: 'locations',
|
|
34
|
-
rowTransformer: this.
|
|
34
|
+
rowTransformer: this.renderRow.bind(this),
|
|
35
35
|
footer: footerButtons && {
|
|
36
36
|
buttons: footerButtons,
|
|
37
37
|
},
|
|
38
38
|
}));
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
renderRow(location) {
|
|
41
41
|
const address = location.address;
|
|
42
42
|
return {
|
|
43
43
|
id: location.id,
|
|
@@ -65,7 +65,7 @@ export default class LocationListCardViewController extends AbstractViewControll
|
|
|
65
65
|
}),
|
|
66
66
|
},
|
|
67
67
|
},
|
|
68
|
-
]
|
|
68
|
+
],
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
71
|
handleDeleteLocation(location) {
|
|
@@ -17,7 +17,7 @@ export default class LocationListCardViewController extends AbstractViewControll
|
|
|
17
17
|
private activeRecordCardVc;
|
|
18
18
|
constructor(options: LocationListCardViewControllerOptions & ViewControllerOptions);
|
|
19
19
|
private ActiveRecordCardVc;
|
|
20
|
-
private
|
|
20
|
+
private renderRow;
|
|
21
21
|
private handleDeleteLocation;
|
|
22
22
|
getCardVc(): import("@sprucelabs/heartwood-view-controllers").CardViewController;
|
|
23
23
|
getActiveRecordVc(): ActiveRecordCardViewController;
|
|
@@ -24,13 +24,13 @@ class LocationListCardViewController extends heartwood_view_controllers_1.Abstra
|
|
|
24
24
|
},
|
|
25
25
|
payload: {},
|
|
26
26
|
responseKey: 'locations',
|
|
27
|
-
rowTransformer: this.
|
|
27
|
+
rowTransformer: this.renderRow.bind(this),
|
|
28
28
|
footer: footerButtons && {
|
|
29
29
|
buttons: footerButtons,
|
|
30
30
|
},
|
|
31
31
|
}));
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
renderRow(location) {
|
|
34
34
|
const address = location.address;
|
|
35
35
|
return {
|
|
36
36
|
id: location.id,
|
|
@@ -58,7 +58,7 @@ class LocationListCardViewController extends heartwood_view_controllers_1.Abstra
|
|
|
58
58
|
},
|
|
59
59
|
},
|
|
60
60
|
},
|
|
61
|
-
]
|
|
61
|
+
],
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
async handleDeleteLocation(location) {
|