mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-2531] support for AoT and production builds (#3110)
* fix translation for Core module * fix datatable reference * fix issue with duplicate pipe and i18n error * fixes for upload service cutomisation (process services) * demo shell fixes * fix search component * remove unused declaration * update tests * remove fdescribe
This commit is contained in:
committed by
Eugenio Romano
parent
7358563b09
commit
5c4a18dd48
@@ -20,7 +20,7 @@ import { FlexLayoutModule } from '@angular/flex-layout';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { CardViewModule , FileSizePipe } from '@alfresco/adf-core';
|
||||
import { CardViewModule } from '@alfresco/adf-core';
|
||||
import { ContentMetadataComponent } from './components/content-metadata/content-metadata.component';
|
||||
import { ContentMetadataCardComponent } from './components/content-metadata-card/content-metadata-card.component';
|
||||
import { PropertyDescriptorsService } from './services/property-descriptors.service';
|
||||
@@ -50,8 +50,7 @@ import { PropertyGroupTranslatorService } from './services/property-groups-trans
|
||||
PropertyDescriptorsService,
|
||||
ContentMetadataConfigFactory,
|
||||
BasicPropertiesService,
|
||||
PropertyGroupTranslatorService,
|
||||
FileSizePipe
|
||||
PropertyGroupTranslatorService
|
||||
]
|
||||
})
|
||||
export class ContentMetadataModule {}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<adf-datatable
|
||||
#dataTable
|
||||
[selectionMode]="selectionMode"
|
||||
[data]="data"
|
||||
[actions]="contentActions"
|
||||
|
||||
@@ -229,7 +229,7 @@ export class DocumentListComponent implements OnInit, OnChanges, OnDestroy, Afte
|
||||
@Output()
|
||||
error: EventEmitter<any> = new EventEmitter();
|
||||
|
||||
@ViewChild(DataTableComponent)
|
||||
@ViewChild('dataTable')
|
||||
dataTable: DataTableComponent;
|
||||
|
||||
errorMessage;
|
||||
|
||||
@@ -21,7 +21,7 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { MaterialModule } from '../material.module';
|
||||
|
||||
import { PipeModule, SearchService } from '@alfresco/adf-core';
|
||||
import { PipeModule } from '@alfresco/adf-core';
|
||||
|
||||
import { SearchTriggerDirective } from './components/search-trigger.directive';
|
||||
|
||||
@@ -36,10 +36,6 @@ export const ALFRESCO_SEARCH_DIRECTIVES: any[] = [
|
||||
EmptySearchResultComponent
|
||||
];
|
||||
|
||||
export const ALFRESCO_SEARCH_PROVIDERS: any[] = [
|
||||
SearchService
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
@@ -52,9 +48,6 @@ export const ALFRESCO_SEARCH_PROVIDERS: any[] = [
|
||||
declarations: [
|
||||
...ALFRESCO_SEARCH_DIRECTIVES
|
||||
],
|
||||
providers: [
|
||||
...ALFRESCO_SEARCH_PROVIDERS
|
||||
],
|
||||
exports: [
|
||||
...ALFRESCO_SEARCH_DIRECTIVES
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user