43 lines
1.1 KiB
TypeScript
43 lines
1.1 KiB
TypeScript
import { Observable } from 'rxjs';
|
|
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
import { XQueryDto, XQueryResultDto } from 'x-framework-identity-sdk';
|
|
import { FilesBaseProviderPage } from '../files-base/files-base.provider.page';
|
|
|
|
@Component({
|
|
selector: 'files-explorer',
|
|
styleUrls: ['./files-explorer.page.scss'],
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
templateUrl: '../files-base/files-base.provider.page.html',
|
|
})
|
|
export class FilesExplorerPage extends FilesBaseProviderPage {
|
|
//
|
|
//#region Props ...
|
|
//#endregion
|
|
|
|
//
|
|
//#region LifeCycles ...
|
|
onInit(): void {
|
|
super.onInit();
|
|
|
|
//
|
|
this.configureAsExplorerPage();
|
|
}
|
|
//#endregion
|
|
|
|
//
|
|
//#region Abstractions ...
|
|
getModelTask(identifier: string): Observable<any> {
|
|
//
|
|
return this.sharedService.saherElmAPIService.files.fileProviderService.get(
|
|
identifier,
|
|
);
|
|
}
|
|
|
|
queryModelTask(query: XQueryDto): Observable<XQueryResultDto<any>> {
|
|
return this.sharedService.saherElmAPIService.files.fileProviderService.query(
|
|
query,
|
|
);
|
|
}
|
|
//#endregion
|
|
}
|