mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ADF-3380] lazy loading fixes (#3609)
* lazy loading file viewer * fix issue with CoreModule referencing * fix issue with app config and lazy loading * test fixes * fix import * lazy loading workaround for content module * fix providers for lazy loading * fix tests * lazy loading for Process Services lib * lazy loading for Insights, module cleanup * fix issue with Translate module, optimise imports * lazy-load blob viewer (demo shell) * remove duplicate pdf init * update to more stable pdfjs * fix license header * fix lint issues * fix test import * fix pdf version
This commit is contained in:
committed by
Eugenio Romano
parent
f3a513ca72
commit
f606149344
@@ -18,16 +18,16 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
import { BreadcrumbComponent } from './breadcrumb.component';
|
||||
import { DropdownBreadcrumbComponent } from './dropdown-breadcrumb.component';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
TranslateModule
|
||||
CoreModule.forChild()
|
||||
],
|
||||
exports: [
|
||||
BreadcrumbComponent,
|
||||
|
||||
@@ -18,9 +18,8 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { CardViewModule } from '@alfresco/adf-core';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
import { ContentMetadataComponent } from './components/content-metadata/content-metadata.component';
|
||||
import { ContentMetadataCardComponent } from './components/content-metadata-card/content-metadata-card.component';
|
||||
|
||||
@@ -28,9 +27,8 @@ import { ContentMetadataCardComponent } from './components/content-metadata-card
|
||||
imports: [
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
TranslateModule,
|
||||
FlexLayoutModule,
|
||||
CardViewModule
|
||||
CoreModule.forChild()
|
||||
],
|
||||
exports: [
|
||||
ContentMetadataComponent,
|
||||
|
||||
@@ -19,15 +19,12 @@ import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
import { ContentNodeSelectorPanelComponent } from './content-node-selector-panel.component';
|
||||
import { ContentNodeSelectorComponent } from './content-node-selector.component';
|
||||
import { ContentNodeSelectorService } from './content-node-selector.service';
|
||||
import { ContentNodeDialogService } from './content-node-dialog.service';
|
||||
import { SitesDropdownModule } from '../site-dropdown/sites-dropdown.module';
|
||||
import { BreadcrumbModule } from '../breadcrumb/breadcrumb.module';
|
||||
import { PaginationModule, ToolbarModule, DirectiveModule, DataColumnModule, DataTableModule } from '@alfresco/adf-core';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
import { DocumentListModule } from '../document-list/document-list.module';
|
||||
import { NameLocationCellComponent } from './name-location-cell/name-location-cell.component';
|
||||
|
||||
@@ -35,17 +32,12 @@ import { NameLocationCellComponent } from './name-location-cell/name-location-ce
|
||||
imports: [
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
DirectiveModule,
|
||||
CoreModule.forChild(),
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
TranslateModule,
|
||||
SitesDropdownModule,
|
||||
BreadcrumbModule,
|
||||
ToolbarModule,
|
||||
DocumentListModule,
|
||||
DataColumnModule,
|
||||
DataTableModule,
|
||||
PaginationModule
|
||||
DocumentListModule
|
||||
],
|
||||
exports: [
|
||||
ContentNodeSelectorPanelComponent,
|
||||
@@ -53,16 +45,13 @@ import { NameLocationCellComponent } from './name-location-cell/name-location-ce
|
||||
ContentNodeSelectorComponent
|
||||
],
|
||||
entryComponents: [
|
||||
ContentNodeSelectorPanelComponent, ContentNodeSelectorComponent
|
||||
ContentNodeSelectorPanelComponent,
|
||||
ContentNodeSelectorComponent
|
||||
],
|
||||
declarations: [
|
||||
ContentNodeSelectorPanelComponent,
|
||||
NameLocationCellComponent,
|
||||
ContentNodeSelectorComponent
|
||||
],
|
||||
providers: [
|
||||
ContentNodeSelectorService,
|
||||
ContentNodeDialogService
|
||||
]
|
||||
})
|
||||
export class ContentNodeSelectorModule {}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { CoreModule, TRANSLATION_PROVIDER } from '@alfresco/adf-core';
|
||||
|
||||
@@ -45,10 +45,86 @@ import { BasicPropertiesService } from './content-metadata/services/basic-proper
|
||||
import { PropertyGroupTranslatorService } from './content-metadata/services/property-groups-translator.service';
|
||||
import { SearchQueryBuilderService } from './search/search-query-builder.service';
|
||||
import { SearchFilterService } from './search/components/search-filter/search-filter.service';
|
||||
import { ContentNodeSelectorService } from './content-node-selector/content-node-selector.service';
|
||||
import { ContentNodeDialogService } from './content-node-selector/content-node-dialog.service';
|
||||
import { DocumentListService } from './document-list/services/document-list.service';
|
||||
import { FolderActionsService } from './document-list/services/folder-actions.service';
|
||||
import { DocumentActionsService } from './document-list/services/document-actions.service';
|
||||
import { NodeActionsService } from './document-list/services/node-actions.service';
|
||||
import { CustomResourcesService } from './document-list/services/custom-resources.service';
|
||||
import { NodePermissionDialogService } from './permission-manager/services/node-permission-dialog.service';
|
||||
import { NodePermissionService } from './permission-manager/services/node-permission.service';
|
||||
import { TagService } from './tag/services/tag.service';
|
||||
|
||||
export function providers() {
|
||||
return [
|
||||
RatingService,
|
||||
ContentMetadataService,
|
||||
PropertyDescriptorsService,
|
||||
ContentMetadataConfigFactory,
|
||||
BasicPropertiesService,
|
||||
PropertyGroupTranslatorService,
|
||||
SearchQueryBuilderService,
|
||||
SearchFilterService,
|
||||
ContentNodeSelectorService,
|
||||
ContentNodeDialogService,
|
||||
DocumentListService,
|
||||
FolderActionsService,
|
||||
DocumentActionsService,
|
||||
NodeActionsService,
|
||||
CustomResourcesService,
|
||||
NodePermissionDialogService,
|
||||
NodePermissionService,
|
||||
TagService
|
||||
];
|
||||
}
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CoreModule,
|
||||
CoreModule.forChild(),
|
||||
SocialModule,
|
||||
TagModule,
|
||||
CommonModule,
|
||||
WebScriptModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
DialogModule,
|
||||
SearchModule,
|
||||
DocumentListModule,
|
||||
UploadModule,
|
||||
MaterialModule,
|
||||
SitesDropdownModule,
|
||||
BreadcrumbModule,
|
||||
ContentNodeSelectorModule,
|
||||
ContentMetadataModule,
|
||||
FolderDirectiveModule,
|
||||
ContentDirectiveModule,
|
||||
PermissionManagerModule,
|
||||
VersionManagerModule
|
||||
],
|
||||
exports: [
|
||||
SocialModule,
|
||||
TagModule,
|
||||
WebScriptModule,
|
||||
DocumentListModule,
|
||||
UploadModule,
|
||||
SearchModule,
|
||||
SitesDropdownModule,
|
||||
BreadcrumbModule,
|
||||
ContentNodeSelectorModule,
|
||||
ContentMetadataModule,
|
||||
DialogModule,
|
||||
FolderDirectiveModule,
|
||||
ContentDirectiveModule,
|
||||
PermissionManagerModule,
|
||||
VersionManagerModule
|
||||
]
|
||||
})
|
||||
export class ContentModuleLazy {}
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CoreModule.forChild(),
|
||||
SocialModule,
|
||||
TagModule,
|
||||
CommonModule,
|
||||
@@ -70,6 +146,7 @@ import { SearchFilterService } from './search/components/search-filter/search-fi
|
||||
VersionManagerModule
|
||||
],
|
||||
providers: [
|
||||
...providers(),
|
||||
{
|
||||
provide: TRANSLATION_PROVIDER,
|
||||
multi: true,
|
||||
@@ -77,18 +154,9 @@ import { SearchFilterService } from './search/components/search-filter/search-fi
|
||||
name: 'adf-content-services',
|
||||
source: 'assets/adf-content-services'
|
||||
}
|
||||
},
|
||||
RatingService,
|
||||
ContentMetadataService,
|
||||
PropertyDescriptorsService,
|
||||
ContentMetadataConfigFactory,
|
||||
BasicPropertiesService,
|
||||
PropertyGroupTranslatorService,
|
||||
SearchQueryBuilderService,
|
||||
SearchFilterService
|
||||
}
|
||||
],
|
||||
exports: [
|
||||
CoreModule,
|
||||
SocialModule,
|
||||
TagModule,
|
||||
WebScriptModule,
|
||||
@@ -107,4 +175,26 @@ import { SearchFilterService } from './search/components/search-filter/search-fi
|
||||
]
|
||||
})
|
||||
export class ContentModule {
|
||||
static forRoot(): ModuleWithProviders {
|
||||
return {
|
||||
ngModule: ContentModule,
|
||||
providers: [
|
||||
...providers(),
|
||||
{
|
||||
provide: TRANSLATION_PROVIDER,
|
||||
multi: true,
|
||||
useValue: {
|
||||
name: 'adf-content-services',
|
||||
source: 'assets/adf-content-services'
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
static forChild(): ModuleWithProviders {
|
||||
return {
|
||||
ngModule: ContentModuleLazy
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,18 +17,15 @@
|
||||
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { DownloadZipDialogComponent } from './download-zip.dialog';
|
||||
import { FolderDialogComponent } from './folder.dialog';
|
||||
import { NodeLockDialogComponent } from './node-lock.dialog';
|
||||
import { ShareDialogComponent } from './share.dialog';
|
||||
import { ConfirmDialogComponent } from './confirm.dialog';
|
||||
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
import { FormModule } from '@alfresco/adf-core';
|
||||
import { MatDatetimepickerModule } from '@mat-datetimepicker/core';
|
||||
import { MatMomentDatetimeModule } from '@mat-datetimepicker/moment';
|
||||
|
||||
@@ -36,9 +33,8 @@ import { MatMomentDatetimeModule } from '@mat-datetimepicker/moment';
|
||||
imports: [
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
TranslateModule,
|
||||
CoreModule.forChild(),
|
||||
FormsModule,
|
||||
FormModule,
|
||||
ReactiveFormsModule,
|
||||
MatMomentDatetimeModule,
|
||||
MatDatetimepickerModule
|
||||
|
||||
@@ -18,8 +18,7 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { DataTableModule, PaginationModule, ToolbarModule } from '@alfresco/adf-core';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { UploadModule } from '../upload/upload.module';
|
||||
@@ -33,22 +32,13 @@ import { DocumentListComponent } from './components/document-list.component';
|
||||
import { EmptyFolderContentDirective } from './components/empty-folder/empty-folder-content.directive';
|
||||
import { NoPermissionContentDirective } from './components/no-permission/no-permission-content.directive';
|
||||
|
||||
import { DocumentActionsService } from './services/document-actions.service';
|
||||
import { DocumentListService } from './services/document-list.service';
|
||||
import { FolderActionsService } from './services/folder-actions.service';
|
||||
import { NodeActionsService } from './services/node-actions.service';
|
||||
import { CustomResourcesService } from './services/custom-resources.service';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
ToolbarModule,
|
||||
CoreModule.forChild(),
|
||||
CommonModule,
|
||||
DataTableModule,
|
||||
FlexLayoutModule,
|
||||
MaterialModule,
|
||||
UploadModule,
|
||||
TranslateModule,
|
||||
PaginationModule
|
||||
UploadModule
|
||||
],
|
||||
declarations: [
|
||||
DocumentListComponent,
|
||||
@@ -59,13 +49,6 @@ import { CustomResourcesService } from './services/custom-resources.service';
|
||||
EmptyFolderContentDirective,
|
||||
NoPermissionContentDirective
|
||||
],
|
||||
providers: [
|
||||
DocumentListService,
|
||||
FolderActionsService,
|
||||
DocumentActionsService,
|
||||
NodeActionsService,
|
||||
CustomResourcesService
|
||||
],
|
||||
exports: [
|
||||
DocumentListComponent,
|
||||
ContentColumnComponent,
|
||||
|
||||
@@ -18,28 +18,23 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { PermissionListComponent } from './components/permission-list/permission-list.component';
|
||||
import { AddPermissionComponent } from './components/add-permission/add-permission.component';
|
||||
import { AddPermissionDialogComponent } from './components/add-permission/add-permission-dialog.component';
|
||||
import { DataTableModule, DataColumnModule } from '@alfresco/adf-core';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
import { InheritPermissionDirective } from './components/inherited-button.directive';
|
||||
import { NodePermissionService } from './services/node-permission.service';
|
||||
import { NoPermissionTemplateComponent } from './components/permission-list/no-permission.component';
|
||||
import { NodePermissionDialogService } from './services/node-permission-dialog.service';
|
||||
import { AddPermissionPanelComponent } from './components/add-permission/add-permission-panel.component';
|
||||
import { SearchModule } from '../search/search.module';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CoreModule.forChild(),
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
MaterialModule,
|
||||
TranslateModule,
|
||||
DataTableModule,
|
||||
DataColumnModule,
|
||||
SearchModule
|
||||
],
|
||||
declarations: [
|
||||
@@ -50,11 +45,11 @@ import { SearchModule } from '../search/search.module';
|
||||
AddPermissionComponent,
|
||||
AddPermissionDialogComponent
|
||||
],
|
||||
providers: [
|
||||
NodePermissionDialogService,
|
||||
NodePermissionService
|
||||
entryComponents: [
|
||||
AddPermissionPanelComponent,
|
||||
AddPermissionComponent,
|
||||
AddPermissionDialogComponent
|
||||
],
|
||||
entryComponents: [ AddPermissionPanelComponent, AddPermissionComponent, AddPermissionDialogComponent ],
|
||||
exports: [
|
||||
PermissionListComponent,
|
||||
NoPermissionTemplateComponent,
|
||||
|
||||
@@ -18,10 +18,9 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { MaterialModule } from '../material.module';
|
||||
|
||||
import { PipeModule, CoreModule } from '@alfresco/adf-core';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
|
||||
import { SearchTriggerDirective } from './components/search-trigger.directive';
|
||||
|
||||
@@ -50,13 +49,11 @@ export const ALFRESCO_SEARCH_DIRECTIVES: any[] = [
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CoreModule,
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
MaterialModule,
|
||||
PipeModule,
|
||||
TranslateModule
|
||||
CoreModule.forChild()
|
||||
],
|
||||
declarations: [
|
||||
...ALFRESCO_SEARCH_DIRECTIVES,
|
||||
|
||||
@@ -18,18 +18,18 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
|
||||
import { DropdownSitesComponent } from './sites-dropdown.component';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
TranslateModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule
|
||||
ReactiveFormsModule,
|
||||
CoreModule.forChild()
|
||||
],
|
||||
exports: [
|
||||
DropdownSitesComponent
|
||||
|
||||
@@ -18,21 +18,20 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { TagActionsComponent } from './tag-actions.component';
|
||||
import { TagListComponent } from './tag-list.component';
|
||||
import { TagNodeListComponent } from './tag-node-list.component';
|
||||
import { TagService } from './services/tag.service';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
TranslateModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule
|
||||
ReactiveFormsModule,
|
||||
CoreModule.forChild()
|
||||
],
|
||||
exports: [
|
||||
TagActionsComponent,
|
||||
@@ -43,9 +42,6 @@ import { TagService } from './services/tag.service';
|
||||
TagActionsComponent,
|
||||
TagListComponent,
|
||||
TagNodeListComponent
|
||||
],
|
||||
providers: [
|
||||
TagService
|
||||
]
|
||||
})
|
||||
export class TagModule {}
|
||||
|
||||
@@ -36,7 +36,7 @@ import { ContentModule } from '../content.module';
|
||||
NoopAnimationsModule,
|
||||
RouterTestingModule,
|
||||
CoreModule.forRoot(),
|
||||
ContentModule
|
||||
ContentModule.forRoot()
|
||||
],
|
||||
providers: [
|
||||
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { FileUploadingDialogComponent } from './components/file-uploading-dialog.component';
|
||||
@@ -27,15 +26,14 @@ import { UploadButtonComponent } from './components/upload-button.component';
|
||||
import { UploadVersionButtonComponent } from './components/upload-version-button.component';
|
||||
import { UploadDragAreaComponent } from './components/upload-drag-area.component';
|
||||
|
||||
import { PipeModule } from '@alfresco/adf-core';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
import { FileDraggableDirective } from './directives/file-draggable.directive';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CoreModule.forChild(),
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
TranslateModule,
|
||||
PipeModule
|
||||
MaterialModule
|
||||
],
|
||||
declarations: [
|
||||
FileDraggableDirective,
|
||||
|
||||
@@ -19,18 +19,18 @@ import { CommonModule } from '@angular/common';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
import { VersionUploadComponent } from './version-upload.component';
|
||||
import { VersionManagerComponent } from './version-manager.component';
|
||||
import { VersionListComponent } from './version-list.component';
|
||||
import { UploadModule } from '../upload/upload.module';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
TranslateModule,
|
||||
CoreModule.forChild(),
|
||||
UploadModule,
|
||||
FormsModule
|
||||
],
|
||||
@@ -44,7 +44,6 @@ import { UploadModule } from '../upload/upload.module';
|
||||
VersionUploadComponent,
|
||||
VersionManagerComponent,
|
||||
VersionListComponent
|
||||
],
|
||||
providers: []
|
||||
]
|
||||
})
|
||||
export class VersionManagerModule {}
|
||||
|
||||
@@ -15,10 +15,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { DataTableModule, PipeModule } from '@alfresco/adf-core';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { WebscriptComponent } from './webscript.component';
|
||||
@@ -26,10 +25,8 @@ import { WebscriptComponent } from './webscript.component';
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
PipeModule,
|
||||
MaterialModule,
|
||||
DataTableModule,
|
||||
TranslateModule
|
||||
CoreModule.forChild()
|
||||
],
|
||||
exports: [
|
||||
WebscriptComponent
|
||||
|
||||
@@ -27,7 +27,7 @@ import { DataColumnModule } from '../data-column/data-column.module';
|
||||
imports: [
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
TranslateModule,
|
||||
TranslateModule.forChild(),
|
||||
DataTableModule,
|
||||
DataColumnModule
|
||||
],
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { AppConfigService } from './app-config.service';
|
||||
import { AppConfigPipe } from './app-config.pipe';
|
||||
|
||||
@NgModule({
|
||||
@@ -27,9 +26,6 @@ import { AppConfigPipe } from './app-config.pipe';
|
||||
declarations: [
|
||||
AppConfigPipe
|
||||
],
|
||||
providers: [
|
||||
AppConfigService
|
||||
],
|
||||
exports: [
|
||||
AppConfigPipe
|
||||
]
|
||||
|
||||
@@ -26,7 +26,7 @@ import { FlexLayoutModule } from '@angular/flex-layout';
|
||||
imports: [
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
TranslateModule,
|
||||
TranslateModule.forChild(),
|
||||
FlexLayoutModule
|
||||
],
|
||||
declarations: [
|
||||
|
||||
@@ -47,7 +47,7 @@ import { CardViewSelectItemComponent } from './components/card-view-selectitem/c
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
FlexLayoutModule,
|
||||
TranslateModule,
|
||||
TranslateModule.forChild(),
|
||||
MatDatepickerModule,
|
||||
MatNativeDateModule,
|
||||
MatCheckboxModule,
|
||||
|
||||
@@ -36,9 +36,6 @@ import { AccordionComponent } from './accordion.component';
|
||||
exports: [
|
||||
AccordionComponent,
|
||||
AccordionGroupComponent
|
||||
],
|
||||
providers: [
|
||||
AccordionComponent
|
||||
]
|
||||
})
|
||||
export class CollapsableModule {}
|
||||
|
||||
@@ -36,7 +36,7 @@ import { CommentsComponent } from './comments.component';
|
||||
ReactiveFormsModule,
|
||||
MaterialModule,
|
||||
CommonModule,
|
||||
TranslateModule
|
||||
TranslateModule.forChild()
|
||||
],
|
||||
declarations: [
|
||||
CommentListComponent,
|
||||
|
||||
@@ -21,6 +21,7 @@ import { fakeAsync, ComponentFixture, TestBed, tick } from '@angular/core/testin
|
||||
import { ContextMenuHolderComponent } from './context-menu-holder.component';
|
||||
import { ContextMenuModule } from './context-menu.module';
|
||||
import { ContextMenuService } from './context-menu.service';
|
||||
import { CoreModule } from '../core.module';
|
||||
|
||||
describe('ContextMenuHolderComponent', () => {
|
||||
let fixture: ComponentFixture<ContextMenuHolderComponent>;
|
||||
@@ -53,6 +54,7 @@ describe('ContextMenuHolderComponent', () => {
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [
|
||||
CoreModule.forRoot(),
|
||||
ContextMenuModule
|
||||
],
|
||||
providers: [
|
||||
|
||||
@@ -22,13 +22,12 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
import { ContextMenuHolderComponent } from './context-menu-holder.component';
|
||||
import { ContextMenuDirective } from './context-menu.directive';
|
||||
import { ContextMenuService } from './context-menu.service';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
TranslateModule
|
||||
TranslateModule.forChild()
|
||||
],
|
||||
declarations: [
|
||||
ContextMenuHolderComponent,
|
||||
@@ -37,9 +36,6 @@ import { ContextMenuService } from './context-menu.service';
|
||||
exports: [
|
||||
ContextMenuHolderComponent,
|
||||
ContextMenuDirective
|
||||
],
|
||||
providers: [
|
||||
ContextMenuService
|
||||
]
|
||||
})
|
||||
export class ContextMenuModule {}
|
||||
|
||||
+23
-1
@@ -83,6 +83,17 @@ import { UserPreferencesService } from './services/user-preferences.service';
|
||||
import { SearchConfigurationService } from './services/search-configuration.service';
|
||||
import { startupServiceFactory } from './services/startup-service-factory';
|
||||
import { SortingPickerModule } from './sorting-picker/sorting-picker.module';
|
||||
import { AppConfigService } from './app-config/app-config.service';
|
||||
import { ContextMenuService } from './context-menu/context-menu.service';
|
||||
import { ActivitiContentService } from './form/services/activiti-alfresco.service';
|
||||
import { EcmModelService } from './form/services/ecm-model.service';
|
||||
import { FormRenderingService } from './form/services/form-rendering.service';
|
||||
import { FormService } from './form/services/form.service';
|
||||
import { NodeService } from './form/services/node.service';
|
||||
import { ProcessContentService } from './form/services/process-content.service';
|
||||
import { WidgetVisibilityService } from './form/services/widget-visibility.service';
|
||||
import { EcmUserService } from './userinfo/services/ecm-user.service';
|
||||
import { BpmUserService } from './userinfo/services/bpm-user.service';
|
||||
|
||||
export function createTranslateLoader(http: HttpClient, logService: LogService) {
|
||||
return new TranslateLoaderService(http, logService);
|
||||
@@ -124,7 +135,18 @@ export function providers() {
|
||||
CommentProcessService,
|
||||
CommentContentService,
|
||||
SearchConfigurationService,
|
||||
DatePipe
|
||||
DatePipe,
|
||||
AppConfigService,
|
||||
ContextMenuService,
|
||||
ActivitiContentService,
|
||||
EcmModelService,
|
||||
FormRenderingService,
|
||||
FormService,
|
||||
NodeService,
|
||||
ProcessContentService,
|
||||
WidgetVisibilityService,
|
||||
EcmUserService,
|
||||
BpmUserService
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ import { EmptyCustomContentDirective } from './directives/empty-custom-content.d
|
||||
RouterModule,
|
||||
MaterialModule,
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
TranslateModule.forChild(),
|
||||
ContextMenuModule,
|
||||
PipeModule,
|
||||
DirectiveModule
|
||||
|
||||
@@ -36,14 +36,6 @@ import { FormComponent } from './components/form.component';
|
||||
import { StartFormComponent } from './components/start-form.component';
|
||||
import { ContentWidgetComponent } from './components/widgets/content/content.widget';
|
||||
import { WidgetComponent } from './components/widgets/widget.component';
|
||||
|
||||
import { ActivitiContentService } from './services/activiti-alfresco.service';
|
||||
import { EcmModelService } from './services/ecm-model.service';
|
||||
import { FormRenderingService } from './services/form-rendering.service';
|
||||
import { FormService } from './services/form.service';
|
||||
import { NodeService } from './services/node.service';
|
||||
import { ProcessContentService } from './services/process-content.service';
|
||||
import { WidgetVisibilityService } from './services/widget-visibility.service';
|
||||
import { MatDatetimepickerModule, MatNativeDatetimeModule } from '@mat-datetimepicker/core';
|
||||
|
||||
@NgModule({
|
||||
@@ -52,7 +44,7 @@ import { MatDatetimepickerModule, MatNativeDatetimeModule } from '@mat-datetimep
|
||||
DataTableModule,
|
||||
HttpClientModule,
|
||||
MaterialModule,
|
||||
TranslateModule,
|
||||
TranslateModule.forChild(),
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
DataColumnModule,
|
||||
@@ -74,15 +66,6 @@ import { MatDatetimepickerModule, MatNativeDatetimeModule } from '@mat-datetimep
|
||||
entryComponents: [
|
||||
...WIDGET_DIRECTIVES
|
||||
],
|
||||
providers: [
|
||||
ActivitiContentService,
|
||||
EcmModelService,
|
||||
FormRenderingService,
|
||||
FormService,
|
||||
NodeService,
|
||||
ProcessContentService,
|
||||
WidgetVisibilityService
|
||||
],
|
||||
exports: [
|
||||
ContentWidgetComponent,
|
||||
FormFieldComponent,
|
||||
|
||||
@@ -33,7 +33,7 @@ import { LoginHeaderDirective } from './directives/login-header.directive';
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
CommonModule,
|
||||
TranslateModule
|
||||
TranslateModule.forChild()
|
||||
],
|
||||
declarations: [
|
||||
LoginComponent,
|
||||
@@ -41,11 +41,9 @@ import { LoginHeaderDirective } from './directives/login-header.directive';
|
||||
LoginHeaderDirective
|
||||
],
|
||||
exports: [
|
||||
[
|
||||
LoginComponent,
|
||||
LoginFooterDirective,
|
||||
LoginHeaderDirective
|
||||
]
|
||||
LoginComponent,
|
||||
LoginFooterDirective,
|
||||
LoginHeaderDirective
|
||||
]
|
||||
})
|
||||
export class LoginModule {
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
"hammerjs": "2.0.8",
|
||||
"minimatch-browser": "1.0.0",
|
||||
"moment": "^2.22.2",
|
||||
"pdfjs-dist": "1.5.404",
|
||||
"pdfjs-dist": "2.0.303",
|
||||
"reflect-metadata": "^0.1.12",
|
||||
"zone.js": "^0.8.26"
|
||||
},
|
||||
|
||||
@@ -26,7 +26,7 @@ import { PaginationComponent } from './pagination.component';
|
||||
imports: [
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
TranslateModule
|
||||
TranslateModule.forChild()
|
||||
],
|
||||
declarations: [
|
||||
InfinitePaginationComponent,
|
||||
|
||||
@@ -27,7 +27,7 @@ import { HostSettingsComponent } from './host-settings.component';
|
||||
imports: [
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
TranslateModule,
|
||||
TranslateModule.forChild(),
|
||||
FormsModule,
|
||||
ReactiveFormsModule
|
||||
],
|
||||
|
||||
@@ -25,7 +25,7 @@ import { SortingPickerComponent } from './sorting-picker.component';
|
||||
imports: [
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
TranslateModule
|
||||
TranslateModule.forChild()
|
||||
],
|
||||
declarations: [
|
||||
SortingPickerComponent
|
||||
|
||||
@@ -26,7 +26,7 @@ import { EmptyContentComponent } from './empty-content/empty-content.component';
|
||||
imports: [
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
TranslateModule
|
||||
TranslateModule.forChild()
|
||||
],
|
||||
declarations: [
|
||||
ErrorContentComponent,
|
||||
|
||||
@@ -22,23 +22,17 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { PipeModule } from '../pipes/pipe.module';
|
||||
import { UserInfoComponent } from './components/user-info.component';
|
||||
import { BpmUserService } from './services/bpm-user.service';
|
||||
import { EcmUserService } from './services/ecm-user.service';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
TranslateModule,
|
||||
TranslateModule.forChild(),
|
||||
PipeModule
|
||||
],
|
||||
declarations: [
|
||||
UserInfoComponent
|
||||
],
|
||||
providers: [
|
||||
EcmUserService,
|
||||
BpmUserService
|
||||
],
|
||||
exports: [
|
||||
UserInfoComponent
|
||||
]
|
||||
|
||||
@@ -44,7 +44,7 @@ import { ViewerToolbarActionsComponent } from './components/viewer-toolbar-actio
|
||||
imports: [
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
TranslateModule,
|
||||
TranslateModule.forChild(),
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
ToolbarModule,
|
||||
|
||||
@@ -18,13 +18,12 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { DiagramsModule } from '../diagram/diagram.module';
|
||||
import { MaterialModule } from '../material.module';
|
||||
|
||||
import { ChartsModule } from 'ng2-charts';
|
||||
|
||||
import { ToolbarModule, ButtonsMenuModule } from '@alfresco/adf-core';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
import { AnalyticsGeneratorComponent } from './components/analytics-generator.component';
|
||||
import { AnalyticsReportHeatMapComponent } from './components/analytics-report-heat-map.component';
|
||||
import { AnalyticsReportListComponent } from './components/analytics-report-list.component';
|
||||
@@ -37,7 +36,6 @@ import { DropdownWidgetAanalyticsComponent } from './components/widgets/dropdown
|
||||
import { DurationWidgetComponent } from './components/widgets/duration/duration.widget';
|
||||
import { NumberWidgetAanlyticsComponent } from './components/widgets/number/number.widget';
|
||||
|
||||
import { AnalyticsService } from './services/analytics.service';
|
||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||
|
||||
@NgModule({
|
||||
@@ -48,10 +46,8 @@ import { FlexLayoutModule } from '@angular/flex-layout';
|
||||
ChartsModule,
|
||||
DiagramsModule,
|
||||
MaterialModule,
|
||||
TranslateModule,
|
||||
ToolbarModule,
|
||||
FlexLayoutModule,
|
||||
ButtonsMenuModule
|
||||
CoreModule.forChild()
|
||||
],
|
||||
declarations: [
|
||||
AnalyticsComponent,
|
||||
@@ -65,9 +61,6 @@ import { FlexLayoutModule } from '@angular/flex-layout';
|
||||
CheckboxWidgetAanalyticsComponent,
|
||||
DateRangeWidgetComponent
|
||||
],
|
||||
providers: [
|
||||
AnalyticsService
|
||||
],
|
||||
exports: [
|
||||
AnalyticsComponent,
|
||||
AnalyticsReportListComponent,
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
import { DiagramEndEventComponent } from './components/events/diagram-end-event.component';
|
||||
import { DiagramEventComponent } from './components/events/diagram-event.component';
|
||||
@@ -83,11 +82,6 @@ import { DiagramLanesComponent } from './components/swimlanes/diagram-lanes.comp
|
||||
|
||||
import { DiagramTooltipComponent } from './components/tooltip/diagram-tooltip.component';
|
||||
|
||||
import { DiagramColorService } from './services/diagram-color.service';
|
||||
import { DiagramsService } from './services/diagrams.service';
|
||||
|
||||
import { RaphaelService } from './components/raphael/raphael.service';
|
||||
|
||||
import { RaphaelCircleDirective } from './components/raphael/raphael-circle.component';
|
||||
import { RaphaelCrossDirective } from './components/raphael/raphael-cross.component';
|
||||
import { RaphaelFlowArrowDirective } from './components/raphael/raphael-flow-arrow.component';
|
||||
@@ -115,11 +109,12 @@ import { RaphaelIconServiceDirective } from './components/raphael/icons/raphael-
|
||||
import { RaphaelIconSignalDirective } from './components/raphael/icons/raphael-icon-signal.component';
|
||||
import { RaphaelIconTimerDirective } from './components/raphael/icons/raphael-icon-timer.component';
|
||||
import { RaphaelIconUserDirective } from './components/raphael/icons/raphael-icon-user.component';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
TranslateModule
|
||||
CoreModule.forChild()
|
||||
],
|
||||
declarations: [
|
||||
DiagramComponent,
|
||||
@@ -202,11 +197,6 @@ import { RaphaelIconUserDirective } from './components/raphael/icons/raphael-ico
|
||||
RaphaelIconSignalDirective,
|
||||
RaphaelIconMessageDirective
|
||||
],
|
||||
providers: [
|
||||
DiagramsService,
|
||||
DiagramColorService,
|
||||
RaphaelService
|
||||
],
|
||||
exports: [
|
||||
DiagramComponent,
|
||||
DiagramEventComponent,
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
*/
|
||||
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { CoreModule, TRANSLATION_PROVIDER } from '@alfresco/adf-core';
|
||||
|
||||
@@ -24,10 +24,23 @@ import { DiagramsModule } from './diagram/diagram.module';
|
||||
import { AnalyticsProcessModule } from './analytics-process/analytics-process.module';
|
||||
|
||||
import { MaterialModule } from './material.module';
|
||||
import { DiagramsService } from './diagram/services/diagrams.service';
|
||||
import { DiagramColorService } from './diagram/services/diagram-color.service';
|
||||
import { RaphaelService } from './diagram/components/raphael/raphael.service';
|
||||
import { AnalyticsService } from './analytics-process/services/analytics.service';
|
||||
|
||||
export function providers() {
|
||||
return [
|
||||
AnalyticsService,
|
||||
DiagramsService,
|
||||
DiagramColorService,
|
||||
RaphaelService
|
||||
];
|
||||
}
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CoreModule,
|
||||
CoreModule.forChild(),
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
@@ -36,6 +49,7 @@ import { MaterialModule } from './material.module';
|
||||
AnalyticsProcessModule
|
||||
],
|
||||
providers: [
|
||||
...providers(),
|
||||
{
|
||||
provide: TRANSLATION_PROVIDER,
|
||||
multi: true,
|
||||
@@ -46,7 +60,6 @@ import { MaterialModule } from './material.module';
|
||||
}
|
||||
],
|
||||
exports: [
|
||||
CoreModule,
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
@@ -56,4 +69,47 @@ import { MaterialModule } from './material.module';
|
||||
]
|
||||
})
|
||||
export class InsightsModule {
|
||||
static forRoot(): ModuleWithProviders {
|
||||
return {
|
||||
ngModule: InsightsModule,
|
||||
providers: [
|
||||
...providers(),
|
||||
{
|
||||
provide: TRANSLATION_PROVIDER,
|
||||
multi: true,
|
||||
useValue: {
|
||||
name: 'adf-insights',
|
||||
source: 'assets/adf-insights'
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
static forChild(): ModuleWithProviders {
|
||||
return {
|
||||
ngModule: InsightsModuleLazy
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CoreModule.forChild(),
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
MaterialModule,
|
||||
DiagramsModule,
|
||||
AnalyticsProcessModule
|
||||
],
|
||||
exports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
MaterialModule,
|
||||
DiagramsModule,
|
||||
AnalyticsProcessModule
|
||||
]
|
||||
})
|
||||
export class InsightsModuleLazy {}
|
||||
|
||||
@@ -24,11 +24,16 @@ import {
|
||||
AppConfigService,
|
||||
AppConfigServiceMock,
|
||||
TranslationService,
|
||||
TranslationMock
|
||||
TranslationMock,
|
||||
CoreModule
|
||||
} from '@alfresco/adf-core';
|
||||
|
||||
@NgModule({
|
||||
imports: [NoopAnimationsModule, InsightsModule],
|
||||
imports: [
|
||||
NoopAnimationsModule,
|
||||
CoreModule.forRoot(),
|
||||
InsightsModule.forRoot()
|
||||
],
|
||||
providers: [
|
||||
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
||||
{ provide: AppConfigService, useClass: AppConfigServiceMock },
|
||||
|
||||
@@ -19,7 +19,6 @@ import { CommonModule } from '@angular/common';
|
||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
|
||||
import { AppsListComponent } from './apps-list.component';
|
||||
@@ -30,8 +29,7 @@ import { SelectAppsDialogComponent } from './select-apps-dialog-component';
|
||||
CommonModule,
|
||||
MaterialModule,
|
||||
FlexLayoutModule,
|
||||
TranslateModule,
|
||||
CoreModule
|
||||
CoreModule.forChild()
|
||||
],
|
||||
declarations: [
|
||||
AppsListComponent,
|
||||
|
||||
@@ -26,7 +26,7 @@ import { CoreModule } from '@alfresco/adf-core';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CoreModule,
|
||||
CoreModule.forChild(),
|
||||
MaterialModule
|
||||
],
|
||||
declarations: [
|
||||
|
||||
@@ -29,7 +29,7 @@ import {
|
||||
ContentService,
|
||||
setupTestBed
|
||||
} from '@alfresco/adf-core';
|
||||
import { ContentNodeDialogService, ContentNodeSelectorModule } from '@alfresco/adf-content-services';
|
||||
import { ContentNodeDialogService, ContentModule } from '@alfresco/adf-content-services';
|
||||
import { of } from 'rxjs';
|
||||
import { MinimalNodeEntryEntity } from 'alfresco-js-api';
|
||||
import { ProcessTestingModule } from '../testing/process.testing.module';
|
||||
@@ -104,7 +104,10 @@ describe('AttachFileWidgetComponent', () => {
|
||||
let formService: FormService;
|
||||
|
||||
setupTestBed({
|
||||
imports: [ProcessTestingModule, ContentNodeSelectorModule]
|
||||
imports: [
|
||||
ProcessTestingModule,
|
||||
ContentModule.forRoot()
|
||||
]
|
||||
});
|
||||
|
||||
beforeEach(async(() => {
|
||||
|
||||
@@ -24,7 +24,7 @@ import { AttachFolderWidgetComponent } from './attach-folder-widget.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CoreModule,
|
||||
CoreModule.forChild(),
|
||||
MaterialModule
|
||||
],
|
||||
entryComponents: [
|
||||
|
||||
@@ -17,11 +17,10 @@
|
||||
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
|
||||
import { DataColumnModule, DataTableModule } from '@alfresco/adf-core';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
import { PeopleComponent } from './components/people/people.component';
|
||||
import { PeopleListComponent } from './components/people-list/people-list.component';
|
||||
import { PeopleSearchComponent } from './components/people-search/people-search.component';
|
||||
@@ -35,11 +34,9 @@ import { PeopleSearchTitleDirective } from './directives/people-search-title.dir
|
||||
imports: [
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
DataColumnModule,
|
||||
DataTableModule,
|
||||
MaterialModule,
|
||||
CommonModule,
|
||||
TranslateModule
|
||||
CoreModule.forChild()
|
||||
],
|
||||
declarations: [
|
||||
PeopleComponent,
|
||||
|
||||
@@ -17,23 +17,19 @@
|
||||
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { DataColumnModule, DataTableModule, CommentsModule } from '@alfresco/adf-core';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
|
||||
import { ProcessCommentsComponent } from './process-comments.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
DataColumnModule,
|
||||
DataTableModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
MaterialModule,
|
||||
CommonModule,
|
||||
TranslateModule,
|
||||
CommentsModule
|
||||
CoreModule.forChild()
|
||||
],
|
||||
declarations: [
|
||||
ProcessCommentsComponent
|
||||
|
||||
@@ -19,11 +19,9 @@ import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { ProcessCommentsModule } from '../process-comments/process-comments.module';
|
||||
import { CardViewModule, DataColumnModule, DataTableModule, DirectiveModule, PipeModule } from '@alfresco/adf-core';
|
||||
import { TaskListModule } from '../task-list/task-list.module';
|
||||
import { PeopleModule } from '../people/people.module';
|
||||
import { ContentWidgetModule } from '../content-widget/content-widget.module';
|
||||
@@ -39,18 +37,12 @@ import { StartProcessInstanceComponent } from './components/start-process.compon
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
DataTableModule,
|
||||
CoreModule,
|
||||
TaskListModule,
|
||||
MaterialModule,
|
||||
FlexLayoutModule,
|
||||
TranslateModule,
|
||||
CardViewModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
PipeModule,
|
||||
DataColumnModule,
|
||||
DirectiveModule,
|
||||
CoreModule.forChild(),
|
||||
TaskListModule,
|
||||
PeopleModule,
|
||||
ContentWidgetModule,
|
||||
ProcessCommentsModule
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
*/
|
||||
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { CoreModule, TRANSLATION_PROVIDER, CommentsModule } from '@alfresco/adf-core';
|
||||
import { CoreModule, TRANSLATION_PROVIDER } from '@alfresco/adf-core';
|
||||
|
||||
import { MaterialModule } from './material.module';
|
||||
|
||||
@@ -30,12 +30,26 @@ import { AttachmentModule } from './attachment/attachment.module';
|
||||
import { PeopleModule } from './people/people.module';
|
||||
import { ProcessService } from './process-list/services/process.service';
|
||||
import { ProcessFilterService } from './process-list/services/process-filter.service';
|
||||
import { TaskListService } from './task-list/services/tasklist.service';
|
||||
import { TaskFilterService } from './task-list/services/task-filter.service';
|
||||
import { TaskUploadService } from './task-list/services/task-upload.service';
|
||||
import { ProcessUploadService } from './task-list/services/process-upload.service';
|
||||
|
||||
export function providers() {
|
||||
return [
|
||||
ProcessService,
|
||||
ProcessFilterService,
|
||||
TaskListService,
|
||||
TaskFilterService,
|
||||
TaskUploadService,
|
||||
ProcessUploadService
|
||||
];
|
||||
}
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CoreModule,
|
||||
CoreModule.forChild(),
|
||||
CommonModule,
|
||||
CommentsModule,
|
||||
ProcessCommentsModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
@@ -47,6 +61,7 @@ import { ProcessFilterService } from './process-list/services/process-filter.ser
|
||||
PeopleModule
|
||||
],
|
||||
providers: [
|
||||
...providers(),
|
||||
{
|
||||
provide: TRANSLATION_PROVIDER,
|
||||
multi: true,
|
||||
@@ -54,13 +69,10 @@ import { ProcessFilterService } from './process-list/services/process-filter.ser
|
||||
name: 'adf-process-services',
|
||||
source: 'assets/adf-process-services'
|
||||
}
|
||||
},
|
||||
ProcessService,
|
||||
ProcessFilterService
|
||||
}
|
||||
],
|
||||
exports: [
|
||||
CommonModule,
|
||||
CommentsModule,
|
||||
ProcessCommentsModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
@@ -72,4 +84,54 @@ import { ProcessFilterService } from './process-list/services/process-filter.ser
|
||||
]
|
||||
})
|
||||
export class ProcessModule {
|
||||
static forRoot(): ModuleWithProviders {
|
||||
return {
|
||||
ngModule: ProcessModule,
|
||||
providers: [
|
||||
...providers(),
|
||||
{
|
||||
provide: TRANSLATION_PROVIDER,
|
||||
multi: true,
|
||||
useValue: {
|
||||
name: 'adf-process-services',
|
||||
source: 'assets/adf-process-services'
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
static forChild(): ModuleWithProviders {
|
||||
return {
|
||||
ngModule: ProcessModuleLazy
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CoreModule.forChild(),
|
||||
CommonModule,
|
||||
ProcessCommentsModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
MaterialModule,
|
||||
ProcessListModule,
|
||||
TaskListModule,
|
||||
AppsListModule,
|
||||
AttachmentModule,
|
||||
PeopleModule
|
||||
],
|
||||
exports: [
|
||||
CommonModule,
|
||||
ProcessCommentsModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
ProcessListModule,
|
||||
TaskListModule,
|
||||
AppsListModule,
|
||||
AttachmentModule,
|
||||
PeopleModule
|
||||
]
|
||||
})
|
||||
export class ProcessModuleLazy {}
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { CoreModule } from '@alfresco/adf-core';
|
||||
import { ProcessCommentsModule } from '../process-comments/process-comments.module';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
@@ -26,10 +25,6 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { MaterialModule } from '../material.module';
|
||||
import { PeopleModule } from '../people/people.module';
|
||||
import { ContentWidgetModule } from '../content-widget/content-widget.module';
|
||||
import { TaskUploadService } from './services/task-upload.service';
|
||||
import { ProcessUploadService } from './services/process-upload.service';
|
||||
import { TaskListService } from './services/tasklist.service';
|
||||
import { TaskFilterService } from './services/task-filter.service';
|
||||
|
||||
import { ChecklistComponent } from './components/checklist.component';
|
||||
import { NoTaskDetailsTemplateDirective } from './components/no-task-detail-template.directive';
|
||||
@@ -44,13 +39,12 @@ import { AttachFormComponent } from './components/attach-form.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CoreModule,
|
||||
CommonModule,
|
||||
FlexLayoutModule,
|
||||
MaterialModule,
|
||||
TranslateModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
CoreModule.forChild(),
|
||||
PeopleModule,
|
||||
ProcessCommentsModule,
|
||||
ContentWidgetModule
|
||||
@@ -67,12 +61,6 @@ import { AttachFormComponent } from './components/attach-form.component';
|
||||
TaskStandaloneComponent,
|
||||
AttachFormComponent
|
||||
],
|
||||
providers: [
|
||||
TaskListService,
|
||||
TaskFilterService,
|
||||
TaskUploadService,
|
||||
ProcessUploadService
|
||||
],
|
||||
exports: [
|
||||
NoTaskDetailsTemplateDirective,
|
||||
TaskFiltersComponent,
|
||||
|
||||
@@ -24,11 +24,16 @@ import {
|
||||
AppConfigService,
|
||||
AppConfigServiceMock,
|
||||
TranslationService,
|
||||
TranslationMock
|
||||
TranslationMock,
|
||||
CoreModule
|
||||
} from '@alfresco/adf-core';
|
||||
|
||||
@NgModule({
|
||||
imports: [NoopAnimationsModule, ProcessModule],
|
||||
imports: [
|
||||
NoopAnimationsModule,
|
||||
CoreModule.forRoot(),
|
||||
ProcessModule
|
||||
],
|
||||
providers: [
|
||||
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
||||
{ provide: AppConfigService, useClass: AppConfigServiceMock },
|
||||
|
||||
Reference in New Issue
Block a user