@sprucelabs/spruce-calendar-components 22.10.3 → 22.10.4
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.
|
@@ -77,15 +77,23 @@ export default class PersonSelectToolViewController extends AbstractViewControll
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
ListVc() {
|
|
80
|
+
const team = this.people.getTeam();
|
|
81
|
+
team.sort((a, b) => {
|
|
82
|
+
return a.casualName > b.casualName ? 1 : -1;
|
|
83
|
+
});
|
|
80
84
|
return this.Controller('list', {
|
|
81
|
-
columnWidths: ['fill'],
|
|
82
|
-
rows:
|
|
85
|
+
columnWidths: ['content', 'fill'],
|
|
86
|
+
rows: team.map((p) => this.renderRow(p)),
|
|
83
87
|
});
|
|
84
88
|
}
|
|
85
89
|
renderRow(person) {
|
|
90
|
+
var _a;
|
|
86
91
|
return {
|
|
87
92
|
id: person.id,
|
|
88
93
|
cells: [
|
|
94
|
+
{
|
|
95
|
+
avatars: ((_a = person.avatar) === null || _a === void 0 ? void 0 : _a.mUri) ? [person.avatar.mUri] : undefined,
|
|
96
|
+
},
|
|
89
97
|
{
|
|
90
98
|
text: {
|
|
91
99
|
content: person.id === this.loggedInPersonId ? 'You' : person.casualName,
|
|
@@ -68,15 +68,23 @@ class PersonSelectToolViewController extends heartwood_view_controllers_1.Abstra
|
|
|
68
68
|
return this.updatePromise;
|
|
69
69
|
}
|
|
70
70
|
ListVc() {
|
|
71
|
+
const team = this.people.getTeam();
|
|
72
|
+
team.sort((a, b) => {
|
|
73
|
+
return a.casualName > b.casualName ? 1 : -1;
|
|
74
|
+
});
|
|
71
75
|
return this.Controller('list', {
|
|
72
|
-
columnWidths: ['fill'],
|
|
73
|
-
rows:
|
|
76
|
+
columnWidths: ['content', 'fill'],
|
|
77
|
+
rows: team.map((p) => this.renderRow(p)),
|
|
74
78
|
});
|
|
75
79
|
}
|
|
76
80
|
renderRow(person) {
|
|
81
|
+
var _a;
|
|
77
82
|
return {
|
|
78
83
|
id: person.id,
|
|
79
84
|
cells: [
|
|
85
|
+
{
|
|
86
|
+
avatars: ((_a = person.avatar) === null || _a === void 0 ? void 0 : _a.mUri) ? [person.avatar.mUri] : undefined,
|
|
87
|
+
},
|
|
80
88
|
{
|
|
81
89
|
text: {
|
|
82
90
|
content: person.id === this.loggedInPersonId ? 'You' : person.casualName,
|