import { OnInit } from '@angular/core'; import { MatSnackBar, MatDialog } from '@angular/material'; import { MetadataService, Environment } from '../../core/public-api'; import { Organization, VocabulariesInmutableNames, JournalVersion } from '../../entities/public-api'; export declare enum JournalDataType { /** is used by default, `Journal` have not that type of data. */ default = 0, title = 1, subtitle = 2, shortname = 3, issnP = 4, issnE = 5, issnL = 6, rnpsP = 7, rnpsE = 21, url = 8, email = 9, logo = 10, purpose = 11, start_year = 12, end_year = 13, frequency = 14, seriadas_cubanas = 15, facebook = 16, twitter = 17, linkedin = 18, description = 19, term = 20, oaiurl = 22 } export declare class JournalViewComponent implements OnInit { private metadata; private env; private _snackBar; dialog: MatDialog; topMainOrganization: Organization; /**************** auxiliary variables *******************/ panelOpenState: boolean; defaultLogo: string; /** * Button roperty, is to enable or disable if there are not more versions */ isDisabledNavigatePrevious: boolean; isDisabledNavigateNext: boolean; vocabularies: typeof VocabulariesInmutableNames; /**************** journal variables *******************/ /** * Represents a Journal Object, it is a type of Source. * Need the source.version array filled */ editingJournal: JournalVersion; versions: Array; /**************** select journal version variables *******************/ /** * the current version of a Journal, (a type of Source) * it is to compare and show changes between Journal and last version of journal * iteration over journal.versions */ selectedJournal: JournalVersion; /** TODO: In the future databaseTerms and subjectTerms will be changes by * miarTerms and subjectsUnescoTerms * public miarTerms: Array; * public subjectsUnescoTerms: Array; */ /** * Properties to move between versions */ private selectedVersion; private lengthVersion; /** * Inmutables data types of Journal */ journalDataType: typeof JournalDataType; /** * version.is_current = true */ showVersions: boolean; editVersion: boolean; constructor(metadata: MetadataService, env: Environment, _snackBar: MatSnackBar, dialog: MatDialog); ngOnInit(): void; /** * Changes the selected position to the next one if possible */ nextVersion(): void; /** * Changes the selected position to the before one if possible */ previousVersion(): void; /** * Selects the selected journal as a JournalVersion */ SelectJournalVersion(): void; /** * Returns the position of the unseen version of the journal as JournalVersion */ private getSelectedJournalPosition; sourceEditDone(version: JournalVersion): void; toogleShowVersions(): void; }