mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-23 18:05:09 +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:
parent
f3a513ca72
commit
f606149344
@ -1,39 +0,0 @@
|
|||||||
/*!
|
|
||||||
* @license
|
|
||||||
* Copyright 2016 Alfresco Software, Ltd.
|
|
||||||
*
|
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
* you may not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
* See the License for the specific language governing permissions and
|
|
||||||
* limitations under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { NgModule } from '@angular/core';
|
|
||||||
|
|
||||||
import { ContentModule } from '@alfresco/adf-content-services';
|
|
||||||
import { ProcessModule } from '@alfresco/adf-process-services';
|
|
||||||
import { CoreModule } from '@alfresco/adf-core';
|
|
||||||
import { InsightsModule } from '@alfresco/adf-insights';
|
|
||||||
|
|
||||||
export function modules() {
|
|
||||||
return [
|
|
||||||
CoreModule,
|
|
||||||
ContentModule,
|
|
||||||
InsightsModule,
|
|
||||||
ProcessModule
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
imports: modules(),
|
|
||||||
exports: modules()
|
|
||||||
})
|
|
||||||
export class AdfModule {
|
|
||||||
}
|
|
@ -17,8 +17,11 @@
|
|||||||
|
|
||||||
import { TestBed, async } from '@angular/core/testing';
|
import { TestBed, async } from '@angular/core/testing';
|
||||||
import { RouterTestingModule } from '@angular/router/testing';
|
import { RouterTestingModule } from '@angular/router/testing';
|
||||||
|
import { ContentModule } from '@alfresco/adf-content-services';
|
||||||
|
import { ProcessModule } from '@alfresco/adf-process-services';
|
||||||
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
import { InsightsModule } from '@alfresco/adf-insights';
|
||||||
|
|
||||||
import { AdfModule } from './adf.module';
|
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
|
|
||||||
describe('AppComponent', () => {
|
describe('AppComponent', () => {
|
||||||
@ -26,7 +29,10 @@ describe('AppComponent', () => {
|
|||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [
|
imports: [
|
||||||
RouterTestingModule,
|
RouterTestingModule,
|
||||||
AdfModule
|
CoreModule.forRoot(),
|
||||||
|
ContentModule.forRoot(),
|
||||||
|
InsightsModule,
|
||||||
|
ProcessModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent
|
AppComponent
|
||||||
|
@ -23,9 +23,8 @@ import { ChartsModule } from 'ng2-charts';
|
|||||||
import { HttpClientModule } from '@angular/common/http';
|
import { HttpClientModule } from '@angular/common/http';
|
||||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||||
|
|
||||||
import { AppConfigService, TRANSLATION_PROVIDER, DebugAppConfigService } from '@alfresco/adf-core';
|
import { AppConfigService, TRANSLATION_PROVIDER, DebugAppConfigService, CoreModule } from '@alfresco/adf-core';
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
import { AdfModule } from './adf.module';
|
|
||||||
import { MaterialModule } from './material.module';
|
import { MaterialModule } from './material.module';
|
||||||
import { LoginComponent } from './components/login/login.component';
|
import { LoginComponent } from './components/login/login.component';
|
||||||
import { LogoutComponent } from './components/logout/logout.component';
|
import { LogoutComponent } from './components/logout/logout.component';
|
||||||
@ -51,13 +50,11 @@ import { AppsViewComponent } from './components/process-service/apps-view.compon
|
|||||||
import { DataTableComponent } from './components/datatable/datatable.component';
|
import { DataTableComponent } from './components/datatable/datatable.component';
|
||||||
import { TrashcanComponent } from './components/trashcan/trashcan.component';
|
import { TrashcanComponent } from './components/trashcan/trashcan.component';
|
||||||
import { FilesComponent } from './components/files/files.component';
|
import { FilesComponent } from './components/files/files.component';
|
||||||
import { FileViewComponent } from './components/file-view/file-view.component';
|
|
||||||
import { WebscriptComponent } from './components/webscript/webscript.component';
|
import { WebscriptComponent } from './components/webscript/webscript.component';
|
||||||
import { TagComponent } from './components/tag/tag.component';
|
import { TagComponent } from './components/tag/tag.component';
|
||||||
import { SocialComponent } from './components/social/social.component';
|
import { SocialComponent } from './components/social/social.component';
|
||||||
import { VersionManagerDialogAdapterComponent } from './components/files/version-manager-dialog-adapter.component';
|
import { VersionManagerDialogAdapterComponent } from './components/files/version-manager-dialog-adapter.component';
|
||||||
import { MetadataDialogAdapterComponent } from './components/files/metadata-dialog-adapter.component';
|
import { MetadataDialogAdapterComponent } from './components/files/metadata-dialog-adapter.component';
|
||||||
import { BlobPreviewComponent } from './components/blob-preview/blob-preview.component';
|
|
||||||
|
|
||||||
import { ThemePickerModule } from './components/theme-picker/theme-picker';
|
import { ThemePickerModule } from './components/theme-picker/theme-picker';
|
||||||
|
|
||||||
@ -79,6 +76,9 @@ import { HeaderDataComponent } from './components/header-data/header-data.compon
|
|||||||
import { ConfigEditorComponent } from './components/config-editor/config-editor.component';
|
import { ConfigEditorComponent } from './components/config-editor/config-editor.component';
|
||||||
import { HeaderDataService } from './components/header-data/header-data.service';
|
import { HeaderDataService } from './components/header-data/header-data.service';
|
||||||
import { MonacoEditorModule } from 'ngx-monaco-editor';
|
import { MonacoEditorModule } from 'ngx-monaco-editor';
|
||||||
|
import { ContentModule } from '@alfresco/adf-content-services';
|
||||||
|
import { InsightsModule } from '@alfresco/adf-insights';
|
||||||
|
import { ProcessModule } from '@alfresco/adf-process-services';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@ -87,13 +87,16 @@ import { MonacoEditorModule } from 'ngx-monaco-editor';
|
|||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
routing,
|
routing,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
MaterialModule,
|
|
||||||
ThemePickerModule,
|
|
||||||
FlexLayoutModule,
|
|
||||||
ChartsModule,
|
|
||||||
HttpClientModule,
|
HttpClientModule,
|
||||||
AdfModule,
|
MaterialModule,
|
||||||
MonacoEditorModule.forRoot()
|
FlexLayoutModule,
|
||||||
|
CoreModule.forRoot(),
|
||||||
|
ContentModule.forRoot(),
|
||||||
|
InsightsModule.forRoot(),
|
||||||
|
ProcessModule.forRoot(),
|
||||||
|
ThemePickerModule,
|
||||||
|
ChartsModule,
|
||||||
|
MonacoEditorModule.forRoot(),
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
AppComponent,
|
AppComponent,
|
||||||
@ -114,7 +117,6 @@ import { MonacoEditorModule } from 'ngx-monaco-editor';
|
|||||||
AppsViewComponent,
|
AppsViewComponent,
|
||||||
DataTableComponent,
|
DataTableComponent,
|
||||||
FilesComponent,
|
FilesComponent,
|
||||||
FileViewComponent,
|
|
||||||
TrashcanComponent,
|
TrashcanComponent,
|
||||||
FormComponent,
|
FormComponent,
|
||||||
FormListComponent,
|
FormListComponent,
|
||||||
@ -131,7 +133,6 @@ import { MonacoEditorModule } from 'ngx-monaco-editor';
|
|||||||
FormLoadingComponent,
|
FormLoadingComponent,
|
||||||
DemoPermissionComponent,
|
DemoPermissionComponent,
|
||||||
FormLoadingComponent,
|
FormLoadingComponent,
|
||||||
BlobPreviewComponent,
|
|
||||||
BreadcrumbDemoComponent,
|
BreadcrumbDemoComponent,
|
||||||
NotificationsComponent,
|
NotificationsComponent,
|
||||||
CardViewComponent,
|
CardViewComponent,
|
||||||
|
@ -40,14 +40,12 @@ import { SocialComponent } from './components/social/social.component';
|
|||||||
import { FilesComponent } from './components/files/files.component';
|
import { FilesComponent } from './components/files/files.component';
|
||||||
import { FormComponent } from './components/form/form.component';
|
import { FormComponent } from './components/form/form.component';
|
||||||
|
|
||||||
import { FileViewComponent } from './components/file-view/file-view.component';
|
|
||||||
import { CustomSourcesComponent } from './components/files/custom-sources.component';
|
import { CustomSourcesComponent } from './components/files/custom-sources.component';
|
||||||
import { FormListComponent } from './components/form/form-list.component';
|
import { FormListComponent } from './components/form/form-list.component';
|
||||||
import { OverlayViewerComponent } from './components/overlay-viewer/overlay-viewer.component';
|
import { OverlayViewerComponent } from './components/overlay-viewer/overlay-viewer.component';
|
||||||
import { SharedLinkViewComponent } from './components/shared-link-view/shared-link-view.component';
|
import { SharedLinkViewComponent } from './components/shared-link-view/shared-link-view.component';
|
||||||
import { FormLoadingComponent } from './components/form/form-loading.component';
|
import { FormLoadingComponent } from './components/form/form-loading.component';
|
||||||
import { DemoPermissionComponent } from './components/permissions/demo-permissions.component';
|
import { DemoPermissionComponent } from './components/permissions/demo-permissions.component';
|
||||||
import { BlobPreviewComponent } from './components/blob-preview/blob-preview.component';
|
|
||||||
import { BreadcrumbDemoComponent } from './components/breadcrumb-demo/breadcrumb-demo.component';
|
import { BreadcrumbDemoComponent } from './components/breadcrumb-demo/breadcrumb-demo.component';
|
||||||
import { TaskListDemoComponent } from './components/task-list-demo/task-list-demo.component';
|
import { TaskListDemoComponent } from './components/task-list-demo/task-list-demo.component';
|
||||||
import { ProcessListDemoComponent } from './components/process-list-demo/process-list-demo.component';
|
import { ProcessListDemoComponent } from './components/process-list-demo/process-list-demo.component';
|
||||||
@ -57,13 +55,37 @@ import { ContentNodeSelectorComponent } from './components/content-node-selector
|
|||||||
import { ReportIssueComponent } from './components/report-issue/report-issue.component';
|
import { ReportIssueComponent } from './components/report-issue/report-issue.component';
|
||||||
import { HeaderDataComponent } from './components/header-data/header-data.component';
|
import { HeaderDataComponent } from './components/header-data/header-data.component';
|
||||||
import { ConfigEditorComponent } from './components/config-editor/config-editor.component';
|
import { ConfigEditorComponent } from './components/config-editor/config-editor.component';
|
||||||
|
import { AppComponent } from './app.component';
|
||||||
|
|
||||||
export const appRoutes: Routes = [
|
export const appRoutes: Routes = [
|
||||||
{ path: 'login', component: LoginComponent },
|
{ path: 'login', component: LoginComponent },
|
||||||
{ path: 'logout', component: LogoutComponent },
|
{ path: 'logout', component: LogoutComponent },
|
||||||
{ path: 'settings', component: SettingsComponent },
|
{ path: 'settings', component: SettingsComponent },
|
||||||
{ path: 'files/:nodeId/view', component: FileViewComponent, canActivate: [ AuthGuardEcm ], outlet: 'overlay' },
|
{
|
||||||
{ path: 'preview/blob', component: BlobPreviewComponent, outlet: 'overlay', pathMatch: 'full' },
|
path: 'files/:nodeId/view',
|
||||||
|
component: AppComponent,
|
||||||
|
canActivate: [ AuthGuardEcm ],
|
||||||
|
canActivateChild: [ AuthGuardEcm ],
|
||||||
|
outlet: 'overlay',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
loadChildren: 'app/components/file-view/file-view.module#FileViewModule'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'preview/blob',
|
||||||
|
component: AppComponent,
|
||||||
|
outlet: 'overlay',
|
||||||
|
pathMatch: 'full',
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
loadChildren: 'app/components/blob-preview/blob-preview.module#BlobPreviewModule'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{ path: 'preview/s/:id', component: SharedLinkViewComponent },
|
{ path: 'preview/s/:id', component: SharedLinkViewComponent },
|
||||||
{
|
{
|
||||||
path: 'breadcrumb',
|
path: 'breadcrumb',
|
||||||
|
@ -0,0 +1,53 @@
|
|||||||
|
/*!
|
||||||
|
* @license
|
||||||
|
* Copyright 2016 Alfresco Software, Ltd.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { CoreModule, InfoDrawerModule } from '@alfresco/adf-core';
|
||||||
|
import { ContentDirectiveModule, ContentMetadataModule, VersionManagerModule } from '@alfresco/adf-content-services';
|
||||||
|
import { BlobPreviewComponent } from './blob-preview.component';
|
||||||
|
|
||||||
|
import * as pdfjsLib from 'pdfjs-dist';
|
||||||
|
pdfjsLib.PDFJS.workerSrc = 'pdf.worker.js';
|
||||||
|
pdfjsLib.PDFJS.disableFontFace = true;
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: BlobPreviewComponent
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
RouterModule.forChild(routes),
|
||||||
|
CoreModule.forChild(),
|
||||||
|
InfoDrawerModule,
|
||||||
|
ContentDirectiveModule,
|
||||||
|
ContentMetadataModule,
|
||||||
|
VersionManagerModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
BlobPreviewComponent
|
||||||
|
],
|
||||||
|
exports: [
|
||||||
|
BlobPreviewComponent
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class BlobPreviewModule {}
|
51
demo-shell/src/app/components/file-view/file-view.module.ts
Normal file
51
demo-shell/src/app/components/file-view/file-view.module.ts
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
/*!
|
||||||
|
* @license
|
||||||
|
* Copyright 2016 Alfresco Software, Ltd.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
import { CoreModule, InfoDrawerModule } from '@alfresco/adf-core';
|
||||||
|
import { ContentDirectiveModule, VersionManagerModule, ContentMetadataModule } from '@alfresco/adf-content-services';
|
||||||
|
import { FileViewComponent } from './file-view.component';
|
||||||
|
|
||||||
|
import * as pdfjsLib from 'pdfjs-dist';
|
||||||
|
pdfjsLib.PDFJS.workerSrc = 'pdf.worker.js';
|
||||||
|
pdfjsLib.PDFJS.disableFontFace = true;
|
||||||
|
|
||||||
|
const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: FileViewComponent
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
RouterModule.forChild(routes),
|
||||||
|
CoreModule.forChild(),
|
||||||
|
InfoDrawerModule,
|
||||||
|
ContentDirectiveModule,
|
||||||
|
ContentMetadataModule,
|
||||||
|
VersionManagerModule
|
||||||
|
],
|
||||||
|
declarations: [FileViewComponent],
|
||||||
|
exports: [FileViewComponent]
|
||||||
|
})
|
||||||
|
export class FileViewModule {
|
||||||
|
|
||||||
|
}
|
@ -20,18 +20,11 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|||||||
|
|
||||||
import { AppModule } from './app/app.module';
|
import { AppModule } from './app/app.module';
|
||||||
import { environment } from './environments/environment';
|
import { environment } from './environments/environment';
|
||||||
import { PDFJSStatic } from 'pdfjs-dist';
|
|
||||||
|
|
||||||
declare global {
|
|
||||||
const PDFJS: PDFJSStatic;
|
|
||||||
}
|
|
||||||
|
|
||||||
import 'hammerjs';
|
import 'hammerjs';
|
||||||
import 'chart.js';
|
import 'chart.js';
|
||||||
import 'ng2-charts';
|
import 'ng2-charts';
|
||||||
|
|
||||||
PDFJS.workerSrc = 'pdf.worker.min.js';
|
|
||||||
|
|
||||||
if (environment.production) {
|
if (environment.production) {
|
||||||
enableProdMode();
|
enableProdMode();
|
||||||
}
|
}
|
||||||
|
@ -18,16 +18,16 @@
|
|||||||
import { CommonModule } from '@angular/common';
|
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 { TranslateModule } from '@ngx-translate/core';
|
|
||||||
|
|
||||||
import { BreadcrumbComponent } from './breadcrumb.component';
|
import { BreadcrumbComponent } from './breadcrumb.component';
|
||||||
import { DropdownBreadcrumbComponent } from './dropdown-breadcrumb.component';
|
import { DropdownBreadcrumbComponent } from './dropdown-breadcrumb.component';
|
||||||
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule
|
CoreModule.forChild()
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
BreadcrumbComponent,
|
BreadcrumbComponent,
|
||||||
|
@ -18,9 +18,8 @@
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
|
||||||
import { MaterialModule } from '../material.module';
|
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 { 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';
|
||||||
|
|
||||||
@ -28,9 +27,8 @@ import { ContentMetadataCardComponent } from './components/content-metadata-card
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule,
|
|
||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
CardViewModule
|
CoreModule.forChild()
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
ContentMetadataComponent,
|
ContentMetadataComponent,
|
||||||
|
@ -19,15 +19,12 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { MaterialModule } from '../material.module';
|
import { MaterialModule } from '../material.module';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
|
||||||
|
|
||||||
import { ContentNodeSelectorPanelComponent } from './content-node-selector-panel.component';
|
import { ContentNodeSelectorPanelComponent } from './content-node-selector-panel.component';
|
||||||
import { ContentNodeSelectorComponent } from './content-node-selector.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 { SitesDropdownModule } from '../site-dropdown/sites-dropdown.module';
|
||||||
import { BreadcrumbModule } from '../breadcrumb/breadcrumb.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 { DocumentListModule } from '../document-list/document-list.module';
|
||||||
import { NameLocationCellComponent } from './name-location-cell/name-location-cell.component';
|
import { NameLocationCellComponent } from './name-location-cell/name-location-cell.component';
|
||||||
|
|
||||||
@ -35,17 +32,12 @@ import { NameLocationCellComponent } from './name-location-cell/name-location-ce
|
|||||||
imports: [
|
imports: [
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
DirectiveModule,
|
CoreModule.forChild(),
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule,
|
|
||||||
SitesDropdownModule,
|
SitesDropdownModule,
|
||||||
BreadcrumbModule,
|
BreadcrumbModule,
|
||||||
ToolbarModule,
|
DocumentListModule
|
||||||
DocumentListModule,
|
|
||||||
DataColumnModule,
|
|
||||||
DataTableModule,
|
|
||||||
PaginationModule
|
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
ContentNodeSelectorPanelComponent,
|
ContentNodeSelectorPanelComponent,
|
||||||
@ -53,16 +45,13 @@ import { NameLocationCellComponent } from './name-location-cell/name-location-ce
|
|||||||
ContentNodeSelectorComponent
|
ContentNodeSelectorComponent
|
||||||
],
|
],
|
||||||
entryComponents: [
|
entryComponents: [
|
||||||
ContentNodeSelectorPanelComponent, ContentNodeSelectorComponent
|
ContentNodeSelectorPanelComponent,
|
||||||
|
ContentNodeSelectorComponent
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
ContentNodeSelectorPanelComponent,
|
ContentNodeSelectorPanelComponent,
|
||||||
NameLocationCellComponent,
|
NameLocationCellComponent,
|
||||||
ContentNodeSelectorComponent
|
ContentNodeSelectorComponent
|
||||||
],
|
|
||||||
providers: [
|
|
||||||
ContentNodeSelectorService,
|
|
||||||
ContentNodeDialogService
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class ContentNodeSelectorModule {}
|
export class ContentNodeSelectorModule {}
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { CoreModule, TRANSLATION_PROVIDER } from '@alfresco/adf-core';
|
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 { PropertyGroupTranslatorService } from './content-metadata/services/property-groups-translator.service';
|
||||||
import { SearchQueryBuilderService } from './search/search-query-builder.service';
|
import { SearchQueryBuilderService } from './search/search-query-builder.service';
|
||||||
import { SearchFilterService } from './search/components/search-filter/search-filter.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({
|
@NgModule({
|
||||||
imports: [
|
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,
|
SocialModule,
|
||||||
TagModule,
|
TagModule,
|
||||||
CommonModule,
|
CommonModule,
|
||||||
@ -70,6 +146,7 @@ import { SearchFilterService } from './search/components/search-filter/search-fi
|
|||||||
VersionManagerModule
|
VersionManagerModule
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
...providers(),
|
||||||
{
|
{
|
||||||
provide: TRANSLATION_PROVIDER,
|
provide: TRANSLATION_PROVIDER,
|
||||||
multi: true,
|
multi: true,
|
||||||
@ -77,18 +154,9 @@ import { SearchFilterService } from './search/components/search-filter/search-fi
|
|||||||
name: 'adf-content-services',
|
name: 'adf-content-services',
|
||||||
source: 'assets/adf-content-services'
|
source: 'assets/adf-content-services'
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
RatingService,
|
|
||||||
ContentMetadataService,
|
|
||||||
PropertyDescriptorsService,
|
|
||||||
ContentMetadataConfigFactory,
|
|
||||||
BasicPropertiesService,
|
|
||||||
PropertyGroupTranslatorService,
|
|
||||||
SearchQueryBuilderService,
|
|
||||||
SearchFilterService
|
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
CoreModule,
|
|
||||||
SocialModule,
|
SocialModule,
|
||||||
TagModule,
|
TagModule,
|
||||||
WebScriptModule,
|
WebScriptModule,
|
||||||
@ -107,4 +175,26 @@ import { SearchFilterService } from './search/components/search-filter/search-fi
|
|||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class ContentModule {
|
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 { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
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 { DownloadZipDialogComponent } from './download-zip.dialog';
|
||||||
import { FolderDialogComponent } from './folder.dialog';
|
import { FolderDialogComponent } from './folder.dialog';
|
||||||
import { NodeLockDialogComponent } from './node-lock.dialog';
|
import { NodeLockDialogComponent } from './node-lock.dialog';
|
||||||
import { ShareDialogComponent } from './share.dialog';
|
import { ShareDialogComponent } from './share.dialog';
|
||||||
import { ConfirmDialogComponent } from './confirm.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 { MatDatetimepickerModule } from '@mat-datetimepicker/core';
|
||||||
import { MatMomentDatetimeModule } from '@mat-datetimepicker/moment';
|
import { MatMomentDatetimeModule } from '@mat-datetimepicker/moment';
|
||||||
|
|
||||||
@ -36,9 +33,8 @@ import { MatMomentDatetimeModule } from '@mat-datetimepicker/moment';
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule,
|
CoreModule.forChild(),
|
||||||
FormsModule,
|
FormsModule,
|
||||||
FormModule,
|
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
MatMomentDatetimeModule,
|
MatMomentDatetimeModule,
|
||||||
MatDatetimepickerModule
|
MatDatetimepickerModule
|
||||||
|
@ -18,8 +18,7 @@
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
import { DataTableModule, PaginationModule, ToolbarModule } from '@alfresco/adf-core';
|
|
||||||
|
|
||||||
import { MaterialModule } from '../material.module';
|
import { MaterialModule } from '../material.module';
|
||||||
import { UploadModule } from '../upload/upload.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 { EmptyFolderContentDirective } from './components/empty-folder/empty-folder-content.directive';
|
||||||
import { NoPermissionContentDirective } from './components/no-permission/no-permission-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({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
ToolbarModule,
|
CoreModule.forChild(),
|
||||||
CommonModule,
|
CommonModule,
|
||||||
DataTableModule,
|
|
||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
UploadModule,
|
UploadModule
|
||||||
TranslateModule,
|
|
||||||
PaginationModule
|
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
DocumentListComponent,
|
DocumentListComponent,
|
||||||
@ -59,13 +49,6 @@ import { CustomResourcesService } from './services/custom-resources.service';
|
|||||||
EmptyFolderContentDirective,
|
EmptyFolderContentDirective,
|
||||||
NoPermissionContentDirective
|
NoPermissionContentDirective
|
||||||
],
|
],
|
||||||
providers: [
|
|
||||||
DocumentListService,
|
|
||||||
FolderActionsService,
|
|
||||||
DocumentActionsService,
|
|
||||||
NodeActionsService,
|
|
||||||
CustomResourcesService
|
|
||||||
],
|
|
||||||
exports: [
|
exports: [
|
||||||
DocumentListComponent,
|
DocumentListComponent,
|
||||||
ContentColumnComponent,
|
ContentColumnComponent,
|
||||||
|
@ -18,28 +18,23 @@
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
|
||||||
import { MaterialModule } from '../material.module';
|
import { MaterialModule } from '../material.module';
|
||||||
import { PermissionListComponent } from './components/permission-list/permission-list.component';
|
import { PermissionListComponent } from './components/permission-list/permission-list.component';
|
||||||
import { AddPermissionComponent } from './components/add-permission/add-permission.component';
|
import { AddPermissionComponent } from './components/add-permission/add-permission.component';
|
||||||
import { AddPermissionDialogComponent } from './components/add-permission/add-permission-dialog.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 { InheritPermissionDirective } from './components/inherited-button.directive';
|
||||||
import { NodePermissionService } from './services/node-permission.service';
|
|
||||||
import { NoPermissionTemplateComponent } from './components/permission-list/no-permission.component';
|
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 { AddPermissionPanelComponent } from './components/add-permission/add-permission-panel.component';
|
||||||
import { SearchModule } from '../search/search.module';
|
import { SearchModule } from '../search/search.module';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
|
CoreModule.forChild(),
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule,
|
|
||||||
DataTableModule,
|
|
||||||
DataColumnModule,
|
|
||||||
SearchModule
|
SearchModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
@ -50,11 +45,11 @@ import { SearchModule } from '../search/search.module';
|
|||||||
AddPermissionComponent,
|
AddPermissionComponent,
|
||||||
AddPermissionDialogComponent
|
AddPermissionDialogComponent
|
||||||
],
|
],
|
||||||
providers: [
|
entryComponents: [
|
||||||
NodePermissionDialogService,
|
AddPermissionPanelComponent,
|
||||||
NodePermissionService
|
AddPermissionComponent,
|
||||||
|
AddPermissionDialogComponent
|
||||||
],
|
],
|
||||||
entryComponents: [ AddPermissionPanelComponent, AddPermissionComponent, AddPermissionDialogComponent ],
|
|
||||||
exports: [
|
exports: [
|
||||||
PermissionListComponent,
|
PermissionListComponent,
|
||||||
NoPermissionTemplateComponent,
|
NoPermissionTemplateComponent,
|
||||||
|
@ -18,10 +18,9 @@
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
|
||||||
import { MaterialModule } from '../material.module';
|
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';
|
import { SearchTriggerDirective } from './components/search-trigger.directive';
|
||||||
|
|
||||||
@ -50,13 +49,11 @@ export const ALFRESCO_SEARCH_DIRECTIVES: any[] = [
|
|||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CoreModule,
|
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
PipeModule,
|
CoreModule.forChild()
|
||||||
TranslateModule
|
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
...ALFRESCO_SEARCH_DIRECTIVES,
|
...ALFRESCO_SEARCH_DIRECTIVES,
|
||||||
|
@ -18,18 +18,18 @@
|
|||||||
import { CommonModule } from '@angular/common';
|
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 { TranslateModule } from '@ngx-translate/core';
|
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
|
|
||||||
import { DropdownSitesComponent } from './sites-dropdown.component';
|
import { DropdownSitesComponent } from './sites-dropdown.component';
|
||||||
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule,
|
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule
|
ReactiveFormsModule,
|
||||||
|
CoreModule.forChild()
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
DropdownSitesComponent
|
DropdownSitesComponent
|
||||||
|
@ -18,21 +18,20 @@
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
|
||||||
|
|
||||||
import { MaterialModule } from '../material.module';
|
import { MaterialModule } from '../material.module';
|
||||||
import { TagActionsComponent } from './tag-actions.component';
|
import { TagActionsComponent } from './tag-actions.component';
|
||||||
import { TagListComponent } from './tag-list.component';
|
import { TagListComponent } from './tag-list.component';
|
||||||
import { TagNodeListComponent } from './tag-node-list.component';
|
import { TagNodeListComponent } from './tag-node-list.component';
|
||||||
import { TagService } from './services/tag.service';
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule,
|
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule
|
ReactiveFormsModule,
|
||||||
|
CoreModule.forChild()
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
TagActionsComponent,
|
TagActionsComponent,
|
||||||
@ -43,9 +42,6 @@ import { TagService } from './services/tag.service';
|
|||||||
TagActionsComponent,
|
TagActionsComponent,
|
||||||
TagListComponent,
|
TagListComponent,
|
||||||
TagNodeListComponent
|
TagNodeListComponent
|
||||||
],
|
|
||||||
providers: [
|
|
||||||
TagService
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class TagModule {}
|
export class TagModule {}
|
||||||
|
@ -36,7 +36,7 @@ import { ContentModule } from '../content.module';
|
|||||||
NoopAnimationsModule,
|
NoopAnimationsModule,
|
||||||
RouterTestingModule,
|
RouterTestingModule,
|
||||||
CoreModule.forRoot(),
|
CoreModule.forRoot(),
|
||||||
ContentModule
|
ContentModule.forRoot()
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
|
||||||
|
|
||||||
import { MaterialModule } from '../material.module';
|
import { MaterialModule } from '../material.module';
|
||||||
import { FileUploadingDialogComponent } from './components/file-uploading-dialog.component';
|
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 { UploadVersionButtonComponent } from './components/upload-version-button.component';
|
||||||
import { UploadDragAreaComponent } from './components/upload-drag-area.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';
|
import { FileDraggableDirective } from './directives/file-draggable.directive';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
|
CoreModule.forChild(),
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule
|
||||||
TranslateModule,
|
|
||||||
PipeModule
|
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
FileDraggableDirective,
|
FileDraggableDirective,
|
||||||
|
@ -19,18 +19,18 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { MaterialModule } from '../material.module';
|
import { MaterialModule } from '../material.module';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
|
||||||
|
|
||||||
import { VersionUploadComponent } from './version-upload.component';
|
import { VersionUploadComponent } from './version-upload.component';
|
||||||
import { VersionManagerComponent } from './version-manager.component';
|
import { VersionManagerComponent } from './version-manager.component';
|
||||||
import { VersionListComponent } from './version-list.component';
|
import { VersionListComponent } from './version-list.component';
|
||||||
import { UploadModule } from '../upload/upload.module';
|
import { UploadModule } from '../upload/upload.module';
|
||||||
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule,
|
CoreModule.forChild(),
|
||||||
UploadModule,
|
UploadModule,
|
||||||
FormsModule
|
FormsModule
|
||||||
],
|
],
|
||||||
@ -44,7 +44,6 @@ import { UploadModule } from '../upload/upload.module';
|
|||||||
VersionUploadComponent,
|
VersionUploadComponent,
|
||||||
VersionManagerComponent,
|
VersionManagerComponent,
|
||||||
VersionListComponent
|
VersionListComponent
|
||||||
],
|
]
|
||||||
providers: []
|
|
||||||
})
|
})
|
||||||
export class VersionManagerModule {}
|
export class VersionManagerModule {}
|
||||||
|
@ -15,10 +15,9 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { DataTableModule, PipeModule } from '@alfresco/adf-core';
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
|
||||||
|
|
||||||
import { MaterialModule } from '../material.module';
|
import { MaterialModule } from '../material.module';
|
||||||
import { WebscriptComponent } from './webscript.component';
|
import { WebscriptComponent } from './webscript.component';
|
||||||
@ -26,10 +25,8 @@ import { WebscriptComponent } from './webscript.component';
|
|||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
PipeModule,
|
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
DataTableModule,
|
CoreModule.forChild()
|
||||||
TranslateModule
|
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
WebscriptComponent
|
WebscriptComponent
|
||||||
|
@ -27,7 +27,7 @@ import { DataColumnModule } from '../data-column/data-column.module';
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule,
|
TranslateModule.forChild(),
|
||||||
DataTableModule,
|
DataTableModule,
|
||||||
DataColumnModule
|
DataColumnModule
|
||||||
],
|
],
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { HttpClientModule } from '@angular/common/http';
|
import { HttpClientModule } from '@angular/common/http';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { AppConfigService } from './app-config.service';
|
|
||||||
import { AppConfigPipe } from './app-config.pipe';
|
import { AppConfigPipe } from './app-config.pipe';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@ -27,9 +26,6 @@ import { AppConfigPipe } from './app-config.pipe';
|
|||||||
declarations: [
|
declarations: [
|
||||||
AppConfigPipe
|
AppConfigPipe
|
||||||
],
|
],
|
||||||
providers: [
|
|
||||||
AppConfigService
|
|
||||||
],
|
|
||||||
exports: [
|
exports: [
|
||||||
AppConfigPipe
|
AppConfigPipe
|
||||||
]
|
]
|
||||||
|
@ -26,7 +26,7 @@ import { FlexLayoutModule } from '@angular/flex-layout';
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule,
|
TranslateModule.forChild(),
|
||||||
FlexLayoutModule
|
FlexLayoutModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -47,7 +47,7 @@ import { CardViewSelectItemComponent } from './components/card-view-selectitem/c
|
|||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
TranslateModule,
|
TranslateModule.forChild(),
|
||||||
MatDatepickerModule,
|
MatDatepickerModule,
|
||||||
MatNativeDateModule,
|
MatNativeDateModule,
|
||||||
MatCheckboxModule,
|
MatCheckboxModule,
|
||||||
|
@ -36,9 +36,6 @@ import { AccordionComponent } from './accordion.component';
|
|||||||
exports: [
|
exports: [
|
||||||
AccordionComponent,
|
AccordionComponent,
|
||||||
AccordionGroupComponent
|
AccordionGroupComponent
|
||||||
],
|
|
||||||
providers: [
|
|
||||||
AccordionComponent
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class CollapsableModule {}
|
export class CollapsableModule {}
|
||||||
|
@ -36,7 +36,7 @@ import { CommentsComponent } from './comments.component';
|
|||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
CommonModule,
|
CommonModule,
|
||||||
TranslateModule
|
TranslateModule.forChild()
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
CommentListComponent,
|
CommentListComponent,
|
||||||
|
@ -21,6 +21,7 @@ import { fakeAsync, ComponentFixture, TestBed, tick } from '@angular/core/testin
|
|||||||
import { ContextMenuHolderComponent } from './context-menu-holder.component';
|
import { ContextMenuHolderComponent } from './context-menu-holder.component';
|
||||||
import { ContextMenuModule } from './context-menu.module';
|
import { ContextMenuModule } from './context-menu.module';
|
||||||
import { ContextMenuService } from './context-menu.service';
|
import { ContextMenuService } from './context-menu.service';
|
||||||
|
import { CoreModule } from '../core.module';
|
||||||
|
|
||||||
describe('ContextMenuHolderComponent', () => {
|
describe('ContextMenuHolderComponent', () => {
|
||||||
let fixture: ComponentFixture<ContextMenuHolderComponent>;
|
let fixture: ComponentFixture<ContextMenuHolderComponent>;
|
||||||
@ -53,6 +54,7 @@ describe('ContextMenuHolderComponent', () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
imports: [
|
imports: [
|
||||||
|
CoreModule.forRoot(),
|
||||||
ContextMenuModule
|
ContextMenuModule
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
@ -22,13 +22,12 @@ import { TranslateModule } from '@ngx-translate/core';
|
|||||||
|
|
||||||
import { ContextMenuHolderComponent } from './context-menu-holder.component';
|
import { ContextMenuHolderComponent } from './context-menu-holder.component';
|
||||||
import { ContextMenuDirective } from './context-menu.directive';
|
import { ContextMenuDirective } from './context-menu.directive';
|
||||||
import { ContextMenuService } from './context-menu.service';
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule
|
TranslateModule.forChild()
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
ContextMenuHolderComponent,
|
ContextMenuHolderComponent,
|
||||||
@ -37,9 +36,6 @@ import { ContextMenuService } from './context-menu.service';
|
|||||||
exports: [
|
exports: [
|
||||||
ContextMenuHolderComponent,
|
ContextMenuHolderComponent,
|
||||||
ContextMenuDirective
|
ContextMenuDirective
|
||||||
],
|
|
||||||
providers: [
|
|
||||||
ContextMenuService
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class ContextMenuModule {}
|
export class ContextMenuModule {}
|
||||||
|
@ -83,6 +83,17 @@ import { UserPreferencesService } from './services/user-preferences.service';
|
|||||||
import { SearchConfigurationService } from './services/search-configuration.service';
|
import { SearchConfigurationService } from './services/search-configuration.service';
|
||||||
import { startupServiceFactory } from './services/startup-service-factory';
|
import { startupServiceFactory } from './services/startup-service-factory';
|
||||||
import { SortingPickerModule } from './sorting-picker/sorting-picker.module';
|
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) {
|
export function createTranslateLoader(http: HttpClient, logService: LogService) {
|
||||||
return new TranslateLoaderService(http, logService);
|
return new TranslateLoaderService(http, logService);
|
||||||
@ -124,7 +135,18 @@ export function providers() {
|
|||||||
CommentProcessService,
|
CommentProcessService,
|
||||||
CommentContentService,
|
CommentContentService,
|
||||||
SearchConfigurationService,
|
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,
|
RouterModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
CommonModule,
|
CommonModule,
|
||||||
TranslateModule,
|
TranslateModule.forChild(),
|
||||||
ContextMenuModule,
|
ContextMenuModule,
|
||||||
PipeModule,
|
PipeModule,
|
||||||
DirectiveModule
|
DirectiveModule
|
||||||
|
@ -36,14 +36,6 @@ import { FormComponent } from './components/form.component';
|
|||||||
import { StartFormComponent } from './components/start-form.component';
|
import { StartFormComponent } from './components/start-form.component';
|
||||||
import { ContentWidgetComponent } from './components/widgets/content/content.widget';
|
import { ContentWidgetComponent } from './components/widgets/content/content.widget';
|
||||||
import { WidgetComponent } from './components/widgets/widget.component';
|
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';
|
import { MatDatetimepickerModule, MatNativeDatetimeModule } from '@mat-datetimepicker/core';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@ -52,7 +44,7 @@ import { MatDatetimepickerModule, MatNativeDatetimeModule } from '@mat-datetimep
|
|||||||
DataTableModule,
|
DataTableModule,
|
||||||
HttpClientModule,
|
HttpClientModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule,
|
TranslateModule.forChild(),
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
DataColumnModule,
|
DataColumnModule,
|
||||||
@ -74,15 +66,6 @@ import { MatDatetimepickerModule, MatNativeDatetimeModule } from '@mat-datetimep
|
|||||||
entryComponents: [
|
entryComponents: [
|
||||||
...WIDGET_DIRECTIVES
|
...WIDGET_DIRECTIVES
|
||||||
],
|
],
|
||||||
providers: [
|
|
||||||
ActivitiContentService,
|
|
||||||
EcmModelService,
|
|
||||||
FormRenderingService,
|
|
||||||
FormService,
|
|
||||||
NodeService,
|
|
||||||
ProcessContentService,
|
|
||||||
WidgetVisibilityService
|
|
||||||
],
|
|
||||||
exports: [
|
exports: [
|
||||||
ContentWidgetComponent,
|
ContentWidgetComponent,
|
||||||
FormFieldComponent,
|
FormFieldComponent,
|
||||||
|
@ -33,7 +33,7 @@ import { LoginHeaderDirective } from './directives/login-header.directive';
|
|||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
CommonModule,
|
CommonModule,
|
||||||
TranslateModule
|
TranslateModule.forChild()
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
LoginComponent,
|
LoginComponent,
|
||||||
@ -41,11 +41,9 @@ import { LoginHeaderDirective } from './directives/login-header.directive';
|
|||||||
LoginHeaderDirective
|
LoginHeaderDirective
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
[
|
LoginComponent,
|
||||||
LoginComponent,
|
LoginFooterDirective,
|
||||||
LoginFooterDirective,
|
LoginHeaderDirective
|
||||||
LoginHeaderDirective
|
|
||||||
]
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class LoginModule {
|
export class LoginModule {
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
"hammerjs": "2.0.8",
|
"hammerjs": "2.0.8",
|
||||||
"minimatch-browser": "1.0.0",
|
"minimatch-browser": "1.0.0",
|
||||||
"moment": "^2.22.2",
|
"moment": "^2.22.2",
|
||||||
"pdfjs-dist": "1.5.404",
|
"pdfjs-dist": "2.0.303",
|
||||||
"reflect-metadata": "^0.1.12",
|
"reflect-metadata": "^0.1.12",
|
||||||
"zone.js": "^0.8.26"
|
"zone.js": "^0.8.26"
|
||||||
},
|
},
|
||||||
|
@ -26,7 +26,7 @@ import { PaginationComponent } from './pagination.component';
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule
|
TranslateModule.forChild()
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
InfinitePaginationComponent,
|
InfinitePaginationComponent,
|
||||||
|
@ -27,7 +27,7 @@ import { HostSettingsComponent } from './host-settings.component';
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule,
|
TranslateModule.forChild(),
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule
|
ReactiveFormsModule
|
||||||
],
|
],
|
||||||
|
@ -25,7 +25,7 @@ import { SortingPickerComponent } from './sorting-picker.component';
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule
|
TranslateModule.forChild()
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
SortingPickerComponent
|
SortingPickerComponent
|
||||||
|
@ -26,7 +26,7 @@ import { EmptyContentComponent } from './empty-content/empty-content.component';
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule
|
TranslateModule.forChild()
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
ErrorContentComponent,
|
ErrorContentComponent,
|
||||||
|
@ -22,23 +22,17 @@ import { TranslateModule } from '@ngx-translate/core';
|
|||||||
import { MaterialModule } from '../material.module';
|
import { MaterialModule } from '../material.module';
|
||||||
import { PipeModule } from '../pipes/pipe.module';
|
import { PipeModule } from '../pipes/pipe.module';
|
||||||
import { UserInfoComponent } from './components/user-info.component';
|
import { UserInfoComponent } from './components/user-info.component';
|
||||||
import { BpmUserService } from './services/bpm-user.service';
|
|
||||||
import { EcmUserService } from './services/ecm-user.service';
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule,
|
TranslateModule.forChild(),
|
||||||
PipeModule
|
PipeModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
UserInfoComponent
|
UserInfoComponent
|
||||||
],
|
],
|
||||||
providers: [
|
|
||||||
EcmUserService,
|
|
||||||
BpmUserService
|
|
||||||
],
|
|
||||||
exports: [
|
exports: [
|
||||||
UserInfoComponent
|
UserInfoComponent
|
||||||
]
|
]
|
||||||
|
@ -44,7 +44,7 @@ import { ViewerToolbarActionsComponent } from './components/viewer-toolbar-actio
|
|||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule,
|
TranslateModule.forChild(),
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
ToolbarModule,
|
ToolbarModule,
|
||||||
|
@ -18,13 +18,12 @@
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
|
||||||
import { DiagramsModule } from '../diagram/diagram.module';
|
import { DiagramsModule } from '../diagram/diagram.module';
|
||||||
import { MaterialModule } from '../material.module';
|
import { MaterialModule } from '../material.module';
|
||||||
|
|
||||||
import { ChartsModule } from 'ng2-charts';
|
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 { AnalyticsGeneratorComponent } from './components/analytics-generator.component';
|
||||||
import { AnalyticsReportHeatMapComponent } from './components/analytics-report-heat-map.component';
|
import { AnalyticsReportHeatMapComponent } from './components/analytics-report-heat-map.component';
|
||||||
import { AnalyticsReportListComponent } from './components/analytics-report-list.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 { DurationWidgetComponent } from './components/widgets/duration/duration.widget';
|
||||||
import { NumberWidgetAanlyticsComponent } from './components/widgets/number/number.widget';
|
import { NumberWidgetAanlyticsComponent } from './components/widgets/number/number.widget';
|
||||||
|
|
||||||
import { AnalyticsService } from './services/analytics.service';
|
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
@ -48,10 +46,8 @@ import { FlexLayoutModule } from '@angular/flex-layout';
|
|||||||
ChartsModule,
|
ChartsModule,
|
||||||
DiagramsModule,
|
DiagramsModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule,
|
|
||||||
ToolbarModule,
|
|
||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
ButtonsMenuModule
|
CoreModule.forChild()
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
AnalyticsComponent,
|
AnalyticsComponent,
|
||||||
@ -65,9 +61,6 @@ import { FlexLayoutModule } from '@angular/flex-layout';
|
|||||||
CheckboxWidgetAanalyticsComponent,
|
CheckboxWidgetAanalyticsComponent,
|
||||||
DateRangeWidgetComponent
|
DateRangeWidgetComponent
|
||||||
],
|
],
|
||||||
providers: [
|
|
||||||
AnalyticsService
|
|
||||||
],
|
|
||||||
exports: [
|
exports: [
|
||||||
AnalyticsComponent,
|
AnalyticsComponent,
|
||||||
AnalyticsReportListComponent,
|
AnalyticsReportListComponent,
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
|
||||||
|
|
||||||
import { DiagramEndEventComponent } from './components/events/diagram-end-event.component';
|
import { DiagramEndEventComponent } from './components/events/diagram-end-event.component';
|
||||||
import { DiagramEventComponent } from './components/events/diagram-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 { 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 { RaphaelCircleDirective } from './components/raphael/raphael-circle.component';
|
||||||
import { RaphaelCrossDirective } from './components/raphael/raphael-cross.component';
|
import { RaphaelCrossDirective } from './components/raphael/raphael-cross.component';
|
||||||
import { RaphaelFlowArrowDirective } from './components/raphael/raphael-flow-arrow.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 { RaphaelIconSignalDirective } from './components/raphael/icons/raphael-icon-signal.component';
|
||||||
import { RaphaelIconTimerDirective } from './components/raphael/icons/raphael-icon-timer.component';
|
import { RaphaelIconTimerDirective } from './components/raphael/icons/raphael-icon-timer.component';
|
||||||
import { RaphaelIconUserDirective } from './components/raphael/icons/raphael-icon-user.component';
|
import { RaphaelIconUserDirective } from './components/raphael/icons/raphael-icon-user.component';
|
||||||
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
TranslateModule
|
CoreModule.forChild()
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
DiagramComponent,
|
DiagramComponent,
|
||||||
@ -202,11 +197,6 @@ import { RaphaelIconUserDirective } from './components/raphael/icons/raphael-ico
|
|||||||
RaphaelIconSignalDirective,
|
RaphaelIconSignalDirective,
|
||||||
RaphaelIconMessageDirective
|
RaphaelIconMessageDirective
|
||||||
],
|
],
|
||||||
providers: [
|
|
||||||
DiagramsService,
|
|
||||||
DiagramColorService,
|
|
||||||
RaphaelService
|
|
||||||
],
|
|
||||||
exports: [
|
exports: [
|
||||||
DiagramComponent,
|
DiagramComponent,
|
||||||
DiagramEventComponent,
|
DiagramEventComponent,
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { CoreModule, TRANSLATION_PROVIDER } from '@alfresco/adf-core';
|
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 { AnalyticsProcessModule } from './analytics-process/analytics-process.module';
|
||||||
|
|
||||||
import { MaterialModule } from './material.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({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CoreModule,
|
CoreModule.forChild(),
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
@ -36,6 +49,7 @@ import { MaterialModule } from './material.module';
|
|||||||
AnalyticsProcessModule
|
AnalyticsProcessModule
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
...providers(),
|
||||||
{
|
{
|
||||||
provide: TRANSLATION_PROVIDER,
|
provide: TRANSLATION_PROVIDER,
|
||||||
multi: true,
|
multi: true,
|
||||||
@ -46,7 +60,6 @@ import { MaterialModule } from './material.module';
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
CoreModule,
|
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
@ -56,4 +69,47 @@ import { MaterialModule } from './material.module';
|
|||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class InsightsModule {
|
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,
|
AppConfigService,
|
||||||
AppConfigServiceMock,
|
AppConfigServiceMock,
|
||||||
TranslationService,
|
TranslationService,
|
||||||
TranslationMock
|
TranslationMock,
|
||||||
|
CoreModule
|
||||||
} from '@alfresco/adf-core';
|
} from '@alfresco/adf-core';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [NoopAnimationsModule, InsightsModule],
|
imports: [
|
||||||
|
NoopAnimationsModule,
|
||||||
|
CoreModule.forRoot(),
|
||||||
|
InsightsModule.forRoot()
|
||||||
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
||||||
{ provide: AppConfigService, useClass: AppConfigServiceMock },
|
{ provide: AppConfigService, useClass: AppConfigServiceMock },
|
||||||
|
@ -19,7 +19,6 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { MaterialModule } from '../material.module';
|
import { MaterialModule } from '../material.module';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
|
||||||
import { CoreModule } from '@alfresco/adf-core';
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
|
|
||||||
import { AppsListComponent } from './apps-list.component';
|
import { AppsListComponent } from './apps-list.component';
|
||||||
@ -30,8 +29,7 @@ import { SelectAppsDialogComponent } from './select-apps-dialog-component';
|
|||||||
CommonModule,
|
CommonModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
TranslateModule,
|
CoreModule.forChild()
|
||||||
CoreModule
|
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
AppsListComponent,
|
AppsListComponent,
|
||||||
|
@ -26,7 +26,7 @@ import { CoreModule } from '@alfresco/adf-core';
|
|||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CoreModule,
|
CoreModule.forChild(),
|
||||||
MaterialModule
|
MaterialModule
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -29,7 +29,7 @@ import {
|
|||||||
ContentService,
|
ContentService,
|
||||||
setupTestBed
|
setupTestBed
|
||||||
} from '@alfresco/adf-core';
|
} 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 { of } from 'rxjs';
|
||||||
import { MinimalNodeEntryEntity } from 'alfresco-js-api';
|
import { MinimalNodeEntryEntity } from 'alfresco-js-api';
|
||||||
import { ProcessTestingModule } from '../testing/process.testing.module';
|
import { ProcessTestingModule } from '../testing/process.testing.module';
|
||||||
@ -104,7 +104,10 @@ describe('AttachFileWidgetComponent', () => {
|
|||||||
let formService: FormService;
|
let formService: FormService;
|
||||||
|
|
||||||
setupTestBed({
|
setupTestBed({
|
||||||
imports: [ProcessTestingModule, ContentNodeSelectorModule]
|
imports: [
|
||||||
|
ProcessTestingModule,
|
||||||
|
ContentModule.forRoot()
|
||||||
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
|
@ -24,7 +24,7 @@ import { AttachFolderWidgetComponent } from './attach-folder-widget.component';
|
|||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CoreModule,
|
CoreModule.forChild(),
|
||||||
MaterialModule
|
MaterialModule
|
||||||
],
|
],
|
||||||
entryComponents: [
|
entryComponents: [
|
||||||
|
@ -17,11 +17,10 @@
|
|||||||
|
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
|
||||||
import { MaterialModule } from '../material.module';
|
import { MaterialModule } from '../material.module';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
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 { PeopleComponent } from './components/people/people.component';
|
||||||
import { PeopleListComponent } from './components/people-list/people-list.component';
|
import { PeopleListComponent } from './components/people-list/people-list.component';
|
||||||
import { PeopleSearchComponent } from './components/people-search/people-search.component';
|
import { PeopleSearchComponent } from './components/people-search/people-search.component';
|
||||||
@ -35,11 +34,9 @@ import { PeopleSearchTitleDirective } from './directives/people-search-title.dir
|
|||||||
imports: [
|
imports: [
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
DataColumnModule,
|
|
||||||
DataTableModule,
|
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
CommonModule,
|
CommonModule,
|
||||||
TranslateModule
|
CoreModule.forChild()
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
PeopleComponent,
|
PeopleComponent,
|
||||||
|
@ -17,23 +17,19 @@
|
|||||||
|
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
|
||||||
import { MaterialModule } from '../material.module';
|
import { MaterialModule } from '../material.module';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
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';
|
import { ProcessCommentsComponent } from './process-comments.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
DataColumnModule,
|
|
||||||
DataTableModule,
|
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
CommonModule,
|
CommonModule,
|
||||||
TranslateModule,
|
CoreModule.forChild()
|
||||||
CommentsModule
|
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
ProcessCommentsComponent
|
ProcessCommentsComponent
|
||||||
|
@ -19,11 +19,9 @@ import { CommonModule } from '@angular/common';
|
|||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
|
||||||
import { CoreModule } from '@alfresco/adf-core';
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
import { MaterialModule } from '../material.module';
|
import { MaterialModule } from '../material.module';
|
||||||
import { ProcessCommentsModule } from '../process-comments/process-comments.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 { TaskListModule } from '../task-list/task-list.module';
|
||||||
import { PeopleModule } from '../people/people.module';
|
import { PeopleModule } from '../people/people.module';
|
||||||
import { ContentWidgetModule } from '../content-widget/content-widget.module';
|
import { ContentWidgetModule } from '../content-widget/content-widget.module';
|
||||||
@ -39,18 +37,12 @@ import { StartProcessInstanceComponent } from './components/start-process.compon
|
|||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
DataTableModule,
|
|
||||||
CoreModule,
|
|
||||||
TaskListModule,
|
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
TranslateModule,
|
|
||||||
CardViewModule,
|
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
PipeModule,
|
CoreModule.forChild(),
|
||||||
DataColumnModule,
|
TaskListModule,
|
||||||
DirectiveModule,
|
|
||||||
PeopleModule,
|
PeopleModule,
|
||||||
ContentWidgetModule,
|
ContentWidgetModule,
|
||||||
ProcessCommentsModule
|
ProcessCommentsModule
|
||||||
|
@ -16,9 +16,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule, ModuleWithProviders } from '@angular/core';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
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';
|
import { MaterialModule } from './material.module';
|
||||||
|
|
||||||
@ -30,12 +30,26 @@ import { AttachmentModule } from './attachment/attachment.module';
|
|||||||
import { PeopleModule } from './people/people.module';
|
import { PeopleModule } from './people/people.module';
|
||||||
import { ProcessService } from './process-list/services/process.service';
|
import { ProcessService } from './process-list/services/process.service';
|
||||||
import { ProcessFilterService } from './process-list/services/process-filter.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({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CoreModule,
|
CoreModule.forChild(),
|
||||||
CommonModule,
|
CommonModule,
|
||||||
CommentsModule,
|
|
||||||
ProcessCommentsModule,
|
ProcessCommentsModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
@ -47,6 +61,7 @@ import { ProcessFilterService } from './process-list/services/process-filter.ser
|
|||||||
PeopleModule
|
PeopleModule
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
...providers(),
|
||||||
{
|
{
|
||||||
provide: TRANSLATION_PROVIDER,
|
provide: TRANSLATION_PROVIDER,
|
||||||
multi: true,
|
multi: true,
|
||||||
@ -54,13 +69,10 @@ import { ProcessFilterService } from './process-list/services/process-filter.ser
|
|||||||
name: 'adf-process-services',
|
name: 'adf-process-services',
|
||||||
source: 'assets/adf-process-services'
|
source: 'assets/adf-process-services'
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
ProcessService,
|
|
||||||
ProcessFilterService
|
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
CommentsModule,
|
|
||||||
ProcessCommentsModule,
|
ProcessCommentsModule,
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
@ -72,4 +84,54 @@ import { ProcessFilterService } from './process-list/services/process-filter.ser
|
|||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class ProcessModule {
|
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 { CommonModule } from '@angular/common';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
import { TranslateModule } from '@ngx-translate/core';
|
|
||||||
import { CoreModule } from '@alfresco/adf-core';
|
import { CoreModule } from '@alfresco/adf-core';
|
||||||
import { ProcessCommentsModule } from '../process-comments/process-comments.module';
|
import { ProcessCommentsModule } from '../process-comments/process-comments.module';
|
||||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
@ -26,10 +25,6 @@ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|||||||
import { MaterialModule } from '../material.module';
|
import { MaterialModule } from '../material.module';
|
||||||
import { PeopleModule } from '../people/people.module';
|
import { PeopleModule } from '../people/people.module';
|
||||||
import { ContentWidgetModule } from '../content-widget/content-widget.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 { ChecklistComponent } from './components/checklist.component';
|
||||||
import { NoTaskDetailsTemplateDirective } from './components/no-task-detail-template.directive';
|
import { NoTaskDetailsTemplateDirective } from './components/no-task-detail-template.directive';
|
||||||
@ -44,13 +39,12 @@ import { AttachFormComponent } from './components/attach-form.component';
|
|||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CoreModule,
|
|
||||||
CommonModule,
|
CommonModule,
|
||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
TranslateModule,
|
|
||||||
FormsModule,
|
FormsModule,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule,
|
||||||
|
CoreModule.forChild(),
|
||||||
PeopleModule,
|
PeopleModule,
|
||||||
ProcessCommentsModule,
|
ProcessCommentsModule,
|
||||||
ContentWidgetModule
|
ContentWidgetModule
|
||||||
@ -67,12 +61,6 @@ import { AttachFormComponent } from './components/attach-form.component';
|
|||||||
TaskStandaloneComponent,
|
TaskStandaloneComponent,
|
||||||
AttachFormComponent
|
AttachFormComponent
|
||||||
],
|
],
|
||||||
providers: [
|
|
||||||
TaskListService,
|
|
||||||
TaskFilterService,
|
|
||||||
TaskUploadService,
|
|
||||||
ProcessUploadService
|
|
||||||
],
|
|
||||||
exports: [
|
exports: [
|
||||||
NoTaskDetailsTemplateDirective,
|
NoTaskDetailsTemplateDirective,
|
||||||
TaskFiltersComponent,
|
TaskFiltersComponent,
|
||||||
|
@ -24,11 +24,16 @@ import {
|
|||||||
AppConfigService,
|
AppConfigService,
|
||||||
AppConfigServiceMock,
|
AppConfigServiceMock,
|
||||||
TranslationService,
|
TranslationService,
|
||||||
TranslationMock
|
TranslationMock,
|
||||||
|
CoreModule
|
||||||
} from '@alfresco/adf-core';
|
} from '@alfresco/adf-core';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [NoopAnimationsModule, ProcessModule],
|
imports: [
|
||||||
|
NoopAnimationsModule,
|
||||||
|
CoreModule.forRoot(),
|
||||||
|
ProcessModule
|
||||||
|
],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
||||||
{ provide: AppConfigService, useClass: AppConfigServiceMock },
|
{ provide: AppConfigService, useClass: AppConfigServiceMock },
|
||||||
|
@ -91,7 +91,7 @@
|
|||||||
"moment-es6": "^1.0.0",
|
"moment-es6": "^1.0.0",
|
||||||
"ng2-charts": "1.6.0",
|
"ng2-charts": "1.6.0",
|
||||||
"ngx-monaco-editor": "^5.0.0",
|
"ngx-monaco-editor": "^5.0.0",
|
||||||
"pdfjs-dist": "2.0.265",
|
"pdfjs-dist": "2.0.303",
|
||||||
"raphael": "2.2.7",
|
"raphael": "2.2.7",
|
||||||
"reflect-metadata": "0.1.10",
|
"reflect-metadata": "0.1.10",
|
||||||
"rxjs": "^6.0.0",
|
"rxjs": "^6.0.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user