Files
alfresco-ng2-components/ng2-components/ng2-activiti-tasklist/index.ts
Popovics András f6c3fafe32 [ADF-112] Change task details feature (due date) (#2071)
* Add Assignee to readonly mode

* Style adoption and first steps to editable mode

* Switch between mode coverage

* Rebase fix

* Because of design and requirement changes, revert unnecessary parts

* Small refactoring before the introduction of CardViewDateItem

* Fix AdfCardView tests

* Editable Card date item

* Do not allow edit on task details after the task is completed.

* Update task details request

* Login footer switch fix

* Login customisable copyright text

* Card text item (first sketches)

* Small fix for supported card items' template

* Dynamic component loading for card view items

* Test and linting fixes

* Updating Readme.md

* Update Readme.md

* Fix Readme.md errors

* CardViewTextItemComponent tests

* Rebase fix
2017-08-01 11:25:32 +01:00

126 lines
3.6 KiB
TypeScript

/*!
* @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 { DatePipe } from '@angular/common';
import { ModuleWithProviders, NgModule } from '@angular/core';
import {
MdAutocompleteModule,
MdButtonModule,
MdCardModule,
MdDatepickerModule,
MdGridListModule,
MdIconModule,
MdInputModule,
MdNativeDateModule,
MdProgressSpinnerModule,
MdSelectModule
} from '@angular/material';
import { ActivitiFormModule } from 'ng2-activiti-form';
import { CoreModule } from 'ng2-alfresco-core';
import { DataTableModule } from 'ng2-alfresco-datatable';
import { ActivitiPeopleService } from './src/services/activiti-people.service';
import { ActivitiTaskListService } from './src/services/activiti-tasklist.service';
import { ProcessUploadService } from './src/services/process-upload.service';
import {
ActivitiAppsComponent,
ActivitiChecklistComponent,
ActivitiCommentsComponent,
ActivitiCreateTaskAttachmentComponent,
ActivitiFiltersComponent,
ActivitiPeopleComponent,
ActivitiPeopleSearchComponent,
ActivitiStartTaskComponent,
ActivitiTaskDetailsComponent,
ActivitiTaskHeaderComponent,
ActivitiTaskListComponent,
AdfCommentListComponent,
NoTaskDetailsTemplateDirective,
PeopleListComponent,
TaskAttachmentListComponent
} from './src/components/index';
export * from './src/components/index';
export * from './src/services/activiti-tasklist.service';
export * from './src/services/activiti-people.service';
export * from './src/services/process-upload.service';
export * from './src/models/index';
export const ACTIVITI_TASKLIST_DIRECTIVES: any[] = [
NoTaskDetailsTemplateDirective,
ActivitiAppsComponent,
ActivitiFiltersComponent,
ActivitiTaskListComponent,
ActivitiTaskDetailsComponent,
ActivitiChecklistComponent,
ActivitiCommentsComponent,
ActivitiPeopleComponent,
ActivitiTaskHeaderComponent,
ActivitiStartTaskComponent,
ActivitiPeopleSearchComponent,
TaskAttachmentListComponent,
ActivitiCreateTaskAttachmentComponent,
PeopleListComponent,
AdfCommentListComponent
];
export const ACTIVITI_TASKLIST_PROVIDERS: any[] = [
ActivitiTaskListService,
ActivitiPeopleService,
ProcessUploadService
];
@NgModule({
imports: [
CoreModule,
DataTableModule,
ActivitiFormModule,
MdIconModule,
MdButtonModule,
MdInputModule,
MdCardModule,
MdProgressSpinnerModule,
MdDatepickerModule,
MdNativeDateModule,
MdSelectModule,
MdAutocompleteModule,
MdGridListModule
],
declarations: [
...ACTIVITI_TASKLIST_DIRECTIVES
],
providers: [
...ACTIVITI_TASKLIST_PROVIDERS,
DatePipe
],
exports: [
...ACTIVITI_TASKLIST_DIRECTIVES,
MdIconModule,
MdButtonModule
]
})
export class ActivitiTaskListModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: ActivitiTaskListModule,
providers: [
...ACTIVITI_TASKLIST_PROVIDERS
]
};
}
}