Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListObject Support #1

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export interface EditionConfig {
organizations: NamedEntitiesListsConfig;
relations: NamedEntitiesListsConfig;
events: NamedEntitiesListsConfig;
objects: NamedEntitiesListsConfig;
}>;
entitiesSelectItems: EntitiesSelectItemGroup[];
notSignificantVariants: string[];
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/global-lists/global-lists.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface GlobalList extends NamedEntitiesList {
})
export class GlobalListsComponent {
lists$: Observable<GlobalList[]> = this.evtModelService.namedEntities$.pipe(
map((ne) => (ne.persons.lists.concat(ne.places.lists, ne.organizations.lists, ne.events.lists))),
map((ne) => (ne.persons.lists.concat(ne.places.lists, ne.organizations.lists, ne.events.lists, ne.objects.lists))),
map((lists) => (lists.map((list) => ({
...list,
icon: this.listsIcons[list.namedEntityType] || 'list',
Expand Down
6 changes: 5 additions & 1 deletion src/app/models/evt-models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ export interface NamedEntities {
lists: NamedEntitiesList[];
entities: NamedEntity[];
};
objects: {
lists: NamedEntitiesList[];
entities: NamedEntity[];
};
}

export interface Attributes { [key: string]: string; }
Expand All @@ -93,7 +97,7 @@ export interface OriginalEncoding {
originalEncoding: OriginalEncodingNodeType;
}

export type NamedEntityType = 'person' | 'place' | 'org' | 'relation' | 'event' | 'generic';
export type NamedEntityType = 'person' | 'place' | 'org' | 'relation' | 'event' | 'object' | 'generic';
export class NamedEntitiesList extends GenericElement {
id: string;
label: string;
Expand Down
Loading