Add simple tree graph mode (#4)
All checks were successful
continuous-integration/drone/push Build is passing

Add a new kind of family tree: simple tree

Reviewed-on: #4
This commit is contained in:
2023-08-26 13:59:58 +00:00
parent 635fb667e1
commit 8086c1b4c9
9 changed files with 499 additions and 4 deletions

View File

@ -107,12 +107,16 @@ export class Member implements MemberDataApi {
});
}
get lastNameUpperCase(): string | undefined {
return this.last_name?.toUpperCase();
}
get fullName(): string {
const firstName = this.first_name ?? "";
return firstName.length === 0
? this.last_name ?? ""
: `${firstName} ${this.last_name ?? ""}`;
: `${firstName} ${this.last_name?.toUpperCase() ?? ""}`;
}
get invertedFullName(): string {
@ -159,6 +163,13 @@ export class Member implements MemberDataApi {
};
}
get displayBirthDeath(): string {
let birthDeath = [];
if (this.dateOfBirth) birthDeath.push(fmtDate(this.dateOfBirth));
if (this.dateOfDeath) birthDeath.push(fmtDate(this.dateOfDeath));
return birthDeath.join(" - ");
}
get hasContactInfo(): boolean {
return this.email ||
this.phone ||