mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
[ADF-2531] Fixes for production mode (#3121)
* fix dialog module * fix social component providers * content metadata module fixes * remove empty provider sections
This commit is contained in:
parent
2940b6ce99
commit
396d9104ee
@ -79,7 +79,6 @@ const appRoutes: Routes = [
|
|||||||
DocumentlistComponent,
|
DocumentlistComponent,
|
||||||
StartProcessComponent
|
StartProcessComponent
|
||||||
],
|
],
|
||||||
providers: [],
|
|
||||||
bootstrap: [AppComponent]
|
bootstrap: [AppComponent]
|
||||||
})
|
})
|
||||||
export class AppModule { }
|
export class AppModule { }
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
import { Component, Input, OnChanges, OnInit, SimpleChanges, SimpleChange, ViewEncapsulation } from '@angular/core';
|
import { Component, Input, OnChanges, OnInit, SimpleChanges, SimpleChange, ViewEncapsulation } from '@angular/core';
|
||||||
import { MinimalNodeEntryEntity } from 'alfresco-js-api';
|
import { MinimalNodeEntryEntity } from 'alfresco-js-api';
|
||||||
import { Observable } from 'rxjs/Observable';
|
import { Observable } from 'rxjs/Observable';
|
||||||
import { CardViewItem, CardViewUpdateService, NodesApiService, LogService } from '@alfresco/adf-core';
|
import { CardViewItem, NodesApiService, LogService, CardViewUpdateService } from '@alfresco/adf-core';
|
||||||
import { ContentMetadataService } from '../../services/content-metadata.service';
|
import { ContentMetadataService } from '../../services/content-metadata.service';
|
||||||
import { CardViewGroup } from '../../interfaces/content-metadata.interfaces';
|
import { CardViewGroup } from '../../interfaces/content-metadata.interfaces';
|
||||||
|
|
||||||
@ -27,8 +27,7 @@ import { CardViewGroup } from '../../interfaces/content-metadata.interfaces';
|
|||||||
templateUrl: './content-metadata.component.html',
|
templateUrl: './content-metadata.component.html',
|
||||||
styleUrls: ['./content-metadata.component.scss'],
|
styleUrls: ['./content-metadata.component.scss'],
|
||||||
host: { 'class': 'adf-content-metadata' },
|
host: { 'class': 'adf-content-metadata' },
|
||||||
encapsulation: ViewEncapsulation.None,
|
encapsulation: ViewEncapsulation.None
|
||||||
providers: [ CardViewUpdateService ]
|
|
||||||
})
|
})
|
||||||
export class ContentMetadataComponent implements OnChanges, OnInit {
|
export class ContentMetadataComponent implements OnChanges, OnInit {
|
||||||
|
|
||||||
|
@ -23,11 +23,6 @@ import { MaterialModule } from '../material.module';
|
|||||||
import { CardViewModule } from '@alfresco/adf-core';
|
import { CardViewModule } from '@alfresco/adf-core';
|
||||||
import { ContentMetadataComponent } from './components/content-metadata/content-metadata.component';
|
import { ContentMetadataComponent } from './components/content-metadata/content-metadata.component';
|
||||||
import { ContentMetadataCardComponent } from './components/content-metadata-card/content-metadata-card.component';
|
import { ContentMetadataCardComponent } from './components/content-metadata-card/content-metadata-card.component';
|
||||||
import { PropertyDescriptorsService } from './services/property-descriptors.service';
|
|
||||||
import { ContentMetadataConfigFactory } from './services/config/content-metadata-config.factory';
|
|
||||||
import { BasicPropertiesService } from './services/basic-properties.service';
|
|
||||||
import { ContentMetadataService } from './services/content-metadata.service';
|
|
||||||
import { PropertyGroupTranslatorService } from './services/property-groups-translator.service';
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@ -44,13 +39,6 @@ import { PropertyGroupTranslatorService } from './services/property-groups-trans
|
|||||||
declarations: [
|
declarations: [
|
||||||
ContentMetadataComponent,
|
ContentMetadataComponent,
|
||||||
ContentMetadataCardComponent
|
ContentMetadataCardComponent
|
||||||
],
|
|
||||||
providers: [
|
|
||||||
ContentMetadataService,
|
|
||||||
PropertyDescriptorsService,
|
|
||||||
ContentMetadataConfigFactory,
|
|
||||||
BasicPropertiesService,
|
|
||||||
PropertyGroupTranslatorService
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class ContentMetadataModule {}
|
export class ContentMetadataModule {}
|
||||||
|
@ -15,5 +15,12 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export * from './components/content-metadata-card/content-metadata-card.component';
|
export { ContentMetadataCardComponent } from './components/content-metadata-card/content-metadata-card.component';
|
||||||
export * from './services/content-metadata.service';
|
export { BasicPropertiesService } from './services/basic-properties.service';
|
||||||
|
export { ContentMetadataService } from './services/content-metadata.service';
|
||||||
|
export { PropertyDescriptorsService } from './services/property-descriptors.service';
|
||||||
|
export { PropertyGroupTranslatorService } from './services/property-groups-translator.service';
|
||||||
|
export { AspectOrientedConfigService } from './services/config/aspect-oriented-config.service';
|
||||||
|
export { ContentMetadataConfigFactory } from './services/config/content-metadata-config.factory';
|
||||||
|
export { IndifferentConfigService } from './services/config/indifferent-config.service';
|
||||||
|
export { LayoutOrientedConfigService } from './services/config/layout-oriented-config.service';
|
||||||
|
@ -37,6 +37,12 @@ import { DialogModule } from './dialogs/dialog.module';
|
|||||||
import { FolderDirectiveModule } from './folder-directive/folder-directive.module';
|
import { FolderDirectiveModule } from './folder-directive/folder-directive.module';
|
||||||
import { ContentMetadataModule } from './content-metadata/content-metadata.module';
|
import { ContentMetadataModule } from './content-metadata/content-metadata.module';
|
||||||
import { PermissionManagerModule } from './permission-manager/permission-manager.module';
|
import { PermissionManagerModule } from './permission-manager/permission-manager.module';
|
||||||
|
import { RatingService } from './social/services/rating.service';
|
||||||
|
import { ContentMetadataService } from './content-metadata/services/content-metadata.service';
|
||||||
|
import { PropertyDescriptorsService } from './content-metadata/services/property-descriptors.service';
|
||||||
|
import { ContentMetadataConfigFactory } from './content-metadata/services/config/content-metadata-config.factory';
|
||||||
|
import { BasicPropertiesService } from './content-metadata/services/basic-properties.service';
|
||||||
|
import { PropertyGroupTranslatorService } from './content-metadata/services/property-groups-translator.service';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@ -69,7 +75,13 @@ import { PermissionManagerModule } from './permission-manager/permission-manager
|
|||||||
name: 'adf-content-services',
|
name: 'adf-content-services',
|
||||||
source: 'assets/adf-content-services'
|
source: 'assets/adf-content-services'
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
RatingService,
|
||||||
|
ContentMetadataService,
|
||||||
|
PropertyDescriptorsService,
|
||||||
|
ContentMetadataConfigFactory,
|
||||||
|
BasicPropertiesService,
|
||||||
|
PropertyGroupTranslatorService
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
CoreModule,
|
CoreModule,
|
||||||
|
@ -25,7 +25,6 @@ import { ShareDialogComponent } from './share.dialog';
|
|||||||
|
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
import { NodesApiService, NotificationService, TranslationService } from '@alfresco/adf-core';
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@ -40,11 +39,6 @@ import { NodesApiService, NotificationService, TranslationService } from '@alfre
|
|||||||
FolderDialogComponent,
|
FolderDialogComponent,
|
||||||
ShareDialogComponent
|
ShareDialogComponent
|
||||||
],
|
],
|
||||||
providers: [
|
|
||||||
NodesApiService,
|
|
||||||
NotificationService,
|
|
||||||
TranslationService
|
|
||||||
],
|
|
||||||
exports: [
|
exports: [
|
||||||
DownloadZipDialogComponent,
|
DownloadZipDialogComponent,
|
||||||
FolderDialogComponent,
|
FolderDialogComponent,
|
||||||
|
@ -36,7 +36,6 @@ import { DropdownSitesComponent } from './sites-dropdown.component';
|
|||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
DropdownSitesComponent
|
DropdownSitesComponent
|
||||||
],
|
]
|
||||||
providers: []
|
|
||||||
})
|
})
|
||||||
export class SitesDropdownModule {}
|
export class SitesDropdownModule {}
|
||||||
|
@ -22,7 +22,6 @@ import { RatingService } from './services/rating.service';
|
|||||||
selector: 'adf-like',
|
selector: 'adf-like',
|
||||||
styleUrls: ['./like.component.scss'],
|
styleUrls: ['./like.component.scss'],
|
||||||
templateUrl: './like.component.html',
|
templateUrl: './like.component.html',
|
||||||
providers: [RatingService],
|
|
||||||
encapsulation: ViewEncapsulation.None
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class LikeComponent implements OnChanges {
|
export class LikeComponent implements OnChanges {
|
||||||
|
@ -22,7 +22,6 @@ import { RatingService } from './services/rating.service';
|
|||||||
selector: 'adf-rating',
|
selector: 'adf-rating',
|
||||||
styleUrls: ['./rating.component.scss'],
|
styleUrls: ['./rating.component.scss'],
|
||||||
templateUrl: './rating.component.html',
|
templateUrl: './rating.component.html',
|
||||||
providers: [RatingService],
|
|
||||||
encapsulation: ViewEncapsulation.None
|
encapsulation: ViewEncapsulation.None
|
||||||
})
|
})
|
||||||
export class RatingComponent implements OnChanges {
|
export class RatingComponent implements OnChanges {
|
||||||
|
@ -19,7 +19,6 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { MaterialModule } from '../material.module';
|
import { MaterialModule } from '../material.module';
|
||||||
|
|
||||||
import { RatingService } from './services/rating.service';
|
|
||||||
import { LikeComponent } from './like.component';
|
import { LikeComponent } from './like.component';
|
||||||
import { RatingComponent } from './rating.component';
|
import { RatingComponent } from './rating.component';
|
||||||
|
|
||||||
@ -35,9 +34,6 @@ import { RatingComponent } from './rating.component';
|
|||||||
declarations: [
|
declarations: [
|
||||||
RatingComponent,
|
RatingComponent,
|
||||||
LikeComponent
|
LikeComponent
|
||||||
],
|
|
||||||
providers: [
|
|
||||||
RatingService
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class SocialModule {}
|
export class SocialModule {}
|
||||||
|
@ -37,7 +37,6 @@ import { SelectAppsDialogComponent } from './select-apps-dialog-component';
|
|||||||
AppsListComponent,
|
AppsListComponent,
|
||||||
SelectAppsDialogComponent
|
SelectAppsDialogComponent
|
||||||
],
|
],
|
||||||
providers: [],
|
|
||||||
exports: [
|
exports: [
|
||||||
AppsListComponent,
|
AppsListComponent,
|
||||||
SelectAppsDialogComponent
|
SelectAppsDialogComponent
|
||||||
|
@ -23,7 +23,7 @@ import { TranslateModule } from '@ngx-translate/core';
|
|||||||
import { FormModule } from '@alfresco/adf-core';
|
import { FormModule } from '@alfresco/adf-core';
|
||||||
import { MaterialModule } from '../material.module';
|
import { MaterialModule } from '../material.module';
|
||||||
|
|
||||||
import { CardViewModule, CardViewUpdateService, DataColumnModule, DataTableModule, DirectiveModule, PipeModule } from '@alfresco/adf-core';
|
import { CardViewModule, DataColumnModule, DataTableModule, DirectiveModule, PipeModule } from '@alfresco/adf-core';
|
||||||
import { TaskListModule } from '../task-list/task-list.module';
|
import { TaskListModule } from '../task-list/task-list.module';
|
||||||
import { PeopleModule } from '../people/people.module';
|
import { PeopleModule } from '../people/people.module';
|
||||||
import { CommentsModule } from '../comments/comments.module';
|
import { CommentsModule } from '../comments/comments.module';
|
||||||
@ -70,8 +70,7 @@ import { ProcessFilterService } from './services/process-filter.service';
|
|||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
ProcessService,
|
ProcessService,
|
||||||
ProcessFilterService,
|
ProcessFilterService
|
||||||
CardViewUpdateService
|
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
ProcessInstanceListComponent,
|
ProcessInstanceListComponent,
|
||||||
|
@ -48,10 +48,7 @@ import { AttachFileWidgetComponent, AttachFolderWidgetComponent } from '../../co
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'adf-task-details',
|
selector: 'adf-task-details',
|
||||||
templateUrl: './task-details.component.html',
|
templateUrl: './task-details.component.html',
|
||||||
styleUrls: ['./task-details.component.scss'],
|
styleUrls: ['./task-details.component.scss']
|
||||||
providers: [
|
|
||||||
CardViewUpdateService
|
|
||||||
]
|
|
||||||
})
|
})
|
||||||
export class TaskDetailsComponent implements OnInit, OnChanges {
|
export class TaskDetailsComponent implements OnInit, OnChanges {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user