wlpacks-ontimize-web-ngx-filemanager
Version:
An implementation of file management system for Ontimize Web
81 lines (80 loc) • 3.59 kB
TypeScript
import { AfterViewInit, Injector, OnDestroy, OnInit } from '@angular/core';
import { MatDialog } from '@angular/material';
import { DialogService, OFormComponent, OnClickTableEvent, OTranslateService } from 'wlpacks-ontimize-web-ngx';
import { Subscription } from 'rxjs';
import { DomService } from '../../services/dom.service';
import { FileManagerStateService } from '../../services/filemanager-state.service';
import { FileClass } from '../../util/file.class';
import { OFileManagerTranslatePipe } from '../../util/o-filemanager-translate.pipe';
import { OFileInputExtendedComponent } from '../file-input/o-file-input-extended.component';
import { OTableExtendedComponent } from './table-extended/o-table-extended.component';
export declare const DEFAULT_INPUTS_O_FILEMANAGER_TABLE: string[];
export declare const DEFAULT_OUTPUTS_O_FILEMANAGER_TABLE: any[];
export declare class OFileManagerTableComponent implements OnInit, OnDestroy, AfterViewInit {
protected injector: Injector;
protected oForm: OFormComponent;
static DEFAULT_SERVICE_TYPE: string;
workspaceKey: string;
service: string;
parentKeys: string;
autoHideUpload: boolean;
autoHideTimeout: number;
serviceType: string;
newFolderButton: boolean;
selectAllCheckbox: string;
enabled: boolean;
queryMethod: string;
deleteMethod: string;
addFolderMethod: string;
changeNameMethod: string;
protected uploadMethod: string;
protected downloadMethod: string;
protected onFormDataSubscribe: Subscription;
protected stateService: FileManagerStateService;
protected stateSubscription: Subscription;
oTable: OTableExtendedComponent;
oFileInput: OFileInputExtendedComponent;
protected _showUploaderStatus: boolean;
protected translateService: OTranslateService;
protected translatePipe: OFileManagerTranslatePipe;
protected onLanguageChangeSubscribe: any;
protected dialog: MatDialog;
protected dialogService: DialogService;
protected doReloadQuery: boolean;
protected domService: DomService;
protected uploadProgressComponentRef: any;
protected fileChangeSubscription: Subscription;
protected downloadProgressComponentRef: any;
constructor(injector: Injector, oForm: OFormComponent);
ngOnInit(): void;
ngAfterViewInit(): void;
ngOnDestroy(): void;
translateTable(): void;
readonly uploadLabel: string;
readonly newFolderLabel: string;
readonly downloadLabel: string;
readonly changeNameLabel: string;
readonly openFolderLabel: string;
onTableDoubleClick(e: OnClickTableEvent): void;
onFileUploadClick(): void;
onUploadError(): void;
onUploadedFile(arg: any): void;
onContextOpenFolder(event: any): void;
onContextDownloadFile(): void;
onContextChangeName(event: any): void;
changeFileName(name: string, file: FileClass): void;
onContextDelete(event: any): void;
isFileContextItem(event: any): boolean;
cmShowOpenOpt(item: FileClass): boolean;
showUploaderStatus: boolean;
cancelFileUpload(file: any): void;
closeUploadProgressComponent(): void;
removeUploadProggressComponent(auto?: boolean): void;
protected destroyUploadProgress(auto?: boolean): void;
protected generateUniqueId(): string;
protected updateDownloaderStatus(downloadId: string, data: any): void;
showDownloaderStatus(downloadId: string, data: any): void;
closeDownloadProgressComponent(): void;
removeDownloadProggressComponent(auto?: boolean): void;
protected destroyDownloadProgress(auto?: boolean): void;
}