kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
348 lines
19 KiB
348 lines
19 KiB
// -- copyright
|
|
// OpenProject is a project management system.
|
|
// Copyright (C) 2012-2015 the OpenProject Foundation (OPF)
|
|
//
|
|
// This program is free software; you can redistribute it and/or
|
|
// modify it under the terms of the GNU General Public License version 3.
|
|
//
|
|
// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
|
|
// Copyright (C) 2006-2013 Jean-Philippe Lang
|
|
// Copyright (C) 2010-2013 the ChiliProject Team
|
|
//
|
|
// This program is free software; you can redistribute it and/or
|
|
// modify it under the terms of the GNU General Public License
|
|
// as published by the Free Software Foundation; either version 2
|
|
// of the License, or (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with this program; if not, write to the Free Software
|
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
//
|
|
// See doc/COPYRIGHT.rdoc for more details.
|
|
// ++
|
|
|
|
import {NgModule} from '@angular/core';
|
|
import {BrowserModule} from '@angular/platform-browser';
|
|
import {UpgradeModule} from '@angular/upgrade/static';
|
|
import {FormsModule} from '@angular/forms';
|
|
import {TablePaginationComponent} from 'core-app/components/table-pagination/table-pagination.component';
|
|
import {AccessibleByKeyboardDirectiveUpgraded} from 'core-app/ui_components/accessible-by-keyboard-directive-upgraded';
|
|
import {SimpleTemplateRenderer} from 'core-components/angular/simple-template-renderer';
|
|
import {OpIcon} from 'core-components/common/icon/op-icon';
|
|
import {ContextMenuService} from 'core-components/context-menus/context-menu.service';
|
|
import {HasDropdownMenuDirective} from 'core-components/context-menus/has-dropdown-menu/has-dropdown-menu-directive';
|
|
import {WorkPackagesListComponent} from 'core-components/routing/wp-list/wp-list.component';
|
|
import {States} from 'core-components/states.service';
|
|
import {PaginationService} from 'core-components/table-pagination/pagination-service';
|
|
import {WorkPackageDisplayFieldService} from 'core-components/wp-display/wp-display-field/wp-display-field.service';
|
|
import {WorkPackageEditingService} from 'core-components/wp-edit-form/work-package-editing-service';
|
|
import {WorkPackageNotificationService} from 'core-components/wp-edit/wp-notification.service';
|
|
import {WorkPackageTableColumnsService} from 'core-components/wp-fast-table/state/wp-table-columns.service';
|
|
import {WorkPackageTableFocusService} from 'core-components/wp-fast-table/state/wp-table-focus.service';
|
|
import {WorkPackageTableGroupByService} from 'core-components/wp-fast-table/state/wp-table-group-by.service';
|
|
import {WorkPackageTableHierarchiesService} from 'core-components/wp-fast-table/state/wp-table-hierarchy.service';
|
|
import {WorkPackageTablePaginationService} from 'core-components/wp-fast-table/state/wp-table-pagination.service';
|
|
import {WorkPackageTableRelationColumnsService} from 'core-components/wp-fast-table/state/wp-table-relation-columns.service';
|
|
import {WorkPackageTableSelection} from 'core-components/wp-fast-table/state/wp-table-selection.service';
|
|
import {WorkPackageTableSortByService} from 'core-components/wp-fast-table/state/wp-table-sort-by.service';
|
|
import {WorkPackageTableTimelineService} from 'core-components/wp-fast-table/state/wp-table-timeline.service';
|
|
import {WpInlineCreateDirectiveUpgraded} from 'core-components/wp-inline-create/wp-inline-create.directive';
|
|
import {KeepTabService} from 'core-components/wp-single-view-tabs/keep-tab/keep-tab.service';
|
|
import {WorkPackageRelationsService} from 'core-components/wp-relations/wp-relations.service';
|
|
import {WpResizerDirectiveUpgraded} from 'core-components/wp-resizer/wp-resizer.directive';
|
|
import {SortHeaderDirective} from 'core-components/wp-table/sort-header/sort-header.directive';
|
|
import {WorkPackageTablePaginationComponent} from 'core-components/wp-table/table-pagination/wp-table-pagination.component';
|
|
import {WorkPackageTimelineTableController} from 'core-components/wp-table/timeline/container/wp-timeline-container.directive';
|
|
import {WorkPackageTableTimelineRelations} from 'core-components/wp-table/timeline/global-elements/wp-timeline-relations.directive';
|
|
import {WorkPackageTableTimelineStaticElements} from 'core-components/wp-table/timeline/global-elements/wp-timeline-static-elements.directive';
|
|
import {WorkPackageTableTimelineGrid} from 'core-components/wp-table/timeline/grid/wp-timeline-grid.directive';
|
|
import {WorkPackageTimelineHeaderController} from 'core-components/wp-table/timeline/header/wp-timeline-header.directive';
|
|
import {WorkPackageTableRefreshService} from 'core-components/wp-table/wp-table-refresh-request.service';
|
|
import {WorkPackageTableSumsRowController} from 'core-components/wp-table/wp-table-sums-row/wp-table-sums-row.directive';
|
|
import {WorkPackagesTableController} from 'core-components/wp-table/wp-table.directive';
|
|
import {
|
|
$qToken,
|
|
$rootScopeToken,
|
|
$stateToken,
|
|
$timeoutToken,
|
|
columnsModalToken,
|
|
FocusHelperToken,
|
|
halRequestToken,
|
|
I18nToken,
|
|
NotificationsServiceToken,
|
|
PathHelperToken,
|
|
TimezoneServiceToken,
|
|
upgradeService,
|
|
upgradeServiceWithToken,
|
|
v3PathToken,
|
|
wpMoreMenuServiceToken
|
|
} from './angular4-transition-utils';
|
|
import {WpCustomActionComponent} from 'core-components/wp-custom-actions/wp-custom-actions/wp-custom-action.component';
|
|
import {WpCustomActionsComponent} from 'core-components/wp-custom-actions/wp-custom-actions.component';
|
|
import {WorkPackageCacheService} from 'core-components/work-packages/work-package-cache.service';
|
|
import {HideSectionComponent} from 'core-components/common/hide-section/hide-section.component';
|
|
import {HideSectionService} from 'core-components/common/hide-section/hide-section.service';
|
|
import {AddSectionDropdownComponent} from 'core-components/common/hide-section/add-section-dropdown/add-section-dropdown.component';
|
|
import {HideSectionLinkComponent} from 'core-components/common/hide-section/hide-section-link/hide-section-link.component';
|
|
import {GonRef} from 'core-components/common/gon-ref/gon-ref';
|
|
import {AuthorisationService} from 'core-components/common/model-auth/model-auth.service';
|
|
import {WorkPackageTableFiltersService} from 'core-components/wp-fast-table/state/wp-table-filters.service';
|
|
import {WorkPackageTableSumService} from 'core-components/wp-fast-table/state/wp-table-sum.service';
|
|
import {WorkPackagesListService} from 'core-components/wp-list/wp-list.service';
|
|
import {WorkPackagesListChecksumService} from 'core-components/wp-list/wp-list-checksum.service';
|
|
import {LoadingIndicatorService} from 'core-components/common/loading-indicator/loading-indicator.service';
|
|
import {WorkPackageCreateButtonComponent} from 'core-components/wp-buttons/wp-create-button/wp-create-button.component';
|
|
import {WorkPackageFilterButtonComponent} from 'core-components/wp-buttons/wp-filter-button/wp-filter-button.directive';
|
|
import {WorkPackageDetailsViewButtonComponent} from 'core-components/wp-buttons/wp-details-view-button/wp-details-view-button.component';
|
|
import {WorkPackageTimelineButtonComponent} from 'core-components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.component';
|
|
import {WorkPackageZenModeButtonComponent} from 'core-components/wp-buttons/wp-zen-mode-toggle-button/wp-zen-mode-toggle-button.component';
|
|
import {WorkPackageFilterContainerComponent} from 'core-components/filters/filter-container/filter-container.directive';
|
|
import WorkPackageFiltersService from 'core-components/filters/wp-filters/wp-filters.service';
|
|
import {Ng1QueryFiltersComponentWrapper} from 'core-components/filters/query-filters/query-filters-ng1-wrapper.component';
|
|
import {UIRouterUpgradeModule} from '@uirouter/angular-hybrid';
|
|
import {WorkPackageSplitViewComponent} from 'core-components/routing/wp-split-view/wp-split-view.component';
|
|
import {WorkPackageBreadcrumbComponent} from 'core-components/work-packages/wp-breadcrumb/wp-breadcrumb.component';
|
|
import {WorkPackageRelationsCountComponent} from 'core-components/work-packages/wp-relations-count/wp-relations-count.component';
|
|
import {FirstRouteService} from 'core-components/routing/first-route-service';
|
|
import {PathHelperService} from 'core-components/common/path-helper/path-helper.service';
|
|
import {WorkPackageSubjectComponent} from 'core-components/work-packages/wp-subject/wp-subject.component';
|
|
import {WorkPackageEditFieldGroupComponent} from 'core-components/wp-edit/wp-edit-field/wp-edit-field-group.directive';
|
|
import {ConfigurationService} from 'core-components/common/config/configuration.service';
|
|
import {WorkPackageEditFieldComponent} from 'core-components/wp-edit/wp-edit-field/wp-edit-field.component';
|
|
import {WorkPackageCreateService} from 'core-components/wp-new/wp-create.service';
|
|
import {WorkPackageWatcherButtonComponent} from 'core-components/work-packages/wp-watcher-button/wp-watcher-button.component';
|
|
import {WorkPackageSplitViewToolbarComponent} from 'core-components/wp-details/wp-details-toolbar.component';
|
|
import {WorkPackageOverviewTabComponent} from 'core-components/wp-single-view-tabs/overview-tab/overview-tab.component';
|
|
import {CurrentProjectService} from 'core-components/projects/current-project.service';
|
|
import {WorkPackageSingleViewComponent} from 'core-components/work-packages/wp-single-view/wp-single-view.component';
|
|
import {WorkPackageStatusButtonComponent} from 'core-components/wp-buttons/wp-status-button/wp-status-button.component';
|
|
import {Ng1AttributeHelpTextWrapper} from 'core-components/common/help-texts/attribute-help-text-ng1-wrapper';
|
|
import {WorkPackageReplacementLabelComponent} from 'core-components/wp-edit/wp-edit-field/wp-replacement-label.component';
|
|
import {AuthoringComponent} from 'core-components/common/authoring/authoring.component';
|
|
import {Ng1WorkPackageAttachmentsUploadWrapper} from 'core-components/wp-attachments/wp-attachments-upload/wp-attachments-upload-ng1-wrapper';
|
|
import {WorkPackageAttachmentListComponent} from 'core-components/wp-attachments/wp-attachment-list/wp-attachment-list.component';
|
|
import {WorkPackageAttachmentListItemComponent} from 'core-components/wp-attachments/wp-attachment-list/wp-attachment-list-item.component';
|
|
import {OpDateTimeUpgradedDirective} from 'core-components/common/date/op-date-time.upgraded.directive';
|
|
import {UserLinkUpgradedComponent} from 'core-components/user/user-link/user-link.upgraded.component';
|
|
import {WorkPackagesActivityService} from 'core-components/wp-single-view-tabs/activity-panel/wp-activity.service';
|
|
import {NewestActivityOnOverviewComponent} from 'core-components/wp-single-view-tabs/activity-panel/activity-on-overview.component';
|
|
import {WorkPackageCommentDirectiveUpgraded} from 'core-components/work-packages/work-package-comment/work-package-comment.directive.upgraded';
|
|
import {ActivityEntryDirectiveUpgraded} from 'core-components/wp-activity/activity-entry.directive.upgraded';
|
|
import {WorkPackagesFullViewComponent} from 'core-components/routing/wp-full-view/wp-full-view.component';
|
|
import {WorkPackageActivityTabComponent} from 'core-components/wp-single-view-tabs/activity-panel/activity-tab.component';
|
|
import {WorkPackageRelationsTabComponent} from 'core-components/wp-single-view-tabs/relations-tab/relations-tab.component';
|
|
import {WorkPackageWatchersTabComponent} from 'core-components/wp-single-view-tabs/watchers-tab/watchers-tab.component';
|
|
import {Ng1RelationsDirectiveWrapper} from 'core-components/wp-relations/ng1-wp-relations-wrapper.directive';
|
|
import {WorkPackageWatcherEntryComponent} from 'core-components/wp-single-view-tabs/watchers-tab/wp-watcher-entry.component';
|
|
import {WorkPackageNewFullViewComponent} from 'core-components/wp-new/wp-new-full-view.component';
|
|
import {WorkPackageTypeStatusComponent} from 'core-components/work-packages/wp-type-status/wp-type-status.component';
|
|
import {WorkPackageEditActionsBarComponent} from 'core-components/common/edit-actions-bar/wp-edit-actions-bar.component';
|
|
import {RootDmService} from 'core-components/api/api-v3/hal-resource-dms/root-dm.service';
|
|
import {WorkPackageCopyFullViewComponent} from 'core-components/wp-copy/wp-copy-full-view.component';
|
|
import {WorkPackageNewSplitViewComponent} from 'core-components/wp-new/wp-new-split-view.component';
|
|
import {WorkPackageCopySplitViewComponent} from 'core-components/wp-copy/wp-copy-split-view.component';
|
|
import {FocusWithinDirective} from 'core-components/common/focus-within/focus-within.upgraded.directive';
|
|
import {ClickOnKeypressComponent} from 'core-app/ui_components/click-on-keypress-upgraded.component';
|
|
import {AutocompleteSelectDecorationComponent} from 'core-components/common/autocomplete-select-decoration/autocomplete-select-decoration.component';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
BrowserModule,
|
|
UpgradeModule,
|
|
FormsModule,
|
|
UIRouterUpgradeModule
|
|
],
|
|
providers: [
|
|
GonRef,
|
|
HideSectionService,
|
|
upgradeServiceWithToken('$rootScope', $rootScopeToken),
|
|
upgradeServiceWithToken('I18n', I18nToken),
|
|
upgradeServiceWithToken('$state', $stateToken),
|
|
upgradeServiceWithToken('$q', $qToken),
|
|
upgradeServiceWithToken('$timeout', $timeoutToken),
|
|
upgradeServiceWithToken('NotificationsService', NotificationsServiceToken),
|
|
upgradeServiceWithToken('columnsModal', columnsModalToken),
|
|
upgradeServiceWithToken('FocusHelper', FocusHelperToken),
|
|
upgradeServiceWithToken('PathHelper', PathHelperToken),
|
|
upgradeServiceWithToken('halRequest', halRequestToken),
|
|
upgradeServiceWithToken('wpMoreMenuService', wpMoreMenuServiceToken),
|
|
upgradeServiceWithToken('TimezoneService', TimezoneServiceToken),
|
|
upgradeServiceWithToken('v3Path', v3PathToken),
|
|
upgradeService('wpRelations', WorkPackageRelationsService),
|
|
upgradeService('wpCacheService', WorkPackageCacheService),
|
|
upgradeService('wpEditing', WorkPackageEditingService),
|
|
upgradeService('states', States),
|
|
upgradeService('paginationService', PaginationService),
|
|
upgradeService('keepTab', KeepTabService),
|
|
upgradeService('wpTableSelection', WorkPackageTableSelection),
|
|
upgradeService('wpTableFocus', WorkPackageTableFocusService),
|
|
upgradeService('wpTablePagination', WorkPackageTablePaginationService),
|
|
upgradeService('templateRenderer', SimpleTemplateRenderer),
|
|
upgradeService('wpTableRefresh', WorkPackageTableRefreshService),
|
|
upgradeService('wpDisplayField', WorkPackageDisplayFieldService),
|
|
upgradeService('wpTableTimeline', WorkPackageTableTimelineService),
|
|
upgradeService('wpNotificationsService', WorkPackageNotificationService),
|
|
upgradeService('wpTableHierarchies', WorkPackageTableHierarchiesService),
|
|
upgradeService('wpTableSortBy', WorkPackageTableSortByService),
|
|
upgradeService('wpTableFilters', WorkPackageTableFiltersService),
|
|
upgradeService('wpTableSum', WorkPackageTableSumService),
|
|
upgradeService('wpListService', WorkPackagesListService),
|
|
upgradeService('wpListChecksumService', WorkPackagesListChecksumService),
|
|
upgradeService('wpFiltersService', WorkPackageFiltersService),
|
|
upgradeService('loadingIndicator', LoadingIndicatorService),
|
|
upgradeService('wpTableRelationColumns', WorkPackageTableRelationColumnsService),
|
|
upgradeService('wpTableGroupBy', WorkPackageTableGroupByService),
|
|
upgradeService('wpTableColumns', WorkPackageTableColumnsService),
|
|
upgradeService('contextMenu', ContextMenuService),
|
|
upgradeService('authorisationService', AuthorisationService),
|
|
upgradeService('ConfigurationService', ConfigurationService),
|
|
upgradeService('currentProject', CurrentProjectService),
|
|
upgradeService('RootDm', RootDmService),
|
|
// Split view
|
|
upgradeService('wpCreate', WorkPackageCreateService),
|
|
upgradeService('firstRoute', FirstRouteService),
|
|
upgradeService('PathHelper', PathHelperService),
|
|
// Activity tab
|
|
upgradeService('wpActivity', WorkPackagesActivityService),
|
|
],
|
|
declarations: [
|
|
WorkPackagesListComponent,
|
|
OpIcon,
|
|
AccessibleByKeyboardDirectiveUpgraded,
|
|
TablePaginationComponent,
|
|
WorkPackageTablePaginationComponent,
|
|
WorkPackageTimelineHeaderController,
|
|
WorkPackageTableTimelineRelations,
|
|
WorkPackageTableTimelineStaticElements,
|
|
WorkPackageTableTimelineGrid,
|
|
WorkPackageTimelineTableController,
|
|
WorkPackagesTableController,
|
|
WorkPackageCreateButtonComponent,
|
|
WorkPackageFilterButtonComponent,
|
|
WorkPackageDetailsViewButtonComponent,
|
|
WorkPackageTimelineButtonComponent,
|
|
WorkPackageZenModeButtonComponent,
|
|
WorkPackageFilterContainerComponent,
|
|
Ng1QueryFiltersComponentWrapper,
|
|
WpResizerDirectiveUpgraded,
|
|
WpCustomActionComponent,
|
|
WpCustomActionsComponent,
|
|
WorkPackageTableSumsRowController,
|
|
SortHeaderDirective,
|
|
HasDropdownMenuDirective,
|
|
WpInlineCreateDirectiveUpgraded,
|
|
|
|
// Add functionality to rails rendered templates
|
|
HideSectionComponent,
|
|
HideSectionLinkComponent,
|
|
AddSectionDropdownComponent,
|
|
AutocompleteSelectDecorationComponent,
|
|
|
|
// Split view
|
|
WorkPackageSplitViewComponent,
|
|
WorkPackageRelationsCountComponent,
|
|
WorkPackageBreadcrumbComponent,
|
|
WorkPackageEditFieldGroupComponent,
|
|
WorkPackageSplitViewToolbarComponent,
|
|
WorkPackageWatcherButtonComponent,
|
|
WorkPackageSubjectComponent,
|
|
|
|
// Full view
|
|
WorkPackagesFullViewComponent,
|
|
|
|
// Single view
|
|
WorkPackageOverviewTabComponent,
|
|
WorkPackageSingleViewComponent,
|
|
WorkPackageStatusButtonComponent,
|
|
Ng1AttributeHelpTextWrapper,
|
|
WorkPackageReplacementLabelComponent,
|
|
FocusWithinDirective,
|
|
AuthoringComponent,
|
|
Ng1WorkPackageAttachmentsUploadWrapper,
|
|
WorkPackageAttachmentListComponent,
|
|
WorkPackageAttachmentListItemComponent,
|
|
OpDateTimeUpgradedDirective,
|
|
UserLinkUpgradedComponent,
|
|
ClickOnKeypressComponent,
|
|
|
|
// Activity Tab
|
|
NewestActivityOnOverviewComponent,
|
|
WorkPackageCommentDirectiveUpgraded,
|
|
ActivityEntryDirectiveUpgraded,
|
|
WorkPackageActivityTabComponent,
|
|
|
|
// Relations Tab
|
|
WorkPackageRelationsTabComponent,
|
|
Ng1RelationsDirectiveWrapper,
|
|
|
|
// Watchers tab
|
|
WorkPackageWatchersTabComponent,
|
|
WorkPackageWatcherEntryComponent,
|
|
|
|
// WP Edit Fields
|
|
WorkPackageEditFieldComponent,
|
|
|
|
// WP New
|
|
WorkPackageNewFullViewComponent,
|
|
WorkPackageNewSplitViewComponent,
|
|
WorkPackageTypeStatusComponent,
|
|
WorkPackageEditActionsBarComponent,
|
|
|
|
// WP Copy
|
|
WorkPackageCopyFullViewComponent,
|
|
WorkPackageCopySplitViewComponent,
|
|
],
|
|
entryComponents: [
|
|
WorkPackagesListComponent,
|
|
WorkPackageTablePaginationComponent,
|
|
WorkPackagesTableController,
|
|
TablePaginationComponent,
|
|
WpCustomActionsComponent,
|
|
|
|
// Add functionality to rails rendered templates
|
|
HideSectionComponent,
|
|
HideSectionLinkComponent,
|
|
AddSectionDropdownComponent,
|
|
AutocompleteSelectDecorationComponent,
|
|
|
|
// Split view
|
|
WorkPackageSplitViewComponent,
|
|
|
|
// Full view
|
|
WorkPackagesFullViewComponent,
|
|
|
|
// Single view tabs
|
|
WorkPackageActivityTabComponent,
|
|
WorkPackageRelationsTabComponent,
|
|
WorkPackageWatchersTabComponent,
|
|
|
|
// Single view
|
|
WorkPackageOverviewTabComponent,
|
|
WorkPackageEditFieldGroupComponent,
|
|
|
|
// WP new
|
|
WorkPackageNewFullViewComponent,
|
|
WorkPackageNewSplitViewComponent,
|
|
|
|
// WP copy
|
|
WorkPackageCopyFullViewComponent,
|
|
WorkPackageCopySplitViewComponent,
|
|
]
|
|
})
|
|
export class OpenProjectModule {
|
|
constructor(private upgrade:UpgradeModule) {
|
|
}
|
|
|
|
// noinspection JSUnusedGlobalSymbols
|
|
ngDoBootstrap() {
|
|
// Already done in openproject-app.ts
|
|
// this.upgrade.bootstrap(document.body, ['openproject'], {strictDi: false});
|
|
}
|
|
}
|
|
|
|
|
|
|