forked from geolba/tethys.frontend
315f845292
- use newest typescript version ^4.5.2 - new images for starting page
51 lines
990 B
TypeScript
51 lines
990 B
TypeScript
export interface SolrSettings {
|
|
core: string;
|
|
host: string;
|
|
}
|
|
|
|
export class ActiveFilterCategories {
|
|
// count: number;
|
|
// language!: Array<string>;
|
|
// subject!: Array<string>;
|
|
[key: string]: Array<string>;
|
|
}
|
|
|
|
// export class ActiveFilterCategory {
|
|
// key!: string;
|
|
// values!: Array<string>;
|
|
|
|
// // [key: string]: Array<string>;
|
|
// }
|
|
|
|
export class FilterItem {
|
|
private category: string;
|
|
val: string;
|
|
count: number;
|
|
private active: boolean;
|
|
|
|
constructor(value: string, count: number) {
|
|
this.val = value;
|
|
this.count = count;
|
|
this.active = false;
|
|
this.category = "";
|
|
}
|
|
|
|
//#region properties
|
|
|
|
get Category(): string {
|
|
return this.category;
|
|
}
|
|
set Category(theCategory: string) {
|
|
this.category = theCategory;
|
|
}
|
|
|
|
get Active(): boolean {
|
|
return this.active;
|
|
}
|
|
set Active(isActive: boolean) {
|
|
this.active = isActive;
|
|
}
|
|
|
|
//#endregion
|
|
}
|