mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-08-07 17:48:54 +00:00
[ADF-1534] Automatic PDF rendering for unsupported types. (#2313)
* move viewer dialog to a separate folder * make dialog take full screen size * automatic PDF conversion * mime type icon in the title * [ADF-1530] correct plain text viewer resolving * separate lightweigh pdf view for the dialog
This commit is contained in:
committed by
Popovics András
parent
3ba93a6840
commit
1cf2db48ac
@@ -122,6 +122,7 @@ import { NodePermissionDirective } from './src/directives/node-permission.direct
|
||||
import { UploadDirective } from './src/directives/upload.directive';
|
||||
|
||||
import { FileSizePipe } from './src/pipes/file-size.pipe';
|
||||
import { MimeTypeIconPipe } from './src/pipes/mime-type-icon.pipe';
|
||||
import { HighlightPipe } from './src/pipes/text-highlight.pipe';
|
||||
import { TimeAgoPipe } from './src/pipes/time-ago.pipe';
|
||||
|
||||
@@ -193,7 +194,8 @@ export function providers() {
|
||||
SharedLinksApiService,
|
||||
SitesApiService,
|
||||
DiscoveryApiService,
|
||||
HighlightTransformService
|
||||
HighlightTransformService,
|
||||
MomentDateAdapter
|
||||
];
|
||||
}
|
||||
|
||||
@@ -212,6 +214,15 @@ export function obsoleteMdlDirectives() {
|
||||
];
|
||||
}
|
||||
|
||||
export function pipes() {
|
||||
return [
|
||||
FileSizePipe,
|
||||
HighlightPipe,
|
||||
TimeAgoPipe,
|
||||
MimeTypeIconPipe
|
||||
];
|
||||
}
|
||||
|
||||
export function createTranslateLoader(http: Http, logService: LogService) {
|
||||
return new AlfrescoTranslateLoader(http, logService);
|
||||
}
|
||||
@@ -240,6 +251,7 @@ export function createTranslateLoader(http: Http, logService: LogService) {
|
||||
],
|
||||
declarations: [
|
||||
...obsoleteMdlDirectives(),
|
||||
...pipes(),
|
||||
UploadDirective,
|
||||
NodePermissionDirective,
|
||||
HighlightDirective,
|
||||
@@ -251,16 +263,12 @@ export function createTranslateLoader(http: Http, logService: LogService) {
|
||||
InfoDrawerTitleDirective,
|
||||
InfoDrawerButtonsDirective,
|
||||
InfoDrawerContentDirective,
|
||||
FileSizePipe,
|
||||
HighlightPipe,
|
||||
TimeAgoPipe,
|
||||
CreateFolderDialogComponent,
|
||||
DownloadZipDialogComponent
|
||||
],
|
||||
providers: [
|
||||
...providers(),
|
||||
...deprecatedProviders(),
|
||||
MomentDateAdapter,
|
||||
{
|
||||
provide: TRANSLATION_PROVIDER,
|
||||
multi: true,
|
||||
@@ -284,14 +292,12 @@ export function createTranslateLoader(http: Http, logService: LogService) {
|
||||
PaginationModule,
|
||||
ToolbarModule,
|
||||
...obsoleteMdlDirectives(),
|
||||
...pipes(),
|
||||
UploadDirective,
|
||||
NodePermissionDirective,
|
||||
HighlightDirective,
|
||||
DataColumnComponent,
|
||||
DataColumnListComponent,
|
||||
FileSizePipe,
|
||||
HighlightPipe,
|
||||
TimeAgoPipe,
|
||||
CreateFolderDialogComponent,
|
||||
DownloadZipDialogComponent,
|
||||
InfoDrawerComponent,
|
||||
|
Reference in New Issue
Block a user