import * as i0 from '@angular/core'; import { OnInit, EventEmitter, OnChanges, SimpleChanges } from '@angular/core'; import { User, Attachment, RCConfiguredFolder, RCFolder, Suggestion, RCAttachedResource, RCResource, RCResourceFormats, Team } from 'idea-toolbox'; import { Routes } from '@angular/router'; import { IDEATranslationsService } from '@idea-ionic/common'; import { IDEAOfflineService } from '@idea-ionic/uncommon'; import { IonSearchbar, IonInfiniteScroll, IonRefresher } from '@ionic/angular/standalone'; declare class IDEAAccountPage implements OnInit { protected _env: any; private _tc; private _nav; private _alert; private _loading; private _message; private _API; private _translate; user: User; newEmail: string; newPassword: string; newPasswordConfirm: string; ngOnInit(): void; updateEmail(): Promise; updatePassword(): Promise; deleteUser(): Promise; close(errorMessage?: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare const ideaAccountRoutes: Routes; declare class IDEAttachmentsComponent implements OnInit { private _platform; private _loading; private _message; private _tc; private _api; _offline: IDEAOfflineService; _translate: IDEATranslationsService; /** * The team from which we want to load the resources. Default: try to guess current team. */ team: string | null; /** * The path to the online API resource, as an array. Don't include the team. E.g. `['entities', entityId]`. */ pathResource: string[]; /** * The array in which we want to add/remove attachments. */ attachments: Attachment[] | null; /** * Regulate the mode (view/edit). */ editMode: boolean; /** * Show errors as reported from the parent component. */ errors: Set; /** * The lines attribute of the item. */ lines: string; /** * URL towards to make API requests, based on the path of the resource. */ requestURL: string; /** * Stack of errors from the last upload. */ uploadErrors: string[]; ngOnInit(): void; isCapacitor(): boolean; hasFieldAnError(field: string): boolean; browseFiles(): void; addAttachmentFromFile(ev: any): void; takePictureAndAttach(ev: Event): Promise; private base64toBlob; private addAttachment; removeAttachment(attachment: Attachment): void; openAttachment(attachment: Attachment): Promise; getFormatIcon(format: string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class IDEARCConfiguratorComponent implements OnInit { private _message; private _tc; private _API; /** * The team from which we want to load the resources. Default: try to guess current team. */ team: string; /** * The folder we want to configure with the Resource Center folder. */ folder: RCConfiguredFolder; /** * The label for the field. */ label: string; /** * Regulate the mode (view/edit). */ editMode: boolean; /** * The lines attribute of the item. */ lines: string; /** * The icon for the field. */ icon: string; /** * The color of the icon. */ iconColor: string; /** * Icon select. */ iconSelect: EventEmitter; folders: RCFolder[]; foldersSuggestions: Suggestion[]; ngOnInit(): Promise; setFolder(folderId?: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class IDEARCFoldersComponent implements OnInit { private _tc; private _modal; private _alert; private _loading; private _message; private _translate; private _API; _offline: IDEAOfflineService; /** * The id of the team from which we want to load the resources. Default: try to guess current team. */ teamId: string; /** * Whether the user has permissions to manage the resource center. */ admin: boolean; folders: RCFolder[]; filteredFolders: RCFolder[]; currentPage: number; searchbar: IonSearchbar; ngOnInit(): void; loadFolders(getFromNetwork?: boolean): Promise; search(toSearch?: string, scrollToNextPage?: IonInfiniteScroll): void; doRefresh(refresher?: IonRefresher): void; openFolder(folder: RCFolder): void; newFolder(): Promise; renameFolder(folder: RCFolder, event?: any): Promise; deleteFolder(folder: RCFolder, event?: any): Promise; close(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class IDEARCPickerComponent implements OnChanges { private _loading; private _message; private _tc; private _API; _offline: IDEAOfflineService; _translate: IDEATranslationsService; /** * The team from which we want to load the resources. Default: try to guess current team. */ team: string; /** * The folder of which to load the resources. */ folder: RCConfiguredFolder; /** * The array in which we want to add/remove resources. */ attachedResources: RCAttachedResource[]; /** * Regulate the mode (view/edit). */ editMode: boolean; /** * The lines attribute of the item. */ lines: string; resources: RCResource[]; resourcesSuggestions: Suggestion[]; ngOnChanges(changes: SimpleChanges): Promise; addResource(resourceId: string): void; removeResource(resource: RCAttachedResource): void; openResource(resource: RCAttachedResource, latestVersion?: boolean): Promise; getFormatIcon(format: RCResourceFormats | string): string; isResourceNewerVersionAvailable(attachedResource: RCAttachedResource): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class IDEARCResourcesComponent implements OnInit { private _tc; private _modal; private _alert; private _actions; private _loading; private _message; private _translate; private _API; _offline: IDEAOfflineService; /** * The id of the team from which we want to load the resources. Default: try to guess current team. */ teamId: string; /** * The Resource Center's folder of which to show the resources. */ folder: RCFolder; /** * Whether the user has permissions to manage the resource center. */ admin: boolean; resources: RCResource[]; filteredResources: RCResource[]; currentPage: number; searchbar: IonSearchbar; uploadErrors: string[]; ngOnInit(): void; loadResources(getFromNetwork?: boolean): Promise; search(toSearch?: string, scrollToNextPage?: IonInfiniteScroll): void; doRefresh(refresher?: IonRefresher): void; openResource(resource: RCResource): Promise; getFormatIcon(format: RCResourceFormats): string; actionsOnResource(res: RCResource): Promise; browseUpdateResource(res: RCResource): void; updateResource(res: RCResource, ev: any): Promise; renameResource(res: RCResource): Promise; deleteResource(res: RCResource): Promise; browseUploadNewResource(): void; uploadNewResources(ev: any): Promise; uploadFile(file: File, existingRes?: RCResource): Promise; close(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class IDEATeamsPage implements OnInit { protected _env: any; private _tc; private _nav; private _loading; private _message; private _API; private _translate; user: User; teams: Team[]; project: string; ngOnInit(): void; loadTeams(): Promise; selectTeam(team: Team): Promise; aTeamIsSelected(): boolean; teamIsActiveOnProject(team: Team): boolean; isCurrentTeam(team: Team): boolean; getProjectName(project: string): string; openAccount(): void; close(errorMessage?: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare const ideaTeamsRoutes: Routes; export { IDEAAccountPage, IDEARCConfiguratorComponent, IDEARCFoldersComponent, IDEARCPickerComponent, IDEARCResourcesComponent, IDEATeamsPage, IDEAttachmentsComponent, ideaAccountRoutes, ideaTeamsRoutes };