Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Feature/36390 code structure (#9319)

Aleix Suau7e2e05c88f32
diff --git a/app/helpers/attachments_helper.rb b/app/helpers/attachments_helper.rb
index 5dcfcb6abbb..b42b0436c08 100644
--- a/app/helpers/attachments_helper.rb
+++ b/app/helpers/attachments_helper.rb
@@ -41,7 +41,7 @@ module AttachmentsHelper
# List attachments outside the edit form
# allowing immediate removal or addition of attachments
#
- # Within ckeditor-form, this attachment list is added automatically
+ # Within ckeditor-augmented-textarea-form, this attachment list is added automatically
# when a resource is added.
def list_attachments(resource)
content_tag 'attachments',
diff --git a/docker-compose.yml b/docker-compose.yml
index 8672a19ada7..7192cf4f0e5 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -67,7 +67,7 @@ services:
command: "npm run serve"
volumes:
- ".:/home/dev/openproject"
- - "../commonmark-ckeditor-build/build/:/home/dev/openproject/frontend/src/vendor/ckeditor/"
+ - "../commonmark-ckeditor-augmented-textarea-build/build/:/home/dev/openproject/frontend/src/vendor/ckeditor-augmented-textarea/"
ports:
- "4200:4200"
environment:
diff --git a/frontend/.gitignore b/frontend/.gitignore
index d59eb6760c8..b40786034a5 100644
--- a/frontend/.gitignore
+++ b/frontend/.gitignore
@@ -15,7 +15,7 @@
/out-tsc
/generated_typings
-/src/app/modules/plugins/linked/
-/src/app/modules/plugins/linked-plugins.module.ts
-/src/app/modules/plugins/linked-plugins.styles.sass
+/src/app/features/plugins/linked/
+/src/app/features/plugins/linked-plugins.module.ts
+/src/app/features/plugins/linked-plugins.styles.sass
/legacy/app/plugins/*
diff --git a/frontend/scripts/link_plugin_placeholder.js b/frontend/scripts/link_plugin_placeholder.js
index 5ca1b6e50b2..3f4d9f880e0 100755
--- a/frontend/scripts/link_plugin_placeholder.js
+++ b/frontend/scripts/link_plugin_placeholder.js
@@ -2,10 +2,10 @@
const fs = require('fs');
const path = require('path');
-const linked_module_example_path = path.join(__dirname, '..', 'src', 'app', 'modules', 'plugins', 'linked-plugins.module.ts.example');
-const linked_style_example_path = path.join(__dirname, '..', 'src', 'app', 'modules', 'plugins', 'linked-plugins.styles.sass.example');
-const linked_module_path = path.join(__dirname, '..', 'src', 'app', 'modules', 'plugins', 'linked-plugins.module.ts');
-const linked_style_path = path.join(__dirname, '..', 'src', 'app', 'modules', 'plugins', 'linked-plugins.styles.sass');
+const linked_module_example_path = path.join(__dirname, '..', 'src', 'app', 'features', 'plugins', 'linked-plugins.module.ts.example');
+const linked_style_example_path = path.join(__dirname, '..', 'src', 'app', 'features', 'plugins', 'linked-plugins.styles.sass.example');
+const linked_module_path = path.join(__dirname, '..', 'src', 'app', 'features', 'plugins', 'linked-plugins.module.ts');
+const linked_style_path = path.join(__dirname, '..', 'src', 'app', 'features', 'plugins', 'linked-plugins.styles.sass');
if (!fs.existsSync(linked_module_path)) {
console.log(
diff --git a/frontend/src/app/angular4-modules.ts b/frontend/src/app/angular4-modules.ts
deleted file mode 100644
index 4b0ce74f60b..00000000000
--- a/frontend/src/app/angular4-modules.ts
+++ /dev/null
@@ -1,229 +0,0 @@
-//-- copyright
-// OpenProject is an open source project management software.
-// Copyright (C) 2012-2021 the OpenProject GmbH
-//
-// 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 docs/COPYRIGHT.rdoc for more details.
-//++
-
-import { APP_INITIALIZER, ApplicationRef, Injector, NgModule } from '@angular/core';
-import { ReactiveFormsModule } from '@angular/forms';
-import { OpenprojectHalModule } from 'core-app/modules/hal/openproject-hal.module';
-
-import { OpContextMenuTrigger } from 'core-components/op-context-menu/handlers/op-context-menu-trigger.directive';
-import { States } from 'core-components/states.service';
-import { PaginationService } from 'core-components/table-pagination/pagination-service';
-import { MainMenuResizerComponent } from 'core-components/resizer/main-menu-resizer.component';
-import { ConfirmDialogModal } from "core-components/modals/confirm-dialog/confirm-dialog.modal";
-import { ConfirmDialogService } from "core-components/modals/confirm-dialog/confirm-dialog.service";
-import { DynamicContentModal } from "core-components/modals/modal-wrapper/dynamic-content.modal";
-import { PasswordConfirmationModal } from "core-components/modals/request-for-confirmation/password-confirmation.modal";
-import { OpenprojectFieldsModule } from "core-app/modules/fields/openproject-fields.module";
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
-import { CommentService } from "core-components/wp-activity/comment-service";
-import { OpDragScrollDirective } from "core-app/modules/common/ui/op-drag-scroll.directive";
-import { OpenprojectPluginsModule } from "core-app/modules/plugins/openproject-plugins.module";
-import { ConfirmFormSubmitController } from "core-components/modals/confirm-form-submit/confirm-form-submit.directive";
-import { ProjectMenuAutocompleteComponent } from "core-components/projects/project-menu-autocomplete/project-menu-autocomplete.component";
-import { OpenProjectFileUploadService } from "core-components/api/op-file-upload/op-file-upload.service";
-import { OpenProjectDirectFileUploadService } from './components/api/op-file-upload/op-direct-file-upload.service';
-import { LinkedPluginsModule } from "core-app/modules/plugins/linked-plugins.module";
-import { HookService } from "core-app/modules/plugins/hook-service";
-import { DynamicBootstrapper } from "core-app/globals/dynamic-bootstrapper";
-import { OpenprojectWorkPackagesModule } from 'core-app/modules/work_packages/openproject-work-packages.module';
-import { OpenprojectAttachmentsModule } from 'core-app/modules/attachments/openproject-attachments.module';
-import { OpenprojectEditorModule } from 'core-app/modules/editor/openproject-editor.module';
-import { OpenprojectGridsModule } from "core-app/modules/grids/openproject-grids.module";
-import { OpenprojectRouterModule } from "core-app/modules/router/openproject-router.module";
-import { OpenprojectWorkPackageRoutesModule } from "core-app/modules/work_packages/openproject-work-package-routes.module";
-import { BrowserModule } from "@angular/platform-browser";
-import { OpenprojectCalendarModule } from "core-app/modules/calendar/openproject-calendar.module";
-import { OpenprojectGlobalSearchModule } from "core-app/modules/global_search/openproject-global-search.module";
-import { MainMenuToggleComponent } from "core-components/main-menu/main-menu-toggle.component";
-import { MainMenuNavigationService } from "core-components/main-menu/main-menu-navigation.service";
-import { OpenprojectAdminModule } from "core-app/modules/admin/openproject-admin.module";
-import { OpenprojectDashboardsModule } from "core-app/modules/dashboards/openproject-dashboards.module";
-import { OpenprojectWorkPackageGraphsModule } from "core-app/modules/work-package-graphs/openproject-work-package-graphs.module";
-import { WpPreviewModal } from "core-components/modals/preview-modal/wp-preview-modal/wp-preview.modal";
-import { PreviewTriggerService } from "core-app/globals/global-listeners/preview-trigger.service";
-import { OpenprojectOverviewModule } from "core-app/modules/overview/openproject-overview.module";
-import { OpenprojectMyPageModule } from "core-app/modules/my-page/openproject-my-page.module";
-import { OpenprojectProjectsModule } from "core-app/modules/projects/openproject-projects.module";
-import { KeyboardShortcutService } from "core-app/modules/a11y/keyboard-shortcut-service";
-import { globalDynamicComponents } from "core-app/global-dynamic-components.const";
-import { OpenprojectMembersModule } from "core-app/modules/members/members.module";
-import { OpenprojectEnterpriseModule } from "core-components/enterprise/openproject-enterprise.module";
-import { OpenprojectAugmentingModule } from "core-app/modules/augmenting/openproject-augmenting.module";
-import { OpenprojectInviteUserModalModule } from "core-app/modules/invite-user-modal/invite-user-modal.module";
-import { OpenprojectModalModule } from "core-app/modules/modal/modal.module";
-import { RevitAddInSettingsButtonService } from "core-app/modules/bim/revit_add_in/revit-add-in-settings-button.service";
-import { OpenprojectAutocompleterModule } from "core-app/modules/autocompleter/openproject-autocompleter.module";
-import { OpenProjectBackupService } from './components/api/op-backup/op-backup.service';
-import { OpenprojectTabsModule } from "core-app/modules/common/tabs/openproject-tabs.module";
-
-@NgModule({
- imports: [
- // The BrowserModule must only be loaded here!
- BrowserModule,
- // Commons
- OpenprojectCommonModule,
- // Router module
- OpenprojectRouterModule,
- // Hal Module
- OpenprojectHalModule,
-
- // CKEditor
- OpenprojectEditorModule,
- // Display + Edit field functionality
- OpenprojectFieldsModule,
- OpenprojectGridsModule,
- OpenprojectAttachmentsModule,
-
- // Project module
- OpenprojectProjectsModule,
-
- // Work packages and their routes
- OpenprojectWorkPackagesModule,
- OpenprojectWorkPackageRoutesModule,
-
- // Work packages in graph representation
- OpenprojectWorkPackageGraphsModule,
-
- // Calendar module
- OpenprojectCalendarModule,
-
- // Dashboards
- OpenprojectDashboardsModule,
-
- // Overview
- OpenprojectOverviewModule,
-
- // MyPage
- OpenprojectMyPageModule,
-
- // Global Search
- OpenprojectGlobalSearchModule,
-
- // Admin module
- OpenprojectAdminModule,
- OpenprojectEnterpriseModule,
-
- // Plugin hooks and modules
- OpenprojectPluginsModule,
- // Linked plugins dynamically generated by bundler
- LinkedPluginsModule,
-
- // Members
- OpenprojectMembersModule,
-
- // Angular Forms
- ReactiveFormsModule,
-
- // Augmenting Module
- OpenprojectAugmentingModule,
-
- // Modals
- OpenprojectModalModule,
-
- // Invite user modal
- OpenprojectInviteUserModalModule,
-
- // Autocompleters
- OpenprojectAutocompleterModule,
-
- // Tabs
- OpenprojectTabsModule,
- ],
- providers: [
- { provide: States, useValue: new States() },
- { provide: APP_INITIALIZER, useFactory: initializeServices, deps: [Injector], multi: true },
- PaginationService,
- OpenProjectBackupService,
- OpenProjectFileUploadService,
- OpenProjectDirectFileUploadService,
- // Split view
- CommentService,
- ConfirmDialogService,
- RevitAddInSettingsButtonService,
- ],
- declarations: [
- OpContextMenuTrigger,
-
- // Modals
- ConfirmDialogModal,
- DynamicContentModal,
- PasswordConfirmationModal,
- WpPreviewModal,
-
- // Main menu
- MainMenuResizerComponent,
- MainMenuToggleComponent,
-
- // Project autocompleter
- ProjectMenuAutocompleteComponent,
-
- // Form configuration
- OpDragScrollDirective,
- ConfirmFormSubmitController,
- ]
-})
-export class OpenProjectModule {
-
- // noinspection JSUnusedGlobalSymbols
- ngDoBootstrap(appRef:ApplicationRef) {
-
- // Register global dynamic components
- // this is necessary to ensure they are not tree-shaken
- // (if they are not used anywhere in Angular, they would be removed)
- DynamicBootstrapper.register(...globalDynamicComponents);
-
- // Perform global dynamic bootstrapping of our entry components
- // that are in the current DOM response.
- DynamicBootstrapper.bootstrapOptionalDocument(appRef, document);
-
- // Call hook service to allow modules to bootstrap additional elements.
- // We can't use ngDoBootstrap in nested modules since they are not called.
- const hookService = (appRef as any)._injector.get(HookService);
- hookService
- .call('openProjectAngularBootstrap')
- .forEach((results:{ selector:string, cls:any }[]) => {
- DynamicBootstrapper.bootstrapOptionalDocument(appRef, document, results);
- });
- }
-}
-
-export function initializeServices(injector:Injector) {
- return () => {
- const PreviewTrigger = injector.get(PreviewTriggerService);
- const mainMenuNavigationService = injector.get(MainMenuNavigationService);
- const keyboardShortcuts = injector.get(KeyboardShortcutService);
- // Conditionally add the Revit Add-In settings button
- injector.get(RevitAddInSettingsButtonService);
-
- mainMenuNavigationService.register();
-
- PreviewTrigger.setupListener();
-
- keyboardShortcuts.register();
- };
-}
diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts
new file mode 100644
index 00000000000..db3f2bbb64d
--- /dev/null
+++ b/frontend/src/app/app.module.ts
@@ -0,0 +1,228 @@
+//-- copyright
+// OpenProject is an open source project management software.
+// Copyright (C) 2012-2021 the OpenProject GmbH
+//
+// 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 docs/COPYRIGHT.rdoc for more details.
+//++
+
+import { APP_INITIALIZER, ApplicationRef, Injector, NgModule } from '@angular/core';
+import { ReactiveFormsModule } from '@angular/forms';
+import { OpContextMenuTrigger } from 'core-app/shared/components/op-context-menu/handlers/op-context-menu-trigger.directive';
+import { States } from 'core-app/core/states/states.service';
+import { OpenprojectFieldsModule } from "core-app/shared/components/fields/openproject-fields.module";
+import { OPSharedModule } from "core-app/shared/shared.module";
+import { OpDragScrollDirective } from "core-app/shared/directives/op-drag-scroll/op-drag-scroll.directive";
+import { OpenProjectDirectFileUploadService } from './core/file-upload/op-direct-file-upload.service';
+import { DynamicBootstrapper } from "core-app/core/setup/globals/dynamic-bootstrapper";
+import { OpenprojectWorkPackagesModule } from 'core-app/features/work-packages/openproject-work-packages.module';
+import { OpenprojectAttachmentsModule } from 'core-app/shared/components/attachments/openproject-attachments.module';
+import { OpenprojectEditorModule } from 'core-app/shared/components/editor/openproject-editor.module';
+import { OpenprojectGridsModule } from "core-app/shared/components/grids/openproject-grids.module";
+import { OpenprojectRouterModule } from "core-app/core/routing/openproject-router.module";
+import { OpenprojectWorkPackageRoutesModule } from "core-app/features/work-packages/openproject-work-package-routes.module";
+import { BrowserModule } from "@angular/platform-browser";
+import { OpenprojectCalendarModule } from "core-app/shared/components/calendar/openproject-calendar.module";
+import { OpenprojectGlobalSearchModule } from "core-app/core/global_search/openproject-global-search.module";
+import { OpenprojectDashboardsModule } from "core-app/features/dashboards/openproject-dashboards.module";
+import { OpenprojectWorkPackageGraphsModule } from "core-app/shared/components/work-package-graphs/openproject-work-package-graphs.module";
+import { PreviewTriggerService } from "core-app/core/setup/globals/global-listeners/preview-trigger.service";
+import { OpenprojectOverviewModule } from "core-app/features/overview/openproject-overview.module";
+import { OpenprojectMyPageModule } from "core-app/features/my-page/openproject-my-page.module";
+import { OpenprojectProjectsModule } from "core-app/features/projects/openproject-projects.module";
+import { KeyboardShortcutService } from "core-app/shared/directives/a11y/keyboard-shortcut-service";
+import { OpenprojectMembersModule } from "core-app/shared/components/autocompleter/members-autocompleter/members.module";
+import { OpenprojectAugmentingModule } from "core-app/core/augmenting/openproject-augmenting.module";
+import { OpenprojectInviteUserModalModule } from "core-app/features/invite-user-modal/invite-user-modal.module";
+import { OpenprojectModalModule } from "core-app/shared/components/modal/modal.module";
+import { RevitAddInSettingsButtonService } from "core-app/features/bim/revit_add_in/revit-add-in-settings-button.service";
+import { OpenprojectAutocompleterModule } from "core-app/shared/components/autocompleter/openproject-autocompleter.module";
+import { OpenProjectBackupService } from './core/backup/op-backup.service';
+import { OpenProjectFileUploadService } from "core-app/core/file-upload/op-file-upload.service";
+import { OpenprojectEnterpriseModule } from "core-app/features/enterprise/openproject-enterprise.module";
+import { MainMenuToggleComponent } from "core-app/core/main-menu/main-menu-toggle.component";
+import { MainMenuNavigationService } from "core-app/core/main-menu/main-menu-navigation.service";
+import { ConfirmDialogService } from "core-app/shared/components/modals/confirm-dialog/confirm-dialog.service";
+import { ConfirmDialogModal } from "core-app/shared/components/modals/confirm-dialog/confirm-dialog.modal";
+import { DynamicContentModal } from "core-app/shared/components/modals/modal-wrapper/dynamic-content.modal";
+import { PasswordConfirmationModal } from "core-app/shared/components/modals/request-for-confirmation/password-confirmation.modal";
+import { WpPreviewModal } from "core-app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal";
+import { ConfirmFormSubmitController } from "core-app/shared/components/modals/confirm-form-submit/confirm-form-submit.directive";
+import { ProjectMenuAutocompleteComponent } from "core-app/shared/components/autocompleter/project-menu-autocomplete/project-menu-autocomplete.component";
+import { PaginationService } from "core-app/shared/components/table-pagination/pagination-service";
+import { MainMenuResizerComponent } from "core-app/shared/components/resizer/resizer/main-menu-resizer.component";
+import { CommentService } from "core-app/features/work-packages/components/wp-activity/comment-service";
+import { OpenprojectTabsModule } from "core-app/shared/components/tabs/openproject-tabs.module";
+import { OpenprojectAdminModule } from "core-app/features/admin/openproject-admin.module";
+import { OpenprojectHalModule } from "core-app/features/hal/openproject-hal.module";
+import { globalDynamicComponents } from "core-app/core/setup/global-dynamic-components.const";
+import { HookService } from "core-app/features/plugins/hook-service";
+import { OpenprojectPluginsModule } from "core-app/features/plugins/openproject-plugins.module";
+import { LinkedPluginsModule } from "core-app/features/plugins/linked-plugins.module";
+
+@NgModule({
+ imports: [
+ // The BrowserModule must only be loaded here!
+ BrowserModule,
+ // Commons
+ OPSharedModule,
+ // Router module
+ OpenprojectRouterModule,
+ // Hal Module
+ OpenprojectHalModule,
+
+ // CKEditor
+ OpenprojectEditorModule,
+ // Display + Edit field functionality
+ OpenprojectFieldsModule,
+ OpenprojectGridsModule,
+ OpenprojectAttachmentsModule,
+
+ // Project module
+ OpenprojectProjectsModule,
+
+ // Work packages and their routes
+ OpenprojectWorkPackagesModule,
+ OpenprojectWorkPackageRoutesModule,
+
+ // Work packages in graph representation
+ OpenprojectWorkPackageGraphsModule,
+
+ // Calendar module
+ OpenprojectCalendarModule,
+
+ // Dashboards
+ OpenprojectDashboardsModule,
+
+ // Overview
+ OpenprojectOverviewModule,
+
+ // MyPage
+ OpenprojectMyPageModule,
+
+ // Global Search
+ OpenprojectGlobalSearchModule,
+
+ // Admin module
+ OpenprojectAdminModule,
+ OpenprojectEnterpriseModule,
+
+ // Plugin hooks and modules
+ OpenprojectPluginsModule,
+ // Linked plugins dynamically generated by bundler
+ LinkedPluginsModule,
+
+ // Members
+ OpenprojectMembersModule,
+
+ // Angular Forms
+ ReactiveFormsModule,
+
+ // Augmenting Module
+ OpenprojectAugmentingModule,
+
+ // Modals
+ OpenprojectModalModule,
+
+ // Invite user modal
+ OpenprojectInviteUserModalModule,
+
+ // Autocompleters
+ OpenprojectAutocompleterModule,
+
+ // Tabs
+ OpenprojectTabsModule,
+ ],
+ providers: [
+ { provide: States, useValue: new States() },
+ { provide: APP_INITIALIZER, useFactory: initializeServices, deps: [Injector], multi: true },
+ PaginationService,
+ OpenProjectBackupService,
+ OpenProjectFileUploadService,
+ OpenProjectDirectFileUploadService,
+ // Split view
+ CommentService,
+ ConfirmDialogService,
+ RevitAddInSettingsButtonService,
+ ],
+ declarations: [
+ OpContextMenuTrigger,
+
+ // Modals
+ ConfirmDialogModal,
+ DynamicContentModal,
+ PasswordConfirmationModal,
+ WpPreviewModal,
+
+ // Main menu
+ MainMenuResizerComponent,
+ MainMenuToggleComponent,
+
+ // Project autocompleter
+ ProjectMenuAutocompleteComponent,
+
+ // Form configuration
+ OpDragScrollDirective,
+ ConfirmFormSubmitController,
+ ]
+})
+export class OpenProjectModule {
+
+ // noinspection JSUnusedGlobalSymbols
+ ngDoBootstrap(appRef:ApplicationRef) {
+
+ // Register global dynamic components
+ // this is necessary to ensure they are not tree-shaken
+ // (if they are not used anywhere in Angular, they would be removed)
+ DynamicBootstrapper.register(...globalDynamicComponents);
+
+ // Perform global dynamic bootstrapping of our entry components
+ // that are in the current DOM response.
+ DynamicBootstrapper.bootstrapOptionalDocument(appRef, document);
+
+ // Call hook service to allow modules to bootstrap additional elements.
+ // We can't use ngDoBootstrap in nested modules since they are not called.
+ const hookService = (appRef as any)._injector.get(HookService);
+ hookService
+ .call('openProjectAngularBootstrap')
+ .forEach((results:{ selector:string, cls:any }[]) => {
+ DynamicBootstrapper.bootstrapOptionalDocument(appRef, document, results);
+ });
+ }
+}
+
+export function initializeServices(injector:Injector) {
+ return () => {
+ const PreviewTrigger = injector.get(PreviewTriggerService);
+ const mainMenuNavigationService = injector.get(MainMenuNavigationService);
+ const keyboardShortcuts = injector.get(KeyboardShortcutService);
+ // Conditionally add the Revit Add-In settings button
+ injector.get(RevitAddInSettingsButtonService);
+
+ mainMenuNavigationService.register();
+
+ PreviewTrigger.setupListener();
+
+ keyboardShortcuts.register();
+ };
+}
diff --git a/frontend/src/app/components/wp-table/external-configuration/external-relation-query-configuration.component.ts b/frontend/src/app/components/wp-table/external-configuration/external-relation-query-configuration.component.ts
deleted file mode 100644
index 1742959e13b..00000000000
--- a/frontend/src/app/components/wp-table/external-configuration/external-relation-query-configuration.component.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-import {
- Component,
-} from '@angular/core';
-import { WpTableConfigurationService } from 'core-components/wp-table/configuration-modal/wp-table-configuration.service';
-import { RestrictedWpTableConfigurationService } from 'core-components/wp-table/external-configuration/restricted-wp-table-configuration.service';
-import { WpTableConfigurationRelationSelectorComponent } from "core-components/wp-table/configuration-modal/wp-table-configuration-relation-selector";
-import { WpTableConfigurationModalPrependToken } from "core-components/wp-table/configuration-modal/wp-table-configuration.modal";
-import { ExternalQueryConfigurationComponent } from "core-components/wp-table/external-configuration/external-query-configuration.component";
-
-@Component({
- templateUrl: './external-query-configuration.template.html',
- providers: [
- [
- { provide: WpTableConfigurationService, useClass: RestrictedWpTableConfigurationService }
- ],
- { provide: WpTableConfigurationModalPrependToken, useValue: WpTableConfigurationRelationSelectorComponent }
- ],
-})
-export class ExternalRelationQueryConfigurationComponent extends ExternalQueryConfigurationComponent {
-}
diff --git a/frontend/src/app/components/wp-table/external-configuration/restricted-wp-table-configuration.service.ts b/frontend/src/app/components/wp-table/external-configuration/restricted-wp-table-configuration.service.ts
deleted file mode 100644
index 579b7b39b5d..00000000000
--- a/frontend/src/app/components/wp-table/external-configuration/restricted-wp-table-configuration.service.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import { Inject, Injectable } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { TabInterface } from 'core-components/wp-table/configuration-modal/tab-portal-outlet';
-import { WpTableConfigurationService } from 'core-components/wp-table/configuration-modal/wp-table-configuration.service';
-import { QueryConfigurationLocals } from 'core-components/wp-table/external-configuration/external-query-configuration.component';
-import { OpQueryConfigurationLocalsToken } from "core-components/wp-table/external-configuration/external-query-configuration.constants";
-
-@Injectable()
-export class RestrictedWpTableConfigurationService extends WpTableConfigurationService {
-
- constructor(@Inject(OpQueryConfigurationLocalsToken) readonly locals:QueryConfigurationLocals,
- readonly I18n:I18nService) {
- super(I18n);
- }
-
- public get tabs():TabInterface[] {
- const disabledTabs = this.locals.disabledTabs || {};
-
- return this
- ._tabs
- .map(el => {
- const reason = disabledTabs[el.id];
- if (reason != null) {
- el.disable = reason;
- }
-
- return el;
- });
- }
-}
diff --git a/frontend/src/app/components/wp-tabs/components/wp-tabs/wp-tabs.component.sass b/frontend/src/app/components/wp-tabs/components/wp-tabs/wp-tabs.component.sass
deleted file mode 100644
index 458209a7018..00000000000
--- a/frontend/src/app/components/wp-tabs/components/wp-tabs/wp-tabs.component.sass
+++ /dev/null
@@ -1,3 +0,0 @@
-.op-work-package-tabs
- position: relative
- width: 100%
\ No newline at end of file
diff --git a/frontend/src/app/components/wp-tabs/wp-tabs.module.ts b/frontend/src/app/components/wp-tabs/wp-tabs.module.ts
deleted file mode 100644
index d89850d78b9..00000000000
--- a/frontend/src/app/components/wp-tabs/wp-tabs.module.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-import { NgModule } from '@angular/core';
-import { CommonModule } from '@angular/common';
-import { WpTabsComponent } from './components/wp-tabs/wp-tabs.component';
-import { UIRouterModule } from "@uirouter/angular";
-import { WpTabWrapperComponent } from "core-components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.component";
-import { DynamicModule } from "ng-dynamic-component";
-import { OpenprojectAccessibilityModule } from "core-app/modules/a11y/openproject-a11y.module";
-import { OpenprojectTabsModule } from "core-app/modules/common/tabs/openproject-tabs.module";
-import { IconModule } from "core-app/modules/icon/icon.module";
-
-@NgModule({
- declarations: [
- WpTabsComponent,
- WpTabWrapperComponent,
- ],
- imports: [
- CommonModule,
- UIRouterModule,
- DynamicModule,
- OpenprojectAccessibilityModule,
- OpenprojectTabsModule,
- IconModule
- ],
- exports: [
- WpTabsComponent,
- WpTabWrapperComponent,
- ],
-})
-export class OpWpTabsModule {
-}
diff --git a/frontend/src/app/modules/common/active-window/active-window.service.ts b/frontend/src/app/core/active-window/active-window.service.ts
similarity index 93%
rename from frontend/src/app/modules/common/active-window/active-window.service.ts
rename to frontend/src/app/core/active-window/active-window.service.ts
index 4a313019124..9c080723f79 100644
--- a/frontend/src/app/modules/common/active-window/active-window.service.ts
+++ b/frontend/src/app/core/active-window/active-window.service.ts
@@ -1,7 +1,7 @@
import { Inject, Injectable } from "@angular/core";
import { DOCUMENT } from "@angular/common";
import { BehaviorSubject, Observable, Subject } from "rxjs";
-import { debugLog } from "core-app/helpers/debug_output";
+import { debugLog } from "core-app/shared/helpers/debug_output";
@Injectable({ providedIn: 'root' })
export class ActiveWindowService {
diff --git a/frontend/src/app/modules/apiv3/api-v3.service.spec.ts b/frontend/src/app/core/apiv3/api-v3.service.spec.ts
similarity index 92%
rename from frontend/src/app/modules/apiv3/api-v3.service.spec.ts
rename to frontend/src/app/core/apiv3/api-v3.service.spec.ts
index 4a8e3c6c482..092ac7296bc 100644
--- a/frontend/src/app/modules/apiv3/api-v3.service.spec.ts
+++ b/frontend/src/app/core/apiv3/api-v3.service.spec.ts
@@ -27,9 +27,9 @@
//++
import { TestBed, waitForAsync } from "@angular/core/testing";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { States } from "core-components/states.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { States } from "core-app/core/states/states.service";
describe('APIv3Service', function() {
let service:APIV3Service;
diff --git a/frontend/src/app/modules/apiv3/api-v3.service.ts b/frontend/src/app/core/apiv3/api-v3.service.ts
similarity index 70%
rename from frontend/src/app/modules/apiv3/api-v3.service.ts
rename to frontend/src/app/core/apiv3/api-v3.service.ts
index b477bc4023d..aa7c5d942ff 100644
--- a/frontend/src/app/modules/apiv3/api-v3.service.ts
+++ b/frontend/src/app/core/apiv3/api-v3.service.ts
@@ -31,33 +31,33 @@ import {
APIv3GettableResource,
APIv3ResourceCollection,
APIv3ResourcePath
-} from "core-app/modules/apiv3/paths/apiv3-resource";
+} from "core-app/core/apiv3/paths/apiv3-resource";
import { Constructor } from "@angular/cdk/table";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { Apiv3GridsPaths } from "core-app/modules/apiv3/endpoints/grids/apiv3-grids-paths";
-import { Apiv3TimeEntriesPaths } from "core-app/modules/apiv3/endpoints/time-entries/apiv3-time-entries-paths";
-import { Apiv3CapabilitiesPaths } from "core-app/modules/apiv3/endpoints/capabilities/apiv3-capabilities-paths";
-import { Apiv3MembershipsPaths } from "core-app/modules/apiv3/endpoints/memberships/apiv3-memberships-paths";
-import { Apiv3UsersPaths } from "core-app/modules/apiv3/endpoints/users/apiv3-users-paths";
-import { Apiv3PlaceholderUsersPaths } from 'core-app/modules/apiv3/endpoints/placeholder-users/apiv3-placeholder-users-paths';
-import { Apiv3GroupsPaths } from 'core-app/modules/apiv3/endpoints/groups/apiv3-groups-paths';
-import { APIv3TypesPaths } from "core-app/modules/apiv3/endpoints/types/apiv3-types-paths";
-import { APIv3QueriesPaths } from "core-app/modules/apiv3/endpoints/queries/apiv3-queries-paths";
-import { APIV3WorkPackagesPaths } from "core-app/modules/apiv3/endpoints/work_packages/api-v3-work-packages-paths";
-import { APIv3ProjectPaths } from "core-app/modules/apiv3/endpoints/projects/apiv3-project-paths";
-import { APIv3ProjectsPaths } from "core-app/modules/apiv3/endpoints/projects/apiv3-projects-paths";
-import { APIv3StatusesPaths } from "core-app/modules/apiv3/endpoints/statuses/apiv3-statuses-paths";
-import { APIv3RolesPaths } from "core-app/modules/apiv3/endpoints/roles/apiv3-roles-paths";
-import { APIv3VersionsPaths } from "core-app/modules/apiv3/endpoints/versions/apiv3-versions-paths";
-import { Apiv3RelationsPaths } from "core-app/modules/apiv3/endpoints/relations/apiv3-relations-paths";
-import { Apiv3NewsPaths } from "core-app/modules/apiv3/endpoints/news/apiv3-news-paths";
-import { Apiv3HelpTextsPaths } from "core-app/modules/apiv3/endpoints/help_texts/apiv3-help-texts-paths";
-import { Apiv3ConfigurationPath } from "core-app/modules/apiv3/endpoints/configuration/apiv3-configuration-path";
-import { Apiv3BoardsPaths } from "core-app/modules/apiv3/virtual/apiv3-boards-paths";
-import { RootResource } from "core-app/modules/hal/resources/root-resource";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { Apiv3GridsPaths } from "core-app/core/apiv3/endpoints/grids/apiv3-grids-paths";
+import { Apiv3TimeEntriesPaths } from "core-app/core/apiv3/endpoints/time-entries/apiv3-time-entries-paths";
+import { Apiv3CapabilitiesPaths } from "core-app/core/apiv3/endpoints/capabilities/apiv3-capabilities-paths";
+import { Apiv3MembershipsPaths } from "core-app/core/apiv3/endpoints/memberships/apiv3-memberships-paths";
+import { Apiv3UsersPaths } from "core-app/core/apiv3/endpoints/users/apiv3-users-paths";
+import { APIv3TypesPaths } from "core-app/core/apiv3/endpoints/types/apiv3-types-paths";
+import { APIv3QueriesPaths } from "core-app/core/apiv3/endpoints/queries/apiv3-queries-paths";
+import { APIV3WorkPackagesPaths } from "core-app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths";
+import { APIv3ProjectPaths } from "core-app/core/apiv3/endpoints/projects/apiv3-project-paths";
+import { APIv3ProjectsPaths } from "core-app/core/apiv3/endpoints/projects/apiv3-projects-paths";
+import { APIv3StatusesPaths } from "core-app/core/apiv3/endpoints/statuses/apiv3-statuses-paths";
+import { APIv3RolesPaths } from "core-app/core/apiv3/endpoints/roles/apiv3-roles-paths";
+import { APIv3VersionsPaths } from "core-app/core/apiv3/endpoints/versions/apiv3-versions-paths";
+import { Apiv3RelationsPaths } from "core-app/core/apiv3/endpoints/relations/apiv3-relations-paths";
+import { Apiv3NewsPaths } from "core-app/core/apiv3/endpoints/news/apiv3-news-paths";
+import { Apiv3HelpTextsPaths } from "core-app/core/apiv3/endpoints/help_texts/apiv3-help-texts-paths";
+import { Apiv3ConfigurationPath } from "core-app/core/apiv3/endpoints/configuration/apiv3-configuration-path";
+import { Apiv3BoardsPaths } from "core-app/core/apiv3/virtual/apiv3-boards-paths";
+import { RootResource } from "core-app/features/hal/resources/root-resource";
import * as ts from "typescript/lib/tsserverlibrary";
import Project = ts.server.Project;
+import { Apiv3PlaceholderUsersPaths } from "core-app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-users-paths";
+import { Apiv3GroupsPaths } from "core-app/core/apiv3/endpoints/groups/apiv3-groups-paths";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
@Injectable({ providedIn: 'root' })
export class APIV3Service {
diff --git a/frontend/src/app/modules/apiv3/cache/cachable-apiv3-collection.ts b/frontend/src/app/core/apiv3/cache/cachable-apiv3-collection.ts
similarity index 85%
rename from frontend/src/app/modules/apiv3/cache/cachable-apiv3-collection.ts
rename to frontend/src/app/core/apiv3/cache/cachable-apiv3-collection.ts
index 2c1a07d2aee..60e1581b8ff 100644
--- a/frontend/src/app/modules/apiv3/cache/cachable-apiv3-collection.ts
+++ b/frontend/src/app/core/apiv3/cache/cachable-apiv3-collection.ts
@@ -26,14 +26,14 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3GettableResource, APIv3ResourceCollection } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { States } from "core-components/states.service";
-import { HasId, StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
+import { APIv3GettableResource, APIv3ResourceCollection } from "core-app/core/apiv3/paths/apiv3-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { States } from "core-app/core/states/states.service";
+import { HasId, StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
import { Observable } from "rxjs";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
import { tap } from "rxjs/operators";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export abstract class CachableAPIV3Collection<
T extends HasId = HalResource,
diff --git a/frontend/src/app/modules/apiv3/cache/cachable-apiv3-resource.ts b/frontend/src/app/core/apiv3/cache/cachable-apiv3-resource.ts
similarity index 90%
rename from frontend/src/app/modules/apiv3/cache/cachable-apiv3-resource.ts
rename to frontend/src/app/core/apiv3/cache/cachable-apiv3-resource.ts
index a5e7e5db8da..60dafb9b574 100644
--- a/frontend/src/app/modules/apiv3/cache/cachable-apiv3-resource.ts
+++ b/frontend/src/app/core/apiv3/cache/cachable-apiv3-resource.ts
@@ -26,14 +26,14 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3GettableResource } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { States } from "core-components/states.service";
-import { HasId, StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
+import { APIv3GettableResource } from "core-app/core/apiv3/paths/apiv3-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { States } from "core-app/core/states/states.service";
+import { HasId, StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
import { concat, from, merge, Observable, of } from "rxjs";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
import { mapTo, publish, share, shareReplay, switchMap, take, tap } from "rxjs/operators";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export abstract class CachableAPIV3Resource<T extends HasId = HalResource>
extends APIv3GettableResource<T> {
diff --git a/frontend/src/app/modules/apiv3/cache/state-cache.service.ts b/frontend/src/app/core/apiv3/cache/state-cache.service.ts
similarity index 98%
rename from frontend/src/app/modules/apiv3/cache/state-cache.service.ts
rename to frontend/src/app/core/apiv3/cache/state-cache.service.ts
index 478d9b80572..a381f811964 100644
--- a/frontend/src/app/modules/apiv3/cache/state-cache.service.ts
+++ b/frontend/src/app/core/apiv3/cache/state-cache.service.ts
@@ -29,7 +29,6 @@
import { MultiInputState, State } from 'reactivestates';
import { Observable } from "rxjs";
import { auditTime, map, share, startWith, take } from "rxjs/operators";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
export interface HasId {
id:string|null;
diff --git a/frontend/src/app/modules/apiv3/endpoints/capabilities/apiv3-capabilities-paths.ts b/frontend/src/app/core/apiv3/endpoints/capabilities/apiv3-capabilities-paths.ts
similarity index 75%
rename from frontend/src/app/modules/apiv3/endpoints/capabilities/apiv3-capabilities-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/capabilities/apiv3-capabilities-paths.ts
index 4c7a9e11c25..01875f8e452 100644
--- a/frontend/src/app/modules/apiv3/endpoints/capabilities/apiv3-capabilities-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/capabilities/apiv3-capabilities-paths.ts
@@ -27,20 +27,20 @@
//++
-import { Apiv3CapabilityPaths } from "core-app/modules/apiv3/endpoints/capabilities/apiv3-capability-paths";
-import { CapabilityResource } from "core-app/modules/hal/resources/capability-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { Apiv3CapabilityPaths } from "core-app/core/apiv3/endpoints/capabilities/apiv3-capability-paths";
+import { CapabilityResource } from "core-app/features/hal/resources/capability-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { Observable } from "rxjs";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
-import { CachableAPIV3Collection } from "core-app/modules/apiv3/cache/cachable-apiv3-collection";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { CachableAPIV3Collection } from "core-app/core/apiv3/cache/cachable-apiv3-collection";
import { MultiInputState } from "reactivestates";
import {
Apiv3ListParameters,
Apiv3ListResourceInterface,
listParamsString
-} from "core-app/modules/apiv3/paths/apiv3-list-resource.interface";
-import { CapabilityCacheService } from "core-app/modules/apiv3/endpoints/capabilities/capability-cache.service";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
+} from "core-app/core/apiv3/paths/apiv3-list-resource.interface";
+import { CapabilityCacheService } from "core-app/core/apiv3/endpoints/capabilities/capability-cache.service";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
export class Apiv3CapabilitiesPaths
extends CachableAPIV3Collection<CapabilityResource, Apiv3CapabilityPaths>
diff --git a/frontend/src/app/modules/apiv3/endpoints/capabilities/apiv3-capability-paths.ts b/frontend/src/app/core/apiv3/endpoints/capabilities/apiv3-capability-paths.ts
similarity index 79%
rename from frontend/src/app/modules/apiv3/endpoints/capabilities/apiv3-capability-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/capabilities/apiv3-capability-paths.ts
index 2af69e860d0..c4d672c97e1 100644
--- a/frontend/src/app/modules/apiv3/endpoints/capabilities/apiv3-capability-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/capabilities/apiv3-capability-paths.ts
@@ -26,10 +26,10 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { CapabilityResource } from "core-app/modules/hal/resources/capability-resource";
-import { CachableAPIV3Resource } from "core-app/modules/apiv3/cache/cachable-apiv3-resource";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
-import { Apiv3CapabilitiesPaths } from "core-app/modules/apiv3/endpoints/capabilities/apiv3-capabilities-paths";
+import { CapabilityResource } from "core-app/features/hal/resources/capability-resource";
+import { CachableAPIV3Resource } from "core-app/core/apiv3/cache/cachable-apiv3-resource";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
+import { Apiv3CapabilitiesPaths } from "core-app/core/apiv3/endpoints/capabilities/apiv3-capabilities-paths";
export class Apiv3CapabilityPaths extends CachableAPIV3Resource<CapabilityResource> {
protected createCache():StateCacheService<CapabilityResource> {
diff --git a/frontend/src/app/modules/apiv3/endpoints/capabilities/capability-cache.service.ts b/frontend/src/app/core/apiv3/endpoints/capabilities/capability-cache.service.ts
similarity index 80%
rename from frontend/src/app/modules/apiv3/endpoints/capabilities/capability-cache.service.ts
rename to frontend/src/app/core/apiv3/endpoints/capabilities/capability-cache.service.ts
index b9c6aa88bc6..db8d50e392d 100644
--- a/frontend/src/app/modules/apiv3/endpoints/capabilities/capability-cache.service.ts
+++ b/frontend/src/app/core/apiv3/endpoints/capabilities/capability-cache.service.ts
@@ -26,12 +26,12 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { CapabilityResource } from "core-app/modules/hal/resources/capability-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { States } from "core-components/states.service";
+import { CapabilityResource } from "core-app/features/hal/resources/capability-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { States } from "core-app/core/states/states.service";
import { Injector } from "@angular/core";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
import { MultiInputState } from "reactivestates";
export class CapabilityCacheService extends StateCacheService<CapabilityResource> {
diff --git a/frontend/src/app/modules/apiv3/endpoints/configuration/apiv3-configuration-path.ts b/frontend/src/app/core/apiv3/endpoints/configuration/apiv3-configuration-path.ts
similarity index 83%
rename from frontend/src/app/modules/apiv3/endpoints/configuration/apiv3-configuration-path.ts
rename to frontend/src/app/core/apiv3/endpoints/configuration/apiv3-configuration-path.ts
index 3c9fd4c361f..b33625dc764 100644
--- a/frontend/src/app/modules/apiv3/endpoints/configuration/apiv3-configuration-path.ts
+++ b/frontend/src/app/core/apiv3/endpoints/configuration/apiv3-configuration-path.ts
@@ -26,13 +26,13 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3GettableResource, APIv3ResourceCollection } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { GridResource } from "core-app/modules/hal/resources/grid-resource";
-import { APIv3FormResource } from "core-app/modules/apiv3/forms/apiv3-form-resource";
-import { ConfigurationResource } from "core-app/modules/hal/resources/configuration-resource";
+import { APIv3GettableResource, APIv3ResourceCollection } from "core-app/core/apiv3/paths/apiv3-resource";
+import { GridResource } from "core-app/features/hal/resources/grid-resource";
+import { APIv3FormResource } from "core-app/core/apiv3/forms/apiv3-form-resource";
+import { ConfigurationResource } from "core-app/features/hal/resources/configuration-resource";
import { Observable } from "rxjs";
import { shareReplay } from "rxjs/operators";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
export class Apiv3ConfigurationPath extends APIv3GettableResource<ConfigurationResource> {
private $configuration:Observable<ConfigurationResource>;
diff --git a/frontend/src/app/modules/apiv3/endpoints/grids/apiv3-grid-form.ts b/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grid-form.ts
similarity index 86%
rename from frontend/src/app/modules/apiv3/endpoints/grids/apiv3-grid-form.ts
rename to frontend/src/app/core/apiv3/endpoints/grids/apiv3-grid-form.ts
index 123af525acb..55e584b9ac9 100644
--- a/frontend/src/app/modules/apiv3/endpoints/grids/apiv3-grid-form.ts
+++ b/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grid-form.ts
@@ -26,11 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3FormResource } from "core-app/modules/apiv3/forms/apiv3-form-resource";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
-import { HalPayloadHelper } from "core-app/modules/hal/schemas/hal-payload.helper";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { GridWidgetResource } from "core-app/modules/hal/resources/grid-widget-resource";
+import { APIv3FormResource } from "core-app/core/apiv3/forms/apiv3-form-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { HalPayloadHelper } from "core-app/features/hal/schemas/hal-payload.helper";
+import { GridWidgetResource } from "core-app/features/hal/resources/grid-widget-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export class Apiv3GridForm extends APIv3FormResource {
diff --git a/frontend/src/app/modules/apiv3/endpoints/grids/apiv3-grid-paths.ts b/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grid-paths.ts
similarity index 85%
rename from frontend/src/app/modules/apiv3/endpoints/grids/apiv3-grid-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/grids/apiv3-grid-paths.ts
index 1a91d642407..34d27666881 100644
--- a/frontend/src/app/modules/apiv3/endpoints/grids/apiv3-grid-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grid-paths.ts
@@ -26,11 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3GettableResource } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { GridResource } from "core-app/modules/hal/resources/grid-resource";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
+import { APIv3GettableResource } from "core-app/core/apiv3/paths/apiv3-resource";
+import { GridResource } from "core-app/features/hal/resources/grid-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
import { Observable } from "rxjs";
-import { Apiv3GridForm } from "core-app/modules/apiv3/endpoints/grids/apiv3-grid-form";
+import { Apiv3GridForm } from "core-app/core/apiv3/endpoints/grids/apiv3-grid-form";
export class Apiv3GridPaths extends APIv3GettableResource<GridResource> {
// Static paths
diff --git a/frontend/src/app/modules/apiv3/endpoints/grids/apiv3-grids-paths.ts b/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grids-paths.ts
similarity index 78%
rename from frontend/src/app/modules/apiv3/endpoints/grids/apiv3-grids-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/grids/apiv3-grids-paths.ts
index e2b53434aba..830b3c9dc97 100644
--- a/frontend/src/app/modules/apiv3/endpoints/grids/apiv3-grids-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/grids/apiv3-grids-paths.ts
@@ -26,19 +26,19 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3ResourceCollection } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { Apiv3GridPaths } from "core-app/modules/apiv3/endpoints/grids/apiv3-grid-paths";
-import { GridResource } from "core-app/modules/hal/resources/grid-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
-import { Apiv3GridForm } from "core-app/modules/apiv3/endpoints/grids/apiv3-grid-form";
+import { APIv3ResourceCollection } from "core-app/core/apiv3/paths/apiv3-resource";
+import { Apiv3GridPaths } from "core-app/core/apiv3/endpoints/grids/apiv3-grid-paths";
+import { GridResource } from "core-app/features/hal/resources/grid-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { Apiv3GridForm } from "core-app/core/apiv3/endpoints/grids/apiv3-grid-form";
import { Observable } from "rxjs";
import {
Apiv3ListParameters,
Apiv3ListResourceInterface,
listParamsString
-} from "core-app/modules/apiv3/paths/apiv3-list-resource.interface";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
+} from "core-app/core/apiv3/paths/apiv3-list-resource.interface";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
export class Apiv3GridsPaths
extends APIv3ResourceCollection<GridResource, Apiv3GridPaths>
diff --git a/frontend/src/app/modules/apiv3/endpoints/groups/apiv3-group-paths.ts b/frontend/src/app/core/apiv3/endpoints/groups/apiv3-group-paths.ts
similarity index 91%
rename from frontend/src/app/modules/apiv3/endpoints/groups/apiv3-group-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/groups/apiv3-group-paths.ts
index f6d17aebfdd..26ff7a84a47 100644
--- a/frontend/src/app/modules/apiv3/endpoints/groups/apiv3-group-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/groups/apiv3-group-paths.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3GettableResource } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { GroupResource } from "core-app/modules/hal/resources/group-resource";
+import { APIv3GettableResource } from "core-app/core/apiv3/paths/apiv3-resource";
+import { GroupResource } from "core-app/features/hal/resources/group-resource";
import { Observable } from "rxjs";
export class Apiv3GroupPaths extends APIv3GettableResource<GroupResource> {
diff --git a/frontend/src/app/modules/apiv3/endpoints/groups/apiv3-groups-paths.ts b/frontend/src/app/core/apiv3/endpoints/groups/apiv3-groups-paths.ts
similarity index 82%
rename from frontend/src/app/modules/apiv3/endpoints/groups/apiv3-groups-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/groups/apiv3-groups-paths.ts
index ab5b7460113..56c8b6fac76 100644
--- a/frontend/src/app/modules/apiv3/endpoints/groups/apiv3-groups-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/groups/apiv3-groups-paths.ts
@@ -26,17 +26,17 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3ResourceCollection } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { Apiv3GroupPaths } from "core-app/modules/apiv3/endpoints/groups/apiv3-group-paths";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIv3ResourceCollection } from "core-app/core/apiv3/paths/apiv3-resource";
+import { Apiv3GroupPaths } from "core-app/core/apiv3/endpoints/groups/apiv3-group-paths";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { Observable } from "rxjs";
import {
Apiv3ListParameters,
Apiv3ListResourceInterface,
listParamsString
-} from "core-app/modules/apiv3/paths/apiv3-list-resource.interface";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
-import { GroupResource } from 'core-app/modules/hal/resources/group-resource';
+} from "core-app/core/apiv3/paths/apiv3-list-resource.interface";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { GroupResource } from "core-app/features/hal/resources/group-resource";
export class Apiv3GroupsPaths
extends APIv3ResourceCollection<GroupResource, Apiv3GroupPaths>
diff --git a/frontend/src/app/modules/apiv3/endpoints/help_texts/apiv3-help-texts-paths.ts b/frontend/src/app/core/apiv3/endpoints/help_texts/apiv3-help-texts-paths.ts
similarity index 86%
rename from frontend/src/app/modules/apiv3/endpoints/help_texts/apiv3-help-texts-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/help_texts/apiv3-help-texts-paths.ts
index 36735726f00..0939ba04f68 100644
--- a/frontend/src/app/modules/apiv3/endpoints/help_texts/apiv3-help-texts-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/help_texts/apiv3-help-texts-paths.ts
@@ -26,11 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3GettableResource, APIv3ResourceCollection } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIv3GettableResource, APIv3ResourceCollection } from "core-app/core/apiv3/paths/apiv3-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { Observable } from "rxjs";
-import { HelpTextResource } from "core-app/modules/hal/resources/help-text-resource";
+import { HelpTextResource } from "core-app/features/hal/resources/help-text-resource";
export class Apiv3HelpTextsPaths
extends APIv3ResourceCollection<HelpTextResource, APIv3GettableResource<HelpTextResource>> {
diff --git a/frontend/src/app/modules/apiv3/endpoints/memberships/apiv3-memberships-form.ts b/frontend/src/app/core/apiv3/endpoints/memberships/apiv3-memberships-form.ts
similarity index 85%
rename from frontend/src/app/modules/apiv3/endpoints/memberships/apiv3-memberships-form.ts
rename to frontend/src/app/core/apiv3/endpoints/memberships/apiv3-memberships-form.ts
index 972059682af..ee3d473e6d2 100644
--- a/frontend/src/app/modules/apiv3/endpoints/memberships/apiv3-memberships-form.ts
+++ b/frontend/src/app/core/apiv3/endpoints/memberships/apiv3-memberships-form.ts
@@ -26,11 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import {APIv3FormResource} from "core-app/modules/apiv3/forms/apiv3-form-resource";
-import {SchemaResource} from "core-app/modules/hal/resources/schema-resource";
-import {HalPayloadHelper} from "core-app/modules/hal/schemas/hal-payload.helper";
-import {HalResource} from "core-app/modules/hal/resources/hal-resource";
-import {MembershipResource, MembershipResourceEmbedded} from "core-app/modules/hal/resources/membership-resource";
+import {APIv3FormResource} from "core-app/core/apiv3/forms/apiv3-form-resource";
+import {SchemaResource} from "core-app/features/hal/resources/schema-resource";
+import {HalPayloadHelper} from "core-app/features/hal/schemas/hal-payload.helper";
+import {HalResource} from "core-app/features/hal/resources/hal-resource";
+import {MembershipResource, MembershipResourceEmbedded} from "core-app/features/hal/resources/membership-resource";
export class Apiv3MembershipsForm extends APIv3FormResource {
diff --git a/frontend/src/app/modules/apiv3/endpoints/memberships/apiv3-memberships-paths.ts b/frontend/src/app/core/apiv3/endpoints/memberships/apiv3-memberships-paths.ts
similarity index 81%
rename from frontend/src/app/modules/apiv3/endpoints/memberships/apiv3-memberships-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/memberships/apiv3-memberships-paths.ts
index 79135982dde..06456a1719b 100644
--- a/frontend/src/app/modules/apiv3/endpoints/memberships/apiv3-memberships-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/memberships/apiv3-memberships-paths.ts
@@ -26,17 +26,17 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import {APIv3GettableResource, APIv3ResourceCollection} from "core-app/modules/apiv3/paths/apiv3-resource";
-import {APIV3Service} from "core-app/modules/apiv3/api-v3.service";
-import {Apiv3AvailableProjectsPaths} from "core-app/modules/apiv3/endpoints/projects/apiv3-available-projects-paths";
+import {APIv3GettableResource, APIv3ResourceCollection} from "core-app/core/apiv3/paths/apiv3-resource";
+import {APIV3Service} from "core-app/core/apiv3/api-v3.service";
+import {Apiv3AvailableProjectsPaths} from "core-app/core/apiv3/endpoints/projects/apiv3-available-projects-paths";
import {
Apiv3ListParameters,
Apiv3ListResourceInterface, listParamsString
-} from "core-app/modules/apiv3/paths/apiv3-list-resource.interface";
+} from "core-app/core/apiv3/paths/apiv3-list-resource.interface";
import {Observable} from "rxjs";
-import {CollectionResource} from "core-app/modules/hal/resources/collection-resource";
-import {MembershipResource, MembershipResourceEmbedded} from "core-app/modules/hal/resources/membership-resource";
-import {Apiv3MembershipsForm} from "core-app/modules/apiv3/endpoints/memberships/apiv3-memberships-form";
+import {Apiv3MembershipsForm} from "core-app/core/apiv3/endpoints/memberships/apiv3-memberships-form";
+import { MembershipResource, MembershipResourceEmbedded } from "core-app/features/hal/resources/membership-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
export class Apiv3MembershipsPaths
diff --git a/frontend/src/app/modules/apiv3/endpoints/news/apiv3-news-paths.ts b/frontend/src/app/core/apiv3/endpoints/news/apiv3-news-paths.ts
similarity index 82%
rename from frontend/src/app/modules/apiv3/endpoints/news/apiv3-news-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/news/apiv3-news-paths.ts
index 5b5d19e38b3..c431a50eae6 100644
--- a/frontend/src/app/modules/apiv3/endpoints/news/apiv3-news-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/news/apiv3-news-paths.ts
@@ -27,17 +27,17 @@
//++
-import { APIv3GettableResource, APIv3ResourceCollection } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { TimeEntryResource } from "core-app/modules/hal/resources/time-entry-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIv3GettableResource, APIv3ResourceCollection } from "core-app/core/apiv3/paths/apiv3-resource";
+import { TimeEntryResource } from "core-app/features/hal/resources/time-entry-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { Observable } from "rxjs";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
import {
Apiv3ListParameters,
Apiv3ListResourceInterface,
listParamsString
-} from "core-app/modules/apiv3/paths/apiv3-list-resource.interface";
-import { NewsResource } from "core-app/modules/hal/resources/news-resource";
+} from "core-app/core/apiv3/paths/apiv3-list-resource.interface";
+import { NewsResource } from "core-app/features/hal/resources/news-resource";
export class Apiv3NewsPaths
extends APIv3ResourceCollection<NewsResource, APIv3GettableResource<NewsResource>>
diff --git a/frontend/src/app/modules/apiv3/endpoints/placeholder-users/apiv3-placeholder-user-paths.ts b/frontend/src/app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-user-paths.ts
similarity index 90%
rename from frontend/src/app/modules/apiv3/endpoints/placeholder-users/apiv3-placeholder-user-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-user-paths.ts
index 4012316252f..a70e4adc7a3 100644
--- a/frontend/src/app/modules/apiv3/endpoints/placeholder-users/apiv3-placeholder-user-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-user-paths.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3GettableResource } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { PlaceholderUserResource } from "core-app/modules/hal/resources/placeholder-user-resource";
+import { APIv3GettableResource } from "core-app/core/apiv3/paths/apiv3-resource";
+import { PlaceholderUserResource } from "core-app/features/hal/resources/placeholder-user-resource";
import { Observable } from "rxjs";
export class Apiv3PlaceholderUserPaths extends APIv3GettableResource<PlaceholderUserResource> {
diff --git a/frontend/src/app/modules/apiv3/endpoints/placeholder-users/apiv3-placeholder-users-paths.ts b/frontend/src/app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-users-paths.ts
similarity index 81%
rename from frontend/src/app/modules/apiv3/endpoints/placeholder-users/apiv3-placeholder-users-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-users-paths.ts
index 54d0c91f555..b4bd8d6fa13 100644
--- a/frontend/src/app/modules/apiv3/endpoints/placeholder-users/apiv3-placeholder-users-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-users-paths.ts
@@ -26,17 +26,17 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3ResourceCollection } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { Apiv3PlaceholderUserPaths } from "core-app/modules/apiv3/endpoints/placeholder-users/apiv3-placeholder-user-paths";
-import { PlaceholderUserResource } from "core-app/modules/hal/resources/placeholder-user-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIv3ResourceCollection } from "core-app/core/apiv3/paths/apiv3-resource";
+import { Apiv3PlaceholderUserPaths } from "core-app/core/apiv3/endpoints/placeholder-users/apiv3-placeholder-user-paths";
+import { PlaceholderUserResource } from "core-app/features/hal/resources/placeholder-user-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { Observable } from "rxjs";
import {
Apiv3ListParameters,
Apiv3ListResourceInterface,
listParamsString
-} from "core-app/modules/apiv3/paths/apiv3-list-resource.interface";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
+} from "core-app/core/apiv3/paths/apiv3-list-resource.interface";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
export class Apiv3PlaceholderUsersPaths
extends APIv3ResourceCollection<PlaceholderUserResource, Apiv3PlaceholderUserPaths>
diff --git a/frontend/src/app/modules/apiv3/endpoints/projects/apiv3-available-projects-paths.ts b/frontend/src/app/core/apiv3/endpoints/projects/apiv3-available-projects-paths.ts
similarity index 85%
rename from frontend/src/app/modules/apiv3/endpoints/projects/apiv3-available-projects-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/projects/apiv3-available-projects-paths.ts
index a026e7c833b..d80d95ceed0 100644
--- a/frontend/src/app/modules/apiv3/endpoints/projects/apiv3-available-projects-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/projects/apiv3-available-projects-paths.ts
@@ -26,16 +26,16 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
-import { APIv3GettableResource } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
-import { buildApiV3Filter } from "core-components/api/api-v3/api-v3-filter-builder";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
+import { APIv3GettableResource } from "core-app/core/apiv3/paths/apiv3-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
import { Observable } from "rxjs";
import { map } from "rxjs/operators";
import {
Apiv3ListParameters,
Apiv3ListResourceInterface, listParamsString
-} from "core-app/modules/apiv3/paths/apiv3-list-resource.interface";
+} from "core-app/core/apiv3/paths/apiv3-list-resource.interface";
+import { buildApiV3Filter } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
export class Apiv3AvailableProjectsPaths
extends APIv3GettableResource<CollectionResource<ProjectResource>>
diff --git a/frontend/src/app/modules/apiv3/endpoints/projects/apiv3-project-copy-paths.ts b/frontend/src/app/core/apiv3/endpoints/projects/apiv3-project-copy-paths.ts
similarity index 86%
rename from frontend/src/app/modules/apiv3/endpoints/projects/apiv3-project-copy-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/projects/apiv3-project-copy-paths.ts
index d7f0497622c..783439954e3 100644
--- a/frontend/src/app/modules/apiv3/endpoints/projects/apiv3-project-copy-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/projects/apiv3-project-copy-paths.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3FormResource } from "core-app/modules/apiv3/forms/apiv3-form-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { SimpleResource } from "core-app/modules/apiv3/paths/path-resources";
+import { APIv3FormResource } from "core-app/core/apiv3/forms/apiv3-form-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { SimpleResource } from "core-app/core/apiv3/paths/path-resources";
export class APIv3ProjectCopyPaths extends SimpleResource {
constructor(protected apiRoot:APIV3Service,
diff --git a/frontend/src/app/modules/apiv3/endpoints/projects/apiv3-project-paths.ts b/frontend/src/app/core/apiv3/endpoints/projects/apiv3-project-paths.ts
similarity index 71%
rename from frontend/src/app/modules/apiv3/endpoints/projects/apiv3-project-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/projects/apiv3-project-paths.ts
index 103cadbed62..7857941a34c 100644
--- a/frontend/src/app/modules/apiv3/endpoints/projects/apiv3-project-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/projects/apiv3-project-paths.ts
@@ -26,15 +26,15 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3QueriesPaths } from "core-app/modules/apiv3/endpoints/queries/apiv3-queries-paths";
-import { APIv3TypesPaths } from "core-app/modules/apiv3/endpoints/types/apiv3-types-paths";
-import { APIV3WorkPackagesPaths } from "core-app/modules/apiv3/endpoints/work_packages/api-v3-work-packages-paths";
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
-import { CachableAPIV3Resource } from "core-app/modules/apiv3/cache/cachable-apiv3-resource";
-import { APIv3VersionsPaths } from "core-app/modules/apiv3/endpoints/versions/apiv3-versions-paths";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
-import { APIv3ProjectsPaths } from "core-app/modules/apiv3/endpoints/projects/apiv3-projects-paths";
-import { APIv3ProjectCopyPaths } from "core-app/modules/apiv3/endpoints/projects/apiv3-project-copy-paths";
+import { APIv3QueriesPaths } from "core-app/core/apiv3/endpoints/queries/apiv3-queries-paths";
+import { APIv3TypesPaths } from "core-app/core/apiv3/endpoints/types/apiv3-types-paths";
+import { APIV3WorkPackagesPaths } from "core-app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
+import { CachableAPIV3Resource } from "core-app/core/apiv3/cache/cachable-apiv3-resource";
+import { APIv3VersionsPaths } from "core-app/core/apiv3/endpoints/versions/apiv3-versions-paths";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
+import { APIv3ProjectsPaths } from "core-app/core/apiv3/endpoints/projects/apiv3-projects-paths";
+import { APIv3ProjectCopyPaths } from "core-app/core/apiv3/endpoints/projects/apiv3-project-copy-paths";
export class APIv3ProjectPaths extends CachableAPIV3Resource<ProjectResource> {
// /api/v3/projects/:project_id/available_assignees
diff --git a/frontend/src/app/modules/apiv3/endpoints/projects/apiv3-projects-paths.ts b/frontend/src/app/core/apiv3/endpoints/projects/apiv3-projects-paths.ts
similarity index 74%
rename from frontend/src/app/modules/apiv3/endpoints/projects/apiv3-projects-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/projects/apiv3-projects-paths.ts
index 367cb31934d..ca25f3f1d96 100644
--- a/frontend/src/app/modules/apiv3/endpoints/projects/apiv3-projects-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/projects/apiv3-projects-paths.ts
@@ -26,20 +26,20 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3ProjectPaths } from "core-app/modules/apiv3/endpoints/projects/apiv3-project-paths";
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
+import { APIv3ProjectPaths } from "core-app/core/apiv3/endpoints/projects/apiv3-project-paths";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
import {
Apiv3ListParameters,
Apiv3ListResourceInterface,
listParamsString
-} from "core-app/modules/apiv3/paths/apiv3-list-resource.interface";
+} from "core-app/core/apiv3/paths/apiv3-list-resource.interface";
import { Observable } from "rxjs";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
-import { CachableAPIV3Collection } from "core-app/modules/apiv3/cache/cachable-apiv3-collection";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
-import { ProjectCache } from "core-app/modules/apiv3/endpoints/projects/project.cache";
+import { CachableAPIV3Collection } from "core-app/core/apiv3/cache/cachable-apiv3-collection";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
+import { ProjectCache } from "core-app/core/apiv3/endpoints/projects/project.cache";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
export class APIv3ProjectsPaths
extends CachableAPIV3Collection<ProjectResource, APIv3ProjectPaths>
diff --git a/frontend/src/app/modules/apiv3/endpoints/projects/project.cache.ts b/frontend/src/app/core/apiv3/endpoints/projects/project.cache.ts
similarity index 78%
rename from frontend/src/app/modules/apiv3/endpoints/projects/project.cache.ts
rename to frontend/src/app/core/apiv3/endpoints/projects/project.cache.ts
index fe597c27253..4920f628611 100644
--- a/frontend/src/app/modules/apiv3/endpoints/projects/project.cache.ts
+++ b/frontend/src/app/core/apiv3/endpoints/projects/project.cache.ts
@@ -27,13 +27,13 @@
//++
import { MultiInputState } from 'reactivestates';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { Injectable, Injector } from '@angular/core';
-import { debugLog } from "core-app/helpers/debug_output";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
+import { debugLog } from "core-app/shared/helpers/debug_output";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
@Injectable()
export class ProjectCache extends StateCacheService<ProjectResource> {
diff --git a/frontend/src/app/modules/apiv3/endpoints/queries/apiv3-queries-paths.ts b/frontend/src/app/core/apiv3/endpoints/queries/apiv3-queries-paths.ts
similarity index 84%
rename from frontend/src/app/modules/apiv3/endpoints/queries/apiv3-queries-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/queries/apiv3-queries-paths.ts
index 188bf467449..835c611df3b 100644
--- a/frontend/src/app/modules/apiv3/endpoints/queries/apiv3-queries-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/queries/apiv3-queries-paths.ts
@@ -26,18 +26,18 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3GettableResource, APIv3ResourceCollection } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { APIv3QueryPaths } from "core-app/modules/apiv3/endpoints/queries/apiv3-query-paths";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { Apiv3QueryForm } from "core-app/modules/apiv3/endpoints/queries/apiv3-query-form";
+import { APIv3GettableResource, APIv3ResourceCollection } from "core-app/core/apiv3/paths/apiv3-resource";
+import { APIv3QueryPaths } from "core-app/core/apiv3/endpoints/queries/apiv3-query-paths";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { Apiv3QueryForm } from "core-app/core/apiv3/endpoints/queries/apiv3-query-form";
import { Observable } from "rxjs";
-import { QueryFormResource } from "core-app/modules/hal/resources/query-form-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
-import { Apiv3ListParameters, listParamsString } from "core-app/modules/apiv3/paths/apiv3-list-resource.interface";
-import { QueryFiltersService } from "core-components/wp-query/query-filters.service";
-import { HalPayloadHelper } from "core-app/modules/hal/schemas/hal-payload.helper";
+import { QueryFormResource } from "core-app/features/hal/resources/query-form-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { Apiv3ListParameters, listParamsString } from "core-app/core/apiv3/paths/apiv3-list-resource.interface";
+import { QueryFiltersService } from "core-app/features/work-packages/components/wp-query/query-filters.service";
+import { HalPayloadHelper } from "core-app/features/hal/schemas/hal-payload.helper";
export class APIv3QueriesPaths extends APIv3ResourceCollection<QueryResource, APIv3QueryPaths> {
@InjectField() private queryFilters:QueryFiltersService;
diff --git a/frontend/src/app/modules/apiv3/endpoints/queries/apiv3-query-form.ts b/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-form.ts
similarity index 89%
rename from frontend/src/app/modules/apiv3/endpoints/queries/apiv3-query-form.ts
rename to frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-form.ts
index 045e73ccce5..d3e036095f8 100644
--- a/frontend/src/app/modules/apiv3/endpoints/queries/apiv3-query-form.ts
+++ b/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-form.ts
@@ -26,14 +26,14 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { APIv3FormResource } from "core-app/modules/apiv3/forms/apiv3-form-resource";
-import { QueryFormResource } from "core-app/modules/hal/resources/query-form-resource";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { APIv3FormResource } from "core-app/core/apiv3/forms/apiv3-form-resource";
+import { QueryFormResource } from "core-app/features/hal/resources/query-form-resource";
import { Observable } from "rxjs";
import * as URI from "urijs";
import { map, tap } from "rxjs/operators";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { QueryFiltersService } from "core-components/wp-query/query-filters.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { QueryFiltersService } from "core-app/features/work-packages/components/wp-query/query-filters.service";
export class Apiv3QueryForm extends APIv3FormResource<QueryFormResource> {
@InjectField() private queryFilters:QueryFiltersService;
diff --git a/frontend/src/app/modules/apiv3/endpoints/queries/apiv3-query-order.ts b/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-order.ts
similarity index 93%
rename from frontend/src/app/modules/apiv3/endpoints/queries/apiv3-query-order.ts
rename to frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-order.ts
index d57da9a016b..2bb1d5e5719 100644
--- a/frontend/src/app/modules/apiv3/endpoints/queries/apiv3-query-order.ts
+++ b/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-order.ts
@@ -27,9 +27,9 @@
//++
import { Injector } from "@angular/core";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
import { HttpClient } from "@angular/common/http";
-import { SimpleResource } from "core-app/modules/apiv3/paths/path-resources";
+import { SimpleResource } from "core-app/core/apiv3/paths/path-resources";
export type QueryOrder = { [wpId:string]:number };
diff --git a/frontend/src/app/modules/apiv3/endpoints/queries/apiv3-query-paths.ts b/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-paths.ts
similarity index 76%
rename from frontend/src/app/modules/apiv3/endpoints/queries/apiv3-query-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-paths.ts
index af828d4b08d..439ce33cfb5 100644
--- a/frontend/src/app/modules/apiv3/endpoints/queries/apiv3-query-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/queries/apiv3-query-paths.ts
@@ -26,16 +26,16 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3GettableResource } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { APIV3QueryOrder } from "core-app/modules/apiv3/endpoints/queries/apiv3-query-order";
-import { Apiv3QueryForm } from "core-app/modules/apiv3/endpoints/queries/apiv3-query-form";
+import { APIv3GettableResource } from "core-app/core/apiv3/paths/apiv3-resource";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { APIV3QueryOrder } from "core-app/core/apiv3/endpoints/queries/apiv3-query-order";
+import { Apiv3QueryForm } from "core-app/core/apiv3/endpoints/queries/apiv3-query-form";
import { Observable } from "rxjs";
-import { QueryFormResource } from "core-app/modules/hal/resources/query-form-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { QueryFiltersService } from "core-components/wp-query/query-filters.service";
-import { PaginationObject } from "core-components/table-pagination/pagination-service";
-import { HalPayloadHelper } from "core-app/modules/hal/schemas/hal-payload.helper";
+import { QueryFormResource } from "core-app/features/hal/resources/query-form-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { QueryFiltersService } from "core-app/features/work-packages/components/wp-query/query-filters.service";
+import { HalPayloadHelper } from "core-app/features/hal/schemas/hal-payload.helper";
+import { PaginationObject } from "core-app/shared/components/table-pagination/pagination-service";
export class APIv3QueryPaths extends APIv3GettableResource<QueryResource> {
@InjectField() private queryFilters:QueryFiltersService;
diff --git a/frontend/src/app/modules/apiv3/endpoints/relations/apiv3-relations-paths.ts b/frontend/src/app/core/apiv3/endpoints/relations/apiv3-relations-paths.ts
similarity index 70%
rename from frontend/src/app/modules/apiv3/endpoints/relations/apiv3-relations-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/relations/apiv3-relations-paths.ts
index 71badf45d74..b4177e7a054 100644
--- a/frontend/src/app/modules/apiv3/endpoints/relations/apiv3-relations-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/relations/apiv3-relations-paths.ts
@@ -26,18 +26,13 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3GettableResource, APIv3ResourceCollection } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { VersionResource } from "core-app/modules/hal/resources/version-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { APIv3FormResource } from "core-app/modules/apiv3/forms/apiv3-form-resource";
-import { from, NEVER, Observable } from "rxjs";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
-import { Apiv3AvailableProjectsPaths } from "core-app/modules/apiv3/endpoints/projects/apiv3-available-projects-paths";
-import { APIv3VersionPaths } from "core-app/modules/apiv3/endpoints/versions/apiv3-version-paths";
-import { RelationResource } from "core-app/modules/hal/resources/relation-resource";
-import { buildApiV3Filter } from "core-components/api/api-v3/api-v3-filter-builder";
+import { APIv3GettableResource, APIv3ResourceCollection } from "core-app/core/apiv3/paths/apiv3-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { from, Observable } from "rxjs";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { RelationResource } from "core-app/features/hal/resources/relation-resource";
import { map } from "rxjs/operators";
+import { buildApiV3Filter } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
export class Apiv3RelationsPaths extends APIv3ResourceCollection<RelationResource, APIv3GettableResource<RelationResource>> {
constructor(protected apiRoot:APIV3Service,
diff --git a/frontend/src/app/modules/apiv3/endpoints/roles/apiv3-role-paths.ts b/frontend/src/app/core/apiv3/endpoints/roles/apiv3-role-paths.ts
similarity index 84%
rename from frontend/src/app/modules/apiv3/endpoints/roles/apiv3-role-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/roles/apiv3-role-paths.ts
index b20d65d8ea6..a5c69df862d 100644
--- a/frontend/src/app/modules/apiv3/endpoints/roles/apiv3-role-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/roles/apiv3-role-paths.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { RoleResource } from "core-app/modules/hal/resources/role-resource";
-import { CachableAPIV3Resource } from "core-app/modules/apiv3/cache/cachable-apiv3-resource";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
+import { RoleResource } from "core-app/features/hal/resources/role-resource";
+import { CachableAPIV3Resource } from "core-app/core/apiv3/cache/cachable-apiv3-resource";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
export class APIv3RolePaths extends CachableAPIV3Resource<RoleResource> {
diff --git a/frontend/src/app/modules/apiv3/endpoints/roles/apiv3-roles-paths.ts b/frontend/src/app/core/apiv3/endpoints/roles/apiv3-roles-paths.ts
similarity index 85%
rename from frontend/src/app/modules/apiv3/endpoints/roles/apiv3-roles-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/roles/apiv3-roles-paths.ts
index eca369a5de5..5b11474df58 100644
--- a/frontend/src/app/modules/apiv3/endpoints/roles/apiv3-roles-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/roles/apiv3-roles-paths.ts
@@ -26,14 +26,14 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3ResourceCollection, APIv3ResourcePath } from "core-app/modules/apiv3/paths/apiv3-resource";
+import { APIv3ResourceCollection, APIv3ResourcePath } from "core-app/core/apiv3/paths/apiv3-resource";
import { Injector } from "@angular/core";
-import { RoleResource } from "core-app/modules/hal/resources/role-resource";
-import { APIv3RolePaths } from "core-app/modules/apiv3/endpoints/roles/apiv3-role-paths";
+import { RoleResource } from "core-app/features/hal/resources/role-resource";
+import { APIv3RolePaths } from "core-app/core/apiv3/endpoints/roles/apiv3-role-paths";
import { Observable } from "rxjs";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
import { tap } from "rxjs/operators";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
export class APIv3RolesPaths extends APIv3ResourceCollection<RoleResource, APIv3RolePaths> {
constructor(protected apiRoot:APIV3Service,
diff --git a/frontend/src/app/modules/apiv3/endpoints/statuses/apiv3-status-paths.ts b/frontend/src/app/core/apiv3/endpoints/statuses/apiv3-status-paths.ts
similarity index 84%
rename from frontend/src/app/modules/apiv3/endpoints/statuses/apiv3-status-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/statuses/apiv3-status-paths.ts
index 19032902526..3594e7cc63c 100644
--- a/frontend/src/app/modules/apiv3/endpoints/statuses/apiv3-status-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/statuses/apiv3-status-paths.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { StatusResource } from "core-app/modules/hal/resources/status-resource";
-import { CachableAPIV3Resource } from "core-app/modules/apiv3/cache/cachable-apiv3-resource";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
+import { StatusResource } from "core-app/features/hal/resources/status-resource";
+import { CachableAPIV3Resource } from "core-app/core/apiv3/cache/cachable-apiv3-resource";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
export class APIv3StatusPaths extends CachableAPIV3Resource<StatusResource> {
diff --git a/frontend/src/app/modules/apiv3/endpoints/statuses/apiv3-statuses-paths.ts b/frontend/src/app/core/apiv3/endpoints/statuses/apiv3-statuses-paths.ts
similarity index 84%
rename from frontend/src/app/modules/apiv3/endpoints/statuses/apiv3-statuses-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/statuses/apiv3-statuses-paths.ts
index bf9a3759d90..579bca0f944 100644
--- a/frontend/src/app/modules/apiv3/endpoints/statuses/apiv3-statuses-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/statuses/apiv3-statuses-paths.ts
@@ -26,14 +26,14 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3ResourceCollection, APIv3ResourcePath } from "core-app/modules/apiv3/paths/apiv3-resource";
+import { APIv3ResourceCollection, APIv3ResourcePath } from "core-app/core/apiv3/paths/apiv3-resource";
import { Injector } from "@angular/core";
-import { StatusResource } from "core-app/modules/hal/resources/status-resource";
-import { APIv3StatusPaths } from "core-app/modules/apiv3/endpoints/statuses/apiv3-status-paths";
+import { StatusResource } from "core-app/features/hal/resources/status-resource";
+import { APIv3StatusPaths } from "core-app/core/apiv3/endpoints/statuses/apiv3-status-paths";
import { Observable } from "rxjs";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
import { tap } from "rxjs/operators";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
export class APIv3StatusesPaths extends APIv3ResourceCollection<StatusResource, APIv3StatusPaths> {
constructor(protected apiRoot:APIV3Service,
diff --git a/frontend/src/app/modules/apiv3/endpoints/time-entries/apiv3-time-entries-paths.ts b/frontend/src/app/core/apiv3/endpoints/time-entries/apiv3-time-entries-paths.ts
similarity index 76%
rename from frontend/src/app/modules/apiv3/endpoints/time-entries/apiv3-time-entries-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/time-entries/apiv3-time-entries-paths.ts
index b58e1eee1cf..0d689980d40 100644
--- a/frontend/src/app/modules/apiv3/endpoints/time-entries/apiv3-time-entries-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/time-entries/apiv3-time-entries-paths.ts
@@ -27,21 +27,21 @@
//++
-import { Apiv3TimeEntryPaths } from "core-app/modules/apiv3/endpoints/time-entries/apiv3-time-entry-paths";
-import { TimeEntryResource } from "core-app/modules/hal/resources/time-entry-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { APIv3FormResource } from "core-app/modules/apiv3/forms/apiv3-form-resource";
+import { Apiv3TimeEntryPaths } from "core-app/core/apiv3/endpoints/time-entries/apiv3-time-entry-paths";
+import { TimeEntryResource } from "core-app/features/hal/resources/time-entry-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { APIv3FormResource } from "core-app/core/apiv3/forms/apiv3-form-resource";
import { Observable } from "rxjs";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
-import { CachableAPIV3Collection } from "core-app/modules/apiv3/cache/cachable-apiv3-collection";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { CachableAPIV3Collection } from "core-app/core/apiv3/cache/cachable-apiv3-collection";
import { MultiInputState } from "reactivestates";
import {
Apiv3ListParameters,
Apiv3ListResourceInterface,
listParamsString
-} from "core-app/modules/apiv3/paths/apiv3-list-resource.interface";
-import { TimeEntryCacheService } from "core-app/modules/apiv3/endpoints/time-entries/time-entry-cache.service";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
+} from "core-app/core/apiv3/paths/apiv3-list-resource.interface";
+import { TimeEntryCacheService } from "core-app/core/apiv3/endpoints/time-entries/time-entry-cache.service";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
export class Apiv3TimeEntriesPaths
extends CachableAPIV3Collection<TimeEntryResource, Apiv3TimeEntryPaths>
diff --git a/frontend/src/app/modules/apiv3/endpoints/time-entries/apiv3-time-entry-paths.ts b/frontend/src/app/core/apiv3/endpoints/time-entries/apiv3-time-entry-paths.ts
similarity index 79%
rename from frontend/src/app/modules/apiv3/endpoints/time-entries/apiv3-time-entry-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/time-entries/apiv3-time-entry-paths.ts
index c7464e07f7f..5be1e8d0d26 100644
--- a/frontend/src/app/modules/apiv3/endpoints/time-entries/apiv3-time-entry-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/time-entries/apiv3-time-entry-paths.ts
@@ -26,17 +26,16 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { TimeEntryResource } from "core-app/modules/hal/resources/time-entry-resource";
-import { CachableAPIV3Resource } from "core-app/modules/apiv3/cache/cachable-apiv3-resource";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
-import { MultiInputState } from "reactivestates";
-import { APIv3FormResource } from "core-app/modules/apiv3/forms/apiv3-form-resource";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { TimeEntryResource } from "core-app/features/hal/resources/time-entry-resource";
+import { CachableAPIV3Resource } from "core-app/core/apiv3/cache/cachable-apiv3-resource";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
+import { APIv3FormResource } from "core-app/core/apiv3/forms/apiv3-form-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
import { Observable } from "rxjs";
import { tap } from "rxjs/operators";
-import { Apiv3TimeEntriesPaths } from "core-app/modules/apiv3/endpoints/time-entries/apiv3-time-entries-paths";
-import { HalPayloadHelper } from "core-app/modules/hal/schemas/hal-payload.helper";
+import { Apiv3TimeEntriesPaths } from "core-app/core/apiv3/endpoints/time-entries/apiv3-time-entries-paths";
+import { HalPayloadHelper } from "core-app/features/hal/schemas/hal-payload.helper";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export class Apiv3TimeEntryPaths extends CachableAPIV3Resource<TimeEntryResource> {
// Static paths
diff --git a/frontend/src/app/modules/apiv3/endpoints/time-entries/time-entry-cache.service.ts b/frontend/src/app/core/apiv3/endpoints/time-entries/time-entry-cache.service.ts
similarity index 82%
rename from frontend/src/app/modules/apiv3/endpoints/time-entries/time-entry-cache.service.ts
rename to frontend/src/app/core/apiv3/endpoints/time-entries/time-entry-cache.service.ts
index e3dda4ce103..1e799f3e5ef 100644
--- a/frontend/src/app/modules/apiv3/endpoints/time-entries/time-entry-cache.service.ts
+++ b/frontend/src/app/core/apiv3/endpoints/time-entries/time-entry-cache.service.ts
@@ -26,12 +26,12 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { TimeEntryResource } from "core-app/modules/hal/resources/time-entry-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { States } from "core-components/states.service";
+import { TimeEntryResource } from "core-app/features/hal/resources/time-entry-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { States } from "core-app/core/states/states.service";
import { Injector } from "@angular/core";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
import { MultiInputState } from "reactivestates";
export class TimeEntryCacheService extends StateCacheService<TimeEntryResource> {
diff --git a/frontend/src/app/modules/apiv3/endpoints/types/apiv3-type-paths.ts b/frontend/src/app/core/apiv3/endpoints/types/apiv3-type-paths.ts
similarity index 80%
rename from frontend/src/app/modules/apiv3/endpoints/types/apiv3-type-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/types/apiv3-type-paths.ts
index 10a364e73e7..fb47b6e3fc2 100644
--- a/frontend/src/app/modules/apiv3/endpoints/types/apiv3-type-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/types/apiv3-type-paths.ts
@@ -26,10 +26,10 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { TypeResource } from "core-app/modules/hal/resources/type-resource";
-import { CachableAPIV3Resource } from "core-app/modules/apiv3/cache/cachable-apiv3-resource";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
-import { APIv3TypesPaths } from "core-app/modules/apiv3/endpoints/types/apiv3-types-paths";
+import { TypeResource } from "core-app/features/hal/resources/type-resource";
+import { CachableAPIV3Resource } from "core-app/core/apiv3/cache/cachable-apiv3-resource";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
+import { APIv3TypesPaths } from "core-app/core/apiv3/endpoints/types/apiv3-types-paths";
export class APIv3TypePaths extends CachableAPIV3Resource<TypeResource> {
diff --git a/frontend/src/app/modules/apiv3/endpoints/types/apiv3-types-paths.ts b/frontend/src/app/core/apiv3/endpoints/types/apiv3-types-paths.ts
similarity index 76%
rename from frontend/src/app/modules/apiv3/endpoints/types/apiv3-types-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/types/apiv3-types-paths.ts
index 3096d680597..e0e3df6a7f0 100644
--- a/frontend/src/app/modules/apiv3/endpoints/types/apiv3-types-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/types/apiv3-types-paths.ts
@@ -26,12 +26,12 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3ResourceCollection } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { TypeResource } from "core-app/modules/hal/resources/type-resource";
-import { APIv3TypePaths } from "core-app/modules/apiv3/endpoints/types/apiv3-type-paths";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { CachableAPIV3Collection } from "core-app/modules/apiv3/cache/cachable-apiv3-collection";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
+import { APIv3ResourceCollection } from "core-app/core/apiv3/paths/apiv3-resource";
+import { TypeResource } from "core-app/features/hal/resources/type-resource";
+import { APIv3TypePaths } from "core-app/core/apiv3/endpoints/types/apiv3-type-paths";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { CachableAPIV3Collection } from "core-app/core/apiv3/cache/cachable-apiv3-collection";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
export class APIv3TypesPaths extends CachableAPIV3Collection<TypeResource, APIv3TypePaths> {
constructor(protected apiRoot:APIV3Service,
diff --git a/frontend/src/app/modules/apiv3/endpoints/users/apiv3-user-paths.ts b/frontend/src/app/core/apiv3/endpoints/users/apiv3-user-paths.ts
similarity index 85%
rename from frontend/src/app/modules/apiv3/endpoints/users/apiv3-user-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/users/apiv3-user-paths.ts
index c72986c5776..8128e89ec34 100644
--- a/frontend/src/app/modules/apiv3/endpoints/users/apiv3-user-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/users/apiv3-user-paths.ts
@@ -26,10 +26,10 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { UserResource } from "core-app/modules/hal/resources/user-resource";
+import { UserResource } from "core-app/features/hal/resources/user-resource";
import { MultiInputState } from "reactivestates";
-import { CachableAPIV3Resource } from "core-app/modules/apiv3/cache/cachable-apiv3-resource";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
+import { CachableAPIV3Resource } from "core-app/core/apiv3/cache/cachable-apiv3-resource";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
export class APIv3UserPaths extends CachableAPIV3Resource<UserResource> {
diff --git a/frontend/src/app/modules/apiv3/endpoints/users/apiv3-users-paths.ts b/frontend/src/app/core/apiv3/endpoints/users/apiv3-users-paths.ts
similarity index 86%
rename from frontend/src/app/modules/apiv3/endpoints/users/apiv3-users-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/users/apiv3-users-paths.ts
index 199ce430fe4..6d9aed4a38a 100644
--- a/frontend/src/app/modules/apiv3/endpoints/users/apiv3-users-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/users/apiv3-users-paths.ts
@@ -26,11 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3ResourceCollection } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { APIv3UserPaths } from "core-app/modules/apiv3/endpoints/users/apiv3-user-paths";
+import { APIv3ResourceCollection } from "core-app/core/apiv3/paths/apiv3-resource";
+import { APIv3UserPaths } from "core-app/core/apiv3/endpoints/users/apiv3-user-paths";
import { Observable } from "rxjs";
-import { UserResource } from "core-app/modules/hal/resources/user-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { UserResource } from "core-app/features/hal/resources/user-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
export class Apiv3UsersPaths extends APIv3ResourceCollection<UserResource, APIv3UserPaths> {
constructor(protected apiRoot:APIV3Service,
diff --git a/frontend/src/app/modules/apiv3/endpoints/versions/apiv3-version-paths.ts b/frontend/src/app/core/apiv3/endpoints/versions/apiv3-version-paths.ts
similarity index 88%
rename from frontend/src/app/modules/apiv3/endpoints/versions/apiv3-version-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/versions/apiv3-version-paths.ts
index 5e074a53a42..09dbf5cc554 100644
--- a/frontend/src/app/modules/apiv3/endpoints/versions/apiv3-version-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/versions/apiv3-version-paths.ts
@@ -26,12 +26,12 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { VersionResource } from "core-app/modules/hal/resources/version-resource";
+import { VersionResource } from "core-app/features/hal/resources/version-resource";
import { Observable } from "rxjs";
-import { CachableAPIV3Resource } from "core-app/modules/apiv3/cache/cachable-apiv3-resource";
+import { CachableAPIV3Resource } from "core-app/core/apiv3/cache/cachable-apiv3-resource";
import { MultiInputState } from "reactivestates";
import { tap } from "rxjs/operators";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
export class APIv3VersionPaths extends CachableAPIV3Resource<VersionResource> {
diff --git a/frontend/src/app/modules/apiv3/endpoints/versions/apiv3-versions-paths.ts b/frontend/src/app/core/apiv3/endpoints/versions/apiv3-versions-paths.ts
similarity index 76%
rename from frontend/src/app/modules/apiv3/endpoints/versions/apiv3-versions-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/versions/apiv3-versions-paths.ts
index c245e03c5ec..d7937c0e1f8 100644
--- a/frontend/src/app/modules/apiv3/endpoints/versions/apiv3-versions-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/versions/apiv3-versions-paths.ts
@@ -26,15 +26,15 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3GettableResource, APIv3ResourceCollection } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { VersionResource } from "core-app/modules/hal/resources/version-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { APIv3FormResource } from "core-app/modules/apiv3/forms/apiv3-form-resource";
+import { APIv3GettableResource, APIv3ResourceCollection } from "core-app/core/apiv3/paths/apiv3-resource";
+import { VersionResource } from "core-app/features/hal/resources/version-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { APIv3FormResource } from "core-app/core/apiv3/forms/apiv3-form-resource";
import { Observable } from "rxjs";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
-import { Apiv3AvailableProjectsPaths } from "core-app/modules/apiv3/endpoints/projects/apiv3-available-projects-paths";
-import { APIv3VersionPaths } from "core-app/modules/apiv3/endpoints/versions/apiv3-version-paths";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { Apiv3AvailableProjectsPaths } from "core-app/core/apiv3/endpoints/projects/apiv3-available-projects-paths";
+import { APIv3VersionPaths } from "core-app/core/apiv3/endpoints/versions/apiv3-version-paths";
export class APIv3VersionsPaths extends APIv3ResourceCollection<VersionResource, APIv3VersionPaths> {
constructor(protected apiRoot:APIV3Service,
diff --git a/frontend/src/app/modules/apiv3/endpoints/work_packages/api-v3-work-package-cached-subresource.ts b/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-package-cached-subresource.ts
similarity index 74%
rename from frontend/src/app/modules/apiv3/endpoints/work_packages/api-v3-work-package-cached-subresource.ts
rename to frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-package-cached-subresource.ts
index fbc5d08bf0c..46fd8264e23 100644
--- a/frontend/src/app/modules/apiv3/endpoints/work_packages/api-v3-work-package-cached-subresource.ts
+++ b/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-package-cached-subresource.ts
@@ -26,16 +26,16 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3GettableResource } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { WorkPackageCollectionResource } from "core-app/modules/hal/resources/wp-collection-resource";
+import { APIv3GettableResource } from "core-app/core/apiv3/paths/apiv3-resource";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
import { Observable } from "rxjs";
-import { APIV3WorkPackagesPaths } from "core-app/modules/apiv3/endpoints/work_packages/api-v3-work-packages-paths";
+import { APIV3WorkPackagesPaths } from "core-app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths";
import { take, tap } from "rxjs/operators";
-import { WorkPackageCache } from "core-app/modules/apiv3/endpoints/work_packages/work-package.cache";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { States } from "core-components/states.service";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
+import { WorkPackageCache } from "core-app/core/apiv3/endpoints/work_packages/work-package.cache";
+import { States } from "core-app/core/states/states.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
export class ApiV3WorkPackageCachedSubresource extends APIv3GettableResource<WorkPackageCollectionResource> {
@InjectField() private states:States;
diff --git a/frontend/src/app/modules/apiv3/endpoints/work_packages/api-v3-work-package-paths.ts b/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-package-paths.ts
similarity index 74%
rename from frontend/src/app/modules/apiv3/endpoints/work_packages/api-v3-work-package-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-package-paths.ts
index b4683a7a246..4ff74d29f0a 100644
--- a/frontend/src/app/modules/apiv3/endpoints/work_packages/api-v3-work-package-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-package-paths.ts
@@ -26,15 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIv3GettableResource, APIv3ResourcePath } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { Apiv3RelationsPaths } from "core-app/modules/apiv3/endpoints/relations/apiv3-relations-paths";
-import { WorkPackageCollectionResource } from "core-app/modules/hal/resources/wp-collection-resource";
-import { Observable } from "rxjs";
-import { ApiV3FilterBuilder } from "core-components/api/api-v3/api-v3-filter-builder";
-import { CachableAPIV3Resource } from "core-app/modules/apiv3/cache/cachable-apiv3-resource";
-import { APIV3WorkPackagesPaths } from "core-app/modules/apiv3/endpoints/work_packages/api-v3-work-packages-paths";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { Apiv3RelationsPaths } from "core-app/core/apiv3/endpoints/relations/apiv3-relations-paths";
+import { CachableAPIV3Resource } from "core-app/core/apiv3/cache/cachable-apiv3-resource";
+import { APIV3WorkPackagesPaths } from "core-app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
export class APIV3WorkPackagePaths extends CachableAPIV3Resource<WorkPackageResource> {
diff --git a/frontend/src/app/modules/apiv3/endpoints/work_packages/api-v3-work-packages-paths.ts b/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths.ts
similarity index 80%
rename from frontend/src/app/modules/apiv3/endpoints/work_packages/api-v3-work-packages-paths.ts
rename to frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths.ts
index 5875e6549b7..d58e2749b61 100644
--- a/frontend/src/app/modules/apiv3/endpoints/work_packages/api-v3-work-packages-paths.ts
+++ b/frontend/src/app/core/apiv3/endpoints/work_packages/api-v3-work-packages-paths.ts
@@ -26,20 +26,19 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { APIV3WorkPackagePaths } from "core-app/modules/apiv3/endpoints/work_packages/api-v3-work-package-paths";
-import { ApiV3FilterBuilder, buildApiV3Filter } from "core-components/api/api-v3/api-v3-filter-builder";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { WorkPackageCollectionResource } from "core-app/modules/hal/resources/wp-collection-resource";
+import { APIV3WorkPackagePaths } from "core-app/core/apiv3/endpoints/work_packages/api-v3-work-package-paths";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
import { Observable } from "rxjs";
-import { APIv3WorkPackageForm } from "core-app/modules/apiv3/endpoints/work_packages/apiv3-work-package-form";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { CachableAPIV3Collection } from "core-app/modules/apiv3/cache/cachable-apiv3-collection";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
-import { WorkPackageCache } from "core-app/modules/apiv3/endpoints/work_packages/work-package.cache";
-import { APIv3GettableResource } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { ApiV3WorkPackageCachedSubresource } from "core-app/modules/apiv3/endpoints/work_packages/api-v3-work-package-cached-subresource";
+import { APIv3WorkPackageForm } from "core-app/core/apiv3/endpoints/work_packages/apiv3-work-package-form";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { CachableAPIV3Collection } from "core-app/core/apiv3/cache/cachable-apiv3-collection";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { WorkPackageCache } from "core-app/core/apiv3/endpoints/work_packages/work-package.cache";
+import { APIv3GettableResource } from "core-app/core/apiv3/paths/apiv3-resource";
+import { ApiV3WorkPackageCachedSubresource } from "core-app/core/apiv3/endpoints/work_packages/api-v3-work-package-cached-subresource";
+import { ApiV3FilterBuilder, buildApiV3Filter } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+
export class APIV3WorkPackagesPaths extends CachableAPIV3Collection<WorkPackageResource, APIV3WorkPackagePaths, WorkPackageCache> {
// Base path
diff --git a/frontend/src/app/modules/apiv3/endpoints/work_packages/apiv3-work-package-form.ts b/frontend/src/app/core/apiv3/endpoints/work_packages/apiv3-work-package-form.ts
similarity index 80%
rename from frontend/src/app/modules/apiv3/endpoints/work_packages/apiv3-work-package-form.ts
rename to frontend/src/app/core/apiv3/endpoints/work_packages/apiv3-work-package-form.ts
index 6b7d0d85008..f879523e204 100644
--- a/frontend/src/app/modules/apiv3/endpoints/work_packages/apiv3-work-package-form.ts
+++ b/frontend/src/app/core/apiv3/endpoints/work_packages/apiv3-work-package-form.ts
@@ -1,7 +1,7 @@
-import { APIv3FormResource } from "core-app/modules/apiv3/forms/apiv3-form-resource";
-import { FormResource } from "core-app/modules/hal/resources/form-resource";
+import { APIv3FormResource } from "core-app/core/apiv3/forms/apiv3-form-resource";
+import { FormResource } from "core-app/features/hal/resources/form-resource";
import { Observable } from "rxjs";
-import { HalSource } from "core-app/modules/hal/resources/hal-resource";
+import { HalSource } from "core-app/features/hal/resources/hal-resource";
export class APIv3WorkPackageForm extends APIv3FormResource {
/**
diff --git a/frontend/src/app/modules/apiv3/endpoints/work_packages/work-package-cache.spec.ts b/frontend/src/app/core/apiv3/endpoints/work_packages/work-package-cache.spec.ts
similarity index 72%
rename from frontend/src/app/modules/apiv3/endpoints/work_packages/work-package-cache.spec.ts
rename to frontend/src/app/core/apiv3/endpoints/work_packages/work-package-cache.spec.ts
index 87172b0b8d0..f2e3514678f 100644
--- a/frontend/src/app/modules/apiv3/endpoints/work_packages/work-package-cache.spec.ts
+++ b/frontend/src/app/core/apiv3/endpoints/work_packages/work-package-cache.spec.ts
@@ -28,23 +28,23 @@
import { Injector } from '@angular/core';
import { TestBed } from '@angular/core/testing';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { NotificationsService } from 'core-app/modules/common/notifications/notifications.service';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { OpenprojectHalModule } from 'core-app/modules/hal/openproject-hal.module';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
-import { OpenProjectFileUploadService } from 'core-components/api/op-file-upload/op-file-upload.service';
-import { OpenProjectDirectFileUploadService } from "core-components/api/op-file-upload/op-direct-file-upload.service";
-import { SchemaCacheService } from 'core-components/schemas/schema-cache.service';
-import { States } from 'core-components/states.service';
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { NotificationsService } from 'core-app/shared/components/notifications/notifications.service';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { SchemaCacheService } from 'core-app/core/schemas/schema-cache.service';
+import { States } from 'core-app/core/states/states.service';
import { take, takeWhile } from 'rxjs/operators';
-import { WorkPackagesActivityService } from "core-components/wp-single-view-tabs/activity-panel/wp-activity.service";
-import { TimezoneService } from "core-components/datetime/timezone.service";
-import { ConfigurationService } from "core-app/modules/common/config/configuration.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { WorkPackageCache } from "core-app/modules/apiv3/endpoints/work_packages/work-package.cache";
+import { WorkPackagesActivityService } from "core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service";
+import { ConfigurationService } from "core-app/core/config/configuration.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { WorkPackageCache } from "core-app/core/apiv3/endpoints/work_packages/work-package.cache";
+import { OpenProjectFileUploadService } from "core-app/core/file-upload/op-file-upload.service";
+import { OpenProjectDirectFileUploadService } from "core-app/core/file-upload/op-direct-file-upload.service";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { OpenprojectHalModule } from "core-app/features/hal/openproject-hal.module";
describe('WorkPackageCache', () => {
let injector:Injector;
diff --git a/frontend/src/app/modules/apiv3/endpoints/work_packages/work-package.cache.ts b/frontend/src/app/core/apiv3/endpoints/work_packages/work-package.cache.ts
similarity index 87%
rename from frontend/src/app/modules/apiv3/endpoints/work_packages/work-package.cache.ts
rename to frontend/src/app/core/apiv3/endpoints/work_packages/work-package.cache.ts
index 71631158ca6..840dd726a14 100644
--- a/frontend/src/app/modules/apiv3/endpoints/work_packages/work-package.cache.ts
+++ b/frontend/src/app/core/apiv3/endpoints/work_packages/work-package.cache.ts
@@ -27,12 +27,12 @@
//++
import { MultiInputState } from 'reactivestates';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { Injectable, Injector } from '@angular/core';
-import { debugLog } from "core-app/helpers/debug_output";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
+import { debugLog } from "core-app/shared/helpers/debug_output";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
@Injectable()
export class WorkPackageCache extends StateCacheService<WorkPackageResource> {
diff --git a/frontend/src/app/modules/apiv3/forms/apiv3-form-resource.ts b/frontend/src/app/core/apiv3/forms/apiv3-form-resource.ts
similarity index 69%
rename from frontend/src/app/modules/apiv3/forms/apiv3-form-resource.ts
rename to frontend/src/app/core/apiv3/forms/apiv3-form-resource.ts
index 6a69d128290..87919433919 100644
--- a/frontend/src/app/modules/apiv3/forms/apiv3-form-resource.ts
+++ b/frontend/src/app/core/apiv3/forms/apiv3-form-resource.ts
@@ -1,8 +1,8 @@
-import { APIv3ResourcePath } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { FormResource } from "core-app/modules/hal/resources/form-resource";
+import { APIv3ResourcePath } from "core-app/core/apiv3/paths/apiv3-resource";
+import { FormResource } from "core-app/features/hal/resources/form-resource";
import { Observable } from "rxjs";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
-import { HalPayloadHelper } from "core-app/modules/hal/schemas/hal-payload.helper";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { HalPayloadHelper } from "core-app/features/hal/schemas/hal-payload.helper";
export class APIv3FormResource<T extends FormResource = FormResource> extends APIv3ResourcePath<T> {
/**
diff --git a/frontend/src/app/modules/apiv3/openproject-api-v3.module.ts b/frontend/src/app/core/apiv3/openproject-api-v3.module.ts
similarity index 87%
rename from frontend/src/app/modules/apiv3/openproject-api-v3.module.ts
rename to frontend/src/app/core/apiv3/openproject-api-v3.module.ts
index 6ce7f5c2223..d20328dec36 100644
--- a/frontend/src/app/modules/apiv3/openproject-api-v3.module.ts
+++ b/frontend/src/app/core/apiv3/openproject-api-v3.module.ts
@@ -26,14 +26,14 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { OpenprojectCommonModule } from 'core-app/modules/common/openproject-common.module';
+import { OPSharedModule } from 'core-app/shared/shared.module';
import { NgModule } from '@angular/core';
-import { OpenprojectHalModule } from "core-app/modules/hal/openproject-hal.module";
+import { OpenprojectHalModule } from "core-app/features/hal/openproject-hal.module";
@NgModule({
imports: [
// Commons
- OpenprojectCommonModule,
+ OPSharedModule,
OpenprojectHalModule,
]
})
diff --git a/frontend/src/app/modules/apiv3/paths/apiv3-list-resource.interface.ts b/frontend/src/app/core/apiv3/paths/apiv3-list-resource.interface.ts
similarity index 92%
rename from frontend/src/app/modules/apiv3/paths/apiv3-list-resource.interface.ts
rename to frontend/src/app/core/apiv3/paths/apiv3-list-resource.interface.ts
index 9d2fa643121..abffb680f27 100644
--- a/frontend/src/app/modules/apiv3/paths/apiv3-list-resource.interface.ts
+++ b/frontend/src/app/core/apiv3/paths/apiv3-list-resource.interface.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
-import { ApiV3FilterBuilder, FilterOperator } from "core-components/api/api-v3/api-v3-filter-builder";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
import { Observable } from "rxjs";
+import { ApiV3FilterBuilder, FilterOperator } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
export type ApiV3ListFilter = [string, FilterOperator, string[]];
diff --git a/frontend/src/app/modules/apiv3/paths/apiv3-resource.ts b/frontend/src/app/core/apiv3/paths/apiv3-resource.ts
similarity index 88%
rename from frontend/src/app/modules/apiv3/paths/apiv3-resource.ts
rename to frontend/src/app/core/apiv3/paths/apiv3-resource.ts
index 57f8d294585..da12342c568 100644
--- a/frontend/src/app/modules/apiv3/paths/apiv3-resource.ts
+++ b/frontend/src/app/core/apiv3/paths/apiv3-resource.ts
@@ -1,11 +1,11 @@
import { Constructor } from "@angular/cdk/table";
-import { SimpleResource, SimpleResourceCollection } from "core-app/modules/apiv3/paths/path-resources";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { ApiV3FilterBuilder } from "core-components/api/api-v3/api-v3-filter-builder";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { SimpleResource, SimpleResourceCollection } from "core-app/core/apiv3/paths/path-resources";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
import { Observable } from "rxjs";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { ApiV3FilterBuilder } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export class APIv3ResourcePath<T = HalResource> extends SimpleResource {
readonly injector = this.apiRoot.injector;
diff --git a/frontend/src/app/modules/apiv3/paths/path-resources.ts b/frontend/src/app/core/apiv3/paths/path-resources.ts
similarity index 94%
rename from frontend/src/app/modules/apiv3/paths/path-resources.ts
rename to frontend/src/app/core/apiv3/paths/path-resources.ts
index 4fbcb337307..f248bc16449 100644
--- a/frontend/src/app/modules/apiv3/paths/path-resources.ts
+++ b/frontend/src/app/core/apiv3/paths/path-resources.ts
@@ -1,4 +1,3 @@
-import { ApiV3FilterBuilder } from "core-components/api/api-v3/api-v3-filter-builder";
import { Constructor } from "@angular/cdk/table";
/**
diff --git a/frontend/src/app/modules/apiv3/virtual/apiv3-board-path.ts b/frontend/src/app/core/apiv3/virtual/apiv3-board-path.ts
similarity index 87%
rename from frontend/src/app/modules/apiv3/virtual/apiv3-board-path.ts
rename to frontend/src/app/core/apiv3/virtual/apiv3-board-path.ts
index 466182d8cce..257e04596a7 100644
--- a/frontend/src/app/modules/apiv3/virtual/apiv3-board-path.ts
+++ b/frontend/src/app/core/apiv3/virtual/apiv3-board-path.ts
@@ -26,14 +26,14 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { Board } from "core-app/modules/boards/board/board";
+import { Board } from "core-app/features/boards/board/board";
import { Observable } from "rxjs";
import { map, switchMap, tap } from "rxjs/operators";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
-import { CachableAPIV3Resource } from "core-app/modules/apiv3/cache/cachable-apiv3-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { CachableAPIV3Resource } from "core-app/core/apiv3/cache/cachable-apiv3-resource";
import { MultiInputState } from "reactivestates";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
-import { Apiv3BoardsPaths } from "core-app/modules/apiv3/virtual/apiv3-boards-paths";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
+import { Apiv3BoardsPaths } from "core-app/core/apiv3/virtual/apiv3-boards-paths";
export class APIv3BoardPath extends CachableAPIV3Resource<Board> {
diff --git a/frontend/src/app/modules/apiv3/virtual/apiv3-boards-paths.ts b/frontend/src/app/core/apiv3/virtual/apiv3-boards-paths.ts
similarity index 80%
rename from frontend/src/app/modules/apiv3/virtual/apiv3-boards-paths.ts
rename to frontend/src/app/core/apiv3/virtual/apiv3-boards-paths.ts
index 5e57a178562..448525cdf8a 100644
--- a/frontend/src/app/modules/apiv3/virtual/apiv3-boards-paths.ts
+++ b/frontend/src/app/core/apiv3/virtual/apiv3-boards-paths.ts
@@ -27,21 +27,21 @@
//++
import { Constructor } from "@angular/cdk/table";
-import { GridResource } from "core-app/modules/hal/resources/grid-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { GridResource } from "core-app/features/hal/resources/grid-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { Observable } from "rxjs";
-import { Apiv3ListParameters, listParamsString } from "core-app/modules/apiv3/paths/apiv3-list-resource.interface";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
-import { Board, BoardType } from "core-app/modules/boards/board/board";
+import { Apiv3ListParameters, listParamsString } from "core-app/core/apiv3/paths/apiv3-list-resource.interface";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { Board, BoardType } from "core-app/features/boards/board/board";
import { map, switchMap, tap } from "rxjs/operators";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { AuthorisationService } from "core-app/modules/common/model-auth/model-auth.service";
-import { CachableAPIV3Collection } from "core-app/modules/apiv3/cache/cachable-apiv3-collection";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { AuthorisationService } from "core-app/core/model-auth/model-auth.service";
+import { CachableAPIV3Collection } from "core-app/core/apiv3/cache/cachable-apiv3-collection";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
import { MultiInputState } from "reactivestates";
-import { APIv3BoardPath } from "core-app/modules/apiv3/virtual/apiv3-board-path";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
+import { APIv3BoardPath } from "core-app/core/apiv3/virtual/apiv3-board-path";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
export class Apiv3BoardsPaths extends CachableAPIV3Collection<Board, APIv3BoardPath> {
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/admin_users.js b/frontend/src/app/core/augmenting/dynamic-scripts/admin_users.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/admin_users.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/admin_users.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/administration_settings.js b/frontend/src/app/core/augmenting/dynamic-scripts/administration_settings.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/administration_settings.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/administration_settings.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/backlogs.js b/frontend/src/app/core/augmenting/dynamic-scripts/backlogs.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/backlogs.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/backlogs.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/backlog.js b/frontend/src/app/core/augmenting/dynamic-scripts/backlogs/backlog.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/backlog.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/backlogs/backlog.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/burndown.js b/frontend/src/app/core/augmenting/dynamic-scripts/backlogs/burndown.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/burndown.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/backlogs/burndown.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/common.js b/frontend/src/app/core/augmenting/dynamic-scripts/backlogs/common.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/common.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/backlogs/common.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/editable_inplace.js b/frontend/src/app/core/augmenting/dynamic-scripts/backlogs/editable_inplace.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/editable_inplace.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/backlogs/editable_inplace.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/impediment.js b/frontend/src/app/core/augmenting/dynamic-scripts/backlogs/impediment.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/impediment.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/backlogs/impediment.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/master_backlog.js b/frontend/src/app/core/augmenting/dynamic-scripts/backlogs/master_backlog.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/master_backlog.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/backlogs/master_backlog.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/model.js b/frontend/src/app/core/augmenting/dynamic-scripts/backlogs/model.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/model.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/backlogs/model.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/show_main.js b/frontend/src/app/core/augmenting/dynamic-scripts/backlogs/show_main.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/show_main.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/backlogs/show_main.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/sprint.js b/frontend/src/app/core/augmenting/dynamic-scripts/backlogs/sprint.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/sprint.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/backlogs/sprint.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/story.js b/frontend/src/app/core/augmenting/dynamic-scripts/backlogs/story.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/story.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/backlogs/story.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/task.js b/frontend/src/app/core/augmenting/dynamic-scripts/backlogs/task.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/task.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/backlogs/task.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/taskboard.js b/frontend/src/app/core/augmenting/dynamic-scripts/backlogs/taskboard.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/taskboard.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/backlogs/taskboard.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/work_package.js b/frontend/src/app/core/augmenting/dynamic-scripts/backlogs/work_package.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/backlogs/work_package.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/backlogs/work_package.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/custom_fields.js b/frontend/src/app/core/augmenting/dynamic-scripts/custom_fields.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/custom_fields.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/custom_fields.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/forums.js b/frontend/src/app/core/augmenting/dynamic-scripts/forums.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/forums.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/forums.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/global_roles.ts b/frontend/src/app/core/augmenting/dynamic-scripts/global_roles.ts
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/global_roles.ts
rename to frontend/src/app/core/augmenting/dynamic-scripts/global_roles.ts
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/meeting.js b/frontend/src/app/core/augmenting/dynamic-scripts/meeting.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/meeting.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/meeting.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/members_form.js b/frontend/src/app/core/augmenting/dynamic-scripts/members_form.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/members_form.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/members_form.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/new_user.js b/frontend/src/app/core/augmenting/dynamic-scripts/new_user.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/new_user.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/new_user.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/project.js b/frontend/src/app/core/augmenting/dynamic-scripts/project.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/project.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/project.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/project_form_listener.js b/frontend/src/app/core/augmenting/dynamic-scripts/project_form_listener.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/project_form_listener.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/project_form_listener.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/repository_navigation.js b/frontend/src/app/core/augmenting/dynamic-scripts/repository_navigation.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/repository_navigation.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/repository_navigation.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/repository_settings.js b/frontend/src/app/core/augmenting/dynamic-scripts/repository_settings.js
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/repository_settings.js
rename to frontend/src/app/core/augmenting/dynamic-scripts/repository_settings.js
diff --git a/frontend/src/app/modules/augmenting/dynamic-scripts/two_factor_authentication.ts b/frontend/src/app/core/augmenting/dynamic-scripts/two_factor_authentication.ts
similarity index 100%
rename from frontend/src/app/modules/augmenting/dynamic-scripts/two_factor_authentication.ts
rename to frontend/src/app/core/augmenting/dynamic-scripts/two_factor_authentication.ts
diff --git a/frontend/src/app/modules/augmenting/openproject-augmenting.module.ts b/frontend/src/app/core/augmenting/openproject-augmenting.module.ts
similarity index 84%
rename from frontend/src/app/modules/augmenting/openproject-augmenting.module.ts
rename to frontend/src/app/core/augmenting/openproject-augmenting.module.ts
index 5a84425096f..b17da2fc834 100644
--- a/frontend/src/app/modules/augmenting/openproject-augmenting.module.ts
+++ b/frontend/src/app/core/augmenting/openproject-augmenting.module.ts
@@ -27,9 +27,9 @@
//++
import { NgModule } from '@angular/core';
-import { OpenprojectModalModule } from "core-app/modules/modal/modal.module";
-import { OpModalWrapperAugmentService } from "core-app/modules/modal/modal-wrapper-augment.service";
-import { PathScriptAugmentService } from "core-app/modules/augmenting/services/path-script.augment.service";
+import { OpenprojectModalModule } from "core-app/shared/components/modal/modal.module";
+import { OpModalWrapperAugmentService } from "core-app/shared/components/modal/modal-wrapper-augment.service";
+import { PathScriptAugmentService } from "core-app/core/augmenting/services/path-script.augment.service";
@NgModule({
imports: [ OpenprojectModalModule ],
diff --git a/frontend/src/app/modules/augmenting/services/path-script.augment.service.ts b/frontend/src/app/core/augmenting/services/path-script.augment.service.ts
similarity index 97%
rename from frontend/src/app/modules/augmenting/services/path-script.augment.service.ts
rename to frontend/src/app/core/augmenting/services/path-script.augment.service.ts
index cf04bc6afdc..29911c99cc3 100644
--- a/frontend/src/app/modules/augmenting/services/path-script.augment.service.ts
+++ b/frontend/src/app/core/augmenting/services/path-script.augment.service.ts
@@ -29,7 +29,7 @@
import { Inject, Injectable } from "@angular/core";
import { DOCUMENT } from "@angular/common";
-import { debugLog } from "core-app/helpers/debug_output";
+import { debugLog } from "core-app/shared/helpers/debug_output";
@Injectable({ providedIn: 'root' })
export class PathScriptAugmentService {
diff --git a/frontend/src/app/components/api/op-backup/op-backup.service.ts b/frontend/src/app/core/backup/op-backup.service.ts
similarity index 88%
rename from frontend/src/app/components/api/op-backup/op-backup.service.ts
rename to frontend/src/app/core/backup/op-backup.service.ts
index 17c030e02f0..f624aa02a07 100644
--- a/frontend/src/app/components/api/op-backup/op-backup.service.ts
+++ b/frontend/src/app/core/backup/op-backup.service.ts
@@ -27,10 +27,10 @@
//++
import {Injectable} from "@angular/core";
-import {HttpClient, HttpEvent, HttpEventType, HttpResponse} from "@angular/common/http";
-import {HalResource} from "core-app/modules/hal/resources/hal-resource";
+import {HttpClient} from "@angular/common/http";
+import {HalResource} from "core-app/features/hal/resources/hal-resource";
import {Observable} from "rxjs";
-import {HalResourceService} from "core-app/modules/hal/services/hal-resource.service";
+import {HalResourceService} from "core-app/features/hal/services/hal-resource.service";
@Injectable({ providedIn: 'root' })
export class OpenProjectBackupService {
diff --git a/frontend/src/app/modules/common/browser/browser-detector.service.ts b/frontend/src/app/core/browser/browser-detector.service.ts
similarity index 100%
rename from frontend/src/app/modules/common/browser/browser-detector.service.ts
rename to frontend/src/app/core/browser/browser-detector.service.ts
diff --git a/frontend/src/app/modules/common/browser/device.service.ts b/frontend/src/app/core/browser/device.service.ts
similarity index 100%
rename from frontend/src/app/modules/common/browser/device.service.ts
rename to frontend/src/app/core/browser/device.service.ts
diff --git a/frontend/src/app/modules/common/config/configuration.service.ts b/frontend/src/app/core/config/configuration.service.ts
similarity index 93%
rename from frontend/src/app/modules/common/config/configuration.service.ts
rename to frontend/src/app/core/config/configuration.service.ts
index 6bc80b9af9a..e9a7353630c 100644
--- a/frontend/src/app/modules/common/config/configuration.service.ts
+++ b/frontend/src/app/core/config/configuration.service.ts
@@ -25,12 +25,11 @@
//
// See docs/COPYRIGHT.rdoc for more details.
//++
-
import { Injectable } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { ConfigurationResource } from "core-app/modules/hal/resources/configuration-resource";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { ConfigurationResource } from "core-app/features/hal/resources/configuration-resource";
import * as moment from "moment";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Injectable({ providedIn: 'root' })
export class ConfigurationService {
diff --git a/frontend/src/app/components/projects/current-project.service.spec.ts b/frontend/src/app/core/current-project/current-project.service.spec.ts
similarity index 96%
rename from frontend/src/app/components/projects/current-project.service.spec.ts
rename to frontend/src/app/core/current-project/current-project.service.spec.ts
index 742cc069c6d..b0c12c3c238 100644
--- a/frontend/src/app/components/projects/current-project.service.spec.ts
+++ b/frontend/src/app/core/current-project/current-project.service.spec.ts
@@ -29,7 +29,7 @@
/*jshint expr: true*/
import { CurrentProjectService } from './current-project.service';
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
describe('currentProject service', function() {
let element:JQuery;
diff --git a/frontend/src/app/components/projects/current-project.service.ts b/frontend/src/app/core/current-project/current-project.service.ts
similarity index 94%
rename from frontend/src/app/components/projects/current-project.service.ts
rename to frontend/src/app/core/current-project/current-project.service.ts
index bd5500246f8..ebc872d1adb 100644
--- a/frontend/src/app/components/projects/current-project.service.ts
+++ b/frontend/src/app/core/current-project/current-project.service.ts
@@ -27,8 +27,8 @@
//++
import { Injectable } from "@angular/core";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Injectable({ providedIn: 'root' })
export class CurrentProjectService {
diff --git a/frontend/src/app/modules/current-user/current-user.module.ts b/frontend/src/app/core/current-user/current-user.module.ts
similarity index 85%
rename from frontend/src/app/modules/current-user/current-user.module.ts
rename to frontend/src/app/core/current-user/current-user.module.ts
index 5c66df0d292..86a404e441f 100644
--- a/frontend/src/app/modules/current-user/current-user.module.ts
+++ b/frontend/src/app/core/current-user/current-user.module.ts
@@ -1,6 +1,6 @@
import { Injector, NgModule } from "@angular/core";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
-import { CapabilityResource } from "core-app/modules/hal/resources/capability-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { CapabilityResource } from "core-app/features/hal/resources/capability-resource";
import { CurrentUserService } from "./current-user.service";
import { CurrentUserStore } from "./current-user.store";
diff --git a/frontend/src/app/modules/current-user/current-user.query.ts b/frontend/src/app/core/current-user/current-user.query.ts
similarity index 87%
rename from frontend/src/app/modules/current-user/current-user.query.ts
rename to frontend/src/app/core/current-user/current-user.query.ts
index b022a6217ff..698d17edf37 100644
--- a/frontend/src/app/modules/current-user/current-user.query.ts
+++ b/frontend/src/app/core/current-user/current-user.query.ts
@@ -7,7 +7,7 @@ import {
CurrentUserState,
CurrentUser,
} from './current-user.store';
-import { CapabilityResource } from "core-app/modules/hal/resources/capability-resource";
+import { CapabilityResource } from "core-app/features/hal/resources/capability-resource";
@Injectable()
export class CurrentUserQuery extends Query<CurrentUserState> {
diff --git a/frontend/src/app/modules/current-user/current-user.service.spec.ts b/frontend/src/app/core/current-user/current-user.service.spec.ts
similarity index 96%
rename from frontend/src/app/modules/current-user/current-user.service.spec.ts
rename to frontend/src/app/core/current-user/current-user.service.spec.ts
index 9e5408bae3c..f3577c24c66 100644
--- a/frontend/src/app/modules/current-user/current-user.service.spec.ts
+++ b/frontend/src/app/core/current-user/current-user.service.spec.ts
@@ -30,9 +30,9 @@
import { TestBed, getTestBed } from '@angular/core/testing';
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
-import { States } from "core-components/states.service";
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
+import { States } from "core-app/core/states/states.service";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
import { CurrentUserService } from './current-user.service';
import { CurrentUserStore } from "./current-user.store";
import { CurrentUserQuery } from "./current-user.query";
diff --git a/frontend/src/app/modules/current-user/current-user.service.ts b/frontend/src/app/core/current-user/current-user.service.ts
similarity index 95%
rename from frontend/src/app/modules/current-user/current-user.service.ts
rename to frontend/src/app/core/current-user/current-user.service.ts
index d38189ab1e1..b28afce3d11 100644
--- a/frontend/src/app/modules/current-user/current-user.service.ts
+++ b/frontend/src/app/core/current-user/current-user.service.ts
@@ -29,12 +29,12 @@
import { Injectable } from "@angular/core";
import { of, forkJoin } from 'rxjs';
import { take, map, mergeMap, distinctUntilChanged, tap } from 'rxjs/operators';
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { FilterOperator } from 'core-components/api/api-v3/api-v3-filter-builder';
-import { CapabilityResource } from "core-app/modules/hal/resources/capability-resource";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { CapabilityResource } from "core-app/features/hal/resources/capability-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
import { CurrentUserStore, CurrentUser } from "./current-user.store";
import { CurrentUserQuery } from "./current-user.query";
+import { FilterOperator } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
@Injectable({ providedIn: 'root' })
export class CurrentUserService {
diff --git a/frontend/src/app/modules/current-user/current-user.store.ts b/frontend/src/app/core/current-user/current-user.store.ts
similarity index 95%
rename from frontend/src/app/modules/current-user/current-user.store.ts
rename to frontend/src/app/core/current-user/current-user.store.ts
index a82028051c4..c01253b11fa 100644
--- a/frontend/src/app/modules/current-user/current-user.store.ts
+++ b/frontend/src/app/core/current-user/current-user.store.ts
@@ -28,7 +28,7 @@
import { Injectable } from "@angular/core";
import { Store, StoreConfig } from '@datorama/akita';
-import { CapabilityResource } from "core-app/modules/hal/resources/capability-resource";
+import { CapabilityResource } from "core-app/features/hal/resources/capability-resource";
export interface CurrentUser {
id: string|null;
diff --git a/frontend/src/app/components/datetime/timezone.service.spec.ts b/frontend/src/app/core/datetime/timezone.service.spec.ts
similarity index 90%
rename from frontend/src/app/components/datetime/timezone.service.spec.ts
rename to frontend/src/app/core/datetime/timezone.service.spec.ts
index 07f250f8e63..2567486b75a 100644
--- a/frontend/src/app/components/datetime/timezone.service.spec.ts
+++ b/frontend/src/app/core/datetime/timezone.service.spec.ts
@@ -30,10 +30,10 @@
import { TestBed } from '@angular/core/testing';
import { HttpClientModule } from '@angular/common/http';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
-import { TimezoneService } from 'core-components/datetime/timezone.service';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
+import { TimezoneService } from 'core-app/core/datetime/timezone.service';
describe('TimezoneService', function () {
diff --git a/frontend/src/app/components/datetime/timezone.service.ts b/frontend/src/app/core/datetime/timezone.service.ts
similarity index 97%
rename from frontend/src/app/components/datetime/timezone.service.ts
rename to frontend/src/app/core/datetime/timezone.service.ts
index 3418dbc90a6..a6d478c1d49 100644
--- a/frontend/src/app/components/datetime/timezone.service.ts
+++ b/frontend/src/app/core/datetime/timezone.service.ts
@@ -27,8 +27,8 @@
//++
import { Injectable } from '@angular/core';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
import * as moment from 'moment-timezone';
import { Moment } from 'moment';
diff --git a/frontend/src/app/modules/common/enterprise/banners.service.ts b/frontend/src/app/core/enterprise/banners.service.ts
similarity index 96%
rename from frontend/src/app/modules/common/enterprise/banners.service.ts
rename to frontend/src/app/core/enterprise/banners.service.ts
index 7bad02927cd..00093c9905a 100644
--- a/frontend/src/app/modules/common/enterprise/banners.service.ts
+++ b/frontend/src/app/core/enterprise/banners.service.ts
@@ -28,7 +28,7 @@
import {Inject, Injectable} from '@angular/core';
import {DOCUMENT} from "@angular/common";
-import {enterpriseEditionUrl} from "core-app/globals/constants.const";
+import {enterpriseEditionUrl} from "core-app/core/setup/globals/constants.const";
@Injectable({ providedIn: 'root' })
export class BannersService {
diff --git a/frontend/src/app/sentry/sentry-dependency.ts b/frontend/src/app/core/errors/sentry/sentry-dependency.ts
similarity index 100%
rename from frontend/src/app/sentry/sentry-dependency.ts
rename to frontend/src/app/core/errors/sentry/sentry-dependency.ts
diff --git a/frontend/src/app/sentry/sentry-reporter.ts b/frontend/src/app/core/errors/sentry/sentry-reporter.ts
similarity index 98%
rename from frontend/src/app/sentry/sentry-reporter.ts
rename to frontend/src/app/core/errors/sentry/sentry-reporter.ts
index a55c7a69af1..92a0036d4c2 100644
--- a/frontend/src/app/sentry/sentry-reporter.ts
+++ b/frontend/src/app/core/errors/sentry/sentry-reporter.ts
@@ -27,7 +27,7 @@
//++
import { Hub, Severity, Scope, Event as SentryEvent } from "@sentry/types";
-import { environment } from "../../environments/environment";
+import { environment } from "../../../../environments/environment";
export type ScopeCallback = (scope:Scope) => void;
export type MessageSeverity = 'fatal'|'error'|'warning'|'log'|'info'|'debug';
diff --git a/frontend/common/expression.service.ts b/frontend/src/app/core/expression/expression.service.ts
similarity index 100%
rename from frontend/common/expression.service.ts
rename to frontend/src/app/core/expression/expression.service.ts
diff --git a/frontend/src/app/components/api/op-file-upload/op-direct-file-upload.service.ts b/frontend/src/app/core/file-upload/op-direct-file-upload.service.ts
similarity index 98%
rename from frontend/src/app/components/api/op-file-upload/op-direct-file-upload.service.ts
rename to frontend/src/app/core/file-upload/op-direct-file-upload.service.ts
index 636e4c28620..5b643982902 100644
--- a/frontend/src/app/components/api/op-file-upload/op-direct-file-upload.service.ts
+++ b/frontend/src/app/core/file-upload/op-direct-file-upload.service.ts
@@ -28,10 +28,10 @@
import { Injectable } from "@angular/core";
import { HttpEvent, HttpResponse } from "@angular/common/http";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
import { from, Observable, of } from "rxjs";
import { share, switchMap } from "rxjs/operators";
import { OpenProjectFileUploadService, UploadBlob, UploadFile, UploadInProgress } from './op-file-upload.service';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
interface PrepareUploadResult {
url:string;
diff --git a/frontend/src/app/components/api/op-file-upload/op-file-upload.service.spec.ts b/frontend/src/app/core/file-upload/op-file-upload.service.spec.ts
similarity index 89%
rename from frontend/src/app/components/api/op-file-upload/op-file-upload.service.spec.ts
rename to frontend/src/app/core/file-upload/op-file-upload.service.spec.ts
index d78380af6fe..a5d2fc4f9a4 100644
--- a/frontend/src/app/components/api/op-file-upload/op-file-upload.service.spec.ts
+++ b/frontend/src/app/core/file-upload/op-file-upload.service.spec.ts
@@ -27,12 +27,12 @@
//++
import { OpenProjectFileUploadService, UploadFile, UploadResult } from './op-file-upload.service';
-import { OpenProjectDirectFileUploadService } from "core-components/api/op-file-upload/op-direct-file-upload.service";
+import { OpenProjectDirectFileUploadService } from "core-app/core/file-upload/op-direct-file-upload.service";
import { HttpClientTestingModule, HttpTestingController } from "@angular/common/http/testing";
import { getTestBed, TestBed } from "@angular/core/testing";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { States } from "core-components/states.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { States } from "core-app/core/states/states.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
describe('opFileUpload service', () => {
let injector:TestBed;
diff --git a/frontend/src/app/components/api/op-file-upload/op-file-upload.service.ts b/frontend/src/app/core/file-upload/op-file-upload.service.ts
similarity index 96%
rename from frontend/src/app/components/api/op-file-upload/op-file-upload.service.ts
rename to frontend/src/app/core/file-upload/op-file-upload.service.ts
index 91c78a7b4df..7cec71fc1a9 100644
--- a/frontend/src/app/components/api/op-file-upload/op-file-upload.service.ts
+++ b/frontend/src/app/core/file-upload/op-file-upload.service.ts
@@ -28,10 +28,10 @@
import { Injectable } from "@angular/core";
import { HttpClient, HttpEvent, HttpEventType, HttpResponse } from "@angular/common/http";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
import { Observable } from "rxjs";
import { filter, map, share } from "rxjs/operators";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export interface UploadFile extends File {
description?:string;
diff --git a/frontend/src/app/core/services/forms/forms.service.spec.ts b/frontend/src/app/core/forms/forms.service.spec.ts
similarity index 100%
rename from frontend/src/app/core/services/forms/forms.service.spec.ts
rename to frontend/src/app/core/forms/forms.service.spec.ts
diff --git a/frontend/src/app/core/services/forms/forms.service.ts b/frontend/src/app/core/forms/forms.service.ts
similarity index 100%
rename from frontend/src/app/core/services/forms/forms.service.ts
rename to frontend/src/app/core/forms/forms.service.ts
diff --git a/frontend/src/app/core/services/forms/typings.d.ts b/frontend/src/app/core/forms/typings.d.ts
similarity index 100%
rename from frontend/src/app/core/services/forms/typings.d.ts
rename to frontend/src/app/core/forms/typings.d.ts
diff --git a/frontend/src/app/modules/global_search/global-search-work-packages-entry.component.ts b/frontend/src/app/core/global_search/global-search-work-packages-entry.component.ts
similarity index 100%
rename from frontend/src/app/modules/global_search/global-search-work-packages-entry.component.ts
rename to frontend/src/app/core/global_search/global-search-work-packages-entry.component.ts
diff --git a/frontend/src/app/modules/global_search/global-search-work-packages.component.ts b/frontend/src/app/core/global_search/global-search-work-packages.component.ts
similarity index 81%
rename from frontend/src/app/modules/global_search/global-search-work-packages.component.ts
rename to frontend/src/app/core/global_search/global-search-work-packages.component.ts
index 2c55bb919fb..225c2bb1820 100644
--- a/frontend/src/app/modules/global_search/global-search-work-packages.component.ts
+++ b/frontend/src/app/core/global_search/global-search-work-packages.component.ts
@@ -27,18 +27,18 @@
//++
import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
-import { FocusHelperService } from 'app/modules/focus/focus-helper';
-import { I18nService } from 'app/modules/common/i18n/i18n.service';
-import { HalResourceService } from "app/modules/hal/services/hal-resource.service";
-import { GlobalSearchService } from "core-app/modules/global_search/services/global-search.service";
-import { WorkPackageFiltersService } from "app/components/filters/wp-filters/wp-filters.service";
-import { UrlParamsHelperService } from "app/components/wp-query/url-params-helper";
-import { WorkPackageTableConfigurationObject } from "core-components/wp-table/wp-table-configuration";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { WorkPackageViewFiltersService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service";
+import { FocusHelperService } from 'core-app/shared/directives/focus/focus-helper';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { GlobalSearchService } from "core-app/core/global_search/services/global-search.service";
+import { UrlParamsHelperService } from "core-app/features/work-packages/components/wp-query/url-params-helper";
+import { WorkPackageTableConfigurationObject } from "core-app/features/work-packages/components/wp-table/wp-table-configuration";
+import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';
+import { WorkPackageViewFiltersService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service";
import { debounceTime, distinctUntilChanged, skip } from "rxjs/operators";
import { combineLatest } from "rxjs";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { WorkPackageFiltersService } from "core-app/features/work-packages/components/filters/wp-filters/wp-filters.service";
export const globalSearchWorkPackagesSelector = 'global-search-work-packages';
diff --git a/frontend/src/app/modules/global_search/input/global-search-input-mobile.component.sass b/frontend/src/app/core/global_search/input/global-search-input-mobile.component.sass
similarity index 96%
rename from frontend/src/app/modules/global_search/input/global-search-input-mobile.component.sass
rename to frontend/src/app/core/global_search/input/global-search-input-mobile.component.sass
index 16b8ac1a421..381a7b02e35 100644
--- a/frontend/src/app/modules/global_search/input/global-search-input-mobile.component.sass
+++ b/frontend/src/app/core/global_search/input/global-search-input-mobile.component.sass
@@ -1,4 +1,4 @@
-@import "helpers"
+@import "src/assets/sass/helpers"
$search-input-height-mobile: 36px
diff --git a/frontend/src/app/modules/global_search/input/global-search-input.component.html b/frontend/src/app/core/global_search/input/global-search-input.component.html
similarity index 97%
rename from frontend/src/app/modules/global_search/input/global-search-input.component.html
rename to frontend/src/app/core/global_search/input/global-search-input.component.html
index 86fa0b325eb..1edce6f9ea4 100644
--- a/frontend/src/app/modules/global_search/input/global-search-input.component.html
+++ b/frontend/src/app/core/global_search/input/global-search-input.component.html
@@ -35,7 +35,7 @@
<ng-template op-autocompleter-option-tmp let-item let-index="index" let-search="searchTerm">
<div *ngIf="!item.id; else workPackageItemTemplate">
- <div tabindex="-1" class="global-search--option"(click)="followItem(item)">
+ <div tabindex="-1" class="global-search--option" (click)="followItem(item)">
<div class="global-search--option-wrapper">
<span class="global-search--search-term"> {{currentValue}} </span>
<span class="global-search--project-scope" title="{{item.projectScope}}"> {{item.text}} ↵ </span>
diff --git a/frontend/src/app/modules/global_search/input/global-search-input.component.sass b/frontend/src/app/core/global_search/input/global-search-input.component.sass
similarity index 98%
rename from frontend/src/app/modules/global_search/input/global-search-input.component.sass
rename to frontend/src/app/core/global_search/input/global-search-input.component.sass
index 91dcca6e041..c3a56640a09 100644
--- a/frontend/src/app/modules/global_search/input/global-search-input.component.sass
+++ b/frontend/src/app/core/global_search/input/global-search-input.component.sass
@@ -167,13 +167,13 @@ $search-input-height: 30px
grid-template-areas: "project idlink status"
font-size: 0.8rem
padding: 5px 0 5px 0px
-
+
&--wp-project
grid-area: project
&--wp-id
grid-area: idlink
- place-self: right
+ place-self: right
font-style: italic
&--wp-status
diff --git a/frontend/src/app/modules/global_search/input/global-search-input.component.ts b/frontend/src/app/core/global_search/input/global-search-input.component.ts
similarity index 87%
rename from frontend/src/app/modules/global_search/input/global-search-input.component.ts
rename to frontend/src/app/core/global_search/input/global-search-input.component.ts
index 01d55296823..0feb2e4ea66 100644
--- a/frontend/src/app/modules/global_search/input/global-search-input.component.ts
+++ b/frontend/src/app/core/global_search/input/global-search-input.component.ts
@@ -33,29 +33,26 @@ import {
ElementRef,
HostListener,
OnDestroy,
- OnInit,
ViewChild,
ViewEncapsulation,
NgZone, AfterViewInit
} from '@angular/core';
-import { ContainHelpers } from 'core-app/modules/focus/contain-helpers';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { GlobalSearchService } from "core-app/modules/global_search/services/global-search.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { DeviceService } from "core-app/modules/common/browser/device.service";
-import { NgSelectComponent } from "@ng-select/ng-select";
import { Observable, of } from "rxjs";
-import { Highlighting } from "core-components/wp-fast-table/builders/highlighting/highlighting.functions";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { DebouncedRequestSwitchmap, errorNotificationHandler } from "core-app/helpers/rxjs/debounced-input-switchmap";
-import { LinkHandling } from "core-app/modules/common/link-handling/link-handling";
-import { filter, map, take, tap } from "rxjs/operators";
+import { map, tap } from "rxjs/operators";
import { APIV3Service } from "../../apiv3/api-v3.service";
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { OpAutocompleterComponent } from "core-app/modules/autocompleter/op-autocompleter/op-autocompleter.component";
+import { GlobalSearchService } from "core-app/core/global_search/services/global-search.service";
+import { LinkHandling } from "core-app/shared/helpers/link-handling/link-handling";
+import { Highlighting } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting.functions";
+import { DeviceService } from "core-app/core/browser/device.service";
+import { ContainHelpers } from "core-app/shared/directives/focus/contain-helpers";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { OpAutocompleterComponent } from "core-app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export const globalSearchSelector = 'global-search-input';
@@ -99,7 +96,7 @@ export class GlobalSearchInputComponent implements AfterViewInit, OnDestroy {
resource:'work_packages',
searchKey:'subjectOrId',
getOptionsFn: this.getAutocompleterData
- };
+ };
/** Remember the current value */
public currentValue = '';
@@ -194,7 +191,7 @@ export class GlobalSearchInputComponent implements AfterViewInit, OnDestroy {
// close menu when input field is empty
public openCloseMenu(searchedTerm:string) {
-
+
this.ngSelectComponent.ngSelectInstance.isOpen = (searchedTerm.trim().length > 0);
}
@@ -272,7 +269,7 @@ export class GlobalSearchInputComponent implements AfterViewInit, OnDestroy {
const hashFreeQuery = this.queryWithoutHash(query);
-
+
this.isLoading = true
return this
.fetchSearchResults(hashFreeQuery, hashFreeQuery !== query)
@@ -386,26 +383,26 @@ export class GlobalSearchInputComponent implements AfterViewInit, OnDestroy {
private searchInScope(scope:string) {
switch (scope) {
- case 'all_projects': {
- let forcePageLoad = false;
- if (this.globalSearchService.projectScope !== 'all') {
- forcePageLoad = true;
- this.globalSearchService.resultsHidden = true;
+ case 'all_projects': {
+ let forcePageLoad = false;
+ if (this.globalSearchService.projectScope !== 'all') {
+ forcePageLoad = true;
+ this.globalSearchService.resultsHidden = true;
+ }
+ this.globalSearchService.projectScope = 'all';
+ this.submitNonEmptySearch(forcePageLoad);
+ break;
+ }
+ case 'current_project': {
+ this.globalSearchService.projectScope = 'current_project';
+ this.submitNonEmptySearch();
+ break;
+ }
+ case 'current_project_and_all_descendants': {
+ this.globalSearchService.projectScope = '';
+ this.submitNonEmptySearch();
+ break;
}
- this.globalSearchService.projectScope = 'all';
- this.submitNonEmptySearch(forcePageLoad);
- break;
- }
- case 'current_project': {
- this.globalSearchService.projectScope = 'current_project';
- this.submitNonEmptySearch();
- break;
- }
- case 'current_project_and_all_descendants': {
- this.globalSearchService.projectScope = '';
- this.submitNonEmptySearch();
- break;
- }
}
}
diff --git a/frontend/src/app/modules/global_search/openproject-global-search.module.ts b/frontend/src/app/core/global_search/openproject-global-search.module.ts
similarity index 62%
rename from frontend/src/app/modules/global_search/openproject-global-search.module.ts
rename to frontend/src/app/core/global_search/openproject-global-search.module.ts
index 6b57652b972..a9a639f2547 100644
--- a/frontend/src/app/modules/global_search/openproject-global-search.module.ts
+++ b/frontend/src/app/core/global_search/openproject-global-search.module.ts
@@ -27,21 +27,21 @@
//++
import { NgModule } from '@angular/core';
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
-import { OpenprojectWorkPackagesModule } from "core-app/modules/work_packages/openproject-work-packages.module";
-import { GlobalSearchInputComponent } from "core-app/modules/global_search/input/global-search-input.component";
-import { GlobalSearchWorkPackagesComponent } from "core-app/modules/global_search/global-search-work-packages.component";
-import { GlobalSearchTabsComponent } from "core-app/modules/global_search/tabs/global-search-tabs.component";
-import { GlobalSearchTitleComponent } from "core-app/modules/global_search/title/global-search-title.component";
-import { GlobalSearchService } from "core-app/modules/global_search/services/global-search.service";
-import { GlobalSearchWorkPackagesEntryComponent } from "core-app/modules/global_search/global-search-work-packages-entry.component";
-import { OpenprojectAutocompleterModule } from "core-app/modules/autocompleter/openproject-autocompleter.module";
+import { OpenprojectWorkPackagesModule } from "core-app/features/work-packages/openproject-work-packages.module";
+import { GlobalSearchInputComponent } from "core-app/core/global_search/input/global-search-input.component";
+import { GlobalSearchWorkPackagesComponent } from "core-app/core/global_search/global-search-work-packages.component";
+import { GlobalSearchTabsComponent } from "core-app/core/global_search/tabs/global-search-tabs.component";
+import { GlobalSearchTitleComponent } from "core-app/core/global_search/title/global-search-title.component";
+import { GlobalSearchService } from "core-app/core/global_search/services/global-search.service";
+import { GlobalSearchWorkPackagesEntryComponent } from "core-app/core/global_search/global-search-work-packages-entry.component";
+import { OpenprojectAutocompleterModule } from "core-app/shared/components/autocompleter/openproject-autocompleter.module";
+import { OPSharedModule } from "core-app/shared/shared.module";
@NgModule({
imports: [
- OpenprojectCommonModule,
+ OPSharedModule,
OpenprojectWorkPackagesModule,
- OpenprojectAutocompleterModule
+ OpenprojectAutocompleterModule,
],
providers: [
GlobalSearchService,
diff --git a/frontend/src/app/modules/global_search/services/global-search.service.spec.ts b/frontend/src/app/core/global_search/services/global-search.service.spec.ts
similarity index 87%
rename from frontend/src/app/modules/global_search/services/global-search.service.spec.ts
rename to frontend/src/app/core/global_search/services/global-search.service.spec.ts
index e73bb7c013f..465aefa2901 100644
--- a/frontend/src/app/modules/global_search/services/global-search.service.spec.ts
+++ b/frontend/src/app/core/global_search/services/global-search.service.spec.ts
@@ -28,13 +28,13 @@
/*jshint expr: true*/
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { GlobalSearchService } from "core-app/modules/global_search/services/global-search.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { GlobalSearchService } from "core-app/core/global_search/services/global-search.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { TestBed, waitForAsync } from "@angular/core/testing";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { States } from "core-components/states.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { States } from "core-app/core/states/states.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
describe('Global search service', function() {
let service:GlobalSearchService;
diff --git a/frontend/src/app/modules/global_search/services/global-search.service.ts b/frontend/src/app/core/global_search/services/global-search.service.ts
similarity index 95%
rename from frontend/src/app/modules/global_search/services/global-search.service.ts
rename to frontend/src/app/core/global_search/services/global-search.service.ts
index 32db8860ebb..3b9126137cc 100644
--- a/frontend/src/app/modules/global_search/services/global-search.service.ts
+++ b/frontend/src/app/core/global_search/services/global-search.service.ts
@@ -28,10 +28,10 @@
import { Injectable , Injector } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
@Injectable()
export class GlobalSearchService {
diff --git a/frontend/src/app/modules/global_search/tabs/global-search-tabs.component.ts b/frontend/src/app/core/global_search/tabs/global-search-tabs.component.ts
similarity index 86%
rename from frontend/src/app/modules/global_search/tabs/global-search-tabs.component.ts
rename to frontend/src/app/core/global_search/tabs/global-search-tabs.component.ts
index c2166f8df03..6108a7f0d1c 100644
--- a/frontend/src/app/modules/global_search/tabs/global-search-tabs.component.ts
+++ b/frontend/src/app/core/global_search/tabs/global-search-tabs.component.ts
@@ -27,16 +27,16 @@
//++
import { ChangeDetectorRef, Component, OnDestroy } from '@angular/core';
-import { GlobalSearchService } from "core-app/modules/global_search/services/global-search.service";
import { Subscription } from "rxjs";
-import { ScrollableTabsComponent } from "core-app/modules/common/tabs/scrollable-tabs/scrollable-tabs.component";
-import { TabDefinition } from "core-app/modules/common/tabs/tab.interface";
+import { GlobalSearchService } from "core-app/core/global_search/services/global-search.service";
+import { ScrollableTabsComponent } from "core-app/shared/components/tabs/scrollable-tabs/scrollable-tabs.component";
+import { TabDefinition } from "core-app/shared/components/tabs/tab.interface";
export const globalSearchTabsSelector = 'global-search-tabs';
@Component({
selector: globalSearchTabsSelector,
- templateUrl: '../../common/tabs/scrollable-tabs/scrollable-tabs.component.html'
+ templateUrl: '../../../shared/components/tabs/scrollable-tabs/scrollable-tabs.component.html'
})
export class GlobalSearchTabsComponent extends ScrollableTabsComponent implements OnDestroy {
diff --git a/frontend/src/app/modules/global_search/title/global-search-title.component.html b/frontend/src/app/core/global_search/title/global-search-title.component.html
similarity index 100%
rename from frontend/src/app/modules/global_search/title/global-search-title.component.html
rename to frontend/src/app/core/global_search/title/global-search-title.component.html
diff --git a/frontend/src/app/modules/global_search/title/global-search-title.component.ts b/frontend/src/app/core/global_search/title/global-search-title.component.ts
similarity index 89%
rename from frontend/src/app/modules/global_search/title/global-search-title.component.ts
rename to frontend/src/app/core/global_search/title/global-search-title.component.ts
index 8310a6042ca..571efda23be 100644
--- a/frontend/src/app/modules/global_search/title/global-search-title.component.ts
+++ b/frontend/src/app/core/global_search/title/global-search-title.component.ts
@@ -28,11 +28,11 @@
import { ChangeDetectorRef, Component, ElementRef, Injector, Input, OnDestroy } from '@angular/core';
import { distinctUntilChanged } from 'rxjs/operators';
import { combineLatest } from 'rxjs';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { GlobalSearchService } from "core-app/modules/global_search/services/global-search.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { GlobalSearchService } from "core-app/core/global_search/services/global-search.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
export const globalSearchTitleSelector = 'global-search-title';
diff --git a/frontend/src/app/modules/common/gon/gon.service.ts b/frontend/src/app/core/gon/gon.service.ts
similarity index 94%
rename from frontend/src/app/modules/common/gon/gon.service.ts
rename to frontend/src/app/core/gon/gon.service.ts
index 5ba6eca8f86..0a42685d470 100644
--- a/frontend/src/app/modules/common/gon/gon.service.ts
+++ b/frontend/src/app/core/gon/gon.service.ts
@@ -27,7 +27,7 @@
//++
import { Injectable } from "@angular/core";
-import { IFCGonDefinition } from "../../bim/ifc_models/pages/viewer/ifc-models-data.service";
+import { IFCGonDefinition } from "../../features/bim/ifc_models/pages/viewer/ifc-models-data.service";
declare global {
interface Window {
diff --git a/frontend/src/app/modules/common/html-sanitize/html-sanitize.service.ts b/frontend/src/app/core/html-sanitize/html-sanitize.service.ts
similarity index 100%
rename from frontend/src/app/modules/common/html-sanitize/html-sanitize.service.ts
rename to frontend/src/app/core/html-sanitize/html-sanitize.service.ts
diff --git a/frontend/src/app/components/html/op-title.service.ts b/frontend/src/app/core/html/op-title.service.ts
similarity index 100%
rename from frontend/src/app/components/html/op-title.service.ts
rename to frontend/src/app/core/html/op-title.service.ts
diff --git a/frontend/src/app/modules/common/i18n/i18n.service.ts b/frontend/src/app/core/i18n/i18n.service.ts
similarity index 100%
rename from frontend/src/app/modules/common/i18n/i18n.service.ts
rename to frontend/src/app/core/i18n/i18n.service.ts
diff --git a/frontend/src/app/modules/common/loading-indicator/loading-indicator.service.ts b/frontend/src/app/core/loading-indicator/loading-indicator.service.ts
similarity index 100%
rename from frontend/src/app/modules/common/loading-indicator/loading-indicator.service.ts
rename to frontend/src/app/core/loading-indicator/loading-indicator.service.ts
diff --git a/frontend/src/app/components/main-menu/main-menu-navigation.service.ts b/frontend/src/app/core/main-menu/main-menu-navigation.service.ts
similarity index 100%
rename from frontend/src/app/components/main-menu/main-menu-navigation.service.ts
rename to frontend/src/app/core/main-menu/main-menu-navigation.service.ts
diff --git a/frontend/src/app/components/main-menu/main-menu-toggle.component.ts b/frontend/src/app/core/main-menu/main-menu-toggle.component.ts
similarity index 89%
rename from frontend/src/app/components/main-menu/main-menu-toggle.component.ts
rename to frontend/src/app/core/main-menu/main-menu-toggle.component.ts
index 64d66c8341d..28ccb0cc0f5 100644
--- a/frontend/src/app/components/main-menu/main-menu-toggle.component.ts
+++ b/frontend/src/app/core/main-menu/main-menu-toggle.component.ts
@@ -28,10 +28,10 @@
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Injector, OnInit } from '@angular/core';
import { distinctUntilChanged } from 'rxjs/operators';
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { DeviceService } from "app/modules/common/browser/device.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { DeviceService } from "core-app/core/browser/device.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
import { MainMenuToggleService } from './main-menu-toggle.service';
export const mainMenuToggleSelector = 'main-menu-toggle';
@@ -84,3 +84,4 @@ export class MainMenuToggleComponent extends UntilDestroyedMixin implements OnIn
}
}
+
diff --git a/frontend/src/app/components/main-menu/main-menu-toggle.service.ts b/frontend/src/app/core/main-menu/main-menu-toggle.service.ts
similarity index 95%
rename from frontend/src/app/components/main-menu/main-menu-toggle.service.ts
rename to frontend/src/app/core/main-menu/main-menu-toggle.service.ts
index bfde8ba533d..5829558c8e9 100644
--- a/frontend/src/app/components/main-menu/main-menu-toggle.service.ts
+++ b/frontend/src/app/core/main-menu/main-menu-toggle.service.ts
@@ -28,10 +28,10 @@
import { Injectable, Injector } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { DeviceService } from "app/modules/common/browser/device.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { DeviceService } from "core-app/core/browser/device.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
@Injectable({ providedIn: 'root' })
export class MainMenuToggleService {
diff --git a/frontend/src/app/modules/common/model-auth/model-auth.service.spec.ts b/frontend/src/app/core/model-auth/model-auth.service.spec.ts
similarity index 100%
rename from frontend/src/app/modules/common/model-auth/model-auth.service.spec.ts
rename to frontend/src/app/core/model-auth/model-auth.service.spec.ts
diff --git a/frontend/src/app/modules/common/model-auth/model-auth.service.ts b/frontend/src/app/core/model-auth/model-auth.service.ts
similarity index 100%
rename from frontend/src/app/modules/common/model-auth/model-auth.service.ts
rename to frontend/src/app/core/model-auth/model-auth.service.ts
diff --git a/frontend/src/app/modules/common/path-helper/path-helper.service.ts b/frontend/src/app/core/path-helper/path-helper.service.ts
similarity index 97%
rename from frontend/src/app/modules/common/path-helper/path-helper.service.ts
rename to frontend/src/app/core/path-helper/path-helper.service.ts
index cbd1df3cda0..a94ba024719 100644
--- a/frontend/src/app/modules/common/path-helper/path-helper.service.ts
+++ b/frontend/src/app/core/path-helper/path-helper.service.ts
@@ -27,7 +27,7 @@
//++
import { Injectable } from '@angular/core';
-import { ApiV3FilterBuilder } from "core-components/api/api-v3/api-v3-filter-builder";
+import { ApiV3FilterBuilder } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
class Apiv3Paths {
readonly apiV3Base:string;
@@ -39,7 +39,7 @@ class Apiv3Paths {
/**
* Preview markup path
*
- * Primarily used from ckeditor
+ * Primarily used from ckeditor-augmented-textarea
* https://github.com/opf/commonmark-ckeditor-build/
*
* @param context
@@ -57,7 +57,7 @@ class Apiv3Paths {
/**
* Principals autocompleter path
*
- * Primarily used from ckeditor
+ * Primarily used from ckeditor-augmented-textarea
* https://github.com/opf/commonmark-ckeditor-build/
*
*/
diff --git a/frontend/src/app/core/permissions/permissions.service.ts b/frontend/src/app/core/permissions/permissions.service.ts
new file mode 100644
index 00000000000..19ad1cad8b5
--- /dev/null
+++ b/frontend/src/app/core/permissions/permissions.service.ts
@@ -0,0 +1,33 @@
+import { Injectable } from '@angular/core';
+import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';
+import { Observable, of } from 'rxjs';
+import { CurrentProjectService } from 'core-app/core/current-project/current-project.service';
+import { map, catchError } from 'rxjs/operators';
+import { FilterOperator } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+
+@Injectable({
+ providedIn: 'root',
+})
+export class PermissionsService {
+ constructor(
+ private apiV3Service:APIV3Service,
+ private currentProjectService:CurrentProjectService,
+ ) { }
+
+ canInviteUsersToProject(projectId = this.currentProjectService.id!):Observable<boolean> {
+ // TODO: Remove/Fix this typing issue
+ const filters:[string, FilterOperator, string[]][] = [['id', '=', [projectId]]];
+
+ return this.apiV3Service
+ .memberships
+ .available_projects
+ .list({ filters })
+ .pipe(
+ map(collection => !!collection.elements.length),
+ catchError((error) => {
+ console.error(error);
+ return of(false);
+ }),
+ );
+ }
+}
diff --git a/frontend/src/app/modules/router/base/application-base.component.ts b/frontend/src/app/core/routing/base/application-base.component.ts
similarity index 100%
rename from frontend/src/app/modules/router/base/application-base.component.ts
rename to frontend/src/app/core/routing/base/application-base.component.ts
diff --git a/frontend/src/app/modules/router/first-route-service.ts b/frontend/src/app/core/routing/first-route-service.ts
similarity index 100%
rename from frontend/src/app/modules/router/first-route-service.ts
rename to frontend/src/app/core/routing/first-route-service.ts
diff --git a/frontend/src/app/modules/router/openproject-router.module.ts b/frontend/src/app/core/routing/openproject-router.module.ts
similarity index 88%
rename from frontend/src/app/modules/router/openproject-router.module.ts
rename to frontend/src/app/core/routing/openproject-router.module.ts
index 1a8761cecc0..93ff9279716 100644
--- a/frontend/src/app/modules/router/openproject-router.module.ts
+++ b/frontend/src/app/core/routing/openproject-router.module.ts
@@ -27,14 +27,14 @@
//++
import { Injector, NgModule } from '@angular/core';
-import { FirstRouteService } from "core-app/modules/router/first-route-service";
+import { FirstRouteService } from "core-app/core/routing/first-route-service";
import { UIRouterModule } from "@uirouter/angular";
-import { ApplicationBaseComponent } from "core-app/modules/router/base/application-base.component";
+import { ApplicationBaseComponent } from "core-app/core/routing/base/application-base.component";
import {
initializeUiRouterListeners,
OPENPROJECT_ROUTES,
uiRouterConfiguration
-} from "core-app/modules/router/openproject.routes";
+} from "core-app/core/routing/openproject.routes";
@NgModule({
imports: [
diff --git a/frontend/src/app/modules/router/openproject.routes.ts b/frontend/src/app/core/routing/openproject.routes.ts
similarity index 85%
rename from frontend/src/app/modules/router/openproject.routes.ts
rename to frontend/src/app/core/routing/openproject.routes.ts
index 2c0d181d065..909e47f609c 100644
--- a/frontend/src/app/modules/router/openproject.routes.ts
+++ b/frontend/src/app/core/routing/openproject.routes.ts
@@ -27,19 +27,19 @@
//++
import { StateDeclaration, StateService, Transition, TransitionService, UIRouter } from '@uirouter/core';
-import { INotification, NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
+import { INotification, NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
import { Injector } from "@angular/core";
-import { FirstRouteService } from "core-app/modules/router/first-route-service";
+import { FirstRouteService } from "core-app/core/routing/first-route-service";
import { Ng2StateDeclaration, StatesModule } from "@uirouter/angular";
-import { appBaseSelector, ApplicationBaseComponent } from "core-app/modules/router/base/application-base.component";
-import { BackRoutingService } from "core-app/modules/common/back-routing/back-routing.service";
+import { appBaseSelector, ApplicationBaseComponent } from "core-app/core/routing/base/application-base.component";
+import { BackRoutingService } from "core-app/features/work-packages/components/back-routing/back-routing.service";
export const OPENPROJECT_ROUTES:Ng2StateDeclaration[] = [
{
name: 'new_project.**',
url: '/projects/new',
- loadChildren: () => import('../projects/openproject-projects.module').then(m => m.OpenprojectProjectsModule)
+ loadChildren: () => import('../../features/projects/openproject-projects.module').then(m => m.OpenprojectProjectsModule)
},
{
name: 'root',
@@ -60,49 +60,49 @@ export const OPENPROJECT_ROUTES:Ng2StateDeclaration[] = [
name: 'boards.**',
parent: 'root',
url: '/boards',
- loadChildren: () => import('../boards/openproject-boards.module').then(m => m.OpenprojectBoardsModule)
+ loadChildren: () => import('../../features/boards/openproject-boards.module').then(m => m.OpenprojectBoardsModule)
},
{
name: 'bim.**',
parent: 'root',
url: '/bcf',
- loadChildren: () => import('../bim/ifc_models/openproject-ifc-models.module').then(m => m.OpenprojectIFCModelsModule)
+ loadChildren: () => import('../../features/bim/ifc_models/openproject-ifc-models.module').then(m => m.OpenprojectIFCModelsModule)
},
{
name: 'backlogs.**',
parent: 'root',
url: '/backlogs',
- loadChildren: () => import('../backlogs/openproject-backlogs.module').then(m => m.OpenprojectBacklogsModule)
+ loadChildren: () => import('../../features/backlogs/openproject-backlogs.module').then(m => m.OpenprojectBacklogsModule)
},
{
name: 'backlogs_sprint.**',
parent: 'root',
url: '/sprints',
- loadChildren: () => import('../backlogs/openproject-backlogs.module').then(m => m.OpenprojectBacklogsModule)
+ loadChildren: () => import('../../features/backlogs/openproject-backlogs.module').then(m => m.OpenprojectBacklogsModule)
},
{
name: 'reporting.**',
parent: 'root',
url: '/cost_reports',
- loadChildren: () => import('../reporting/openproject-reporting.module').then(m => m.OpenprojectReportingModule)
+ loadChildren: () => import('../../features/reporting/openproject-reporting.module').then(m => m.OpenprojectReportingModule)
},
{
name: 'job-statuses.**',
parent: 'root',
url: '/job_statuses',
- loadChildren: () => import('../job-status/openproject-job-status.module').then(m => m.OpenProjectJobStatusModule)
+ loadChildren: () => import('../../features/job-status/openproject-job-status.module').then(m => m.OpenProjectJobStatusModule)
},
{
name: 'project_settings.**',
parent: 'root',
url: '/settings/generic',
- loadChildren: () => import('../projects/openproject-projects.module').then(m => m.OpenprojectProjectsModule)
+ loadChildren: () => import('../../features/projects/openproject-projects.module').then(m => m.OpenprojectProjectsModule)
},
{
name: 'project_copy.**',
parent: 'root',
url: '/copy',
- loadChildren: () => import('../projects/openproject-projects.module').then(m => m.OpenprojectProjectsModule)
+ loadChildren: () => import('../../features/projects/openproject-projects.module').then(m => m.OpenprojectProjectsModule)
},
];
diff --git a/frontend/src/app/components/schemas/schema-cache.service.ts b/frontend/src/app/core/schemas/schema-cache.service.ts
similarity index 88%
rename from frontend/src/app/components/schemas/schema-cache.service.ts
rename to frontend/src/app/core/schemas/schema-cache.service.ts
index e3e4214d89c..490f312a9f9 100644
--- a/frontend/src/app/components/schemas/schema-cache.service.ts
+++ b/frontend/src/app/core/schemas/schema-cache.service.ts
@@ -25,17 +25,17 @@
//
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { MultiInputState, State } from 'reactivestates';
-import { States } from '../states.service';
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { State } from 'reactivestates';
import { Injectable } from '@angular/core';
-import { SchemaResource } from 'core-app/modules/hal/resources/schema-resource';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
-import { ISchemaProxy, SchemaProxy } from "core-app/modules/hal/schemas/schema-proxy";
-import { WorkPackageSchemaProxy } from "core-app/modules/hal/schemas/work-package-schema-proxy";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
import { Observable } from "rxjs";
import { take } from "rxjs/operators";
+import { States } from "core-app/core/states/states.service";
+import { ISchemaProxy, SchemaProxy } from "core-app/features/hal/schemas/schema-proxy";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { WorkPackageSchemaProxy } from "core-app/features/hal/schemas/work-package-schema-proxy";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
@Injectable()
export class SchemaCacheService extends StateCacheService<SchemaResource> {
diff --git a/frontend/src/app/global-dynamic-components.const.ts b/frontend/src/app/core/setup/global-dynamic-components.const.ts
similarity index 60%
rename from frontend/src/app/global-dynamic-components.const.ts
rename to frontend/src/app/core/setup/global-dynamic-components.const.ts
index 7ae4a8f368e..060f37330da 100644
--- a/frontend/src/app/global-dynamic-components.const.ts
+++ b/frontend/src/app/core/setup/global-dynamic-components.const.ts
@@ -1,161 +1,167 @@
-import { OptionalBootstrapDefinition } from "core-app/globals/dynamic-bootstrapper";
-import { appBaseSelector, ApplicationBaseComponent } from "core-app/modules/router/base/application-base.component";
+import { OptionalBootstrapDefinition } from "core-app/core/setup/globals/dynamic-bootstrapper";
+import { appBaseSelector, ApplicationBaseComponent } from "core-app/core/routing/base/application-base.component";
import {
EmbeddedTablesMacroComponent,
wpEmbeddedTableMacroSelector
-} from "core-components/wp-table/embedded/embedded-tables-macro.component";
+} from "core-app/features/work-packages/components/wp-table/embedded/embedded-tables-macro.component";
import {
ColorsAutocompleter,
colorsAutocompleterSelector
-} from "core-app/modules/common/colors/colors-autocompleter.component";
+} from "core-app/shared/components/colors/colors-autocompleter.component";
import {
ZenModeButtonComponent,
zenModeComponentSelector
-} from "core-components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component";
-import { AttachmentsComponent, attachmentsSelector } from "core-app/modules/attachments/attachments.component";
+} from "core-app/features/work-packages/components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component";
+import { AttachmentsComponent, attachmentsSelector } from "core-app/shared/components/attachments/attachments.component";
import {
UserAutocompleterComponent,
usersAutocompleterSelector
-} from "core-app/modules/autocompleter/user-autocompleter/user-autocompleter.component";
+} from "core-app/shared/components/autocompleter/user-autocompleter/user-autocompleter.component";
import {
GlobalSearchWorkPackagesComponent,
globalSearchWorkPackagesSelector
-} from "core-app/modules/global_search/global-search-work-packages.component";
-import {
- HomescreenNewFeaturesBlockComponent,
- homescreenNewFeaturesBlockSelector
-} from "core-components/homescreen/blocks/new-features.component";
+} from "core-app/core/global_search/global-search-work-packages.component";
import {
CustomDateActionAdminComponent,
customDateActionAdminSelector
-} from "core-components/wp-custom-actions/date-action/custom-date-action-admin.component";
-import { BoardsMenuComponent, boardsMenuSelector } from "core-app/modules/boards/boards-sidebar/boards-menu.component";
+} from "core-app/features/work-packages/components/wp-custom-actions/date-action/custom-date-action-admin.component";
+import { BoardsMenuComponent, boardsMenuSelector } from "core-app/features/boards/boards-sidebar/boards-menu.component";
import {
GlobalSearchWorkPackagesEntryComponent,
globalSearchWorkPackagesSelectorEntry
-} from "core-app/modules/global_search/global-search-work-packages-entry.component";
+} from "core-app/core/global_search/global-search-work-packages-entry.component";
import {
NotificationsContainerComponent,
notificationsContainerSelector
-} from "core-app/modules/common/notifications/notifications-container.component";
-import {
- adminTypeFormConfigurationSelector,
- TypeFormConfigurationComponent
-} from "core-app/modules/admin/types/type-form-configuration.component";
+} from "core-app/shared/components/notifications/notifications-container.component";
import {
CkeditorAugmentedTextareaComponent,
ckeditorAugmentedTextareaSelector
-} from "core-app/ckeditor/ckeditor-augmented-textarea.component";
+} from "core-app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.component";
import {
PersistentToggleComponent,
persistentToggleSelector
-} from "core-app/modules/common/persistent-toggle/persistent-toggle.component";
-import {OpPrincipalComponent, principalSelector} from "core-app/modules/principal/principal.component";
+} from "core-app/shared/components/persistent-toggle/persistent-toggle.component";
+import {OpPrincipalComponent, principalSelector} from "core-app/shared/components/principal/principal.component";
import {
HideSectionLinkComponent,
hideSectionLinkSelector
-} from "core-app/modules/common/hide-section/hide-section-link/hide-section-link.component";
+} from "core-app/shared/components/hide-section/hide-section-link/hide-section-link.component";
import {
ShowSectionDropdownComponent,
showSectionDropdownSelector
-} from "core-app/modules/common/hide-section/show-section-dropdown.component";
+} from "core-app/shared/components/hide-section/show-section-dropdown.component";
import {
AddSectionDropdownComponent,
addSectionDropdownSelector
-} from "core-app/modules/common/hide-section/add-section-dropdown/add-section-dropdown.component";
+} from "core-app/shared/components/hide-section/add-section-dropdown/add-section-dropdown.component";
import {
AutocompleteSelectDecorationComponent,
autocompleteSelectDecorationSelector
-} from "core-app/modules/autocompleter/autocomplete-select-decoration/autocomplete-select-decoration.component";
+} from "core-app/shared/components/autocompleter/autocomplete-select-decoration/autocomplete-select-decoration.component";
import {
ContentTabsComponent,
contentTabsSelector
-} from "core-app/modules/common/tabs/content-tabs/content-tabs.component";
+} from "core-app/shared/components/tabs/content-tabs/content-tabs.component";
import {
CopyToClipboardDirective,
copyToClipboardSelector
-} from "core-app/modules/common/copy-to-clipboard/copy-to-clipboard.directive";
-import {
- ConfirmFormSubmitController,
- confirmFormSubmitSelector
-} from "core-components/modals/confirm-form-submit/confirm-form-submit.directive";
-import { MainMenuResizerComponent, mainMenuResizerSelector } from "core-components/resizer/main-menu-resizer.component";
+} from "core-app/shared/components/copy-to-clipboard/copy-to-clipboard.directive";
import {
GlobalSearchInputComponent,
globalSearchSelector
-} from "core-app/modules/global_search/input/global-search-input.component";
+} from "core-app/core/global_search/input/global-search-input.component";
import {
collapsibleSectionAugmentSelector,
CollapsibleSectionComponent
-} from "core-app/modules/common/collapsible-section/collapsible-section.component";
-import {
- EnterpriseBannerBootstrapComponent,
- enterpriseBannerSelector
-} from "core-components/enterprise-banner/enterprise-banner-bootstrap.component";
+} from "core-app/shared/components/collapsible-section/collapsible-section.component";
import {
ProjectMenuAutocompleteComponent,
projectMenuAutocompleteSelector
-} from "core-components/projects/project-menu-autocomplete/project-menu-autocomplete.component";
+} from "core-app/shared/components/autocompleter//project-menu-autocomplete/project-menu-autocomplete.component";
import {
RemoteFieldUpdaterComponent,
remoteFieldUpdaterSelector
-} from "core-app/modules/common/remote-field-updater/remote-field-updater.component";
+} from "core-app/shared/components/remote-field-updater/remote-field-updater.component";
import {
WorkPackageOverviewGraphComponent,
wpOverviewGraphSelector
-} from "core-app/modules/work-package-graphs/overview/wp-overview-graph.component";
+} from "core-app/shared/components/work-package-graphs/overview/wp-overview-graph.component";
import {
WorkPackageQuerySelectDropdownComponent,
wpQuerySelectSelector
-} from "core-components/wp-query-select/wp-query-select-dropdown.component";
+} from "core-app/features/work-packages/components/wp-query-select/wp-query-select-dropdown.component";
import {
GlobalSearchTitleComponent,
globalSearchTitleSelector
-} from "core-app/modules/global_search/title/global-search-title.component";
+} from "core-app/core/global_search/title/global-search-title.component";
import {
GlobalSearchTabsComponent,
globalSearchTabsSelector
-} from "core-app/modules/global_search/tabs/global-search-tabs.component";
-import { MainMenuToggleComponent, mainMenuToggleSelector } from "core-components/main-menu/main-menu-toggle.component";
+} from "core-app/core/global_search/tabs/global-search-tabs.component";
import {
MembersAutocompleterComponent,
membersAutocompleterSelector
-} from "core-app/modules/members/members-autocompleter.component";
-import { EnterpriseBaseComponent, enterpriseBaseSelector } from "core-components/enterprise/enterprise-base.component";
-import {
- EEActiveSavedTrialComponent,
- enterpriseActiveSavedTrialSelector
-} from "core-components/enterprise/enterprise-active-trial/ee-active-saved-trial.component";
+} from "core-app/shared/components/autocompleter/members-autocompleter/members-autocompleter.component";
import {
TriggerActionsEntryComponent,
triggerActionsEntryComponentSelector
-} from "core-app/modules/time_entries/edit/trigger-actions-entry.component";
+} from "core-app/shared/components/time_entries/edit/trigger-actions-entry.component";
import {
BacklogsPageComponent,
backlogsPageComponentSelector
-} from "core-app/modules/backlogs/backlogs-page/backlogs-page.component";
+} from "core-app/features/backlogs/backlogs-page/backlogs-page.component";
import {
attributeValueMacro,
AttributeValueMacroComponent
-} from "core-app/modules/fields/macros/attribute-value-macro.component";
+} from "core-app/shared/components/fields/macros/attribute-value-macro.component";
import {
attributeLabelMacro,
AttributeLabelMacroComponent
-} from "core-app/modules/fields/macros/attribute-label-macro.component";
+} from "core-app/shared/components/fields/macros/attribute-label-macro.component";
import {
AttributeHelpTextComponent,
attributeHelpTextSelector
-} from "core-app/modules/attribute-help-texts/attribute-help-text.component";
+} from "core-app/shared/components/attribute-help-texts/attribute-help-text.component";
import {
quickInfoMacroSelector,
WorkPackageQuickinfoMacroComponent
-} from "core-app/modules/fields/macros/work-package-quickinfo-macro.component";
+} from "core-app/shared/components/fields/macros/work-package-quickinfo-macro.component";
+import { SlideToggleComponent, slideToggleSelector } from "core-app/shared/components/slide-toggle/slide-toggle.component";
+import { BackupComponent, backupSelector } from "core-app/core/setup/globals/components/admin/backup.component";
+import {
+ EnterpriseBaseComponent,
+ enterpriseBaseSelector,
+} from "core-app/features/enterprise/enterprise-base.component";
+import {
+ EEActiveSavedTrialComponent,
+ enterpriseActiveSavedTrialSelector,
+} from "core-app/features/enterprise/enterprise-active-trial/ee-active-saved-trial.component";
+import {
+ EnterpriseBannerBootstrapComponent,
+ enterpriseBannerSelector,
+} from "core-app/shared/components/enterprise-banner/enterprise-banner-bootstrap.component";
+import {
+ HomescreenNewFeaturesBlockComponent,
+ homescreenNewFeaturesBlockSelector,
+} from "core-app/features/homescreen/blocks/new-features.component";
+import { MainMenuToggleComponent, mainMenuToggleSelector } from "core-app/core/main-menu/main-menu-toggle.component";
+import {
+ ConfirmFormSubmitController,
+ confirmFormSubmitSelector,
+} from "core-app/shared/components/modals/confirm-form-submit/confirm-form-submit.directive";
+import {
+ MainMenuResizerComponent,
+ mainMenuResizerSelector,
+} from "core-app/shared/components/resizer/resizer/main-menu-resizer.component";
+import {
+ adminTypeFormConfigurationSelector,
+ TypeFormConfigurationComponent,
+} from "core-app/features/admin/types/type-form-configuration.component";
import {
EditableQueryPropsComponent,
- editableQueryPropsSelector
-} from "core-app/modules/admin/editable-query-props/editable-query-props.component";
-import { SlideToggleComponent, slideToggleSelector } from "core-app/modules/common/slide-toggle/slide-toggle.component";
-import { BackupComponent, backupSelector } from "./components/admin/backup.component";
+ editableQueryPropsSelector,
+} from "core-app/features/admin/editable-query-props/editable-query-props.component";
export const globalDynamicComponents:OptionalBootstrapDefinition[] = [
{ selector: appBaseSelector, cls: ApplicationBaseComponent },
diff --git a/frontend/src/app/components/admin/backup.component.html b/frontend/src/app/core/setup/globals/components/admin/backup.component.html
similarity index 100%
rename from frontend/src/app/components/admin/backup.component.html
rename to frontend/src/app/core/setup/globals/components/admin/backup.component.html
diff --git a/frontend/src/app/components/admin/backup.component.ts b/frontend/src/app/core/setup/globals/components/admin/backup.component.ts
similarity index 87%
rename from frontend/src/app/components/admin/backup.component.ts
rename to frontend/src/app/core/setup/globals/components/admin/backup.component.ts
index d709e56c9fe..d577b31d9f6 100644
--- a/frontend/src/app/components/admin/backup.component.ts
+++ b/frontend/src/app/core/setup/globals/components/admin/backup.component.ts
@@ -28,13 +28,13 @@
import { HttpErrorResponse } from '@angular/common/http';
import { AfterViewInit, Component, ElementRef, Injector, ViewChild } from '@angular/core';
-import { InjectField } from 'core-app/helpers/angular/inject-field.decorator';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { NotificationsService } from 'core-app/modules/common/notifications/notifications.service';
-import { OpenProjectBackupService } from '../api/op-backup/op-backup.service';
-import { JobStatusModal } from "core-app/modules/job-status/job-status-modal/job-status.modal";
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { OpModalService } from "core-app/modules/modal/modal.service";
+import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { NotificationsService } from 'core-app/shared/components/notifications/notifications.service';
+import { JobStatusModal } from "core-app/features/job-status/job-status-modal/job-status.modal";
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { OpenProjectBackupService } from "core-app/core/backup/op-backup.service";
export const backupSelector = 'backup';
diff --git a/frontend/src/app/globals/constants.const.ts b/frontend/src/app/core/setup/globals/constants.const.ts
similarity index 100%
rename from frontend/src/app/globals/constants.const.ts
rename to frontend/src/app/core/setup/globals/constants.const.ts
diff --git a/frontend/src/app/globals/dynamic-bootstrapper.ts b/frontend/src/app/core/setup/globals/dynamic-bootstrapper.ts
similarity index 100%
rename from frontend/src/app/globals/dynamic-bootstrapper.ts
rename to frontend/src/app/core/setup/globals/dynamic-bootstrapper.ts
diff --git a/frontend/src/app/globals/global-helpers.ts b/frontend/src/app/core/setup/globals/global-helpers.ts
similarity index 100%
rename from frontend/src/app/globals/global-helpers.ts
rename to frontend/src/app/core/setup/globals/global-helpers.ts
diff --git a/frontend/src/app/globals/global-listeners.ts b/frontend/src/app/core/setup/globals/global-listeners.ts
similarity index 80%
rename from frontend/src/app/globals/global-listeners.ts
rename to frontend/src/app/core/setup/globals/global-listeners.ts
index 3dfa240beeb..b022731e2e2 100644
--- a/frontend/src/app/globals/global-listeners.ts
+++ b/frontend/src/app/core/setup/globals/global-listeners.ts
@@ -28,18 +28,18 @@
import { performAnchorHijacking } from "./global-listeners/link-hijacking";
import { augmentedDatePicker } from "./global-listeners/augmented-date-picker";
-import { refreshOnFormChanges } from 'core-app/globals/global-listeners/refresh-on-form-changes';
-import { registerRequestForConfirmation } from "core-app/globals/global-listeners/request-for-confirmation";
-import { DeviceService } from "core-app/modules/common/browser/device.service";
-import { scrollHeaderOnMobile } from "core-app/globals/global-listeners/top-menu-scroll";
-import { setupToggableFieldsets } from "core-app/globals/global-listeners/toggable-fieldset";
-import { TopMenu } from "core-app/globals/global-listeners/top-menu";
-import { install_menu_logic } from "core-app/globals/global-listeners/action-menu";
-import { makeColorPreviews } from "core-app/globals/global-listeners/color-preview";
-import { dangerZoneValidation } from "core-app/globals/global-listeners/danger-zone-validation";
-import { setupServerResponse } from "core-app/globals/global-listeners/setup-server-response";
-import { listenToSettingChanges } from "core-app/globals/global-listeners/settings";
-import { detectOnboardingTour } from "core-app/globals/onboarding/onboarding_tour_trigger";
+import { refreshOnFormChanges } from 'core-app/core/setup/globals/global-listeners/refresh-on-form-changes';
+import { registerRequestForConfirmation } from "core-app/core/setup/globals/global-listeners/request-for-confirmation";
+import { DeviceService } from "core-app/core/browser/device.service";
+import { scrollHeaderOnMobile } from "core-app/core/setup/globals/global-listeners/top-menu-scroll";
+import { setupToggableFieldsets } from "core-app/core/setup/globals/global-listeners/toggable-fieldset";
+import { TopMenu } from "core-app/core/setup/globals/global-listeners/top-menu";
+import { install_menu_logic } from "core-app/core/setup/globals/global-listeners/action-menu";
+import { makeColorPreviews } from "core-app/core/setup/globals/global-listeners/color-preview";
+import { dangerZoneValidation } from "core-app/core/setup/globals/global-listeners/danger-zone-validation";
+import { setupServerResponse } from "core-app/core/setup/globals/global-listeners/setup-server-response";
+import { listenToSettingChanges } from "core-app/core/setup/globals/global-listeners/settings";
+import { detectOnboardingTour } from "core-app/core/setup/globals/onboarding/onboarding_tour_trigger";
/**
* A set of listeners that are relevant on every page to set sensible defaults
diff --git a/frontend/src/app/globals/global-listeners/action-menu.ts b/frontend/src/app/core/setup/globals/global-listeners/action-menu.ts
similarity index 97%
rename from frontend/src/app/globals/global-listeners/action-menu.ts
rename to frontend/src/app/core/setup/globals/global-listeners/action-menu.ts
index 770db6b6776..dfc47bb377c 100644
--- a/frontend/src/app/globals/global-listeners/action-menu.ts
+++ b/frontend/src/app/core/setup/globals/global-listeners/action-menu.ts
@@ -41,7 +41,7 @@
</ul>
The following code is responsible to open and close the "more functions" submenu.
*/
-import { ANIMATION_RATE_MS } from "core-app/globals/global-listeners/top-menu";
+import { ANIMATION_RATE_MS } from "core-app/core/setup/globals/global-listeners/top-menu";
import ClickEvent = JQuery.ClickEvent;
function menu_top_position(menu:JQuery) {
diff --git a/frontend/src/app/globals/global-listeners/augmented-date-picker.ts b/frontend/src/app/core/setup/globals/global-listeners/augmented-date-picker.ts
similarity index 90%
rename from frontend/src/app/globals/global-listeners/augmented-date-picker.ts
rename to frontend/src/app/core/setup/globals/global-listeners/augmented-date-picker.ts
index 18663b9c06c..68e44e521fa 100644
--- a/frontend/src/app/globals/global-listeners/augmented-date-picker.ts
+++ b/frontend/src/app/core/setup/globals/global-listeners/augmented-date-picker.ts
@@ -1,4 +1,4 @@
-import { DatePicker } from "core-app/modules/common/op-date-picker/datepicker";
+import { DatePicker } from "core-app/shared/components/op-date-picker/datepicker";
/**
* Our application is still a hybrid one, meaning most routes are still
diff --git a/frontend/src/app/globals/global-listeners/color-preview.ts b/frontend/src/app/core/setup/globals/global-listeners/color-preview.ts
similarity index 100%
rename from frontend/src/app/globals/global-listeners/color-preview.ts
rename to frontend/src/app/core/setup/globals/global-listeners/color-preview.ts
diff --git a/frontend/src/app/globals/global-listeners/danger-zone-validation.ts b/frontend/src/app/core/setup/globals/global-listeners/danger-zone-validation.ts
similarity index 100%
rename from frontend/src/app/globals/global-listeners/danger-zone-validation.ts
rename to frontend/src/app/core/setup/globals/global-listeners/danger-zone-validation.ts
diff --git a/frontend/src/app/globals/global-listeners/link-hijacking.ts b/frontend/src/app/core/setup/globals/global-listeners/link-hijacking.ts
similarity index 100%
rename from frontend/src/app/globals/global-listeners/link-hijacking.ts
rename to frontend/src/app/core/setup/globals/global-listeners/link-hijacking.ts
diff --git a/frontend/src/app/globals/global-listeners/preview-trigger.service.ts b/frontend/src/app/core/setup/globals/global-listeners/preview-trigger.service.ts
similarity index 89%
rename from frontend/src/app/globals/global-listeners/preview-trigger.service.ts
rename to frontend/src/app/core/setup/globals/global-listeners/preview-trigger.service.ts
index 40aaecb5a5a..a50a7c8d2d6 100644
--- a/frontend/src/app/globals/global-listeners/preview-trigger.service.ts
+++ b/frontend/src/app/core/setup/globals/global-listeners/preview-trigger.service.ts
@@ -28,8 +28,8 @@
import { Injectable, Injector, NgZone } from "@angular/core";
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { WpPreviewModal } from "core-components/modals/preview-modal/wp-preview-modal/wp-preview.modal";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { WpPreviewModal } from "core-app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal";
@Injectable({ providedIn: 'root' })
export class PreviewTriggerService {
@@ -95,9 +95,9 @@ export class PreviewTriggerService {
const previewElement = jQuery(this.modalElement.children[0]);
if (previewElement && previewElement.offset()) {
const horizontalHover = e.pageX >= Math.floor(previewElement.offset()!.left) &&
- e.pageX < previewElement.offset()!.left + previewElement.width()!;
+ e.pageX < previewElement.offset()!.left + previewElement.width()!;
const verticalHover = e.pageY >= Math.floor(previewElement.offset()!.top) &&
- e.pageY < previewElement.offset()!.top + previewElement.height()!;
+ e.pageY < previewElement.offset()!.top + previewElement.height()!;
return horizontalHover && verticalHover;
}
return false;
diff --git a/frontend/src/app/globals/global-listeners/refresh-on-form-changes.ts b/frontend/src/app/core/setup/globals/global-listeners/refresh-on-form-changes.ts
similarity index 100%
rename from frontend/src/app/globals/global-listeners/refresh-on-form-changes.ts
rename to frontend/src/app/core/setup/globals/global-listeners/refresh-on-form-changes.ts
diff --git a/frontend/src/app/globals/global-listeners/request-for-confirmation.ts b/frontend/src/app/core/setup/globals/global-listeners/request-for-confirmation.ts
similarity index 92%
rename from frontend/src/app/globals/global-listeners/request-for-confirmation.ts
rename to frontend/src/app/core/setup/globals/global-listeners/request-for-confirmation.ts
index ac372a625b5..b507c3b6955 100644
--- a/frontend/src/app/globals/global-listeners/request-for-confirmation.ts
+++ b/frontend/src/app/core/setup/globals/global-listeners/request-for-confirmation.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { PasswordConfirmationModal } from "core-components/modals/request-for-confirmation/password-confirmation.modal";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { PasswordConfirmationModal } from "core-app/shared/components/modals/request-for-confirmation/password-confirmation.modal";
function registerListener(
form:JQuery,
diff --git a/frontend/src/app/globals/global-listeners/settings.ts b/frontend/src/app/core/setup/globals/global-listeners/settings.ts
similarity index 100%
rename from frontend/src/app/globals/global-listeners/settings.ts
rename to frontend/src/app/core/setup/globals/global-listeners/settings.ts
diff --git a/frontend/src/app/globals/global-listeners/setup-server-response.ts b/frontend/src/app/core/setup/globals/global-listeners/setup-server-response.ts
similarity index 100%
rename from frontend/src/app/globals/global-listeners/setup-server-response.ts
rename to frontend/src/app/core/setup/globals/global-listeners/setup-server-response.ts
diff --git a/frontend/src/app/globals/global-listeners/toggable-fieldset.ts b/frontend/src/app/core/setup/globals/global-listeners/toggable-fieldset.ts
similarity index 100%
rename from frontend/src/app/globals/global-listeners/toggable-fieldset.ts
rename to frontend/src/app/core/setup/globals/global-listeners/toggable-fieldset.ts
diff --git a/frontend/src/app/globals/global-listeners/top-menu-scroll.ts b/frontend/src/app/core/setup/globals/global-listeners/top-menu-scroll.ts
similarity index 100%
rename from frontend/src/app/globals/global-listeners/top-menu-scroll.ts
rename to frontend/src/app/core/setup/globals/global-listeners/top-menu-scroll.ts
diff --git a/frontend/src/app/globals/global-listeners/top-menu.ts b/frontend/src/app/core/setup/globals/global-listeners/top-menu.ts
similarity index 100%
rename from frontend/src/app/globals/global-listeners/top-menu.ts
rename to frontend/src/app/core/setup/globals/global-listeners/top-menu.ts
diff --git a/frontend/src/app/globals/onboarding/helpers.ts b/frontend/src/app/core/setup/globals/onboarding/helpers.ts
similarity index 100%
rename from frontend/src/app/globals/onboarding/helpers.ts
rename to frontend/src/app/core/setup/globals/onboarding/helpers.ts
diff --git a/frontend/src/app/globals/onboarding/onboarding_tour.ts b/frontend/src/app/core/setup/globals/onboarding/onboarding_tour.ts
similarity index 83%
rename from frontend/src/app/globals/onboarding/onboarding_tour.ts
rename to frontend/src/app/core/setup/globals/onboarding/onboarding_tour.ts
index 01797d57f72..8aecb2f2f08 100644
--- a/frontend/src/app/globals/onboarding/onboarding_tour.ts
+++ b/frontend/src/app/core/setup/globals/onboarding/onboarding_tour.ts
@@ -1,14 +1,14 @@
-import { wpOnboardingTourSteps } from "core-app/globals/onboarding/tours/work_package_tour";
+import { wpOnboardingTourSteps } from "core-app/core/setup/globals/onboarding/tours/work_package_tour";
import {
demoProjectsLinks, OnboardingTourNames,
onboardingTourStorageKey,
preventClickHandler,
waitForElement
-} from "core-app/globals/onboarding/helpers";
-import { boardTourSteps } from "core-app/globals/onboarding/tours/boards_tour";
-import { menuTourSteps } from "core-app/globals/onboarding/tours/menu_tour";
-import { homescreenOnboardingTourSteps } from "core-app/globals/onboarding/tours/homescreen_tour";
-import { scrumBacklogsTourSteps, scrumTaskBoardTourSteps } from "core-app/globals/onboarding/tours/backlogs_tour";
+} from "core-app/core/setup/globals/onboarding/helpers";
+import { boardTourSteps } from "core-app/core/setup/globals/onboarding/tours/boards_tour";
+import { menuTourSteps } from "core-app/core/setup/globals/onboarding/tours/menu_tour";
+import { homescreenOnboardingTourSteps } from "core-app/core/setup/globals/onboarding/tours/homescreen_tour";
+import { scrumBacklogsTourSteps, scrumTaskBoardTourSteps } from "core-app/core/setup/globals/onboarding/tours/backlogs_tour";
import { Injector } from "@angular/core";
require('core-vendor/enjoyhint');
diff --git a/frontend/src/app/globals/onboarding/onboarding_tour_trigger.ts b/frontend/src/app/core/setup/globals/onboarding/onboarding_tour_trigger.ts
similarity index 95%
rename from frontend/src/app/globals/onboarding/onboarding_tour_trigger.ts
rename to frontend/src/app/core/setup/globals/onboarding/onboarding_tour_trigger.ts
index 9e1943d6e1b..bed3a5fba2d 100644
--- a/frontend/src/app/globals/onboarding/onboarding_tour_trigger.ts
+++ b/frontend/src/app/core/setup/globals/onboarding/onboarding_tour_trigger.ts
@@ -1,7 +1,7 @@
// Dynamically loads and triggers the onboarding tour
// when on the correct spots
-import { demoProjectsLinks, OnboardingTourNames, onboardingTourStorageKey } from "core-app/globals/onboarding/helpers";
-import { debugLog } from "core-app/helpers/debug_output";
+import { demoProjectsLinks, OnboardingTourNames, onboardingTourStorageKey } from "core-app/core/setup/globals/onboarding/helpers";
+import { debugLog } from "core-app/shared/helpers/debug_output";
export function detectOnboardingTour() {
// ------------------------------- Global -------------------------------
diff --git a/frontend/src/app/globals/onboarding/tours/backlogs_tour.ts b/frontend/src/app/core/setup/globals/onboarding/tours/backlogs_tour.ts
similarity index 94%
rename from frontend/src/app/globals/onboarding/tours/backlogs_tour.ts
rename to frontend/src/app/core/setup/globals/onboarding/tours/backlogs_tour.ts
index 13864509b8f..05e46442ba7 100644
--- a/frontend/src/app/globals/onboarding/tours/backlogs_tour.ts
+++ b/frontend/src/app/core/setup/globals/onboarding/tours/backlogs_tour.ts
@@ -1,4 +1,4 @@
-import { onboardingTourStorageKey } from "core-app/globals/onboarding/helpers";
+import { onboardingTourStorageKey } from "core-app/core/setup/globals/onboarding/helpers";
export function scrumBacklogsTourSteps() {
return [
diff --git a/frontend/src/app/globals/onboarding/tours/boards_tour.ts b/frontend/src/app/core/setup/globals/onboarding/tours/boards_tour.ts
similarity index 95%
rename from frontend/src/app/globals/onboarding/tours/boards_tour.ts
rename to frontend/src/app/core/setup/globals/onboarding/tours/boards_tour.ts
index 43cbd0fbfd0..f7788945319 100644
--- a/frontend/src/app/globals/onboarding/tours/boards_tour.ts
+++ b/frontend/src/app/core/setup/globals/onboarding/tours/boards_tour.ts
@@ -1,4 +1,4 @@
-import { waitForElement } from "core-app/globals/onboarding/helpers";
+import { waitForElement } from "core-app/core/setup/globals/onboarding/helpers";
export function boardTourSteps() {
return [
diff --git a/frontend/src/app/globals/onboarding/tours/homescreen_tour.ts b/frontend/src/app/core/setup/globals/onboarding/tours/homescreen_tour.ts
similarity index 96%
rename from frontend/src/app/globals/onboarding/tours/homescreen_tour.ts
rename to frontend/src/app/core/setup/globals/onboarding/tours/homescreen_tour.ts
index 2b077fa7aef..cc74e40a59a 100644
--- a/frontend/src/app/globals/onboarding/tours/homescreen_tour.ts
+++ b/frontend/src/app/core/setup/globals/onboarding/tours/homescreen_tour.ts
@@ -1,4 +1,4 @@
-import { demoProjectName, preventClickHandler, scrumDemoProjectName } from "core-app/globals/onboarding/helpers";
+import { demoProjectName, preventClickHandler, scrumDemoProjectName } from "core-app/core/setup/globals/onboarding/helpers";
export function homescreenOnboardingTourSteps() {
return [
diff --git a/frontend/src/app/globals/onboarding/tours/menu_tour.ts b/frontend/src/app/core/setup/globals/onboarding/tours/menu_tour.ts
similarity index 100%
rename from frontend/src/app/globals/onboarding/tours/menu_tour.ts
rename to frontend/src/app/core/setup/globals/onboarding/tours/menu_tour.ts
diff --git a/frontend/src/app/globals/onboarding/tours/work_package_tour.ts b/frontend/src/app/core/setup/globals/onboarding/tours/work_package_tour.ts
similarity index 96%
rename from frontend/src/app/globals/onboarding/tours/work_package_tour.ts
rename to frontend/src/app/core/setup/globals/onboarding/tours/work_package_tour.ts
index ddb9bf6cf37..068e3bc7116 100644
--- a/frontend/src/app/globals/onboarding/tours/work_package_tour.ts
+++ b/frontend/src/app/core/setup/globals/onboarding/tours/work_package_tour.ts
@@ -1,4 +1,4 @@
-import { waitForElement } from "core-app/globals/onboarding/helpers";
+import { waitForElement } from "core-app/core/setup/globals/onboarding/helpers";
export function wpOnboardingTourSteps():any[] {
return [
diff --git a/frontend/src/app/globals/openproject.ts b/frontend/src/app/core/setup/globals/openproject.ts
similarity index 95%
rename from frontend/src/app/globals/openproject.ts
rename to frontend/src/app/core/setup/globals/openproject.ts
index d689cb5ec61..96d83248b94 100644
--- a/frontend/src/app/globals/openproject.ts
+++ b/frontend/src/app/core/setup/globals/openproject.ts
@@ -26,10 +26,10 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { OpenProjectPluginContext } from 'core-app/modules/plugins/plugin-context';
+import { OpenProjectPluginContext } from 'core-app/features/plugins/plugin-context';
import { input, InputState } from 'reactivestates';
import { take } from 'rxjs/operators';
-import { GlobalHelpers } from "core-app/globals/global-helpers";
+import { GlobalHelpers } from "core-app/core/setup/globals/global-helpers";
/**
* OpenProject instance methods
diff --git a/frontend/src/app/globals/tree-menu.ts b/frontend/src/app/core/setup/globals/tree-menu.ts
similarity index 100%
rename from frontend/src/app/globals/tree-menu.ts
rename to frontend/src/app/core/setup/globals/tree-menu.ts
diff --git a/frontend/src/app/init-globals.ts b/frontend/src/app/core/setup/init-globals.ts
similarity index 99%
rename from frontend/src/app/init-globals.ts
rename to frontend/src/app/core/setup/init-globals.ts
index c339a0800de..63f8ab85777 100644
--- a/frontend/src/app/init-globals.ts
+++ b/frontend/src/app/core/setup/init-globals.ts
@@ -34,3 +34,4 @@ import './globals/dynamic-bootstrapper';
import './globals/global-listeners';
import './globals/openproject';
import './globals/tree-menu';
+
diff --git a/frontend/src/app/init-locale.ts b/frontend/src/app/core/setup/init-locale.ts
similarity index 96%
rename from frontend/src/app/init-locale.ts
rename to frontend/src/app/core/setup/init-locale.ts
index c56d3d1cfe4..9f3871a4a86 100644
--- a/frontend/src/app/init-locale.ts
+++ b/frontend/src/app/core/setup/init-locale.ts
@@ -60,5 +60,5 @@ export function initializeLocale() {
}
};
- return import(/* webpackChunkName: "locale" */ `../locales/${I18n.locale}.js`);
+ return import(/* webpackChunkName: "locale" */ `../../../locales/${I18n.locale}.js`);
}
\ No newline at end of file
diff --git a/frontend/src/app/init-vendors.ts b/frontend/src/app/core/setup/init-vendors.ts
similarity index 100%
rename from frontend/src/app/init-vendors.ts
rename to frontend/src/app/core/setup/init-vendors.ts
diff --git a/frontend/src/app/components/states.service.ts b/frontend/src/app/core/states/states.service.ts
similarity index 62%
rename from frontend/src/app/components/states.service.ts
rename to frontend/src/app/core/states/states.service.ts
index 6d8bb30aa78..372a2ec437a 100644
--- a/frontend/src/app/components/states.service.ts
+++ b/frontend/src/app/core/states/states.service.ts
@@ -1,23 +1,23 @@
-import { ProjectResource } from 'core-app/modules/hal/resources/project-resource';
-import { SchemaResource } from 'core-app/modules/hal/resources/schema-resource';
-import { TypeResource } from 'core-app/modules/hal/resources/type-resource';
-import { RoleResource } from 'core-app/modules/hal/resources/role-resource';
-import { UserResource } from 'core-app/modules/hal/resources/user-resource';
-import { PlaceholderUserResource } from 'core-app/modules/hal/resources/placeholder-user-resource';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
import { input, InputState, multiInput, MultiInputState, StatesGroup } from 'reactivestates';
-import { QueryColumn } from './wp-query/query-column';
-import { PostResource } from 'core-app/modules/hal/resources/post-resource';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { StatusResource } from "core-app/modules/hal/resources/status-resource";
-import { QueryFilterInstanceSchemaResource } from "core-app/modules/hal/resources/query-filter-instance-schema-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { Subject } from "rxjs";
-import { QuerySortByResource } from "core-app/modules/hal/resources/query-sort-by-resource";
-import { QueryGroupByResource } from "core-app/modules/hal/resources/query-group-by-resource";
-import { VersionResource } from "core-app/modules/hal/resources/version-resource";
-import { WorkPackageDisplayRepresentationValue } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
-import { TimeEntryResource } from "core-app/modules/hal/resources/time-entry-resource";
-import { CapabilityResource } from "core-app/modules/hal/resources/capability-resource";
+import { WorkPackageDisplayRepresentationValue } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
+import { QueryColumn } from "core-app/features/work-packages/components/wp-query/query-column";
+import { CapabilityResource } from "core-app/features/hal/resources/capability-resource";
+import { TypeResource } from "core-app/features/hal/resources/type-resource";
+import { TimeEntryResource } from "core-app/features/hal/resources/time-entry-resource";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { UserResource } from "core-app/features/hal/resources/user-resource";
+import { VersionResource } from "core-app/features/hal/resources/version-resource";
+import { QueryFilterInstanceSchemaResource } from "core-app/features/hal/resources/query-filter-instance-schema-resource";
+import { StatusResource } from "core-app/features/hal/resources/status-resource";
+import { QuerySortByResource } from "core-app/features/hal/resources/query-sort-by-resource";
+import { PlaceholderUserResource } from "core-app/features/hal/resources/placeholder-user-resource";
+import { QueryGroupByResource } from "core-app/features/hal/resources/query-group-by-resource";
+import { RoleResource } from "core-app/features/hal/resources/role-resource";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
+import { PostResource } from "core-app/features/hal/resources/post-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
export class States extends StatesGroup {
name = 'MainStore';
diff --git a/frontend/src/app/modules/admin/editable-query-props/editable-query-props.component.html b/frontend/src/app/features/admin/editable-query-props/editable-query-props.component.html
similarity index 100%
rename from frontend/src/app/modules/admin/editable-query-props/editable-query-props.component.html
rename to frontend/src/app/features/admin/editable-query-props/editable-query-props.component.html
diff --git a/frontend/src/app/modules/admin/editable-query-props/editable-query-props.component.ts b/frontend/src/app/features/admin/editable-query-props/editable-query-props.component.ts
similarity index 82%
rename from frontend/src/app/modules/admin/editable-query-props/editable-query-props.component.ts
rename to frontend/src/app/features/admin/editable-query-props/editable-query-props.component.ts
index e7c48c5e55b..78156755c2b 100644
--- a/frontend/src/app/modules/admin/editable-query-props/editable-query-props.component.ts
+++ b/frontend/src/app/features/admin/editable-query-props/editable-query-props.component.ts
@@ -1,7 +1,7 @@
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, OnInit } from "@angular/core";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { ExternalQueryConfigurationService } from "core-components/wp-table/external-configuration/external-query-configuration.service";
-import { UrlParamsHelperService } from "core-components/wp-query/url-params-helper";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { ExternalQueryConfigurationService } from "core-app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.service";
+import { UrlParamsHelperService } from "core-app/features/work-packages/components/wp-query/url-params-helper";
export const editableQueryPropsSelector = 'editable-query-props';
diff --git a/frontend/src/app/modules/admin/openproject-admin.module.ts b/frontend/src/app/features/admin/openproject-admin.module.ts
similarity index 68%
rename from frontend/src/app/modules/admin/openproject-admin.module.ts
rename to frontend/src/app/features/admin/openproject-admin.module.ts
index 50ef4c8801e..7adaf45c549 100644
--- a/frontend/src/app/modules/admin/openproject-admin.module.ts
+++ b/frontend/src/app/features/admin/openproject-admin.module.ts
@@ -27,19 +27,19 @@
//++
import { NgModule } from '@angular/core';
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
-import { TypeFormConfigurationComponent } from 'core-app/modules/admin/types/type-form-configuration.component';
-import { GroupEditInPlaceComponent } from 'core-app/modules/admin/types/group-edit-in-place.component';
-import { TypeFormAttributeGroupComponent } from 'core-app/modules/admin/types/attribute-group.component';
+import { OPSharedModule } from "core-app/shared/shared.module";
import { DragulaModule } from 'ng2-dragula';
-import { TypeFormQueryGroupComponent } from "core-app/modules/admin/types/query-group.component";
-import { OpenprojectAccessibilityModule } from "core-app/modules/a11y/openproject-a11y.module";
-import { EditableQueryPropsComponent } from "core-app/modules/admin/editable-query-props/editable-query-props.component";
+import { TypeFormAttributeGroupComponent } from "core-app/features/admin/types/attribute-group.component";
+import { TypeFormConfigurationComponent } from "core-app/features/admin/types/type-form-configuration.component";
+import { TypeFormQueryGroupComponent } from "core-app/features/admin/types/query-group.component";
+import { GroupEditInPlaceComponent } from "core-app/features/admin/types/group-edit-in-place.component";
+import { OpenprojectAccessibilityModule } from "core-app/shared/directives/a11y/openproject-a11y.module";
+import { EditableQueryPropsComponent } from "core-app/features/admin/editable-query-props/editable-query-props.component";
@NgModule({
imports: [
DragulaModule.forRoot(),
- OpenprojectCommonModule,
+ OPSharedModule,
OpenprojectAccessibilityModule
],
providers: [
diff --git a/frontend/src/app/modules/admin/types/attribute-group.component.html b/frontend/src/app/features/admin/types/attribute-group.component.html
similarity index 100%
rename from frontend/src/app/modules/admin/types/attribute-group.component.html
rename to frontend/src/app/features/admin/types/attribute-group.component.html
diff --git a/frontend/src/app/modules/admin/types/attribute-group.component.ts b/frontend/src/app/features/admin/types/attribute-group.component.ts
similarity index 84%
rename from frontend/src/app/modules/admin/types/attribute-group.component.ts
rename to frontend/src/app/features/admin/types/attribute-group.component.ts
index be41d2bf1d6..7fd8b55dcdb 100644
--- a/frontend/src/app/modules/admin/types/attribute-group.component.ts
+++ b/frontend/src/app/features/admin/types/attribute-group.component.ts
@@ -1,6 +1,6 @@
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, Output } from '@angular/core';
-import { TypeFormAttribute, TypeGroup } from "core-app/modules/admin/types/type-form-configuration.component";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { TypeFormAttribute, TypeGroup } from "core-app/features/admin/types/type-form-configuration.component";
@Component({
selector: 'type-form-attribute-group',
diff --git a/frontend/src/app/modules/admin/types/group-edit-in-place.component.ts b/frontend/src/app/features/admin/types/group-edit-in-place.component.ts
similarity index 97%
rename from frontend/src/app/modules/admin/types/group-edit-in-place.component.ts
rename to frontend/src/app/features/admin/types/group-edit-in-place.component.ts
index 6fe082a4f55..356db4fc964 100644
--- a/frontend/src/app/modules/admin/types/group-edit-in-place.component.ts
+++ b/frontend/src/app/features/admin/types/group-edit-in-place.component.ts
@@ -35,7 +35,8 @@ import {
OnInit,
Output
} from '@angular/core';
-import { TypeBannerService } from 'core-app/modules/admin/types/type-banner.service';
+import { TypeBannerService } from "core-app/features/admin/types/type-banner.service";
+
@Component({
selector: 'group-edit-in-place',
diff --git a/frontend/src/app/modules/admin/types/group-edit-in-place.html b/frontend/src/app/features/admin/types/group-edit-in-place.html
similarity index 100%
rename from frontend/src/app/modules/admin/types/group-edit-in-place.html
rename to frontend/src/app/features/admin/types/group-edit-in-place.html
diff --git a/frontend/src/app/modules/admin/types/query-group.component.html b/frontend/src/app/features/admin/types/query-group.component.html
similarity index 100%
rename from frontend/src/app/modules/admin/types/query-group.component.html
rename to frontend/src/app/features/admin/types/query-group.component.html
diff --git a/frontend/src/app/modules/admin/types/query-group.component.ts b/frontend/src/app/features/admin/types/query-group.component.ts
similarity index 90%
rename from frontend/src/app/modules/admin/types/query-group.component.ts
rename to frontend/src/app/features/admin/types/query-group.component.ts
index b0bbf4c9281..13a8b40df69 100644
--- a/frontend/src/app/modules/admin/types/query-group.component.ts
+++ b/frontend/src/app/features/admin/types/query-group.component.ts
@@ -1,5 +1,5 @@
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, Output } from '@angular/core';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Component({
selector: 'type-form-query-group',
diff --git a/frontend/src/app/modules/admin/types/type-banner.service.ts b/frontend/src/app/features/admin/types/type-banner.service.ts
similarity index 78%
rename from frontend/src/app/modules/admin/types/type-banner.service.ts
rename to frontend/src/app/features/admin/types/type-banner.service.ts
index e52d7a7ccee..50047bf2ed8 100644
--- a/frontend/src/app/modules/admin/types/type-banner.service.ts
+++ b/frontend/src/app/features/admin/types/type-banner.service.ts
@@ -1,8 +1,8 @@
-import { ConfirmDialogService } from 'core-components/modals/confirm-dialog/confirm-dialog.service';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { BannersService } from 'core-app/modules/common/enterprise/banners.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { BannersService } from 'core-app/core/enterprise/banners.service';
import { Inject, Injectable } from '@angular/core';
import { DOCUMENT } from '@angular/common';
+import { ConfirmDialogService } from "core-app/shared/components/modals/confirm-dialog/confirm-dialog.service";
@Injectable()
export class TypeBannerService extends BannersService {
diff --git a/frontend/src/app/modules/admin/types/type-form-configuration.component.ts b/frontend/src/app/features/admin/types/type-form-configuration.component.ts
similarity index 90%
rename from frontend/src/app/modules/admin/types/type-form-configuration.component.ts
rename to frontend/src/app/features/admin/types/type-form-configuration.component.ts
index 5d284329928..2409a5d563e 100644
--- a/frontend/src/app/modules/admin/types/type-form-configuration.component.ts
+++ b/frontend/src/app/features/admin/types/type-form-configuration.component.ts
@@ -1,15 +1,15 @@
import { AfterViewInit, Component, ElementRef, OnInit } from '@angular/core';
-import { TypeBannerService } from 'core-app/modules/admin/types/type-banner.service';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { NotificationsService } from 'core-app/modules/common/notifications/notifications.service';
-import { ExternalRelationQueryConfigurationService } from 'core-components/wp-table/external-configuration/external-relation-query-configuration.service';
-import { DomAutoscrollService } from 'core-app/modules/common/drag-and-drop/dom-autoscroll.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { NotificationsService } from 'core-app/shared/components/notifications/notifications.service';
+import { ExternalRelationQueryConfigurationService } from 'core-app/features/work-packages/components/wp-table/external-configuration/external-relation-query-configuration.service';
+import { DomAutoscrollService } from 'core-app/shared/helpers/drag-and-drop/dom-autoscroll.service';
import { DragulaService, DrakeWithModels } from 'ng2-dragula';
-import { ConfirmDialogService } from 'core-components/modals/confirm-dialog/confirm-dialog.service';
import { Drake } from 'dragula';
-import { GonService } from "core-app/modules/common/gon/gon.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { install_menu_logic } from "core-app/globals/global-listeners/action-menu";
+import { GonService } from "core-app/core/gon/gon.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { install_menu_logic } from "core-app/core/setup/globals/global-listeners/action-menu";
+import { ConfirmDialogService } from "core-app/shared/components/modals/confirm-dialog/confirm-dialog.service";
+import { TypeBannerService } from "core-app/features/admin/types/type-banner.service";
export type TypeGroupType = 'attribute'|'query';
diff --git a/frontend/src/app/modules/admin/types/type-form-configuration.html b/frontend/src/app/features/admin/types/type-form-configuration.html
similarity index 100%
rename from frontend/src/app/modules/admin/types/type-form-configuration.html
rename to frontend/src/app/features/admin/types/type-form-configuration.html
diff --git a/frontend/src/app/modules/backlogs/backlogs-page/backlogs-page.component.ts b/frontend/src/app/features/backlogs/backlogs-page/backlogs-page.component.ts
similarity index 100%
rename from frontend/src/app/modules/backlogs/backlogs-page/backlogs-page.component.ts
rename to frontend/src/app/features/backlogs/backlogs-page/backlogs-page.component.ts
diff --git a/frontend/src/app/modules/backlogs/backlogs-page/styles/backlogs.sass b/frontend/src/app/features/backlogs/backlogs-page/styles/backlogs.sass
similarity index 100%
rename from frontend/src/app/modules/backlogs/backlogs-page/styles/backlogs.sass
rename to frontend/src/app/features/backlogs/backlogs-page/styles/backlogs.sass
diff --git a/frontend/src/app/modules/backlogs/backlogs-page/styles/dialogues.sass b/frontend/src/app/features/backlogs/backlogs-page/styles/dialogues.sass
similarity index 100%
rename from frontend/src/app/modules/backlogs/backlogs-page/styles/dialogues.sass
rename to frontend/src/app/features/backlogs/backlogs-page/styles/dialogues.sass
diff --git a/frontend/src/app/modules/backlogs/backlogs-page/styles/global.css b/frontend/src/app/features/backlogs/backlogs-page/styles/global.css
similarity index 100%
rename from frontend/src/app/modules/backlogs/backlogs-page/styles/global.css
rename to frontend/src/app/features/backlogs/backlogs-page/styles/global.css
diff --git a/frontend/src/app/modules/backlogs/backlogs-page/styles/global_print.css b/frontend/src/app/features/backlogs/backlogs-page/styles/global_print.css
similarity index 100%
rename from frontend/src/app/modules/backlogs/backlogs-page/styles/global_print.css
rename to frontend/src/app/features/backlogs/backlogs-page/styles/global_print.css
diff --git a/frontend/src/app/modules/backlogs/backlogs-page/styles/jqplot.css b/frontend/src/app/features/backlogs/backlogs-page/styles/jqplot.css
similarity index 100%
rename from frontend/src/app/modules/backlogs/backlogs-page/styles/jqplot.css
rename to frontend/src/app/features/backlogs/backlogs-page/styles/jqplot.css
diff --git a/frontend/src/app/modules/backlogs/backlogs-page/styles/master_backlog.sass b/frontend/src/app/features/backlogs/backlogs-page/styles/master_backlog.sass
similarity index 100%
rename from frontend/src/app/modules/backlogs/backlogs-page/styles/master_backlog.sass
rename to frontend/src/app/features/backlogs/backlogs-page/styles/master_backlog.sass
diff --git a/frontend/src/app/modules/backlogs/backlogs-page/styles/statistics.css b/frontend/src/app/features/backlogs/backlogs-page/styles/statistics.css
similarity index 100%
rename from frontend/src/app/modules/backlogs/backlogs-page/styles/statistics.css
rename to frontend/src/app/features/backlogs/backlogs-page/styles/statistics.css
diff --git a/frontend/src/app/modules/backlogs/backlogs-page/styles/taskboard.sass b/frontend/src/app/features/backlogs/backlogs-page/styles/taskboard.sass
similarity index 100%
rename from frontend/src/app/modules/backlogs/backlogs-page/styles/taskboard.sass
rename to frontend/src/app/features/backlogs/backlogs-page/styles/taskboard.sass
diff --git a/frontend/src/app/modules/backlogs/openproject-backlogs.module.ts b/frontend/src/app/features/backlogs/openproject-backlogs.module.ts
similarity index 88%
rename from frontend/src/app/modules/backlogs/openproject-backlogs.module.ts
rename to frontend/src/app/features/backlogs/openproject-backlogs.module.ts
index 785e03464a1..3e2bab6ab97 100644
--- a/frontend/src/app/modules/backlogs/openproject-backlogs.module.ts
+++ b/frontend/src/app/features/backlogs/openproject-backlogs.module.ts
@@ -28,8 +28,8 @@
import { NgModule } from '@angular/core';
import { UIRouterModule } from "@uirouter/angular";
-import { BacklogsPageComponent } from "core-app/modules/backlogs/backlogs-page/backlogs-page.component";
-import { BACKLOGS_ROUTES } from "core-app/modules/backlogs/openproject-backlogs.routes";
+import { BacklogsPageComponent } from "core-app/features/backlogs/backlogs-page/backlogs-page.component";
+import { BACKLOGS_ROUTES } from "core-app/features/backlogs/openproject-backlogs.routes";
@NgModule({
imports: [
diff --git a/frontend/src/app/modules/backlogs/openproject-backlogs.routes.ts b/frontend/src/app/features/backlogs/openproject-backlogs.routes.ts
similarity index 94%
rename from frontend/src/app/modules/backlogs/openproject-backlogs.routes.ts
rename to frontend/src/app/features/backlogs/openproject-backlogs.routes.ts
index 4f9b40047a1..abb3cc9bc07 100644
--- a/frontend/src/app/modules/backlogs/openproject-backlogs.routes.ts
+++ b/frontend/src/app/features/backlogs/openproject-backlogs.routes.ts
@@ -27,7 +27,7 @@
//++
import { Ng2StateDeclaration, UIRouter } from "@uirouter/angular";
-import { BacklogsPageComponent } from "core-app/modules/backlogs/backlogs-page/backlogs-page.component";
+import { BacklogsPageComponent } from "core-app/features/backlogs/backlogs-page/backlogs-page.component";
export const BACKLOGS_ROUTES:Ng2StateDeclaration[] = [
{
diff --git a/frontend/src/app/modules/bim/bcf/api/bcf-api-request.service.ts b/frontend/src/app/features/bim/bcf/api/bcf-api-request.service.ts
similarity index 93%
rename from frontend/src/app/modules/bim/bcf/api/bcf-api-request.service.ts
rename to frontend/src/app/features/bim/bcf/api/bcf-api-request.service.ts
index 922cc40fdf7..7bf8cebf276 100644
--- a/frontend/src/app/modules/bim/bcf/api/bcf-api-request.service.ts
+++ b/frontend/src/app/features/bim/bcf/api/bcf-api-request.service.ts
@@ -8,10 +8,10 @@ import {
HTTPClientOptions,
HTTPClientParamMap,
HTTPSupportedMethods
-} from "core-app/modules/hal/http/http.interfaces";
-import { URLParamsEncoder } from "core-app/modules/hal/services/url-params-encoder";
+} from "core-app/features/hal/http/http.interfaces";
import { catchError, map } from "rxjs/operators";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { URLParamsEncoder } from "core-app/features/hal/services/url-params-encoder";
export class BcfApiRequestService<T> {
@InjectField() http:HttpClient;
diff --git a/frontend/src/app/modules/bim/bcf/api/bcf-api.service.spec.ts b/frontend/src/app/features/bim/bcf/api/bcf-api.service.spec.ts
similarity index 96%
rename from frontend/src/app/modules/bim/bcf/api/bcf-api.service.spec.ts
rename to frontend/src/app/features/bim/bcf/api/bcf-api.service.spec.ts
index 205d73cdb6b..c310e5427e0 100644
--- a/frontend/src/app/modules/bim/bcf/api/bcf-api.service.spec.ts
+++ b/frontend/src/app/features/bim/bcf/api/bcf-api.service.spec.ts
@@ -27,9 +27,9 @@
//++
import { TestBed, waitForAsync } from "@angular/core/testing";
-import { BcfApiService } from "core-app/modules/bim/bcf/api/bcf-api.service";
-import { BcfResourceCollectionPath, BcfResourcePath } from "core-app/modules/bim/bcf/api/bcf-path-resources";
-import { BcfTopicPaths } from "core-app/modules/bim/bcf/api/topics/bcf-topic.paths";
+import { BcfApiService } from "core-app/features/bim/bcf/api/bcf-api.service";
+import { BcfResourceCollectionPath, BcfResourcePath } from "core-app/features/bim/bcf/api/bcf-path-resources";
+import { BcfTopicPaths } from "core-app/features/bim/bcf/api/topics/bcf-topic.paths";
describe('BcfApiService', function () {
let service:BcfApiService;
diff --git a/frontend/src/app/modules/bim/bcf/api/bcf-api.service.ts b/frontend/src/app/features/bim/bcf/api/bcf-api.service.ts
similarity index 93%
rename from frontend/src/app/modules/bim/bcf/api/bcf-api.service.ts
rename to frontend/src/app/features/bim/bcf/api/bcf-api.service.ts
index 52bad6924e1..168a7ef5319 100644
--- a/frontend/src/app/modules/bim/bcf/api/bcf-api.service.ts
+++ b/frontend/src/app/features/bim/bcf/api/bcf-api.service.ts
@@ -27,8 +27,8 @@
//++
import { Injectable, Injector } from "@angular/core";
-import { BcfResourceCollectionPath } from "core-app/modules/bim/bcf/api/bcf-path-resources";
-import { BcfProjectPaths } from "core-app/modules/bim/bcf/api/projects/bcf-project.paths";
+import { BcfResourceCollectionPath } from "core-app/features/bim/bcf/api/bcf-path-resources";
+import { BcfProjectPaths } from "core-app/features/bim/bcf/api/projects/bcf-project.paths";
@Injectable({ providedIn: 'root' })
diff --git a/frontend/src/app/modules/bim/bcf/api/bcf-authorization.service.ts b/frontend/src/app/features/bim/bcf/api/bcf-authorization.service.ts
similarity index 91%
rename from frontend/src/app/modules/bim/bcf/api/bcf-authorization.service.ts
rename to frontend/src/app/features/bim/bcf/api/bcf-authorization.service.ts
index 37e6453ff75..e6943454166 100644
--- a/frontend/src/app/modules/bim/bcf/api/bcf-authorization.service.ts
+++ b/frontend/src/app/features/bim/bcf/api/bcf-authorization.service.ts
@@ -1,6 +1,6 @@
import { multiInput } from "reactivestates";
-import { BcfExtensionResource } from "core-app/modules/bim/bcf/api/extensions/bcf-extension.resource";
-import { BcfApiService } from "core-app/modules/bim/bcf/api/bcf-api.service";
+import { BcfExtensionResource } from "core-app/features/bim/bcf/api/extensions/bcf-extension.resource";
+import { BcfApiService } from "core-app/features/bim/bcf/api/bcf-api.service";
import { Observable } from "rxjs";
import { map, take } from "rxjs/operators";
import { Injectable } from "@angular/core";
diff --git a/frontend/src/app/modules/bim/bcf/api/bcf-path-resources.ts b/frontend/src/app/features/bim/bcf/api/bcf-path-resources.ts
similarity index 95%
rename from frontend/src/app/modules/bim/bcf/api/bcf-path-resources.ts
rename to frontend/src/app/features/bim/bcf/api/bcf-path-resources.ts
index 9341098ad63..f9f7e764e67 100644
--- a/frontend/src/app/modules/bim/bcf/api/bcf-path-resources.ts
+++ b/frontend/src/app/features/bim/bcf/api/bcf-path-resources.ts
@@ -1,6 +1,6 @@
import { Injector } from "@angular/core";
import { Constructor } from "@angular/cdk/table";
-import { SimpleResource, SimpleResourceCollection } from "core-app/modules/apiv3/paths/path-resources";
+import { SimpleResource, SimpleResourceCollection } from "core-app/core/apiv3/paths/path-resources";
export class BcfResourcePath extends SimpleResource {
constructor(readonly injector:Injector,
diff --git a/frontend/src/app/modules/bim/bcf/api/extensions/bcf-extension.paths.ts b/frontend/src/app/features/bim/bcf/api/extensions/bcf-extension.paths.ts
similarity index 53%
rename from frontend/src/app/modules/bim/bcf/api/extensions/bcf-extension.paths.ts
rename to frontend/src/app/features/bim/bcf/api/extensions/bcf-extension.paths.ts
index ac7975dd654..7f1c7b3b0d9 100644
--- a/frontend/src/app/modules/bim/bcf/api/extensions/bcf-extension.paths.ts
+++ b/frontend/src/app/features/bim/bcf/api/extensions/bcf-extension.paths.ts
@@ -1,7 +1,7 @@
-import { BcfResourcePath } from "core-app/modules/bim/bcf/api/bcf-path-resources";
-import { BcfApiRequestService } from "core-app/modules/bim/bcf/api/bcf-api-request.service";
-import { HTTPClientHeaders, HTTPClientParamMap } from "core-app/modules/hal/http/http.interfaces";
-import { BcfExtensionResource } from "core-app/modules/bim/bcf/api/extensions/bcf-extension.resource";
+import { BcfResourcePath } from "core-app/features/bim/bcf/api/bcf-path-resources";
+import { BcfApiRequestService } from "core-app/features/bim/bcf/api/bcf-api-request.service";
+import { HTTPClientHeaders, HTTPClientParamMap } from "core-app/features/hal/http/http.interfaces";
+import { BcfExtensionResource } from "core-app/features/bim/bcf/api/extensions/bcf-extension.resource";
export class BcfExtensionPaths extends BcfResourcePath {
readonly bcfExtensionService = new BcfApiRequestService(this.injector, BcfExtensionResource);
diff --git a/frontend/src/app/modules/bim/bcf/api/extensions/bcf-extension.resource.ts b/frontend/src/app/features/bim/bcf/api/extensions/bcf-extension.resource.ts
similarity index 100%
rename from frontend/src/app/modules/bim/bcf/api/extensions/bcf-extension.resource.ts
rename to frontend/src/app/features/bim/bcf/api/extensions/bcf-extension.resource.ts
diff --git a/frontend/src/app/modules/bim/bcf/api/projects/bcf-project.paths.ts b/frontend/src/app/features/bim/bcf/api/projects/bcf-project.paths.ts
similarity index 51%
rename from frontend/src/app/modules/bim/bcf/api/projects/bcf-project.paths.ts
rename to frontend/src/app/features/bim/bcf/api/projects/bcf-project.paths.ts
index 633997c9c40..397ee20f46c 100644
--- a/frontend/src/app/modules/bim/bcf/api/projects/bcf-project.paths.ts
+++ b/frontend/src/app/features/bim/bcf/api/projects/bcf-project.paths.ts
@@ -1,9 +1,9 @@
-import { BcfResourcePath } from "core-app/modules/bim/bcf/api/bcf-path-resources";
-import { BcfApiRequestService } from "core-app/modules/bim/bcf/api/bcf-api-request.service";
-import { BcfProjectResource } from "core-app/modules/bim/bcf/api/projects/bcf-project.resource";
-import { HTTPClientHeaders, HTTPClientParamMap } from "core-app/modules/hal/http/http.interfaces";
-import { BcfTopicCollectionPath } from "core-app/modules/bim/bcf/api/topics/bcf-viewpoint-collection.paths";
-import { BcfExtensionPaths } from "core-app/modules/bim/bcf/api/extensions/bcf-extension.paths";
+import { BcfResourcePath } from "core-app/features/bim/bcf/api/bcf-path-resources";
+import { BcfApiRequestService } from "core-app/features/bim/bcf/api/bcf-api-request.service";
+import { BcfProjectResource } from "core-app/features/bim/bcf/api/projects/bcf-project.resource";
+import { HTTPClientHeaders, HTTPClientParamMap } from "core-app/features/hal/http/http.interfaces";
+import { BcfTopicCollectionPath } from "core-app/features/bim/bcf/api/topics/bcf-viewpoint-collection.paths";
+import { BcfExtensionPaths } from "core-app/features/bim/bcf/api/extensions/bcf-extension.paths";
export class BcfProjectPaths extends BcfResourcePath {
readonly bcfProjectService = new BcfApiRequestService(this.injector, BcfProjectResource);
diff --git a/frontend/src/app/modules/bim/bcf/api/projects/bcf-project.resource.ts b/frontend/src/app/features/bim/bcf/api/projects/bcf-project.resource.ts
similarity index 100%
rename from frontend/src/app/modules/bim/bcf/api/projects/bcf-project.resource.ts
rename to frontend/src/app/features/bim/bcf/api/projects/bcf-project.resource.ts
diff --git a/frontend/src/app/modules/bim/bcf/api/topics/bcf-topic.paths.ts b/frontend/src/app/features/bim/bcf/api/topics/bcf-topic.paths.ts
similarity index 58%
rename from frontend/src/app/modules/bim/bcf/api/topics/bcf-topic.paths.ts
rename to frontend/src/app/features/bim/bcf/api/topics/bcf-topic.paths.ts
index 281afec358e..c096c904729 100644
--- a/frontend/src/app/modules/bim/bcf/api/topics/bcf-topic.paths.ts
+++ b/frontend/src/app/features/bim/bcf/api/topics/bcf-topic.paths.ts
@@ -1,9 +1,9 @@
-import { HTTPClientHeaders, HTTPClientParamMap } from "core-app/modules/hal/http/http.interfaces";
-import { BcfResourceCollectionPath, BcfResourcePath } from "core-app/modules/bim/bcf/api/bcf-path-resources";
-import { BcfTopicResource } from "core-app/modules/bim/bcf/api/topics/bcf-topic.resource";
-import { BcfApiRequestService } from "core-app/modules/bim/bcf/api/bcf-api-request.service";
-import { BcfViewpointPaths } from "core-app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.paths";
-import { BcfViewpointCollectionPath } from "core-app/modules/bim/bcf/api/viewpoints/bcf-viewpoint-collection.paths";
+import { BcfResourceCollectionPath, BcfResourcePath } from "core-app/features/bim/bcf/api/bcf-path-resources";
+import { BcfTopicResource } from "core-app/features/bim/bcf/api/topics/bcf-topic.resource";
+import { BcfApiRequestService } from "core-app/features/bim/bcf/api/bcf-api-request.service";
+import { BcfViewpointPaths } from "core-app/features/bim/bcf/api/viewpoints/bcf-viewpoint.paths";
+import { BcfViewpointCollectionPath } from "core-app/features/bim/bcf/api/viewpoints/bcf-viewpoint-collection.paths";
+import { HTTPClientHeaders, HTTPClientParamMap } from "core-app/features/hal/http/http.interfaces";
export class BcfTopicPaths extends BcfResourcePath {
readonly bcfTopicService = new BcfApiRequestService(this.injector, BcfTopicResource);
diff --git a/frontend/src/app/modules/bim/bcf/api/topics/bcf-topic.resource.spec.ts b/frontend/src/app/features/bim/bcf/api/topics/bcf-topic.resource.spec.ts
similarity index 94%
rename from frontend/src/app/modules/bim/bcf/api/topics/bcf-topic.resource.spec.ts
rename to frontend/src/app/features/bim/bcf/api/topics/bcf-topic.resource.spec.ts
index 4c459609864..8331313e883 100644
--- a/frontend/src/app/modules/bim/bcf/api/topics/bcf-topic.resource.spec.ts
+++ b/frontend/src/app/features/bim/bcf/api/topics/bcf-topic.resource.spec.ts
@@ -1,5 +1,5 @@
import { TypedJSON } from "typedjson";
-import { BcfTopicResource } from "core-app/modules/bim/bcf/api/topics/bcf-topic.resource";
+import { BcfTopicResource } from "core-app/features/bim/bcf/api/topics/bcf-topic.resource";
import * as moment from 'moment';
export const topic_object = {
diff --git a/frontend/src/app/modules/bim/bcf/api/topics/bcf-topic.resource.ts b/frontend/src/app/features/bim/bcf/api/topics/bcf-topic.resource.ts
similarity index 100%
rename from frontend/src/app/modules/bim/bcf/api/topics/bcf-topic.resource.ts
rename to frontend/src/app/features/bim/bcf/api/topics/bcf-topic.resource.ts
diff --git a/frontend/src/app/modules/bim/bcf/api/topics/bcf-viewpoint-collection.paths.ts b/frontend/src/app/features/bim/bcf/api/topics/bcf-viewpoint-collection.paths.ts
similarity index 68%
rename from frontend/src/app/modules/bim/bcf/api/topics/bcf-viewpoint-collection.paths.ts
rename to frontend/src/app/features/bim/bcf/api/topics/bcf-viewpoint-collection.paths.ts
index c81a80e8cd8..cb003d196ad 100644
--- a/frontend/src/app/modules/bim/bcf/api/topics/bcf-viewpoint-collection.paths.ts
+++ b/frontend/src/app/features/bim/bcf/api/topics/bcf-viewpoint-collection.paths.ts
@@ -1,10 +1,10 @@
-import { BcfResourceCollectionPath } from "core-app/modules/bim/bcf/api/bcf-path-resources";
-import { BcfApiRequestService } from "core-app/modules/bim/bcf/api/bcf-api-request.service";
-import { HTTPClientHeaders, HTTPClientParamMap } from "core-app/modules/hal/http/http.interfaces";
+import { BcfResourceCollectionPath } from "core-app/features/bim/bcf/api/bcf-path-resources";
+import { BcfApiRequestService } from "core-app/features/bim/bcf/api/bcf-api-request.service";
+import { HTTPClientHeaders, HTTPClientParamMap } from "core-app/features/hal/http/http.interfaces";
import { Observable } from "rxjs";
-import { BcfTopicPaths } from "core-app/modules/bim/bcf/api/topics/bcf-topic.paths";
+import { BcfTopicPaths } from "core-app/features/bim/bcf/api/topics/bcf-topic.paths";
import { Injector } from "@angular/core";
-import { BcfTopicResource } from "core-app/modules/bim/bcf/api/topics/bcf-topic.resource";
+import { BcfTopicResource } from "core-app/features/bim/bcf/api/topics/bcf-topic.resource";
export class BcfTopicCollectionPath extends BcfResourceCollectionPath<BcfTopicPaths> {
readonly bcfTopicService = new BcfApiRequestService<BcfTopicResource>(this.injector, BcfTopicResource);
diff --git a/frontend/src/app/modules/bim/bcf/api/viewpoints/bcf-viewpoint-collection.paths.ts b/frontend/src/app/features/bim/bcf/api/viewpoints/bcf-viewpoint-collection.paths.ts
similarity index 58%
rename from frontend/src/app/modules/bim/bcf/api/viewpoints/bcf-viewpoint-collection.paths.ts
rename to frontend/src/app/features/bim/bcf/api/viewpoints/bcf-viewpoint-collection.paths.ts
index 2336037cedc..3907ffd1572 100644
--- a/frontend/src/app/modules/bim/bcf/api/viewpoints/bcf-viewpoint-collection.paths.ts
+++ b/frontend/src/app/features/bim/bcf/api/viewpoints/bcf-viewpoint-collection.paths.ts
@@ -1,9 +1,9 @@
-import { BcfResourceCollectionPath } from "core-app/modules/bim/bcf/api/bcf-path-resources";
-import { BcfApiRequestService } from "core-app/modules/bim/bcf/api/bcf-api-request.service";
-import { BcfViewpointInterface } from "core-app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.interface";
-import { HTTPClientHeaders, HTTPClientParamMap } from "core-app/modules/hal/http/http.interfaces";
+import { BcfResourceCollectionPath } from "core-app/features/bim/bcf/api/bcf-path-resources";
+import { BcfApiRequestService } from "core-app/features/bim/bcf/api/bcf-api-request.service";
+import { BcfViewpointInterface } from "core-app/features/bim/bcf/api/viewpoints/bcf-viewpoint.interface";
+import { HTTPClientHeaders, HTTPClientParamMap } from "core-app/features/hal/http/http.interfaces";
import { Observable } from "rxjs";
-import { BcfViewpointPaths } from "core-app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.paths";
+import { BcfViewpointPaths } from "core-app/features/bim/bcf/api/viewpoints/bcf-viewpoint.paths";
export class BcfViewpointCollectionPath extends BcfResourceCollectionPath<BcfViewpointPaths> {
readonly bcfTopicService = new BcfApiRequestService<BcfViewpointInterface>(this.injector);
diff --git a/frontend/src/app/modules/bim/bcf/api/viewpoints/bcf-viewpoint-item.interface.ts b/frontend/src/app/features/bim/bcf/api/viewpoints/bcf-viewpoint-item.interface.ts
similarity index 70%
rename from frontend/src/app/modules/bim/bcf/api/viewpoints/bcf-viewpoint-item.interface.ts
rename to frontend/src/app/features/bim/bcf/api/viewpoints/bcf-viewpoint-item.interface.ts
index 62d0a16b99a..b79e92b6053 100644
--- a/frontend/src/app/modules/bim/bcf/api/viewpoints/bcf-viewpoint-item.interface.ts
+++ b/frontend/src/app/features/bim/bcf/api/viewpoints/bcf-viewpoint-item.interface.ts
@@ -1,4 +1,4 @@
-import { BcfViewpointInterface } from "core-app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.interface";
+import { BcfViewpointInterface } from "core-app/features/bim/bcf/api/viewpoints/bcf-viewpoint.interface";
export interface BcfViewpointItem {
/** The URL of the viewpoint, if persisted */
diff --git a/frontend/src/app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.interface.ts b/frontend/src/app/features/bim/bcf/api/viewpoints/bcf-viewpoint.interface.ts
similarity index 100%
rename from frontend/src/app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.interface.ts
rename to frontend/src/app/features/bim/bcf/api/viewpoints/bcf-viewpoint.interface.ts
diff --git a/frontend/src/app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.paths.ts b/frontend/src/app/features/bim/bcf/api/viewpoints/bcf-viewpoint.paths.ts
similarity index 60%
rename from frontend/src/app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.paths.ts
rename to frontend/src/app/features/bim/bcf/api/viewpoints/bcf-viewpoint.paths.ts
index db9574b646b..74962a1d73d 100644
--- a/frontend/src/app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.paths.ts
+++ b/frontend/src/app/features/bim/bcf/api/viewpoints/bcf-viewpoint.paths.ts
@@ -1,7 +1,7 @@
-import { HTTPClientHeaders, HTTPClientParamMap } from "core-app/modules/hal/http/http.interfaces";
-import { BcfResourcePath } from "core-app/modules/bim/bcf/api/bcf-path-resources";
-import { BcfApiRequestService } from "core-app/modules/bim/bcf/api/bcf-api-request.service";
-import { BcfViewpointInterface } from "core-app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.interface";
+import { HTTPClientHeaders, HTTPClientParamMap } from "core-app/features/hal/http/http.interfaces";
+import { BcfResourcePath } from "core-app/features/bim/bcf/api/bcf-path-resources";
+import { BcfApiRequestService } from "core-app/features/bim/bcf/api/bcf-api-request.service";
+import { BcfViewpointInterface } from "core-app/features/bim/bcf/api/viewpoints/bcf-viewpoint.interface";
export class BcfViewpointPaths extends BcfResourcePath {
readonly bcfTopicService = new BcfApiRequestService<BcfViewpointInterface>(this.injector);
diff --git a/frontend/src/app/modules/bim/bcf/bcf-constants.const.ts b/frontend/src/app/features/bim/bcf/bcf-constants.const.ts
similarity index 100%
rename from frontend/src/app/modules/bim/bcf/bcf-constants.const.ts
rename to frontend/src/app/features/bim/bcf/bcf-constants.const.ts
diff --git a/frontend/src/app/modules/bim/bcf/bcf-viewer-bridge/viewer-bridge.service.ts b/frontend/src/app/features/bim/bcf/bcf-viewer-bridge/viewer-bridge.service.ts
similarity index 80%
rename from frontend/src/app/modules/bim/bcf/bcf-viewer-bridge/viewer-bridge.service.ts
rename to frontend/src/app/features/bim/bcf/bcf-viewer-bridge/viewer-bridge.service.ts
index f7dc2a10e33..d96edbdde8b 100644
--- a/frontend/src/app/modules/bim/bcf/bcf-viewer-bridge/viewer-bridge.service.ts
+++ b/frontend/src/app/features/bim/bcf/bcf-viewer-bridge/viewer-bridge.service.ts
@@ -1,8 +1,8 @@
import { Injector, Injectable } from '@angular/core';
-import { BcfViewpointInterface } from "core-app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.interface";
+import { BcfViewpointInterface } from "core-app/features/bim/bcf/api/viewpoints/bcf-viewpoint.interface";
import { Observable } from "rxjs";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
import { StateService } from "@uirouter/core";
diff --git a/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.ts b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.ts
similarity index 86%
rename from frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.ts
rename to frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.ts
index f86c1100cdd..336f98d92a5 100644
--- a/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.ts
+++ b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.ts
@@ -1,10 +1,10 @@
import { ChangeDetectionStrategy, Component } from "@angular/core";
-import { BcfWpAttributeGroupComponent } from "core-app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component";
+import { BcfWpAttributeGroupComponent } from "core-app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component";
import { take, switchMap } from "rxjs/operators";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { forkJoin } from "rxjs";
-import { BcfViewpointInterface } from "core-app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.interface";
-import { BcfViewpointItem } from "core-app/modules/bim/bcf/api/viewpoints/bcf-viewpoint-item.interface";
+import { BcfViewpointInterface } from "core-app/features/bim/bcf/api/viewpoints/bcf-viewpoint.interface";
+import { BcfViewpointItem } from "core-app/features/bim/bcf/api/viewpoints/bcf-viewpoint-item.interface";
@Component({
diff --git a/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.html b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.html
similarity index 100%
rename from frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.html
rename to frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.html
diff --git a/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.sass b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.sass
similarity index 100%
rename from frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.sass
rename to frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.sass
diff --git a/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts
similarity index 89%
rename from frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts
rename to frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts
index d42e2c9bf32..8d628629fdb 100644
--- a/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts
+++ b/frontend/src/app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts
@@ -9,18 +9,18 @@ import {
ViewChild
} from "@angular/core";
import { StateService } from "@uirouter/core";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { NgxGalleryComponent, NgxGalleryOptions } from '@kolkov/ngx-gallery';
-import { HalLink } from "core-app/modules/hal/hal-link/hal-link";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { ViewerBridgeService } from "core-app/modules/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { WorkPackageCreateService } from "core-components/wp-new/wp-create.service";
-import { BcfAuthorizationService } from "core-app/modules/bim/bcf/api/bcf-authorization.service";
-import { ViewpointsService } from "core-app/modules/bim/bcf/helper/viewpoints.service";
-import { BcfViewpointItem } from "core-app/modules/bim/bcf/api/viewpoints/bcf-viewpoint-item.interface";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { HalLink } from "core-app/features/hal/hal-link/hal-link";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { ViewerBridgeService } from "core-app/features/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { WorkPackageCreateService } from "core-app/features/work-packages/components/wp-new/wp-create.service";
+import { BcfAuthorizationService } from "core-app/features/bim/bcf/api/bcf-authorization.service";
+import { ViewpointsService } from "core-app/features/bim/bcf/helper/viewpoints.service";
+import { BcfViewpointItem } from "core-app/features/bim/bcf/api/viewpoints/bcf-viewpoint-item.interface";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Component({
diff --git a/frontend/src/app/modules/bim/bcf/fields/display/bcf-thumbnail-field.module.ts b/frontend/src/app/features/bim/bcf/fields/display/bcf-thumbnail-field.module.ts
similarity index 86%
rename from frontend/src/app/modules/bim/bcf/fields/display/bcf-thumbnail-field.module.ts
rename to frontend/src/app/features/bim/bcf/fields/display/bcf-thumbnail-field.module.ts
index 04aa0b3855c..e0736a10831 100644
--- a/frontend/src/app/modules/bim/bcf/fields/display/bcf-thumbnail-field.module.ts
+++ b/frontend/src/app/features/bim/bcf/fields/display/bcf-thumbnail-field.module.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { BcfPathHelperService } from "core-app/modules/bim/bcf/helper/bcf-path-helper.service";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { BcfPathHelperService } from "core-app/features/bim/bcf/helper/bcf-path-helper.service";
export class BcfThumbnailDisplayField extends DisplayField {
@InjectField() bcfPathHelper:BcfPathHelperService;
diff --git a/frontend/src/app/modules/bim/bcf/helper/bcf-detector.service.ts b/frontend/src/app/features/bim/bcf/helper/bcf-detector.service.ts
similarity index 100%
rename from frontend/src/app/modules/bim/bcf/helper/bcf-detector.service.ts
rename to frontend/src/app/features/bim/bcf/helper/bcf-detector.service.ts
diff --git a/frontend/src/app/modules/bim/bcf/helper/bcf-path-helper.service.ts b/frontend/src/app/features/bim/bcf/helper/bcf-path-helper.service.ts
similarity index 92%
rename from frontend/src/app/modules/bim/bcf/helper/bcf-path-helper.service.ts
rename to frontend/src/app/features/bim/bcf/helper/bcf-path-helper.service.ts
index 6ec25b9c8d8..ae7243c1970 100644
--- a/frontend/src/app/modules/bim/bcf/helper/bcf-path-helper.service.ts
+++ b/frontend/src/app/features/bim/bcf/helper/bcf-path-helper.service.ts
@@ -27,8 +27,8 @@
//++
import { Injectable } from '@angular/core';
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { HalLink } from "core-app/modules/hal/hal-link/hal-link";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { HalLink } from "core-app/features/hal/hal-link/hal-link";
@Injectable()
export class BcfPathHelperService {
diff --git a/frontend/src/app/modules/bim/bcf/helper/viewpoints.service.ts b/frontend/src/app/features/bim/bcf/helper/viewpoints.service.ts
similarity index 80%
rename from frontend/src/app/modules/bim/bcf/helper/viewpoints.service.ts
rename to frontend/src/app/features/bim/bcf/helper/viewpoints.service.ts
index 0a6de6238b3..b0b14757777 100644
--- a/frontend/src/app/modules/bim/bcf/helper/viewpoints.service.ts
+++ b/frontend/src/app/features/bim/bcf/helper/viewpoints.service.ts
@@ -1,14 +1,14 @@
import { Injectable, Injector } from '@angular/core';
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { BcfApiService } from "core-app/modules/bim/bcf/api/bcf-api.service";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { BcfViewpointPaths } from "core-app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.paths";
-import { ViewerBridgeService } from "core-app/modules/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { BcfApiService } from "core-app/features/bim/bcf/api/bcf-api.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { BcfViewpointPaths } from "core-app/features/bim/bcf/api/viewpoints/bcf-viewpoint.paths";
+import { ViewerBridgeService } from "core-app/features/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
import { switchMap, map, tap } from 'rxjs/operators';
import { of, forkJoin, Observable } from 'rxjs';
-import { BcfViewpointInterface } from "core-app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.interface";
-import { BcfTopicResource } from "core-app/modules/bim/bcf/api/topics/bcf-topic.resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { BcfViewpointInterface } from "core-app/features/bim/bcf/api/viewpoints/bcf-viewpoint.interface";
+import { BcfTopicResource } from "core-app/features/bim/bcf/api/topics/bcf-topic.resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Injectable()
diff --git a/frontend/src/app/modules/bim/bcf/openproject-bcf.module.ts b/frontend/src/app/features/bim/bcf/openproject-bcf.module.ts
similarity index 67%
rename from frontend/src/app/modules/bim/bcf/openproject-bcf.module.ts
rename to frontend/src/app/features/bim/bcf/openproject-bcf.module.ts
index d0d38e44572..211b01515ce 100644
--- a/frontend/src/app/modules/bim/bcf/openproject-bcf.module.ts
+++ b/frontend/src/app/features/bim/bcf/openproject-bcf.module.ts
@@ -27,24 +27,24 @@
//++
import { Injector, NgModule } from '@angular/core';
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
+import { OPSharedModule } from "core-app/shared/shared.module";
import { NgxGalleryModule } from "@kolkov/ngx-gallery";
-import { DisplayFieldService } from "core-app/modules/fields/display/display-field.service";
-import { BcfThumbnailDisplayField } from "core-app/modules/bim/bcf/fields/display/bcf-thumbnail-field.module";
+import { DisplayFieldService } from "core-app/shared/components/fields/display/display-field.service";
+import { BcfThumbnailDisplayField } from "core-app/features/bim/bcf/fields/display/bcf-thumbnail-field.module";
import { HTTP_INTERCEPTORS } from "@angular/common/http";
-import { OpenProjectHeaderInterceptor } from "core-app/modules/hal/http/openproject-header-interceptor";
-import { BcfDetectorService } from "core-app/modules/bim/bcf/helper/bcf-detector.service";
-import { BcfPathHelperService } from "core-app/modules/bim/bcf/helper/bcf-path-helper.service";
-import { ViewpointsService } from "core-app/modules/bim/bcf/helper/viewpoints.service";
-import { BcfImportButtonComponent } from "core-app/modules/bim/ifc_models/toolbar/import-export-bcf/bcf-import-button.component";
-import { BcfExportButtonComponent } from "core-app/modules/bim/ifc_models/toolbar/import-export-bcf/bcf-export-button.component";
-import { IFCViewerService } from "core-app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.service";
-import { ViewerBridgeService } from "core-app/modules/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
-import { HookService } from "core-app/modules/plugins/hook-service";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { BcfWpAttributeGroupComponent } from "core-app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component";
-import { BcfNewWpAttributeGroupComponent } from "core-app/modules/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component";
-import { RevitBridgeService } from "core-app/modules/bim/revit_add_in/revit-bridge.service";
+import { BcfDetectorService } from "core-app/features/bim/bcf/helper/bcf-detector.service";
+import { BcfPathHelperService } from "core-app/features/bim/bcf/helper/bcf-path-helper.service";
+import { ViewpointsService } from "core-app/features/bim/bcf/helper/viewpoints.service";
+import { BcfImportButtonComponent } from "core-app/features/bim/ifc_models/toolbar/import-export-bcf/bcf-import-button.component";
+import { BcfExportButtonComponent } from "core-app/features/bim/ifc_models/toolbar/import-export-bcf/bcf-export-button.component";
+import { IFCViewerService } from "core-app/features/bim/ifc_models/ifc-viewer/ifc-viewer.service";
+import { ViewerBridgeService } from "core-app/features/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
+import { HookService } from "core-app/features/plugins/hook-service";
+import { BcfWpAttributeGroupComponent } from "core-app/features/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component";
+import { BcfNewWpAttributeGroupComponent } from "core-app/features/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component";
+import { RevitBridgeService } from "core-app/features/bim/revit_add_in/revit-bridge.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { OpenProjectHeaderInterceptor } from "core-app/features/hal/http/openproject-header-interceptor";
/**
* Determines based on the current user agent whether
@@ -62,7 +62,7 @@ export const viewerBridgeServiceFactory = (injector:Injector) => {
@NgModule({
imports: [
- OpenprojectCommonModule,
+ OPSharedModule,
NgxGalleryModule,
],
providers: [
diff --git a/frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.html b/frontend/src/app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component.html
similarity index 100%
rename from frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.html
rename to frontend/src/app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component.html
diff --git a/frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.sass b/frontend/src/app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component.sass
similarity index 92%
rename from frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.sass
rename to frontend/src/app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component.sass
index acfc13077fb..2d0a8cd1acf 100644
--- a/frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.sass
+++ b/frontend/src/app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component.sass
@@ -1,4 +1,4 @@
-@import "helpers"
+@import "src/assets/sass/helpers"
.result-overlay
@include overlay-background
diff --git a/frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.ts b/frontend/src/app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component.ts
similarity index 72%
rename from frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.ts
rename to frontend/src/app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component.ts
index 962ecc8f3b4..e2a55dd1944 100644
--- a/frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.ts
+++ b/frontend/src/app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component.ts
@@ -1,20 +1,20 @@
import { ChangeDetectionStrategy, Component, OnInit, NgZone } from "@angular/core";
-import { WorkPackageListViewComponent } from "core-app/modules/work_packages/routing/wp-list-view/wp-list-view.component";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { DragAndDropService } from "core-app/modules/common/drag-and-drop/drag-and-drop.service";
-import { CausedUpdatesService } from "core-app/modules/boards/board/caused-updates/caused-updates.service";
-import { bimSplitViewCardsIdentifier, bimSplitViewListIdentifier, bimListViewIdentifier, BimViewService } from "core-app/modules/bim/ifc_models/pages/viewer/bim-view.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { IfcModelsDataService } from "core-app/modules/bim/ifc_models/pages/viewer/ifc-models-data.service";
-import { WorkPackageViewColumnsService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service';
+import { WorkPackageListViewComponent } from "core-app/features/work-packages/routing/wp-list-view/wp-list-view.component";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { DragAndDropService } from "core-app/shared/helpers/drag-and-drop/drag-and-drop.service";
+import { CausedUpdatesService } from "core-app/features/boards/board/caused-updates/caused-updates.service";
+import { bimSplitViewCardsIdentifier, bimSplitViewListIdentifier, bimListViewIdentifier, BimViewService } from "core-app/features/bim/ifc_models/pages/viewer/bim-view.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { IfcModelsDataService } from "core-app/features/bim/ifc_models/pages/viewer/ifc-models-data.service";
+import { WorkPackageViewColumnsService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service';
import { UIRouterGlobals } from '@uirouter/core';
import { pluck, distinctUntilChanged } from "rxjs/operators";
-import { States } from "core-components/states.service";
-import { BcfApiService } from "core-app/modules/bim/bcf/api/bcf-api.service";
-import { splitViewRoute } from "core-app/modules/work_packages/routing/split-view-routes.helper";
-import { ViewerBridgeService } from "core-app/modules/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
+import { States } from "core-app/core/states/states.service";
+import { BcfApiService } from "core-app/features/bim/bcf/api/bcf-api.service";
+import { splitViewRoute } from "core-app/features/work-packages/routing/split-view-routes.helper";
+import { ViewerBridgeService } from "core-app/features/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
@Component({
templateUrl: './bcf-list-container.component.html',
diff --git a/frontend/src/app/modules/bim/ifc_models/bcf/new-split/bcf-new-split.component.html b/frontend/src/app/features/bim/ifc_models/bcf/new-split/bcf-new-split.component.html
similarity index 100%
rename from frontend/src/app/modules/bim/ifc_models/bcf/new-split/bcf-new-split.component.html
rename to frontend/src/app/features/bim/ifc_models/bcf/new-split/bcf-new-split.component.html
diff --git a/frontend/src/app/modules/bim/ifc_models/bcf/new-split/bcf-new-split.component.ts b/frontend/src/app/features/bim/ifc_models/bcf/new-split/bcf-new-split.component.ts
similarity index 80%
rename from frontend/src/app/modules/bim/ifc_models/bcf/new-split/bcf-new-split.component.ts
rename to frontend/src/app/features/bim/ifc_models/bcf/new-split/bcf-new-split.component.ts
index a049e245cf4..57808675154 100644
--- a/frontend/src/app/modules/bim/ifc_models/bcf/new-split/bcf-new-split.component.ts
+++ b/frontend/src/app/features/bim/ifc_models/bcf/new-split/bcf-new-split.component.ts
@@ -26,11 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageCreateComponent } from 'core-components/wp-new/wp-create.component';
+import { WorkPackageCreateComponent } from 'core-app/features/work-packages/components/wp-new/wp-create.component';
import { Component } from '@angular/core';
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { IFCViewerService } from "core-app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { IFCViewerService } from "core-app/features/bim/ifc_models/ifc-viewer/ifc-viewer.service";
@Component({
selector: 'bcf-new-split',
diff --git a/frontend/src/app/modules/bim/ifc_models/empty/empty-component.ts b/frontend/src/app/features/bim/ifc_models/empty/empty-component.ts
similarity index 100%
rename from frontend/src/app/modules/bim/ifc_models/empty/empty-component.ts
rename to frontend/src/app/features/bim/ifc_models/empty/empty-component.ts
diff --git a/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.component.html b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.html
similarity index 100%
rename from frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.component.html
rename to frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.html
diff --git a/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass
similarity index 96%
rename from frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass
rename to frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass
index 95e0a0a382b..cf13925b896 100644
--- a/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass
+++ b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass
@@ -1,4 +1,4 @@
-@import "helpers"
+@import "src/assets/sass/helpers"
.ifc-model-viewer
height: 100%
diff --git a/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts
similarity index 90%
rename from frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts
rename to frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts
index 5592e67004e..2515712232a 100644
--- a/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts
+++ b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component.ts
@@ -35,11 +35,11 @@ import {
OnInit,
ViewChild
} from '@angular/core';
-import { IFCViewerService } from "core-app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.service";
-import { IfcModelsDataService } from "core-app/modules/bim/ifc_models/pages/viewer/ifc-models-data.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { CurrentUserService } from "core-app/modules/current-user/current-user.service";
-import { CurrentProjectService } from "core-app/components/projects/current-project.service";
+import { IFCViewerService } from "core-app/features/bim/ifc_models/ifc-viewer/ifc-viewer.service";
+import { IfcModelsDataService } from "core-app/features/bim/ifc_models/pages/viewer/ifc-models-data.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { CurrentUserService } from "core-app/core/current-user/current-user.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
@Component({
selector: 'ifc-viewer',
diff --git a/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts
similarity index 85%
rename from frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts
rename to frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts
index 65a64598f83..026689d14a1 100644
--- a/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts
+++ b/frontend/src/app/features/bim/ifc_models/ifc-viewer/ifc-viewer.service.ts
@@ -1,14 +1,14 @@
import { Injectable, Inject, Injector } from '@angular/core';
-import { XeokitServer } from "core-app/modules/bim/ifc_models/xeokit/xeokit-server";
-import { BcfViewpointInterface } from "core-app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.interface";
-import { ViewerBridgeService } from "core-app/modules/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
+import { XeokitServer } from "core-app/features/bim/ifc_models/xeokit/xeokit-server";
+import { BcfViewpointInterface } from "core-app/features/bim/bcf/api/viewpoints/bcf-viewpoint.interface";
+import { ViewerBridgeService } from "core-app/features/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
import { BehaviorSubject, Observable, Subject , of } from "rxjs";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { BcfApiService } from "core-app/modules/bim/bcf/api/bcf-api.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { ViewpointsService } from "core-app/modules/bim/bcf/helper/viewpoints.service";
-import { CurrentProjectService} from "core-app/components/projects/current-project.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { BcfApiService } from "core-app/features/bim/bcf/api/bcf-api.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { ViewpointsService } from "core-app/features/bim/bcf/helper/viewpoints.service";
+import { CurrentProjectService} from "core-app/core/current-project/current-project.service";
import { HttpClient } from "@angular/common/http";
diff --git a/frontend/src/app/modules/bim/ifc_models/openproject-ifc-models.module.ts b/frontend/src/app/features/bim/ifc_models/openproject-ifc-models.module.ts
similarity index 53%
rename from frontend/src/app/modules/bim/ifc_models/openproject-ifc-models.module.ts
rename to frontend/src/app/features/bim/ifc_models/openproject-ifc-models.module.ts
index e22fc99f6bf..33e74798da5 100644
--- a/frontend/src/app/modules/bim/ifc_models/openproject-ifc-models.module.ts
+++ b/frontend/src/app/features/bim/ifc_models/openproject-ifc-models.module.ts
@@ -26,28 +26,28 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
import { NgModule } from "@angular/core";
-import { OpenprojectWorkPackagesModule } from "core-app/modules/work_packages/openproject-work-packages.module";
+import { OpenprojectWorkPackagesModule } from "core-app/features/work-packages/openproject-work-packages.module";
import { UIRouterModule } from '@uirouter/angular';
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
+import { OPSharedModule } from "core-app/shared/shared.module";
import { IFCViewerComponent } from './ifc-viewer/ifc-viewer.component';
-import { IFC_ROUTES } from "core-app/modules/bim/ifc_models/openproject-ifc-models.routes";
-import { IFCViewerPageComponent } from "core-app/modules/bim/ifc_models/pages/viewer/ifc-viewer-page.component";
-import { EmptyComponent } from "core-app/modules/bim/ifc_models/empty/empty-component";
-import { BimViewToggleButtonComponent } from "core-app/modules/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-button.component";
-import { BimViewToggleDropdownDirective } from "core-app/modules/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-dropdown.directive";
-import { BimManageIfcModelsButtonComponent } from "core-app/modules/bim/ifc_models/toolbar/manage-ifc-models-button/bim-manage-ifc-models-button.component";
-import { IFCViewerService } from "core-app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.service";
-import { OpenprojectFieldsModule } from "core-app/modules/fields/openproject-fields.module";
-import { BCFNewSplitComponent } from "core-app/modules/bim/ifc_models/bcf/new-split/bcf-new-split.component";
-import { BcfListContainerComponent } from "core-app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component";
-import { OpenprojectHalModule } from "core-app/modules/hal/openproject-hal.module";
-import { BimViewService } from "core-app/modules/bim/ifc_models/pages/viewer/bim-view.service";
-import { IfcModelsDataService } from "core-app/modules/bim/ifc_models/pages/viewer/ifc-models-data.service";
-import { OpenprojectBcfModule } from "core-app/modules/bim/bcf/openproject-bcf.module";
+import { IFC_ROUTES } from "core-app/features/bim/ifc_models/openproject-ifc-models.routes";
+import { IFCViewerPageComponent } from "core-app/features/bim/ifc_models/pages/viewer/ifc-viewer-page.component";
+import { EmptyComponent } from "core-app/features/bim/ifc_models/empty/empty-component";
+import { BimViewToggleButtonComponent } from "core-app/features/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-button.component";
+import { BimViewToggleDropdownDirective } from "core-app/features/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-dropdown.directive";
+import { BimManageIfcModelsButtonComponent } from "core-app/features/bim/ifc_models/toolbar/manage-ifc-models-button/bim-manage-ifc-models-button.component";
+import { IFCViewerService } from "core-app/features/bim/ifc_models/ifc-viewer/ifc-viewer.service";
+import { OpenprojectFieldsModule } from "core-app/shared/components/fields/openproject-fields.module";
+import { BCFNewSplitComponent } from "core-app/features/bim/ifc_models/bcf/new-split/bcf-new-split.component";
+import { BcfListContainerComponent } from "core-app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component";
+import { BimViewService } from "core-app/features/bim/ifc_models/pages/viewer/bim-view.service";
+import { IfcModelsDataService } from "core-app/features/bim/ifc_models/pages/viewer/ifc-models-data.service";
+import { OpenprojectBcfModule } from "core-app/features/bim/bcf/openproject-bcf.module";
+import { OpenprojectHalModule } from "core-app/features/hal/openproject-hal.module";
@NgModule({
imports: [
- OpenprojectCommonModule,
+ OPSharedModule,
OpenprojectFieldsModule,
OpenprojectHalModule,
OpenprojectBcfModule,
diff --git a/frontend/src/app/modules/bim/ifc_models/openproject-ifc-models.routes.ts b/frontend/src/app/features/bim/ifc_models/openproject-ifc-models.routes.ts
similarity index 81%
rename from frontend/src/app/modules/bim/ifc_models/openproject-ifc-models.routes.ts
rename to frontend/src/app/features/bim/ifc_models/openproject-ifc-models.routes.ts
index 84ff65ad439..9658e0ddaf7 100644
--- a/frontend/src/app/modules/bim/ifc_models/openproject-ifc-models.routes.ts
+++ b/frontend/src/app/features/bim/ifc_models/openproject-ifc-models.routes.ts
@@ -26,15 +26,15 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
import { Ng2StateDeclaration } from '@uirouter/angular';
-import { IFCViewerPageComponent } from "core-app/modules/bim/ifc_models/pages/viewer/ifc-viewer-page.component";
-import { IFCViewerComponent } from "core-app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.component";
-import { WorkPackagesBaseComponent } from "core-app/modules/work_packages/routing/wp-base/wp--base.component";
-import { EmptyComponent } from "core-app/modules/bim/ifc_models/empty/empty-component";
-import { makeSplitViewRoutes } from "core-app/modules/work_packages/routing/split-view-routes.template";
-import { BcfListContainerComponent } from "core-app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component";
-import { WorkPackageSplitViewComponent } from "core-app/modules/work_packages/routing/wp-split-view/wp-split-view.component";
-import { ViewerBridgeService } from "core-app/modules/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
-import { WorkPackageNewFullViewComponent } from "core-components/wp-new/wp-new-full-view.component";
+import { IFCViewerPageComponent } from "core-app/features/bim/ifc_models/pages/viewer/ifc-viewer-page.component";
+import { IFCViewerComponent } from "core-app/features/bim/ifc_models/ifc-viewer/ifc-viewer.component";
+import { WorkPackagesBaseComponent } from "core-app/features/work-packages/routing/wp-base/wp--base.component";
+import { EmptyComponent } from "core-app/features/bim/ifc_models/empty/empty-component";
+import { makeSplitViewRoutes } from "core-app/features/work-packages/routing/split-view-routes.template";
+import { BcfListContainerComponent } from "core-app/features/bim/ifc_models/bcf/list-container/bcf-list-container.component";
+import { WorkPackageSplitViewComponent } from "core-app/features/work-packages/routing/wp-split-view/wp-split-view.component";
+import { ViewerBridgeService } from "core-app/features/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
+import { WorkPackageNewFullViewComponent } from "core-app/features/work-packages/components/wp-new/wp-new-full-view.component";
export const IFC_ROUTES:Ng2StateDeclaration[] = [
{
diff --git a/frontend/src/app/modules/bim/ifc_models/pages/viewer/bim-view.service.ts b/frontend/src/app/features/bim/ifc_models/pages/viewer/bim-view.service.ts
similarity index 98%
rename from frontend/src/app/modules/bim/ifc_models/pages/viewer/bim-view.service.ts
rename to frontend/src/app/features/bim/ifc_models/pages/viewer/bim-view.service.ts
index df6d0facb32..d34c267c54b 100644
--- a/frontend/src/app/modules/bim/ifc_models/pages/viewer/bim-view.service.ts
+++ b/frontend/src/app/features/bim/ifc_models/pages/viewer/bim-view.service.ts
@@ -27,7 +27,7 @@
//++
import { Injectable, OnDestroy } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
import { Observable } from "rxjs";
import { StateService, TransitionService } from "@uirouter/core";
import { input } from "reactivestates";
diff --git a/frontend/src/app/modules/bim/ifc_models/pages/viewer/ifc-models-data.service.ts b/frontend/src/app/features/bim/ifc_models/pages/viewer/ifc-models-data.service.ts
similarity index 85%
rename from frontend/src/app/modules/bim/ifc_models/pages/viewer/ifc-models-data.service.ts
rename to frontend/src/app/features/bim/ifc_models/pages/viewer/ifc-models-data.service.ts
index be17d089053..3f64b775bca 100644
--- a/frontend/src/app/modules/bim/ifc_models/pages/viewer/ifc-models-data.service.ts
+++ b/frontend/src/app/features/bim/ifc_models/pages/viewer/ifc-models-data.service.ts
@@ -1,7 +1,7 @@
import { Injectable } from "@angular/core";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { GonService } from "core-app/modules/common/gon/gon.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { GonService } from "core-app/core/gon/gon.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
export interface IFCPermissionMap {
manage_ifc_models:boolean;
diff --git a/frontend/src/app/modules/bim/ifc_models/pages/viewer/ifc-viewer-page.component.ts b/frontend/src/app/features/bim/ifc_models/pages/viewer/ifc-viewer-page.component.ts
similarity index 68%
rename from frontend/src/app/modules/bim/ifc_models/pages/viewer/ifc-viewer-page.component.ts
rename to frontend/src/app/features/bim/ifc_models/pages/viewer/ifc-viewer-page.component.ts
index b767ad39547..ab9c46aba5b 100644
--- a/frontend/src/app/modules/bim/ifc_models/pages/viewer/ifc-viewer-page.component.ts
+++ b/frontend/src/app/features/bim/ifc_models/pages/viewer/ifc-viewer-page.component.ts
@@ -1,33 +1,33 @@
import { ChangeDetectionStrategy, Component, Injector, ViewEncapsulation } from "@angular/core";
-import { GonService } from "core-app/modules/common/gon/gon.service";
+import { GonService } from "core-app/core/gon/gon.service";
import {
PartitionedQuerySpacePageComponent,
ToolbarButtonComponentDefinition
-} from "core-app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component";
-import { WorkPackageFilterButtonComponent } from "core-components/wp-buttons/wp-filter-button/wp-filter-button.component";
-import { ZenModeButtonComponent } from "core-components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component";
+} from "core-app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component";
+import { WorkPackageFilterButtonComponent } from "core-app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.component";
+import { ZenModeButtonComponent } from "core-app/features/work-packages/components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component";
import {
bimListViewIdentifier,
bimViewerViewIdentifier,
BimViewService
-} from "core-app/modules/bim/ifc_models/pages/viewer/bim-view.service";
-import { BimViewToggleButtonComponent } from "core-app/modules/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-button.component";
-import { IfcModelsDataService } from "core-app/modules/bim/ifc_models/pages/viewer/ifc-models-data.service";
-import { QueryParamListenerService } from "core-components/wp-query/query-param-listener.service";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { BimManageIfcModelsButtonComponent } from "core-app/modules/bim/ifc_models/toolbar/manage-ifc-models-button/bim-manage-ifc-models-button.component";
-import { WorkPackageCreateButtonComponent } from "core-components/wp-buttons/wp-create-button/wp-create-button.component";
+} from "core-app/features/bim/ifc_models/pages/viewer/bim-view.service";
+import { BimViewToggleButtonComponent } from "core-app/features/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-button.component";
+import { IfcModelsDataService } from "core-app/features/bim/ifc_models/pages/viewer/ifc-models-data.service";
+import { QueryParamListenerService } from "core-app/features/work-packages/components/wp-query/query-param-listener.service";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { BimManageIfcModelsButtonComponent } from "core-app/features/bim/ifc_models/toolbar/manage-ifc-models-button/bim-manage-ifc-models-button.component";
+import { WorkPackageCreateButtonComponent } from "core-app/features/work-packages/components/wp-buttons/wp-create-button/wp-create-button.component";
import { StateService, TransitionService } from "@uirouter/core";
import { BehaviorSubject } from "rxjs";
-import { BcfImportButtonComponent } from "core-app/modules/bim/ifc_models/toolbar/import-export-bcf/bcf-import-button.component";
-import { BcfExportButtonComponent } from "core-app/modules/bim/ifc_models/toolbar/import-export-bcf/bcf-export-button.component";
+import { BcfImportButtonComponent } from "core-app/features/bim/ifc_models/toolbar/import-export-bcf/bcf-import-button.component";
+import { BcfExportButtonComponent } from "core-app/features/bim/ifc_models/toolbar/import-export-bcf/bcf-export-button.component";
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
-import { ViewerBridgeService } from "core-app/modules/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
+import { ViewerBridgeService } from "core-app/features/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
@Component({
- templateUrl: '../../../../work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.html',
+ templateUrl: '../../../../work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.html',
styleUrls: [
- '../../../../work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass',
+ '../../../../work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass',
'./styles/generic.sass'
],
encapsulation: ViewEncapsulation.None,
diff --git a/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/context_menu.sass b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/context_menu.sass
similarity index 75%
rename from frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/context_menu.sass
rename to frontend/src/app/features/bim/ifc_models/pages/viewer/styles/context_menu.sass
index 0ba09298a07..6444abb8326 100644
--- a/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/context_menu.sass
+++ b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/context_menu.sass
@@ -1,5 +1,5 @@
-@import "~global_styles/layout/colors"
-@import "~global_styles/layout/drop_down"
+@import "../../../../../../../global_styles/layout/colors"
+@import "../../../../../../../global_styles/layout/drop_down"
.xeokit-context-menu
@extend .dropdown
diff --git a/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/generic.sass b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/generic.sass
similarity index 89%
rename from frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/generic.sass
rename to frontend/src/app/features/bim/ifc_models/pages/viewer/styles/generic.sass
index 5a0941c56e9..d18e1c44959 100644
--- a/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/generic.sass
+++ b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/generic.sass
@@ -1,9 +1,9 @@
// Global helpers
-@import "helpers"
+@import "src/assets/sass/helpers"
// Need to import the icon mixins
-@import "~global_styles/fonts/openproject_icon_definitions"
-@import "~global_styles/fonts/openproject_icon_font"
+@import "../../../../../../../global_styles/fonts/openproject_icon_definitions"
+@import "../../../../../../../global_styles/fonts/openproject_icon_font"
@import "tabs"
@import "toolbar"
diff --git a/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/loading_modal.sass b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/loading_modal.sass
similarity index 100%
rename from frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/loading_modal.sass
rename to frontend/src/app/features/bim/ifc_models/pages/viewer/styles/loading_modal.sass
diff --git a/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/pivot_point.sass b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/pivot_point.sass
similarity index 100%
rename from frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/pivot_point.sass
rename to frontend/src/app/features/bim/ifc_models/pages/viewer/styles/pivot_point.sass
diff --git a/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/tabs.sass b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/tabs.sass
similarity index 100%
rename from frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/tabs.sass
rename to frontend/src/app/features/bim/ifc_models/pages/viewer/styles/tabs.sass
diff --git a/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/toolbar.sass b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/toolbar.sass
similarity index 100%
rename from frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/toolbar.sass
rename to frontend/src/app/features/bim/ifc_models/pages/viewer/styles/toolbar.sass
diff --git a/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/tooltips.sass b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/tooltips.sass
similarity index 90%
rename from frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/tooltips.sass
rename to frontend/src/app/features/bim/ifc_models/pages/viewer/styles/tooltips.sass
index ed4b546ff08..d0c27e7b91e 100644
--- a/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/tooltips.sass
+++ b/frontend/src/app/features/bim/ifc_models/pages/viewer/styles/tooltips.sass
@@ -2,7 +2,7 @@
// actual icons in the buttons. So we need to be careful not to overwrite them. Thus we pick (@extend) only the styles
// from the global tooltips that we want to use. And we accept that our tooltip speech bubbles do not have triangle
// tips.
-@import "~global_styles/content/tooltips"
+@import "../../../../../../../global_styles/content/tooltips"
.xeokit-toolbar [data-tippy-content]
+tooltip--colorize
diff --git a/frontend/src/app/modules/bim/ifc_models/toolbar/import-export-bcf/bcf-export-button.component.ts b/frontend/src/app/features/bim/ifc_models/toolbar/import-export-bcf/bcf-export-button.component.ts
similarity index 78%
rename from frontend/src/app/modules/bim/ifc_models/toolbar/import-export-bcf/bcf-export-button.component.ts
rename to frontend/src/app/features/bim/ifc_models/toolbar/import-export-bcf/bcf-export-button.component.ts
index 3c065d0958f..fa43bd9951c 100644
--- a/frontend/src/app/modules/bim/ifc_models/toolbar/import-export-bcf/bcf-export-button.component.ts
+++ b/frontend/src/app/features/bim/ifc_models/toolbar/import-export-bcf/bcf-export-button.component.ts
@@ -27,16 +27,16 @@
//++
import { Component, OnDestroy, OnInit, Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { BcfPathHelperService } from "core-app/modules/bim/bcf/helper/bcf-path-helper.service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { UrlParamsHelperService } from "core-components/wp-query/url-params-helper";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { BcfPathHelperService } from "core-app/features/bim/bcf/helper/bcf-path-helper.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { UrlParamsHelperService } from "core-app/features/work-packages/components/wp-query/url-params-helper";
import { StateService } from "@uirouter/core";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { WpTableExportModal } from "core-components/modals/export-modal/wp-table-export.modal";
-import { OpModalService } from "core-app/modules/modal/modal.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { WpTableExportModal } from "core-app/shared/components/modals/export-modal/wp-table-export.modal";
@Component({
template: `
diff --git a/frontend/src/app/modules/bim/ifc_models/toolbar/import-export-bcf/bcf-import-button.component.ts b/frontend/src/app/features/bim/ifc_models/toolbar/import-export-bcf/bcf-import-button.component.ts
similarity index 89%
rename from frontend/src/app/modules/bim/ifc_models/toolbar/import-export-bcf/bcf-import-button.component.ts
rename to frontend/src/app/features/bim/ifc_models/toolbar/import-export-bcf/bcf-import-button.component.ts
index 2c99f0e7968..e538430be45 100644
--- a/frontend/src/app/modules/bim/ifc_models/toolbar/import-export-bcf/bcf-import-button.component.ts
+++ b/frontend/src/app/features/bim/ifc_models/toolbar/import-export-bcf/bcf-import-button.component.ts
@@ -27,9 +27,9 @@
//++
import { Component } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { BcfPathHelperService } from "core-app/modules/bim/bcf/helper/bcf-path-helper.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { BcfPathHelperService } from "core-app/features/bim/bcf/helper/bcf-path-helper.service";
@Component({
template: `
diff --git a/frontend/src/app/modules/bim/ifc_models/toolbar/manage-ifc-models-button/bim-manage-ifc-models-button.component.ts b/frontend/src/app/features/bim/ifc_models/toolbar/manage-ifc-models-button/bim-manage-ifc-models-button.component.ts
similarity index 91%
rename from frontend/src/app/modules/bim/ifc_models/toolbar/manage-ifc-models-button/bim-manage-ifc-models-button.component.ts
rename to frontend/src/app/features/bim/ifc_models/toolbar/manage-ifc-models-button/bim-manage-ifc-models-button.component.ts
index 19775be310e..8e3dc1bd8ef 100644
--- a/frontend/src/app/modules/bim/ifc_models/toolbar/manage-ifc-models-button/bim-manage-ifc-models-button.component.ts
+++ b/frontend/src/app/features/bim/ifc_models/toolbar/manage-ifc-models-button/bim-manage-ifc-models-button.component.ts
@@ -27,8 +27,8 @@
//++
import { ChangeDetectionStrategy, Component } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { IfcModelsDataService } from "core-app/modules/bim/ifc_models/pages/viewer/ifc-models-data.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { IfcModelsDataService } from "core-app/features/bim/ifc_models/pages/viewer/ifc-models-data.service";
@Component({
diff --git a/frontend/src/app/modules/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-button.component.ts b/frontend/src/app/features/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-button.component.ts
similarity index 92%
rename from frontend/src/app/modules/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-button.component.ts
rename to frontend/src/app/features/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-button.component.ts
index 527adda7d2d..7e84bf0f93e 100644
--- a/frontend/src/app/modules/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-button.component.ts
+++ b/frontend/src/app/features/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-button.component.ts
@@ -27,8 +27,8 @@
//++
import { ChangeDetectionStrategy, Component } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { BimViewService } from "core-app/modules/bim/ifc_models/pages/viewer/bim-view.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { BimViewService } from "core-app/features/bim/ifc_models/pages/viewer/bim-view.service";
@Component({
diff --git a/frontend/src/app/modules/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-dropdown.directive.ts b/frontend/src/app/features/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-dropdown.directive.ts
similarity index 86%
rename from frontend/src/app/modules/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-dropdown.directive.ts
rename to frontend/src/app/features/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-dropdown.directive.ts
index 3259e63986e..501c3638dcc 100644
--- a/frontend/src/app/modules/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-dropdown.directive.ts
+++ b/frontend/src/app/features/bim/ifc_models/toolbar/view-toggle/bim-view-toggle-dropdown.directive.ts
@@ -26,24 +26,21 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { OPContextMenuService } from "core-components/op-context-menu/op-context-menu.service";
+import { OPContextMenuService } from "core-app/shared/components/op-context-menu/op-context-menu.service";
import { Directive, ElementRef } from "@angular/core";
-import { OpContextMenuTrigger } from "core-components/op-context-menu/handlers/op-context-menu-trigger.directive";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { OpContextMenuTrigger } from "core-app/shared/components/op-context-menu/handlers/op-context-menu-trigger.directive";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { StateService } from "@uirouter/core";
-
-import { WorkPackageFiltersService } from "core-components/filters/wp-filters/wp-filters.service";
import {
bimListViewIdentifier, bimSplitViewListIdentifier, bimSplitViewCardsIdentifier, bimTableViewIdentifier,
bimViewerViewIdentifier,
BimViewService
-} from "core-app/modules/bim/ifc_models/pages/viewer/bim-view.service";
-import { ViewerBridgeService } from "core-app/modules/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
+} from "core-app/features/bim/ifc_models/pages/viewer/bim-view.service";
+import { ViewerBridgeService } from "core-app/features/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
import {
WorkPackageViewDisplayRepresentationService,
- wpDisplayCardRepresentation,
- wpDisplayListRepresentation,
-} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
+} from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
+import { WorkPackageFiltersService } from "core-app/features/work-packages/components/filters/wp-filters/wp-filters.service";
@Directive({
selector: '[bimViewDropdown]'
diff --git a/frontend/src/app/modules/bim/ifc_models/xeokit/xeokit-server.ts b/frontend/src/app/features/bim/ifc_models/xeokit/xeokit-server.ts
similarity index 94%
rename from frontend/src/app/modules/bim/ifc_models/xeokit/xeokit-server.ts
rename to frontend/src/app/features/bim/ifc_models/xeokit/xeokit-server.ts
index df219079b37..b8021eb0732 100644
--- a/frontend/src/app/modules/bim/ifc_models/xeokit/xeokit-server.ts
+++ b/frontend/src/app/features/bim/ifc_models/xeokit/xeokit-server.ts
@@ -1,7 +1,7 @@
// @ts-ignore
import { utils } from "@xeokit/xeokit-sdk/src/viewer/scene/utils";
-import { PathHelperService } from "../../../common/path-helper/path-helper.service";
import { IFCGonDefinition } from "../pages/viewer/ifc-models-data.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
/**
* Default server client which loads content via HTTP from the file system.
diff --git a/frontend/src/app/modules/bim/ifc_models/xeokit/xeokit.d.ts b/frontend/src/app/features/bim/ifc_models/xeokit/xeokit.d.ts
similarity index 100%
rename from frontend/src/app/modules/bim/ifc_models/xeokit/xeokit.d.ts
rename to frontend/src/app/features/bim/ifc_models/xeokit/xeokit.d.ts
diff --git a/frontend/src/app/modules/bim/openproject-bim.module.ts b/frontend/src/app/features/bim/openproject-bim.module.ts
similarity index 87%
rename from frontend/src/app/modules/bim/openproject-bim.module.ts
rename to frontend/src/app/features/bim/openproject-bim.module.ts
index 00cf27a6e95..6d2e9f5a18c 100644
--- a/frontend/src/app/modules/bim/openproject-bim.module.ts
+++ b/frontend/src/app/features/bim/openproject-bim.module.ts
@@ -27,8 +27,8 @@
//++
import { NgModule } from '@angular/core';
-import { OpenprojectBcfModule } from "core-app/modules/bim/bcf/openproject-bcf.module";
-import { OpenprojectIFCModelsModule } from "core-app/modules/bim/ifc_models/openproject-ifc-models.module";
+import { OpenprojectBcfModule } from "core-app/features/bim/bcf/openproject-bcf.module";
+import { OpenprojectIFCModelsModule } from "core-app/features/bim/ifc_models/openproject-ifc-models.module";
@NgModule({
imports: [
diff --git a/frontend/src/app/modules/bim/revit_add_in/revit-add-in-settings-button.service.ts b/frontend/src/app/features/bim/revit_add_in/revit-add-in-settings-button.service.ts
similarity index 97%
rename from frontend/src/app/modules/bim/revit_add_in/revit-add-in-settings-button.service.ts
rename to frontend/src/app/features/bim/revit_add_in/revit-add-in-settings-button.service.ts
index 6e02640b067..4b511dcfa1d 100644
--- a/frontend/src/app/modules/bim/revit_add_in/revit-add-in-settings-button.service.ts
+++ b/frontend/src/app/features/bim/revit_add_in/revit-add-in-settings-button.service.ts
@@ -1,5 +1,5 @@
import { Injectable, Injector } from '@angular/core';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
/*
* This service conditionally creates two settings buttons (on the user menu and on
diff --git a/frontend/src/app/modules/bim/revit_add_in/revit-bridge.service.ts b/frontend/src/app/features/bim/revit_add_in/revit-bridge.service.ts
similarity index 86%
rename from frontend/src/app/modules/bim/revit_add_in/revit-bridge.service.ts
rename to frontend/src/app/features/bim/revit_add_in/revit-bridge.service.ts
index 63562e7e16f..49a32bc40a2 100644
--- a/frontend/src/app/modules/bim/revit_add_in/revit-bridge.service.ts
+++ b/frontend/src/app/features/bim/revit_add_in/revit-bridge.service.ts
@@ -1,11 +1,11 @@
import { Injectable, Injector } from '@angular/core';
import { Observable, Subject, BehaviorSubject } from "rxjs";
import { distinctUntilChanged, filter, first, map, mapTo } from "rxjs/operators";
-import { BcfViewpointInterface } from "core-app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.interface";
-import { ViewerBridgeService } from "core-app/modules/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { ViewpointsService } from "core-app/modules/bim/bcf/helper/viewpoints.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { BcfViewpointInterface } from "core-app/features/bim/bcf/api/viewpoints/bcf-viewpoint.interface";
+import { ViewerBridgeService } from "core-app/features/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { ViewpointsService } from "core-app/features/bim/bcf/helper/viewpoints.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
declare global {
diff --git a/frontend/src/app/features/boards/add-list-modal/add-list-modal.component.ts b/frontend/src/app/features/boards/add-list-modal/add-list-modal.component.ts
new file mode 100644
index 00000000000..8594c08858a
--- /dev/null
+++ b/frontend/src/app/features/boards/add-list-modal/add-list-modal.component.ts
@@ -0,0 +1,191 @@
+//-- copyright
+// OpenProject is an open source project management software.
+// Copyright (C) 2012-2021 the OpenProject GmbH
+//
+// 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 docs/COPYRIGHT.rdoc for more details.
+//++
+
+import { ChangeDetectorRef, Component, ElementRef, Inject, OnInit } from "@angular/core";
+import { StateService } from "@uirouter/core";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import {
+ DebouncedRequestSwitchmap,
+ errorNotificationHandler,
+} from "core-app/shared/helpers/rxjs/debounced-input-switchmap";
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
+import { Board } from "core-app/features/boards/board/board";
+import { BoardService } from "core-app/features/boards/board/board.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { BoardActionsRegistryService } from "core-app/features/boards/board/board-actions/board-actions-registry.service";
+import { BoardActionService } from "core-app/features/boards/board/board-actions/board-action.service";
+import { AngularTrackingHelpers } from "core-app/shared/helpers/angular/tracking-functions";
+import { CreateAutocompleterComponent } from "core-app/shared/components/autocompleter/create-autocompleter/create-autocompleter.component";
+import { ValueOption } from "core-app/shared/components/fields/edit/field-types/select-edit-field/select-edit-field.component";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+
+@Component({
+ templateUrl: './add-list-modal.html'
+})
+export class AddListModalComponent extends OpModalComponent implements OnInit {
+ /** Keep a switchmap for search term and loading state */
+ public requests = new DebouncedRequestSwitchmap<string, ValueOption>(
+ (searchTerm:string) => this.actionService.loadAvailable(this.board, this.active, searchTerm),
+ errorNotificationHandler(this.halNotification),
+ true
+ );
+
+ public showClose:boolean;
+
+ public confirmed = false;
+
+ /** Active board */
+ public board:Board;
+
+ /** Current active set of values */
+ public active:Set<string>;
+
+ /** Action service used by the board */
+ public actionService:BoardActionService;
+
+ /** The selected attribute */
+ public selectedAttribute:HalResource|undefined;
+
+ /** avoid double click */
+ public inFlight = false;
+
+ public trackByHref = AngularTrackingHelpers.trackByHref;
+
+ /* Do not close on outside click (because the select option are appended to the body */
+ public closeOnOutsideClick = false;
+
+ public warningText:string|undefined;
+
+ public text:any = {
+ title: this.I18n.t('js.boards.add_list'),
+ button_add: this.I18n.t('js.button_add'),
+ button_cancel: this.I18n.t('js.button_cancel'),
+ close_popup: this.I18n.t('js.close_popup_title'),
+
+ free_board: this.I18n.t('js.boards.board_type.free'),
+ free_board_text: this.I18n.t('js.boards.board_type.free_text'),
+
+ action_board: this.I18n.t('js.boards.board_type.action'),
+ action_board_text: this.I18n.t('js.boards.board_type.action_text'),
+ select_attribute: this.I18n.t('js.boards.board_type.select_attribute'),
+ placeholder: this.I18n.t('js.placeholders.selection'),
+ };
+
+ public referenceOutputs = {
+ onCreate: (value:HalResource) => this.onNewActionCreated(value),
+ onOpen: () => this.requests.input$.next(''),
+ onChange: (value:HalResource) => this.onModelChange(value),
+ onAfterViewInit: (component:CreateAutocompleterComponent) => component.focusInputField()
+ };
+
+ /** The loaded available values */
+ availableValues:any;
+
+ /** Whether the no results warning is displayed */
+ showWarning = false;
+
+ constructor(readonly elementRef:ElementRef,
+ @Inject(OpModalLocalsToken) public locals:OpModalLocalsMap,
+ readonly cdRef:ChangeDetectorRef,
+ readonly boardActions:BoardActionsRegistryService,
+ readonly halNotification:HalResourceNotificationService,
+ readonly state:StateService,
+ readonly boardService:BoardService,
+ readonly I18n:I18nService) {
+
+ super(locals, cdRef, elementRef);
+ }
+
+ ngOnInit() {
+ super.ngOnInit();
+
+ this.board = this.locals.board;
+ this.active = new Set(this.locals.active as string[]);
+ this.actionService = this.boardActions.get(this.board.actionAttribute!);
+
+
+ this
+ .requests
+ .output$
+ .pipe(
+ this.untilDestroyed()
+ )
+ .subscribe((values:unknown[]) => {
+ let hasMember = false;
+ if (values.length === 0) {
+ if (this.requests.lastRequestedValue !== undefined && this.requests.lastRequestedValue !== '') {
+ hasMember = true;
+ } else {
+ hasMember = false;
+ }
+ } else {
+ hasMember = false;
+ }
+ this.actionService
+ .warningTextWhenNoOptionsAvailable(hasMember)
+ .then((text) => {
+ this.warningText = text;
+ });
+ this.availableValues = values;
+ this.showWarning = this.requests.lastRequestedValue !== undefined && (values.length === 0);
+ this.cdRef.detectChanges();
+ });
+
+ // Request an empty value to load warning early on
+ this.requests.input$.next('');
+ }
+
+ onModelChange(element:HalResource) {
+ this.selectedAttribute = element;
+ }
+
+ create() {
+ this.inFlight = true;
+ this.actionService
+ .addColumnWithActionAttribute(this.board, this.selectedAttribute!)
+ .then(board => this.boardService.save(board).toPromise())
+ .then((board) => {
+ this.inFlight = false;
+ this.closeMe();
+ this.state.go('boards.partitioned.show', { board_id: board.id, isNew: true });
+ })
+ .catch(() => this.inFlight = false);
+ }
+
+ onNewActionCreated(newValue:HalResource) {
+ this.selectedAttribute = newValue;
+ this.create();
+ }
+
+ autocompleterComponent() {
+ return this.actionService.autocompleterComponent();
+ }
+}
+
diff --git a/frontend/src/app/modules/boards/board-constants.const.ts b/frontend/src/app/features/boards/board-constants.const.ts
similarity index 100%
rename from frontend/src/app/modules/boards/board-constants.const.ts
rename to frontend/src/app/features/boards/board-constants.const.ts
diff --git a/frontend/src/app/modules/boards/board/add-card-dropdown/add-card-dropdown-menu.directive.ts b/frontend/src/app/features/boards/board/add-card-dropdown/add-card-dropdown-menu.directive.ts
similarity index 79%
rename from frontend/src/app/modules/boards/board/add-card-dropdown/add-card-dropdown-menu.directive.ts
rename to frontend/src/app/features/boards/board/add-card-dropdown/add-card-dropdown-menu.directive.ts
index cac8a1a8d8f..46c7be540ea 100644
--- a/frontend/src/app/modules/boards/board/add-card-dropdown/add-card-dropdown-menu.directive.ts
+++ b/frontend/src/app/features/boards/board/add-card-dropdown/add-card-dropdown-menu.directive.ts
@@ -27,14 +27,14 @@
//++
import { ChangeDetectorRef, Directive, ElementRef, Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { AuthorisationService } from 'core-app/modules/common/model-auth/model-auth.service';
-import { OpContextMenuTrigger } from 'core-components/op-context-menu/handlers/op-context-menu-trigger.directive';
-import { OPContextMenuService } from 'core-components/op-context-menu/op-context-menu.service';
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { WorkPackageInlineCreateService } from "core-components/wp-inline-create/wp-inline-create.service";
-import { BoardListComponent } from "core-app/modules/boards/board/board-list/board-list.component";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { AuthorisationService } from 'core-app/core/model-auth/model-auth.service';
+import { OpContextMenuTrigger } from 'core-app/shared/components/op-context-menu/handlers/op-context-menu-trigger.directive';
+import { OPContextMenuService } from 'core-app/shared/components/op-context-menu/op-context-menu.service';
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { WorkPackageInlineCreateService } from "core-app/features/work-packages/components/wp-inline-create/wp-inline-create.service";
+import { BoardListComponent } from "core-app/features/boards/board/board-list/board-list.component";
@Directive({
selector: '[addCardDropdown]'
diff --git a/frontend/src/app/modules/boards/board/add-list-modal/add-list-modal.component.ts b/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.component.ts
similarity index 75%
rename from frontend/src/app/modules/boards/board/add-list-modal/add-list-modal.component.ts
rename to frontend/src/app/features/boards/board/add-list-modal/add-list-modal.component.ts
index 19fd3ef3fd1..e115a200304 100644
--- a/frontend/src/app/modules/boards/board/add-list-modal/add-list-modal.component.ts
+++ b/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.component.ts
@@ -26,26 +26,24 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { ChangeDetectorRef, Component, ElementRef, Inject, OnInit, ViewChild} from "@angular/core";
-import { OpModalLocalsMap } from "core-app/modules/modal/modal.types";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { Board } from "core-app/modules/boards/board/board";
+import { ChangeDetectorRef, Component, ElementRef, Inject, OnInit, ViewChild } from "@angular/core";
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { Board } from "core-app/features/boards/board/board";
import { StateService } from "@uirouter/core";
-import { BoardService } from "core-app/modules/boards/board/board.service";
-import { BoardActionsRegistryService } from "core-app/modules/boards/board/board-actions/board-actions-registry.service";
-import { BoardActionService } from "core-app/modules/boards/board/board-actions/board-action.service";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { AngularTrackingHelpers } from "core-components/angular/tracking-functions";
-import { Observable, of } from "rxjs";
-import { DebouncedRequestSwitchmap, errorNotificationHandler } from "core-app/helpers/rxjs/debounced-input-switchmap";
-import { ValueOption } from "core-app/modules/fields/edit/field-types/select-edit-field/select-edit-field.component";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import {OpAutocompleterComponent} from "core-app/modules/autocompleter/op-autocompleter/op-autocompleter.component";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
+import { BoardService } from "core-app/features/boards/board/board.service";
+import { BoardActionsRegistryService } from "core-app/features/boards/board/board-actions/board-actions-registry.service";
+import { BoardActionService } from "core-app/features/boards/board/board-actions/board-action.service";
+import { AngularTrackingHelpers } from "core-app/shared/helpers/angular/tracking-functions";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
import { tap } from "rxjs/operators";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { Observable } from "rxjs";
+import { OpAutocompleterComponent } from "core-app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
@Component({
templateUrl: './add-list-modal.html'
@@ -53,18 +51,18 @@ import { tap } from "rxjs/operators";
export class AddListModalComponent extends OpModalComponent implements OnInit {
@ViewChild(OpAutocompleterComponent, { static: true }) public ngSelectComponent:OpAutocompleterComponent;
-
+
getAutocompleterData = (searchTerm:string):Observable<HalResource[]> => {
// Remove prefix # from search
searchTerm = searchTerm.replace(/^#/, '');
return this.actionService.loadAvailable(this.board, this.active, searchTerm).pipe(tap((values) => this.warnIfNoOptions(values)));
};
-
+
public autocompleterOptions = {
resource:"",
getOptionsFn: this.getAutocompleterData
- };
+ };
public showClose:boolean;
@@ -152,17 +150,17 @@ export class AddListModalComponent extends OpModalComponent implements OnInit {
onNewActionCreated() {
this
- .apiV3Service
- .versions
- .post(this.getVersionPayload(this.ngSelectComponent.ngSelectInstance.searchTerm))
- .subscribe(
- version => { this.selectedAttribute = version;
- this.create();},
- error => {
- this.ngSelectComponent.closeSelect();
- this.halNotification.handleRawError(error);
- });
-
+ .apiV3Service
+ .versions
+ .post(this.getVersionPayload(this.ngSelectComponent.ngSelectInstance.searchTerm))
+ .subscribe(
+ version => { this.selectedAttribute = version;
+ this.create();},
+ error => {
+ this.ngSelectComponent.closeSelect();
+ this.halNotification.handleRawError(error);
+ });
+
}
private getVersionPayload(name:string) {
const payload:any = {};
@@ -196,3 +194,4 @@ export class AddListModalComponent extends OpModalComponent implements OnInit {
this.cdRef.detectChanges();
}
}
+
diff --git a/frontend/src/app/modules/boards/board/add-list-modal/add-list-modal.html b/frontend/src/app/features/boards/board/add-list-modal/add-list-modal.html
similarity index 100%
rename from frontend/src/app/modules/boards/board/add-list-modal/add-list-modal.html
rename to frontend/src/app/features/boards/board/add-list-modal/add-list-modal.html
diff --git a/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-action.service.ts b/frontend/src/app/features/boards/board/board-actions/assignee/assignee-action.service.ts
similarity index 75%
rename from frontend/src/app/modules/boards/board/board-actions/assignee/assignee-action.service.ts
rename to frontend/src/app/features/boards/board/board-actions/assignee/assignee-action.service.ts
index dca4084ef01..4b84800ac85 100644
--- a/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-action.service.ts
+++ b/frontend/src/app/features/boards/board/board-actions/assignee/assignee-action.service.ts
@@ -1,15 +1,14 @@
import { Injectable } from "@angular/core";
-import { UserResource } from 'core-app/modules/hal/resources/user-resource';
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
-import { AssigneeBoardHeaderComponent } from "core-app/modules/boards/board/board-actions/assignee/assignee-board-header.component";
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
-import { CachedBoardActionService } from "core-app/modules/boards/board/board-actions/cached-board-action.service";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { Board } from "core-app/modules/boards/board/board";
-import { ApiV3Filter } from "core-components/api/api-v3/api-v3-filter-builder";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { ImageHelpers } from "core-app/helpers/images/path-helper";
-import imagePath = ImageHelpers.imagePath;
+import { AssigneeBoardHeaderComponent } from "core-app/features/boards/board/board-actions/assignee/assignee-board-header.component";
+import { CachedBoardActionService } from "core-app/features/boards/board/board-actions/cached-board-action.service";
+import { Board } from "core-app/features/boards/board/board";
+import { ImageHelpers } from "core-app/shared/helpers/images/path-helper";
+import { ApiV3Filter } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { UserResource } from "core-app/features/hal/resources/user-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
@Injectable()
export class BoardAssigneeActionService extends CachedBoardActionService {
diff --git a/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.component.ts b/frontend/src/app/features/boards/board/board-actions/assignee/assignee-board-header.component.ts
similarity index 87%
rename from frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.component.ts
rename to frontend/src/app/features/boards/board/board-actions/assignee/assignee-board-header.component.ts
index 2c3499971a6..d59d8f785aa 100644
--- a/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.component.ts
+++ b/frontend/src/app/features/boards/board/board-actions/assignee/assignee-board-header.component.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
import { Component, Input } from "@angular/core";
-import { UserResource } from "core-app/modules/hal/resources/user-resource";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { UserResource } from "core-app/features/hal/resources/user-resource";
@Component({
diff --git a/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.html b/frontend/src/app/features/boards/board/board-actions/assignee/assignee-board-header.html
similarity index 100%
rename from frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.html
rename to frontend/src/app/features/boards/board/board-actions/assignee/assignee-board-header.html
diff --git a/frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.sass b/frontend/src/app/features/boards/board/board-actions/assignee/assignee-board-header.sass
similarity index 100%
rename from frontend/src/app/modules/boards/board/board-actions/assignee/assignee-board-header.sass
rename to frontend/src/app/features/boards/board/board-actions/assignee/assignee-board-header.sass
diff --git a/frontend/src/app/modules/boards/board/board-actions/board-action.service.ts b/frontend/src/app/features/boards/board/board-actions/board-action.service.ts
similarity index 77%
rename from frontend/src/app/modules/boards/board/board-actions/board-action.service.ts
rename to frontend/src/app/features/boards/board/board-actions/board-action.service.ts
index ed86be4d42e..9588066f3c9 100644
--- a/frontend/src/app/modules/boards/board/board-actions/board-action.service.ts
+++ b/frontend/src/app/features/boards/board/board-actions/board-action.service.ts
@@ -1,26 +1,26 @@
-import { Board } from "core-app/modules/boards/board/board";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { Board } from "core-app/features/boards/board/board";
import { ComponentType } from "@angular/cdk/portal";
-import { OpContextMenuItem } from "core-components/op-context-menu/op-context-menu.types";
-import { DisabledButtonPlaceholder } from "core-app/modules/boards/board/board-list/board-list.component";
-import { CreateAutocompleterComponent } from "core-app/modules/autocompleter/create-autocompleter/create-autocompleter.component";
-import { FilterOperator } from "core-components/api/api-v3/api-v3-filter-builder";
-import { BoardListsService } from "core-app/modules/boards/board/board-list/board-lists.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
+import { OpContextMenuItem } from "core-app/shared/components/op-context-menu/op-context-menu.types";
+import { DisabledButtonPlaceholder } from "core-app/features/boards/board/board-list/board-list.component";
+import { CreateAutocompleterComponent } from "core-app/shared/components/autocompleter/create-autocompleter/create-autocompleter.component";
+import { BoardListsService } from "core-app/features/boards/board/board-list/board-lists.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
import { Injectable, Injector } from "@angular/core";
import { map } from "rxjs/operators";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { IFieldSchema } from "core-app/modules/fields/field.base";
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
-import { WorkPackageFilterValues } from "core-components/wp-edit-form/work-package-filter-values";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
+import { WorkPackageFilterValues } from "core-app/features/work-packages/components/wp-edit-form/work-package-filter-values";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
import { Observable } from "rxjs";
-import { QueryFilterInstanceResource } from "core-app/modules/hal/resources/query-filter-instance-resource";
+import { FilterOperator } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
@Injectable()
export abstract class BoardActionService {
diff --git a/frontend/src/app/modules/boards/board/board-actions/board-actions-registry.service.ts b/frontend/src/app/features/boards/board/board-actions/board-actions-registry.service.ts
similarity index 87%
rename from frontend/src/app/modules/boards/board/board-actions/board-actions-registry.service.ts
rename to frontend/src/app/features/boards/board/board-actions/board-actions-registry.service.ts
index 4b0b76a460e..a998d9acf20 100644
--- a/frontend/src/app/modules/boards/board/board-actions/board-actions-registry.service.ts
+++ b/frontend/src/app/features/boards/board/board-actions/board-actions-registry.service.ts
@@ -1,5 +1,5 @@
import { Injectable } from "@angular/core";
-import { BoardActionService } from "core-app/modules/boards/board/board-actions/board-action.service";
+import { BoardActionService } from "core-app/features/boards/board/board-actions/board-action.service";
@Injectable({ providedIn: 'root' })
export class BoardActionsRegistryService {
diff --git a/frontend/src/app/modules/boards/board/board-actions/cached-board-action.service.ts b/frontend/src/app/features/boards/board/board-actions/cached-board-action.service.ts
similarity index 86%
rename from frontend/src/app/modules/boards/board/board-actions/cached-board-action.service.ts
rename to frontend/src/app/features/boards/board/board-actions/cached-board-action.service.ts
index 368bf042bb8..fd8260f024f 100644
--- a/frontend/src/app/modules/boards/board/board-actions/cached-board-action.service.ts
+++ b/frontend/src/app/features/boards/board/board-actions/cached-board-action.service.ts
@@ -1,10 +1,10 @@
import { Injectable } from "@angular/core";
-import { BoardActionService } from "core-app/modules/boards/board/board-actions/board-action.service";
+import { BoardActionService } from "core-app/features/boards/board/board-actions/board-action.service";
import { input } from "reactivestates";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
import { Observable } from "rxjs";
import { map, take } from "rxjs/operators";
-import { Board } from "core-app/modules/boards/board/board";
+import { Board } from "core-app/features/boards/board/board";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
@Injectable()
export abstract class CachedBoardActionService extends BoardActionService {
diff --git a/frontend/src/app/modules/boards/board/board-actions/status/status-action.service.ts b/frontend/src/app/features/boards/board/board-actions/status/status-action.service.ts
similarity index 70%
rename from frontend/src/app/modules/boards/board/board-actions/status/status-action.service.ts
rename to frontend/src/app/features/boards/board/board-actions/status/status-action.service.ts
index 2cc1d357305..af29f59407e 100644
--- a/frontend/src/app/modules/boards/board/board-actions/status/status-action.service.ts
+++ b/frontend/src/app/features/boards/board/board-actions/status/status-action.service.ts
@@ -1,10 +1,10 @@
import { Injectable } from "@angular/core";
-import { Board } from "core-app/modules/boards/board/board";
-import { StatusResource } from "core-app/modules/hal/resources/status-resource";
-import { BoardActionService } from "core-app/modules/boards/board/board-actions/board-action.service";
-import { CachedBoardActionService } from "core-app/modules/boards/board/board-actions/cached-board-action.service";
-import { StatusBoardHeaderComponent } from "core-app/modules/boards/board/board-actions/status/status-board-header.component";
-import { ImageHelpers } from "core-app/helpers/images/path-helper";
+import { Board } from "core-app/features/boards/board/board";
+import { StatusResource } from "core-app/features/hal/resources/status-resource";
+import { BoardActionService } from "core-app/features/boards/board/board-actions/board-action.service";
+import { CachedBoardActionService } from "core-app/features/boards/board/board-actions/cached-board-action.service";
+import { StatusBoardHeaderComponent } from "core-app/features/boards/board/board-actions/status/status-board-header.component";
+import { ImageHelpers } from "core-app/shared/helpers/images/path-helper";
@Injectable()
export class BoardStatusActionService extends CachedBoardActionService {
diff --git a/frontend/src/app/modules/boards/board/board-actions/status/status-board-header.component.ts b/frontend/src/app/features/boards/board/board-actions/status/status-board-header.component.ts
similarity index 91%
rename from frontend/src/app/modules/boards/board/board-actions/status/status-board-header.component.ts
rename to frontend/src/app/features/boards/board/board-actions/status/status-board-header.component.ts
index cffbb57820c..95d049dd2a7 100644
--- a/frontend/src/app/modules/boards/board/board-actions/status/status-board-header.component.ts
+++ b/frontend/src/app/features/boards/board/board-actions/status/status-board-header.component.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
import { Component, Input } from "@angular/core";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { StatusResource } from "core-app/modules/hal/resources/status-resource";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { StatusResource } from "core-app/features/hal/resources/status-resource";
@Component({
diff --git a/frontend/src/app/modules/boards/board/board-actions/status/status-board-header.html b/frontend/src/app/features/boards/board/board-actions/status/status-board-header.html
similarity index 100%
rename from frontend/src/app/modules/boards/board/board-actions/status/status-board-header.html
rename to frontend/src/app/features/boards/board/board-actions/status/status-board-header.html
diff --git a/frontend/src/app/modules/boards/board/board-actions/status/status-board-header.sass b/frontend/src/app/features/boards/board/board-actions/status/status-board-header.sass
similarity index 100%
rename from frontend/src/app/modules/boards/board/board-actions/status/status-board-header.sass
rename to frontend/src/app/features/boards/board/board-actions/status/status-board-header.sass
diff --git a/frontend/src/app/modules/boards/board/board-actions/subproject/subproject-action.service.ts b/frontend/src/app/features/boards/board/board-actions/subproject/subproject-action.service.ts
similarity index 60%
rename from frontend/src/app/modules/boards/board/board-actions/subproject/subproject-action.service.ts
rename to frontend/src/app/features/boards/board/board-actions/subproject/subproject-action.service.ts
index ad766bdc273..3544eef9508 100644
--- a/frontend/src/app/modules/boards/board/board-actions/subproject/subproject-action.service.ts
+++ b/frontend/src/app/features/boards/board/board-actions/subproject/subproject-action.service.ts
@@ -1,14 +1,14 @@
import { Injectable } from "@angular/core";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { ApiV3FilterBuilder, buildApiV3Filter } from "core-components/api/api-v3/api-v3-filter-builder";
-import { UserResource } from 'core-app/modules/hal/resources/user-resource';
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { SubprojectBoardHeaderComponent } from "core-app/modules/boards/board/board-actions/subproject/subproject-board-header.component";
-import { CachedBoardActionService } from "core-app/modules/boards/board/board-actions/cached-board-action.service";
-import { ImageHelpers } from "core-app/helpers/images/path-helper";
+import { UserResource } from "core-app/features/hal/resources/user-resource";
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { SubprojectBoardHeaderComponent } from "core-app/features/boards/board/board-actions/subproject/subproject-board-header.component";
+import { CachedBoardActionService } from "core-app/features/boards/board/board-actions/cached-board-action.service";
+import { ImageHelpers } from "core-app/shared/helpers/images/path-helper";
+import { ApiV3FilterBuilder } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
@Injectable()
export class BoardSubprojectActionService extends CachedBoardActionService {
@@ -55,5 +55,4 @@ export class BoardSubprojectActionService extends CachedBoardActionService {
.toPromise()
.then((collection:CollectionResource<UserResource>) => collection.elements);
}
-
}
diff --git a/frontend/src/app/modules/boards/board/board-actions/subproject/subproject-board-header.component.ts b/frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.component.ts
similarity index 87%
rename from frontend/src/app/modules/boards/board/board-actions/subproject/subproject-board-header.component.ts
rename to frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.component.ts
index 93387fcb070..fa86c4e5c77 100644
--- a/frontend/src/app/modules/boards/board/board-actions/subproject/subproject-board-header.component.ts
+++ b/frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.component.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
import { Component, Input } from "@angular/core";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
@Component({
diff --git a/frontend/src/app/modules/boards/board/board-actions/subproject/subproject-board-header.html b/frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.html
similarity index 100%
rename from frontend/src/app/modules/boards/board/board-actions/subproject/subproject-board-header.html
rename to frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.html
diff --git a/frontend/src/app/modules/boards/board/board-actions/subproject/subproject-board-header.sass b/frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.sass
similarity index 100%
rename from frontend/src/app/modules/boards/board/board-actions/subproject/subproject-board-header.sass
rename to frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.sass
diff --git a/frontend/src/app/modules/boards/board/board-actions/subtasks/board-subtasks-action.service.ts b/frontend/src/app/features/boards/board/board-actions/subtasks/board-subtasks-action.service.ts
similarity index 70%
rename from frontend/src/app/modules/boards/board/board-actions/subtasks/board-subtasks-action.service.ts
rename to frontend/src/app/features/boards/board/board-actions/subtasks/board-subtasks-action.service.ts
index 8e93686543d..a613060c784 100644
--- a/frontend/src/app/modules/boards/board/board-actions/subtasks/board-subtasks-action.service.ts
+++ b/frontend/src/app/features/boards/board/board-actions/subtasks/board-subtasks-action.service.ts
@@ -1,14 +1,14 @@
import { Injectable } from "@angular/core";
-import { BoardActionService } from "core-app/modules/boards/board/board-actions/board-action.service";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { BoardActionService } from "core-app/features/boards/board/board-actions/board-action.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { Observable } from "rxjs";
import { map } from "rxjs/operators";
-import { ApiV3FilterBuilder } from "core-components/api/api-v3/api-v3-filter-builder";
-import { SubtasksBoardHeaderComponent } from "core-app/modules/boards/board/board-actions/subtasks/subtasks-board-header.component";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
-import { ImageHelpers } from "core-app/helpers/images/path-helper";
+import { SubtasksBoardHeaderComponent } from "core-app/features/boards/board/board-actions/subtasks/subtasks-board-header.component";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
+import { ImageHelpers } from "core-app/shared/helpers/images/path-helper";
+import { ApiV3FilterBuilder } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
@Injectable()
export class BoardSubtasksActionService extends BoardActionService {
diff --git a/frontend/src/app/modules/boards/board/board-actions/subtasks/subtasks-board-header.component.ts b/frontend/src/app/features/boards/board/board-actions/subtasks/subtasks-board-header.component.ts
similarity index 81%
rename from frontend/src/app/modules/boards/board/board-actions/subtasks/subtasks-board-header.component.ts
rename to frontend/src/app/features/boards/board/board-actions/subtasks/subtasks-board-header.component.ts
index 876431571d5..6f562b96631 100644
--- a/frontend/src/app/modules/boards/board/board-actions/subtasks/subtasks-board-header.component.ts
+++ b/frontend/src/app/features/boards/board/board-actions/subtasks/subtasks-board-header.component.ts
@@ -26,11 +26,10 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
import { Component, Input, OnInit } from "@angular/core";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { Highlighting } from "core-components/wp-fast-table/builders/highlighting/highlighting.functions";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { Highlighting } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting.functions";
@Component({
diff --git a/frontend/src/app/modules/boards/board/board-actions/subtasks/subtasks-board-header.html b/frontend/src/app/features/boards/board/board-actions/subtasks/subtasks-board-header.html
similarity index 100%
rename from frontend/src/app/modules/boards/board/board-actions/subtasks/subtasks-board-header.html
rename to frontend/src/app/features/boards/board/board-actions/subtasks/subtasks-board-header.html
diff --git a/frontend/src/app/modules/boards/board/board-actions/subtasks/subtasks-board-header.sass b/frontend/src/app/features/boards/board/board-actions/subtasks/subtasks-board-header.sass
similarity index 100%
rename from frontend/src/app/modules/boards/board/board-actions/subtasks/subtasks-board-header.sass
rename to frontend/src/app/features/boards/board/board-actions/subtasks/subtasks-board-header.sass
diff --git a/frontend/src/app/modules/boards/board/board-actions/version/version-action.service.ts b/frontend/src/app/features/boards/board/board-actions/version/version-action.service.ts
similarity index 81%
rename from frontend/src/app/modules/boards/board/board-actions/version/version-action.service.ts
rename to frontend/src/app/features/boards/board/board-actions/version/version-action.service.ts
index bec85b0aec1..5cba3b6feed 100644
--- a/frontend/src/app/modules/boards/board/board-actions/version/version-action.service.ts
+++ b/frontend/src/app/features/boards/board/board-actions/version/version-action.service.ts
@@ -1,19 +1,18 @@
import { Injectable } from "@angular/core";
-import { Board } from "core-app/modules/boards/board/board";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { BoardActionService } from "core-app/modules/boards/board/board-actions/board-action.service";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { VersionResource } from "core-app/modules/hal/resources/version-resource";
-import { OpContextMenuItem } from "core-components/op-context-menu/op-context-menu.types";
-import { LinkHandling } from "core-app/modules/common/link-handling/link-handling";
+import { Board } from "core-app/features/boards/board/board";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { VersionResource } from "core-app/features/hal/resources/version-resource";
+import { OpContextMenuItem } from "core-app/shared/components/op-context-menu/op-context-menu.types";
+import { LinkHandling } from "core-app/shared/helpers/link-handling/link-handling";
import { StateService } from "@uirouter/core";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { VersionBoardHeaderComponent } from "core-app/modules/boards/board/board-actions/version/version-board-header.component";
-import { FormResource } from "core-app/modules/hal/resources/form-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { CachedBoardActionService } from "core-app/modules/boards/board/board-actions/cached-board-action.service";
-import { ImageHelpers } from "core-app/helpers/images/path-helper";
-import { VersionAutocompleterComponent } from "core-app/modules/autocompleter/version-autocompleter/version-autocompleter.component";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { VersionBoardHeaderComponent } from "core-app/features/boards/board/board-actions/version/version-board-header.component";
+import { FormResource } from "core-app/features/hal/resources/form-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { CachedBoardActionService } from "core-app/features/boards/board/board-actions/cached-board-action.service";
+import { ImageHelpers } from "core-app/shared/helpers/images/path-helper";
+import { VersionAutocompleterComponent } from "core-app/shared/components/autocompleter/version-autocompleter/version-autocompleter.component";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
@Injectable()
export class BoardVersionActionService extends CachedBoardActionService {
diff --git a/frontend/src/app/modules/boards/board/board-actions/version/version-board-header.component.ts b/frontend/src/app/features/boards/board/board-actions/version/version-board-header.component.ts
similarity index 88%
rename from frontend/src/app/modules/boards/board/board-actions/version/version-board-header.component.ts
rename to frontend/src/app/features/boards/board/board-actions/version/version-board-header.component.ts
index e5e8ec5ef13..148ae81bb13 100644
--- a/frontend/src/app/modules/boards/board/board-actions/version/version-board-header.component.ts
+++ b/frontend/src/app/features/boards/board/board-actions/version/version-board-header.component.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
import { Component, Input } from "@angular/core";
-import { VersionResource } from "core-app/modules/hal/resources/version-resource";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
+import { VersionResource } from "core-app/features/hal/resources/version-resource";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
@Component({
diff --git a/frontend/src/app/modules/boards/board/board-actions/version/version-board-header.html b/frontend/src/app/features/boards/board/board-actions/version/version-board-header.html
similarity index 100%
rename from frontend/src/app/modules/boards/board/board-actions/version/version-board-header.html
rename to frontend/src/app/features/boards/board/board-actions/version/version-board-header.html
diff --git a/frontend/src/app/modules/boards/board/board-actions/version/version-board-header.sass b/frontend/src/app/features/boards/board/board-actions/version/version-board-header.sass
similarity index 100%
rename from frontend/src/app/modules/boards/board/board-actions/version/version-board-header.sass
rename to frontend/src/app/features/boards/board/board-actions/version/version-board-header.sass
diff --git a/frontend/src/app/modules/boards/board/board-filter/board-filter.component.html b/frontend/src/app/features/boards/board/board-filter/board-filter.component.html
similarity index 100%
rename from frontend/src/app/modules/boards/board/board-filter/board-filter.component.html
rename to frontend/src/app/features/boards/board/board-filter/board-filter.component.html
diff --git a/frontend/src/app/modules/boards/board/board-filter/board-filter.component.ts b/frontend/src/app/features/boards/board/board-filter/board-filter.component.ts
similarity index 69%
rename from frontend/src/app/modules/boards/board/board-filter/board-filter.component.ts
rename to frontend/src/app/features/boards/board/board-filter/board-filter.component.ts
index 0589f1b467f..3f9d2589f4a 100644
--- a/frontend/src/app/modules/boards/board/board-filter/board-filter.component.ts
+++ b/frontend/src/app/features/boards/board/board-filter/board-filter.component.ts
@@ -1,18 +1,18 @@
import { AfterViewInit, Component, Input } from "@angular/core";
-import { Board } from "core-app/modules/boards/board/board";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { WorkPackageStatesInitializationService } from "core-components/wp-list/wp-states-initialization.service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { WorkPackageViewFiltersService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service";
-import { QueryFilterInstanceResource } from "core-app/modules/hal/resources/query-filter-instance-resource";
-import { UrlParamsHelperService } from "core-components/wp-query/url-params-helper";
+import { Board } from "core-app/features/boards/board/board";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { WorkPackageStatesInitializationService } from "core-app/features/work-packages/components/wp-list/wp-states-initialization.service";
+import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { WorkPackageViewFiltersService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
+import { UrlParamsHelperService } from "core-app/features/work-packages/components/wp-query/url-params-helper";
import { StateService } from "@uirouter/core";
import { debounceTime, skip, take } from "rxjs/operators";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
import { Observable } from "rxjs";
-import { BoardFiltersService } from "core-app/modules/boards/board/board-filter/board-filters.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { BoardFiltersService } from "core-app/features/boards/board/board-filter/board-filters.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Component({
selector: 'board-filter',
diff --git a/frontend/src/app/modules/boards/board/board-filter/board-filters.service.ts b/frontend/src/app/features/boards/board/board-filter/board-filters.service.ts
similarity index 84%
rename from frontend/src/app/modules/boards/board/board-filter/board-filters.service.ts
rename to frontend/src/app/features/boards/board/board-filter/board-filters.service.ts
index c182662b32a..18835611ff5 100644
--- a/frontend/src/app/modules/boards/board/board-filter/board-filters.service.ts
+++ b/frontend/src/app/features/boards/board/board-filter/board-filters.service.ts
@@ -1,6 +1,6 @@
-import { ApiV3Filter } from "core-components/api/api-v3/api-v3-filter-builder";
import { input } from "reactivestates";
import { Injectable } from "@angular/core";
+import { ApiV3Filter } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
@Injectable()
export class BoardFiltersService {
diff --git a/frontend/src/app/modules/boards/board/board-list/board-inline-create.service.ts b/frontend/src/app/features/boards/board/board-list/board-inline-create.service.ts
similarity index 74%
rename from frontend/src/app/modules/boards/board/board-list/board-inline-create.service.ts
rename to frontend/src/app/features/boards/board/board-list/board-inline-create.service.ts
index 92aeacaa0dc..3857452ce00 100644
--- a/frontend/src/app/modules/boards/board/board-list/board-inline-create.service.ts
+++ b/frontend/src/app/features/boards/board/board-list/board-inline-create.service.ts
@@ -27,14 +27,14 @@
//++
import { Injectable, Injector } from '@angular/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { WorkPackageRelationsHierarchyService } from "core-components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";
-import { WorkPackageInlineCreateService } from "core-components/wp-inline-create/wp-inline-create.service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { BoardInlineAddAutocompleterComponent } from "core-app/modules/boards/board/inline-add/board-inline-add-autocompleter.component";
-import { GonService } from "core-app/modules/common/gon/gon.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { WorkPackageRelationsHierarchyService } from "core-app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";
+import { WorkPackageInlineCreateService } from "core-app/features/work-packages/components/wp-inline-create/wp-inline-create.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { BoardInlineAddAutocompleterComponent } from "core-app/features/boards/board/inline-add/board-inline-add-autocompleter.component";
+import { GonService } from "core-app/core/gon/gon.service";
@Injectable()
export class BoardInlineCreateService extends WorkPackageInlineCreateService {
diff --git a/frontend/src/app/modules/boards/board/board-list/board-list-cross-selection.service.ts b/frontend/src/app/features/boards/board/board-list/board-list-cross-selection.service.ts
similarity index 100%
rename from frontend/src/app/modules/boards/board/board-list/board-list-cross-selection.service.ts
rename to frontend/src/app/features/boards/board/board-list/board-list-cross-selection.service.ts
diff --git a/frontend/src/app/modules/boards/board/board-list/board-list-menu.component.html b/frontend/src/app/features/boards/board/board-list/board-list-menu.component.html
similarity index 100%
rename from frontend/src/app/modules/boards/board/board-list/board-list-menu.component.html
rename to frontend/src/app/features/boards/board/board-list/board-list-menu.component.html
diff --git a/frontend/src/app/modules/boards/board/board-list/board-list-menu.component.ts b/frontend/src/app/features/boards/board/board-list/board-list-menu.component.ts
similarity index 77%
rename from frontend/src/app/modules/boards/board/board-list/board-list-menu.component.ts
rename to frontend/src/app/features/boards/board/board-list/board-list-menu.component.ts
index a0448379ffe..3980a8311e6 100644
--- a/frontend/src/app/modules/boards/board/board-list/board-list-menu.component.ts
+++ b/frontend/src/app/features/boards/board/board-list/board-list-menu.component.ts
@@ -27,15 +27,15 @@
//++
import { Component, Output, EventEmitter, Input } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { AuthorisationService } from 'core-app/modules/common/model-auth/model-auth.service';
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { Board } from "core-app/modules/boards/board/board";
-import { BoardActionsRegistryService } from "core-app/modules/boards/board/board-actions/board-actions-registry.service";
-import { OpContextMenuItem } from "core-components/op-context-menu/op-context-menu.types";
-import { BoardService } from "core-app/modules/boards/board/board.service";
-import { BoardActionService } from "core-app/modules/boards/board/board-actions/board-action.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { AuthorisationService } from 'core-app/core/model-auth/model-auth.service';
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';
+import { Board } from "core-app/features/boards/board/board";
+import { BoardActionsRegistryService } from "core-app/features/boards/board/board-actions/board-actions-registry.service";
+import { OpContextMenuItem } from "core-app/shared/components/op-context-menu/op-context-menu.types";
+import { BoardService } from "core-app/features/boards/board/board.service";
+import { BoardActionService } from "core-app/features/boards/board/board-actions/board-action.service";
@Component({
selector: 'board-list-menu',
diff --git a/frontend/src/app/modules/boards/board/board-list/board-list.component.html b/frontend/src/app/features/boards/board/board-list/board-list.component.html
similarity index 100%
rename from frontend/src/app/modules/boards/board/board-list/board-list.component.html
rename to frontend/src/app/features/boards/board/board-list/board-list.component.html
diff --git a/frontend/src/app/modules/boards/board/board-list/board-list.component.sass b/frontend/src/app/features/boards/board/board-list/board-list.component.sass
similarity index 98%
rename from frontend/src/app/modules/boards/board/board-list/board-list.component.sass
rename to frontend/src/app/features/boards/board/board-list/board-list.component.sass
index 6f1adb7a051..0f1a41107ab 100644
--- a/frontend/src/app/modules/boards/board/board-list/board-list.component.sass
+++ b/frontend/src/app/features/boards/board/board-list/board-list.component.sass
@@ -1,4 +1,4 @@
-@import 'helpers'
+@import 'src/assets/sass/helpers'
$board-list-max-width: 300px
diff --git a/frontend/src/app/modules/boards/board/board-list/board-list.component.ts b/frontend/src/app/features/boards/board/board-list/board-list.component.ts
similarity index 79%
rename from frontend/src/app/modules/boards/board/board-list/board-list.component.ts
rename to frontend/src/app/features/boards/board/board-list/board-list.component.ts
index cbea634c7cf..0857b671765 100644
--- a/frontend/src/app/modules/boards/board/board-list/board-list.component.ts
+++ b/frontend/src/app/features/boards/board/board-list/board-list.component.ts
@@ -14,45 +14,45 @@ import {
import {
LoadingIndicatorService,
withLoadingIndicator
-} from "core-app/modules/common/loading-indicator/loading-indicator.service";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { WorkPackageInlineCreateService } from "core-components/wp-inline-create/wp-inline-create.service";
-import { BoardInlineCreateService } from "core-app/modules/boards/board/board-list/board-inline-create.service";
-import { AbstractWidgetComponent } from "core-app/modules/grids/widgets/abstract-widget.component";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { Board } from "core-app/modules/boards/board/board";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { AuthorisationService } from "core-app/modules/common/model-auth/model-auth.service";
-import { Highlighting } from "core-components/wp-fast-table/builders/highlighting/highlighting.functions";
-import { WorkPackageCardViewComponent } from "core-components/wp-card-view/wp-card-view.component";
-import { WorkPackageStatesInitializationService } from "core-components/wp-list/wp-states-initialization.service";
-import { ApiV3Filter } from "core-components/api/api-v3/api-v3-filter-builder";
-import { BoardService } from "app/modules/boards/board/board.service";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { BoardActionsRegistryService } from "core-app/modules/boards/board/board-actions/board-actions-registry.service";
-import { BoardActionService } from "core-app/modules/boards/board/board-actions/board-action.service";
+} from "core-app/core/loading-indicator/loading-indicator.service";
+import { WorkPackageInlineCreateService } from "core-app/features/work-packages/components/wp-inline-create/wp-inline-create.service";
+import { BoardInlineCreateService } from "core-app/features/boards/board/board-list/board-inline-create.service";
+import { AbstractWidgetComponent } from "core-app/shared/components/grids/widgets/abstract-widget.component";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { Board } from "core-app/features/boards/board/board";
+import { AuthorisationService } from "core-app/core/model-auth/model-auth.service";
+import { Highlighting } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting.functions";
+import { WorkPackageCardViewComponent } from "core-app/features/work-packages/components/wp-card-view/wp-card-view.component";
+import { WorkPackageStatesInitializationService } from "core-app/features/work-packages/components/wp-list/wp-states-initialization.service";
+import { BoardService } from "core-app/features/boards/board/board.service";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { BoardActionsRegistryService } from "core-app/features/boards/board/board-actions/board-actions-registry.service";
+import { BoardActionService } from "core-app/features/boards/board/board-actions/board-action.service";
import { ComponentType } from "@angular/cdk/portal";
-import { CausedUpdatesService } from "core-app/modules/boards/board/caused-updates/caused-updates.service";
-import { BoardListMenuComponent } from "core-app/modules/boards/board/board-list/board-list-menu.component";
-import { debugLog } from "core-app/helpers/debug_output";
-import { WorkPackageCardDragAndDropService } from "core-components/wp-card-view/services/wp-card-drag-and-drop.service";
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
+import { CausedUpdatesService } from "core-app/features/boards/board/caused-updates/caused-updates.service";
+import { BoardListMenuComponent } from "core-app/features/boards/board/board-list/board-list-menu.component";
+import { debugLog } from "core-app/shared/helpers/debug_output";
+import { WorkPackageCardDragAndDropService } from "core-app/features/work-packages/components/wp-card-view/services/wp-card-drag-and-drop.service";
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
-import { BoardFiltersService } from "core-app/modules/boards/board/board-filter/board-filters.service";
+import { BoardFiltersService } from "core-app/features/boards/board/board-filter/board-filters.service";
import { StateService, TransitionService } from "@uirouter/core";
-import { WorkPackageViewFocusService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service";
-import { WorkPackageViewSelectionService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
-import { BoardListCrossSelectionService } from "core-app/modules/boards/board/board-list/board-list-cross-selection.service";
+import { WorkPackageViewFocusService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service";
+import { WorkPackageViewSelectionService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { BoardListCrossSelectionService } from "core-app/features/boards/board/board-list/board-list-cross-selection.service";
import { debounceTime, filter, map, retry } from "rxjs/operators";
-import { HalEvent, HalEventsService } from "core-app/modules/hal/services/hal-events.service";
-import { ChangeItem } from "core-app/modules/fields/changeset/changeset";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { KeepTabService } from "core-components/wp-single-view-tabs/keep-tab/keep-tab.service";
+import { ChangeItem } from "core-app/shared/components/fields/changeset/changeset";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { ApiV3Filter } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+import { KeepTabService } from "core-app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { HalEvent, HalEventsService } from "core-app/features/hal/services/hal-events.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
export interface DisabledButtonPlaceholder {
text:string;
diff --git a/frontend/src/app/modules/boards/board/board-list/board-lists.service.ts b/frontend/src/app/features/boards/board/board-list/board-lists.service.ts
similarity index 77%
rename from frontend/src/app/modules/boards/board/board-list/board-lists.service.ts
rename to frontend/src/app/features/boards/board/board-list/board-lists.service.ts
index c3def329354..b7148610b16 100644
--- a/frontend/src/app/modules/boards/board/board-list/board-lists.service.ts
+++ b/frontend/src/app/features/boards/board/board-list/board-lists.service.ts
@@ -1,14 +1,14 @@
import { Injectable } from "@angular/core";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { Board } from "core-app/modules/boards/board/board";
-import { GridWidgetResource } from "core-app/modules/hal/resources/grid-widget-resource";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { ApiV3Filter } from "core-components/api/api-v3/api-v3-filter-builder";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { Board } from "core-app/features/boards/board/board";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { ApiV3Filter } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+import { GridWidgetResource } from "core-app/features/hal/resources/grid-widget-resource";
@Injectable({ providedIn: 'root' })
export class BoardListsService {
diff --git a/frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.html b/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.html
similarity index 100%
rename from frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.html
rename to frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.html
diff --git a/frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.sass b/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.sass
similarity index 96%
rename from frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.sass
rename to frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.sass
index 343154756f1..8a9024e742f 100644
--- a/frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.sass
+++ b/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.sass
@@ -1,4 +1,4 @@
-@import 'helpers'
+@import 'src/assets/sass/helpers'
$board-list-max-width: 300px
diff --git a/frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.ts b/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.ts
similarity index 81%
rename from frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.ts
rename to frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.ts
index 4a6bf4b8b2f..eb50c466991 100644
--- a/frontend/src/app/modules/boards/board/board-partitioned-page/board-list-container.component.ts
+++ b/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.ts
@@ -1,28 +1,28 @@
import { Component, ElementRef, Injector, OnInit, QueryList, ViewChild, ViewChildren } from "@angular/core";
import { forkJoin, Observable, of, Subscription } from "rxjs";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { BoardListComponent } from "core-app/modules/boards/board/board-list/board-list.component";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { BoardListComponent } from "core-app/features/boards/board/board-list/board-list.component";
import { StateService } from "@uirouter/core";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { BoardListsService } from "core-app/modules/boards/board/board-list/board-lists.service";
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { BoardService } from "core-app/modules/boards/board/board.service";
-import { BannersService } from "core-app/modules/common/enterprise/banners.service";
-import { DragAndDropService } from "core-app/modules/common/drag-and-drop/drag-and-drop.service";
-import { QueryUpdatedService } from "core-app/modules/boards/board/query-updated/query-updated.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { Board, BoardWidgetOption } from "core-app/modules/boards/board/board";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { BoardListsService } from "core-app/features/boards/board/board-list/board-lists.service";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { BoardService } from "core-app/features/boards/board/board.service";
+import { BannersService } from "core-app/core/enterprise/banners.service";
+import { DragAndDropService } from "core-app/shared/helpers/drag-and-drop/drag-and-drop.service";
+import { QueryUpdatedService } from "core-app/features/boards/board/query-updated/query-updated.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { Board, BoardWidgetOption } from "core-app/features/boards/board/board";
import { CdkDragDrop, moveItemInArray } from "@angular/cdk/drag-drop";
-import { GridWidgetResource } from "core-app/modules/hal/resources/grid-widget-resource";
-import { BoardPartitionedPageComponent } from "core-app/modules/boards/board/board-partitioned-page/board-partitioned-page.component";
-import { AddListModalComponent } from "core-app/modules/boards/board/add-list-modal/add-list-modal.component";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { BoardListCrossSelectionService } from "core-app/modules/boards/board/board-list/board-list-cross-selection.service";
+import { GridWidgetResource } from "core-app/features/hal/resources/grid-widget-resource";
+import { BoardPartitionedPageComponent } from "core-app/features/boards/board/board-partitioned-page/board-partitioned-page.component";
+import { AddListModalComponent } from "core-app/features/boards/board/add-list-modal/add-list-modal.component";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { BoardListCrossSelectionService } from "core-app/features/boards/board/board-list/board-list-cross-selection.service";
import { catchError, filter, map, switchMap, tap } from "rxjs/operators";
-import { BoardActionsRegistryService } from "core-app/modules/boards/board/board-actions/board-actions-registry.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { WorkPackageStatesInitializationService } from 'core-app/components/wp-list/wp-states-initialization.service';
+import { BoardActionsRegistryService } from "core-app/features/boards/board/board-actions/board-actions-registry.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { WorkPackageStatesInitializationService } from 'core-app/features/work-packages/components/wp-list/wp-states-initialization.service';
@Component({
templateUrl: './board-list-container.component.html',
diff --git a/frontend/src/app/modules/boards/board/board-partitioned-page/board-partitioned-page.component.sass b/frontend/src/app/features/boards/board/board-partitioned-page/board-partitioned-page.component.sass
similarity index 100%
rename from frontend/src/app/modules/boards/board/board-partitioned-page/board-partitioned-page.component.sass
rename to frontend/src/app/features/boards/board/board-partitioned-page/board-partitioned-page.component.sass
diff --git a/frontend/src/app/modules/boards/board/board-partitioned-page/board-partitioned-page.component.ts b/frontend/src/app/features/boards/board/board-partitioned-page/board-partitioned-page.component.ts
similarity index 77%
rename from frontend/src/app/modules/boards/board/board-partitioned-page/board-partitioned-page.component.ts
rename to frontend/src/app/features/boards/board/board-partitioned-page/board-partitioned-page.component.ts
index 4e4af16cbf5..e7d70745e14 100644
--- a/frontend/src/app/modules/boards/board/board-partitioned-page/board-partitioned-page.component.ts
+++ b/frontend/src/app/features/boards/board/board-partitioned-page/board-partitioned-page.component.ts
@@ -3,36 +3,36 @@ import {
DynamicComponentDefinition,
ToolbarButtonComponentDefinition,
ViewPartitionState
-} from "core-app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component";
+} from "core-app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component";
import { StateService, TransitionService } from "@uirouter/core";
-import { BoardFilterComponent } from "core-app/modules/boards/board/board-filter/board-filter.component";
-import { Board } from "core-app/modules/boards/board/board";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { BoardService } from "core-app/modules/boards/board/board.service";
-import { DragAndDropService } from "core-app/modules/common/drag-and-drop/drag-and-drop.service";
-import { WorkPackageFilterButtonComponent } from "core-components/wp-buttons/wp-filter-button/wp-filter-button.component";
-import { ZenModeButtonComponent } from "core-components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component";
-import { BoardsMenuButtonComponent } from "core-app/modules/boards/board/toolbar-menu/boards-menu-button.component";
-import { RequestSwitchmap } from "core-app/helpers/rxjs/request-switchmap";
+import { BoardFilterComponent } from "core-app/features/boards/board/board-filter/board-filter.component";
+import { Board } from "core-app/features/boards/board/board";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { BoardService } from "core-app/features/boards/board/board.service";
+import { DragAndDropService } from "core-app/shared/helpers/drag-and-drop/drag-and-drop.service";
+import { WorkPackageFilterButtonComponent } from "core-app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.component";
+import { ZenModeButtonComponent } from "core-app/features/work-packages/components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component";
+import { BoardsMenuButtonComponent } from "core-app/features/boards/board/toolbar-menu/boards-menu-button.component";
+import { RequestSwitchmap } from "core-app/shared/helpers/rxjs/request-switchmap";
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
import { finalize, take } from "rxjs/operators";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
import { Ng2StateDeclaration } from "@uirouter/angular";
-import { BoardFiltersService } from "core-app/modules/boards/board/board-filter/board-filters.service";
-import { CardViewHandlerRegistry } from "core-components/wp-card-view/event-handler/card-view-handler-registry";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { BoardFiltersService } from "core-app/features/boards/board/board-filter/board-filters.service";
+import { CardViewHandlerRegistry } from "core-app/features/work-packages/components/wp-card-view/event-handler/card-view-handler-registry";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
export function boardCardViewHandlerFactory(injector:Injector) {
return new CardViewHandlerRegistry(injector);
}
@Component({
- templateUrl: '../../../work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.html',
+ templateUrl: '../../../work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.html',
styleUrls: [
- '../../../work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass',
+ '../../../work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass',
'./board-partitioned-page.component.sass'
],
changeDetection: ChangeDetectionStrategy.OnPush,
diff --git a/frontend/src/app/modules/boards/board/board-video-teaser-modal/board-video-teaser-modal.component.ts b/frontend/src/app/features/boards/board/board-video-teaser-modal/board-video-teaser-modal.component.ts
similarity index 80%
rename from frontend/src/app/modules/boards/board/board-video-teaser-modal/board-video-teaser-modal.component.ts
rename to frontend/src/app/features/boards/board/board-video-teaser-modal/board-video-teaser-modal.component.ts
index 3c7a9109cd6..02bb00d539d 100644
--- a/frontend/src/app/modules/boards/board/board-video-teaser-modal/board-video-teaser-modal.component.ts
+++ b/frontend/src/app/features/boards/board/board-video-teaser-modal/board-video-teaser-modal.component.ts
@@ -1,9 +1,9 @@
import { ChangeDetectorRef, Component, ElementRef, Inject, OnDestroy, OnInit } from '@angular/core';
-import { OpModalLocalsMap } from 'core-app/modules/modal/modal.types';
-import { OpModalComponent } from 'core-app/modules/modal/modal.component';
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { boardTeaserVideoURL } from "core-app/modules/boards/board-constants.const";
+import { OpModalLocalsMap } from 'core-app/shared/components/modal/modal.types';
+import { OpModalComponent } from 'core-app/shared/components/modal/modal.component';
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { boardTeaserVideoURL } from "core-app/features/boards/board-constants.const";
import { DomSanitizer } from "@angular/platform-browser";
diff --git a/frontend/src/app/modules/boards/board/board.service.ts b/frontend/src/app/features/boards/board/board.service.ts
similarity index 80%
rename from frontend/src/app/modules/boards/board/board.service.ts
rename to frontend/src/app/features/boards/board/board.service.ts
index f339cb2b7c9..fba11832f84 100644
--- a/frontend/src/app/modules/boards/board/board.service.ts
+++ b/frontend/src/app/features/boards/board/board.service.ts
@@ -1,14 +1,14 @@
import { Injectable } from "@angular/core";
-import { BoardListsService } from "core-app/modules/boards/board/board-list/board-lists.service";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { Board, BoardType } from "core-app/modules/boards/board/board";
-import { GridWidgetResource } from "core-app/modules/hal/resources/grid-widget-resource";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { BoardActionsRegistryService } from "core-app/modules/boards/board/board-actions/board-actions-registry.service";
+import { BoardListsService } from "core-app/features/boards/board/board-list/board-lists.service";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { Board, BoardType } from "core-app/features/boards/board/board";
+import { GridWidgetResource } from "core-app/features/hal/resources/grid-widget-resource";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { BoardActionsRegistryService } from "core-app/features/boards/board/board-actions/board-actions-registry.service";
import { BehaviorSubject, Observable } from "rxjs";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
export interface CreateBoardParams {
type:BoardType;
diff --git a/frontend/src/app/modules/boards/board/board.ts b/frontend/src/app/features/boards/board/board.ts
similarity index 82%
rename from frontend/src/app/modules/boards/board/board.ts
rename to frontend/src/app/features/boards/board/board.ts
index cc2e7c41739..3ba58878ca8 100644
--- a/frontend/src/app/modules/boards/board/board.ts
+++ b/frontend/src/app/features/boards/board/board.ts
@@ -1,7 +1,7 @@
-import { GridWidgetResource } from "core-app/modules/hal/resources/grid-widget-resource";
-import { GridResource } from "core-app/modules/hal/resources/grid-resource";
-import { CardHighlightingMode } from "core-components/wp-fast-table/builders/highlighting/highlighting-mode.const";
-import { ApiV3Filter } from "core-components/api/api-v3/api-v3-filter-builder";
+import { GridWidgetResource } from "core-app/features/hal/resources/grid-widget-resource";
+import { GridResource } from "core-app/features/hal/resources/grid-resource";
+import { CardHighlightingMode } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting-mode.const";
+import { ApiV3Filter } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
export type BoardType = 'free'|'action';
diff --git a/frontend/src/app/modules/boards/board/caused-updates/caused-updates.service.ts b/frontend/src/app/features/boards/board/caused-updates/caused-updates.service.ts
similarity index 90%
rename from frontend/src/app/modules/boards/board/caused-updates/caused-updates.service.ts
rename to frontend/src/app/features/boards/board/caused-updates/caused-updates.service.ts
index 002a30013db..f98bf5cabd9 100644
--- a/frontend/src/app/modules/boards/board/caused-updates/caused-updates.service.ts
+++ b/frontend/src/app/features/boards/board/caused-updates/caused-updates.service.ts
@@ -1,5 +1,5 @@
import { Injectable } from "@angular/core";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
/**
* The service is intended to store all the updates caused to a query by a user.
diff --git a/frontend/src/app/modules/boards/board/configuration-modal/board-configuration.modal.html b/frontend/src/app/features/boards/board/configuration-modal/board-configuration.modal.html
similarity index 100%
rename from frontend/src/app/modules/boards/board/configuration-modal/board-configuration.modal.html
rename to frontend/src/app/features/boards/board/configuration-modal/board-configuration.modal.html
diff --git a/frontend/src/app/modules/boards/board/configuration-modal/board-configuration.modal.ts b/frontend/src/app/features/boards/board/configuration-modal/board-configuration.modal.ts
similarity index 81%
rename from frontend/src/app/modules/boards/board/configuration-modal/board-configuration.modal.ts
rename to frontend/src/app/features/boards/board/configuration-modal/board-configuration.modal.ts
index 7676dcd5dd8..a6a8e3215ea 100644
--- a/frontend/src/app/modules/boards/board/configuration-modal/board-configuration.modal.ts
+++ b/frontend/src/app/features/boards/board/configuration-modal/board-configuration.modal.ts
@@ -10,19 +10,19 @@ import {
OnInit,
ViewChild
} from '@angular/core';
-import { OpModalLocalsMap } from 'core-app/modules/modal/modal.types';
-import { OpModalComponent } from 'core-app/modules/modal/modal.component';
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
+import { OpModalLocalsMap } from 'core-app/shared/components/modal/modal.types';
+import { OpModalComponent } from 'core-app/shared/components/modal/modal.component';
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
import {
ActiveTabInterface,
TabComponent,
TabInterface,
TabPortalOutlet
-} from 'core-components/wp-table/configuration-modal/tab-portal-outlet';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { BoardConfigurationService } from "core-app/modules/boards/board/configuration-modal/board-configuration.service";
-import { BoardService } from "core-app/modules/boards/board/board.service";
-import { Board } from "core-app/modules/boards/board/board";
+} from 'core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet';
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { BoardConfigurationService } from "core-app/features/boards/board/configuration-modal/board-configuration.service";
+import { BoardService } from "core-app/features/boards/board/board.service";
+import { Board } from "core-app/features/boards/board/board";
@Component({
@@ -121,4 +121,4 @@ export class BoardConfigurationModal extends OpModalComponent implements OnInit,
protected get afterFocusOn():JQuery {
return this.$element;
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/app/modules/boards/board/configuration-modal/board-configuration.service.ts b/frontend/src/app/features/boards/board/configuration-modal/board-configuration.service.ts
similarity index 56%
rename from frontend/src/app/modules/boards/board/configuration-modal/board-configuration.service.ts
rename to frontend/src/app/features/boards/board/configuration-modal/board-configuration.service.ts
index 87e3d71fc2a..76e23462473 100644
--- a/frontend/src/app/modules/boards/board/configuration-modal/board-configuration.service.ts
+++ b/frontend/src/app/features/boards/board/configuration-modal/board-configuration.service.ts
@@ -1,7 +1,7 @@
import { Injectable } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { TabInterface } from "core-components/wp-table/configuration-modal/tab-portal-outlet";
-import { BoardHighlightingTabComponent } from "core-app/modules/boards/board/configuration-modal/tabs/highlighting-tab.component";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { TabInterface } from "core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet";
+import { BoardHighlightingTabComponent } from "core-app/features/boards/board/configuration-modal/tabs/highlighting-tab.component";
@Injectable()
export class BoardConfigurationService {
diff --git a/frontend/src/app/modules/boards/board/configuration-modal/tabs/highlighting-tab.component.html b/frontend/src/app/features/boards/board/configuration-modal/tabs/highlighting-tab.component.html
similarity index 100%
rename from frontend/src/app/modules/boards/board/configuration-modal/tabs/highlighting-tab.component.html
rename to frontend/src/app/features/boards/board/configuration-modal/tabs/highlighting-tab.component.html
diff --git a/frontend/src/app/modules/boards/board/configuration-modal/tabs/highlighting-tab.component.ts b/frontend/src/app/features/boards/board/configuration-modal/tabs/highlighting-tab.component.ts
similarity index 76%
rename from frontend/src/app/modules/boards/board/configuration-modal/tabs/highlighting-tab.component.ts
rename to frontend/src/app/features/boards/board/configuration-modal/tabs/highlighting-tab.component.ts
index 487dfcba5d0..619ffb8df1f 100644
--- a/frontend/src/app/modules/boards/board/configuration-modal/tabs/highlighting-tab.component.ts
+++ b/frontend/src/app/features/boards/board/configuration-modal/tabs/highlighting-tab.component.ts
@@ -1,10 +1,10 @@
import { Component, Inject, Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { TabComponent } from 'core-components/wp-table/configuration-modal/tab-portal-outlet';
-import { OpModalLocalsMap } from "core-app/modules/modal/modal.types";
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { Board } from "core-app/modules/boards/board/board";
-import { CardHighlightingMode } from "core-components/wp-fast-table/builders/highlighting/highlighting-mode.const";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { TabComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet';
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { Board } from "core-app/features/boards/board/board";
+import { CardHighlightingMode } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting-mode.const";
@Component({
templateUrl: './highlighting-tab.component.html'
diff --git a/frontend/src/app/modules/boards/board/inline-add/board-inline-add-autocompleter.component.ts b/frontend/src/app/features/boards/board/inline-add/board-inline-add-autocompleter.component.ts
similarity index 74%
rename from frontend/src/app/modules/boards/board/inline-add/board-inline-add-autocompleter.component.ts
rename to frontend/src/app/features/boards/board/inline-add/board-inline-add-autocompleter.component.ts
index 78c435cfed3..fe2c173d11b 100644
--- a/frontend/src/app/modules/boards/board/inline-add/board-inline-add-autocompleter.component.ts
+++ b/frontend/src/app/features/boards/board/inline-add/board-inline-add-autocompleter.component.ts
@@ -36,24 +36,21 @@ import {
ViewChild,
ViewEncapsulation
} from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { Observable, of, Subject } from "rxjs";
-import { catchError, debounceTime, distinctUntilChanged, map, switchMap, tap } from "rxjs/operators";
-import { NgSelectComponent } from "@ng-select/ng-select";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { WorkPackageCollectionResource } from "core-app/modules/hal/resources/wp-collection-resource";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { ApiV3FilterBuilder } from "core-components/api/api-v3/api-v3-filter-builder";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { WorkPackageCardDragAndDropService } from "core-components/wp-card-view/services/wp-card-drag-and-drop.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { UrlParamsHelperService } from "core-components/wp-query/url-params-helper";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { OpAutocompleterComponent } from "core-app/modules/autocompleter/op-autocompleter/op-autocompleter.component";
-import { QueryFilterResource } from 'core-app/modules/hal/resources/query-filter-resource';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { Observable, of } from "rxjs";
+import { catchError, map, tap } from "rxjs/operators";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { WorkPackageCardDragAndDropService } from "core-app/features/work-packages/components/wp-card-view/services/wp-card-drag-and-drop.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { UrlParamsHelperService } from "core-app/features/work-packages/components/wp-query/url-params-helper";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { ApiV3FilterBuilder } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+import { OpAutocompleterComponent } from "core-app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
@Component({
selector: 'board-inline-add-autocompleter',
@@ -123,7 +120,7 @@ export class BoardInlineAddAutocompleterComponent implements AfterViewInit {
@Output() onCancel = new EventEmitter<undefined>();
@Output() onReferenced = new EventEmitter<WorkPackageResource>();
-
+
constructor(private readonly querySpace:IsolatedQuerySpace,
private readonly pathHelper:PathHelperService,
private readonly apiV3Service:APIV3Service,
@@ -151,7 +148,7 @@ export class BoardInlineAddAutocompleterComponent implements AfterViewInit {
}
public addWorkPackageToQuery(workPackage?:WorkPackageResource) {
-
+
if (workPackage) {
this.schemaCacheService
.ensureLoaded(workPackage)
@@ -161,5 +158,4 @@ export class BoardInlineAddAutocompleterComponent implements AfterViewInit {
});
}
}
-
}
diff --git a/frontend/src/app/modules/boards/board/inline-add/board-inline-add-autocompleter.html b/frontend/src/app/features/boards/board/inline-add/board-inline-add-autocompleter.html
similarity index 100%
rename from frontend/src/app/modules/boards/board/inline-add/board-inline-add-autocompleter.html
rename to frontend/src/app/features/boards/board/inline-add/board-inline-add-autocompleter.html
diff --git a/frontend/src/app/modules/boards/board/inline-add/board-inline-add-autocompleter.sass b/frontend/src/app/features/boards/board/inline-add/board-inline-add-autocompleter.sass
similarity index 100%
rename from frontend/src/app/modules/boards/board/inline-add/board-inline-add-autocompleter.sass
rename to frontend/src/app/features/boards/board/inline-add/board-inline-add-autocompleter.sass
diff --git a/frontend/src/app/modules/boards/board/query-updated/query-updated.service.ts b/frontend/src/app/features/boards/board/query-updated/query-updated.service.ts
similarity index 85%
rename from frontend/src/app/modules/boards/board/query-updated/query-updated.service.ts
rename to frontend/src/app/features/boards/board/query-updated/query-updated.service.ts
index a37a76503c4..309f889f8b5 100644
--- a/frontend/src/app/modules/boards/board/query-updated/query-updated.service.ts
+++ b/frontend/src/app/features/boards/board/query-updated/query-updated.service.ts
@@ -1,8 +1,8 @@
import { Injectable } from "@angular/core";
import { interval } from 'rxjs';
import { startWith, switchMap, filter } from 'rxjs/operators';
-import { ActiveWindowService } from "core-app/modules/common/active-window/active-window.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { ActiveWindowService } from "core-app/core/active-window/active-window.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
const POLLING_INTERVAL = 2000;
diff --git a/frontend/src/app/modules/boards/board/toolbar-menu/boards-menu-button.component.ts b/frontend/src/app/features/boards/board/toolbar-menu/boards-menu-button.component.ts
similarity index 81%
rename from frontend/src/app/modules/boards/board/toolbar-menu/boards-menu-button.component.ts
rename to frontend/src/app/features/boards/board/toolbar-menu/boards-menu-button.component.ts
index 5b71b004c9b..0f7f82d3e8b 100644
--- a/frontend/src/app/modules/boards/board/toolbar-menu/boards-menu-button.component.ts
+++ b/frontend/src/app/features/boards/board/toolbar-menu/boards-menu-button.component.ts
@@ -1,6 +1,6 @@
import { Component, Input } from "@angular/core";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { Board } from "core-app/modules/boards/board/board";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { Board } from "core-app/features/boards/board/board";
import { Observable } from "rxjs";
@Component({
diff --git a/frontend/src/app/modules/boards/board/toolbar-menu/boards-toolbar-menu.directive.ts b/frontend/src/app/features/boards/board/toolbar-menu/boards-toolbar-menu.directive.ts
similarity index 81%
rename from frontend/src/app/modules/boards/board/toolbar-menu/boards-toolbar-menu.directive.ts
rename to frontend/src/app/features/boards/board/toolbar-menu/boards-toolbar-menu.directive.ts
index 0d1d3aaafc7..7334a128e1d 100644
--- a/frontend/src/app/modules/boards/board/toolbar-menu/boards-toolbar-menu.directive.ts
+++ b/frontend/src/app/features/boards/board/toolbar-menu/boards-toolbar-menu.directive.ts
@@ -27,16 +27,16 @@
//++
import { Directive, ElementRef, Injector, Input } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { OpContextMenuTrigger } from 'core-components/op-context-menu/handlers/op-context-menu-trigger.directive';
-import { OPContextMenuService } from 'core-components/op-context-menu/op-context-menu.service';
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { Board } from "core-app/modules/boards/board/board";
-import { BoardConfigurationModal } from "core-app/modules/boards/board/configuration-modal/board-configuration.modal";
-import { BoardService } from "core-app/modules/boards/board/board.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { OpContextMenuTrigger } from 'core-app/shared/components/op-context-menu/handlers/op-context-menu-trigger.directive';
+import { OPContextMenuService } from 'core-app/shared/components/op-context-menu/op-context-menu.service';
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { Board } from "core-app/features/boards/board/board";
+import { BoardConfigurationModal } from "core-app/features/boards/board/configuration-modal/board-configuration.modal";
+import { BoardService } from "core-app/features/boards/board/board.service";
import { StateService } from "@uirouter/core";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { triggerEditingEvent } from "core-app/modules/common/editable-toolbar-title/editable-toolbar-title.component";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { triggerEditingEvent } from "core-app/shared/components/editable-toolbar-title/editable-toolbar-title.component";
@Directive({
selector: '[boardsToolbarMenu]'
diff --git a/frontend/src/app/features/boards/boards-root/boards-root.component.ts b/frontend/src/app/features/boards/boards-root/boards-root.component.ts
new file mode 100644
index 00000000000..dbd04ff8208
--- /dev/null
+++ b/frontend/src/app/features/boards/boards-root/boards-root.component.ts
@@ -0,0 +1,37 @@
+import { Component, Injector } from "@angular/core";
+import { BoardConfigurationService } from "core-app/features/boards/board/configuration-modal/board-configuration.service";
+import { BoardActionsRegistryService } from "core-app/features/boards/board/board-actions/board-actions-registry.service";
+import { BoardStatusActionService } from "core-app/features/boards/board/board-actions/status/status-action.service";
+import { BoardVersionActionService } from "core-app/features/boards/board/board-actions/version/version-action.service";
+import { QueryUpdatedService } from "core-app/features/boards/board/query-updated/query-updated.service";
+import { BoardAssigneeActionService } from "core-app/features/boards/board/board-actions/assignee/assignee-action.service";
+import { BoardSubprojectActionService } from "core-app/features/boards/board/board-actions/subproject/subproject-action.service";
+import { BoardSubtasksActionService } from "core-app/features/boards/board/board-actions/subtasks/board-subtasks-action.service";
+
+@Component({
+ selector: 'boards-entry',
+ template: '<ui-view wp-isolated-query-space></ui-view>',
+ providers: [
+ BoardConfigurationService,
+ BoardStatusActionService,
+ BoardVersionActionService,
+ BoardAssigneeActionService,
+ BoardSubprojectActionService,
+ BoardSubtasksActionService,
+ QueryUpdatedService,
+ ]
+})
+export class BoardsRootComponent {
+
+ constructor(readonly injector:Injector) {
+
+ // Register action services
+ const registry = injector.get(BoardActionsRegistryService);
+
+ registry.add('status', injector.get(BoardStatusActionService));
+ registry.add('assignee', injector.get(BoardAssigneeActionService));
+ registry.add('version', injector.get(BoardVersionActionService));
+ registry.add('subproject', injector.get(BoardSubprojectActionService));
+ registry.add('subtasks', injector.get(BoardSubtasksActionService));
+ }
+}
diff --git a/frontend/src/app/modules/boards/boards-sidebar/boards-menu.component.html b/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.html
similarity index 100%
rename from frontend/src/app/modules/boards/boards-sidebar/boards-menu.component.html
rename to frontend/src/app/features/boards/boards-sidebar/boards-menu.component.html
diff --git a/frontend/src/app/modules/boards/boards-sidebar/boards-menu.component.ts b/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.ts
similarity index 75%
rename from frontend/src/app/modules/boards/boards-sidebar/boards-menu.component.ts
rename to frontend/src/app/features/boards/boards-sidebar/boards-menu.component.ts
index 252d2c6fa3f..64417f34808 100644
--- a/frontend/src/app/modules/boards/boards-sidebar/boards-menu.component.ts
+++ b/frontend/src/app/features/boards/boards-sidebar/boards-menu.component.ts
@@ -1,13 +1,13 @@
import { Component, OnInit } from "@angular/core";
import { Observable } from "rxjs";
-import { BoardService } from "core-app/modules/boards/board/board.service";
-import { Board } from "core-app/modules/boards/board/board";
-import { AngularTrackingHelpers } from "core-components/angular/tracking-functions";
-import { MainMenuNavigationService } from "core-components/main-menu/main-menu-navigation.service";
+import { BoardService } from "core-app/features/boards/board/board.service";
+import { Board } from "core-app/features/boards/board/board";
+import { AngularTrackingHelpers } from "core-app/shared/helpers/angular/tracking-functions";
import { map } from "rxjs/operators";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { MainMenuNavigationService } from "core-app/core/main-menu/main-menu-navigation.service";
export const boardsMenuSelector = 'boards-menu';
diff --git a/frontend/src/app/modules/boards/index-page/boards-index-page.component.html b/frontend/src/app/features/boards/index-page/boards-index-page.component.html
similarity index 100%
rename from frontend/src/app/modules/boards/index-page/boards-index-page.component.html
rename to frontend/src/app/features/boards/index-page/boards-index-page.component.html
diff --git a/frontend/src/app/modules/boards/index-page/boards-index-page.component.sass b/frontend/src/app/features/boards/index-page/boards-index-page.component.sass
similarity index 100%
rename from frontend/src/app/modules/boards/index-page/boards-index-page.component.sass
rename to frontend/src/app/features/boards/index-page/boards-index-page.component.sass
diff --git a/frontend/src/app/modules/boards/index-page/boards-index-page.component.ts b/frontend/src/app/features/boards/index-page/boards-index-page.component.ts
similarity index 75%
rename from frontend/src/app/modules/boards/index-page/boards-index-page.component.ts
rename to frontend/src/app/features/boards/index-page/boards-index-page.component.ts
index 5eeacf4cb71..ec0cc185662 100644
--- a/frontend/src/app/modules/boards/index-page/boards-index-page.component.ts
+++ b/frontend/src/app/features/boards/index-page/boards-index-page.component.ts
@@ -1,20 +1,20 @@
import { AfterViewInit, Component, Injector, OnInit } from "@angular/core";
import { Observable } from "rxjs";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { BoardService } from "core-app/modules/boards/board/board.service";
-import { Board } from "core-app/modules/boards/board/board";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { NewBoardModalComponent } from "core-app/modules/boards/new-board-modal/new-board-modal.component";
-import { BannersService } from "core-app/modules/common/enterprise/banners.service";
-import { LoadingIndicatorService } from "core-app/modules/common/loading-indicator/loading-indicator.service";
-import { AuthorisationService } from "core-app/modules/common/model-auth/model-auth.service";
-import { contactUrl } from "core-app/globals/constants.const";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { BoardService } from "core-app/features/boards/board/board.service";
+import { Board } from "core-app/features/boards/board/board";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { NewBoardModalComponent } from "core-app/features/boards/new-board-modal/new-board-modal.component";
+import { BannersService } from "core-app/core/enterprise/banners.service";
+import { LoadingIndicatorService } from "core-app/core/loading-indicator/loading-indicator.service";
+import { AuthorisationService } from "core-app/core/model-auth/model-auth.service";
+import { contactUrl } from "core-app/core/setup/globals/constants.const";
import { DomSanitizer } from "@angular/platform-browser";
-import { boardTeaserVideoURL } from "core-app/modules/boards/board-constants.const";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { boardTeaserVideoURL } from "core-app/features/boards/board-constants.const";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Component({
templateUrl: './boards-index-page.component.html',
diff --git a/frontend/src/app/modules/boards/new-board-modal/new-board-modal.component.ts b/frontend/src/app/features/boards/new-board-modal/new-board-modal.component.ts
similarity index 86%
rename from frontend/src/app/modules/boards/new-board-modal/new-board-modal.component.ts
rename to frontend/src/app/features/boards/new-board-modal/new-board-modal.component.ts
index 25621be3569..26ab7eb3a38 100644
--- a/frontend/src/app/modules/boards/new-board-modal/new-board-modal.component.ts
+++ b/frontend/src/app/features/boards/new-board-modal/new-board-modal.component.ts
@@ -27,18 +27,18 @@
//++
import { ChangeDetectorRef, Component, ElementRef, Inject, ViewChild } from "@angular/core";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { OpModalLocalsMap } from "core-app/modules/modal/modal.types";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { BoardType } from "core-app/modules/boards/board/board";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { BoardType } from "core-app/features/boards/board/board";
import { StateService } from "@uirouter/core";
-import { BoardService } from "core-app/modules/boards/board/board.service";
-import { BoardActionsRegistryService } from "core-app/modules/boards/board/board-actions/board-actions-registry.service";
-import { LoadingIndicatorService } from "core-app/modules/common/loading-indicator/loading-indicator.service";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
+import { BoardService } from "core-app/features/boards/board/board.service";
+import { BoardActionsRegistryService } from "core-app/features/boards/board/board-actions/board-actions-registry.service";
+import { LoadingIndicatorService } from "core-app/core/loading-indicator/loading-indicator.service";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
import { ITileViewEntry } from '../tile-view/tile-view.component';
-import { ImageHelpers } from "core-app/helpers/images/path-helper";
+import { ImageHelpers } from "core-app/shared/helpers/images/path-helper";
import imagePath = ImageHelpers.imagePath;
diff --git a/frontend/src/app/modules/boards/new-board-modal/new-board-modal.html b/frontend/src/app/features/boards/new-board-modal/new-board-modal.html
similarity index 100%
rename from frontend/src/app/modules/boards/new-board-modal/new-board-modal.html
rename to frontend/src/app/features/boards/new-board-modal/new-board-modal.html
diff --git a/frontend/src/app/features/boards/openproject-boards.module.ts b/frontend/src/app/features/boards/openproject-boards.module.ts
new file mode 100644
index 00000000000..dead247c6f6
--- /dev/null
+++ b/frontend/src/app/features/boards/openproject-boards.module.ts
@@ -0,0 +1,105 @@
+//-- copyright
+// OpenProject is an open source project management software.
+// Copyright (C) 2012-2021 the OpenProject GmbH
+//
+// 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 docs/COPYRIGHT.rdoc for more details.
+//++
+
+import { NgModule } from '@angular/core';
+import { OPSharedModule } from "core-app/shared/shared.module";
+import { OpenprojectWorkPackagesModule } from "core-app/features/work-packages/openproject-work-packages.module";
+import { OpenprojectModalModule } from "core-app/shared/components/modal/modal.module";
+import { UIRouterModule } from "@uirouter/angular";
+import { BoardListComponent } from "core-app/features/boards/board/board-list/board-list.component";
+import { BoardsRootComponent } from "core-app/features/boards/boards-root/boards-root.component";
+import { BoardInlineAddAutocompleterComponent } from "core-app/features/boards/board/inline-add/board-inline-add-autocompleter.component";
+import { BoardsToolbarMenuDirective } from "core-app/features/boards/board/toolbar-menu/boards-toolbar-menu.directive";
+import { BoardConfigurationModal } from "core-app/features/boards/board/configuration-modal/board-configuration.modal";
+import { BoardsIndexPageComponent } from "core-app/features/boards/index-page/boards-index-page.component";
+import { BoardsMenuComponent } from "core-app/features/boards/boards-sidebar/boards-menu.component";
+import { NewBoardModalComponent } from "core-app/features/boards/new-board-modal/new-board-modal.component";
+import { AddListModalComponent } from "core-app/features/boards/board/add-list-modal/add-list-modal.component";
+import { BoardHighlightingTabComponent } from "core-app/features/boards/board/configuration-modal/tabs/highlighting-tab.component";
+import { AddCardDropdownMenuDirective } from "core-app/features/boards/board/add-card-dropdown/add-card-dropdown-menu.directive";
+import { BoardFilterComponent } from "core-app/features/boards/board/board-filter/board-filter.component";
+import { DragScrollModule } from "cdk-drag-scroll";
+import { BoardListMenuComponent } from "core-app/features/boards/board/board-list/board-list-menu.component";
+import { VersionBoardHeaderComponent } from "core-app/features/boards/board/board-actions/version/version-board-header.component";
+import { DynamicModule } from "ng-dynamic-component";
+import { BOARDS_ROUTES, uiRouterBoardsConfiguration } from "core-app/features/boards/openproject-boards.routes";
+import { BoardPartitionedPageComponent } from "core-app/features/boards/board/board-partitioned-page/board-partitioned-page.component";
+import { BoardListContainerComponent } from "core-app/features/boards/board/board-partitioned-page/board-list-container.component";
+import { BoardsMenuButtonComponent } from "core-app/features/boards/board/toolbar-menu/boards-menu-button.component";
+import { AssigneeBoardHeaderComponent } from "core-app/features/boards/board/board-actions/assignee/assignee-board-header.component";
+import { TileViewComponent } from './tile-view/tile-view.component';
+import { SubprojectBoardHeaderComponent } from "core-app/features/boards/board/board-actions/subproject/subproject-board-header.component";
+import { SubtasksBoardHeaderComponent } from "core-app/features/boards/board/board-actions/subtasks/subtasks-board-header.component";
+import { StatusBoardHeaderComponent } from "core-app/features/boards/board/board-actions/status/status-board-header.component";
+import { OpenprojectAutocompleterModule } from "core-app/shared/components/autocompleter/openproject-autocompleter.module";
+
+@NgModule({
+ imports: [
+ OPSharedModule,
+ OpenprojectWorkPackagesModule,
+ OpenprojectModalModule,
+ DragScrollModule,
+ OpenprojectAutocompleterModule,
+
+ // Dynamic Module for actions
+ DynamicModule.withComponents([VersionBoardHeaderComponent]),
+
+ // Routes for /boards
+ UIRouterModule.forChild({
+ states: BOARDS_ROUTES,
+ config: uiRouterBoardsConfiguration
+ }),
+ ],
+ declarations: [
+ BoardsIndexPageComponent,
+ BoardPartitionedPageComponent,
+ BoardListContainerComponent,
+ BoardListComponent,
+ BoardsRootComponent,
+ BoardInlineAddAutocompleterComponent,
+ BoardsMenuComponent,
+ BoardHighlightingTabComponent,
+ BoardConfigurationModal,
+ BoardsToolbarMenuDirective,
+ BoardsMenuButtonComponent,
+ NewBoardModalComponent,
+ AddListModalComponent,
+ AddCardDropdownMenuDirective,
+ BoardListMenuComponent,
+ BoardFilterComponent,
+ VersionBoardHeaderComponent,
+ AssigneeBoardHeaderComponent,
+ SubprojectBoardHeaderComponent,
+ SubtasksBoardHeaderComponent,
+ StatusBoardHeaderComponent,
+ TileViewComponent,
+ ]
+})
+export class OpenprojectBoardsModule {
+}
+
diff --git a/frontend/src/app/modules/boards/openproject-boards.routes.ts b/frontend/src/app/features/boards/openproject-boards.routes.ts
similarity index 81%
rename from frontend/src/app/modules/boards/openproject-boards.routes.ts
rename to frontend/src/app/features/boards/openproject-boards.routes.ts
index 95a471d479f..30f6358ed2f 100644
--- a/frontend/src/app/modules/boards/openproject-boards.routes.ts
+++ b/frontend/src/app/features/boards/openproject-boards.routes.ts
@@ -27,12 +27,12 @@
//++
import { Ng2StateDeclaration, UIRouter } from "@uirouter/angular";
-import { BoardsRootComponent } from "core-app/modules/boards/boards-root/boards-root.component";
-import { BoardsIndexPageComponent } from "core-app/modules/boards/index-page/boards-index-page.component";
-import { BoardPartitionedPageComponent } from "core-app/modules/boards/board/board-partitioned-page/board-partitioned-page.component";
-import { BoardListContainerComponent } from "core-app/modules/boards/board/board-partitioned-page/board-list-container.component";
-import { makeSplitViewRoutes } from "core-app/modules/work_packages/routing/split-view-routes.template";
-import { WorkPackageSplitViewComponent } from "core-app/modules/work_packages/routing/wp-split-view/wp-split-view.component";
+import { BoardsRootComponent } from "core-app/features/boards/boards-root/boards-root.component";
+import { BoardsIndexPageComponent } from "core-app/features/boards/index-page/boards-index-page.component";
+import { BoardPartitionedPageComponent } from "core-app/features/boards/board/board-partitioned-page/board-partitioned-page.component";
+import { BoardListContainerComponent } from "core-app/features/boards/board/board-partitioned-page/board-list-container.component";
+import { makeSplitViewRoutes } from "core-app/features/work-packages/routing/split-view-routes.template";
+import { WorkPackageSplitViewComponent } from "core-app/features/work-packages/routing/wp-split-view/wp-split-view.component";
export const menuItemClass = 'board-view-menu-item';
diff --git a/frontend/src/app/modules/boards/tile-view/tile-view.component.html b/frontend/src/app/features/boards/tile-view/tile-view.component.html
similarity index 100%
rename from frontend/src/app/modules/boards/tile-view/tile-view.component.html
rename to frontend/src/app/features/boards/tile-view/tile-view.component.html
diff --git a/frontend/src/app/modules/boards/tile-view/tile-view.component.sass b/frontend/src/app/features/boards/tile-view/tile-view.component.sass
similarity index 100%
rename from frontend/src/app/modules/boards/tile-view/tile-view.component.sass
rename to frontend/src/app/features/boards/tile-view/tile-view.component.sass
diff --git a/frontend/src/app/modules/boards/tile-view/tile-view.component.spec.ts b/frontend/src/app/features/boards/tile-view/tile-view.component.spec.ts
similarity index 95%
rename from frontend/src/app/modules/boards/tile-view/tile-view.component.spec.ts
rename to frontend/src/app/features/boards/tile-view/tile-view.component.spec.ts
index 2c7af06f8f1..52b0a23c57f 100644
--- a/frontend/src/app/modules/boards/tile-view/tile-view.component.spec.ts
+++ b/frontend/src/app/features/boards/tile-view/tile-view.component.spec.ts
@@ -2,7 +2,7 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { DebugElement } from '@angular/core';
import { By } from '@angular/platform-browser';
import { TileViewComponent } from './tile-view.component';
-import { ImageHelpers } from "core-app/helpers/images/path-helper";
+import { ImageHelpers } from "core-app/shared/helpers/images/path-helper";
import imagePath = ImageHelpers.imagePath;
describe('shows tiles', () => {
diff --git a/frontend/src/app/modules/boards/tile-view/tile-view.component.ts b/frontend/src/app/features/boards/tile-view/tile-view.component.ts
similarity index 100%
rename from frontend/src/app/modules/boards/tile-view/tile-view.component.ts
rename to frontend/src/app/features/boards/tile-view/tile-view.component.ts
diff --git a/frontend/src/app/modules/dashboards/dashboard/dashboard.component.html b/frontend/src/app/features/dashboards/dashboard/dashboard.component.html
similarity index 100%
rename from frontend/src/app/modules/dashboards/dashboard/dashboard.component.html
rename to frontend/src/app/features/dashboards/dashboard/dashboard.component.html
diff --git a/frontend/src/app/modules/dashboards/dashboard/dashboard.component.ts b/frontend/src/app/features/dashboards/dashboard/dashboard.component.ts
similarity index 50%
rename from frontend/src/app/modules/dashboards/dashboard/dashboard.component.ts
rename to frontend/src/app/features/dashboards/dashboard/dashboard.component.ts
index a5d06da3e8b..276289cfbe5 100644
--- a/frontend/src/app/modules/dashboards/dashboard/dashboard.component.ts
+++ b/frontend/src/app/features/dashboards/dashboard/dashboard.component.ts
@@ -1,11 +1,11 @@
import { Component } from '@angular/core';
-import { GridPageComponent } from "core-app/modules/grids/grid/page/grid-page.component";
-import { GRID_PROVIDERS } from "core-app/modules/grids/grid/grid.component";
+import { GridPageComponent } from "core-app/shared/components/grids/grid/page/grid-page.component";
+import { GRID_PROVIDERS } from "core-app/shared/components/grids/grid/grid.component";
@Component({
selector: 'dashboard',
- templateUrl: '../../grids/grid/page/grid-page.component.html',
- styleUrls: ['../../grids/grid/page/grid-page.component.sass'],
+ templateUrl: '../../../shared/components/grids/grid/page/grid-page.component.html',
+ styleUrls: ['../../../shared/components/grids/grid/page/grid-page.component.sass'],
providers: GRID_PROVIDERS
})
export class DashboardComponent extends GridPageComponent {
diff --git a/frontend/src/app/modules/dashboards/openproject-dashboards.module.ts b/frontend/src/app/features/dashboards/openproject-dashboards.module.ts
similarity index 88%
rename from frontend/src/app/modules/dashboards/openproject-dashboards.module.ts
rename to frontend/src/app/features/dashboards/openproject-dashboards.module.ts
index 17b7b4708a1..802421d13a4 100644
--- a/frontend/src/app/modules/dashboards/openproject-dashboards.module.ts
+++ b/frontend/src/app/features/dashboards/openproject-dashboards.module.ts
@@ -27,10 +27,10 @@
//++
import { NgModule } from '@angular/core';
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
+import { OPSharedModule } from "core-app/shared/shared.module";
import { Ng2StateDeclaration, UIRouter, UIRouterModule } from "@uirouter/angular";
-import { DashboardComponent } from "core-app/modules/dashboards/dashboard/dashboard.component";
-import { OpenprojectGridsModule } from "core-app/modules/grids/openproject-grids.module";
+import { DashboardComponent } from "core-app/features/dashboards/dashboard/dashboard.component";
+import { OpenprojectGridsModule } from "core-app/shared/components/grids/openproject-grids.module";
const menuItemClass = 'dashboards-menu-item';
@@ -61,7 +61,7 @@ export function uiRouterDashboardsConfiguration(uiRouter:UIRouter) {
@NgModule({
imports: [
- OpenprojectCommonModule,
+ OPSharedModule,
OpenprojectGridsModule,
diff --git a/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-saved-trial.component.ts b/frontend/src/app/features/enterprise/enterprise-active-trial/ee-active-saved-trial.component.ts
similarity index 92%
rename from frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-saved-trial.component.ts
rename to frontend/src/app/features/enterprise/enterprise-active-trial/ee-active-saved-trial.component.ts
index a5de4c050f4..4930df19308 100644
--- a/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-saved-trial.component.ts
+++ b/frontend/src/app/features/enterprise/enterprise-active-trial/ee-active-saved-trial.component.ts
@@ -27,8 +27,8 @@
//++
import { Component, ElementRef } from "@angular/core";
-import { I18nService } from "app/modules/common/i18n/i18n.service";
-import { EEActiveTrialBase } from "core-components/enterprise/enterprise-active-trial/ee-active-trial.base";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { EEActiveTrialBase } from "core-app/features/enterprise/enterprise-active-trial/ee-active-trial.base";
export const enterpriseActiveSavedTrialSelector = 'enterprise-active-saved-trial';
diff --git a/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.base.ts b/frontend/src/app/features/enterprise/enterprise-active-trial/ee-active-trial.base.ts
similarity index 92%
rename from frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.base.ts
rename to frontend/src/app/features/enterprise/enterprise-active-trial/ee-active-trial.base.ts
index 6d6460c74fd..f60a716c4b9 100644
--- a/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.base.ts
+++ b/frontend/src/app/features/enterprise/enterprise-active-trial/ee-active-trial.base.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { I18nService } from "app/modules/common/i18n/i18n.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { I18nService } from "core-app/core/i18n/i18n.service";
export class EEActiveTrialBase extends UntilDestroyedMixin {
public text = {
diff --git a/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.component.html b/frontend/src/app/features/enterprise/enterprise-active-trial/ee-active-trial.component.html
similarity index 100%
rename from frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.component.html
rename to frontend/src/app/features/enterprise/enterprise-active-trial/ee-active-trial.component.html
diff --git a/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.component.sass b/frontend/src/app/features/enterprise/enterprise-active-trial/ee-active-trial.component.sass
similarity index 100%
rename from frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.component.sass
rename to frontend/src/app/features/enterprise/enterprise-active-trial/ee-active-trial.component.sass
diff --git a/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.component.ts b/frontend/src/app/features/enterprise/enterprise-active-trial/ee-active-trial.component.ts
similarity index 91%
rename from frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.component.ts
rename to frontend/src/app/features/enterprise/enterprise-active-trial/ee-active-trial.component.ts
index e4a488672c5..4b70196bb64 100644
--- a/frontend/src/app/components/enterprise/enterprise-active-trial/ee-active-trial.component.ts
+++ b/frontend/src/app/features/enterprise/enterprise-active-trial/ee-active-trial.component.ts
@@ -28,11 +28,11 @@
import { ChangeDetectorRef, Component, ElementRef, OnInit } from "@angular/core";
import { distinctUntilChanged } from "rxjs/operators";
-import { I18nService } from "app/modules/common/i18n/i18n.service";
-import { EnterpriseTrialService } from "app/components/enterprise/enterprise-trial.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { EnterpriseTrialService } from "core-app/features/enterprise/enterprise-trial.service";
import { HttpClient, HttpErrorResponse } from "@angular/common/http";
-import { EEActiveTrialBase } from "core-components/enterprise/enterprise-active-trial/ee-active-trial.base";
-import { GonService } from "core-app/modules/common/gon/gon.service";
+import { EEActiveTrialBase } from "core-app/features/enterprise/enterprise-active-trial/ee-active-trial.base";
+import { GonService } from "core-app/core/gon/gon.service";
@Component({
selector: 'enterprise-active-trial',
diff --git a/frontend/src/app/components/enterprise/enterprise-base.component.html b/frontend/src/app/features/enterprise/enterprise-base.component.html
similarity index 100%
rename from frontend/src/app/components/enterprise/enterprise-base.component.html
rename to frontend/src/app/features/enterprise/enterprise-base.component.html
diff --git a/frontend/src/app/components/enterprise/enterprise-base.component.sass b/frontend/src/app/features/enterprise/enterprise-base.component.sass
similarity index 100%
rename from frontend/src/app/components/enterprise/enterprise-base.component.sass
rename to frontend/src/app/features/enterprise/enterprise-base.component.sass
diff --git a/frontend/src/app/components/enterprise/enterprise-base.component.ts b/frontend/src/app/features/enterprise/enterprise-base.component.ts
similarity index 88%
rename from frontend/src/app/components/enterprise/enterprise-base.component.ts
rename to frontend/src/app/features/enterprise/enterprise-base.component.ts
index 3aa8b93c15a..88d1a4c89c5 100644
--- a/frontend/src/app/components/enterprise/enterprise-base.component.ts
+++ b/frontend/src/app/features/enterprise/enterprise-base.component.ts
@@ -27,10 +27,10 @@
//++
import { Component, Injector } from "@angular/core";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { EnterpriseTrialModal } from "core-components/enterprise/enterprise-modal/enterprise-trial.modal";
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { EnterpriseTrialService } from "core-components/enterprise/enterprise-trial.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { EnterpriseTrialModal } from "core-app/features/enterprise/enterprise-modal/enterprise-trial.modal";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { EnterpriseTrialService } from "core-app/features/enterprise/enterprise-trial.service";
export const enterpriseBaseSelector = 'enterprise-base';
diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.html b/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.html
similarity index 100%
rename from frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.html
rename to frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.html
diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.sass b/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.sass
similarity index 100%
rename from frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.sass
rename to frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.sass
diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts b/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts
similarity index 93%
rename from frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts
rename to frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts
index d68d1bacb3d..5548a47467b 100644
--- a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts
+++ b/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts
@@ -26,12 +26,13 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
+
import { Component, ElementRef } from "@angular/core";
import { FormBuilder, Validators } from "@angular/forms";
-import { I18nService } from "app/modules/common/i18n/i18n.service";
-import { EnterpriseTrialData, EnterpriseTrialService } from "core-components/enterprise/enterprise-trial.service";
-import { CurrentUserService } from "core-app/modules/current-user/current-user.service";
-import { I18nHelpers } from "core-app/helpers/i18n/localized-link";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { EnterpriseTrialData, EnterpriseTrialService } from "core-app/features/enterprise/enterprise-trial.service";
+import { CurrentUserService } from "core-app/core/current-user/current-user.service";
+import { I18nHelpers } from "core-app/shared/helpers/i18n/localized-link";
const newsletterURL = 'https://www.openproject.com/newsletter/';
@@ -96,4 +97,3 @@ export class EETrialFormComponent {
}
}
}
-
diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.html b/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.html
similarity index 100%
rename from frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.html
rename to frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.html
diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.sass b/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.sass
similarity index 100%
rename from frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.sass
rename to frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.sass
diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.ts b/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.ts
similarity index 89%
rename from frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.ts
rename to frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.ts
index 26b7fb74d56..38523a20811 100644
--- a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial.modal.ts
+++ b/frontend/src/app/features/enterprise/enterprise-modal/enterprise-trial.modal.ts
@@ -29,12 +29,12 @@
import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, Inject, Input, ViewChild } from "@angular/core";
import { DomSanitizer, SafeResourceUrl } from "@angular/platform-browser";
import { FormControl, FormGroup } from "@angular/forms";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { OpModalLocalsMap } from "core-app/modules/modal/modal.types";
-import { I18nService } from "app/modules/common/i18n/i18n.service";
-import { EETrialFormComponent } from "core-components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component";
-import { EnterpriseTrialService } from "core-components/enterprise/enterprise-trial.service";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { EETrialFormComponent } from "core-app/features/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component";
+import { EnterpriseTrialService } from "core-app/features/enterprise/enterprise-trial.service";
export const eeOnboardingVideoURL = 'https://www.youtube.com/embed/zLMSydhFSkw?autoplay=1';
diff --git a/frontend/src/app/components/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.html b/frontend/src/app/features/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.html
similarity index 100%
rename from frontend/src/app/components/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.html
rename to frontend/src/app/features/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.html
diff --git a/frontend/src/app/components/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.sass b/frontend/src/app/features/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.sass
similarity index 100%
rename from frontend/src/app/components/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.sass
rename to frontend/src/app/features/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.sass
diff --git a/frontend/src/app/components/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.ts b/frontend/src/app/features/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.ts
similarity index 91%
rename from frontend/src/app/components/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.ts
rename to frontend/src/app/features/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.ts
index a36d6e736db..f64aa8d8bc0 100644
--- a/frontend/src/app/components/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.ts
+++ b/frontend/src/app/features/enterprise/enterprise-trial-waiting/ee-trial-waiting.component.ts
@@ -27,12 +27,12 @@
//++
import { Component, ElementRef, OnInit } from "@angular/core";
-import { I18nService } from "app/modules/common/i18n/i18n.service";
-import { EnterpriseTrialService } from "app/components/enterprise/enterprise-trial.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { EnterpriseTrialService } from "core-app/features/enterprise/enterprise-trial.service";
import { HttpClient } from "@angular/common/http";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
import { distinctUntilChanged } from "rxjs/operators";
-import { TimezoneService } from "core-components/datetime/timezone.service";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
@Component({
selector: 'enterprise-trial-waiting',
diff --git a/frontend/src/app/components/enterprise/enterprise-trial.service.ts b/frontend/src/app/features/enterprise/enterprise-trial.service.ts
similarity index 96%
rename from frontend/src/app/components/enterprise/enterprise-trial.service.ts
rename to frontend/src/app/features/enterprise/enterprise-trial.service.ts
index ab4808527ba..681291c02c0 100644
--- a/frontend/src/app/components/enterprise/enterprise-trial.service.ts
+++ b/frontend/src/app/features/enterprise/enterprise-trial.service.ts
@@ -1,8 +1,8 @@
import { Injectable } from "@angular/core";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { HttpClient, HttpErrorResponse, HttpHeaders } from "@angular/common/http";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
import { FormGroup } from "@angular/forms";
import { input } from "reactivestates";
diff --git a/frontend/src/app/components/enterprise/openproject-enterprise.module.ts b/frontend/src/app/features/enterprise/openproject-enterprise.module.ts
similarity index 63%
rename from frontend/src/app/components/enterprise/openproject-enterprise.module.ts
rename to frontend/src/app/features/enterprise/openproject-enterprise.module.ts
index e340553779c..4bcb38228f0 100644
--- a/frontend/src/app/components/enterprise/openproject-enterprise.module.ts
+++ b/frontend/src/app/features/enterprise/openproject-enterprise.module.ts
@@ -27,20 +27,20 @@
//++
import { NgModule } from '@angular/core';
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
-import { OpenprojectModalModule } from "core-app/modules/modal/modal.module";
-import { EnterpriseTrialService } from "core-components/enterprise/enterprise-trial.service";
-import { EnterpriseBaseComponent } from "core-components/enterprise/enterprise-base.component";
-import { EnterpriseTrialModal } from "core-components/enterprise/enterprise-modal/enterprise-trial.modal";
-import { EETrialFormComponent } from "core-components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component";
-import { EETrialWaitingComponent } from "core-components/enterprise/enterprise-trial-waiting/ee-trial-waiting.component";
-import { EEActiveTrialComponent } from "core-components/enterprise/enterprise-active-trial/ee-active-trial.component";
-import { EEActiveSavedTrialComponent } from "core-components/enterprise/enterprise-active-trial/ee-active-saved-trial.component";
+import { OPSharedModule } from "core-app/shared/shared.module";
+import { OpenprojectModalModule } from "core-app/shared/components/modal/modal.module";
+import { EnterpriseTrialService } from "core-app/features/enterprise/enterprise-trial.service";
+import { EnterpriseBaseComponent } from "core-app/features/enterprise/enterprise-base.component";
+import { EnterpriseTrialModal } from "core-app/features/enterprise/enterprise-modal/enterprise-trial.modal";
+import { EETrialFormComponent } from "core-app/features/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component";
+import { EETrialWaitingComponent } from "core-app/features/enterprise/enterprise-trial-waiting/ee-trial-waiting.component";
+import { EEActiveTrialComponent } from "core-app/features/enterprise/enterprise-active-trial/ee-active-trial.component";
+import { EEActiveSavedTrialComponent } from "core-app/features/enterprise/enterprise-active-trial/ee-active-saved-trial.component";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
@NgModule({
imports: [
- OpenprojectCommonModule,
+ OPSharedModule,
OpenprojectModalModule,
FormsModule,
ReactiveFormsModule,
diff --git a/frontend/src/app/modules/hal/hal-link/hal-link.ts b/frontend/src/app/features/hal/hal-link/hal-link.ts
similarity index 94%
rename from frontend/src/app/modules/hal/hal-link/hal-link.ts
rename to frontend/src/app/features/hal/hal-link/hal-link.ts
index 77d3569ea9f..6fc17051412 100644
--- a/frontend/src/app/modules/hal/hal-link/hal-link.ts
+++ b/frontend/src/app/features/hal/hal-link/hal-link.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { HTTPSupportedMethods } from "core-app/modules/hal/http/http.interfaces";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { HTTPSupportedMethods } from "core-app/features/hal/http/http.interfaces";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
export interface HalLinkInterface {
href:string|null;
diff --git a/frontend/src/app/modules/hal/helpers/hal-resource-builder.ts b/frontend/src/app/features/hal/helpers/hal-resource-builder.ts
similarity index 94%
rename from frontend/src/app/modules/hal/helpers/hal-resource-builder.ts
rename to frontend/src/app/features/hal/helpers/hal-resource-builder.ts
index 766f096b603..59c6a732f7b 100644
--- a/frontend/src/app/modules/hal/helpers/hal-resource-builder.ts
+++ b/frontend/src/app/features/hal/helpers/hal-resource-builder.ts
@@ -1,9 +1,8 @@
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { OpenprojectHalModuleHelpers } from 'core-app/modules/hal/helpers/lazy-accessor';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
-import { HalLink } from 'core-app/modules/hal/hal-link/hal-link';
-
import * as ObservableArray from 'observable-array';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { HalLink } from "core-app/features/hal/hal-link/hal-link";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { OpenprojectHalModuleHelpers } from "core-app/features/hal/helpers/lazy-accessor";
interface HalSource {
_links:any;
diff --git a/frontend/src/app/modules/hal/helpers/lazy-accessor.spec.ts b/frontend/src/app/features/hal/helpers/lazy-accessor.spec.ts
similarity index 96%
rename from frontend/src/app/modules/hal/helpers/lazy-accessor.spec.ts
rename to frontend/src/app/features/hal/helpers/lazy-accessor.spec.ts
index e67f0f50b49..57a5d421d8d 100644
--- a/frontend/src/app/modules/hal/helpers/lazy-accessor.spec.ts
+++ b/frontend/src/app/features/hal/helpers/lazy-accessor.spec.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { OpenprojectHalModuleHelpers } from "core-app/modules/hal/helpers/lazy-accessor";
+import { OpenprojectHalModuleHelpers } from "core-app/features/hal/helpers/lazy-accessor";
describe('lazy service', () => {
var lazy = OpenprojectHalModuleHelpers.lazy;
diff --git a/frontend/src/app/modules/hal/helpers/lazy-accessor.ts b/frontend/src/app/features/hal/helpers/lazy-accessor.ts
similarity index 96%
rename from frontend/src/app/modules/hal/helpers/lazy-accessor.ts
rename to frontend/src/app/features/hal/helpers/lazy-accessor.ts
index 6ee30b0f3bc..401500ec5d3 100644
--- a/frontend/src/app/modules/hal/helpers/lazy-accessor.ts
+++ b/frontend/src/app/features/hal/helpers/lazy-accessor.ts
@@ -26,7 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export namespace OpenprojectHalModuleHelpers {
export function lazy(obj:HalResource,
diff --git a/frontend/src/app/modules/hal/http/http.interfaces.ts b/frontend/src/app/features/hal/http/http.interfaces.ts
similarity index 100%
rename from frontend/src/app/modules/hal/http/http.interfaces.ts
rename to frontend/src/app/features/hal/http/http.interfaces.ts
diff --git a/frontend/src/app/modules/hal/http/openproject-header-interceptor.ts b/frontend/src/app/features/hal/http/openproject-header-interceptor.ts
similarity index 100%
rename from frontend/src/app/modules/hal/http/openproject-header-interceptor.ts
rename to frontend/src/app/features/hal/http/openproject-header-interceptor.ts
diff --git a/frontend/src/app/modules/hal/openproject-hal.module.ts b/frontend/src/app/features/hal/openproject-hal.module.ts
similarity index 77%
rename from frontend/src/app/modules/hal/openproject-hal.module.ts
rename to frontend/src/app/features/hal/openproject-hal.module.ts
index 20c4062338b..071fc4f25ac 100644
--- a/frontend/src/app/modules/hal/openproject-hal.module.ts
+++ b/frontend/src/app/features/hal/openproject-hal.module.ts
@@ -28,12 +28,12 @@
import { APP_INITIALIZER, ErrorHandler, NgModule } from '@angular/core';
import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
-import { initializeHalResourceConfig } from 'core-app/modules/hal/services/hal-resource.config';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
-import { OpenProjectHeaderInterceptor } from 'core-app/modules/hal/http/openproject-header-interceptor';
import { CommonModule } from "@angular/common";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { HalAwareErrorHandler } from "core-app/modules/hal/services/hal-aware-error-handler";
+import { OpenProjectHeaderInterceptor } from "core-app/features/hal/http/openproject-header-interceptor";
+import { HalAwareErrorHandler } from "core-app/features/hal/services/hal-aware-error-handler";
+import { initializeHalResourceConfig } from "core-app/features/hal/services/hal-resource.config";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
@NgModule({
imports: [
@@ -44,7 +44,7 @@ import { HalAwareErrorHandler } from "core-app/modules/hal/services/hal-aware-er
{ provide: ErrorHandler, useClass: HalAwareErrorHandler },
{ provide: HTTP_INTERCEPTORS, useClass: OpenProjectHeaderInterceptor, multi: true },
{ provide: APP_INITIALIZER, useFactory: initializeHalResourceConfig, deps: [HalResourceService], multi: true },
- HalResourceNotificationService
+ HalResourceNotificationService,
]
})
export class OpenprojectHalModule { }
diff --git a/frontend/src/app/modules/hal/resources/attachment-collection-resource.ts b/frontend/src/app/features/hal/resources/attachment-collection-resource.ts
similarity index 90%
rename from frontend/src/app/modules/hal/resources/attachment-collection-resource.ts
rename to frontend/src/app/features/hal/resources/attachment-collection-resource.ts
index 9929ef47b70..dd863f686c1 100644
--- a/frontend/src/app/modules/hal/resources/attachment-collection-resource.ts
+++ b/frontend/src/app/features/hal/resources/attachment-collection-resource.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
export class AttachmentCollectionResource extends CollectionResource {
public $initialize(source:any) {
diff --git a/frontend/src/app/modules/hal/resources/capability-resource.ts b/frontend/src/app/features/hal/resources/capability-resource.ts
similarity index 79%
rename from frontend/src/app/modules/hal/resources/capability-resource.ts
rename to frontend/src/app/features/hal/resources/capability-resource.ts
index 9f77d23a51d..bea416d361d 100644
--- a/frontend/src/app/modules/hal/resources/capability-resource.ts
+++ b/frontend/src/app/features/hal/resources/capability-resource.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class CapabilityResource extends HalResource {}
diff --git a/frontend/src/app/modules/hal/resources/collection-resource.ts b/frontend/src/app/features/hal/resources/collection-resource.ts
similarity index 95%
rename from frontend/src/app/modules/hal/resources/collection-resource.ts
rename to frontend/src/app/features/hal/resources/collection-resource.ts
index 2971287f724..caf6fa83c75 100644
--- a/frontend/src/app/modules/hal/resources/collection-resource.ts
+++ b/frontend/src/app/features/hal/resources/collection-resource.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export class CollectionResource<T = HalResource> extends HalResource {
public elements:T[];
diff --git a/frontend/src/app/modules/hal/resources/configuration-resource.ts b/frontend/src/app/features/hal/resources/configuration-resource.ts
similarity index 94%
rename from frontend/src/app/modules/hal/resources/configuration-resource.ts
rename to frontend/src/app/features/hal/resources/configuration-resource.ts
index 23e43bb6f74..45717e5eb7f 100644
--- a/frontend/src/app/modules/hal/resources/configuration-resource.ts
+++ b/frontend/src/app/features/hal/resources/configuration-resource.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export class ConfigurationResource extends HalResource {
diff --git a/frontend/src/app/modules/hal/resources/custom-action-resource.ts b/frontend/src/app/features/hal/resources/custom-action-resource.ts
similarity index 90%
rename from frontend/src/app/modules/hal/resources/custom-action-resource.ts
rename to frontend/src/app/features/hal/resources/custom-action-resource.ts
index adda39d15c6..f10dce313c2 100644
--- a/frontend/src/app/modules/hal/resources/custom-action-resource.ts
+++ b/frontend/src/app/features/hal/resources/custom-action-resource.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export interface CustomActionResourceLinks {
self():Promise<CustomActionResource>;
diff --git a/frontend/src/app/modules/hal/resources/error-resource.ts b/frontend/src/app/features/hal/resources/error-resource.ts
similarity index 98%
rename from frontend/src/app/modules/hal/resources/error-resource.ts
rename to frontend/src/app/features/hal/resources/error-resource.ts
index f0dfde432f2..afdac5cf338 100644
--- a/frontend/src/app/modules/hal/resources/error-resource.ts
+++ b/frontend/src/app/features/hal/resources/error-resource.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { HttpErrorResponse } from "@angular/common/http";
export const v3ErrorIdentifierQueryInvalid = 'urn:openproject-org:api:v3:errors:InvalidQuery';
diff --git a/frontend/src/app/modules/hal/resources/form-resource.ts b/frontend/src/app/features/hal/resources/form-resource.ts
similarity index 89%
rename from frontend/src/app/modules/hal/resources/form-resource.ts
rename to frontend/src/app/features/hal/resources/form-resource.ts
index 7844f6f34b4..902bce60dbf 100644
--- a/frontend/src/app/modules/hal/resources/form-resource.ts
+++ b/frontend/src/app/features/hal/resources/form-resource.ts
@@ -26,13 +26,10 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { ErrorResource, v3ErrorIdentifierMultipleErrors } from "core-app/features/hal/resources/error-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
-import { SchemaResource } from 'core-app/modules/hal/resources/schema-resource';
-import {
- ErrorResource,
- v3ErrorIdentifierMultipleErrors
-} from 'core-app/modules/hal/resources/error-resource';
export interface FormResourceLinks<T = HalResource> {
commit(payload:any):Promise<T>;
diff --git a/frontend/src/app/modules/hal/resources/grid-resource.ts b/frontend/src/app/features/hal/resources/grid-resource.ts
similarity index 90%
rename from frontend/src/app/modules/hal/resources/grid-resource.ts
rename to frontend/src/app/features/hal/resources/grid-resource.ts
index d4fe00b02b7..5719d5f3b4f 100644
--- a/frontend/src/app/modules/hal/resources/grid-resource.ts
+++ b/frontend/src/app/features/hal/resources/grid-resource.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { GridWidgetResource } from "core-app/modules/hal/resources/grid-widget-resource";
-import { Attachable } from "core-app/modules/hal/resources/mixins/attachable-mixin";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { GridWidgetResource } from "core-app/features/hal/resources/grid-widget-resource";
+import { Attachable } from "core-app/features/hal/resources/mixins/attachable-mixin";
export interface GridResourceLinks {
update(payload:unknown):Promise<unknown>;
diff --git a/frontend/src/app/modules/hal/resources/grid-widget-resource.ts b/frontend/src/app/features/hal/resources/grid-widget-resource.ts
similarity index 81%
rename from frontend/src/app/modules/hal/resources/grid-widget-resource.ts
rename to frontend/src/app/features/hal/resources/grid-widget-resource.ts
index babd790d203..456d61a6475 100644
--- a/frontend/src/app/modules/hal/resources/grid-widget-resource.ts
+++ b/frontend/src/app/features/hal/resources/grid-widget-resource.ts
@@ -26,11 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { GridResource } from "core-app/modules/hal/resources/grid-resource";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { GridResource } from "core-app/features/hal/resources/grid-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
export class GridWidgetResource extends HalResource {
@InjectField() protected halResource:HalResourceService;
diff --git a/frontend/src/app/modules/hal/resources/group-resource.ts b/frontend/src/app/features/hal/resources/group-resource.ts
similarity index 94%
rename from frontend/src/app/modules/hal/resources/group-resource.ts
rename to frontend/src/app/features/hal/resources/group-resource.ts
index 9a28e9b2c09..4177cfe88ca 100644
--- a/frontend/src/app/modules/hal/resources/group-resource.ts
+++ b/frontend/src/app/features/hal/resources/group-resource.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export class GroupResource extends HalResource {
}
diff --git a/frontend/src/app/modules/hal/resources/hal-resource.spec.ts b/frontend/src/app/features/hal/resources/hal-resource.spec.ts
similarity index 97%
rename from frontend/src/app/modules/hal/resources/hal-resource.spec.ts
rename to frontend/src/app/features/hal/resources/hal-resource.spec.ts
index 411b328c4a3..15d9b6aed65 100644
--- a/frontend/src/app/modules/hal/resources/hal-resource.spec.ts
+++ b/frontend/src/app/features/hal/resources/hal-resource.spec.ts
@@ -28,14 +28,14 @@
import { Injector } from '@angular/core';
import { TestBed, waitForAsync } from '@angular/core/testing';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { HalLink, HalLinkInterface } from 'core-app/modules/hal/hal-link/hal-link';
-import { OpenprojectHalModule } from 'core-app/modules/hal/openproject-hal.module';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
-import { States } from 'core-components/states.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { States } from 'core-app/core/states/states.service';
import { of } from 'rxjs';
import Spy = jasmine.Spy;
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { OpenprojectHalModule } from "core-app/features/hal/openproject-hal.module";
+import { HalLink, HalLinkInterface } from "core-app/features/hal/hal-link/hal-link";
describe('HalResource', () => {
let halResourceService:HalResourceService;
diff --git a/frontend/src/app/modules/hal/resources/hal-resource.ts b/frontend/src/app/features/hal/resources/hal-resource.ts
similarity index 95%
rename from frontend/src/app/modules/hal/resources/hal-resource.ts
rename to frontend/src/app/features/hal/resources/hal-resource.ts
index af1be081d1b..6a990e5ee62 100644
--- a/frontend/src/app/modules/hal/resources/hal-resource.ts
+++ b/frontend/src/app/features/hal/resources/hal-resource.ts
@@ -27,12 +27,12 @@
//++
import { InputState } from "reactivestates";
-import { HalLinkInterface } from 'core-app/modules/hal/hal-link/hal-link';
import { Injector } from '@angular/core';
-import { States } from 'core-components/states.service';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { ICKEditorContext } from "core-app/modules/common/ckeditor/ckeditor-setup.service";
+import { States } from 'core-app/core/states/states.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { ICKEditorContext } from "core-app/shared/components/editor/components/ckeditor/ckeditor-setup.service";
+import { HalLinkInterface } from "core-app/features/hal/hal-link/hal-link";
export interface HalResourceClass<T extends HalResource = HalResource> {
new(injector:Injector,
diff --git a/frontend/src/app/modules/hal/resources/help-text-resource.ts b/frontend/src/app/features/hal/resources/help-text-resource.ts
similarity index 86%
rename from frontend/src/app/modules/hal/resources/help-text-resource.ts
rename to frontend/src/app/features/hal/resources/help-text-resource.ts
index 5c825cf0da2..396014e9549 100644
--- a/frontend/src/app/modules/hal/resources/help-text-resource.ts
+++ b/frontend/src/app/features/hal/resources/help-text-resource.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { CallableHalLink } from 'core-app/modules/hal/hal-link/hal-link';
-import { Attachable } from "core-app/modules/hal/resources/mixins/attachable-mixin";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { Attachable } from "core-app/features/hal/resources/mixins/attachable-mixin";
+import { CallableHalLink } from "core-app/features/hal/hal-link/hal-link";
export class HelpTextBaseResource extends HalResource {
public attribute:string;
diff --git a/frontend/src/app/modules/hal/resources/meeting-content-resource.ts b/frontend/src/app/features/hal/resources/meeting-content-resource.ts
similarity index 90%
rename from frontend/src/app/modules/hal/resources/meeting-content-resource.ts
rename to frontend/src/app/features/hal/resources/meeting-content-resource.ts
index 4cbd3cb845b..1b0ee0898ef 100644
--- a/frontend/src/app/modules/hal/resources/meeting-content-resource.ts
+++ b/frontend/src/app/features/hal/resources/meeting-content-resource.ts
@@ -26,8 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { Attachable } from 'core-app/modules/hal/resources/mixins/attachable-mixin';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { Attachable } from "core-app/features/hal/resources/mixins/attachable-mixin";
+
export interface MeetingContentResourceLinks {
diff --git a/frontend/src/app/modules/hal/resources/membership-resource.ts b/frontend/src/app/features/hal/resources/membership-resource.ts
similarity index 88%
rename from frontend/src/app/modules/hal/resources/membership-resource.ts
rename to frontend/src/app/features/hal/resources/membership-resource.ts
index 6165e98f9c5..4d874baecfd 100644
--- a/frontend/src/app/modules/hal/resources/membership-resource.ts
+++ b/frontend/src/app/features/hal/resources/membership-resource.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { RoleResource } from "core-app/modules/hal/resources/role-resource";
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { RoleResource } from "core-app/features/hal/resources/role-resource";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
import Formattable = api.v3.Formattable;
export interface MembershipResourceLinks {
diff --git a/frontend/src/app/modules/hal/resources/mixins/attachable-mixin.ts b/frontend/src/app/features/hal/resources/mixins/attachable-mixin.ts
similarity index 89%
rename from frontend/src/app/modules/hal/resources/mixins/attachable-mixin.ts
rename to frontend/src/app/features/hal/resources/mixins/attachable-mixin.ts
index 2018f70440e..41751713d16 100644
--- a/frontend/src/app/modules/hal/resources/mixins/attachable-mixin.ts
+++ b/frontend/src/app/features/hal/resources/mixins/attachable-mixin.ts
@@ -26,16 +26,16 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { AttachmentCollectionResource } from 'core-app/modules/hal/resources/attachment-collection-resource';
-import { OpenProjectFileUploadService, UploadFile } from 'core-components/api/op-file-upload/op-file-upload.service';
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { NotificationsService } from 'core-app/modules/common/notifications/notifications.service';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { NotificationsService } from 'core-app/shared/components/notifications/notifications.service';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
import { HttpErrorResponse } from "@angular/common/http";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { OpenProjectDirectFileUploadService } from 'core-app/components/api/op-file-upload/op-direct-file-upload.service';
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { OpenProjectDirectFileUploadService } from 'core-app/core/file-upload/op-direct-file-upload.service';
+import { OpenProjectFileUploadService, UploadFile } from "core-app/core/file-upload/op-file-upload.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { AttachmentCollectionResource } from "core-app/features/hal/resources/attachment-collection-resource";
type Constructor<T = {}> = new (...args:any[]) => T;
diff --git a/frontend/src/app/modules/hal/resources/news-resource.ts b/frontend/src/app/features/hal/resources/news-resource.ts
similarity index 94%
rename from frontend/src/app/modules/hal/resources/news-resource.ts
rename to frontend/src/app/features/hal/resources/news-resource.ts
index 8e7d2e80e59..040dde07f2a 100644
--- a/frontend/src/app/modules/hal/resources/news-resource.ts
+++ b/frontend/src/app/features/hal/resources/news-resource.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export class NewsResource extends HalResource {
}
diff --git a/frontend/src/app/modules/hal/resources/placeholder-user-resource.ts b/frontend/src/app/features/hal/resources/placeholder-user-resource.ts
similarity index 95%
rename from frontend/src/app/modules/hal/resources/placeholder-user-resource.ts
rename to frontend/src/app/features/hal/resources/placeholder-user-resource.ts
index a0c95320ad6..ac5484d0f52 100644
--- a/frontend/src/app/modules/hal/resources/placeholder-user-resource.ts
+++ b/frontend/src/app/features/hal/resources/placeholder-user-resource.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { InputState } from 'reactivestates';
export class PlaceholderUserResource extends HalResource {
diff --git a/frontend/src/app/modules/hal/resources/post-resource.ts b/frontend/src/app/features/hal/resources/post-resource.ts
similarity index 90%
rename from frontend/src/app/modules/hal/resources/post-resource.ts
rename to frontend/src/app/features/hal/resources/post-resource.ts
index 5c73ddb1c86..316015b60e6 100644
--- a/frontend/src/app/modules/hal/resources/post-resource.ts
+++ b/frontend/src/app/features/hal/resources/post-resource.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { Attachable } from 'core-app/modules/hal/resources/mixins/attachable-mixin';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { Attachable } from "core-app/features/hal/resources/mixins/attachable-mixin";
export interface PostResourceLinks {
addAttachment(attachment:HalResource):Promise<any>;
diff --git a/frontend/src/app/modules/hal/resources/project-resource.ts b/frontend/src/app/features/hal/resources/project-resource.ts
similarity index 90%
rename from frontend/src/app/modules/hal/resources/project-resource.ts
rename to frontend/src/app/features/hal/resources/project-resource.ts
index 1ceb33f43ef..84028f5a781 100644
--- a/frontend/src/app/modules/hal/resources/project-resource.ts
+++ b/frontend/src/app/features/hal/resources/project-resource.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { ICKEditorContext } from "core-app/modules/common/ckeditor/ckeditor-setup.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { ICKEditorContext } from "core-app/shared/components/editor/components/ckeditor/ckeditor-setup.service";
export class ProjectResource extends HalResource {
public get state() {
diff --git a/frontend/src/app/modules/hal/resources/query-filter-instance-resource.ts b/frontend/src/app/features/hal/resources/query-filter-instance-resource.ts
similarity index 83%
rename from frontend/src/app/modules/hal/resources/query-filter-instance-resource.ts
rename to frontend/src/app/features/hal/resources/query-filter-instance-resource.ts
index 5ade05e9a07..007781bb260 100644
--- a/frontend/src/app/modules/hal/resources/query-filter-instance-resource.ts
+++ b/frontend/src/app/features/hal/resources/query-filter-instance-resource.ts
@@ -26,13 +26,14 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { QueryFilterResource } from 'core-app/modules/hal/resources/query-filter-resource';
-import { QueryFilterInstanceSchemaResource } from 'core-app/modules/hal/resources/query-filter-instance-schema-resource';
-import { QueryOperatorResource } from 'core-app/modules/hal/resources/query-operator-resource';
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
+
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { QueryOperatorResource } from "core-app/features/hal/resources/query-operator-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { QueryFilterInstanceSchemaResource } from "core-app/features/hal/resources/query-filter-instance-schema-resource";
+import { QueryFilterResource } from "core-app/features/hal/resources/query-filter-resource";
export class QueryFilterInstanceResource extends HalResource {
public filter:QueryFilterResource;
diff --git a/frontend/src/app/modules/hal/resources/query-filter-instance-schema-resource.ts b/frontend/src/app/features/hal/resources/query-filter-instance-schema-resource.ts
similarity index 83%
rename from frontend/src/app/modules/hal/resources/query-filter-instance-schema-resource.ts
rename to frontend/src/app/features/hal/resources/query-filter-instance-schema-resource.ts
index b7f0db8e065..9155beb11af 100644
--- a/frontend/src/app/modules/hal/resources/query-filter-instance-schema-resource.ts
+++ b/frontend/src/app/features/hal/resources/query-filter-instance-schema-resource.ts
@@ -26,17 +26,14 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
-import { QueryFilterResource } from 'core-app/modules/hal/resources/query-filter-resource';
-import {
- SchemaAttributeObject,
- SchemaResource
-} from 'core-app/modules/hal/resources/schema-resource';
-import { SchemaDependencyResource } from 'core-app/modules/hal/resources/schema-dependency-resource';
-import { QueryOperatorResource } from 'core-app/modules/hal/resources/query-operator-resource';
-import { QueryFilterInstanceResource } from 'core-app/modules/hal/resources/query-filter-instance-resource';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { HalLink } from "core-app/modules/hal/hal-link/hal-link";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { HalLink } from "core-app/features/hal/hal-link/hal-link";
+import { QueryOperatorResource } from "core-app/features/hal/resources/query-operator-resource";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
+import { SchemaAttributeObject, SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { QueryFilterResource } from "core-app/features/hal/resources/query-filter-resource";
+import { SchemaDependencyResource } from "core-app/features/hal/resources/schema-dependency-resource";
export interface QueryFilterInstanceSchemaResourceLinks {
self:HalLink;
diff --git a/frontend/src/app/modules/hal/resources/query-filter-resource.ts b/frontend/src/app/features/hal/resources/query-filter-resource.ts
similarity index 88%
rename from frontend/src/app/modules/hal/resources/query-filter-resource.ts
rename to frontend/src/app/features/hal/resources/query-filter-resource.ts
index 97e80d7bdf5..aeddb98f764 100644
--- a/frontend/src/app/modules/hal/resources/query-filter-resource.ts
+++ b/frontend/src/app/features/hal/resources/query-filter-resource.ts
@@ -26,8 +26,10 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { QueryFilterInstanceSchemaResource } from 'core-app/modules/hal/resources/query-filter-instance-schema-resource';
+
+
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { QueryFilterInstanceSchemaResource } from "core-app/features/hal/resources/query-filter-instance-schema-resource";
export interface QueryFilterResourceEmbedded {
schema:QueryFilterInstanceSchemaResource;
diff --git a/frontend/src/app/modules/hal/resources/query-form-resource.ts b/frontend/src/app/features/hal/resources/query-form-resource.ts
similarity index 81%
rename from frontend/src/app/modules/hal/resources/query-form-resource.ts
rename to frontend/src/app/features/hal/resources/query-form-resource.ts
index 5d0d38bb939..abb6e83db1c 100644
--- a/frontend/src/app/modules/hal/resources/query-form-resource.ts
+++ b/frontend/src/app/features/hal/resources/query-form-resource.ts
@@ -26,10 +26,10 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
-import { QueryFilterInstanceSchemaResource } from 'core-app/modules/hal/resources/query-filter-instance-schema-resource';
-import { FormResource } from 'core-app/modules/hal/resources/form-resource';
-import { SchemaResource } from 'core-app/modules/hal/resources/schema-resource';
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { FormResource } from "core-app/features/hal/resources/form-resource";
+import { QueryFilterInstanceSchemaResource } from "core-app/features/hal/resources/query-filter-instance-schema-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
export interface QueryFormResourceEmbedded {
filtersSchemas:CollectionResource<QueryFilterInstanceSchemaResource>;
diff --git a/frontend/src/app/modules/hal/resources/query-group-by-resource.ts b/frontend/src/app/features/hal/resources/query-group-by-resource.ts
similarity index 94%
rename from frontend/src/app/modules/hal/resources/query-group-by-resource.ts
rename to frontend/src/app/features/hal/resources/query-group-by-resource.ts
index 5f878740190..9cffd307a7c 100644
--- a/frontend/src/app/modules/hal/resources/query-group-by-resource.ts
+++ b/frontend/src/app/features/hal/resources/query-group-by-resource.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export class QueryGroupByResource extends HalResource {
}
diff --git a/frontend/src/app/modules/hal/resources/query-operator-resource.ts b/frontend/src/app/features/hal/resources/query-operator-resource.ts
similarity index 95%
rename from frontend/src/app/modules/hal/resources/query-operator-resource.ts
rename to frontend/src/app/features/hal/resources/query-operator-resource.ts
index 97981aa06e1..81f192b4b4d 100644
--- a/frontend/src/app/modules/hal/resources/query-operator-resource.ts
+++ b/frontend/src/app/features/hal/resources/query-operator-resource.ts
@@ -27,7 +27,8 @@
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export class QueryOperatorResource extends HalResource {
public get id():string {
diff --git a/frontend/src/app/modules/hal/resources/query-resource.ts b/frontend/src/app/features/hal/resources/query-resource.ts
similarity index 76%
rename from frontend/src/app/modules/hal/resources/query-resource.ts
rename to frontend/src/app/features/hal/resources/query-resource.ts
index cae5c4edde3..c5088ee5778 100644
--- a/frontend/src/app/modules/hal/resources/query-resource.ts
+++ b/frontend/src/app/features/hal/resources/query-resource.ts
@@ -26,15 +26,15 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { QueryColumn } from 'core-components/wp-query/query-column';
-import { QueryGroupByResource } from 'core-app/modules/hal/resources/query-group-by-resource';
-import { ProjectResource } from 'core-app/modules/hal/resources/project-resource';
-import { QuerySortByResource } from 'core-app/modules/hal/resources/query-sort-by-resource';
-import { QueryFilterInstanceResource } from 'core-app/modules/hal/resources/query-filter-instance-resource';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { WorkPackageCollectionResource } from 'core-app/modules/hal/resources/wp-collection-resource';
-import { HighlightingMode } from "core-components/wp-fast-table/builders/highlighting/highlighting-mode.const";
-import { QueryOrder } from "core-app/modules/apiv3/endpoints/queries/apiv3-query-order";
+import { QueryColumn } from 'core-app/features/work-packages/components/wp-query/query-column';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { HighlightingMode } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting-mode.const";
+import { QueryOrder } from "core-app/core/apiv3/endpoints/queries/apiv3-query-order";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
+import { QuerySortByResource } from "core-app/features/hal/resources/query-sort-by-resource";
+import { QueryGroupByResource } from "core-app/features/hal/resources/query-group-by-resource";
export interface QueryResourceEmbedded {
results:WorkPackageCollectionResource;
diff --git a/frontend/src/app/modules/hal/resources/query-schema-resource.ts b/frontend/src/app/features/hal/resources/query-schema-resource.ts
similarity index 72%
rename from frontend/src/app/modules/hal/resources/query-schema-resource.ts
rename to frontend/src/app/features/hal/resources/query-schema-resource.ts
index 0dd25e57b15..5eeaee5320f 100644
--- a/frontend/src/app/modules/hal/resources/query-schema-resource.ts
+++ b/frontend/src/app/features/hal/resources/query-schema-resource.ts
@@ -26,12 +26,12 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { SchemaResource } from 'core-app/modules/hal/resources/schema-resource';
-import { QueryColumn } from 'core-components/wp-query/query-column';
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
-import { QueryFilterInstanceSchemaResource } from 'core-app/modules/hal/resources/query-filter-instance-schema-resource';
-import { QuerySortByResource } from 'core-app/modules/hal/resources/query-sort-by-resource';
-import { QueryGroupByResource } from 'core-app/modules/hal/resources/query-group-by-resource';
+import { QueryColumn } from 'core-app/features/work-packages/components/wp-query/query-column';
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { QuerySortByResource } from "core-app/features/hal/resources/query-sort-by-resource";
+import { QueryFilterInstanceSchemaResource } from "core-app/features/hal/resources/query-filter-instance-schema-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { QueryGroupByResource } from "core-app/features/hal/resources/query-group-by-resource";
export class QuerySchemaResource extends SchemaResource {
columns:{ allowedValues:QueryColumn[] };
diff --git a/frontend/src/app/modules/hal/resources/query-sort-by-resource.ts b/frontend/src/app/features/hal/resources/query-sort-by-resource.ts
similarity index 91%
rename from frontend/src/app/modules/hal/resources/query-sort-by-resource.ts
rename to frontend/src/app/features/hal/resources/query-sort-by-resource.ts
index 757327e651d..17c25cead26 100644
--- a/frontend/src/app/modules/hal/resources/query-sort-by-resource.ts
+++ b/frontend/src/app/features/hal/resources/query-sort-by-resource.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { QueryColumn } from 'core-components/wp-query/query-column';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { QueryColumn } from 'core-app/features/work-packages/components/wp-query/query-column';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export const QUERY_SORT_BY_ASC = "urn:openproject-org:api:v3:queries:directions:asc";
export const QUERY_SORT_BY_DESC = "urn:openproject-org:api:v3:queries:directions:desc";
diff --git a/frontend/src/app/modules/hal/resources/relation-resource.ts b/frontend/src/app/features/hal/resources/relation-resource.ts
similarity index 95%
rename from frontend/src/app/modules/hal/resources/relation-resource.ts
rename to frontend/src/app/features/hal/resources/relation-resource.ts
index e1bce8d9cdf..f6e242ec768 100644
--- a/frontend/src/app/modules/hal/resources/relation-resource.ts
+++ b/frontend/src/app/features/hal/resources/relation-resource.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
export interface RelationResourceLinks {
delete():Promise<any>;
diff --git a/frontend/src/app/modules/hal/resources/role-resource.ts b/frontend/src/app/features/hal/resources/role-resource.ts
similarity index 94%
rename from frontend/src/app/modules/hal/resources/role-resource.ts
rename to frontend/src/app/features/hal/resources/role-resource.ts
index d4c8b017c14..6e6c9d29052 100644
--- a/frontend/src/app/modules/hal/resources/role-resource.ts
+++ b/frontend/src/app/features/hal/resources/role-resource.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export class RoleResource extends HalResource {
}
diff --git a/frontend/src/app/modules/hal/resources/root-resource.ts b/frontend/src/app/features/hal/resources/root-resource.ts
similarity index 89%
rename from frontend/src/app/modules/hal/resources/root-resource.ts
rename to frontend/src/app/features/hal/resources/root-resource.ts
index eb89ad00f3b..83eefaef9b5 100644
--- a/frontend/src/app/modules/hal/resources/root-resource.ts
+++ b/frontend/src/app/features/hal/resources/root-resource.ts
@@ -27,8 +27,8 @@
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { UserResource } from 'core-app/modules/hal/resources/user-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { UserResource } from "core-app/features/hal/resources/user-resource";
export class RootResource extends HalResource {
diff --git a/frontend/src/app/modules/hal/resources/schema-dependency-resource.ts b/frontend/src/app/features/hal/resources/schema-dependency-resource.ts
similarity index 94%
rename from frontend/src/app/modules/hal/resources/schema-dependency-resource.ts
rename to frontend/src/app/features/hal/resources/schema-dependency-resource.ts
index fe0f4e53ee3..d08736a5dec 100644
--- a/frontend/src/app/modules/hal/resources/schema-dependency-resource.ts
+++ b/frontend/src/app/features/hal/resources/schema-dependency-resource.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export class SchemaDependencyResource extends HalResource {
diff --git a/frontend/src/app/modules/hal/resources/schema-resource.ts b/frontend/src/app/features/hal/resources/schema-resource.ts
similarity index 89%
rename from frontend/src/app/modules/hal/resources/schema-resource.ts
rename to frontend/src/app/features/hal/resources/schema-resource.ts
index 6c6e007b363..3911f6894f9 100644
--- a/frontend/src/app/modules/hal/resources/schema-resource.ts
+++ b/frontend/src/app/features/hal/resources/schema-resource.ts
@@ -26,10 +26,10 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
import { InputState } from 'reactivestates';
-import { IFieldSchema } from "core-app/modules/fields/field.base";
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
export class SchemaResource extends HalResource {
diff --git a/frontend/src/app/modules/hal/resources/status-resource.ts b/frontend/src/app/features/hal/resources/status-resource.ts
similarity index 95%
rename from frontend/src/app/modules/hal/resources/status-resource.ts
rename to frontend/src/app/features/hal/resources/status-resource.ts
index 35fe1fa20e9..df5641b246d 100644
--- a/frontend/src/app/modules/hal/resources/status-resource.ts
+++ b/frontend/src/app/features/hal/resources/status-resource.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { InputState } from 'reactivestates';
export class StatusResource extends HalResource {
diff --git a/frontend/src/app/modules/hal/resources/time-entry-resource.ts b/frontend/src/app/features/hal/resources/time-entry-resource.ts
similarity index 82%
rename from frontend/src/app/modules/hal/resources/time-entry-resource.ts
rename to frontend/src/app/features/hal/resources/time-entry-resource.ts
index 410ed7b5df6..c4911a4f294 100644
--- a/frontend/src/app/modules/hal/resources/time-entry-resource.ts
+++ b/frontend/src/app/features/hal/resources/time-entry-resource.ts
@@ -26,10 +26,10 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class TimeEntryResource extends HalResource {
public get state() {
diff --git a/frontend/src/app/modules/hal/resources/type-resource.ts b/frontend/src/app/features/hal/resources/type-resource.ts
similarity index 95%
rename from frontend/src/app/modules/hal/resources/type-resource.ts
rename to frontend/src/app/features/hal/resources/type-resource.ts
index 19bb6046a06..03873abddc1 100644
--- a/frontend/src/app/modules/hal/resources/type-resource.ts
+++ b/frontend/src/app/features/hal/resources/type-resource.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { InputState } from 'reactivestates';
export class TypeResource extends HalResource {
diff --git a/frontend/src/app/modules/hal/resources/user-resource.ts b/frontend/src/app/features/hal/resources/user-resource.ts
similarity index 96%
rename from frontend/src/app/modules/hal/resources/user-resource.ts
rename to frontend/src/app/features/hal/resources/user-resource.ts
index 8dfe793e773..5cb5c6b57c3 100644
--- a/frontend/src/app/modules/hal/resources/user-resource.ts
+++ b/frontend/src/app/features/hal/resources/user-resource.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
import { InputState } from 'reactivestates';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export class UserResource extends HalResource {
diff --git a/frontend/src/app/modules/hal/resources/version-resource.ts b/frontend/src/app/features/hal/resources/version-resource.ts
similarity index 95%
rename from frontend/src/app/modules/hal/resources/version-resource.ts
rename to frontend/src/app/features/hal/resources/version-resource.ts
index 4a64e6c03e5..2b3fa504013 100644
--- a/frontend/src/app/modules/hal/resources/version-resource.ts
+++ b/frontend/src/app/features/hal/resources/version-resource.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export class VersionResource extends HalResource {
status:string;
diff --git a/frontend/src/app/modules/hal/resources/wiki-page-resource.ts b/frontend/src/app/features/hal/resources/wiki-page-resource.ts
similarity index 90%
rename from frontend/src/app/modules/hal/resources/wiki-page-resource.ts
rename to frontend/src/app/features/hal/resources/wiki-page-resource.ts
index 7c066170e7b..31946fc554b 100644
--- a/frontend/src/app/modules/hal/resources/wiki-page-resource.ts
+++ b/frontend/src/app/features/hal/resources/wiki-page-resource.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { Attachable } from 'core-app/modules/hal/resources/mixins/attachable-mixin';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { Attachable } from "core-app/features/hal/resources/mixins/attachable-mixin";
export interface WikiPageResourceLinks {
diff --git a/frontend/src/app/modules/hal/resources/work-package-resource.spec.ts b/frontend/src/app/features/hal/resources/work-package-resource.spec.ts
similarity index 78%
rename from frontend/src/app/modules/hal/resources/work-package-resource.spec.ts
rename to frontend/src/app/features/hal/resources/work-package-resource.spec.ts
index f8b4ec479fa..8ec59a16b5d 100644
--- a/frontend/src/app/modules/hal/resources/work-package-resource.spec.ts
+++ b/frontend/src/app/features/hal/resources/work-package-resource.spec.ts
@@ -27,27 +27,27 @@
//++
import { TestBed, waitForAsync } from '@angular/core/testing';
-import { OpenprojectHalModule } from 'core-app/modules/hal/openproject-hal.module';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
import { Injector } from '@angular/core';
-import { States } from 'core-components/states.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { NotificationsService } from 'core-app/modules/common/notifications/notifications.service';
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { SchemaCacheService } from 'core-components/schemas/schema-cache.service';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { AttachmentCollectionResource } from 'core-app/modules/hal/resources/attachment-collection-resource';
-import { LoadingIndicatorService } from 'core-app/modules/common/loading-indicator/loading-indicator.service';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { States } from 'core-app/core/states/states.service';
+import { NotificationsService } from 'core-app/shared/components/notifications/notifications.service';
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { SchemaCacheService } from 'core-app/core/schemas/schema-cache.service';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { LoadingIndicatorService } from 'core-app/core/loading-indicator/loading-indicator.service';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { StateService } from "@uirouter/core";
-import { OpenProjectFileUploadService } from "core-components/api/op-file-upload/op-file-upload.service";
-import { OpenProjectDirectFileUploadService } from "core-components/api/op-file-upload/op-direct-file-upload.service";
-import { WorkPackageCreateService } from 'core-app/components/wp-new/wp-create.service';
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { WorkPackagesActivityService } from "core-components/wp-single-view-tabs/activity-panel/wp-activity.service";
-import { TimezoneService } from "core-components/datetime/timezone.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { WorkPackageCreateService } from 'core-app/features/work-packages/components/wp-new/wp-create.service';
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { WorkPackagesActivityService } from "core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { OpenProjectFileUploadService } from "core-app/core/file-upload/op-file-upload.service";
+import { OpenProjectDirectFileUploadService } from "core-app/core/file-upload/op-direct-file-upload.service";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
+import { AttachmentCollectionResource } from "core-app/features/hal/resources/attachment-collection-resource";
+import { OpenprojectHalModule } from "core-app/features/hal/openproject-hal.module";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
describe('WorkPackage', () => {
let halResourceService:HalResourceService;
diff --git a/frontend/src/app/modules/hal/resources/work-package-resource.ts b/frontend/src/app/features/hal/resources/work-package-resource.ts
similarity index 82%
rename from frontend/src/app/modules/hal/resources/work-package-resource.ts
rename to frontend/src/app/features/hal/resources/work-package-resource.ts
index e3f65330674..c2f26ca484b 100644
--- a/frontend/src/app/modules/hal/resources/work-package-resource.ts
+++ b/frontend/src/app/features/hal/resources/work-package-resource.ts
@@ -26,24 +26,25 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { AttachmentCollectionResource } from 'core-app/modules/hal/resources/attachment-collection-resource';
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
-import { TypeResource } from 'core-app/modules/hal/resources/type-resource';
-import { RelationResource } from 'core-app/modules/hal/resources/relation-resource';
-import { OpenProjectFileUploadService } from 'core-components/api/op-file-upload/op-file-upload.service';
-import { States } from 'core-components/states.service';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { NotificationsService } from 'core-app/modules/common/notifications/notifications.service';
-import { Attachable } from 'core-app/modules/hal/resources/mixins/attachable-mixin';
-import { FormResource } from "core-app/modules/hal/resources/form-resource";
+
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { States } from 'core-app/core/states/states.service';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { NotificationsService } from 'core-app/shared/components/notifications/notifications.service';
import { InputState } from "reactivestates";
-import { WorkPackagesActivityService } from "core-components/wp-single-view-tabs/activity-panel/wp-activity.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { ICKEditorContext } from "core-app/modules/common/ckeditor/ckeditor-setup.service";
+import { WorkPackagesActivityService } from "core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { OpenProjectFileUploadService } from "core-app/core/file-upload/op-file-upload.service";
+import { ICKEditorContext } from "core-app/shared/components/editor/components/ckeditor/ckeditor-setup.service";
+import { AttachmentCollectionResource } from "core-app/features/hal/resources/attachment-collection-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { TypeResource } from "core-app/features/hal/resources/type-resource";
+import { RelationResource } from "core-app/features/hal/resources/relation-resource";
+import { FormResource } from "core-app/features/hal/resources/form-resource";
+import { Attachable } from "core-app/features/hal/resources/mixins/attachable-mixin";
export interface WorkPackageResourceEmbedded {
activities:CollectionResource;
diff --git a/frontend/src/app/modules/hal/resources/wp-collection-resource.ts b/frontend/src/app/features/hal/resources/wp-collection-resource.ts
similarity index 86%
rename from frontend/src/app/modules/hal/resources/wp-collection-resource.ts
rename to frontend/src/app/features/hal/resources/wp-collection-resource.ts
index a6d0b007ac3..652f72c3457 100644
--- a/frontend/src/app/modules/hal/resources/wp-collection-resource.ts
+++ b/frontend/src/app/features/hal/resources/wp-collection-resource.ts
@@ -26,10 +26,10 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
-import { SchemaResource } from 'core-app/modules/hal/resources/schema-resource';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
export interface WorkPackageCollectionResourceEmbedded {
elements:WorkPackageResource[];
diff --git a/frontend/src/app/modules/hal/schemas/hal-payload.helper.ts b/frontend/src/app/features/hal/schemas/hal-payload.helper.ts
similarity index 95%
rename from frontend/src/app/modules/hal/schemas/hal-payload.helper.ts
rename to frontend/src/app/features/hal/schemas/hal-payload.helper.ts
index 912dbc0491c..b57ba258204 100644
--- a/frontend/src/app/modules/hal/schemas/hal-payload.helper.ts
+++ b/frontend/src/app/features/hal/schemas/hal-payload.helper.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { SchemaResource } from 'core-app/modules/hal/resources/schema-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
export class HalPayloadHelper {
diff --git a/frontend/src/app/modules/hal/schemas/schema-proxy.ts b/frontend/src/app/features/hal/schemas/schema-proxy.ts
similarity index 94%
rename from frontend/src/app/modules/hal/schemas/schema-proxy.ts
rename to frontend/src/app/features/hal/schemas/schema-proxy.ts
index e9fab9b8b52..28546b80c02 100644
--- a/frontend/src/app/modules/hal/schemas/schema-proxy.ts
+++ b/frontend/src/app/features/hal/schemas/schema-proxy.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { IFieldSchema } from "core-app/modules/fields/field.base";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
export interface ISchemaProxy extends SchemaResource {
ofProperty(property:string):IFieldSchema;
diff --git a/frontend/src/app/modules/hal/schemas/work-package-schema-proxy.ts b/frontend/src/app/features/hal/schemas/work-package-schema-proxy.ts
similarity index 95%
rename from frontend/src/app/modules/hal/schemas/work-package-schema-proxy.ts
rename to frontend/src/app/features/hal/schemas/work-package-schema-proxy.ts
index 482a6537d3a..083f43a1a36 100644
--- a/frontend/src/app/modules/hal/schemas/work-package-schema-proxy.ts
+++ b/frontend/src/app/features/hal/schemas/work-package-schema-proxy.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { SchemaProxy } from "core-app/modules/hal/schemas/schema-proxy";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
+import { SchemaProxy } from "core-app/features/hal/schemas/schema-proxy";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
export class WorkPackageSchemaProxy extends SchemaProxy {
get(schema:SchemaResource, property:PropertyKey, receiver:any):any {
diff --git a/frontend/src/app/modules/hal/services/hal-aware-error-handler.ts b/frontend/src/app/features/hal/services/hal-aware-error-handler.ts
similarity index 80%
rename from frontend/src/app/modules/hal/services/hal-aware-error-handler.ts
rename to frontend/src/app/features/hal/services/hal-aware-error-handler.ts
index f2ab407c451..76440eb3d7b 100644
--- a/frontend/src/app/modules/hal/services/hal-aware-error-handler.ts
+++ b/frontend/src/app/features/hal/services/hal-aware-error-handler.ts
@@ -1,7 +1,7 @@
import { ErrorHandler, Injectable } from "@angular/core";
-import { ErrorResource } from "core-app/modules/hal/resources/error-resource";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { ErrorResource } from "core-app/features/hal/resources/error-resource";
@Injectable()
export class HalAwareErrorHandler extends ErrorHandler {
diff --git a/frontend/src/app/modules/hal/services/hal-events.service.ts b/frontend/src/app/features/hal/services/hal-events.service.ts
similarity index 88%
rename from frontend/src/app/modules/hal/services/hal-events.service.ts
rename to frontend/src/app/features/hal/services/hal-events.service.ts
index bdcb2e0c457..8a3a4f84d98 100644
--- a/frontend/src/app/modules/hal/services/hal-events.service.ts
+++ b/frontend/src/app/features/hal/services/hal-events.service.ts
@@ -1,8 +1,8 @@
import { Injectable } from "@angular/core";
import { Observable, Subject } from "rxjs";
import { buffer, debounceTime, filter } from "rxjs/operators";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { ResourceChangesetCommit } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { ResourceChangesetCommit } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
export interface HalEvent {
id:string;
diff --git a/frontend/src/app/modules/hal/services/hal-resource-notification.service.ts b/frontend/src/app/features/hal/services/hal-resource-notification.service.ts
similarity index 90%
rename from frontend/src/app/modules/hal/services/hal-resource-notification.service.ts
rename to frontend/src/app/features/hal/services/hal-resource-notification.service.ts
index 313536f5697..0c20d5c1007 100644
--- a/frontend/src/app/modules/hal/services/hal-resource-notification.service.ts
+++ b/frontend/src/app/features/hal/services/hal-resource-notification.service.ts
@@ -26,17 +26,17 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { ErrorResource } from 'core-app/modules/hal/resources/error-resource';
import { StateService } from '@uirouter/core';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
import { Injectable, Injector } from '@angular/core';
-import { LoadingIndicatorService } from 'core-app/modules/common/loading-indicator/loading-indicator.service';
-import { NotificationsService } from 'core-app/modules/common/notifications/notifications.service';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { LoadingIndicatorService } from 'core-app/core/loading-indicator/loading-indicator.service';
+import { NotificationsService } from 'core-app/shared/components/notifications/notifications.service';
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { HttpErrorResponse } from "@angular/common/http";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { ErrorResource } from "core-app/features/hal/resources/error-resource";
@Injectable()
export class HalResourceNotificationService {
diff --git a/frontend/src/app/modules/hal/services/hal-resource-sorting.service.ts b/frontend/src/app/features/hal/services/hal-resource-sorting.service.ts
similarity index 97%
rename from frontend/src/app/modules/hal/services/hal-resource-sorting.service.ts
rename to frontend/src/app/features/hal/services/hal-resource-sorting.service.ts
index 9e8ff029ab6..0400f809dfa 100644
--- a/frontend/src/app/modules/hal/services/hal-resource-sorting.service.ts
+++ b/frontend/src/app/features/hal/services/hal-resource-sorting.service.ts
@@ -27,7 +27,7 @@
//++
import { Injectable } from '@angular/core';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
@Injectable({ providedIn: 'root' })
export class HalResourceSortingService {
diff --git a/frontend/src/app/modules/hal/services/hal-resource.config.ts b/frontend/src/app/features/hal/services/hal-resource.config.ts
similarity index 57%
rename from frontend/src/app/modules/hal/services/hal-resource.config.ts
rename to frontend/src/app/features/hal/services/hal-resource.config.ts
index 114a662e6eb..e49bbdc888e 100644
--- a/frontend/src/app/modules/hal/services/hal-resource.config.ts
+++ b/frontend/src/app/features/hal/services/hal-resource.config.ts
@@ -26,43 +26,43 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { RelationResource } from 'core-app/modules/hal/resources/relation-resource';
-import { SchemaResource } from 'core-app/modules/hal/resources/schema-resource';
-import { TypeResource } from 'core-app/modules/hal/resources/type-resource';
-import { SchemaDependencyResource } from 'core-app/modules/hal/resources/schema-dependency-resource';
-import { ErrorResource } from 'core-app/modules/hal/resources/error-resource';
-import { UserResource } from 'core-app/modules/hal/resources/user-resource';
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
-import { WorkPackageCollectionResource } from 'core-app/modules/hal/resources/wp-collection-resource';
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { FormResource } from 'core-app/modules/hal/resources/form-resource';
-import { QueryFilterInstanceResource } from 'core-app/modules/hal/resources/query-filter-instance-resource';
-import { QueryFilterInstanceSchemaResource } from 'core-app/modules/hal/resources/query-filter-instance-schema-resource';
-import { QueryFilterResource } from 'core-app/modules/hal/resources/query-filter-resource';
-import { RootResource } from 'core-app/modules/hal/resources/root-resource';
-import { QueryOperatorResource } from 'core-app/modules/hal/resources/query-operator-resource';
-import { HelpTextResource } from 'core-app/modules/hal/resources/help-text-resource';
-import { CustomActionResource } from 'core-app/modules/hal/resources/custom-action-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { UserResource } from "core-app/features/hal/resources/user-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { CustomActionResource } from "core-app/features/hal/resources/custom-action-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { WikiPageResource } from "core-app/features/hal/resources/wiki-page-resource";
+import { MeetingContentResource } from "core-app/features/hal/resources/meeting-content-resource";
+import { PostResource } from "core-app/features/hal/resources/post-resource";
+import { StatusResource } from "core-app/features/hal/resources/status-resource";
+import { AttachmentCollectionResource } from "core-app/features/hal/resources/attachment-collection-resource";
+import { GridWidgetResource } from "core-app/features/hal/resources/grid-widget-resource";
+import { GridResource } from "core-app/features/hal/resources/grid-resource";
+import { TimeEntryResource } from "core-app/features/hal/resources/time-entry-resource";
+import { NewsResource } from "core-app/features/hal/resources/news-resource";
+import { VersionResource } from "core-app/features/hal/resources/version-resource";
+import { MembershipResource } from "core-app/features/hal/resources/membership-resource";
+import { RoleResource } from "core-app/features/hal/resources/role-resource";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
+import { GroupResource } from "core-app/features/hal/resources/group-resource";
+import { RootResource } from "core-app/features/hal/resources/root-resource";
+import { TypeResource } from "core-app/features/hal/resources/type-resource";
+import { QueryOperatorResource } from "core-app/features/hal/resources/query-operator-resource";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
+import { FormResource } from "core-app/features/hal/resources/form-resource";
+import { HelpTextResource } from "core-app/features/hal/resources/help-text-resource";
import {
HalResourceFactoryConfigInterface,
- HalResourceService
-} from 'core-app/modules/hal/services/hal-resource.service';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { WikiPageResource } from "core-app/modules/hal/resources/wiki-page-resource";
-import { MeetingContentResource } from "core-app/modules/hal/resources/meeting-content-resource";
-import { PostResource } from "core-app/modules/hal/resources/post-resource";
-import { StatusResource } from "core-app/modules/hal/resources/status-resource";
-import { AttachmentCollectionResource } from "core-app/modules/hal/resources/attachment-collection-resource";
-import { GridWidgetResource } from "core-app/modules/hal/resources/grid-widget-resource";
-import { GridResource } from "core-app/modules/hal/resources/grid-resource";
-import { TimeEntryResource } from "core-app/modules/hal/resources/time-entry-resource";
-import { NewsResource } from "core-app/modules/hal/resources/news-resource";
-import { VersionResource } from "core-app/modules/hal/resources/version-resource";
-import { MembershipResource } from "core-app/modules/hal/resources/membership-resource";
-import { RoleResource } from "core-app/modules/hal/resources/role-resource";
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
-import { GroupResource } from "core-app/modules/hal/resources/group-resource";
+ HalResourceService,
+} from "core-app/features/hal/services/hal-resource.service";
+import { QueryFilterInstanceSchemaResource } from "core-app/features/hal/resources/query-filter-instance-schema-resource";
+import { ErrorResource } from "core-app/features/hal/resources/error-resource";
+import { SchemaDependencyResource } from "core-app/features/hal/resources/schema-dependency-resource";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
+import { RelationResource } from "core-app/features/hal/resources/relation-resource";
+import { QueryFilterResource } from "core-app/features/hal/resources/query-filter-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
const halResourceDefaultConfig:{ [typeName:string]:HalResourceFactoryConfigInterface } = {
WorkPackage: {
diff --git a/frontend/src/app/modules/hal/services/hal-resource.service.ts b/frontend/src/app/features/hal/services/hal-resource.service.ts
similarity index 94%
rename from frontend/src/app/modules/hal/services/hal-resource.service.ts
rename to frontend/src/app/features/hal/services/hal-resource.service.ts
index 75d3a0a8556..ad634828fd2 100644
--- a/frontend/src/app/modules/hal/services/hal-resource.service.ts
+++ b/frontend/src/app/features/hal/services/hal-resource.service.ts
@@ -30,21 +30,21 @@ import { Injectable, Injector } from '@angular/core';
import { HttpClient, HttpErrorResponse, HttpParams } from '@angular/common/http';
import { catchError, map } from 'rxjs/operators';
import { Observable, throwError } from 'rxjs';
-import { HalResource, HalResourceClass } from 'core-app/modules/hal/resources/hal-resource';
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
-import { HalLink, HalLinkInterface } from 'core-app/modules/hal/hal-link/hal-link';
-import { URLParamsEncoder } from 'core-app/modules/hal/services/url-params-encoder';
-import { ErrorResource } from "core-app/modules/hal/resources/error-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { ErrorResource } from "core-app/features/hal/resources/error-resource";
import * as Pako from 'pako';
import * as base64 from "byte-base64";
+import { initializeHalProperties } from "../helpers/hal-resource-builder";
+import { whenDebugging } from "core-app/shared/helpers/debug_output";
import {
HTTPClientHeaders,
HTTPClientOptions,
HTTPClientParamMap,
HTTPSupportedMethods,
-} from "core-app/modules/hal/http/http.interfaces";
-import { whenDebugging } from "core-app/helpers/debug_output";
-import { initializeHalProperties } from "../helpers/hal-resource-builder";
+} from "core-app/features/hal/http/http.interfaces";
+import { HalLink, HalLinkInterface } from "core-app/features/hal/hal-link/hal-link";
+import { URLParamsEncoder } from "core-app/features/hal/services/url-params-encoder";
+import { HalResource, HalResourceClass } from "core-app/features/hal/resources/hal-resource";
export interface HalResourceFactoryConfigInterface {
cls?:any;
diff --git a/frontend/src/app/modules/hal/services/url-params-encoder.ts b/frontend/src/app/features/hal/services/url-params-encoder.ts
similarity index 100%
rename from frontend/src/app/modules/hal/services/url-params-encoder.ts
rename to frontend/src/app/features/hal/services/url-params-encoder.ts
diff --git a/frontend/src/app/components/homescreen/blocks/new-features.component.sass b/frontend/src/app/features/homescreen/blocks/new-features.component.sass
similarity index 100%
rename from frontend/src/app/components/homescreen/blocks/new-features.component.sass
rename to frontend/src/app/features/homescreen/blocks/new-features.component.sass
diff --git a/frontend/src/app/components/homescreen/blocks/new-features.component.spec.ts b/frontend/src/app/features/homescreen/blocks/new-features.component.spec.ts
similarity index 97%
rename from frontend/src/app/components/homescreen/blocks/new-features.component.spec.ts
rename to frontend/src/app/features/homescreen/blocks/new-features.component.spec.ts
index e9dfeb67234..642044eb978 100644
--- a/frontend/src/app/components/homescreen/blocks/new-features.component.spec.ts
+++ b/frontend/src/app/features/homescreen/blocks/new-features.component.spec.ts
@@ -30,7 +30,7 @@ import { DebugElement } from "@angular/core";
import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing';
import { By } from "@angular/platform-browser";
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
import { HomescreenNewFeaturesBlockComponent } from './new-features.component';
describe('shows edition-specific content', () => {
diff --git a/frontend/src/app/components/homescreen/blocks/new-features.component.ts b/frontend/src/app/features/homescreen/blocks/new-features.component.ts
similarity index 94%
rename from frontend/src/app/components/homescreen/blocks/new-features.component.ts
rename to frontend/src/app/features/homescreen/blocks/new-features.component.ts
index 93bee84a86e..877d82fff06 100644
--- a/frontend/src/app/components/homescreen/blocks/new-features.component.ts
+++ b/frontend/src/app/features/homescreen/blocks/new-features.component.ts
@@ -27,11 +27,11 @@
//++
import { Component } from '@angular/core';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
import { DomSanitizer } from "@angular/platform-browser";
-import { BcfRestApi } from "core-app/modules/bim/bcf/bcf-constants.const";
-import { ImageHelpers } from "core-app/helpers/images/path-helper";
import imagePath = ImageHelpers.imagePath;
+import { BcfRestApi } from "core-app/features/bim/bcf/bcf-constants.const";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { ImageHelpers } from "core-app/shared/helpers/images/path-helper";
export const homescreenNewFeaturesBlockSelector = 'homescreen-new-features-block';
diff --git a/frontend/src/app/modules/invite-user-modal/button/invite-user-button.component.html b/frontend/src/app/features/invite-user-modal/button/invite-user-button.component.html
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/button/invite-user-button.component.html
rename to frontend/src/app/features/invite-user-modal/button/invite-user-button.component.html
diff --git a/frontend/src/app/modules/invite-user-modal/button/invite-user-button.component.sass b/frontend/src/app/features/invite-user-modal/button/invite-user-button.component.sass
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/button/invite-user-button.component.sass
rename to frontend/src/app/features/invite-user-modal/button/invite-user-button.component.sass
diff --git a/frontend/src/app/modules/invite-user-modal/button/invite-user-button.component.ts b/frontend/src/app/features/invite-user-modal/button/invite-user-button.component.ts
similarity index 76%
rename from frontend/src/app/modules/invite-user-modal/button/invite-user-button.component.ts
rename to frontend/src/app/features/invite-user-modal/button/invite-user-button.component.ts
index 9b9f373a309..be2af7b5330 100644
--- a/frontend/src/app/modules/invite-user-modal/button/invite-user-button.component.ts
+++ b/frontend/src/app/features/invite-user-modal/button/invite-user-button.component.ts
@@ -1,10 +1,10 @@
-import { ChangeDetectorRef, Component, Input } from '@angular/core';
+import { Component, Input } from '@angular/core';
import { NgSelectComponent } from "@ng-select/ng-select";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { CurrentUserService } from "core-app/modules/current-user/current-user.service";
-import { OpInviteUserModalService } from "core-app/modules/invite-user-modal/invite-user-modal.service";
import { Observable } from "rxjs";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
+import { CurrentUserService } from "core-app/core/current-user/current-user.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { OpInviteUserModalService } from "core-app/features/invite-user-modal/invite-user-modal.service";
@Component({
selector: 'op-invite-user-button',
@@ -30,7 +30,6 @@ export class InviteUserButtonComponent {
readonly currentProjectService:CurrentProjectService,
readonly currentUserService:CurrentUserService,
readonly ngSelectComponent:NgSelectComponent,
- readonly changeDetectorRef:ChangeDetectorRef,
) {
}
@@ -47,4 +46,4 @@ export class InviteUserButtonComponent {
this.opInviteUserModalService.open(this.projectId);
this.ngSelectComponent.close();
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/app/modules/invite-user-modal/button/invite-user-button.module.ts b/frontend/src/app/features/invite-user-modal/button/invite-user-button.module.ts
similarity index 61%
rename from frontend/src/app/modules/invite-user-modal/button/invite-user-button.module.ts
rename to frontend/src/app/features/invite-user-modal/button/invite-user-button.module.ts
index 267d2439aad..725323c0d1d 100644
--- a/frontend/src/app/modules/invite-user-modal/button/invite-user-button.module.ts
+++ b/frontend/src/app/features/invite-user-modal/button/invite-user-button.module.ts
@@ -1,7 +1,7 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
-import { InviteUserButtonComponent } from "core-app/modules/invite-user-modal/button/invite-user-button.component";
-import { IconModule } from "core-app/modules/icon/icon.module";
+import { InviteUserButtonComponent } from "core-app/features/invite-user-modal/button/invite-user-button.component";
+import { IconModule } from "core-app/shared/components/icon/icon.module";
diff --git a/frontend/src/app/modules/invite-user-modal/invite-user-modal-augment.service.ts b/frontend/src/app/features/invite-user-modal/invite-user-modal-augment.service.ts
similarity index 94%
rename from frontend/src/app/modules/invite-user-modal/invite-user-modal-augment.service.ts
rename to frontend/src/app/features/invite-user-modal/invite-user-modal-augment.service.ts
index 52d642ac689..d52e0a6c354 100644
--- a/frontend/src/app/modules/invite-user-modal/invite-user-modal-augment.service.ts
+++ b/frontend/src/app/features/invite-user-modal/invite-user-modal-augment.service.ts
@@ -29,8 +29,8 @@
import {Inject, Injectable} from "@angular/core";
import {DOCUMENT} from "@angular/common";
-import {OpModalService} from "core-app/modules/modal/modal.service";
-import {CurrentProjectService} from "core-components/projects/current-project.service";
+import {OpModalService} from "core-app/shared/components/modal/modal.service";
+import {CurrentProjectService} from "core-app/core/current-project/current-project.service";
import {InviteUserModalComponent} from "./invite-user.component";
import ClickEvent = JQuery.ClickEvent;
diff --git a/frontend/src/app/modules/invite-user-modal/invite-user-modal.module.ts b/frontend/src/app/features/invite-user-modal/invite-user-modal.module.ts
similarity index 70%
rename from frontend/src/app/modules/invite-user-modal/invite-user-modal.module.ts
rename to frontend/src/app/features/invite-user-modal/invite-user-modal.module.ts
index aa0a0ab3934..cbf09245a52 100644
--- a/frontend/src/app/modules/invite-user-modal/invite-user-modal.module.ts
+++ b/frontend/src/app/features/invite-user-modal/invite-user-modal.module.ts
@@ -1,14 +1,8 @@
import { APP_INITIALIZER, Injector, NgModule } from "@angular/core";
import { ReactiveFormsModule } from "@angular/forms";
import { CommonModule } from "@angular/common";
-import { TextFieldModule } from '@angular/cdk/text-field';
+import { TextFieldModule } from '@angular/cdk/text-field';
import { NgSelectModule } from "@ng-select/ng-select";
-import { OpenprojectModalModule } from "core-app/modules/modal/modal.module";
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
-import { CurrentUserModule } from 'core-app/modules/current-user/current-user.module';
-import { DynamicFormsModule } from "core-app/modules/common/dynamic-forms/dynamic-forms.module";
-import { OpInviteUserModalAugmentService } from "core-app/modules/invite-user-modal/invite-user-modal-augment.service";
-import { OpInviteUserModalService } from "core-app/modules/invite-user-modal/invite-user-modal.service";
import { InviteUserModalComponent } from "./invite-user.component";
import { ProjectSelectionComponent } from "./project-selection/project-selection.component";
import { ProjectSearchComponent } from "./project-selection/project-search.component";
@@ -19,7 +13,13 @@ import { RoleSearchComponent } from "./role/role-search.component";
import { MessageComponent } from "./message/message.component";
import { SummaryComponent } from "./summary/summary.component";
import { SuccessComponent } from "./success/success.component";
-import { InviteUserButtonModule } from "core-app/modules/invite-user-modal/button/invite-user-button.module";
+import { CurrentUserModule } from "core-app/core/current-user/current-user.module";
+import { OpenprojectModalModule } from "core-app/shared/components/modal/modal.module";
+import { InviteUserButtonModule } from "core-app/features/invite-user-modal/button/invite-user-button.module";
+import { DynamicFormsModule } from "core-app/shared/components/dynamic-forms/dynamic-forms.module";
+import { OpInviteUserModalAugmentService } from "core-app/features/invite-user-modal/invite-user-modal-augment.service";
+import { OPSharedModule } from "core-app/shared/shared.module";
+import { OpInviteUserModalService } from "core-app/features/invite-user-modal/invite-user-modal.service";
export function initializeServices(injector:Injector) {
return function () {
@@ -31,7 +31,7 @@ export function initializeServices(injector:Injector) {
@NgModule({
imports: [
CommonModule,
- OpenprojectCommonModule,
+ OPSharedModule,
OpenprojectModalModule,
NgSelectModule,
ReactiveFormsModule,
@@ -61,4 +61,4 @@ export function initializeServices(injector:Injector) {
],
})
export class OpenprojectInviteUserModalModule {
-}
+}
\ No newline at end of file
diff --git a/frontend/src/app/modules/invite-user-modal/invite-user-modal.service.ts b/frontend/src/app/features/invite-user-modal/invite-user-modal.service.ts
similarity index 86%
rename from frontend/src/app/modules/invite-user-modal/invite-user-modal.service.ts
rename to frontend/src/app/features/invite-user-modal/invite-user-modal.service.ts
index 17ab0a29be3..5ae47d9be24 100644
--- a/frontend/src/app/modules/invite-user-modal/invite-user-modal.service.ts
+++ b/frontend/src/app/features/invite-user-modal/invite-user-modal.service.ts
@@ -27,11 +27,11 @@
//++
-import { Inject, Injectable, Injector, EventEmitter } from "@angular/core";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
+import { Injectable, EventEmitter } from "@angular/core";
import { InviteUserModalComponent } from "./invite-user.component";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
/**
* This service triggers user-invite modals to clicks on elements
diff --git a/frontend/src/app/modules/invite-user-modal/invite-user.component.html b/frontend/src/app/features/invite-user-modal/invite-user.component.html
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/invite-user.component.html
rename to frontend/src/app/features/invite-user-modal/invite-user.component.html
diff --git a/frontend/src/app/modules/invite-user-modal/invite-user.component.sass b/frontend/src/app/features/invite-user-modal/invite-user.component.sass
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/invite-user.component.sass
rename to frontend/src/app/features/invite-user-modal/invite-user.component.sass
diff --git a/frontend/src/app/modules/invite-user-modal/invite-user.component.ts b/frontend/src/app/features/invite-user-modal/invite-user.component.ts
similarity index 82%
rename from frontend/src/app/modules/invite-user-modal/invite-user.component.ts
rename to frontend/src/app/features/invite-user-modal/invite-user.component.ts
index b357585acf6..e51d6d31393 100644
--- a/frontend/src/app/modules/invite-user-modal/invite-user.component.ts
+++ b/frontend/src/app/features/invite-user-modal/invite-user.component.ts
@@ -7,14 +7,14 @@ import {
OnInit,
ViewEncapsulation,
} from '@angular/core';
-import { OpModalLocalsMap } from 'core-app/modules/modal/modal.types';
-import { OpModalComponent } from 'core-app/modules/modal/modal.component';
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { PrincipalData } from "core-app/modules/principal/principal-types";
-import { RoleResource } from "core-app/modules/hal/resources/role-resource";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
+import { OpModalLocalsMap } from 'core-app/shared/components/modal/modal.types';
+import { OpModalComponent } from 'core-app/shared/components/modal/modal.component';
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { PrincipalData } from "core-app/shared/components/principal/principal-types";
+import { RoleResource } from "core-app/features/hal/resources/role-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
enum Steps {
ProjectSelection,
diff --git a/frontend/src/app/modules/invite-user-modal/message/message.component.html b/frontend/src/app/features/invite-user-modal/message/message.component.html
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/message/message.component.html
rename to frontend/src/app/features/invite-user-modal/message/message.component.html
diff --git a/frontend/src/app/modules/invite-user-modal/message/message.component.sass b/frontend/src/app/features/invite-user-modal/message/message.component.sass
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/message/message.component.sass
rename to frontend/src/app/features/invite-user-modal/message/message.component.sass
diff --git a/frontend/src/app/modules/invite-user-modal/message/message.component.ts b/frontend/src/app/features/invite-user-modal/message/message.component.ts
similarity index 89%
rename from frontend/src/app/modules/invite-user-modal/message/message.component.ts
rename to frontend/src/app/features/invite-user-modal/message/message.component.ts
index a70eea6f14e..7900d3a58f4 100644
--- a/frontend/src/app/modules/invite-user-modal/message/message.component.ts
+++ b/frontend/src/app/features/invite-user-modal/message/message.component.ts
@@ -11,10 +11,10 @@ import {
FormControl,
FormGroup,
} from '@angular/forms';
-import {I18nService} from "core-app/modules/common/i18n/i18n.service";
-import {HalResource} from 'core-app/modules/hal/resources/hal-resource';
-import {ProjectResource} from 'core-app/modules/hal/resources/project-resource';
+import {I18nService} from "core-app/core/i18n/i18n.service";
import {PrincipalType} from '../invite-user.component';
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
@Component({
selector: 'op-ium-message',
diff --git a/frontend/src/app/modules/invite-user-modal/principal/principal-search.component.html b/frontend/src/app/features/invite-user-modal/principal/principal-search.component.html
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/principal/principal-search.component.html
rename to frontend/src/app/features/invite-user-modal/principal/principal-search.component.html
diff --git a/frontend/src/app/modules/invite-user-modal/principal/principal-search.component.ts b/frontend/src/app/features/invite-user-modal/principal/principal-search.component.ts
similarity index 84%
rename from frontend/src/app/modules/invite-user-modal/principal/principal-search.component.ts
rename to frontend/src/app/features/invite-user-modal/principal/principal-search.component.ts
index 91e818bc72e..e894c816986 100644
--- a/frontend/src/app/modules/invite-user-modal/principal/principal-search.component.ts
+++ b/frontend/src/app/features/invite-user-modal/principal/principal-search.component.ts
@@ -9,15 +9,15 @@ import {
import {FormControl} from "@angular/forms";
import {Observable, BehaviorSubject, combineLatest, forkJoin} from "rxjs";
import {debounceTime, distinctUntilChanged, share, map, shareReplay, switchMap} from "rxjs/operators";
-import {APIV3Service} from "core-app/modules/apiv3/api-v3.service";
-import {ApiV3FilterBuilder} from "core-components/api/api-v3/api-v3-filter-builder";
-import {I18nService} from "core-app/modules/common/i18n/i18n.service";
-import {UntilDestroyedMixin} from "core-app/helpers/angular/until-destroyed.mixin";
-import {ProjectResource} from "core-app/modules/hal/resources/project-resource";
-import {UserResource} from "core-app/modules/hal/resources/user-resource";
-import {PrincipalLike} from "core-app/modules/principal/principal-types";
-import {CurrentUserService} from "core-app/modules/current-user/current-user.service";
+import {APIV3Service} from "core-app/core/apiv3/api-v3.service";
+import {I18nService} from "core-app/core/i18n/i18n.service";
+import {UntilDestroyedMixin} from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import {ProjectResource} from "core-app/features/hal/resources/project-resource";
+import {UserResource} from "core-app/features/hal/resources/user-resource";
+import {PrincipalLike} from "core-app/shared/components/principal/principal-types";
+import {CurrentUserService} from "core-app/core/current-user/current-user.service";
import {PrincipalType} from '../invite-user.component';
+import { ApiV3FilterBuilder } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
interface NgSelectPrincipalOption {
principal: PrincipalLike,
@@ -45,7 +45,7 @@ export class PrincipalSearchComponent extends UntilDestroyedMixin implements OnI
share(),
);
private emailRegExp:RegExp = /^\S+@\S+\.\S+$/;
-
+
public canInviteByEmail$ = combineLatest(
this.items$,
this.input$,
@@ -53,10 +53,10 @@ export class PrincipalSearchComponent extends UntilDestroyedMixin implements OnI
).pipe(
map(([elements, input, canCreateUsers]) => {
return canCreateUsers
- && this.type === PrincipalType.User
- && !!input
- && this.emailRegExp.test(input)
- && !elements.find((el) => (el.principal as UserResource).email === input);
+ && this.type === PrincipalType.User
+ && !!input
+ && this.emailRegExp.test(input)
+ && !elements.find((el) => (el.principal as UserResource).email === input);
}),
);
diff --git a/frontend/src/app/modules/invite-user-modal/principal/principal.component.html b/frontend/src/app/features/invite-user-modal/principal/principal.component.html
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/principal/principal.component.html
rename to frontend/src/app/features/invite-user-modal/principal/principal.component.html
diff --git a/frontend/src/app/modules/invite-user-modal/principal/principal.component.sass b/frontend/src/app/features/invite-user-modal/principal/principal.component.sass
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/principal/principal.component.sass
rename to frontend/src/app/features/invite-user-modal/principal/principal.component.sass
diff --git a/frontend/src/app/modules/invite-user-modal/principal/principal.component.ts b/frontend/src/app/features/invite-user-modal/principal/principal.component.ts
similarity index 91%
rename from frontend/src/app/modules/invite-user-modal/principal/principal.component.ts
rename to frontend/src/app/features/invite-user-modal/principal/principal.component.ts
index 15dadd68ff0..8c216e78096 100644
--- a/frontend/src/app/modules/invite-user-modal/principal/principal.component.ts
+++ b/frontend/src/app/features/invite-user-modal/principal/principal.component.ts
@@ -13,12 +13,12 @@ import {
FormControl,
Validators,
} from '@angular/forms';
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { PrincipalData, PrincipalLike } from "core-app/modules/principal/principal-types";
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
-import { DynamicFormComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-form/dynamic-form.component"
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { PrincipalData, PrincipalLike } from "core-app/shared/components/principal/principal-types";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
+import { DynamicFormComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component"
import { PrincipalType } from '../invite-user.component';
function extractCustomFieldsFromSchema(schema: IOPFormSettings['_embedded']['schema']) {
diff --git a/frontend/src/app/modules/invite-user-modal/project-selection/project-allowed.validator.ts b/frontend/src/app/features/invite-user-modal/project-selection/project-allowed.validator.ts
similarity index 84%
rename from frontend/src/app/modules/invite-user-modal/project-selection/project-allowed.validator.ts
rename to frontend/src/app/features/invite-user-modal/project-selection/project-allowed.validator.ts
index 2119d179a62..2e52668a2f5 100644
--- a/frontend/src/app/modules/invite-user-modal/project-selection/project-allowed.validator.ts
+++ b/frontend/src/app/features/invite-user-modal/project-selection/project-allowed.validator.ts
@@ -1,7 +1,7 @@
import { AbstractControl } from "@angular/forms";
-import { CurrentUserService } from "core-app/modules/current-user/current-user.service";
import { of } from "rxjs";
import { catchError, map, take } from "rxjs/operators";
+import { CurrentUserService } from "core-app/core/current-user/current-user.service";
export const ProjectAllowedValidator = (currentUserService:CurrentUserService) => {
return (control: AbstractControl) => {
@@ -11,4 +11,4 @@ export const ProjectAllowedValidator = (currentUserService:CurrentUserService) =
catchError(() => of(null))
)
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/app/modules/invite-user-modal/project-selection/project-search.component.html b/frontend/src/app/features/invite-user-modal/project-selection/project-search.component.html
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/project-selection/project-search.component.html
rename to frontend/src/app/features/invite-user-modal/project-selection/project-search.component.html
diff --git a/frontend/src/app/modules/invite-user-modal/project-selection/project-search.component.ts b/frontend/src/app/features/invite-user-modal/project-selection/project-search.component.ts
similarity index 70%
rename from frontend/src/app/modules/invite-user-modal/project-selection/project-search.component.ts
rename to frontend/src/app/features/invite-user-modal/project-selection/project-search.component.ts
index 9447ff24c6b..9db8c30b00b 100644
--- a/frontend/src/app/modules/invite-user-modal/project-selection/project-search.component.ts
+++ b/frontend/src/app/features/invite-user-modal/project-selection/project-search.component.ts
@@ -7,12 +7,12 @@ import {
import { FormControl } from "@angular/forms";
import { BehaviorSubject, combineLatest } from "rxjs";
import { debounceTime, map, switchMap } from "rxjs/operators";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { ApiV3FilterBuilder } from "core-components/api/api-v3/api-v3-filter-builder";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
-import { CurrentUserService } from 'core-app/modules/current-user/current-user.service';
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
+import { CurrentUserService } from 'core-app/core/current-user/current-user.service';
+import { ApiV3FilterBuilder } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
interface NgSelectProjectOption {
project: ProjectResource,
@@ -51,19 +51,19 @@ export class ProjectSearchComponent extends UntilDestroyedMixin implements OnIni
map(capabilities => capabilities.filter(c => c.action.href.endsWith('/memberships/create')))
),
])
- .pipe(
- this.untilDestroyed(),
- map(([ projects, projectInviteCapabilities ]) => {
- const mapped = projects.map((project: ProjectResource) => ({
+ .pipe(
+ this.untilDestroyed(),
+ map(([ projects, projectInviteCapabilities ]) => {
+ const mapped = projects.map((project: ProjectResource) => ({
project,
disabled: !projectInviteCapabilities.find(cap => cap.context.id === project.id),
}));
- mapped.sort(
- (a: NgSelectProjectOption, b: NgSelectProjectOption) => (a.disabled ? 1 : 0) - (b.disabled ? 1 : 0),
- );
- return mapped;
- })
- );
+ mapped.sort(
+ (a: NgSelectProjectOption, b: NgSelectProjectOption) => (a.disabled ? 1 : 0) - (b.disabled ? 1 : 0),
+ );
+ return mapped;
+ })
+ );
constructor(
readonly I18n:I18nService,
diff --git a/frontend/src/app/modules/invite-user-modal/project-selection/project-selection.component.html b/frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.html
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/project-selection/project-selection.component.html
rename to frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.html
diff --git a/frontend/src/app/modules/invite-user-modal/project-selection/project-selection.component.sass b/frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.sass
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/project-selection/project-selection.component.sass
rename to frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.sass
diff --git a/frontend/src/app/modules/invite-user-modal/project-selection/project-selection.component.ts b/frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.ts
similarity index 89%
rename from frontend/src/app/modules/invite-user-modal/project-selection/project-selection.component.ts
rename to frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.ts
index 3c836770515..ffa774c7088 100644
--- a/frontend/src/app/modules/invite-user-modal/project-selection/project-selection.component.ts
+++ b/frontend/src/app/features/invite-user-modal/project-selection/project-selection.component.ts
@@ -11,11 +11,11 @@ import {
FormGroup,
Validators,
} from '@angular/forms';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { BannersService } from "core-app/modules/common/enterprise/banners.service";
-import { CurrentUserService } from 'core-app/modules/current-user/current-user.service';
-import { IOpOptionListOption } from "core-app/modules/common/option-list/option-list.component";
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { BannersService } from "core-app/core/enterprise/banners.service";
+import { CurrentUserService } from 'core-app/core/current-user/current-user.service';
+import { IOpOptionListOption } from "core-app/shared/components/option-list/option-list.component";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
import { PrincipalType } from '../invite-user.component';
import { ProjectAllowedValidator } from './project-allowed.validator';
diff --git a/frontend/src/app/modules/invite-user-modal/role/role-search.component.html b/frontend/src/app/features/invite-user-modal/role/role-search.component.html
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/role/role-search.component.html
rename to frontend/src/app/features/invite-user-modal/role/role-search.component.html
diff --git a/frontend/src/app/modules/invite-user-modal/role/role-search.component.ts b/frontend/src/app/features/invite-user-modal/role/role-search.component.ts
similarity index 83%
rename from frontend/src/app/modules/invite-user-modal/role/role-search.component.ts
rename to frontend/src/app/features/invite-user-modal/role/role-search.component.ts
index 908ce52ea67..4850f9cb370 100644
--- a/frontend/src/app/modules/invite-user-modal/role/role-search.component.ts
+++ b/frontend/src/app/features/invite-user-modal/role/role-search.component.ts
@@ -7,10 +7,10 @@ import {
import { FormControl } from "@angular/forms";
import { Observable, Subject, combineLatest } from "rxjs";
import { debounceTime, distinctUntilChanged, filter, map, switchMap, tap } from "rxjs/operators";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { ApiV3FilterBuilder } from "core-components/api/api-v3/api-v3-filter-builder";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { ApiV3FilterBuilder } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
@Component({
selector: 'op-ium-role-search',
diff --git a/frontend/src/app/modules/invite-user-modal/role/role.component.html b/frontend/src/app/features/invite-user-modal/role/role.component.html
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/role/role.component.html
rename to frontend/src/app/features/invite-user-modal/role/role.component.html
diff --git a/frontend/src/app/modules/invite-user-modal/role/role.component.sass b/frontend/src/app/features/invite-user-modal/role/role.component.sass
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/role/role.component.sass
rename to frontend/src/app/features/invite-user-modal/role/role.component.sass
diff --git a/frontend/src/app/modules/invite-user-modal/role/role.component.ts b/frontend/src/app/features/invite-user-modal/role/role.component.ts
similarity index 85%
rename from frontend/src/app/modules/invite-user-modal/role/role.component.ts
rename to frontend/src/app/features/invite-user-modal/role/role.component.ts
index 3f66d3d96e9..d749510061f 100644
--- a/frontend/src/app/modules/invite-user-modal/role/role.component.ts
+++ b/frontend/src/app/features/invite-user-modal/role/role.component.ts
@@ -10,11 +10,11 @@ import {
FormGroup,
Validators,
} from '@angular/forms';
-import {I18nService} from "core-app/modules/common/i18n/i18n.service";
+import {I18nService} from "core-app/core/i18n/i18n.service";
import {PrincipalType} from '../invite-user.component';
-import {RoleResource} from "core-app/modules/hal/resources/role-resource";
-import {ProjectResource} from "core-app/modules/hal/resources/project-resource";
-import {HalResource} from 'core-app/modules/hal/resources/hal-resource';
+import {RoleResource} from "core-app/features/hal/resources/role-resource";
+import {ProjectResource} from "core-app/features/hal/resources/project-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
@Component({
selector: 'op-ium-role',
diff --git a/frontend/src/app/modules/invite-user-modal/success/success.component.html b/frontend/src/app/features/invite-user-modal/success/success.component.html
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/success/success.component.html
rename to frontend/src/app/features/invite-user-modal/success/success.component.html
diff --git a/frontend/src/app/modules/invite-user-modal/success/success.component.sass b/frontend/src/app/features/invite-user-modal/success/success.component.sass
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/success/success.component.sass
rename to frontend/src/app/features/invite-user-modal/success/success.component.sass
diff --git a/frontend/src/app/modules/invite-user-modal/success/success.component.ts b/frontend/src/app/features/invite-user-modal/success/success.component.ts
similarity index 83%
rename from frontend/src/app/modules/invite-user-modal/success/success.component.ts
rename to frontend/src/app/features/invite-user-modal/success/success.component.ts
index b049076fd81..809b3408762 100644
--- a/frontend/src/app/modules/invite-user-modal/success/success.component.ts
+++ b/frontend/src/app/features/invite-user-modal/success/success.component.ts
@@ -5,11 +5,11 @@ import {
Output,
ElementRef,
} from '@angular/core';
-import {I18nService} from "core-app/modules/common/i18n/i18n.service";
+import {I18nService} from "core-app/core/i18n/i18n.service";
import {PrincipalType} from '../invite-user.component';
-import {HalResource} from "core-app/modules/hal/resources/hal-resource";
-import {ProjectResource} from "core-app/modules/hal/resources/project-resource";
-import {ImageHelpers} from "core-app/helpers/images/path-helper";
+import {HalResource} from "core-app/features/hal/resources/hal-resource";
+import {ProjectResource} from "core-app/features/hal/resources/project-resource";
+import {ImageHelpers} from "core-app/shared/helpers/images/path-helper";
@Component({
selector: 'op-ium-success',
diff --git a/frontend/src/app/modules/invite-user-modal/summary/summary.component.html b/frontend/src/app/features/invite-user-modal/summary/summary.component.html
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/summary/summary.component.html
rename to frontend/src/app/features/invite-user-modal/summary/summary.component.html
diff --git a/frontend/src/app/modules/invite-user-modal/summary/summary.component.sass b/frontend/src/app/features/invite-user-modal/summary/summary.component.sass
similarity index 100%
rename from frontend/src/app/modules/invite-user-modal/summary/summary.component.sass
rename to frontend/src/app/features/invite-user-modal/summary/summary.component.sass
diff --git a/frontend/src/app/modules/invite-user-modal/summary/summary.component.ts b/frontend/src/app/features/invite-user-modal/summary/summary.component.ts
similarity index 87%
rename from frontend/src/app/modules/invite-user-modal/summary/summary.component.ts
rename to frontend/src/app/features/invite-user-modal/summary/summary.component.ts
index ab5996cb4d7..5c0ede8e952 100644
--- a/frontend/src/app/modules/invite-user-modal/summary/summary.component.ts
+++ b/frontend/src/app/features/invite-user-modal/summary/summary.component.ts
@@ -7,13 +7,13 @@ import {
} from '@angular/core';
import {Observable, of} from "rxjs";
import {mapTo, switchMap} from "rxjs/operators";
-import {I18nService} from "core-app/modules/common/i18n/i18n.service";
-import {APIV3Service} from "core-app/modules/apiv3/api-v3.service";
-import {RoleResource} from "core-app/modules/hal/resources/role-resource";
-import {PrincipalData, PrincipalLike} from "core-app/modules/principal/principal-types";
-import {HalResource} from "core-app/modules/hal/resources/hal-resource";
-import {ProjectResource} from 'core-app/modules/hal/resources/project-resource';
+import {I18nService} from "core-app/core/i18n/i18n.service";
+import {APIV3Service} from "core-app/core/apiv3/api-v3.service";
+import {RoleResource} from "core-app/features/hal/resources/role-resource";
+import {PrincipalData, PrincipalLike} from "core-app/shared/components/principal/principal-types";
+import {HalResource} from "core-app/features/hal/resources/hal-resource";
import {PrincipalType} from '../invite-user.component';
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
@Component({
selector: 'op-ium-summary',
diff --git a/frontend/src/app/modules/job-status/display-job-page/display-job-page.component.ts b/frontend/src/app/features/job-status/display-job-page/display-job-page.component.ts
similarity index 73%
rename from frontend/src/app/modules/job-status/display-job-page/display-job-page.component.ts
rename to frontend/src/app/features/job-status/display-job-page/display-job-page.component.ts
index ae8726736fa..dadcd6ab06c 100644
--- a/frontend/src/app/modules/job-status/display-job-page/display-job-page.component.ts
+++ b/frontend/src/app/features/job-status/display-job-page/display-job-page.component.ts
@@ -1,8 +1,8 @@
import { AfterViewInit, Component, Injector, OnDestroy } from "@angular/core";
import { StateService } from "@uirouter/core";
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { JobStatusModal } from "core-app/modules/job-status/job-status-modal/job-status.modal";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { JobStatusModal } from "core-app/features/job-status/job-status-modal/job-status.modal";
import { take } from "rxjs/operators";
@Component({
diff --git a/frontend/src/app/modules/job-status/job-status-modal/job-status.modal.html b/frontend/src/app/features/job-status/job-status-modal/job-status.modal.html
similarity index 100%
rename from frontend/src/app/modules/job-status/job-status-modal/job-status.modal.html
rename to frontend/src/app/features/job-status/job-status-modal/job-status.modal.html
diff --git a/frontend/src/app/modules/job-status/job-status-modal/job-status.modal.sass b/frontend/src/app/features/job-status/job-status-modal/job-status.modal.sass
similarity index 100%
rename from frontend/src/app/modules/job-status/job-status-modal/job-status.modal.sass
rename to frontend/src/app/features/job-status/job-status-modal/job-status.modal.sass
diff --git a/frontend/src/app/modules/job-status/job-status-modal/job-status.modal.ts b/frontend/src/app/features/job-status/job-status-modal/job-status.modal.ts
similarity index 87%
rename from frontend/src/app/modules/job-status/job-status-modal/job-status.modal.ts
rename to frontend/src/app/features/job-status/job-status-modal/job-status.modal.ts
index 6e245ee5f77..5b2ec3fbeda 100644
--- a/frontend/src/app/modules/job-status/job-status-modal/job-status.modal.ts
+++ b/frontend/src/app/features/job-status/job-status-modal/job-status.modal.ts
@@ -1,19 +1,19 @@
import { ChangeDetectorRef, Component, ElementRef, Inject, OnInit, ViewChild } from '@angular/core';
-import { OpModalLocalsMap } from 'core-app/modules/modal/modal.types';
-import { OpModalComponent } from 'core-app/modules/modal/modal.component';
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { OpModalLocalsMap } from 'core-app/shared/components/modal/modal.types';
+import { OpModalComponent } from 'core-app/shared/components/modal/modal.component';
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { HttpClient, HttpErrorResponse, HttpResponse } from '@angular/common/http';
import { Observable, timer } from "rxjs";
import { switchMap, takeWhile } from "rxjs/operators";
import {
LoadingIndicatorService,
withDelayedLoadingIndicator
-} from "core-app/modules/common/loading-indicator/loading-indicator.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { JobStatusEnum, JobStatusInterface } from "core-app/modules/job-status/job-status.interface";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+} from "core-app/core/loading-indicator/loading-indicator.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { JobStatusEnum, JobStatusInterface } from "core-app/features/job-status/job-status.interface";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Component({
diff --git a/frontend/src/app/modules/job-status/job-status.interface.ts b/frontend/src/app/features/job-status/job-status.interface.ts
similarity index 100%
rename from frontend/src/app/modules/job-status/job-status.interface.ts
rename to frontend/src/app/features/job-status/job-status.interface.ts
diff --git a/frontend/src/app/modules/job-status/openproject-job-status.module.ts b/frontend/src/app/features/job-status/openproject-job-status.module.ts
similarity index 82%
rename from frontend/src/app/modules/job-status/openproject-job-status.module.ts
rename to frontend/src/app/features/job-status/openproject-job-status.module.ts
index 3df258b9996..91b1187c525 100644
--- a/frontend/src/app/modules/job-status/openproject-job-status.module.ts
+++ b/frontend/src/app/features/job-status/openproject-job-status.module.ts
@@ -27,11 +27,11 @@
//++
import { NgModule } from '@angular/core';
-import { OpenprojectCommonModule } from 'core-app/modules/common/openproject-common.module';
-import { OpenprojectModalModule } from "core-app/modules/modal/modal.module";
+import { OPSharedModule } from 'core-app/shared/shared.module';
+import { OpenprojectModalModule } from "core-app/shared/components/modal/modal.module";
import { Ng2StateDeclaration, UIRouterModule } from "@uirouter/angular";
-import { DisplayJobPageComponent } from "core-app/modules/job-status/display-job-page/display-job-page.component";
-import { JobStatusModal } from "core-app/modules/job-status/job-status-modal/job-status.modal";
+import { DisplayJobPageComponent } from "core-app/features/job-status/display-job-page/display-job-page.component";
+import { JobStatusModal } from "core-app/features/job-status/job-status-modal/job-status.modal";
export const JOB_STATUS_ROUTE:Ng2StateDeclaration[] = [
{
@@ -48,7 +48,7 @@ export const JOB_STATUS_ROUTE:Ng2StateDeclaration[] = [
@NgModule({
imports: [
// Commons
- OpenprojectCommonModule,
+ OPSharedModule,
OpenprojectModalModule,
// Routes for /job_statuses/:uuid
diff --git a/frontend/src/app/features/my-page/my-page.component.ts b/frontend/src/app/features/my-page/my-page.component.ts
new file mode 100644
index 00000000000..f6f3c9626fb
--- /dev/null
+++ b/frontend/src/app/features/my-page/my-page.component.ts
@@ -0,0 +1,18 @@
+import { Component } from "@angular/core";
+import { GRID_PROVIDERS } from "core-app/shared/components/grids/grid/grid.component";
+import { GridPageComponent } from "core-app/shared/components/grids/grid/page/grid-page.component";
+
+@Component({
+ templateUrl: '../../shared/components/grids/grid/page/grid-page.component.html',
+ styleUrls: ['../../shared/components/grids/grid/page/grid-page.component.sass'],
+ providers: GRID_PROVIDERS
+})
+export class MyPageComponent extends GridPageComponent {
+ protected i18nNamespace():string {
+ return 'my_page';
+ }
+
+ protected gridScopePath():string {
+ return this.pathHelper.myPagePath();
+ }
+}
diff --git a/frontend/src/app/modules/my-page/openproject-my-page.module.ts b/frontend/src/app/features/my-page/openproject-my-page.module.ts
similarity index 83%
rename from frontend/src/app/modules/my-page/openproject-my-page.module.ts
rename to frontend/src/app/features/my-page/openproject-my-page.module.ts
index 27bde0a7830..36e42f3142d 100644
--- a/frontend/src/app/modules/my-page/openproject-my-page.module.ts
+++ b/frontend/src/app/features/my-page/openproject-my-page.module.ts
@@ -28,10 +28,10 @@
import { NgModule } from '@angular/core';
import { Ng2StateDeclaration, UIRouterModule } from "@uirouter/angular";
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
-import { OpenprojectModalModule } from "core-app/modules/modal/modal.module";
-import { OpenprojectGridsModule } from "core-app/modules/grids/openproject-grids.module";
-import { MyPageComponent } from "core-app/modules/my-page/my-page.component";
+import { OPSharedModule } from "core-app/shared/shared.module";
+import { OpenprojectModalModule } from "core-app/shared/components/modal/modal.module";
+import { OpenprojectGridsModule } from "core-app/shared/components/grids/openproject-grids.module";
+import { MyPageComponent } from "core-app/features/my-page/my-page.component";
export const MY_PAGE_ROUTES:Ng2StateDeclaration[] = [
{
@@ -47,7 +47,7 @@ export const MY_PAGE_ROUTES:Ng2StateDeclaration[] = [
@NgModule({
imports: [
- OpenprojectCommonModule,
+ OPSharedModule,
OpenprojectGridsModule,
OpenprojectModalModule,
diff --git a/frontend/src/app/modules/overview/openproject-overview.module.ts b/frontend/src/app/features/overview/openproject-overview.module.ts
similarity index 88%
rename from frontend/src/app/modules/overview/openproject-overview.module.ts
rename to frontend/src/app/features/overview/openproject-overview.module.ts
index 9b51ae8fe89..56daa83f5f5 100644
--- a/frontend/src/app/modules/overview/openproject-overview.module.ts
+++ b/frontend/src/app/features/overview/openproject-overview.module.ts
@@ -27,10 +27,10 @@
//++
import { NgModule } from '@angular/core';
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
+import { OPSharedModule } from "core-app/shared/shared.module";
import { Ng2StateDeclaration, UIRouter, UIRouterModule } from "@uirouter/angular";
-import { OpenprojectGridsModule } from "core-app/modules/grids/openproject-grids.module";
-import { OverviewComponent } from "core-app/modules/overview/overview.component";
+import { OpenprojectGridsModule } from "core-app/shared/components/grids/openproject-grids.module";
+import { OverviewComponent } from "core-app/features/overview/overview.component";
const menuItemClass = 'overview-menu-item';
@@ -60,7 +60,7 @@ export function uiRouterOverviewConfiguration(uiRouter:UIRouter) {
@NgModule({
imports: [
- OpenprojectCommonModule,
+ OPSharedModule,
OpenprojectGridsModule,
diff --git a/frontend/src/app/modules/overview/overview.component.ts b/frontend/src/app/features/overview/overview.component.ts
similarity index 50%
rename from frontend/src/app/modules/overview/overview.component.ts
rename to frontend/src/app/features/overview/overview.component.ts
index a5dc74d70cb..301d743d6ef 100644
--- a/frontend/src/app/modules/overview/overview.component.ts
+++ b/frontend/src/app/features/overview/overview.component.ts
@@ -1,11 +1,11 @@
import { Component } from '@angular/core';
-import { GridPageComponent } from "core-app/modules/grids/grid/page/grid-page.component";
-import { GRID_PROVIDERS } from "core-app/modules/grids/grid/grid.component";
+import { GridPageComponent } from "core-app/shared/components/grids/grid/page/grid-page.component";
+import { GRID_PROVIDERS } from "core-app/shared/components/grids/grid/grid.component";
@Component({
selector: 'overview',
- templateUrl: '../grids/grid/page/grid-page.component.html',
- styleUrls: ['../grids/grid/page/grid-page.component.sass'],
+ templateUrl: '../../shared/components/grids/grid/page/grid-page.component.html',
+ styleUrls: ['../../shared/components/grids/grid/page/grid-page.component.sass'],
providers: GRID_PROVIDERS
})
export class OverviewComponent extends GridPageComponent {
diff --git a/frontend/src/app/modules/plugins/hook-service.spec.ts b/frontend/src/app/features/plugins/hook-service.spec.ts
similarity index 98%
rename from frontend/src/app/modules/plugins/hook-service.spec.ts
rename to frontend/src/app/features/plugins/hook-service.spec.ts
index 6027af8a036..4de2274bc3b 100644
--- a/frontend/src/app/modules/plugins/hook-service.spec.ts
+++ b/frontend/src/app/features/plugins/hook-service.spec.ts
@@ -28,7 +28,7 @@
/*jshint expr: true*/
-import { HookService } from 'core-app/modules/plugins/hook-service';
+import { HookService } from 'core-app/features/plugins/hook-service';
describe('HookService', function() {
let service:HookService = new HookService();
diff --git a/frontend/src/app/modules/plugins/hook-service.ts b/frontend/src/app/features/plugins/hook-service.ts
similarity index 100%
rename from frontend/src/app/modules/plugins/hook-service.ts
rename to frontend/src/app/features/plugins/hook-service.ts
diff --git a/frontend/src/app/modules/plugins/linked-plugins.module.ts.example b/frontend/src/app/features/plugins/linked-plugins.module.ts.example
similarity index 100%
rename from frontend/src/app/modules/plugins/linked-plugins.module.ts.example
rename to frontend/src/app/features/plugins/linked-plugins.module.ts.example
diff --git a/frontend/src/app/modules/plugins/linked-plugins.styles.sass.example b/frontend/src/app/features/plugins/linked-plugins.styles.sass.example
similarity index 100%
rename from frontend/src/app/modules/plugins/linked-plugins.styles.sass.example
rename to frontend/src/app/features/plugins/linked-plugins.styles.sass.example
diff --git a/frontend/src/app/modules/plugins/openproject-plugins.module.ts b/frontend/src/app/features/plugins/openproject-plugins.module.ts
similarity index 88%
rename from frontend/src/app/modules/plugins/openproject-plugins.module.ts
rename to frontend/src/app/features/plugins/openproject-plugins.module.ts
index a8418d72fef..ac5c8707fa7 100644
--- a/frontend/src/app/modules/plugins/openproject-plugins.module.ts
+++ b/frontend/src/app/features/plugins/openproject-plugins.module.ts
@@ -28,9 +28,9 @@
import { Injector, NgModule } from "@angular/core";
-import { HookService } from "core-app/modules/plugins/hook-service";
-import { OpenProjectPluginContext } from "core-app/modules/plugins/plugin-context";
-import { debugLog } from "core-app/helpers/debug_output";
+import { HookService } from "core-app/features/plugins/hook-service";
+import { OpenProjectPluginContext } from "core-app/features/plugins/plugin-context";
+import { debugLog } from "core-app/shared/helpers/debug_output";
@NgModule({
diff --git a/frontend/src/app/modules/plugins/plugin-context.ts b/frontend/src/app/features/plugins/plugin-context.ts
similarity index 58%
rename from frontend/src/app/modules/plugins/plugin-context.ts
rename to frontend/src/app/features/plugins/plugin-context.ts
index e622ab222b0..cc1ba0c8bd1 100644
--- a/frontend/src/app/modules/plugins/plugin-context.ts
+++ b/frontend/src/app/features/plugins/plugin-context.ts
@@ -1,28 +1,28 @@
import { ApplicationRef, Injector, NgZone } from "@angular/core";
-import { HookService } from "core-app/modules/plugins/hook-service";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { ConfirmDialogService } from "core-components/modals/confirm-dialog/confirm-dialog.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { ExternalQueryConfigurationService } from "core-components/wp-table/external-configuration/external-query-configuration.service";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { PasswordConfirmationModal } from "../../components/modals/request-for-confirmation/password-confirmation.modal";
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { DynamicContentModal } from "../../components/modals/modal-wrapper/dynamic-content.modal";
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { DisplayFieldService } from "core-app/modules/fields/display/display-field.service";
-import { EditFieldService } from "core-app/modules/fields/edit/edit-field.service";
-import { OpenProjectFileUploadService } from "core-components/api/op-file-upload/op-file-upload.service";
-import { EditorMacrosService } from "core-components/modals/editor/editor-macros.service";
-import { HTMLSanitizeService } from "../common/html-sanitize/html-sanitize.service";
-import { PathHelperService } from "../common/path-helper/path-helper.service";
-import { DynamicBootstrapper } from "core-app/globals/dynamic-bootstrapper";
-import { States } from 'core-components/states.service';
-import { CKEditorPreviewService } from "core-app/modules/common/ckeditor/ckeditor-preview.service";
-import { ExternalRelationQueryConfigurationService } from "core-components/wp-table/external-configuration/external-relation-query-configuration.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { ConfigurationService } from "core-app/modules/common/config/configuration.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { ExternalQueryConfigurationService } from "core-app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.service";
+import { PasswordConfirmationModal } from "../../shared/components/modals/request-for-confirmation/password-confirmation.modal";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { DynamicContentModal } from "../../shared/components/modals/modal-wrapper/dynamic-content.modal";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { DisplayFieldService } from "core-app/shared/components/fields/display/display-field.service";
+import { EditFieldService } from "core-app/shared/components/fields/edit/edit-field.service";
+import { HTMLSanitizeService } from "../../core/html-sanitize/html-sanitize.service";
+import { PathHelperService } from "../../core/path-helper/path-helper.service";
+import { DynamicBootstrapper } from "core-app/core/setup/globals/dynamic-bootstrapper";
+import { States } from 'core-app/core/states/states.service';
+import { CKEditorPreviewService } from "core-app/shared/components/editor/components/ckeditor/ckeditor-preview.service";
+import { ExternalRelationQueryConfigurationService } from "core-app/features/work-packages/components/wp-table/external-configuration/external-relation-query-configuration.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { ConfigurationService } from "core-app/core/config/configuration.service";
+import { OpenProjectFileUploadService } from "core-app/core/file-upload/op-file-upload.service";
+import { EditorMacrosService } from "core-app/shared/components/modals/editor/editor-macros.service";
+import { ConfirmDialogService } from "core-app/shared/components/modals/confirm-dialog/confirm-dialog.service";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { HookService } from "core-app/features/plugins/hook-service";
/**
* Plugin context bridge for plugins outside the CLI compiler context
diff --git a/frontend/src/app/modules/projects/components/copy-project/copy-project.component.html b/frontend/src/app/features/projects/components/copy-project/copy-project.component.html
similarity index 100%
rename from frontend/src/app/modules/projects/components/copy-project/copy-project.component.html
rename to frontend/src/app/features/projects/components/copy-project/copy-project.component.html
diff --git a/frontend/src/app/modules/projects/components/copy-project/copy-project.component.ts b/frontend/src/app/features/projects/components/copy-project/copy-project.component.ts
similarity index 79%
rename from frontend/src/app/modules/projects/components/copy-project/copy-project.component.ts
rename to frontend/src/app/features/projects/components/copy-project/copy-project.component.ts
index cd5e8e669b1..e386305c0fa 100644
--- a/frontend/src/app/modules/projects/components/copy-project/copy-project.component.ts
+++ b/frontend/src/app/features/projects/components/copy-project/copy-project.component.ts
@@ -1,17 +1,17 @@
import {Component, OnInit} from '@angular/core';
import {StateService, UIRouterGlobals} from "@uirouter/core";
-import {UntilDestroyedMixin} from "core-app/helpers/angular/until-destroyed.mixin";
-import {PathHelperService} from "core-app/modules/common/path-helper/path-helper.service";
-import {HalSource} from "core-app/modules/hal/resources/hal-resource";
+import {UntilDestroyedMixin} from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import {PathHelperService} from "core-app/core/path-helper/path-helper.service";
+import {HalSource} from "core-app/features/hal/resources/hal-resource";
import {
IDynamicFieldGroupConfig,
IOPFormlyFieldSettings,
IOPFormlyTemplateOptions,
-} from "core-app/modules/common/dynamic-forms/typings";
-import {I18nService} from "core-app/modules/common/i18n/i18n.service";
-import {APIV3Service} from "core-app/modules/apiv3/api-v3.service";
-import {JobStatusModal} from "core-app/modules/job-status/job-status-modal/job-status.modal";
-import {OpModalService} from "core-app/modules/modal/modal.service";
+} from "core-app/shared/components/dynamic-forms/typings";
+import {I18nService} from "core-app/core/i18n/i18n.service";
+import {APIV3Service} from "core-app/core/apiv3/api-v3.service";
+import {JobStatusModal} from "core-app/features/job-status/job-status-modal/job-status.modal";
+import {OpModalService} from "core-app/shared/components/modal/modal.service";
@Component({
selector: 'op-copy-project',
diff --git a/frontend/src/app/modules/projects/components/new-project/new-project.component.html b/frontend/src/app/features/projects/components/new-project/new-project.component.html
similarity index 100%
rename from frontend/src/app/modules/projects/components/new-project/new-project.component.html
rename to frontend/src/app/features/projects/components/new-project/new-project.component.html
diff --git a/frontend/src/app/modules/projects/components/new-project/new-project.component.sass b/frontend/src/app/features/projects/components/new-project/new-project.component.sass
similarity index 100%
rename from frontend/src/app/modules/projects/components/new-project/new-project.component.sass
rename to frontend/src/app/features/projects/components/new-project/new-project.component.sass
diff --git a/frontend/src/app/modules/projects/components/new-project/new-project.component.ts b/frontend/src/app/features/projects/components/new-project/new-project.component.ts
similarity index 82%
rename from frontend/src/app/modules/projects/components/new-project/new-project.component.ts
rename to frontend/src/app/features/projects/components/new-project/new-project.component.ts
index 84d3238485d..2f1750863c5 100644
--- a/frontend/src/app/modules/projects/components/new-project/new-project.component.ts
+++ b/frontend/src/app/features/projects/components/new-project/new-project.component.ts
@@ -1,18 +1,18 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import {StateService, UIRouterGlobals} from "@uirouter/core";
-import {UntilDestroyedMixin} from "core-app/helpers/angular/until-destroyed.mixin";
-import {PathHelperService} from "core-app/modules/common/path-helper/path-helper.service";
-import {HalResource, HalSource} from "core-app/modules/hal/resources/hal-resource";
-import {IDynamicFieldGroupConfig, IOPFormlyFieldSettings} from "core-app/modules/common/dynamic-forms/typings";
-import {I18nService} from "core-app/modules/common/i18n/i18n.service";
+import {PathHelperService} from "core-app/core/path-helper/path-helper.service";
+import {IDynamicFieldGroupConfig, IOPFormlyFieldSettings} from "core-app/shared/components/dynamic-forms/typings";
+import {I18nService} from "core-app/core/i18n/i18n.service";
import {FormControl, FormGroup} from "@angular/forms";
-import {APIV3Service} from "core-app/modules/apiv3/api-v3.service";
-import {ApiV3FilterBuilder} from "core-components/api/api-v3/api-v3-filter-builder";
+import {APIV3Service} from "core-app/core/apiv3/api-v3.service";
import {map} from "rxjs/operators";
import {Observable} from "rxjs";
-import {JobStatusModal} from "core-app/modules/job-status/job-status-modal/job-status.modal";
-import {OpModalService} from "core-app/modules/modal/modal.service";
-import { DynamicFormComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-form/dynamic-form.component";
+import {JobStatusModal} from "core-app/features/job-status/job-status-modal/job-status.modal";
+import {OpModalService} from "core-app/shared/components/modal/modal.service";
+import { DynamicFormComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { ApiV3FilterBuilder } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export interface ProjectTemplateOption {
href:string|null;
diff --git a/frontend/src/app/modules/projects/components/projects/projects.component.html b/frontend/src/app/features/projects/components/projects/projects.component.html
similarity index 100%
rename from frontend/src/app/modules/projects/components/projects/projects.component.html
rename to frontend/src/app/features/projects/components/projects/projects.component.html
diff --git a/frontend/src/app/modules/projects/components/projects/projects.component.scss b/frontend/src/app/features/projects/components/projects/projects.component.scss
similarity index 100%
rename from frontend/src/app/modules/projects/components/projects/projects.component.scss
rename to frontend/src/app/features/projects/components/projects/projects.component.scss
diff --git a/frontend/src/app/modules/projects/components/projects/projects.component.spec.ts b/frontend/src/app/features/projects/components/projects/projects.component.spec.ts
similarity index 100%
rename from frontend/src/app/modules/projects/components/projects/projects.component.spec.ts
rename to frontend/src/app/features/projects/components/projects/projects.component.spec.ts
diff --git a/frontend/src/app/modules/projects/components/projects/projects.component.ts b/frontend/src/app/features/projects/components/projects/projects.component.ts
similarity index 83%
rename from frontend/src/app/modules/projects/components/projects/projects.component.ts
rename to frontend/src/app/features/projects/components/projects/projects.component.ts
index 7b96e1bd9de..25b04efc430 100644
--- a/frontend/src/app/modules/projects/components/projects/projects.component.ts
+++ b/frontend/src/app/features/projects/components/projects/projects.component.ts
@@ -1,9 +1,8 @@
import { Component, OnInit } from '@angular/core';
import { StateService, UIRouterGlobals } from "@uirouter/core";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { HalSource } from "core-app/modules/hal/resources/hal-resource";
-import { IOPFormlyFieldSettings } from "core-app/modules/common/dynamic-forms/typings";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { IOPFormlyFieldSettings } from "core-app/shared/components/dynamic-forms/typings";
@Component({
selector: 'app-projects',
diff --git a/frontend/src/app/modules/projects/form-helpers/form-attribute-groups.ts b/frontend/src/app/features/projects/form-helpers/form-attribute-groups.ts
similarity index 100%
rename from frontend/src/app/modules/projects/form-helpers/form-attribute-groups.ts
rename to frontend/src/app/features/projects/form-helpers/form-attribute-groups.ts
diff --git a/frontend/src/app/modules/projects/openproject-projects.module.ts b/frontend/src/app/features/projects/openproject-projects.module.ts
similarity index 74%
rename from frontend/src/app/modules/projects/openproject-projects.module.ts
rename to frontend/src/app/features/projects/openproject-projects.module.ts
index d0a2f45f738..ac57851880e 100644
--- a/frontend/src/app/modules/projects/openproject-projects.module.ts
+++ b/frontend/src/app/features/projects/openproject-projects.module.ts
@@ -27,21 +27,21 @@
//++
import { NgModule } from '@angular/core';
-import { OpenprojectHalModule } from "core-app/modules/hal/openproject-hal.module";
+import { OpenprojectHalModule } from "core-app/features/hal/openproject-hal.module";
import { UIRouterModule } from "@uirouter/angular";
-import { OpenprojectFieldsModule } from 'core-app/modules/fields/openproject-fields.module';
-import { PROJECTS_ROUTES, uiRouterProjectsConfiguration } from "core-app/modules/projects/projects-routes";
+import { OpenprojectFieldsModule } from 'core-app/shared/components/fields/openproject-fields.module';
+import { PROJECTS_ROUTES, uiRouterProjectsConfiguration } from "core-app/features/projects/projects-routes";
import { ProjectsComponent } from './components/projects/projects.component';
-import { DynamicFormsModule } from "core-app/modules/common/dynamic-forms/dynamic-forms.module";
-import { NewProjectComponent } from "core-app/modules/projects/components/new-project/new-project.component";
+import { DynamicFormsModule } from "core-app/shared/components/dynamic-forms/dynamic-forms.module";
+import { NewProjectComponent } from "core-app/features/projects/components/new-project/new-project.component";
import { ReactiveFormsModule } from "@angular/forms";
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
-import { CopyProjectComponent } from "core-app/modules/projects/components/copy-project/copy-project.component";
+import { OPSharedModule } from "core-app/shared/shared.module";
+import { CopyProjectComponent } from "core-app/features/projects/components/copy-project/copy-project.component";
@NgModule({
imports: [
// Commons
- OpenprojectCommonModule,
+ OPSharedModule,
ReactiveFormsModule,
OpenprojectHalModule,
diff --git a/frontend/src/app/modules/projects/projects-routes.ts b/frontend/src/app/features/projects/projects-routes.ts
similarity index 70%
rename from frontend/src/app/modules/projects/projects-routes.ts
rename to frontend/src/app/features/projects/projects-routes.ts
index 24b773355cf..30a1ff97f1b 100644
--- a/frontend/src/app/modules/projects/projects-routes.ts
+++ b/frontend/src/app/features/projects/projects-routes.ts
@@ -1,7 +1,7 @@
import { Ng2StateDeclaration, UIRouter } from "@uirouter/angular";
-import { ProjectsComponent } from "core-app/modules/projects/components/projects/projects.component";
-import { NewProjectComponent } from "core-app/modules/projects/components/new-project/new-project.component";
-import {CopyProjectComponent} from "core-app/modules/projects/components/copy-project/copy-project.component";
+import { ProjectsComponent } from "core-app/features/projects/components/projects/projects.component";
+import { NewProjectComponent } from "core-app/features/projects/components/new-project/new-project.component";
+import {CopyProjectComponent} from "core-app/features/projects/components/copy-project/copy-project.component";
export const PROJECTS_ROUTES:Ng2StateDeclaration[] = [
{
diff --git a/frontend/src/app/modules/reporting/openproject-reporting.module.ts b/frontend/src/app/features/reporting/openproject-reporting.module.ts
similarity index 89%
rename from frontend/src/app/modules/reporting/openproject-reporting.module.ts
rename to frontend/src/app/features/reporting/openproject-reporting.module.ts
index 4adeda64fd4..612da4637b7 100644
--- a/frontend/src/app/modules/reporting/openproject-reporting.module.ts
+++ b/frontend/src/app/features/reporting/openproject-reporting.module.ts
@@ -30,8 +30,8 @@ import { NgModule } from '@angular/core';
import { UIRouterModule } from "@uirouter/angular";
import {
REPORTING_ROUTES,
-} from "core-app/modules/reporting/openproject-reporting.routes";
-import { ReportingPageComponent } from "core-app/modules/reporting/reporting-page/reporting-page.component";
+} from "core-app/features/reporting/openproject-reporting.routes";
+import { ReportingPageComponent } from "core-app/features/reporting/reporting-page/reporting-page.component";
@NgModule({
imports: [
diff --git a/frontend/src/app/modules/reporting/openproject-reporting.routes.ts b/frontend/src/app/features/reporting/openproject-reporting.routes.ts
similarity index 93%
rename from frontend/src/app/modules/reporting/openproject-reporting.routes.ts
rename to frontend/src/app/features/reporting/openproject-reporting.routes.ts
index 5f1d93d71c5..5e97ce43421 100644
--- a/frontend/src/app/modules/reporting/openproject-reporting.routes.ts
+++ b/frontend/src/app/features/reporting/openproject-reporting.routes.ts
@@ -27,7 +27,7 @@
//++
import { Ng2StateDeclaration, UIRouter } from "@uirouter/angular";
-import { ReportingPageComponent } from "core-app/modules/reporting/reporting-page/reporting-page.component";
+import { ReportingPageComponent } from "core-app/features/reporting/reporting-page/reporting-page.component";
export const REPORTING_ROUTES:Ng2StateDeclaration[] = [
{
diff --git a/frontend/src/app/modules/reporting/reporting-page/functionality/reporting_engine.js b/frontend/src/app/features/reporting/reporting-page/functionality/reporting_engine.js
similarity index 100%
rename from frontend/src/app/modules/reporting/reporting-page/functionality/reporting_engine.js
rename to frontend/src/app/features/reporting/reporting-page/functionality/reporting_engine.js
diff --git a/frontend/src/app/modules/reporting/reporting-page/functionality/reporting_engine/controls.js b/frontend/src/app/features/reporting/reporting-page/functionality/reporting_engine/controls.js
similarity index 100%
rename from frontend/src/app/modules/reporting/reporting-page/functionality/reporting_engine/controls.js
rename to frontend/src/app/features/reporting/reporting-page/functionality/reporting_engine/controls.js
diff --git a/frontend/src/app/modules/reporting/reporting-page/functionality/reporting_engine/filters.js b/frontend/src/app/features/reporting/reporting-page/functionality/reporting_engine/filters.js
similarity index 100%
rename from frontend/src/app/modules/reporting/reporting-page/functionality/reporting_engine/filters.js
rename to frontend/src/app/features/reporting/reporting-page/functionality/reporting_engine/filters.js
diff --git a/frontend/src/app/modules/reporting/reporting-page/functionality/reporting_engine/group_bys.js b/frontend/src/app/features/reporting/reporting-page/functionality/reporting_engine/group_bys.js
similarity index 100%
rename from frontend/src/app/modules/reporting/reporting-page/functionality/reporting_engine/group_bys.js
rename to frontend/src/app/features/reporting/reporting-page/functionality/reporting_engine/group_bys.js
diff --git a/frontend/src/app/modules/reporting/reporting-page/functionality/reporting_engine/restore_query.js b/frontend/src/app/features/reporting/reporting-page/functionality/reporting_engine/restore_query.js
similarity index 100%
rename from frontend/src/app/modules/reporting/reporting-page/functionality/reporting_engine/restore_query.js
rename to frontend/src/app/features/reporting/reporting-page/functionality/reporting_engine/restore_query.js
diff --git a/frontend/src/app/modules/reporting/reporting-page/functionality/tablesorter.ts b/frontend/src/app/features/reporting/reporting-page/functionality/tablesorter.ts
similarity index 100%
rename from frontend/src/app/modules/reporting/reporting-page/functionality/tablesorter.ts
rename to frontend/src/app/features/reporting/reporting-page/functionality/tablesorter.ts
diff --git a/frontend/src/app/modules/reporting/reporting-page/reporting-page.component.ts b/frontend/src/app/features/reporting/reporting-page/reporting-page.component.ts
similarity index 89%
rename from frontend/src/app/modules/reporting/reporting-page/reporting-page.component.ts
rename to frontend/src/app/features/reporting/reporting-page/reporting-page.component.ts
index 18f4aebfc29..8b5b791b019 100644
--- a/frontend/src/app/modules/reporting/reporting-page/reporting-page.component.ts
+++ b/frontend/src/app/features/reporting/reporting-page/reporting-page.component.ts
@@ -1,5 +1,5 @@
import { Component, OnInit, ViewEncapsulation } from "@angular/core";
-import { registerTableSorter } from "core-app/modules/reporting/reporting-page/functionality/tablesorter";
+import { registerTableSorter } from "core-app/features/reporting/reporting-page/functionality/tablesorter";
export const reportingPageComponentSelector = 'op-reporting-page';
diff --git a/frontend/src/app/modules/reporting/reporting-page/styles/_reporting_group_by.sass b/frontend/src/app/features/reporting/reporting-page/styles/_reporting_group_by.sass
similarity index 100%
rename from frontend/src/app/modules/reporting/reporting-page/styles/_reporting_group_by.sass
rename to frontend/src/app/features/reporting/reporting-page/styles/_reporting_group_by.sass
diff --git a/frontend/src/app/modules/reporting/reporting-page/styles/_reporting_table.sass b/frontend/src/app/features/reporting/reporting-page/styles/_reporting_table.sass
similarity index 100%
rename from frontend/src/app/modules/reporting/reporting-page/styles/_reporting_table.sass
rename to frontend/src/app/features/reporting/reporting-page/styles/_reporting_table.sass
diff --git a/frontend/src/app/modules/reporting/reporting-page/styles/_reporting_table_print.sass b/frontend/src/app/features/reporting/reporting-page/styles/_reporting_table_print.sass
similarity index 100%
rename from frontend/src/app/modules/reporting/reporting-page/styles/_reporting_table_print.sass
rename to frontend/src/app/features/reporting/reporting-page/styles/_reporting_table_print.sass
diff --git a/frontend/src/app/modules/reporting/reporting-page/styles/reporting.sass b/frontend/src/app/features/reporting/reporting-page/styles/reporting.sass
similarity index 93%
rename from frontend/src/app/modules/reporting/reporting-page/styles/reporting.sass
rename to frontend/src/app/features/reporting/reporting-page/styles/reporting.sass
index 517365cc62b..699311f87b9 100644
--- a/frontend/src/app/modules/reporting/reporting-page/styles/reporting.sass
+++ b/frontend/src/app/features/reporting/reporting-page/styles/reporting.sass
@@ -1,7 +1,7 @@
-@import "~global_styles/fonts/openproject_icon_definitions"
-@import _reporting_group_by
-@import _reporting_table
-@import _reporting_table_print
+@import "../../../../../global_styles/fonts/openproject_icon_definitions"
+@import reporting_group_by
+@import reporting_table
+@import reporting_table_print
@mixin sort-icons
font-family: "openproject-icon-font" !important
diff --git a/frontend/src/app/features/work-packages/components/back-routing/back-button.component.html b/frontend/src/app/features/work-packages/components/back-routing/back-button.component.html
new file mode 100644
index 00000000000..4973c83ec83
--- /dev/null
+++ b/frontend/src/app/features/work-packages/components/back-routing/back-button.component.html
@@ -0,0 +1,8 @@
+<button
+ class="op-back-button button hide-when-print"
+ [ngClass]="linkClass"
+ [title]="text.goBack"
+ (click)="goBack()"
+>
+ <op-icon icon-classes="op-back-button--icon button--icon icon-back-up"></op-icon>
+</button>
\ No newline at end of file
diff --git a/frontend/src/app/modules/common/back-routing/back-button.component.sass b/frontend/src/app/features/work-packages/components/back-routing/back-button.component.sass
similarity index 100%
rename from frontend/src/app/modules/common/back-routing/back-button.component.sass
rename to frontend/src/app/features/work-packages/components/back-routing/back-button.component.sass
diff --git a/frontend/src/app/modules/common/back-routing/back-button.component.ts b/frontend/src/app/features/work-packages/components/back-routing/back-button.component.ts
similarity index 91%
rename from frontend/src/app/modules/common/back-routing/back-button.component.ts
rename to frontend/src/app/features/work-packages/components/back-routing/back-button.component.ts
index 395af25e51f..c27c768f2ce 100644
--- a/frontend/src/app/modules/common/back-routing/back-button.component.ts
+++ b/frontend/src/app/features/work-packages/components/back-routing/back-button.component.ts
@@ -27,8 +27,8 @@
//++
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
-import { BackRoutingService } from "core-app/modules/common/back-routing/back-routing.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { BackRoutingService } from "core-app/features/work-packages/components/back-routing/back-routing.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Component({
templateUrl: './back-button.component.html',
@@ -55,4 +55,4 @@ export class BackButtonComponent {
this.backRoutingService.goBack();
}
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/app/modules/common/back-routing/back-routing.service.ts b/frontend/src/app/features/work-packages/components/back-routing/back-routing.service.ts
similarity index 95%
rename from frontend/src/app/modules/common/back-routing/back-routing.service.ts
rename to frontend/src/app/features/work-packages/components/back-routing/back-routing.service.ts
index e76f80cfd91..c2bafce7551 100644
--- a/frontend/src/app/modules/common/back-routing/back-routing.service.ts
+++ b/frontend/src/app/features/work-packages/components/back-routing/back-routing.service.ts
@@ -28,8 +28,8 @@
import { Injectable, Injector } from '@angular/core';
import { StateService, Transition } from "@uirouter/core";
-import { KeepTabService } from "core-components/wp-single-view-tabs/keep-tab/keep-tab.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { KeepTabService } from "core-app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
interface BackRouteOptions {
name:string;
diff --git a/frontend/src/app/modules/common/edit-actions-bar/wp-edit-actions-bar.component.ts b/frontend/src/app/features/work-packages/components/edit-actions-bar/wp-edit-actions-bar.component.ts
similarity index 93%
rename from frontend/src/app/modules/common/edit-actions-bar/wp-edit-actions-bar.component.ts
rename to frontend/src/app/features/work-packages/components/edit-actions-bar/wp-edit-actions-bar.component.ts
index 346efee61b7..23c86b0b0e0 100644
--- a/frontend/src/app/modules/common/edit-actions-bar/wp-edit-actions-bar.component.ts
+++ b/frontend/src/app/features/work-packages/components/edit-actions-bar/wp-edit-actions-bar.component.ts
@@ -27,8 +27,8 @@
//++
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Output } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { EditFormComponent } from "core-app/modules/fields/edit/edit-form/edit-form.component";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { EditFormComponent } from "core-app/shared/components/fields/edit/edit-form/edit-form.component";
@Component({
templateUrl: './wp-edit-actions-bar.html',
diff --git a/frontend/src/app/modules/common/edit-actions-bar/wp-edit-actions-bar.html b/frontend/src/app/features/work-packages/components/edit-actions-bar/wp-edit-actions-bar.html
similarity index 100%
rename from frontend/src/app/modules/common/edit-actions-bar/wp-edit-actions-bar.html
rename to frontend/src/app/features/work-packages/components/edit-actions-bar/wp-edit-actions-bar.html
diff --git a/frontend/src/app/components/filters/abstract-filter-date-time-value/abstract-filter-date-time-value.controller.ts b/frontend/src/app/features/work-packages/components/filters/abstract-filter-date-time-value/abstract-filter-date-time-value.controller.ts
similarity index 90%
rename from frontend/src/app/components/filters/abstract-filter-date-time-value/abstract-filter-date-time-value.controller.ts
rename to frontend/src/app/features/work-packages/components/filters/abstract-filter-date-time-value/abstract-filter-date-time-value.controller.ts
index 5ab3e7b2f71..75752bee3f9 100644
--- a/frontend/src/app/components/filters/abstract-filter-date-time-value/abstract-filter-date-time-value.controller.ts
+++ b/frontend/src/app/features/work-packages/components/filters/abstract-filter-date-time-value/abstract-filter-date-time-value.controller.ts
@@ -27,11 +27,11 @@
//++
import { Moment } from 'moment';
-import { QueryFilterInstanceResource } from 'core-app/modules/hal/resources/query-filter-instance-resource';
-import { TimezoneService } from 'core-components/datetime/timezone.service';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { OnInit, Directive } from '@angular/core';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
@Directive()
export abstract class AbstractDateTimeValueController extends UntilDestroyedMixin implements OnInit {
diff --git a/frontend/src/app/components/filters/filter-boolean-value/filter-boolean-value.component.html b/frontend/src/app/features/work-packages/components/filters/filter-boolean-value/filter-boolean-value.component.html
similarity index 100%
rename from frontend/src/app/components/filters/filter-boolean-value/filter-boolean-value.component.html
rename to frontend/src/app/features/work-packages/components/filters/filter-boolean-value/filter-boolean-value.component.html
diff --git a/frontend/src/app/components/filters/filter-boolean-value/filter-boolean-value.component.ts b/frontend/src/app/features/work-packages/components/filters/filter-boolean-value/filter-boolean-value.component.ts
similarity index 88%
rename from frontend/src/app/components/filters/filter-boolean-value/filter-boolean-value.component.ts
rename to frontend/src/app/features/work-packages/components/filters/filter-boolean-value/filter-boolean-value.component.ts
index 6b666b94faf..3f71a769931 100644
--- a/frontend/src/app/components/filters/filter-boolean-value/filter-boolean-value.component.ts
+++ b/frontend/src/app/features/work-packages/components/filters/filter-boolean-value/filter-boolean-value.component.ts
@@ -27,9 +27,9 @@
//++
import { Component, EventEmitter, Input, Output } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { QueryFilterInstanceResource } from 'core-app/modules/hal/resources/query-filter-instance-resource';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
@Component({
selector: 'filter-boolean-value',
diff --git a/frontend/src/app/components/filters/filter-container/filter-container.directive.html b/frontend/src/app/features/work-packages/components/filters/filter-container/filter-container.directive.html
similarity index 100%
rename from frontend/src/app/components/filters/filter-container/filter-container.directive.html
rename to frontend/src/app/features/work-packages/components/filters/filter-container/filter-container.directive.html
diff --git a/frontend/src/app/components/filters/filter-container/filter-container.directive.ts b/frontend/src/app/features/work-packages/components/filters/filter-container/filter-container.directive.ts
similarity index 83%
rename from frontend/src/app/components/filters/filter-container/filter-container.directive.ts
rename to frontend/src/app/features/work-packages/components/filters/filter-container/filter-container.directive.ts
index d67a5a20222..1162e170692 100644
--- a/frontend/src/app/components/filters/filter-container/filter-container.directive.ts
+++ b/frontend/src/app/features/work-packages/components/filters/filter-container/filter-container.directive.ts
@@ -36,13 +36,13 @@ import {
Output,
ViewEncapsulation
} from '@angular/core';
-import { WorkPackageViewFiltersService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service';
-import { WorkPackageFiltersService } from 'core-components/filters/wp-filters/wp-filters.service';
-import { DebouncedEventEmitter } from "core-components/angular/debounced-event-emitter";
-import { QueryFilterInstanceResource } from "core-app/modules/hal/resources/query-filter-instance-resource";
+import { WorkPackageViewFiltersService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service';
+import { DebouncedEventEmitter } from "core-app/shared/helpers/rxjs/debounced-event-emitter";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
import { Observable } from "rxjs";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
+import { WorkPackageFiltersService } from "core-app/features/work-packages/components/filters/wp-filters/wp-filters.service";
@Component({
templateUrl: './filter-container.directive.html',
diff --git a/frontend/src/app/components/filters/filter-date-time-value/filter-date-time-value.component.html b/frontend/src/app/features/work-packages/components/filters/filter-date-time-value/filter-date-time-value.component.html
similarity index 100%
rename from frontend/src/app/components/filters/filter-date-time-value/filter-date-time-value.component.html
rename to frontend/src/app/features/work-packages/components/filters/filter-date-time-value/filter-date-time-value.component.html
diff --git a/frontend/src/app/components/filters/filter-date-time-value/filter-date-time-value.component.ts b/frontend/src/app/features/work-packages/components/filters/filter-date-time-value/filter-date-time-value.component.ts
similarity index 86%
rename from frontend/src/app/components/filters/filter-date-time-value/filter-date-time-value.component.ts
rename to frontend/src/app/features/work-packages/components/filters/filter-date-time-value/filter-date-time-value.component.ts
index b06f2a59c7c..a7666967a73 100644
--- a/frontend/src/app/components/filters/filter-date-time-value/filter-date-time-value.component.ts
+++ b/frontend/src/app/features/work-packages/components/filters/filter-date-time-value/filter-date-time-value.component.ts
@@ -27,14 +27,14 @@
//++
import { Component, Input, OnInit, Output } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { QueryFilterInstanceResource } from 'core-app/modules/hal/resources/query-filter-instance-resource';
-import { DebouncedEventEmitter } from 'core-components/angular/debounced-event-emitter';
-import { TimezoneService } from 'core-components/datetime/timezone.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { DebouncedEventEmitter } from 'core-app/shared/helpers/rxjs/debounced-event-emitter';
import { Moment } from 'moment';
import { AbstractDateTimeValueController } from '../abstract-filter-date-time-value/abstract-filter-date-time-value.controller';
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
@Component({
selector: 'filter-date-time-value',
diff --git a/frontend/src/app/components/filters/filter-date-times-value/filter-date-times-value.component.html b/frontend/src/app/features/work-packages/components/filters/filter-date-times-value/filter-date-times-value.component.html
similarity index 100%
rename from frontend/src/app/components/filters/filter-date-times-value/filter-date-times-value.component.html
rename to frontend/src/app/features/work-packages/components/filters/filter-date-times-value/filter-date-times-value.component.html
diff --git a/frontend/src/app/components/filters/filter-date-times-value/filter-date-times-value.component.ts b/frontend/src/app/features/work-packages/components/filters/filter-date-times-value/filter-date-times-value.component.ts
similarity index 87%
rename from frontend/src/app/components/filters/filter-date-times-value/filter-date-times-value.component.ts
rename to frontend/src/app/features/work-packages/components/filters/filter-date-times-value/filter-date-times-value.component.ts
index 75010d8eb00..6dfbfee4219 100644
--- a/frontend/src/app/components/filters/filter-date-times-value/filter-date-times-value.component.ts
+++ b/frontend/src/app/features/work-packages/components/filters/filter-date-times-value/filter-date-times-value.component.ts
@@ -26,15 +26,15 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { QueryFilterInstanceResource } from 'core-app/modules/hal/resources/query-filter-instance-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { Moment } from 'moment';
import { AbstractDateTimeValueController } from '../abstract-filter-date-time-value/abstract-filter-date-time-value.controller';
import { Component, Input, OnInit, Output } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { DebouncedEventEmitter } from 'core-components/angular/debounced-event-emitter';
-import { TimezoneService } from 'core-components/datetime/timezone.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { DebouncedEventEmitter } from 'core-app/shared/helpers/rxjs/debounced-event-emitter';
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
@Component({
selector: 'filter-date-times-value',
diff --git a/frontend/src/app/components/filters/filter-date-value/filter-date-value.component.html b/frontend/src/app/features/work-packages/components/filters/filter-date-value/filter-date-value.component.html
similarity index 100%
rename from frontend/src/app/components/filters/filter-date-value/filter-date-value.component.html
rename to frontend/src/app/features/work-packages/components/filters/filter-date-value/filter-date-value.component.html
diff --git a/frontend/src/app/components/filters/filter-date-value/filter-date-value.component.ts b/frontend/src/app/features/work-packages/components/filters/filter-date-value/filter-date-value.component.ts
similarity index 82%
rename from frontend/src/app/components/filters/filter-date-value/filter-date-value.component.ts
rename to frontend/src/app/features/work-packages/components/filters/filter-date-value/filter-date-value.component.ts
index c91a5bfef29..2e33910801c 100644
--- a/frontend/src/app/components/filters/filter-date-value/filter-date-value.component.ts
+++ b/frontend/src/app/features/work-packages/components/filters/filter-date-value/filter-date-value.component.ts
@@ -27,13 +27,13 @@
//++
import { Component, Input, Output } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { QueryFilterInstanceResource } from 'core-app/modules/hal/resources/query-filter-instance-resource';
-import { DebouncedEventEmitter } from 'core-components/angular/debounced-event-emitter';
-import { TimezoneService } from 'core-components/datetime/timezone.service';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { DebouncedEventEmitter } from 'core-app/shared/helpers/rxjs/debounced-event-emitter';
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
@Component({
selector: 'filter-date-value',
diff --git a/frontend/src/app/components/filters/filter-dates-value/filter-dates-value.component.html b/frontend/src/app/features/work-packages/components/filters/filter-dates-value/filter-dates-value.component.html
similarity index 100%
rename from frontend/src/app/components/filters/filter-dates-value/filter-dates-value.component.html
rename to frontend/src/app/features/work-packages/components/filters/filter-dates-value/filter-dates-value.component.html
diff --git a/frontend/src/app/components/filters/filter-dates-value/filter-dates-value.component.ts b/frontend/src/app/features/work-packages/components/filters/filter-dates-value/filter-dates-value.component.ts
similarity index 84%
rename from frontend/src/app/components/filters/filter-dates-value/filter-dates-value.component.ts
rename to frontend/src/app/features/work-packages/components/filters/filter-dates-value/filter-dates-value.component.ts
index fe403decd95..a23bf5169da 100644
--- a/frontend/src/app/components/filters/filter-dates-value/filter-dates-value.component.ts
+++ b/frontend/src/app/features/work-packages/components/filters/filter-dates-value/filter-dates-value.component.ts
@@ -26,15 +26,15 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { QueryFilterInstanceResource } from 'core-app/modules/hal/resources/query-filter-instance-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { Component, Input, Output } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { DebouncedEventEmitter } from 'core-components/angular/debounced-event-emitter';
-import { TimezoneService } from 'core-components/datetime/timezone.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { DebouncedEventEmitter } from 'core-app/shared/helpers/rxjs/debounced-event-emitter';
import * as moment from 'moment';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
@Component({
selector: 'filter-dates-value',
diff --git a/frontend/src/app/components/filters/filter-integer-value/filter-integer-value.component.html b/frontend/src/app/features/work-packages/components/filters/filter-integer-value/filter-integer-value.component.html
similarity index 100%
rename from frontend/src/app/components/filters/filter-integer-value/filter-integer-value.component.html
rename to frontend/src/app/features/work-packages/components/filters/filter-integer-value/filter-integer-value.component.html
diff --git a/frontend/src/app/components/filters/filter-integer-value/filter-integer-value.component.ts b/frontend/src/app/features/work-packages/components/filters/filter-integer-value/filter-integer-value.component.ts
similarity index 82%
rename from frontend/src/app/components/filters/filter-integer-value/filter-integer-value.component.ts
rename to frontend/src/app/features/work-packages/components/filters/filter-integer-value/filter-integer-value.component.ts
index de5a8f0622c..56e437ed1e7 100644
--- a/frontend/src/app/components/filters/filter-integer-value/filter-integer-value.component.ts
+++ b/frontend/src/app/features/work-packages/components/filters/filter-integer-value/filter-integer-value.component.ts
@@ -27,14 +27,14 @@
//++
-import { QueryFilterResource } from 'core-app/modules/hal/resources/query-filter-resource';
-import { QueryFilterInstanceResource } from 'core-app/modules/hal/resources/query-filter-instance-resource';
import { Component, Input, Output } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { DebouncedEventEmitter } from 'core-components/angular/debounced-event-emitter';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { DebouncedEventEmitter } from 'core-app/shared/helpers/rxjs/debounced-event-emitter';
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
+import { QueryFilterResource } from "core-app/features/hal/resources/query-filter-resource";
@Component({
selector: 'filter-integer-value',
diff --git a/frontend/src/app/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.html b/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.html
similarity index 100%
rename from frontend/src/app/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.html
rename to frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.html
diff --git a/frontend/src/app/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.ts b/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.ts
similarity index 73%
rename from frontend/src/app/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.ts
rename to frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.ts
index ae7148d6d28..5a596c679a2 100644
--- a/frontend/src/app/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.ts
+++ b/frontend/src/app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component.ts
@@ -1,23 +1,23 @@
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { QueryFilterInstanceResource } from 'core-app/modules/hal/resources/query-filter-instance-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { AngularTrackingHelpers } from 'core-components/angular/tracking-functions';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
-import { HalResourceSortingService } from 'core-app/modules/hal/services/hal-resource-sorting.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { AngularTrackingHelpers } from 'core-app/shared/helpers/angular/tracking-functions';
import { NgSelectComponent } from '@ng-select/ng-select';
-import { APIV3Service } from 'core-app/modules/apiv3/api-v3.service';
-import { DebouncedRequestSwitchmap, errorNotificationHandler } from 'core-app/helpers/rxjs/debounced-input-switchmap';
-import { ValueOption } from 'core-app/modules/fields/edit/field-types/select-edit-field/select-edit-field.component';
+import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';
+import { DebouncedRequestSwitchmap, errorNotificationHandler } from 'core-app/shared/helpers/rxjs/debounced-input-switchmap';
+import { ValueOption } from 'core-app/shared/components/fields/edit/field-types/select-edit-field/select-edit-field.component';
import { Observable } from 'rxjs';
-import { HalResourceNotificationService } from 'core-app/modules/hal/services/hal-resource-notification.service';
-import { CurrentProjectService } from 'core-app/components/projects/current-project.service';
-import { ApiV3FilterBuilder, FilterOperator } from 'core-app/components/api/api-v3/api-v3-filter-builder';
+import { CurrentProjectService } from 'core-app/core/current-project/current-project.service';
+import { ApiV3FilterBuilder } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';
import { map } from 'rxjs/operators';
-import { APIv3ResourceCollection } from 'core-app/modules/apiv3/paths/apiv3-resource';
-import { UntilDestroyedMixin } from 'core-app/helpers/angular/until-destroyed.mixin';
-import { CachableAPIV3Resource } from "core-app/modules/apiv3/cache/cachable-apiv3-resource";
+import { APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';
+import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';
+import { CachableAPIV3Resource } from "core-app/core/apiv3/cache/cachable-apiv3-resource";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { HalResourceSortingService } from "core-app/features/hal/services/hal-resource-sorting.service";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
@Component({
selector: 'filter-searchable-multiselect-value',
diff --git a/frontend/src/app/components/filters/filter-string-value/filter-string-value.component.html b/frontend/src/app/features/work-packages/components/filters/filter-string-value/filter-string-value.component.html
similarity index 100%
rename from frontend/src/app/components/filters/filter-string-value/filter-string-value.component.html
rename to frontend/src/app/features/work-packages/components/filters/filter-string-value/filter-string-value.component.html
diff --git a/frontend/src/app/components/filters/filter-string-value/filter-string-value.component.ts b/frontend/src/app/features/work-packages/components/filters/filter-string-value/filter-string-value.component.ts
similarity index 83%
rename from frontend/src/app/components/filters/filter-string-value/filter-string-value.component.ts
rename to frontend/src/app/features/work-packages/components/filters/filter-string-value/filter-string-value.component.ts
index 21799e3cad5..61c7214041b 100644
--- a/frontend/src/app/components/filters/filter-string-value/filter-string-value.component.ts
+++ b/frontend/src/app/features/work-packages/components/filters/filter-string-value/filter-string-value.component.ts
@@ -27,12 +27,12 @@
//++
import { Component, Input, Output } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { QueryFilterInstanceResource } from 'core-app/modules/hal/resources/query-filter-instance-resource';
-import { DebouncedEventEmitter } from 'core-components/angular/debounced-event-emitter';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { DebouncedEventEmitter } from 'core-app/shared/helpers/rxjs/debounced-event-emitter';
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
@Component({
selector: 'filter-string-value',
diff --git a/frontend/src/app/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.html b/frontend/src/app/features/work-packages/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.html
similarity index 100%
rename from frontend/src/app/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.html
rename to frontend/src/app/features/work-packages/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.html
diff --git a/frontend/src/app/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.ts b/frontend/src/app/features/work-packages/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.ts
similarity index 83%
rename from frontend/src/app/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.ts
rename to frontend/src/app/features/work-packages/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.ts
index 69105297f93..4a72a1c4871 100644
--- a/frontend/src/app/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.ts
+++ b/frontend/src/app/features/work-packages/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component.ts
@@ -26,11 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { UserResource } from 'core-app/modules/hal/resources/user-resource';
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
-import { RootResource } from 'core-app/modules/hal/resources/root-resource';
-import { QueryFilterInstanceResource } from 'core-app/modules/hal/resources/query-filter-instance-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { UserResource } from "core-app/features/hal/resources/user-resource";
import {
AfterViewInit,
ChangeDetectionStrategy,
@@ -42,14 +39,17 @@ import {
Output,
ViewChild
} from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { AngularTrackingHelpers } from 'core-components/angular/tracking-functions';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
-import { HalResourceSortingService } from "core-app/modules/hal/services/hal-resource-sorting.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { AngularTrackingHelpers } from 'core-app/shared/helpers/angular/tracking-functions';
+import { HalResourceSortingService } from "core-app/features/hal/services/hal-resource-sorting.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
import { NgSelectComponent } from "@ng-select/ng-select";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { CurrentUserService } from "core-app/modules/current-user/current-user.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { CurrentUserService } from "core-app/core/current-user/current-user.service";
+import { RootResource } from "core-app/features/hal/resources/root-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
@Component({
selector: 'filter-toggled-multiselect-value',
diff --git a/frontend/src/app/components/filters/query-filter/query-filter.component.html b/frontend/src/app/features/work-packages/components/filters/query-filter/query-filter.component.html
similarity index 100%
rename from frontend/src/app/components/filters/query-filter/query-filter.component.html
rename to frontend/src/app/features/work-packages/components/filters/query-filter/query-filter.component.html
diff --git a/frontend/src/app/components/filters/query-filter/query-filter.component.ts b/frontend/src/app/features/work-packages/components/filters/query-filter/query-filter.component.ts
similarity index 82%
rename from frontend/src/app/components/filters/query-filter/query-filter.component.ts
rename to frontend/src/app/features/work-packages/components/filters/query-filter/query-filter.component.ts
index 3d86bbfed24..63dcea48a23 100644
--- a/frontend/src/app/components/filters/query-filter/query-filter.component.ts
+++ b/frontend/src/app/features/work-packages/components/filters/query-filter/query-filter.component.ts
@@ -27,14 +27,14 @@
//++
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { QueryFilterResource } from 'core-app/modules/hal/resources/query-filter-resource';
-import { AngularTrackingHelpers } from 'core-components/angular/tracking-functions';
-import { QueryFilterInstanceResource } from "core-app/modules/hal/resources/query-filter-instance-resource";
-import { BannersService } from "core-app/modules/common/enterprise/banners.service";
-import { WorkPackageViewFiltersService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { CurrentProjectService } from 'core-app/components/projects/current-project.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { AngularTrackingHelpers } from 'core-app/shared/helpers/angular/tracking-functions';
+import { BannersService } from "core-app/core/enterprise/banners.service";
+import { WorkPackageViewFiltersService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { CurrentProjectService } from 'core-app/core/current-project/current-project.service';
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
+import { QueryFilterResource } from "core-app/features/hal/resources/query-filter-resource";
@Component({
selector: '[query-filter]',
diff --git a/frontend/src/app/components/filters/query-filters/query-filters.component.html b/frontend/src/app/features/work-packages/components/filters/query-filters/query-filters.component.html
similarity index 100%
rename from frontend/src/app/components/filters/query-filters/query-filters.component.html
rename to frontend/src/app/features/work-packages/components/filters/query-filters/query-filters.component.html
diff --git a/frontend/src/app/components/filters/query-filters/query-filters.component.ts b/frontend/src/app/features/work-packages/components/filters/query-filters/query-filters.component.ts
similarity index 86%
rename from frontend/src/app/components/filters/query-filters/query-filters.component.ts
rename to frontend/src/app/features/work-packages/components/filters/query-filters/query-filters.component.ts
index c9cee878e1e..4a02fb389e2 100644
--- a/frontend/src/app/components/filters/query-filters/query-filters.component.ts
+++ b/frontend/src/app/features/work-packages/components/filters/query-filters/query-filters.component.ts
@@ -27,17 +27,17 @@
//++
import { ChangeDetectionStrategy, Component, Input, OnChanges, OnInit, Output, ViewChild } from '@angular/core';
-import { QueryFilterInstanceResource } from 'core-app/modules/hal/resources/query-filter-instance-resource';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { QueryFilterResource } from 'core-app/modules/hal/resources/query-filter-resource';
-import { DebouncedEventEmitter } from 'core-components/angular/debounced-event-emitter';
-import { AngularTrackingHelpers } from "core-components/angular/tracking-functions";
-import { BannersService } from "core-app/modules/common/enterprise/banners.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { DebouncedEventEmitter } from 'core-app/shared/helpers/rxjs/debounced-event-emitter';
+import { AngularTrackingHelpers } from "core-app/shared/helpers/angular/tracking-functions";
+import { BannersService } from "core-app/core/enterprise/banners.service";
import { NgSelectComponent } from "@ng-select/ng-select";
-import { WorkPackageViewFiltersService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service";
-import { WorkPackageFiltersService } from "core-components/filters/wp-filters/wp-filters.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { WorkPackageViewFiltersService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service";
+import { WorkPackageFiltersService } from "core-app/features/work-packages/components/filters/wp-filters/wp-filters.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
+import { QueryFilterResource } from "core-app/features/hal/resources/query-filter-resource";
const ADD_FILTER_SELECT_INDEX = -1;
diff --git a/frontend/src/app/components/filters/quick-filter-by-text-input/quick-filter-by-text-input.component.ts b/frontend/src/app/features/work-packages/components/filters/quick-filter-by-text-input/quick-filter-by-text-input.component.ts
similarity index 86%
rename from frontend/src/app/components/filters/quick-filter-by-text-input/quick-filter-by-text-input.component.ts
rename to frontend/src/app/features/work-packages/components/filters/quick-filter-by-text-input/quick-filter-by-text-input.component.ts
index 3cb8b2783e5..52e4797b018 100644
--- a/frontend/src/app/components/filters/quick-filter-by-text-input/quick-filter-by-text-input.component.ts
+++ b/frontend/src/app/features/work-packages/components/filters/quick-filter-by-text-input/quick-filter-by-text-input.component.ts
@@ -27,15 +27,15 @@
//++
import { Component, EventEmitter, Output } from '@angular/core';
-import { I18nService } from "app/modules/common/i18n/i18n.service";
-import { WorkPackageViewFiltersService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { WorkPackageViewFiltersService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service";
import { Subject } from "rxjs";
import { debounceTime, distinctUntilChanged, map, tap } from "rxjs/operators";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { input } from "reactivestates";
-import { QueryFilterResource } from "core-app/modules/hal/resources/query-filter-resource";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { QueryFilterResource } from "core-app/features/hal/resources/query-filter-resource";
@Component({
selector: 'wp-filter-by-text-input',
diff --git a/frontend/src/app/components/filters/quick-filter-by-text-input/quick-filter-by-text-input.html b/frontend/src/app/features/work-packages/components/filters/quick-filter-by-text-input/quick-filter-by-text-input.html
similarity index 100%
rename from frontend/src/app/components/filters/quick-filter-by-text-input/quick-filter-by-text-input.html
rename to frontend/src/app/features/work-packages/components/filters/quick-filter-by-text-input/quick-filter-by-text-input.html
diff --git a/frontend/src/app/components/filters/wp-filters/wp-filters.service.ts b/frontend/src/app/features/work-packages/components/filters/wp-filters/wp-filters.service.ts
similarity index 100%
rename from frontend/src/app/components/filters/wp-filters/wp-filters.service.ts
rename to frontend/src/app/features/work-packages/components/filters/wp-filters/wp-filters.service.ts
diff --git a/frontend/src/app/components/work-packages/work-package-comment/work-package-comment-field-handler.ts b/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment-field-handler.ts
similarity index 83%
rename from frontend/src/app/components/work-packages/work-package-comment/work-package-comment-field-handler.ts
rename to frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment-field-handler.ts
index b39e9c24d2f..960a704d2c9 100644
--- a/frontend/src/app/components/work-packages/work-package-comment/work-package-comment-field-handler.ts
+++ b/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment-field-handler.ts
@@ -1,9 +1,9 @@
-import { EditFieldHandler } from "core-app/modules/fields/edit/editing-portal/edit-field-handler";
+import { EditFieldHandler } from "core-app/shared/components/fields/edit/editing-portal/edit-field-handler";
import { ElementRef, Injector, OnInit, Directive } from "@angular/core";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { IFieldSchema } from "core-app/modules/fields/field.base";
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
import { Subject } from "rxjs";
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
@Directive()
export abstract class WorkPackageCommentFieldHandler extends EditFieldHandler implements OnInit {
diff --git a/frontend/src/app/components/work-packages/work-package-comment/work-package-comment.component.html b/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.html
similarity index 100%
rename from frontend/src/app/components/work-packages/work-package-comment/work-package-comment.component.html
rename to frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.html
diff --git a/frontend/src/app/components/work-packages/work-package-comment/work-package-comment.component.ts b/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.ts
similarity index 82%
rename from frontend/src/app/components/work-packages/work-package-comment/work-package-comment.component.ts
rename to frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.ts
index 4c53a55a16e..8aee98b490c 100644
--- a/frontend/src/app/components/work-packages/work-package-comment/work-package-comment.component.ts
+++ b/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.ts
@@ -26,11 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { ErrorResource } from 'core-app/modules/hal/resources/error-resource';
-import { WorkPackagesActivityService } from 'core-components/wp-single-view-tabs/activity-panel/wp-activity.service';
-import { LoadingIndicatorService } from "core-app/modules/common/loading-indicator/loading-indicator.service";
-import { CommentService } from "core-components/wp-activity/comment-service";
+import { LoadingIndicatorService } from "core-app/core/loading-indicator/loading-indicator.service";
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
@@ -44,13 +40,16 @@ import {
TemplateRef,
ViewChild
} from "@angular/core";
-import { ConfigurationService } from "core-app/modules/common/config/configuration.service";
-
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { WorkPackageCommentFieldHandler } from "core-components/work-packages/work-package-comment/work-package-comment-field-handler";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { ConfigurationService } from "core-app/core/config/configuration.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { WorkPackageCommentFieldHandler } from "core-app/features/work-packages/components/work-package-comment/work-package-comment-field-handler";
+import { CommentService } from "core-app/features/work-packages/components/wp-activity/comment-service";
+import { WorkPackagesActivityService } from "core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { ErrorResource } from "core-app/features/hal/resources/error-resource";
@Component({
selector: 'work-package-comment',
diff --git a/frontend/src/app/components/work-packages/work-package-comment/wp-comment-field.component.ts b/frontend/src/app/features/work-packages/components/work-package-comment/wp-comment-field.component.ts
similarity index 79%
rename from frontend/src/app/components/work-packages/work-package-comment/wp-comment-field.component.ts
rename to frontend/src/app/features/work-packages/components/work-package-comment/wp-comment-field.component.ts
index 81aedc9a32a..186f4406125 100644
--- a/frontend/src/app/components/work-packages/work-package-comment/wp-comment-field.component.ts
+++ b/frontend/src/app/features/work-packages/components/work-package-comment/wp-comment-field.component.ts
@@ -26,15 +26,15 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
import { Component, OnInit } from "@angular/core";
import {
FormattableEditFieldComponent,
-} from "core-app/modules/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+} from "core-app/shared/components/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
@Component({
- templateUrl: "../../../modules/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component.html"
+ templateUrl: "../../../../shared/components/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component.html",
})
export class WorkPackageCommentFieldComponent extends FormattableEditFieldComponent implements OnInit {
public isBusy = false;
diff --git a/frontend/src/app/components/wp-activity/activity-entry.component.html b/frontend/src/app/features/work-packages/components/wp-activity/activity-entry.component.html
similarity index 100%
rename from frontend/src/app/components/wp-activity/activity-entry.component.html
rename to frontend/src/app/features/work-packages/components/wp-activity/activity-entry.component.html
diff --git a/frontend/src/app/components/wp-activity/activity-entry.component.ts b/frontend/src/app/features/work-packages/components/wp-activity/activity-entry.component.ts
similarity index 87%
rename from frontend/src/app/components/wp-activity/activity-entry.component.ts
rename to frontend/src/app/features/work-packages/components/wp-activity/activity-entry.component.ts
index 8108fb69e29..a48936246bd 100644
--- a/frontend/src/app/components/wp-activity/activity-entry.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-activity/activity-entry.component.ts
@@ -27,9 +27,9 @@
//++
import { Component, Input, OnInit } from "@angular/core";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Component({
diff --git a/frontend/src/app/components/wp-activity/activity-link.component.ts b/frontend/src/app/features/work-packages/components/wp-activity/activity-link.component.ts
similarity index 90%
rename from frontend/src/app/components/wp-activity/activity-link.component.ts
rename to frontend/src/app/features/work-packages/components/wp-activity/activity-link.component.ts
index c7f31b6bfe9..2d04b9fdb6d 100644
--- a/frontend/src/app/components/wp-activity/activity-link.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-activity/activity-link.component.ts
@@ -1,5 +1,5 @@
import { Component, Input, OnInit } from "@angular/core";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
@Component({
selector: 'activity-link',
@@ -36,4 +36,4 @@ function activityLink() {
scope.activityHtmlId = 'activity-' + scope.activityNo;
}
};
-}
+}
\ No newline at end of file
diff --git a/frontend/src/app/components/wp-activity/comment-service.ts b/frontend/src/app/features/work-packages/components/wp-activity/comment-service.ts
similarity index 85%
rename from frontend/src/app/components/wp-activity/comment-service.ts
rename to frontend/src/app/features/work-packages/components/wp-activity/comment-service.ts
index 548473590db..d4cdc02baf1 100644
--- a/frontend/src/app/components/wp-activity/comment-service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-activity/comment-service.ts
@@ -27,12 +27,12 @@
//++
import { Injectable } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { NotificationsService } from 'core-app/modules/common/notifications/notifications.service';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { NotificationsService } from 'core-app/shared/components/notifications/notifications.service';
import { Subject } from "rxjs";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
@Injectable()
export class CommentService {
diff --git a/frontend/src/app/components/wp-activity/revision/revision-activity.component.html b/frontend/src/app/features/work-packages/components/wp-activity/revision/revision-activity.component.html
similarity index 100%
rename from frontend/src/app/components/wp-activity/revision/revision-activity.component.html
rename to frontend/src/app/features/work-packages/components/wp-activity/revision/revision-activity.component.html
diff --git a/frontend/src/app/components/wp-activity/revision/revision-activity.component.ts b/frontend/src/app/features/work-packages/components/wp-activity/revision/revision-activity.component.ts
similarity index 88%
rename from frontend/src/app/components/wp-activity/revision/revision-activity.component.ts
rename to frontend/src/app/features/work-packages/components/wp-activity/revision/revision-activity.component.ts
index db46390133b..ea85c3bdd8d 100644
--- a/frontend/src/app/components/wp-activity/revision/revision-activity.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-activity/revision/revision-activity.component.ts
@@ -26,13 +26,12 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnInit } from "@angular/core";
-
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { UserResource } from "core-app/modules/hal/resources/user-resource";
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
-import { TimezoneService } from "core-components/datetime/timezone.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
+import { UserResource } from "core-app/features/hal/resources/user-resource";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
@Component({
selector: 'revision-activity',
diff --git a/frontend/src/app/components/wp-activity/user/user-activity.component.html b/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.html
similarity index 100%
rename from frontend/src/app/components/wp-activity/user/user-activity.component.html
rename to frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.html
diff --git a/frontend/src/app/components/wp-activity/user/user-activity.component.sass b/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.sass
similarity index 100%
rename from frontend/src/app/components/wp-activity/user/user-activity.component.sass
rename to frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.sass
diff --git a/frontend/src/app/components/wp-activity/user/user-activity.component.ts b/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.ts
similarity index 87%
rename from frontend/src/app/components/wp-activity/user/user-activity.component.ts
rename to frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.ts
index 0b3f7d0f4ac..0dd09ae0751 100644
--- a/frontend/src/app/components/wp-activity/user/user-activity.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-activity/user/user-activity.component.ts
@@ -26,11 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { UserResource } from 'core-app/modules/hal/resources/user-resource';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { WorkPackagesActivityService } from 'core-components/wp-single-view-tabs/activity-panel/wp-activity.service';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
import {
ApplicationRef,
ChangeDetectionStrategy,
@@ -41,12 +38,15 @@ import {
Input, NgZone,
OnInit
} from "@angular/core";
-import { CommentService } from "core-components/wp-activity/comment-service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { WorkPackageCommentFieldHandler } from "core-components/work-packages/work-package-comment/work-package-comment-field-handler";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { WorkPackageCommentFieldHandler } from "core-app/features/work-packages/components/work-package-comment/work-package-comment-field-handler";
+import { WorkPackagesActivityService } from "core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service";
+import { CommentService } from "core-app/features/work-packages/components/wp-activity/comment-service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { UserResource } from "core-app/features/hal/resources/user-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
@Component({
selector: 'user-activity',
diff --git a/frontend/src/app/components/work-packages/wp-breadcrumb/wp-breadcrumb-parent.component.ts b/frontend/src/app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb-parent.component.ts
similarity index 87%
rename from frontend/src/app/components/work-packages/wp-breadcrumb/wp-breadcrumb-parent.component.ts
rename to frontend/src/app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb-parent.component.ts
index 1089e3a1588..b12c2ec3556 100644
--- a/frontend/src/app/components/work-packages/wp-breadcrumb/wp-breadcrumb-parent.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb-parent.component.ts
@@ -27,10 +27,10 @@
//++
import { Component, Input, EventEmitter, Output } from '@angular/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { WorkPackageRelationsHierarchyService } from 'core-app/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { WorkPackageRelationsHierarchyService } from 'core-app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
@Component({
templateUrl: './wp-breadcrumb-parent.html',
diff --git a/frontend/src/app/components/work-packages/wp-breadcrumb/wp-breadcrumb-parent.html b/frontend/src/app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb-parent.html
similarity index 100%
rename from frontend/src/app/components/work-packages/wp-breadcrumb/wp-breadcrumb-parent.html
rename to frontend/src/app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb-parent.html
diff --git a/frontend/src/app/components/work-packages/wp-breadcrumb/wp-breadcrumb.component.ts b/frontend/src/app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb.component.ts
similarity index 92%
rename from frontend/src/app/components/work-packages/wp-breadcrumb/wp-breadcrumb.component.ts
rename to frontend/src/app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb.component.ts
index 360d6e485bb..26121278aeb 100644
--- a/frontend/src/app/components/work-packages/wp-breadcrumb/wp-breadcrumb.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb.component.ts
@@ -27,8 +27,8 @@
//++
import { Component, Input } from '@angular/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
@Component({
templateUrl: './wp-breadcrumb.html',
diff --git a/frontend/src/app/components/work-packages/wp-breadcrumb/wp-breadcrumb.html b/frontend/src/app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb.html
similarity index 100%
rename from frontend/src/app/components/work-packages/wp-breadcrumb/wp-breadcrumb.html
rename to frontend/src/app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb.html
diff --git a/frontend/src/app/components/work-packages/wp-breadcrumb/wp-breadcrumb.sass b/frontend/src/app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb.sass
similarity index 100%
rename from frontend/src/app/components/work-packages/wp-breadcrumb/wp-breadcrumb.sass
rename to frontend/src/app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb.sass
diff --git a/frontend/src/app/components/wp-buttons/wp-button.template.html b/frontend/src/app/features/work-packages/components/wp-buttons/wp-button.template.html
similarity index 100%
rename from frontend/src/app/components/wp-buttons/wp-button.template.html
rename to frontend/src/app/features/work-packages/components/wp-buttons/wp-button.template.html
diff --git a/frontend/src/app/components/wp-buttons/wp-buttons.module.ts b/frontend/src/app/features/work-packages/components/wp-buttons/wp-buttons.module.ts
similarity index 94%
rename from frontend/src/app/components/wp-buttons/wp-buttons.module.ts
rename to frontend/src/app/features/work-packages/components/wp-buttons/wp-buttons.module.ts
index 1029c18bb0a..845069c0897 100644
--- a/frontend/src/app/components/wp-buttons/wp-buttons.module.ts
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-buttons.module.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
export interface ButtonControllerText {
activate:string;
diff --git a/frontend/src/app/components/wp-buttons/wp-create-button/wp-create-button.component.ts b/frontend/src/app/features/work-packages/components/wp-buttons/wp-create-button/wp-create-button.component.ts
similarity index 90%
rename from frontend/src/app/components/wp-buttons/wp-create-button/wp-create-button.component.ts
rename to frontend/src/app/features/work-packages/components/wp-buttons/wp-create-button/wp-create-button.component.ts
index 521ab0f2d34..2f4ed091417 100644
--- a/frontend/src/app/components/wp-buttons/wp-create-button/wp-create-button.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-create-button/wp-create-button.component.ts
@@ -28,12 +28,12 @@
import { StateService, TransitionService } from '@uirouter/core';
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnDestroy, OnInit } from '@angular/core';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { AuthorisationService } from "core-app/modules/common/model-auth/model-auth.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { AuthorisationService } from "core-app/core/model-auth/model-auth.service";
import { Observable } from "rxjs";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
@Component({
selector: 'wp-create-button',
diff --git a/frontend/src/app/components/wp-buttons/wp-create-button/wp-create-button.html b/frontend/src/app/features/work-packages/components/wp-buttons/wp-create-button/wp-create-button.html
similarity index 100%
rename from frontend/src/app/components/wp-buttons/wp-create-button/wp-create-button.html
rename to frontend/src/app/features/work-packages/components/wp-buttons/wp-create-button/wp-create-button.html
diff --git a/frontend/src/app/components/wp-buttons/wp-details-view-button/wp-details-view-button.component.ts b/frontend/src/app/features/work-packages/components/wp-buttons/wp-details-view-button/wp-details-view-button.component.ts
similarity index 89%
rename from frontend/src/app/components/wp-buttons/wp-details-view-button/wp-details-view-button.component.ts
rename to frontend/src/app/features/work-packages/components/wp-buttons/wp-details-view-button/wp-details-view-button.component.ts
index ebaedf4f4b7..38bc5e88dcd 100644
--- a/frontend/src/app/components/wp-buttons/wp-details-view-button/wp-details-view-button.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-details-view-button/wp-details-view-button.component.ts
@@ -27,12 +27,12 @@
//++
import { KeepTabService } from '../../wp-single-view-tabs/keep-tab/keep-tab.service';
-import { States } from '../../states.service';
-import { WorkPackageViewFocusService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service';
+import { WorkPackageViewFocusService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service';
import { StateService, TransitionService } from '@uirouter/core';
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy } from '@angular/core';
-import { AbstractWorkPackageButtonComponent } from 'core-components/wp-buttons/wp-buttons.module';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { AbstractWorkPackageButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-buttons.module';
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { States } from "core-app/core/states/states.service";
@Component({
templateUrl: '../wp-button.template.html',
diff --git a/frontend/src/app/components/wp-buttons/wp-filter-button/wp-filter-button.component.ts b/frontend/src/app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.component.ts
similarity index 86%
rename from frontend/src/app/components/wp-buttons/wp-filter-button/wp-filter-button.component.ts
rename to frontend/src/app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.component.ts
index 0a900a76036..e25dc5583a2 100644
--- a/frontend/src/app/components/wp-buttons/wp-filter-button/wp-filter-button.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.component.ts
@@ -26,12 +26,12 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { AbstractWorkPackageButtonComponent } from 'core-components/wp-buttons/wp-buttons.module';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { AbstractWorkPackageButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-buttons.module';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit } from '@angular/core';
-import { WorkPackageFiltersService } from 'core-components/filters/wp-filters/wp-filters.service';
-import { WorkPackageViewFiltersService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service";
+import { WorkPackageViewFiltersService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service";
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
+import { WorkPackageFiltersService } from "core-app/features/work-packages/components/filters/wp-filters/wp-filters.service";
@Component({
selector: 'wp-filter-button',
diff --git a/frontend/src/app/components/wp-buttons/wp-filter-button/wp-filter-button.html b/frontend/src/app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.html
similarity index 100%
rename from frontend/src/app/components/wp-buttons/wp-filter-button/wp-filter-button.html
rename to frontend/src/app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.html
diff --git a/frontend/src/app/components/wp-buttons/wp-fold-toggle-button/wp-fold-toggle-button.component.ts b/frontend/src/app/features/work-packages/components/wp-buttons/wp-fold-toggle-button/wp-fold-toggle-button.component.ts
similarity index 96%
rename from frontend/src/app/components/wp-buttons/wp-fold-toggle-button/wp-fold-toggle-button.component.ts
rename to frontend/src/app/features/work-packages/components/wp-buttons/wp-fold-toggle-button/wp-fold-toggle-button.component.ts
index bc0d642b493..d7f7af01cd6 100644
--- a/frontend/src/app/components/wp-buttons/wp-fold-toggle-button/wp-fold-toggle-button.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-fold-toggle-button/wp-fold-toggle-button.component.ts
@@ -27,7 +27,7 @@
//++
import { ChangeDetectionStrategy, Component } from '@angular/core';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Component({
template: `
diff --git a/frontend/src/app/components/wp-buttons/wp-settings-button/wp-settings-button.component.html b/frontend/src/app/features/work-packages/components/wp-buttons/wp-settings-button/wp-settings-button.component.html
similarity index 100%
rename from frontend/src/app/components/wp-buttons/wp-settings-button/wp-settings-button.component.html
rename to frontend/src/app/features/work-packages/components/wp-buttons/wp-settings-button/wp-settings-button.component.html
diff --git a/frontend/src/app/components/wp-buttons/wp-settings-button/wp-settings-button.component.ts b/frontend/src/app/features/work-packages/components/wp-buttons/wp-settings-button/wp-settings-button.component.ts
similarity index 95%
rename from frontend/src/app/components/wp-buttons/wp-settings-button/wp-settings-button.component.ts
rename to frontend/src/app/features/work-packages/components/wp-buttons/wp-settings-button/wp-settings-button.component.ts
index a0b67686e2e..379c6b85c4b 100644
--- a/frontend/src/app/components/wp-buttons/wp-settings-button/wp-settings-button.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-settings-button/wp-settings-button.component.ts
@@ -27,7 +27,7 @@
//++
import { ChangeDetectionStrategy, Component } from '@angular/core';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Component({
templateUrl: './wp-settings-button.component.html',
diff --git a/frontend/src/app/components/wp-buttons/wp-status-button/wp-status-button.component.sass b/frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.sass
similarity index 100%
rename from frontend/src/app/components/wp-buttons/wp-status-button/wp-status-button.component.sass
rename to frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.sass
diff --git a/frontend/src/app/components/wp-buttons/wp-status-button/wp-status-button.component.ts b/frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.ts
similarity index 82%
rename from frontend/src/app/components/wp-buttons/wp-status-button/wp-status-button.component.ts
rename to frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.ts
index 728d95716c7..f40c9709b52 100644
--- a/frontend/src/app/components/wp-buttons/wp-status-button/wp-status-button.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component.ts
@@ -26,16 +26,15 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
import { ChangeDetectorRef, Component, Input, OnInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { Highlighting } from "core-components/wp-fast-table/builders/highlighting/highlighting.functions";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { ISchemaProxy } from "core-app/modules/hal/schemas/schema-proxy";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { Highlighting } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting.functions";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { ISchemaProxy } from "core-app/features/hal/schemas/schema-proxy";
@Component({
selector: 'wp-status-button',
diff --git a/frontend/src/app/components/wp-buttons/wp-status-button/wp-status-button.html b/frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.html
similarity index 100%
rename from frontend/src/app/components/wp-buttons/wp-status-button/wp-status-button.html
rename to frontend/src/app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.html
diff --git a/frontend/src/app/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.component.ts b/frontend/src/app/features/work-packages/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.component.ts
similarity index 93%
rename from frontend/src/app/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.component.ts
rename to frontend/src/app/features/work-packages/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.component.ts
index 1038eda1fea..a57d1ef0731 100644
--- a/frontend/src/app/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.component.ts
@@ -28,9 +28,9 @@
import { AbstractWorkPackageButtonComponent, ButtonControllerText } from '../wp-buttons.module';
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { TimelineZoomLevel } from 'core-app/modules/hal/resources/query-resource';
-import { WorkPackageViewTimelineService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageViewTimelineService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service";
+import { TimelineZoomLevel } from "core-app/features/hal/resources/query-resource";
export interface TimelineButtonText extends ButtonControllerText {
zoomOut:string;
diff --git a/frontend/src/app/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.html b/frontend/src/app/features/work-packages/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.html
similarity index 100%
rename from frontend/src/app/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.html
rename to frontend/src/app/features/work-packages/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.html
diff --git a/frontend/src/app/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.sass b/frontend/src/app/features/work-packages/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.sass
similarity index 100%
rename from frontend/src/app/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.sass
rename to frontend/src/app/features/work-packages/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.sass
diff --git a/frontend/src/app/components/wp-buttons/wp-view-toggle-button/work-package-view-toggle-button.component.ts b/frontend/src/app/features/work-packages/components/wp-buttons/wp-view-toggle-button/work-package-view-toggle-button.component.ts
similarity index 88%
rename from frontend/src/app/components/wp-buttons/wp-view-toggle-button/work-package-view-toggle-button.component.ts
rename to frontend/src/app/features/work-packages/components/wp-buttons/wp-view-toggle-button/work-package-view-toggle-button.component.ts
index 34906e93811..6579dcca57e 100644
--- a/frontend/src/app/components/wp-buttons/wp-view-toggle-button/work-package-view-toggle-button.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-view-toggle-button/work-package-view-toggle-button.component.ts
@@ -27,15 +27,15 @@
//++
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
import {
WorkPackageViewDisplayRepresentationService,
wpDisplayCardRepresentation,
wpDisplayListRepresentation
-} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
-import { WorkPackageViewTimelineService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service";
+} from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
+import { WorkPackageViewTimelineService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service";
import { combineLatest } from "rxjs";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
@Component({
diff --git a/frontend/src/app/components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component.ts b/frontend/src/app/features/work-packages/components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component.ts
similarity index 97%
rename from frontend/src/app/components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component.ts
rename to frontend/src/app/features/work-packages/components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component.ts
index d61d6a8a05b..9316dbfc4c7 100644
--- a/frontend/src/app/components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component.ts
@@ -28,7 +28,7 @@
import { AbstractWorkPackageButtonComponent } from '../wp-buttons.module';
import { ChangeDetectionStrategy, ChangeDetectorRef, Component } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
import * as sfimport from "screenfull";
import { Screenfull } from "screenfull";
diff --git a/frontend/src/app/components/wp-card-view/event-handler/card-view-handler-registry.ts b/frontend/src/app/features/work-packages/components/wp-card-view/event-handler/card-view-handler-registry.ts
similarity index 51%
rename from frontend/src/app/components/wp-card-view/event-handler/card-view-handler-registry.ts
rename to frontend/src/app/features/work-packages/components/wp-card-view/event-handler/card-view-handler-registry.ts
index 6f4624ca169..41f7f21f057 100644
--- a/frontend/src/app/components/wp-card-view/event-handler/card-view-handler-registry.ts
+++ b/frontend/src/app/features/work-packages/components/wp-card-view/event-handler/card-view-handler-registry.ts
@@ -1,11 +1,11 @@
-import { WorkPackageCardViewComponent } from "core-components/wp-card-view/wp-card-view.component";
-import { CardClickHandler } from "core-components/wp-card-view/event-handler/click-handler";
-import { CardDblClickHandler } from "core-components/wp-card-view/event-handler/double-click-handler";
-import { CardRightClickHandler } from "core-components/wp-card-view/event-handler/right-click-handler";
+import { WorkPackageCardViewComponent } from "core-app/features/work-packages/components/wp-card-view/wp-card-view.component";
+import { CardClickHandler } from "core-app/features/work-packages/components/wp-card-view/event-handler/click-handler";
+import { CardDblClickHandler } from "core-app/features/work-packages/components/wp-card-view/event-handler/double-click-handler";
+import { CardRightClickHandler } from "core-app/features/work-packages/components/wp-card-view/event-handler/right-click-handler";
import {
WorkPackageViewEventHandler,
WorkPackageViewHandlerRegistry
-} from "core-app/modules/work_packages/routing/wp-view-base/event-handling/event-handler-registry";
+} from "core-app/features/work-packages/routing/wp-view-base/event-handling/event-handler-registry";
export type CardEventHandler = WorkPackageViewEventHandler<WorkPackageCardViewComponent>;
diff --git a/frontend/src/app/components/wp-card-view/event-handler/click-handler.ts b/frontend/src/app/features/work-packages/components/wp-card-view/event-handler/click-handler.ts
similarity index 75%
rename from frontend/src/app/components/wp-card-view/event-handler/click-handler.ts
rename to frontend/src/app/features/work-packages/components/wp-card-view/event-handler/click-handler.ts
index ba5b1782ff1..06bb4cf294b 100644
--- a/frontend/src/app/components/wp-card-view/event-handler/click-handler.ts
+++ b/frontend/src/app/features/work-packages/components/wp-card-view/event-handler/click-handler.ts
@@ -1,12 +1,12 @@
import { Injector } from '@angular/core';
-import { CardEventHandler } from "core-components/wp-card-view/event-handler/card-view-handler-registry";
-import { WorkPackageCardViewComponent } from "core-components/wp-card-view/wp-card-view.component";
-import { WorkPackageViewSelectionService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
-import { WorkPackageViewFocusService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service";
-import { WorkPackageCardViewService } from "core-components/wp-card-view/services/wp-card-view.service";
+import { CardEventHandler } from "core-app/features/work-packages/components/wp-card-view/event-handler/card-view-handler-registry";
+import { WorkPackageCardViewComponent } from "core-app/features/work-packages/components/wp-card-view/wp-card-view.component";
+import { WorkPackageViewSelectionService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { WorkPackageViewFocusService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service";
+import { WorkPackageCardViewService } from "core-app/features/work-packages/components/wp-card-view/services/wp-card-view.service";
import { StateService } from "@uirouter/core";
-import { DeviceService } from "core-app/modules/common/browser/device.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { DeviceService } from "core-app/core/browser/device.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class CardClickHandler implements CardEventHandler {
diff --git a/frontend/src/app/components/wp-card-view/event-handler/double-click-handler.ts b/frontend/src/app/features/work-packages/components/wp-card-view/event-handler/double-click-handler.ts
similarity index 68%
rename from frontend/src/app/components/wp-card-view/event-handler/double-click-handler.ts
rename to frontend/src/app/features/work-packages/components/wp-card-view/event-handler/double-click-handler.ts
index 12797a279ec..3dafd7227fb 100644
--- a/frontend/src/app/components/wp-card-view/event-handler/double-click-handler.ts
+++ b/frontend/src/app/features/work-packages/components/wp-card-view/event-handler/double-click-handler.ts
@@ -1,9 +1,9 @@
import { Injector } from '@angular/core';
-import { CardEventHandler } from "core-components/wp-card-view/event-handler/card-view-handler-registry";
-import { WorkPackageCardViewComponent } from "core-components/wp-card-view/wp-card-view.component";
-import { WorkPackageViewSelectionService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { CardEventHandler } from "core-app/features/work-packages/components/wp-card-view/event-handler/card-view-handler-registry";
+import { WorkPackageCardViewComponent } from "core-app/features/work-packages/components/wp-card-view/wp-card-view.component";
+import { WorkPackageViewSelectionService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
import { StateService } from "@uirouter/core";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class CardDblClickHandler implements CardEventHandler {
@InjectField() $state:StateService;
diff --git a/frontend/src/app/components/wp-card-view/event-handler/right-click-handler.ts b/frontend/src/app/features/work-packages/components/wp-card-view/event-handler/right-click-handler.ts
similarity index 61%
rename from frontend/src/app/components/wp-card-view/event-handler/right-click-handler.ts
rename to frontend/src/app/features/work-packages/components/wp-card-view/event-handler/right-click-handler.ts
index ea4589c1152..1709722e55c 100644
--- a/frontend/src/app/components/wp-card-view/event-handler/right-click-handler.ts
+++ b/frontend/src/app/features/work-packages/components/wp-card-view/event-handler/right-click-handler.ts
@@ -1,13 +1,13 @@
import { Injector } from '@angular/core';
-import { CardEventHandler } from "core-components/wp-card-view/event-handler/card-view-handler-registry";
-import { WorkPackageCardViewComponent } from "core-components/wp-card-view/wp-card-view.component";
-import { WorkPackageViewSelectionService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
-import { uiStateLinkClass } from "core-components/wp-fast-table/builders/ui-state-link-builder";
-import { debugLog } from "core-app/helpers/debug_output";
-import { WorkPackageCardViewService } from "core-components/wp-card-view/services/wp-card-view.service";
-import { OPContextMenuService } from "core-components/op-context-menu/op-context-menu.service";
-import { WorkPackageViewContextMenu } from "core-components/op-context-menu/wp-context-menu/wp-view-context-menu.directive";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { CardEventHandler } from "core-app/features/work-packages/components/wp-card-view/event-handler/card-view-handler-registry";
+import { WorkPackageCardViewComponent } from "core-app/features/work-packages/components/wp-card-view/wp-card-view.component";
+import { WorkPackageViewSelectionService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { uiStateLinkClass } from "core-app/features/work-packages/components/wp-fast-table/builders/ui-state-link-builder";
+import { debugLog } from "core-app/shared/helpers/debug_output";
+import { WorkPackageCardViewService } from "core-app/features/work-packages/components/wp-card-view/services/wp-card-view.service";
+import { OPContextMenuService } from "core-app/shared/components/op-context-menu/op-context-menu.service";
+import { WorkPackageViewContextMenu } from "core-app/shared/components/op-context-menu/wp-context-menu/wp-view-context-menu.directive";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class CardRightClickHandler implements CardEventHandler {
diff --git a/frontend/src/app/components/wp-card-view/services/wp-card-drag-and-drop.service.ts b/frontend/src/app/features/work-packages/components/wp-card-view/services/wp-card-drag-and-drop.service.ts
similarity index 84%
rename from frontend/src/app/components/wp-card-view/services/wp-card-drag-and-drop.service.ts
rename to frontend/src/app/features/work-packages/components/wp-card-view/services/wp-card-drag-and-drop.service.ts
index 0b85159a27e..7b93512a893 100644
--- a/frontend/src/app/components/wp-card-view/services/wp-card-drag-and-drop.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-card-view/services/wp-card-drag-and-drop.service.ts
@@ -1,16 +1,16 @@
import { Injectable, Injector, Optional } from '@angular/core';
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { WorkPackageViewOrderService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-order.service";
-import { States } from "core-components/states.service";
-import { WorkPackageCreateService } from "core-components/wp-new/wp-create.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { WorkPackageInlineCreateService } from "core-components/wp-inline-create/wp-inline-create.service";
-import { DragAndDropService } from "core-app/modules/common/drag-and-drop/drag-and-drop.service";
-import { DragAndDropHelpers } from "core-app/modules/common/drag-and-drop/drag-and-drop.helpers";
-import { WorkPackageCardViewComponent } from "core-components/wp-card-view/wp-card-view.component";
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { WorkPackageViewOrderService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-order.service";
+import { States } from "core-app/core/states/states.service";
+import { WorkPackageCreateService } from "core-app/features/work-packages/components/wp-new/wp-create.service";
+import { WorkPackageInlineCreateService } from "core-app/features/work-packages/components/wp-inline-create/wp-inline-create.service";
+import { DragAndDropService } from "core-app/shared/helpers/drag-and-drop/drag-and-drop.service";
+import { DragAndDropHelpers } from "core-app/shared/helpers/drag-and-drop/drag-and-drop.helpers";
+import { WorkPackageCardViewComponent } from "core-app/features/work-packages/components/wp-card-view/wp-card-view.component";
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
@Injectable()
export class WorkPackageCardDragAndDropService {
diff --git a/frontend/src/app/components/wp-card-view/services/wp-card-view.service.ts b/frontend/src/app/features/work-packages/components/wp-card-view/services/wp-card-view.service.ts
similarity index 81%
rename from frontend/src/app/components/wp-card-view/services/wp-card-view.service.ts
rename to frontend/src/app/features/work-packages/components/wp-card-view/services/wp-card-view.service.ts
index 23f3cd11959..824fa862de8 100644
--- a/frontend/src/app/components/wp-card-view/services/wp-card-view.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-card-view/services/wp-card-view.service.ts
@@ -1,6 +1,6 @@
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
import { Injectable } from '@angular/core';
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
@Injectable()
export class WorkPackageCardViewService {
diff --git a/frontend/src/app/components/wp-card-view/styles/wp-card-view-horizontal.sass b/frontend/src/app/features/work-packages/components/wp-card-view/styles/wp-card-view-horizontal.sass
similarity index 100%
rename from frontend/src/app/components/wp-card-view/styles/wp-card-view-horizontal.sass
rename to frontend/src/app/features/work-packages/components/wp-card-view/styles/wp-card-view-horizontal.sass
diff --git a/frontend/src/app/components/wp-card-view/styles/wp-card-view-vertical.sass b/frontend/src/app/features/work-packages/components/wp-card-view/styles/wp-card-view-vertical.sass
similarity index 100%
rename from frontend/src/app/components/wp-card-view/styles/wp-card-view-vertical.sass
rename to frontend/src/app/features/work-packages/components/wp-card-view/styles/wp-card-view-vertical.sass
diff --git a/frontend/src/app/components/wp-card-view/styles/wp-card-view.component.sass b/frontend/src/app/features/work-packages/components/wp-card-view/styles/wp-card-view.component.sass
similarity index 100%
rename from frontend/src/app/components/wp-card-view/styles/wp-card-view.component.sass
rename to frontend/src/app/features/work-packages/components/wp-card-view/styles/wp-card-view.component.sass
diff --git a/frontend/src/app/components/wp-card-view/wp-card-view.component.html b/frontend/src/app/features/work-packages/components/wp-card-view/wp-card-view.component.html
similarity index 100%
rename from frontend/src/app/components/wp-card-view/wp-card-view.component.html
rename to frontend/src/app/features/work-packages/components/wp-card-view/wp-card-view.component.html
diff --git a/frontend/src/app/components/wp-card-view/wp-card-view.component.ts b/frontend/src/app/features/work-packages/components/wp-card-view/wp-card-view.component.ts
similarity index 75%
rename from frontend/src/app/components/wp-card-view/wp-card-view.component.ts
rename to frontend/src/app/features/work-packages/components/wp-card-view/wp-card-view.component.ts
index b0a54dbab8a..2a6f4921e9a 100644
--- a/frontend/src/app/components/wp-card-view/wp-card-view.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-card-view/wp-card-view.component.ts
@@ -11,35 +11,35 @@ import {
Output,
ViewChild
} from "@angular/core";
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { QueryColumn } from "app/components/wp-query/query-column";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { WorkPackageInlineCreateService } from "core-components/wp-inline-create/wp-inline-create.service";
-import { WorkPackageCreateService } from "core-components/wp-new/wp-create.service";
-import { AngularTrackingHelpers } from "core-components/angular/tracking-functions";
-import { CardHighlightingMode } from "core-components/wp-fast-table/builders/highlighting/highlighting-mode.const";
-import { AuthorisationService } from "core-app/modules/common/model-auth/model-auth.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { WorkPackageInlineCreateService } from "core-app/features/work-packages/components/wp-inline-create/wp-inline-create.service";
+import { WorkPackageCreateService } from "core-app/features/work-packages/components/wp-new/wp-create.service";
+import { AngularTrackingHelpers } from "core-app/shared/helpers/angular/tracking-functions";
+import { CardHighlightingMode } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting-mode.const";
+import { AuthorisationService } from "core-app/core/model-auth/model-auth.service";
import { StateService } from "@uirouter/core";
-import { States } from "core-components/states.service";
-import { WorkPackageViewOrderService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-order.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
+import { States } from "core-app/core/states/states.service";
+import { WorkPackageViewOrderService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-order.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
import { filter, map, withLatestFrom } from 'rxjs/operators';
-import { CausedUpdatesService } from "core-app/modules/boards/board/caused-updates/caused-updates.service";
-import { WorkPackageViewSelectionService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
-import { CardViewHandlerRegistry } from "core-components/wp-card-view/event-handler/card-view-handler-registry";
-import { WorkPackageCardViewService } from "core-components/wp-card-view/services/wp-card-view.service";
-import { WorkPackageCardDragAndDropService } from "core-components/wp-card-view/services/wp-card-drag-and-drop.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { DeviceService } from "core-app/modules/common/browser/device.service";
+import { CausedUpdatesService } from "core-app/features/boards/board/caused-updates/caused-updates.service";
+import { WorkPackageViewSelectionService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { CardViewHandlerRegistry } from "core-app/features/work-packages/components/wp-card-view/event-handler/card-view-handler-registry";
+import { WorkPackageCardViewService } from "core-app/features/work-packages/components/wp-card-view/services/wp-card-view.service";
+import { WorkPackageCardDragAndDropService } from "core-app/features/work-packages/components/wp-card-view/services/wp-card-drag-and-drop.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { DeviceService } from "core-app/core/browser/device.service";
import {
WorkPackageViewHandlerToken,
WorkPackageViewOutputs
-} from "core-app/modules/work_packages/routing/wp-view-base/event-handling/event-handler-registry";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+} from "core-app/features/work-packages/routing/wp-view-base/event-handling/event-handler-registry";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
-import { HalEventsService } from "core-app/modules/hal/services/hal-events.service";
+import { QueryColumn } from "core-app/features/work-packages/components/wp-query/query-column";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
export type CardViewOrientation = 'horizontal'|'vertical';
diff --git a/frontend/src/app/components/wp-card-view/wp-single-card/wp-single-card.component.html b/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.html
similarity index 100%
rename from frontend/src/app/components/wp-card-view/wp-single-card/wp-single-card.component.html
rename to frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.html
diff --git a/frontend/src/app/components/wp-card-view/wp-single-card/wp-single-card.component.sass b/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.sass
similarity index 100%
rename from frontend/src/app/components/wp-card-view/wp-single-card/wp-single-card.component.sass
rename to frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.sass
diff --git a/frontend/src/app/components/wp-card-view/wp-single-card/wp-single-card.component.ts b/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.ts
similarity index 76%
rename from frontend/src/app/components/wp-card-view/wp-single-card/wp-single-card.component.ts
rename to frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.ts
index 6909a1bed94..bb85933e3c8 100644
--- a/frontend/src/app/components/wp-card-view/wp-single-card/wp-single-card.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component.ts
@@ -7,19 +7,18 @@ import {
OnInit,
Output
} from "@angular/core";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { checkedClassName, uiStateLinkClass } from "core-components/wp-fast-table/builders/ui-state-link-builder";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { Highlighting } from "core-components/wp-fast-table/builders/highlighting/highlighting.functions";
+import { checkedClassName, uiStateLinkClass } from "core-app/features/work-packages/components/wp-fast-table/builders/ui-state-link-builder";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { Highlighting } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting.functions";
import { StateService } from "@uirouter/core";
-import { WorkPackageViewSelectionService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
-import { WorkPackageCardViewService } from "core-components/wp-card-view/services/wp-card-view.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { CardHighlightingMode } from "core-components/wp-fast-table/builders/highlighting/highlighting-mode.const";
-import { CardViewOrientation } from "core-components/wp-card-view/wp-card-view.component";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { WorkPackageViewFocusService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service";
-import { splitViewRoute } from "core-app/modules/work_packages/routing/split-view-routes.helper";
+import { WorkPackageViewSelectionService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { WorkPackageCardViewService } from "core-app/features/work-packages/components/wp-card-view/services/wp-card-view.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { CardHighlightingMode } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting-mode.const";
+import { CardViewOrientation } from "core-app/features/work-packages/components/wp-card-view/wp-card-view.component";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { WorkPackageViewFocusService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
@Component({
selector: 'wp-single-card',
diff --git a/frontend/src/app/components/wp-copy/wp-copy-full-view.component.ts b/frontend/src/app/features/work-packages/components/wp-copy/wp-copy-full-view.component.ts
similarity index 93%
rename from frontend/src/app/components/wp-copy/wp-copy-full-view.component.ts
rename to frontend/src/app/features/work-packages/components/wp-copy/wp-copy-full-view.component.ts
index 815abb5c7df..02a39ae8d85 100644
--- a/frontend/src/app/components/wp-copy/wp-copy-full-view.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-copy/wp-copy-full-view.component.ts
@@ -27,7 +27,7 @@
//++
import { ChangeDetectionStrategy, Component } from '@angular/core';
-import { WorkPackageCopyController } from 'core-components/wp-copy/wp-copy.controller';
+import { WorkPackageCopyController } from 'core-app/features/work-packages/components/wp-copy/wp-copy.controller';
@Component({
selector: 'wp-copy-full-view',
diff --git a/frontend/src/app/components/wp-copy/wp-copy-split-view.component.ts b/frontend/src/app/features/work-packages/components/wp-copy/wp-copy-split-view.component.ts
similarity index 93%
rename from frontend/src/app/components/wp-copy/wp-copy-split-view.component.ts
rename to frontend/src/app/features/work-packages/components/wp-copy/wp-copy-split-view.component.ts
index 6055b944cad..4217855606c 100644
--- a/frontend/src/app/components/wp-copy/wp-copy-split-view.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-copy/wp-copy-split-view.component.ts
@@ -27,7 +27,7 @@
//++
import { ChangeDetectionStrategy, Component } from '@angular/core';
-import { WorkPackageCopyController } from 'core-components/wp-copy/wp-copy.controller';
+import { WorkPackageCopyController } from "core-app/features/work-packages/components/wp-copy/wp-copy.controller";
@Component({
selector: 'wp-copy-split-view',
diff --git a/frontend/src/app/components/wp-copy/wp-copy.controller.ts b/frontend/src/app/features/work-packages/components/wp-copy/wp-copy.controller.ts
similarity index 82%
rename from frontend/src/app/components/wp-copy/wp-copy.controller.ts
rename to frontend/src/app/features/work-packages/components/wp-copy/wp-copy.controller.ts
index ff6e55fbbca..4bcbb119a07 100644
--- a/frontend/src/app/components/wp-copy/wp-copy.controller.ts
+++ b/frontend/src/app/features/work-packages/components/wp-copy/wp-copy.controller.ts
@@ -27,14 +27,14 @@
//++
import { take } from 'rxjs/operators';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { WorkPackageCreateComponent } from 'core-components/wp-new/wp-create.component';
-import { WorkPackageRelationsService } from "core-components/wp-relations/wp-relations.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { WorkPackageCreateComponent } from 'core-app/features/work-packages/components/wp-new/wp-create.component';
+import { WorkPackageRelationsService } from "core-app/features/work-packages/components/wp-relations/wp-relations.service";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
import { Directive } from "@angular/core";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
@Directive()
export class WorkPackageCopyController extends WorkPackageCreateComponent {
diff --git a/frontend/src/app/components/wp-custom-actions/date-action/custom-date-action-admin.component.ts b/frontend/src/app/features/work-packages/components/wp-custom-actions/date-action/custom-date-action-admin.component.ts
similarity index 97%
rename from frontend/src/app/components/wp-custom-actions/date-action/custom-date-action-admin.component.ts
rename to frontend/src/app/features/work-packages/components/wp-custom-actions/date-action/custom-date-action-admin.component.ts
index d8ab8f0a84a..261233ec6f0 100644
--- a/frontend/src/app/components/wp-custom-actions/date-action/custom-date-action-admin.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-custom-actions/date-action/custom-date-action-admin.component.ts
@@ -27,7 +27,7 @@
//++
import { ApplicationRef, ChangeDetectorRef, Component, ElementRef, OnInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
export const customDateActionAdminSelector = 'custom-date-action-admin';
diff --git a/frontend/src/app/components/wp-custom-actions/date-action/custom-date-action-admin.html b/frontend/src/app/features/work-packages/components/wp-custom-actions/date-action/custom-date-action-admin.html
similarity index 100%
rename from frontend/src/app/components/wp-custom-actions/date-action/custom-date-action-admin.html
rename to frontend/src/app/features/work-packages/components/wp-custom-actions/date-action/custom-date-action-admin.html
diff --git a/frontend/src/app/components/wp-custom-actions/wp-custom-actions.component.html b/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component.html
similarity index 100%
rename from frontend/src/app/components/wp-custom-actions/wp-custom-actions.component.html
rename to frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component.html
diff --git a/frontend/src/app/components/wp-custom-actions/wp-custom-actions.component.ts b/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component.ts
similarity index 85%
rename from frontend/src/app/components/wp-custom-actions/wp-custom-actions.component.ts
rename to frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component.ts
index 842da965efc..f18a3535fd6 100644
--- a/frontend/src/app/components/wp-custom-actions/wp-custom-actions.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component.ts
@@ -27,10 +27,10 @@
//++
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnInit } from '@angular/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { CustomActionResource } from "core-app/modules/hal/resources/custom-action-resource";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { CustomActionResource } from "core-app/features/hal/resources/custom-action-resource";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
@Component({
selector: 'wp-custom-actions',
diff --git a/frontend/src/app/components/wp-custom-actions/wp-custom-actions/wp-custom-action.component.html b/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions/wp-custom-action.component.html
similarity index 100%
rename from frontend/src/app/components/wp-custom-actions/wp-custom-actions/wp-custom-action.component.html
rename to frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions/wp-custom-action.component.html
diff --git a/frontend/src/app/components/wp-custom-actions/wp-custom-actions/wp-custom-action.component.ts b/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions/wp-custom-action.component.ts
similarity index 77%
rename from frontend/src/app/components/wp-custom-actions/wp-custom-actions/wp-custom-action.component.ts
rename to frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions/wp-custom-action.component.ts
index 118bcc0bf8e..efbb9c16d7e 100644
--- a/frontend/src/app/components/wp-custom-actions/wp-custom-actions/wp-custom-action.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-custom-actions/wp-custom-actions/wp-custom-action.component.ts
@@ -28,16 +28,15 @@
import { Component, HostListener, Input } from '@angular/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
-import { CustomActionResource } from 'core-app/modules/hal/resources/custom-action-resource';
-import { WorkPackagesActivityService } from 'core-components/wp-single-view-tabs/activity-panel/wp-activity.service';
-
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { HalEventsService } from "core-app/modules/hal/services/hal-events.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { WorkPackagesActivityService } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service';
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { CustomActionResource } from "core-app/features/hal/resources/custom-action-resource";
@Component({
selector: 'wp-custom-action',
diff --git a/frontend/src/app/components/wp-details/wp-details-toolbar.component.ts b/frontend/src/app/features/work-packages/components/wp-details/wp-details-toolbar.component.ts
similarity index 85%
rename from frontend/src/app/components/wp-details/wp-details-toolbar.component.ts
rename to frontend/src/app/features/work-packages/components/wp-details/wp-details-toolbar.component.ts
index dfdcd1bf55d..b03994baa0c 100644
--- a/frontend/src/app/components/wp-details/wp-details-toolbar.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-details/wp-details-toolbar.component.ts
@@ -26,10 +26,10 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
import { Component, Input } from '@angular/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
@Component({
selector: 'wp-details-toolbar',
diff --git a/frontend/src/app/components/wp-details/wp-details-toolbar.html b/frontend/src/app/features/work-packages/components/wp-details/wp-details-toolbar.html
similarity index 100%
rename from frontend/src/app/components/wp-details/wp-details-toolbar.html
rename to frontend/src/app/features/work-packages/components/wp-details/wp-details-toolbar.html
diff --git a/frontend/src/app/components/wp-edit-form/table-edit-form.ts b/frontend/src/app/features/work-packages/components/wp-edit-form/table-edit-form.ts
similarity index 82%
rename from frontend/src/app/components/wp-edit-form/table-edit-form.ts
rename to frontend/src/app/features/work-packages/components/wp-edit-form/table-edit-form.ts
index e27f54ed11a..9f763e05181 100644
--- a/frontend/src/app/components/wp-edit-form/table-edit-form.ts
+++ b/frontend/src/app/features/work-packages/components/wp-edit-form/table-edit-form.ts
@@ -28,20 +28,20 @@
import { Injector } from '@angular/core';
import { Subscription } from 'rxjs';
-import { States } from 'core-components/states.service';
-import { IFieldSchema } from "core-app/modules/fields/field.base";
-
-import { EditFieldHandler } from "core-app/modules/fields/edit/editing-portal/edit-field-handler";
-import { WorkPackageViewColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service";
-import { FocusHelperService } from "core-app/modules/focus/focus-helper";
-import { EditingPortalService } from "core-app/modules/fields/edit/editing-portal/editing-portal-service";
-import { CellBuilder, editCellContainer, tdClassName } from "core-components/wp-fast-table/builders/cell-builder";
-import { WorkPackageTable } from "core-components/wp-fast-table/wp-fast-table";
-import { EditForm } from "core-app/modules/fields/edit/edit-form/edit-form";
-import { editModeClassName } from "core-app/modules/fields/edit/edit-field.component";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { States } from 'core-app/core/states/states.service';
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
+
+import { EditFieldHandler } from "core-app/shared/components/fields/edit/editing-portal/edit-field-handler";
+import { WorkPackageViewColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service";
+import { FocusHelperService } from "core-app/shared/directives/focus/focus-helper";
+import { EditingPortalService } from "core-app/shared/components/fields/edit/editing-portal/editing-portal-service";
+import { CellBuilder, editCellContainer, tdClassName } from "core-app/features/work-packages/components/wp-fast-table/builders/cell-builder";
+import { WorkPackageTable } from "core-app/features/work-packages/components/wp-fast-table/wp-fast-table";
+import { EditForm } from "core-app/shared/components/fields/edit/edit-form/edit-form";
+import { editModeClassName } from "core-app/shared/components/fields/edit/edit-field.component";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
export const activeFieldContainerClassName = 'inline-edit--active-field';
export const activeFieldClassName = 'inline-edit--field';
diff --git a/frontend/src/app/components/wp-edit-form/work-package-filter-values.spec.ts b/frontend/src/app/features/work-packages/components/wp-edit-form/work-package-filter-values.spec.ts
similarity index 66%
rename from frontend/src/app/components/wp-edit-form/work-package-filter-values.spec.ts
rename to frontend/src/app/features/work-packages/components/wp-edit-form/work-package-filter-values.spec.ts
index db554a8e9d7..dda23ca03bc 100644
--- a/frontend/src/app/components/wp-edit-form/work-package-filter-values.spec.ts
+++ b/frontend/src/app/features/work-packages/components/wp-edit-form/work-package-filter-values.spec.ts
@@ -27,34 +27,33 @@
//++
import { TestBed } from "@angular/core/testing";
-import { CurrentUserService } from "core-app/modules/current-user/current-user.service";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
+import { CurrentUserService } from "core-app/core/current-user/current-user.service";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
import { Injector } from "@angular/core";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { WorkPackageFilterValues } from "core-components/wp-edit-form/work-package-filter-values";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { WorkPackagesActivityService } from "core-components/wp-single-view-tabs/activity-panel/wp-activity.service";
-import { WorkPackageCreateService } from "core-components/wp-new/wp-create.service";
-
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { TypeResource } from "core-app/modules/hal/resources/type-resource";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { WorkPackageFilterValues } from "core-app/features/work-packages/components/wp-edit-form/work-package-filter-values";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { WorkPackagesActivityService } from "core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service";
+import { WorkPackageCreateService } from "core-app/features/work-packages/components/wp-new/wp-create.service";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { TypeResource } from "core-app/features/hal/resources/type-resource";
import { HttpClientModule } from "@angular/common/http";
-import { States } from "core-components/states.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { ConfigurationService } from "core-app/modules/common/config/configuration.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
+import { States } from "core-app/core/states/states.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { ConfigurationService } from "core-app/core/config/configuration.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
import { UIRouterModule } from "@uirouter/angular";
-import { LoadingIndicatorService } from "core-app/modules/common/loading-indicator/loading-indicator.service";
-import { OpenProjectFileUploadService } from "core-components/api/op-file-upload/op-file-upload.service";
-import { OpenProjectDirectFileUploadService } from "core-components/api/op-file-upload/op-direct-file-upload.service";
-import { HookService } from "core-app/modules/plugins/hook-service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { HalEventsService } from "core-app/modules/hal/services/hal-events.service";
-import { TimezoneService } from "core-components/datetime/timezone.service";
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
+import { LoadingIndicatorService } from "core-app/core/loading-indicator/loading-indicator.service";
+import { HookService } from "core-app/features/plugins/hook-service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { OpenProjectFileUploadService } from "core-app/core/file-upload/op-file-upload.service";
+import { OpenProjectDirectFileUploadService } from "core-app/core/file-upload/op-direct-file-upload.service";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
describe('WorkPackageFilterValues', () => {
let resource:WorkPackageResource;
diff --git a/frontend/src/app/components/wp-edit-form/work-package-filter-values.ts b/frontend/src/app/features/work-packages/components/wp-edit-form/work-package-filter-values.ts
similarity index 85%
rename from frontend/src/app/components/wp-edit-form/work-package-filter-values.ts
rename to frontend/src/app/features/work-packages/components/wp-edit-form/work-package-filter-values.ts
index 981fc100fa2..12af59c9960 100644
--- a/frontend/src/app/components/wp-edit-form/work-package-filter-values.ts
+++ b/frontend/src/app/features/work-packages/components/wp-edit-form/work-package-filter-values.ts
@@ -1,13 +1,13 @@
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { QueryFilterInstanceResource } from 'core-app/modules/hal/resources/query-filter-instance-resource';
-import { CurrentUserService } from "core-app/modules/current-user/current-user.service";
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { CurrentUserService } from "core-app/core/current-user/current-user.service";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
import { Injector } from '@angular/core';
-import { AngularTrackingHelpers } from "core-components/angular/tracking-functions";
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
+import { AngularTrackingHelpers } from "core-app/shared/helpers/angular/tracking-functions";
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
import compareByHrefOrString = AngularTrackingHelpers.compareByHrefOrString;
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { FilterOperator } from "core-components/api/api-v3/api-v3-filter-builder";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { FilterOperator } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
export class WorkPackageFilterValues {
diff --git a/frontend/src/app/components/wp-edit/work-package-changeset.ts b/frontend/src/app/features/work-packages/components/wp-edit/work-package-changeset.ts
similarity index 77%
rename from frontend/src/app/components/wp-edit/work-package-changeset.ts
rename to frontend/src/app/features/work-packages/components/wp-edit/work-package-changeset.ts
index b2a1c8f617e..89fd89aa175 100644
--- a/frontend/src/app/components/wp-edit/work-package-changeset.ts
+++ b/frontend/src/app/features/work-packages/components/wp-edit/work-package-changeset.ts
@@ -1,7 +1,7 @@
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { ResourceChangeset } from "core-app/modules/fields/changeset/resource-changeset";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
-import { WorkPackageSchemaProxy } from 'core-app/modules/hal/schemas/work-package-schema-proxy';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { ResourceChangeset } from "core-app/shared/components/fields/changeset/resource-changeset";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { WorkPackageSchemaProxy } from "core-app/features/hal/schemas/work-package-schema-proxy";
export class WorkPackageChangeset extends ResourceChangeset<WorkPackageResource> {
diff --git a/frontend/src/app/components/wp-edit/wp-edit-field/wp-replacement-label.component.ts b/frontend/src/app/features/work-packages/components/wp-edit/wp-edit-field/wp-replacement-label.component.ts
similarity index 95%
rename from frontend/src/app/components/wp-edit/wp-edit-field/wp-replacement-label.component.ts
rename to frontend/src/app/features/work-packages/components/wp-edit/wp-edit-field/wp-replacement-label.component.ts
index f555cadee24..478834d7b2c 100644
--- a/frontend/src/app/components/wp-edit/wp-edit-field/wp-replacement-label.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-edit/wp-edit-field/wp-replacement-label.component.ts
@@ -28,7 +28,7 @@
import { Component, ElementRef, Input, OnInit } from '@angular/core';
-import { EditFormComponent } from "core-app/modules/fields/edit/edit-form/edit-form.component";
+import { EditFormComponent } from "core-app/shared/components/fields/edit/edit-form/edit-form.component";
@Component({
selector: 'wp-replacement-label',
diff --git a/frontend/src/app/components/wp-edit/wp-edit-field/wp-replacement-label.html b/frontend/src/app/features/work-packages/components/wp-edit/wp-edit-field/wp-replacement-label.html
similarity index 100%
rename from frontend/src/app/components/wp-edit/wp-edit-field/wp-replacement-label.html
rename to frontend/src/app/features/work-packages/components/wp-edit/wp-edit-field/wp-replacement-label.html
diff --git a/frontend/src/app/components/wp-fast-table/builders/cell-builder.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/cell-builder.ts
similarity index 77%
rename from frontend/src/app/components/wp-fast-table/builders/cell-builder.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/cell-builder.ts
index 3297573a272..30416b10ea3 100644
--- a/frontend/src/app/components/wp-fast-table/builders/cell-builder.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/cell-builder.ts
@@ -1,12 +1,12 @@
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import {
DisplayFieldRenderer,
editFieldContainerClass
-} from "core-app/modules/fields/display/display-field-renderer";
+} from "core-app/shared/components/fields/display/display-field-renderer";
import { Injector } from '@angular/core';
-import { QueryColumn } from "core-components/wp-query/query-column";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { QueryColumn } from "core-app/features/work-packages/components/wp-query/query-column";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export const tdClassName = 'wp-table--cell-td';
export const editCellContainer = 'wp-table--cell-container';
diff --git a/frontend/src/app/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-builder.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-builder.ts
similarity index 66%
rename from frontend/src/app/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-builder.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-builder.ts
index a8120f5ffc5..8a40955f6bb 100644
--- a/frontend/src/app/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-builder.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-builder.ts
@@ -1,9 +1,9 @@
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { tdClassName } from "core-components/wp-fast-table/builders/cell-builder";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { tdClassName } from "core-app/features/work-packages/components/wp-fast-table/builders/cell-builder";
import { Injector } from "@angular/core";
-import { TableDragActionsRegistryService } from "core-components/wp-table/drag-and-drop/actions/table-drag-actions-registry.service";
-import { TableDragActionService } from "core-components/wp-table/drag-and-drop/actions/table-drag-action.service";
-import { internalSortColumn } from "core-components/wp-fast-table/builders/internal-sort-columns";
+import { TableDragActionsRegistryService } from "core-app/features/work-packages/components/wp-table/drag-and-drop/actions/table-drag-actions-registry.service";
+import { TableDragActionService } from "core-app/features/work-packages/components/wp-table/drag-and-drop/actions/table-drag-action.service";
+import { internalSortColumn } from "core-app/features/work-packages/components/wp-fast-table/builders/internal-sort-columns";
/** Debug the render position */
const RENDER_DRAG_AND_DROP_POSITION = false;
diff --git a/frontend/src/app/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-render-pass.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-render-pass.ts
similarity index 64%
rename from frontend/src/app/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-render-pass.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-render-pass.ts
index cf0e73717d0..efd5e42b6b8 100644
--- a/frontend/src/app/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-render-pass.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-render-pass.ts
@@ -1,11 +1,11 @@
import { Injector } from '@angular/core';
import { PrimaryRenderPass, RowRenderInfo } from '../primary-render-pass';
-import { DragDropHandleBuilder } from "core-components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-builder";
-import { WorkPackageTable } from "core-components/wp-fast-table/wp-fast-table";
-import { WorkPackageViewOrderService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-order.service";
-import { WorkPackageViewColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { QueryOrder } from "core-app/modules/apiv3/endpoints/queries/apiv3-query-order";
+import { DragDropHandleBuilder } from "core-app/features/work-packages/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-builder";
+import { WorkPackageTable } from "core-app/features/work-packages/components/wp-fast-table/wp-fast-table";
+import { WorkPackageViewOrderService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-order.service";
+import { WorkPackageViewColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { QueryOrder } from "core-app/core/apiv3/endpoints/queries/apiv3-query-order";
export class DragDropHandleRenderPass {
diff --git a/frontend/src/app/components/wp-fast-table/builders/highlighting/highlighting-mode.const.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting-mode.const.ts
similarity index 100%
rename from frontend/src/app/components/wp-fast-table/builders/highlighting/highlighting-mode.const.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting-mode.const.ts
diff --git a/frontend/src/app/components/wp-fast-table/builders/highlighting/highlighting.functions.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting.functions.ts
similarity index 100%
rename from frontend/src/app/components/wp-fast-table/builders/highlighting/highlighting.functions.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting.functions.ts
diff --git a/frontend/src/app/components/wp-fast-table/builders/highlighting/row-highlight-render-pass.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/highlighting/row-highlight-render-pass.ts
similarity index 65%
rename from frontend/src/app/components/wp-fast-table/builders/highlighting/row-highlight-render-pass.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/highlighting/row-highlight-render-pass.ts
index 8f54b53da95..1a69c9d3891 100644
--- a/frontend/src/app/components/wp-fast-table/builders/highlighting/row-highlight-render-pass.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/highlighting/row-highlight-render-pass.ts
@@ -1,11 +1,11 @@
import { Injector } from '@angular/core';
-import { PrimaryRenderPass, RowRenderInfo } from "core-components/wp-fast-table/builders/primary-render-pass";
-import { WorkPackageTable } from "core-components/wp-fast-table/wp-fast-table";
-import { WorkPackageViewHighlightingService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-highlighting.service";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { Highlighting } from "core-components/wp-fast-table/builders/highlighting/highlighting.functions";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { PrimaryRenderPass, RowRenderInfo } from "core-app/features/work-packages/components/wp-fast-table/builders/primary-render-pass";
+import { WorkPackageTable } from "core-app/features/work-packages/components/wp-fast-table/wp-fast-table";
+import { WorkPackageViewHighlightingService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-highlighting.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { Highlighting } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting.functions";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class HighlightingRenderPass {
diff --git a/frontend/src/app/components/wp-fast-table/builders/internal-sort-columns.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/internal-sort-columns.ts
similarity index 65%
rename from frontend/src/app/components/wp-fast-table/builders/internal-sort-columns.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/internal-sort-columns.ts
index 7d571eaaf73..7bfce53308a 100644
--- a/frontend/src/app/components/wp-fast-table/builders/internal-sort-columns.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/internal-sort-columns.ts
@@ -1,4 +1,4 @@
-import { QueryColumn } from "core-components/wp-query/query-column";
+import { QueryColumn } from "core-app/features/work-packages/components/wp-query/query-column";
export const internalSortColumn = {
id: '__internal-sorthandle'
diff --git a/frontend/src/app/components/wp-fast-table/builders/modes/grouped/group-header-builder.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/grouped/group-header-builder.ts
similarity index 79%
rename from frontend/src/app/components/wp-fast-table/builders/modes/grouped/group-header-builder.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/grouped/group-header-builder.ts
index 5661c87411f..225cf65192a 100644
--- a/frontend/src/app/components/wp-fast-table/builders/modes/grouped/group-header-builder.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/grouped/group-header-builder.ts
@@ -1,9 +1,9 @@
import { Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
import { groupName } from './grouped-rows-helpers';
-import { GroupObject } from 'core-app/modules/hal/resources/wp-collection-resource';
-import { rowGroupClassName } from "core-components/wp-fast-table/builders/modes/grouped/grouped-classes.constants";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { rowGroupClassName } from "core-app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-classes.constants";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { GroupObject } from "core-app/features/hal/resources/wp-collection-resource";
export function groupClassNameFor(group:GroupObject) {
return `group-${group.identifier}`;
diff --git a/frontend/src/app/components/wp-fast-table/builders/modes/grouped/group-sums-builder.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/grouped/group-sums-builder.ts
similarity index 69%
rename from frontend/src/app/components/wp-fast-table/builders/modes/grouped/group-sums-builder.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/grouped/group-sums-builder.ts
index 30e64debf38..82e403d07a1 100644
--- a/frontend/src/app/components/wp-fast-table/builders/modes/grouped/group-sums-builder.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/grouped/group-sums-builder.ts
@@ -1,12 +1,13 @@
-import { GroupObject } from 'core-app/modules/hal/resources/wp-collection-resource';
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { SingleRowBuilder } from "core-components/wp-fast-table/builders/rows/single-row-builder";
-import { IFieldSchema } from "core-app/modules/fields/field.base";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { DisplayFieldService } from "core-app/modules/fields/display/display-field.service";
-import { groupedRowClassName } from "core-components/wp-fast-table/builders/modes/grouped/grouped-rows-helpers";
+
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { SingleRowBuilder } from "core-app/features/work-packages/components/wp-fast-table/builders/rows/single-row-builder";
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { DisplayFieldService } from "core-app/shared/components/fields/display/display-field.service";
+import { groupedRowClassName } from "core-app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-rows-helpers";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { GroupObject } from "core-app/features/hal/resources/wp-collection-resource";
export class GroupSumsBuilder extends SingleRowBuilder {
diff --git a/frontend/src/app/components/wp-fast-table/builders/modes/grouped/grouped-classes.constants.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-classes.constants.ts
similarity index 100%
rename from frontend/src/app/components/wp-fast-table/builders/modes/grouped/grouped-classes.constants.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-classes.constants.ts
diff --git a/frontend/src/app/components/wp-fast-table/builders/modes/grouped/grouped-render-pass.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-render-pass.ts
similarity index 90%
rename from frontend/src/app/components/wp-fast-table/builders/modes/grouped/grouped-render-pass.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-render-pass.ts
index eb2f3cc5261..035f5ceaef2 100644
--- a/frontend/src/app/components/wp-fast-table/builders/modes/grouped/grouped-render-pass.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-render-pass.ts
@@ -1,15 +1,15 @@
import { Injector } from '@angular/core';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { WorkPackageTable } from '../../../wp-fast-table';
import { WorkPackageTableRow } from '../../../wp-table.interfaces';
import { SingleRowBuilder } from '../../rows/single-row-builder';
import { PlainRenderPass } from '../plain/plain-render-pass';
import { groupClassNameFor, GroupHeaderBuilder } from './group-header-builder';
import { groupByProperty, groupedRowClassName } from './grouped-rows-helpers';
-import { GroupObject } from 'core-app/modules/hal/resources/wp-collection-resource';
-import { collapsedRowClass } from "core-components/wp-fast-table/builders/modes/grouped/grouped-classes.constants";
-import { GroupSumsBuilder } from "core-components/wp-fast-table/builders/modes/grouped/group-sums-builder";
+import { collapsedRowClass } from "core-app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-classes.constants";
+import { GroupSumsBuilder } from "core-app/features/work-packages/components/wp-fast-table/builders/modes/grouped/group-sums-builder";
+import { GroupObject } from "core-app/features/hal/resources/wp-collection-resource";
export const groupRowClass = '-group-row';
diff --git a/frontend/src/app/components/wp-fast-table/builders/modes/grouped/grouped-rows-builder.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-rows-builder.ts
similarity index 84%
rename from frontend/src/app/components/wp-fast-table/builders/modes/grouped/grouped-rows-builder.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-rows-builder.ts
index 2341be51125..ae5ae3a796a 100644
--- a/frontend/src/app/components/wp-fast-table/builders/modes/grouped/grouped-rows-builder.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-rows-builder.ts
@@ -1,20 +1,20 @@
import { Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { States } from '../../../../states.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
import { WorkPackageTable } from '../../../wp-fast-table';
import { tableRowClassName } from '../../rows/single-row-builder';
import { RowsBuilder } from '../rows-builder';
import { GroupHeaderBuilder } from './group-header-builder';
import { GroupedRenderPass } from './grouped-render-pass';
import { groupedRowClassName, groupIdentifier } from './grouped-rows-helpers';
-import { GroupObject } from 'core-app/modules/hal/resources/wp-collection-resource';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import {
collapsedRowClass,
rowGroupClassName
-} from "core-components/wp-fast-table/builders/modes/grouped/grouped-classes.constants";
-import { WorkPackageViewColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+} from "core-app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-classes.constants";
+import { WorkPackageViewColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { States } from "core-app/core/states/states.service";
+import { GroupObject } from "core-app/features/hal/resources/wp-collection-resource";
export class GroupedRowsBuilder extends RowsBuilder {
diff --git a/frontend/src/app/components/wp-fast-table/builders/modes/grouped/grouped-rows-helpers.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-rows-helpers.ts
similarity index 93%
rename from frontend/src/app/components/wp-fast-table/builders/modes/grouped/grouped-rows-helpers.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-rows-helpers.ts
index 85741348ea6..9a11bb3d54e 100644
--- a/frontend/src/app/components/wp-fast-table/builders/modes/grouped/grouped-rows-helpers.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-rows-helpers.ts
@@ -1,4 +1,4 @@
-import { GroupObject } from 'core-app/modules/hal/resources/wp-collection-resource';
+import { GroupObject } from "core-app/features/hal/resources/wp-collection-resource";
export function groupIdentifier(group:GroupObject) {
let value = group.value || 'nullValue';
diff --git a/frontend/src/app/components/wp-fast-table/builders/modes/hierarchy/hierarchy-render-pass.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/hierarchy/hierarchy-render-pass.ts
similarity index 89%
rename from frontend/src/app/components/wp-fast-table/builders/modes/hierarchy/hierarchy-render-pass.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/hierarchy/hierarchy-render-pass.ts
index 82a539a24e7..64309aec815 100644
--- a/frontend/src/app/components/wp-fast-table/builders/modes/hierarchy/hierarchy-render-pass.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/hierarchy/hierarchy-render-pass.ts
@@ -1,19 +1,19 @@
import { Injector } from '@angular/core';
import { additionalHierarchyRowClassName, SingleHierarchyRowBuilder } from './single-hierarchy-row-builder';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { PrimaryRenderPass, RowRenderInfo } from "core-components/wp-fast-table/builders/primary-render-pass";
-import { States } from "core-components/states.service";
-import { WorkPackageTable } from "core-components/wp-fast-table/wp-fast-table";
-import { WorkPackageTableRow } from "core-components/wp-fast-table/wp-table.interfaces";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { PrimaryRenderPass, RowRenderInfo } from "core-app/features/work-packages/components/wp-fast-table/builders/primary-render-pass";
+import { States } from "core-app/core/states/states.service";
+import { WorkPackageTable } from "core-app/features/work-packages/components/wp-fast-table/wp-fast-table";
+import { WorkPackageTableRow } from "core-app/features/work-packages/components/wp-fast-table/wp-table.interfaces";
import {
ancestorClassIdentifier,
hierarchyGroupClass
-} from "core-components/wp-fast-table/helpers/wp-table-hierarchy-helpers";
-import { WorkPackageViewHierarchies } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-table-hierarchies";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { WorkPackageViewHierarchiesService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+} from "core-app/features/work-packages/components/wp-fast-table/helpers/wp-table-hierarchy-helpers";
+import { WorkPackageViewHierarchies } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-table-hierarchies";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { WorkPackageViewHierarchiesService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
export class HierarchyRenderPass extends PrimaryRenderPass {
diff --git a/frontend/src/app/components/wp-fast-table/builders/modes/hierarchy/hierarchy-rows-builder.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/hierarchy/hierarchy-rows-builder.ts
similarity index 73%
rename from frontend/src/app/components/wp-fast-table/builders/modes/hierarchy/hierarchy-rows-builder.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/hierarchy/hierarchy-rows-builder.ts
index fec53279525..1f5e7bd01b8 100644
--- a/frontend/src/app/components/wp-fast-table/builders/modes/hierarchy/hierarchy-rows-builder.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/hierarchy/hierarchy-rows-builder.ts
@@ -1,12 +1,12 @@
import { Injector } from '@angular/core';
-import { States } from '../../../../states.service';
import { WorkPackageTable } from '../../../wp-fast-table';
import { RowsBuilder } from '../rows-builder';
import { HierarchyRenderPass } from './hierarchy-render-pass';
import { SingleHierarchyRowBuilder } from './single-hierarchy-row-builder';
-import { WorkPackageViewHierarchiesService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
-import { WorkPackageViewColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { WorkPackageViewHierarchiesService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
+import { WorkPackageViewColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { States } from "core-app/core/states/states.service";
export class HierarchyRowsBuilder extends RowsBuilder {
diff --git a/frontend/src/app/components/wp-fast-table/builders/modes/hierarchy/single-hierarchy-row-builder.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/hierarchy/single-hierarchy-row-builder.ts
similarity index 89%
rename from frontend/src/app/components/wp-fast-table/builders/modes/hierarchy/single-hierarchy-row-builder.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/hierarchy/single-hierarchy-row-builder.ts
index 9153aff8a4a..f243dd73fc3 100644
--- a/frontend/src/app/components/wp-fast-table/builders/modes/hierarchy/single-hierarchy-row-builder.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/hierarchy/single-hierarchy-row-builder.ts
@@ -1,15 +1,15 @@
import { Injector } from '@angular/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { SingleRowBuilder } from "core-components/wp-fast-table/builders/rows/single-row-builder";
-import { WorkPackageTable } from "core-components/wp-fast-table/wp-fast-table";
-import { States } from "core-components/states.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { SingleRowBuilder } from "core-app/features/work-packages/components/wp-fast-table/builders/rows/single-row-builder";
+import { WorkPackageTable } from "core-app/features/work-packages/components/wp-fast-table/wp-fast-table";
+import { States } from "core-app/core/states/states.service";
import {
collapsedGroupClass,
hierarchyGroupClass,
hierarchyRootClass
-} from "core-components/wp-fast-table/helpers/wp-table-hierarchy-helpers";
-import { WorkPackageViewHierarchiesService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+} from "core-app/features/work-packages/components/wp-fast-table/helpers/wp-table-hierarchy-helpers";
+import { WorkPackageViewHierarchiesService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export const indicatorCollapsedClass = '-hierarchy-collapsed';
export const hierarchyCellClassName = 'wp-table--hierarchy-span';
diff --git a/frontend/src/app/components/wp-fast-table/builders/modes/plain/plain-render-pass.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/plain/plain-render-pass.ts
similarity index 100%
rename from frontend/src/app/components/wp-fast-table/builders/modes/plain/plain-render-pass.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/plain/plain-render-pass.ts
diff --git a/frontend/src/app/components/wp-fast-table/builders/modes/plain/plain-rows-builder.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/plain/plain-rows-builder.ts
similarity index 85%
rename from frontend/src/app/components/wp-fast-table/builders/modes/plain/plain-rows-builder.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/plain/plain-rows-builder.ts
index e98846b4230..cd5ff7dae1c 100644
--- a/frontend/src/app/components/wp-fast-table/builders/modes/plain/plain-rows-builder.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/plain/plain-rows-builder.ts
@@ -1,11 +1,11 @@
import { Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
import { WorkPackageTable } from '../../../wp-fast-table';
import { PrimaryRenderPass } from '../../primary-render-pass';
import { SingleRowBuilder } from '../../rows/single-row-builder';
import { RowsBuilder } from '../rows-builder';
import { PlainRenderPass } from './plain-render-pass';
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class PlainRowsBuilder extends RowsBuilder {
diff --git a/frontend/src/app/components/wp-fast-table/builders/modes/rows-builder.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/rows-builder.ts
similarity index 79%
rename from frontend/src/app/components/wp-fast-table/builders/modes/rows-builder.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/rows-builder.ts
index 7deb26b0cab..81dbd1a410d 100644
--- a/frontend/src/app/components/wp-fast-table/builders/modes/rows-builder.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/modes/rows-builder.ts
@@ -1,8 +1,8 @@
import { Injector } from '@angular/core';
-import { States } from '../../../states.service';
import { WorkPackageTable } from '../../wp-fast-table';
import { PrimaryRenderPass } from '../primary-render-pass';
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { States } from "core-app/core/states/states.service";
export abstract class RowsBuilder {
diff --git a/frontend/src/app/components/wp-fast-table/builders/primary-render-pass.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/primary-render-pass.ts
similarity index 89%
rename from frontend/src/app/components/wp-fast-table/builders/primary-render-pass.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/primary-render-pass.ts
index ade315ff788..fa878d618ca 100644
--- a/frontend/src/app/components/wp-fast-table/builders/primary-render-pass.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/primary-render-pass.ts
@@ -1,18 +1,16 @@
import { Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { timeOutput } from '../../../helpers/debug_output';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { States } from '../../states.service';
-
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
import { WorkPackageTable } from '../wp-fast-table';
import { RelationRenderInfo, RelationsRenderPass } from './relations/relations-render-pass';
import { SingleRowBuilder } from './rows/single-row-builder';
import { TimelineRenderPass } from './timeline/timeline-render-pass';
-import { HighlightingRenderPass } from "core-components/wp-fast-table/builders/highlighting/row-highlight-render-pass";
-import { DragDropHandleRenderPass } from "core-components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-render-pass";
-import { RenderedWorkPackage } from "core-app/modules/work_packages/render-info/rendered-work-package.type";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { HighlightingRenderPass } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/row-highlight-render-pass";
+import { DragDropHandleRenderPass } from "core-app/features/work-packages/components/wp-fast-table/builders/drag-and-drop/drag-drop-handle-render-pass";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { States } from "core-app/core/states/states.service";
+import { timeOutput } from "core-app/shared/helpers/debug_output";
export type RenderedRowType = 'primary'|'relations';
diff --git a/frontend/src/app/components/wp-fast-table/builders/relation-cell-builder.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/relation-cell-builder.ts
similarity index 83%
rename from frontend/src/app/components/wp-fast-table/builders/relation-cell-builder.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/relation-cell-builder.ts
index 7a50936b6d8..656f5c2a646 100644
--- a/frontend/src/app/components/wp-fast-table/builders/relation-cell-builder.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/relation-cell-builder.ts
@@ -1,12 +1,12 @@
import { Injector } from '@angular/core';
-import { States } from '../../states.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { tdClassName } from './cell-builder';
-import { RelationResource } from 'core-app/modules/hal/resources/relation-resource';
import { QueryColumn } from '../../wp-query/query-column';
import { WorkPackageRelationsService } from '../../wp-relations/wp-relations.service';
-import { WorkPackageViewRelationColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { WorkPackageViewRelationColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { States } from "core-app/core/states/states.service";
+import { RelationResource } from "core-app/features/hal/resources/relation-resource";
export const relationCellTdClassName = 'wp-table--relation-cell-td';
export const relationCellIndicatorClassName = 'wp-table--relation-indicator';
diff --git a/frontend/src/app/components/wp-fast-table/builders/relations/relation-row-builder.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/relations/relation-row-builder.ts
similarity index 88%
rename from frontend/src/app/components/wp-fast-table/builders/relations/relation-row-builder.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/relations/relation-row-builder.ts
index 2028e5673b2..7c4fa66cbdd 100644
--- a/frontend/src/app/components/wp-fast-table/builders/relations/relation-row-builder.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/relations/relation-row-builder.ts
@@ -1,14 +1,14 @@
import { Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { RelationResource } from 'core-app/modules/hal/resources/relation-resource';
-import { States } from '../../../states.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
import { isRelationColumn, QueryColumn } from '../../../wp-query/query-column';
import { WorkPackageTable } from '../../wp-fast-table';
import { tdClassName } from '../cell-builder';
import { commonRowClassName, SingleRowBuilder, tableRowClassName } from '../rows/single-row-builder';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { RelationColumnType } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { RelationColumnType } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { States } from "core-app/core/states/states.service";
+import { RelationResource } from "core-app/features/hal/resources/relation-resource";
export function relationGroupClass(workPackageId:string) {
return `__relations-expanded-from-${workPackageId}`;
diff --git a/frontend/src/app/components/wp-fast-table/builders/relations/relations-render-pass.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/relations/relations-render-pass.ts
similarity index 81%
rename from frontend/src/app/components/wp-fast-table/builders/relations/relations-render-pass.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/relations/relations-render-pass.ts
index bc6498dd96c..a350415b401 100644
--- a/frontend/src/app/components/wp-fast-table/builders/relations/relations-render-pass.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/relations/relations-render-pass.ts
@@ -1,17 +1,17 @@
import { Injector } from '@angular/core';
-import { RelationResource } from 'core-app/modules/hal/resources/relation-resource';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { PrimaryRenderPass, RowRenderInfo } from '../primary-render-pass';
import { relationGroupClass, RelationRowBuilder } from './relation-row-builder';
-import { QueryColumn } from 'core-components/wp-query/query-column';
-import { WorkPackageRelationsService } from "core-components/wp-relations/wp-relations.service";
-import { WorkPackageTable } from "core-components/wp-fast-table/wp-fast-table";
-import { WorkPackageViewColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service";
+import { QueryColumn } from 'core-app/features/work-packages/components/wp-query/query-column';
+import { WorkPackageRelationsService } from "core-app/features/work-packages/components/wp-relations/wp-relations.service";
+import { WorkPackageTable } from "core-app/features/work-packages/components/wp-fast-table/wp-fast-table";
+import { WorkPackageViewColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service";
import {
RelationColumnType,
WorkPackageViewRelationColumnsService
-} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+} from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { RelationResource } from "core-app/features/hal/resources/relation-resource";
export interface RelationRenderInfo extends RowRenderInfo {
data:{
diff --git a/frontend/src/app/components/wp-fast-table/builders/rows/single-row-builder.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/rows/single-row-builder.ts
similarity index 87%
rename from frontend/src/app/components/wp-fast-table/builders/rows/single-row-builder.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/rows/single-row-builder.ts
index 1cb9a1f5f67..cf404ba5195 100644
--- a/frontend/src/app/components/wp-fast-table/builders/rows/single-row-builder.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/rows/single-row-builder.ts
@@ -1,21 +1,21 @@
import { Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { locateTableRowByIdentifier } from 'core-components/wp-fast-table/helpers/wp-table-row-helpers';
-import { debugLog } from '../../../../helpers/debug_output';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { locateTableRowByIdentifier } from 'core-app/features/work-packages/components/wp-fast-table/helpers/wp-table-row-helpers';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { isRelationColumn, QueryColumn } from '../../../wp-query/query-column';
-import { WorkPackageViewColumnsService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service';
+import { WorkPackageViewColumnsService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service';
import { WorkPackageTable } from '../../wp-fast-table';
import { CellBuilder, tdClassName } from '../cell-builder';
import { RelationCellbuilder } from '../relation-cell-builder';
import { checkedClassName } from '../ui-state-link-builder';
-import { TableActionRenderer } from 'core-components/wp-fast-table/builders/table-action-renderer';
-import { WorkPackageViewSelectionService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { TableActionRenderer } from 'core-app/features/work-packages/components/wp-fast-table/builders/table-action-renderer';
+import { WorkPackageViewSelectionService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
import {
internalContextMenuColumn,
internalSortColumn
-} from "core-components/wp-fast-table/builders/internal-sort-columns";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+} from "core-app/features/work-packages/components/wp-fast-table/builders/internal-sort-columns";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { debugLog } from "core-app/shared/helpers/debug_output";
// Work package table row entries
export const tableRowClassName = 'wp-table--row';
diff --git a/frontend/src/app/components/wp-fast-table/builders/table-action-renderer.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/table-action-renderer.ts
similarity index 62%
rename from frontend/src/app/components/wp-fast-table/builders/table-action-renderer.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/table-action-renderer.ts
index d9547134846..02879555cbe 100644
--- a/frontend/src/app/components/wp-fast-table/builders/table-action-renderer.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/table-action-renderer.ts
@@ -1,10 +1,10 @@
import { Injector } from '@angular/core';
import { tdClassName } from './cell-builder';
-import { OpTableActionsService } from 'core-components/wp-table/table-actions/table-actions.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { contextMenuSpanClassName, contextMenuTdClassName } from "core-components/wp-table/table-actions/table-action";
-import { internalContextMenuColumn } from "core-components/wp-fast-table/builders/internal-sort-columns";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { OpTableActionsService } from 'core-app/features/work-packages/components/wp-table/table-actions/table-actions.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { contextMenuSpanClassName, contextMenuTdClassName } from "core-app/features/work-packages/components/wp-table/table-actions/table-action";
+import { internalContextMenuColumn } from "core-app/features/work-packages/components/wp-fast-table/builders/internal-sort-columns";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class TableActionRenderer {
diff --git a/frontend/src/app/components/wp-fast-table/builders/timeline/timeline-render-pass.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/timeline/timeline-render-pass.ts
similarity index 100%
rename from frontend/src/app/components/wp-fast-table/builders/timeline/timeline-render-pass.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/timeline/timeline-render-pass.ts
diff --git a/frontend/src/app/components/wp-fast-table/builders/timeline/timeline-row-builder.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/timeline/timeline-row-builder.ts
similarity index 76%
rename from frontend/src/app/components/wp-fast-table/builders/timeline/timeline-row-builder.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/timeline/timeline-row-builder.ts
index 283ba0a3ce6..28952d229e9 100644
--- a/frontend/src/app/components/wp-fast-table/builders/timeline/timeline-row-builder.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/timeline/timeline-row-builder.ts
@@ -1,10 +1,10 @@
import { Injector } from '@angular/core';
-import { States } from '../../../states.service';
+import { States } from "core-app/core/states/states.service";
import { WorkPackageTable } from '../../wp-fast-table';
import { commonRowClassName } from '../rows/single-row-builder';
-import { WorkPackageViewTimelineService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { WorkPackageViewTimelineService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
export const timelineCellClassName = 'wp-timeline-cell';
diff --git a/frontend/src/app/components/wp-fast-table/builders/ui-state-link-builder.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/ui-state-link-builder.ts
similarity index 91%
rename from frontend/src/app/components/wp-fast-table/builders/ui-state-link-builder.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/builders/ui-state-link-builder.ts
index 41628024028..e577554074c 100644
--- a/frontend/src/app/components/wp-fast-table/builders/ui-state-link-builder.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/ui-state-link-builder.ts
@@ -1,5 +1,5 @@
-import { KeepTabService } from 'core-components/wp-single-view-tabs/keep-tab/keep-tab.service';
import { StateService } from '@uirouter/core';
+import { KeepTabService } from "core-app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service";
export const uiStateLinkClass = '__ui-state-link';
export const checkedClassName = '-checked';
@@ -46,4 +46,4 @@ export class UiStateLinkBuilder {
return a;
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/app/components/wp-fast-table/handlers/cell/edit-cell-handler.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/cell/edit-cell-handler.ts
similarity index 80%
rename from frontend/src/app/components/wp-fast-table/handlers/cell/edit-cell-handler.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/cell/edit-cell-handler.ts
index 303b47756c5..5c41bf456dc 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/cell/edit-cell-handler.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/cell/edit-cell-handler.ts
@@ -1,16 +1,15 @@
import { Injector } from '@angular/core';
-import { debugLog } from '../../../../helpers/debug_output';
-import { States } from '../../../states.service';
-import { displayClassName, editableClassName, readOnlyClassName } from 'core-app/modules/fields/display/display-field-renderer';
-
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
+import { displayClassName, editableClassName, readOnlyClassName } from 'core-app/shared/components/fields/display/display-field-renderer';
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
import { tableRowClassName } from '../../builders/rows/single-row-builder';
import { WorkPackageTable } from '../../wp-fast-table';
import { ClickOrEnterHandler } from '../click-or-enter-handler';
import { TableEventComponent, TableEventHandler } from '../table-handler-registry';
-import { ClickPositionMapper } from "core-app/modules/common/set-click-position/set-click-position";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { EditFieldHandler } from "core-app/modules/fields/edit/editing-portal/edit-field-handler";
+import { ClickPositionMapper } from "core-app/shared/helpers/set-click-position/set-click-position";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { EditFieldHandler } from "core-app/shared/components/fields/edit/editing-portal/edit-field-handler";
+import { States } from "core-app/core/states/states.service";
+import { debugLog } from "core-app/shared/helpers/debug_output";
export class EditCellHandler extends ClickOrEnterHandler implements TableEventHandler {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/cell/relations-cell-handler.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/cell/relations-cell-handler.ts
similarity index 88%
rename from frontend/src/app/components/wp-fast-table/handlers/cell/relations-cell-handler.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/cell/relations-cell-handler.ts
index 65745871504..24010a8375d 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/cell/relations-cell-handler.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/cell/relations-cell-handler.ts
@@ -1,12 +1,12 @@
import { Injector } from '@angular/core';
-import { debugLog } from '../../../../helpers/debug_output';
import { relationCellIndicatorClassName, relationCellTdClassName } from '../../builders/relation-cell-builder';
import { tableRowClassName } from '../../builders/rows/single-row-builder';
import { WorkPackageTable } from '../../wp-fast-table';
import { ClickOrEnterHandler } from '../click-or-enter-handler';
import { TableEventComponent, TableEventHandler } from '../table-handler-registry';
-import { WorkPackageViewRelationColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { WorkPackageViewRelationColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { debugLog } from "core-app/shared/helpers/debug_output";
export class RelationsCellHandler extends ClickOrEnterHandler implements TableEventHandler {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/click-or-enter-handler.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/click-or-enter-handler.ts
similarity index 77%
rename from frontend/src/app/components/wp-fast-table/handlers/click-or-enter-handler.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/click-or-enter-handler.ts
index 68379a1d785..5906dde3078 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/click-or-enter-handler.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/click-or-enter-handler.ts
@@ -1,6 +1,6 @@
-import { keyCodes } from 'core-app/modules/common/keyCodes.enum';
+import { keyCodes } from 'core-app/shared/helpers/keyCodes.enum';
import { WorkPackageTable } from "../wp-fast-table";
-import { TableEventComponent } from "core-components/wp-fast-table/handlers/table-handler-registry";
+import { TableEventComponent } from "core-app/features/work-packages/components/wp-fast-table/handlers/table-handler-registry";
/**
diff --git a/frontend/src/app/components/wp-fast-table/handlers/context-menu/context-menu-click-handler.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/context-menu/context-menu-click-handler.ts
similarity index 78%
rename from frontend/src/app/components/wp-fast-table/handlers/context-menu/context-menu-click-handler.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/context-menu/context-menu-click-handler.ts
index 28880941eba..d47b451aab7 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/context-menu/context-menu-click-handler.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/context-menu/context-menu-click-handler.ts
@@ -1,10 +1,10 @@
import { Injector } from '@angular/core';
-import { debugLog } from '../../../../helpers/debug_output';
+import { debugLog } from 'core-app/shared/helpers/debug_output';
import { uiStateLinkClass } from '../../builders/ui-state-link-builder';
import { WorkPackageTable } from '../../wp-fast-table';
import { ContextMenuHandler } from './context-menu-handler';
-import { contextMenuLinkClassName } from "core-components/wp-table/table-actions/table-action";
-import { TableEventComponent } from "core-components/wp-fast-table/handlers/table-handler-registry";
+import { contextMenuLinkClassName } from "core-app/features/work-packages/components/wp-table/table-actions/table-action";
+import { TableEventComponent } from "core-app/features/work-packages/components/wp-fast-table/handlers/table-handler-registry";
export class ContextMenuClickHandler extends ContextMenuHandler {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/context-menu/context-menu-handler.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/context-menu/context-menu-handler.ts
similarity index 77%
rename from frontend/src/app/components/wp-fast-table/handlers/context-menu/context-menu-handler.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/context-menu/context-menu-handler.ts
index f7b16a03c49..1ba8b175401 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/context-menu/context-menu-handler.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/context-menu/context-menu-handler.ts
@@ -2,9 +2,9 @@ import { Injector } from '@angular/core';
import { tableRowClassName } from '../../builders/rows/single-row-builder';
import { WorkPackageTable } from '../../wp-fast-table';
import { TableEventComponent, TableEventHandler } from '../table-handler-registry';
-import { OPContextMenuService } from "core-components/op-context-menu/op-context-menu.service";
-import { WorkPackageTableContextMenu } from "core-components/op-context-menu/wp-context-menu/wp-table-context-menu.directive";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { OPContextMenuService } from "core-app/shared/components/op-context-menu/op-context-menu.service";
+import { WorkPackageTableContextMenu } from "core-app/shared/components/op-context-menu/wp-context-menu/wp-table-context-menu.directive";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export abstract class ContextMenuHandler implements TableEventHandler {
// Injections
diff --git a/frontend/src/app/components/wp-fast-table/handlers/context-menu/context-menu-keyboard-handler.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/context-menu/context-menu-keyboard-handler.ts
similarity index 85%
rename from frontend/src/app/components/wp-fast-table/handlers/context-menu/context-menu-keyboard-handler.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/context-menu/context-menu-keyboard-handler.ts
index 08855e96c89..fb8c685de63 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/context-menu/context-menu-keyboard-handler.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/context-menu/context-menu-keyboard-handler.ts
@@ -1,8 +1,8 @@
import { Injector } from '@angular/core';
-import { keyCodes } from 'core-app/modules/common/keyCodes.enum';
+import { keyCodes } from 'core-app/shared/helpers/keyCodes.enum';
import { WorkPackageTable } from '../../wp-fast-table';
import { ContextMenuHandler } from './context-menu-handler';
-import { TableEventComponent } from "core-components/wp-fast-table/handlers/table-handler-registry";
+import { TableEventComponent } from "core-app/features/work-packages/components/wp-fast-table/handlers/table-handler-registry";
export class ContextMenuKeyboardHandler extends ContextMenuHandler {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/context-menu/context-menu-rightclick-handler.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/context-menu/context-menu-rightclick-handler.ts
similarity index 81%
rename from frontend/src/app/components/wp-fast-table/handlers/context-menu/context-menu-rightclick-handler.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/context-menu/context-menu-rightclick-handler.ts
index 592272845e2..0217ef353a7 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/context-menu/context-menu-rightclick-handler.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/context-menu/context-menu-rightclick-handler.ts
@@ -1,13 +1,13 @@
import { Injector } from '@angular/core';
-import { debugLog } from '../../../../helpers/debug_output';
+import { debugLog } from 'core-app/shared/helpers/debug_output';
import { tableRowClassName } from '../../builders/rows/single-row-builder';
import { timelineCellClassName } from '../../builders/timeline/timeline-row-builder';
import { uiStateLinkClass } from '../../builders/ui-state-link-builder';
import { WorkPackageTable } from '../../wp-fast-table';
import { ContextMenuHandler } from './context-menu-handler';
-import { WorkPackageViewSelectionService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { TableEventComponent } from "core-components/wp-fast-table/handlers/table-handler-registry";
+import { WorkPackageViewSelectionService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { TableEventComponent } from "core-app/features/work-packages/components/wp-fast-table/handlers/table-handler-registry";
export class ContextMenuRightClickHandler extends ContextMenuHandler {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/row/click-handler.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/row/click-handler.ts
similarity index 78%
rename from frontend/src/app/components/wp-fast-table/handlers/row/click-handler.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/row/click-handler.ts
index b51430e52a4..e4e69509441 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/row/click-handler.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/row/click-handler.ts
@@ -1,16 +1,15 @@
import { Injector } from '@angular/core';
import { StateService } from '@uirouter/core';
-import { WorkPackageViewFocusService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service';
-import { debugLog } from '../../../../helpers/debug_output';
-import { States } from '../../../states.service';
+import { WorkPackageViewFocusService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service';
+import { States } from "core-app/core/states/states.service";
import { KeepTabService } from '../../../wp-single-view-tabs/keep-tab/keep-tab.service';
import { tableRowClassName } from '../../builders/rows/single-row-builder';
-import { WorkPackageTable } from '../../wp-fast-table';
import { TableEventComponent, TableEventHandler } from '../table-handler-registry';
-import { WorkPackageViewSelectionService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
-import { displayClassName } from "core-app/modules/fields/display/display-field-renderer";
-import { activeFieldClassName } from "core-app/modules/fields/edit/edit-form/edit-form";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { WorkPackageViewSelectionService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { displayClassName } from "core-app/shared/components/fields/display/display-field-renderer";
+import { activeFieldClassName } from "core-app/shared/components/fields/edit/edit-form/edit-form";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { debugLog } from "core-app/shared/helpers/debug_output";
export class RowClickHandler implements TableEventHandler {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/row/double-click-handler.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/row/double-click-handler.ts
similarity index 71%
rename from frontend/src/app/components/wp-fast-table/handlers/row/double-click-handler.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/row/double-click-handler.ts
index 36e27e4a883..a066cf2d582 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/row/double-click-handler.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/row/double-click-handler.ts
@@ -1,17 +1,17 @@
import { Injector } from '@angular/core';
import { StateService } from '@uirouter/core';
-import { WorkPackageViewFocusService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service';
-import { debugLog } from '../../../../helpers/debug_output';
-import { States } from '../../../states.service';
+import { WorkPackageViewFocusService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service';
+import { debugLog } from 'core-app/shared/helpers/debug_output';
+import { States } from "core-app/core/states/states.service";
import { tdClassName } from '../../builders/cell-builder';
import { tableRowClassName } from '../../builders/rows/single-row-builder';
import { WorkPackageTable } from '../../wp-fast-table';
import { TableEventComponent, TableEventHandler } from '../table-handler-registry';
-import { LinkHandling } from "core-app/modules/common/link-handling/link-handling";
-import { WorkPackageViewSelectionService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
-import { displayClassName } from "core-app/modules/fields/display/display-field-renderer";
-import { activeFieldClassName } from "core-app/modules/fields/edit/edit-form/edit-form";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { LinkHandling } from "core-app/shared/helpers/link-handling/link-handling";
+import { WorkPackageViewSelectionService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { displayClassName } from "core-app/shared/components/fields/display/display-field-renderer";
+import { activeFieldClassName } from "core-app/shared/components/fields/edit/edit-form/edit-form";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class RowDoubleClickHandler implements TableEventHandler {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/row/group-row-handler.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/row/group-row-handler.ts
similarity index 71%
rename from frontend/src/app/components/wp-fast-table/handlers/row/group-row-handler.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/row/group-row-handler.ts
index 3acb66c1891..f9f63ce7110 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/row/group-row-handler.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/row/group-row-handler.ts
@@ -1,9 +1,9 @@
import { Injector } from '@angular/core';
import { TableEventComponent, TableEventHandler } from '../table-handler-registry';
-import { IsolatedQuerySpace } from 'core-app/modules/work_packages/query-space/isolated-query-space';
-import { rowGroupClassName } from 'core-components/wp-fast-table/builders/modes/grouped/grouped-classes.constants';
-import { InjectField } from 'core-app/helpers/angular/inject-field.decorator';
-import { WorkPackageViewCollapsedGroupsService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service';
+import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';
+import { rowGroupClassName } from 'core-app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-classes.constants';
+import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';
+import { WorkPackageViewCollapsedGroupsService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service';
export class GroupRowHandler implements TableEventHandler {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/row/hierarchy-click-handler.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/row/hierarchy-click-handler.ts
similarity index 72%
rename from frontend/src/app/components/wp-fast-table/handlers/row/hierarchy-click-handler.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/row/hierarchy-click-handler.ts
index 62adb503d31..0e723c51718 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/row/hierarchy-click-handler.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/row/hierarchy-click-handler.ts
@@ -1,11 +1,11 @@
import { Injector } from '@angular/core';
-import { States } from '../../../states.service';
+import { States } from "core-app/core/states/states.service";
import { tableRowClassName } from '../../builders/rows/single-row-builder';
import { WorkPackageTable } from '../../wp-fast-table';
import { ClickOrEnterHandler } from '../click-or-enter-handler';
-import { TableEventComponent, TableEventHandler } from "core-components/wp-fast-table/handlers/table-handler-registry";
-import { WorkPackageViewHierarchiesService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { TableEventComponent, TableEventHandler } from "core-app/features/work-packages/components/wp-fast-table/handlers/table-handler-registry";
+import { WorkPackageViewHierarchiesService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class HierarchyClickHandler extends ClickOrEnterHandler implements TableEventHandler {
// Injections
diff --git a/frontend/src/app/components/wp-fast-table/handlers/row/wp-state-links-handler.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/row/wp-state-links-handler.ts
similarity index 82%
rename from frontend/src/app/components/wp-fast-table/handlers/row/wp-state-links-handler.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/row/wp-state-links-handler.ts
index 5670119ff10..cb0da587860 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/row/wp-state-links-handler.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/row/wp-state-links-handler.ts
@@ -1,15 +1,15 @@
import { Injector } from '@angular/core';
-import { WorkPackageViewFocusService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { States } from '../../../states.service';
+import { WorkPackageViewFocusService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { States } from "core-app/core/states/states.service";
import { KeepTabService } from '../../../wp-single-view-tabs/keep-tab/keep-tab.service';
import { tableRowClassName } from '../../builders/rows/single-row-builder';
import { uiStateLinkClass } from '../../builders/ui-state-link-builder';
import { WorkPackageTable } from '../../wp-fast-table';
import { TableEventComponent, TableEventHandler } from '../table-handler-registry';
import { StateService } from '@uirouter/core';
-import { WorkPackageViewSelectionService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { WorkPackageViewSelectionService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class WorkPackageStateLinksHandler implements TableEventHandler {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/state/columns-transformer.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/columns-transformer.ts
similarity index 67%
rename from frontend/src/app/components/wp-fast-table/handlers/state/columns-transformer.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/columns-transformer.ts
index 2a583d7bc24..2f44c64308d 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/state/columns-transformer.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/columns-transformer.ts
@@ -1,10 +1,10 @@
import { Injector } from '@angular/core';
-import { debugLog } from '../../../../helpers/debug_output';
+import { debugLog } from 'core-app/shared/helpers/debug_output';
import { WorkPackageTable } from '../../wp-fast-table';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { takeUntil } from "rxjs/operators";
-import { WorkPackageViewColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { WorkPackageViewColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class ColumnsTransformer {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/state/drag-and-drop-transformer.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/drag-and-drop-transformer.ts
similarity index 78%
rename from frontend/src/app/components/wp-fast-table/handlers/state/drag-and-drop-transformer.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/drag-and-drop-transformer.ts
index aab165d937b..98d46ac4167 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/state/drag-and-drop-transformer.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/drag-and-drop-transformer.ts
@@ -1,24 +1,23 @@
import { Injector } from '@angular/core';
import { WorkPackageTable } from '../../wp-fast-table';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { take, takeUntil } from "rxjs/operators";
-import { WorkPackageInlineCreateService } from "core-components/wp-inline-create/wp-inline-create.service";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { WorkPackageViewSortByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
-import { TableDragActionsRegistryService } from "core-components/wp-table/drag-and-drop/actions/table-drag-actions-registry.service";
-import { TableDragActionService } from "core-components/wp-table/drag-and-drop/actions/table-drag-action.service";
-import { States } from "core-components/states.service";
-import { tableRowClassName } from "core-components/wp-fast-table/builders/rows/single-row-builder";
-import { DragAndDropService } from "core-app/modules/common/drag-and-drop/drag-and-drop.service";
-import { DragAndDropHelpers } from "core-app/modules/common/drag-and-drop/drag-and-drop.helpers";
-import { WorkPackageViewOrderService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-order.service";
-import { RenderedWorkPackage } from "core-app/modules/work_packages/render-info/rendered-work-package.type";
-import { BrowserDetector } from "core-app/modules/common/browser/browser-detector.service";
-import { WorkPackagesListService } from "core-components/wp-list/wp-list.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { isInsideCollapsedGroup } from "core-components/wp-fast-table/helpers/wp-table-row-helpers";
-import { collapsedGroupClass } from "core-components/wp-fast-table/helpers/wp-table-hierarchy-helpers";
+import { WorkPackageInlineCreateService } from "core-app/features/work-packages/components/wp-inline-create/wp-inline-create.service";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { WorkPackageViewSortByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
+import { TableDragActionsRegistryService } from "core-app/features/work-packages/components/wp-table/drag-and-drop/actions/table-drag-actions-registry.service";
+import { TableDragActionService } from "core-app/features/work-packages/components/wp-table/drag-and-drop/actions/table-drag-action.service";
+import { States } from "core-app/core/states/states.service";
+import { tableRowClassName } from "core-app/features/work-packages/components/wp-fast-table/builders/rows/single-row-builder";
+import { DragAndDropService } from "core-app/shared/helpers/drag-and-drop/drag-and-drop.service";
+import { DragAndDropHelpers } from "core-app/shared/helpers/drag-and-drop/drag-and-drop.helpers";
+import { WorkPackageViewOrderService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-order.service";
+import { BrowserDetector } from "core-app/core/browser/browser-detector.service";
+import { WorkPackagesListService } from "core-app/features/work-packages/components/wp-list/wp-list.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { isInsideCollapsedGroup } from "core-app/features/work-packages/components/wp-fast-table/helpers/wp-table-row-helpers";
+import { collapsedGroupClass } from "core-app/features/work-packages/components/wp-fast-table/helpers/wp-table-hierarchy-helpers";
export class DragAndDropTransformer {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/state/group-fold-transformer.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/group-fold-transformer.ts
similarity index 64%
rename from frontend/src/app/components/wp-fast-table/handlers/state/group-fold-transformer.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/group-fold-transformer.ts
index f7312523d68..606529e4445 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/state/group-fold-transformer.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/group-fold-transformer.ts
@@ -1,9 +1,9 @@
import { Injector } from '@angular/core';
import { distinctUntilChanged, takeUntil } from 'rxjs/operators';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { WorkPackageTable } from "core-components/wp-fast-table/wp-fast-table";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { WorkPackageViewCollapsedGroupsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { WorkPackageTable } from "core-app/features/work-packages/components/wp-fast-table/wp-fast-table";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { WorkPackageViewCollapsedGroupsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service";
export class GroupFoldTransformer {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/state/hierarchy-transformer.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/hierarchy-transformer.ts
similarity index 75%
rename from frontend/src/app/components/wp-fast-table/handlers/state/hierarchy-transformer.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/hierarchy-transformer.ts
index 54431eefa94..09394a60150 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/state/hierarchy-transformer.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/hierarchy-transformer.ts
@@ -1,18 +1,18 @@
import { Injector } from '@angular/core';
-import { scrollTableRowIntoView } from 'core-components/wp-fast-table/helpers/wp-table-row-helpers';
+import { scrollTableRowIntoView } from 'core-app/features/work-packages/components/wp-fast-table/helpers/wp-table-row-helpers';
import { distinctUntilChanged, filter, map, takeUntil } from 'rxjs/operators';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { WorkPackageViewHierarchiesService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
-import { WorkPackageTable } from "core-components/wp-fast-table/wp-fast-table";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { WorkPackageViewHierarchiesService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
+import { WorkPackageTable } from "core-app/features/work-packages/components/wp-fast-table/wp-fast-table";
import {
collapsedGroupClass,
hierarchyGroupClass,
hierarchyRootClass
-} from "core-components/wp-fast-table/helpers/wp-table-hierarchy-helpers";
-import { indicatorCollapsedClass } from "core-components/wp-fast-table/builders/modes/hierarchy/single-hierarchy-row-builder";
-import { tableRowClassName } from "core-components/wp-fast-table/builders/rows/single-row-builder";
-import { WorkPackageViewHierarchies } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-table-hierarchies";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+} from "core-app/features/work-packages/components/wp-fast-table/helpers/wp-table-hierarchy-helpers";
+import { indicatorCollapsedClass } from "core-app/features/work-packages/components/wp-fast-table/builders/modes/hierarchy/single-hierarchy-row-builder";
+import { tableRowClassName } from "core-app/features/work-packages/components/wp-fast-table/builders/rows/single-row-builder";
+import { WorkPackageViewHierarchies } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-table-hierarchies";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class HierarchyTransformer {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/state/highlighting-transformer.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/highlighting-transformer.ts
similarity index 64%
rename from frontend/src/app/components/wp-fast-table/handlers/state/highlighting-transformer.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/highlighting-transformer.ts
index dde2ca73a49..aa1dffca71a 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/state/highlighting-transformer.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/highlighting-transformer.ts
@@ -1,9 +1,9 @@
import { Injector } from '@angular/core';
import { distinctUntilChanged, takeUntil } from 'rxjs/operators';
import { WorkPackageTable } from '../../wp-fast-table';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { WorkPackageViewHighlightingService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-highlighting.service';
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { WorkPackageViewHighlightingService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-highlighting.service';
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class HighlightingTransformer {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/state/relations-transformer.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/relations-transformer.ts
similarity index 69%
rename from frontend/src/app/components/wp-fast-table/handlers/state/relations-transformer.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/relations-transformer.ts
index 386c3a6a822..a39da7fe757 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/state/relations-transformer.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/relations-transformer.ts
@@ -1,9 +1,9 @@
import { Injector } from '@angular/core';
import { WorkPackageTable } from '../../wp-fast-table';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { takeUntil } from "rxjs/operators";
-import { WorkPackageViewRelationColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { WorkPackageViewRelationColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class RelationsTransformer {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/state/rows-transformer.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/rows-transformer.ts
similarity index 69%
rename from frontend/src/app/components/wp-fast-table/handlers/state/rows-transformer.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/rows-transformer.ts
index 80e35f257b9..a8b131efdfd 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/state/rows-transformer.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/rows-transformer.ts
@@ -1,12 +1,12 @@
import { Injector } from '@angular/core';
import { filter, takeUntil } from 'rxjs/operators';
import { WorkPackageTable } from '../../wp-fast-table';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { States } from 'core-components/states.service';
-import { WorkPackageViewOrderService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-order.service";
-import { WorkPackageViewSortByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { States } from 'core-app/core/states/states.service';
+import { WorkPackageViewOrderService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-order.service";
+import { WorkPackageViewSortByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
export class RowsTransformer {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/state/selection-transformer.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/selection-transformer.ts
similarity index 81%
rename from frontend/src/app/components/wp-fast-table/handlers/state/selection-transformer.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/selection-transformer.ts
index f4b6d7a7132..2dcc249a47e 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/state/selection-transformer.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/selection-transformer.ts
@@ -1,17 +1,17 @@
import { Injector } from '@angular/core';
-import { WorkPackageViewFocusService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service';
+import { WorkPackageViewFocusService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service';
import { takeUntil } from 'rxjs/operators';
import { tableRowClassName } from '../../builders/rows/single-row-builder';
import { checkedClassName } from '../../builders/ui-state-link-builder';
import { locateTableRow, scrollTableRowIntoView } from '../../helpers/wp-table-row-helpers';
import { WorkPackageTable } from '../../wp-fast-table';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { FocusHelperService } from 'core-app/modules/focus/focus-helper';
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { FocusHelperService } from 'core-app/shared/directives/focus/focus-helper';
import {
WorkPackageViewSelectionService,
WorkPackageViewSelectionState
-} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+} from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class SelectionTransformer {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/state/timeline-transformer.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/timeline-transformer.ts
similarity index 68%
rename from frontend/src/app/components/wp-fast-table/handlers/state/timeline-transformer.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/timeline-transformer.ts
index ff9868bd703..f51f49691ea 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/state/timeline-transformer.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/state/timeline-transformer.ts
@@ -1,10 +1,10 @@
import { Injector } from '@angular/core';
import { takeUntil } from 'rxjs/operators';
import { WorkPackageTable } from '../../wp-fast-table';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { WorkPackageViewTimelineService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service";
-import { WorkPackageTimelineState } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-table-timeline";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { WorkPackageViewTimelineService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service";
+import { WorkPackageTimelineState } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-table-timeline";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class TimelineTransformer {
diff --git a/frontend/src/app/components/wp-fast-table/handlers/table-handler-registry.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/table-handler-registry.ts
similarity index 83%
rename from frontend/src/app/components/wp-fast-table/handlers/table-handler-registry.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/handlers/table-handler-registry.ts
index 297b444a68e..0aae943167a 100644
--- a/frontend/src/app/components/wp-fast-table/handlers/table-handler-registry.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/handlers/table-handler-registry.ts
@@ -16,14 +16,14 @@ import { RelationsTransformer } from './state/relations-transformer';
import { RowsTransformer } from './state/rows-transformer';
import { SelectionTransformer } from './state/selection-transformer';
import { TimelineTransformer } from './state/timeline-transformer';
-import { HighlightingTransformer } from "core-components/wp-fast-table/handlers/state/highlighting-transformer";
-import { DragAndDropTransformer } from "core-components/wp-fast-table/handlers/state/drag-and-drop-transformer";
+import { HighlightingTransformer } from "core-app/features/work-packages/components/wp-fast-table/handlers/state/highlighting-transformer";
+import { DragAndDropTransformer } from "core-app/features/work-packages/components/wp-fast-table/handlers/state/drag-and-drop-transformer";
import {
WorkPackageViewEventHandler, WorkPackageViewOutputs,
WorkPackageViewHandlerRegistry
-} from "core-app/modules/work_packages/routing/wp-view-base/event-handling/event-handler-registry";
-import { WorkPackageFocusContext } from "core-components/wp-table/wp-table.component";
-import { GroupFoldTransformer } from "core-components/wp-fast-table/handlers/state/group-fold-transformer";
+} from "core-app/features/work-packages/routing/wp-view-base/event-handling/event-handler-registry";
+import { WorkPackageFocusContext } from "core-app/features/work-packages/components/wp-table/wp-table.component";
+import { GroupFoldTransformer } from "core-app/features/work-packages/components/wp-fast-table/handlers/state/group-fold-transformer";
type StateTransformers = {
// noinspection JSUnusedLocalSymbols
diff --git a/frontend/src/app/components/wp-fast-table/helpers/wp-table-hierarchy-helpers.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/helpers/wp-table-hierarchy-helpers.ts
similarity index 100%
rename from frontend/src/app/components/wp-fast-table/helpers/wp-table-hierarchy-helpers.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/helpers/wp-table-hierarchy-helpers.ts
diff --git a/frontend/src/app/components/wp-fast-table/helpers/wp-table-row-helpers.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/helpers/wp-table-row-helpers.ts
similarity index 92%
rename from frontend/src/app/components/wp-fast-table/helpers/wp-table-row-helpers.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/helpers/wp-table-row-helpers.ts
index d492c9825b1..b4f5a4ed164 100644
--- a/frontend/src/app/components/wp-fast-table/helpers/wp-table-row-helpers.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/helpers/wp-table-row-helpers.ts
@@ -1,7 +1,7 @@
/**
* Return the row html id attribute for the given work package ID.
*/
-import { collapsedGroupClass } from "core-components/wp-fast-table/helpers/wp-table-hierarchy-helpers";
+import { collapsedGroupClass } from "core-app/features/work-packages/components/wp-fast-table/helpers/wp-table-hierarchy-helpers";
export function rowId(workPackageId:string):string {
return `wp-row-${workPackageId}-table`;
diff --git a/frontend/src/app/components/wp-fast-table/wp-fast-table.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/wp-fast-table.ts
similarity index 87%
rename from frontend/src/app/components/wp-fast-table/wp-fast-table.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/wp-fast-table.ts
index 8fa5400e055..707c5720400 100644
--- a/frontend/src/app/components/wp-fast-table/wp-fast-table.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/wp-fast-table.ts
@@ -1,9 +1,8 @@
import { Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { IsolatedQuerySpace } from 'core-app/modules/work_packages/query-space/isolated-query-space';
-import { debugLog } from '../../helpers/debug_output';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { States } from '../states.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { States } from "core-app/core/states/states.service";
import { WorkPackageTimelineTableController } from '../wp-table/timeline/container/wp-timeline-container.directive';
import { GroupedRowsBuilder } from './builders/modes/grouped/grouped-rows-builder';
import { HierarchyRowsBuilder } from './builders/modes/hierarchy/hierarchy-rows-builder';
@@ -12,11 +11,11 @@ import { RowsBuilder } from './builders/modes/rows-builder';
import { PrimaryRenderPass } from './builders/primary-render-pass';
import { WorkPackageTableEditingContext } from './wp-table-editing';
import { WorkPackageTableRow } from './wp-table.interfaces';
-import { WorkPackageTableConfiguration } from 'core-app/components/wp-table/wp-table-configuration';
-import { RenderedWorkPackage } from 'core-app/modules/work_packages/render-info/rendered-work-package.type';
-import { InjectField } from 'core-app/helpers/angular/inject-field.decorator';
-import { APIV3Service } from 'core-app/modules/apiv3/api-v3.service';
-import { WorkPackageViewCollapsedGroupsService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service';
+import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';
+import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';
+import { WorkPackageViewCollapsedGroupsService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service';
+import { WorkPackageTableConfiguration } from "core-app/features/work-packages/components/wp-table/wp-table-configuration";
+import { debugLog } from "core-app/shared/helpers/debug_output";
export class WorkPackageTable {
diff --git a/frontend/src/app/components/wp-fast-table/wp-table-editing.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/wp-table-editing.ts
similarity index 63%
rename from frontend/src/app/components/wp-fast-table/wp-table-editing.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/wp-table-editing.ts
index 2c924e7ede7..228fa73f14a 100644
--- a/frontend/src/app/components/wp-fast-table/wp-table-editing.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/wp-table-editing.ts
@@ -1,11 +1,11 @@
import { Injector } from '@angular/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { WorkPackageTable } from 'core-components/wp-fast-table/wp-fast-table';
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
-import { EditForm } from "core-app/modules/fields/edit/edit-form/edit-form";
-import { TableEditForm } from "core-components/wp-edit-form/table-edit-form";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { WorkPackageTable } from 'core-app/features/work-packages/components/wp-fast-table/wp-fast-table';
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
+import { EditForm } from "core-app/shared/components/fields/edit/edit-form/edit-form";
+import { TableEditForm } from "core-app/features/work-packages/components/wp-edit-form/table-edit-form";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class WorkPackageTableEditingContext {
diff --git a/frontend/src/app/components/wp-fast-table/wp-table.interfaces.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/wp-table.interfaces.ts
similarity index 66%
rename from frontend/src/app/components/wp-fast-table/wp-table.interfaces.ts
rename to frontend/src/app/features/work-packages/components/wp-fast-table/wp-table.interfaces.ts
index f9fb63c6fef..d4c2edd9174 100644
--- a/frontend/src/app/components/wp-fast-table/wp-table.interfaces.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/wp-table.interfaces.ts
@@ -3,8 +3,8 @@
* May contain references to the current inserted row (if present)
* or the group it belonged to when initially rendered.
*/
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { GroupObject } from 'core-app/modules/hal/resources/wp-collection-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { GroupObject } from "core-app/features/hal/resources/wp-collection-resource";
export interface WorkPackageTableRow {
object:WorkPackageResource;
diff --git a/frontend/src/app/components/wp-form-group/wp-attribute-group.component.ts b/frontend/src/app/features/work-packages/components/wp-form-group/wp-attribute-group.component.ts
similarity index 87%
rename from frontend/src/app/components/wp-form-group/wp-attribute-group.component.ts
rename to frontend/src/app/features/work-packages/components/wp-form-group/wp-attribute-group.component.ts
index 7b4f271d07a..c6b1c426a23 100644
--- a/frontend/src/app/components/wp-form-group/wp-attribute-group.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-form-group/wp-attribute-group.component.ts
@@ -27,13 +27,16 @@
//++
import { Component, Injector, Input, AfterViewInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { FieldDescriptor, GroupDescriptor } from 'core-components/work-packages/wp-single-view/wp-single-view.component';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { EditFormComponent } from "core-app/modules/fields/edit/edit-form/edit-form.component";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { EditFormComponent } from "core-app/shared/components/fields/edit/edit-form/edit-form.component";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
import { fromEvent } from "rxjs";
import { debounceTime } from "rxjs/operators";
+import {
+ FieldDescriptor,
+ GroupDescriptor,
+} from "core-app/features/work-packages/components/wp-single-view/wp-single-view.component";
@Component({
selector: 'wp-attribute-group',
diff --git a/frontend/src/app/components/wp-form-group/wp-attribute-group.template.html b/frontend/src/app/features/work-packages/components/wp-form-group/wp-attribute-group.template.html
similarity index 100%
rename from frontend/src/app/components/wp-form-group/wp-attribute-group.template.html
rename to frontend/src/app/features/work-packages/components/wp-form-group/wp-attribute-group.template.html
diff --git a/frontend/src/app/components/wp-grid/wp-grid.component.ts b/frontend/src/app/features/work-packages/components/wp-grid/wp-grid.component.ts
similarity index 77%
rename from frontend/src/app/components/wp-grid/wp-grid.component.ts
rename to frontend/src/app/features/work-packages/components/wp-grid/wp-grid.component.ts
index c7a9bef9e85..a1dd5597d0a 100644
--- a/frontend/src/app/components/wp-grid/wp-grid.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-grid/wp-grid.component.ts
@@ -27,17 +27,17 @@
//++
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, Output } from "@angular/core";
-import { WorkPackageViewHighlightingService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-highlighting.service";
-import { CardViewOrientation } from "core-components/wp-card-view/wp-card-view.component";
-import { WorkPackageViewSortByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
+import { WorkPackageViewHighlightingService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-highlighting.service";
+import { CardViewOrientation } from "core-app/features/work-packages/components/wp-card-view/wp-card-view.component";
+import { WorkPackageViewSortByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
import { distinctUntilChanged, takeUntil } from "rxjs/operators";
-import { HighlightingMode } from "core-components/wp-fast-table/builders/highlighting/highlighting-mode.const";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { DragAndDropService } from "core-app/modules/common/drag-and-drop/drag-and-drop.service";
-import { WorkPackageCardDragAndDropService } from "core-components/wp-card-view/services/wp-card-drag-and-drop.service";
-import { WorkPackagesListService } from "core-components/wp-list/wp-list.service";
-import { WorkPackageTableConfiguration } from "core-components/wp-table/wp-table-configuration";
-import { WorkPackageViewOutputs } from "core-app/modules/work_packages/routing/wp-view-base/event-handling/event-handler-registry";
+import { HighlightingMode } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting-mode.const";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { DragAndDropService } from "core-app/shared/helpers/drag-and-drop/drag-and-drop.service";
+import { WorkPackageCardDragAndDropService } from "core-app/features/work-packages/components/wp-card-view/services/wp-card-drag-and-drop.service";
+import { WorkPackagesListService } from "core-app/features/work-packages/components/wp-list/wp-list.service";
+import { WorkPackageTableConfiguration } from "core-app/features/work-packages/components/wp-table/wp-table-configuration";
+import { WorkPackageViewOutputs } from "core-app/features/work-packages/routing/wp-view-base/event-handling/event-handler-registry";
@Component({
selector: 'wp-grid',
diff --git a/frontend/src/app/components/wp-inline-create/inline-create-row-builder.ts b/frontend/src/app/features/work-packages/components/wp-inline-create/inline-create-row-builder.ts
similarity index 70%
rename from frontend/src/app/components/wp-inline-create/inline-create-row-builder.ts
rename to frontend/src/app/features/work-packages/components/wp-inline-create/inline-create-row-builder.ts
index 1c11092aef5..e6f7b67c8d7 100644
--- a/frontend/src/app/components/wp-inline-create/inline-create-row-builder.ts
+++ b/frontend/src/app/features/work-packages/components/wp-inline-create/inline-create-row-builder.ts
@@ -1,7 +1,7 @@
import { Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { States } from '../states.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { States } from "core-app/core/states/states.service";
import {
commonRowClassName,
SingleRowBuilder,
@@ -9,13 +9,13 @@ import {
} from '../wp-fast-table/builders/rows/single-row-builder';
import { rowId } from '../wp-fast-table/helpers/wp-table-row-helpers';
import { WorkPackageTable } from '../wp-fast-table/wp-fast-table';
-import { WorkPackageViewSelectionService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
-import { WorkPackageViewColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service";
-import { QueryColumn } from "core-components/wp-query/query-column";
-import { tdClassName } from "core-components/wp-fast-table/builders/cell-builder";
-import { internalContextMenuColumn } from "core-components/wp-fast-table/builders/internal-sort-columns";
-import { EditForm } from "core-app/modules/fields/edit/edit-form/edit-form";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { WorkPackageViewSelectionService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { WorkPackageViewColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service";
+import { QueryColumn } from "core-app/features/work-packages/components/wp-query/query-column";
+import { tdClassName } from "core-app/features/work-packages/components/wp-fast-table/builders/cell-builder";
+import { internalContextMenuColumn } from "core-app/features/work-packages/components/wp-fast-table/builders/internal-sort-columns";
+import { EditForm } from "core-app/shared/components/fields/edit/edit-form/edit-form";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export const inlineCreateRowClassName = 'wp-inline-create-row';
export const inlineCreateCancelClassName = 'wp-table--cancel-create-link';
diff --git a/frontend/src/app/components/wp-inline-create/wp-inline-create.component.html b/frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.html
similarity index 100%
rename from frontend/src/app/components/wp-inline-create/wp-inline-create.component.html
rename to frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.html
diff --git a/frontend/src/app/components/wp-inline-create/wp-inline-create.component.ts b/frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.ts
similarity index 88%
rename from frontend/src/app/components/wp-inline-create/wp-inline-create.component.ts
rename to frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.ts
index 8bff9d26aab..72372bad1f0 100644
--- a/frontend/src/app/components/wp-inline-create/wp-inline-create.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.component.ts
@@ -37,10 +37,10 @@ import {
EventEmitter,
OnInit, Output
} from '@angular/core';
-import { AuthorisationService } from 'core-app/modules/common/model-auth/model-auth.service';
-import { WorkPackageViewFocusService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service';
+import { AuthorisationService } from 'core-app/core/model-auth/model-auth.service';
+import { WorkPackageViewFocusService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service';
import { filter } from 'rxjs/operators';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { onClickOrEnter } from '../wp-fast-table/handlers/click-or-enter-handler';
import { WorkPackageTable } from '../wp-fast-table/wp-fast-table';
import { WorkPackageCreateService } from '../wp-new/wp-create.service';
@@ -49,16 +49,16 @@ import {
InlineCreateRowBuilder,
inlineCreateRowClassName
} from './inline-create-row-builder';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { WorkPackageInlineCreateService } from "core-components/wp-inline-create/wp-inline-create.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageInlineCreateService } from "core-app/features/work-packages/components/wp-inline-create/wp-inline-create.service";
import { Subscription } from 'rxjs';
-import { WorkPackageViewColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service";
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
-import { EditForm } from "core-app/modules/fields/edit/edit-form/edit-form";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { WorkPackageViewColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service";
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
+import { EditForm } from "core-app/shared/components/fields/edit/edit-form/edit-form";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
@Component({
selector: '[wpInlineCreate]',
diff --git a/frontend/src/app/components/wp-inline-create/wp-inline-create.service.ts b/frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.service.ts
similarity index 89%
rename from frontend/src/app/components/wp-inline-create/wp-inline-create.service.ts
rename to frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.service.ts
index fef976ccb8d..241c7ae2001 100644
--- a/frontend/src/app/components/wp-inline-create/wp-inline-create.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-inline-create/wp-inline-create.service.ts
@@ -27,12 +27,12 @@
//++
import { Injectable, Injector, OnDestroy } from '@angular/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { Subject } from "rxjs";
import { ComponentType } from "@angular/cdk/portal";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { AuthorisationService } from "core-app/modules/common/model-auth/model-auth.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { AuthorisationService } from "core-app/core/model-auth/model-auth.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
@Injectable()
export class WorkPackageInlineCreateService implements OnDestroy {
diff --git a/frontend/src/app/components/wp-list/wp-list-checksum.service.ts b/frontend/src/app/features/work-packages/components/wp-list/wp-list-checksum.service.ts
similarity index 93%
rename from frontend/src/app/components/wp-list/wp-list-checksum.service.ts
rename to frontend/src/app/features/work-packages/components/wp-list/wp-list-checksum.service.ts
index 8d7b6278d23..4ff93a3b038 100644
--- a/frontend/src/app/components/wp-list/wp-list-checksum.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-list/wp-list-checksum.service.ts
@@ -26,11 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
import { StateService, TransitionPromise } from '@uirouter/core';
-import { UrlParamsHelperService } from 'core-components/wp-query/url-params-helper';
+import { UrlParamsHelperService } from 'core-app/features/work-packages/components/wp-query/url-params-helper';
import { Injectable } from '@angular/core';
-import { WorkPackageViewPagination } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-table-pagination";
+import { WorkPackageViewPagination } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-table-pagination";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
@Injectable()
export class WorkPackagesListChecksumService {
diff --git a/frontend/src/app/components/wp-list/wp-list-invalid-query.service.ts b/frontend/src/app/features/work-packages/components/wp-list/wp-list-invalid-query.service.ts
similarity index 85%
rename from frontend/src/app/components/wp-list/wp-list-invalid-query.service.ts
rename to frontend/src/app/features/work-packages/components/wp-list/wp-list-invalid-query.service.ts
index e445aeadf41..dd6f592f7ea 100644
--- a/frontend/src/app/components/wp-list/wp-list-invalid-query.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-list/wp-list-invalid-query.service.ts
@@ -26,16 +26,16 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { QueryFormResource } from 'core-app/modules/hal/resources/query-form-resource';
-import { QuerySortByResource } from 'core-app/modules/hal/resources/query-sort-by-resource';
-import { QueryGroupByResource } from 'core-app/modules/hal/resources/query-group-by-resource';
-import { SchemaResource } from 'core-app/modules/hal/resources/schema-resource';
-import { QueryFilterResource } from 'core-app/modules/hal/resources/query-filter-resource';
-import { QueryFilterInstanceSchemaResource } from 'core-app/modules/hal/resources/query-filter-instance-schema-resource';
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
import { QueryColumn } from '../wp-query/query-column';
import { Injectable } from '@angular/core';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { QueryFilterInstanceSchemaResource } from "core-app/features/hal/resources/query-filter-instance-schema-resource";
+import { QueryFormResource } from "core-app/features/hal/resources/query-form-resource";
+import { QueryFilterResource } from "core-app/features/hal/resources/query-filter-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { QuerySortByResource } from "core-app/features/hal/resources/query-sort-by-resource";
+import { QueryGroupByResource } from "core-app/features/hal/resources/query-group-by-resource";
@Injectable()
export class WorkPackagesListInvalidQueryService {
diff --git a/frontend/src/app/components/wp-list/wp-list.service.ts b/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts
similarity index 89%
rename from frontend/src/app/components/wp-list/wp-list.service.ts
rename to frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts
index caf68ef4104..1ea6400eec9 100644
--- a/frontend/src/app/components/wp-list/wp-list.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-list/wp-list.service.ts
@@ -26,32 +26,31 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { QueryFormResource } from 'core-app/modules/hal/resources/query-form-resource';
-import { States } from '../states.service';
-import { ErrorResource } from 'core-app/modules/hal/resources/error-resource';
-import { WorkPackageCollectionResource } from 'core-app/modules/hal/resources/wp-collection-resource';
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { States } from "core-app/core/states/states.service";
import { WorkPackagesListInvalidQueryService } from './wp-list-invalid-query.service';
import { WorkPackageStatesInitializationService } from './wp-states-initialization.service';
-import { AuthorisationService } from 'core-app/modules/common/model-auth/model-auth.service';
+import { AuthorisationService } from 'core-app/core/model-auth/model-auth.service';
import { StateService } from '@uirouter/core';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { Injectable } from '@angular/core';
-import { UrlParamsHelperService } from 'core-components/wp-query/url-params-helper';
-import { NotificationsService } from 'core-app/modules/common/notifications/notifications.service';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { UrlParamsHelperService } from 'core-app/features/work-packages/components/wp-query/url-params-helper';
+import { NotificationsService } from 'core-app/shared/components/notifications/notifications.service';
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { from, Observable, of } from 'rxjs';
import { input } from "reactivestates";
import { catchError, mergeMap, share, switchMap, take } from "rxjs/operators";
import {
PaginationUpdateObject,
WorkPackageViewPaginationService
-} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-pagination.service";
-import { ConfigurationService } from "core-app/modules/common/config/configuration.service";
-import { PaginationService } from "core-components/table-pagination/pagination-service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { APIv3QueriesPaths } from "core-app/modules/apiv3/endpoints/queries/apiv3-queries-paths";
-import { APIv3QueryPaths } from "core-app/modules/apiv3/endpoints/queries/apiv3-query-paths";
+} from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-pagination.service";
+import { ConfigurationService } from "core-app/core/config/configuration.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { APIv3QueriesPaths } from "core-app/core/apiv3/endpoints/queries/apiv3-queries-paths";
+import { APIv3QueryPaths } from "core-app/core/apiv3/endpoints/queries/apiv3-query-paths";
+import { PaginationService } from "core-app/shared/components/table-pagination/pagination-service";
+import { ErrorResource } from "core-app/features/hal/resources/error-resource";
+import { QueryFormResource } from "core-app/features/hal/resources/query-form-resource";
export interface QueryDefinition {
queryParams:{ query_id?:string, query_props?:string };
diff --git a/frontend/src/app/components/wp-list/wp-states-initialization.service.ts b/frontend/src/app/features/work-packages/components/wp-list/wp-states-initialization.service.ts
similarity index 73%
rename from frontend/src/app/components/wp-list/wp-states-initialization.service.ts
rename to frontend/src/app/features/work-packages/components/wp-list/wp-states-initialization.service.ts
index 06a2802f095..add4ff53c4e 100644
--- a/frontend/src/app/components/wp-list/wp-states-initialization.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-list/wp-states-initialization.service.ts
@@ -1,29 +1,29 @@
-import { States } from '../states.service';
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { WorkPackageCollectionResource } from 'core-app/modules/hal/resources/wp-collection-resource';
-import { SchemaResource } from 'core-app/modules/hal/resources/schema-resource';
-import { QueryFormResource } from 'core-app/modules/hal/resources/query-form-resource';
+import { States } from "core-app/core/states/states.service";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
import { WorkPackagesListChecksumService } from './wp-list-checksum.service';
-import { AuthorisationService } from 'core-app/modules/common/model-auth/model-auth.service';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { AuthorisationService } from 'core-app/core/model-auth/model-auth.service';
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { Injectable } from '@angular/core';
-import { QuerySchemaResource } from 'core-app/modules/hal/resources/query-schema-resource';
-import { WorkPackageViewHighlightingService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-highlighting.service";
+import { WorkPackageViewHighlightingService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-highlighting.service";
import { take } from "rxjs/operators";
-import { WorkPackageViewOrderService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-order.service";
-import { WorkPackageViewDisplayRepresentationService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
-import { WorkPackageViewSumService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sum.service";
-import { WorkPackageViewColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service";
-import { WorkPackageViewSortByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
-import { WorkPackageViewAdditionalElementsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-additional-elements.service";
-import { WorkPackageViewHierarchiesService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
-import { WorkPackageViewPaginationService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-pagination.service";
-import { WorkPackageViewTimelineService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service";
-import { WorkPackageViewGroupByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-group-by.service";
-import { WorkPackageViewFiltersService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service";
-import { WorkPackageViewRelationColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { WorkPackageViewCollapsedGroupsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service";
+import { WorkPackageViewOrderService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-order.service";
+import { WorkPackageViewDisplayRepresentationService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
+import { WorkPackageViewSumService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sum.service";
+import { WorkPackageViewColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service";
+import { WorkPackageViewSortByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
+import { WorkPackageViewAdditionalElementsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-additional-elements.service";
+import { WorkPackageViewHierarchiesService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
+import { WorkPackageViewPaginationService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-pagination.service";
+import { WorkPackageViewTimelineService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service";
+import { WorkPackageViewGroupByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-group-by.service";
+import { WorkPackageViewFiltersService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service";
+import { WorkPackageViewRelationColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { WorkPackageViewCollapsedGroupsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service";
+import { QueryFormResource } from "core-app/features/hal/resources/query-form-resource";
+import { QuerySchemaResource } from "core-app/features/hal/resources/query-schema-resource";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
@Injectable()
export class WorkPackageStatesInitializationService {
diff --git a/frontend/src/app/components/wp-new/wp-create.component.ts b/frontend/src/app/features/work-packages/components/wp-new/wp-create.component.ts
similarity index 82%
rename from frontend/src/app/components/wp-new/wp-create.component.ts
rename to frontend/src/app/features/work-packages/components/wp-new/wp-create.component.ts
index 783bf1e7f2c..044ba8ef087 100644
--- a/frontend/src/app/components/wp-new/wp-create.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-new/wp-create.component.ts
@@ -28,24 +28,24 @@
import { ChangeDetectorRef, Directive, Injector, OnInit, ViewChild } from '@angular/core';
import { StateService, Transition } from '@uirouter/core';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { States } from '../states.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { RootResource } from 'core-app/modules/hal/resources/root-resource';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { States } from "core-app/core/states/states.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { RootResource } from "core-app/features/hal/resources/root-resource";
import { WorkPackageCreateService } from './wp-create.service';
import { takeWhile } from 'rxjs/operators';
-import { OpTitleService } from 'core-components/html/op-title.service';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { WorkPackageViewFiltersService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service";
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
-import { WorkPackageViewFocusService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service";
-import { EditFormComponent } from "core-app/modules/fields/edit/edit-form/edit-form.component";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { WorkPackageViewFiltersService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service";
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
+import { WorkPackageViewFocusService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service";
+import { EditFormComponent } from "core-app/shared/components/fields/edit/edit-form/edit-form.component";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
import * as URI from 'urijs';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { splitViewRoute } from "core-app/modules/work_packages/routing/split-view-routes.helper";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { HalSource, HalSourceLinks } from "core-app/modules/hal/resources/hal-resource";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { splitViewRoute } from "core-app/features/work-packages/routing/split-view-routes.helper";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { HalSource, HalSourceLinks } from "core-app/features/hal/resources/hal-resource";
+import { OpTitleService } from "core-app/core/html/op-title.service";
@Directive()
export class WorkPackageCreateComponent extends UntilDestroyedMixin implements OnInit {
diff --git a/frontend/src/app/components/wp-new/wp-create.service.ts b/frontend/src/app/features/work-packages/components/wp-new/wp-create.service.ts
similarity index 90%
rename from frontend/src/app/components/wp-new/wp-create.service.ts
rename to frontend/src/app/features/work-packages/components/wp-new/wp-create.service.ts
index 317894e8f5b..6c282b90cf7 100644
--- a/frontend/src/app/components/wp-new/wp-create.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-new/wp-create.service.ts
@@ -28,25 +28,26 @@
import { Injectable, Injector } from '@angular/core';
import { Observable, Subject } from 'rxjs';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
-import { HookService } from 'core-app/modules/plugins/hook-service';
-import { WorkPackageFilterValues } from "core-components/wp-edit-form/work-package-filter-values";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HookService } from 'core-app/features/plugins/hook-service';
+import { WorkPackageFilterValues } from "core-app/features/work-packages/components/wp-edit-form/work-package-filter-values";
import {
HalResourceEditingService,
ResourceChangesetCommit
-} from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
+} from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
import { filter } from "rxjs/operators";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { FormResource } from "core-app/modules/hal/resources/form-resource";
-import { HalEventsService } from "core-app/modules/hal/services/hal-events.service";
-import { AuthorisationService } from "core-app/modules/common/model-auth/model-auth.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { HalResource, HalSource, HalSourceLink } from "core-app/modules/hal/resources/hal-resource";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { FormResource } from "core-app/features/hal/resources/form-resource";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
+import { AuthorisationService } from "core-app/core/model-auth/model-auth.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { HalResource, HalSource, HalSourceLink } from "core-app/features/hal/resources/hal-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+
export const newWorkPackageHref = '/api/v3/work_packages/new';
diff --git a/frontend/src/app/components/wp-new/wp-new-full-view.component.ts b/frontend/src/app/features/work-packages/components/wp-new/wp-new-full-view.component.ts
similarity index 93%
rename from frontend/src/app/components/wp-new/wp-new-full-view.component.ts
rename to frontend/src/app/features/work-packages/components/wp-new/wp-new-full-view.component.ts
index 4db81001ea8..ea936957866 100644
--- a/frontend/src/app/components/wp-new/wp-new-full-view.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-new/wp-new-full-view.component.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageCreateComponent } from 'core-components/wp-new/wp-create.component';
+import { WorkPackageCreateComponent } from 'core-app/features/work-packages/components/wp-new/wp-create.component';
import { ChangeDetectionStrategy, Component } from '@angular/core';
@Component({
diff --git a/frontend/src/app/components/wp-new/wp-new-full-view.html b/frontend/src/app/features/work-packages/components/wp-new/wp-new-full-view.html
similarity index 100%
rename from frontend/src/app/components/wp-new/wp-new-full-view.html
rename to frontend/src/app/features/work-packages/components/wp-new/wp-new-full-view.html
diff --git a/frontend/src/app/components/wp-new/wp-new-split-view.component.ts b/frontend/src/app/features/work-packages/components/wp-new/wp-new-split-view.component.ts
similarity index 92%
rename from frontend/src/app/components/wp-new/wp-new-split-view.component.ts
rename to frontend/src/app/features/work-packages/components/wp-new/wp-new-split-view.component.ts
index 2ab05735d9a..248a1c1b4a7 100644
--- a/frontend/src/app/components/wp-new/wp-new-split-view.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-new/wp-new-split-view.component.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageCreateComponent } from 'core-components/wp-new/wp-create.component';
+import { WorkPackageCreateComponent } from 'core-app/features/work-packages/components/wp-new/wp-create.component';
import { ChangeDetectionStrategy, Component } from '@angular/core';
@Component({
diff --git a/frontend/src/app/components/wp-new/wp-new-split-view.html b/frontend/src/app/features/work-packages/components/wp-new/wp-new-split-view.html
similarity index 100%
rename from frontend/src/app/components/wp-new/wp-new-split-view.html
rename to frontend/src/app/features/work-packages/components/wp-new/wp-new-split-view.html
diff --git a/frontend/src/app/components/wp-query-select/wp-query-select-dropdown.component.ts b/frontend/src/app/features/work-packages/components/wp-query-select/wp-query-select-dropdown.component.ts
similarity index 94%
rename from frontend/src/app/components/wp-query-select/wp-query-select-dropdown.component.ts
rename to frontend/src/app/features/work-packages/components/wp-query-select/wp-query-select-dropdown.component.ts
index 9e2c0a4ae19..231fbe47c8d 100644
--- a/frontend/src/app/components/wp-query-select/wp-query-select-dropdown.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-query-select/wp-query-select-dropdown.component.ts
@@ -26,22 +26,22 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
-import { States } from '../states.service';
+import { States } from "core-app/core/states/states.service";
import { StateService, TransitionService } from '@uirouter/core';
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, OnInit, ViewChild } from "@angular/core";
-import { LoadingIndicatorService } from "core-app/modules/common/loading-indicator/loading-indicator.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { WorkPackageStaticQueriesService } from 'core-components/wp-query-select/wp-static-queries.service';
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { LinkHandling } from "core-app/modules/common/link-handling/link-handling";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { keyCodes } from 'core-app/modules/common/keyCodes.enum';
-import { MainMenuToggleService } from "core-components/main-menu/main-menu-toggle.service";
-import { MainMenuNavigationService } from "core-components/main-menu/main-menu-navigation.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { LoadingIndicatorService } from "core-app/core/loading-indicator/loading-indicator.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { WorkPackageStaticQueriesService } from 'core-app/features/work-packages/components/wp-query-select/wp-static-queries.service';
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { LinkHandling } from "core-app/shared/helpers/link-handling/link-handling";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { keyCodes } from 'core-app/shared/helpers/keyCodes.enum';
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { MainMenuNavigationService } from "core-app/core/main-menu/main-menu-navigation.service";
+import { MainMenuToggleService } from "core-app/core/main-menu/main-menu-toggle.service";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
export type QueryCategory = 'starred'|'public'|'private'|'default';
diff --git a/frontend/src/app/components/wp-query-select/wp-query-select.template.html b/frontend/src/app/features/work-packages/components/wp-query-select/wp-query-select.template.html
similarity index 100%
rename from frontend/src/app/components/wp-query-select/wp-query-select.template.html
rename to frontend/src/app/features/work-packages/components/wp-query-select/wp-query-select.template.html
diff --git a/frontend/src/app/components/wp-query-select/wp-static-queries.service.ts b/frontend/src/app/features/work-packages/components/wp-query-select/wp-static-queries.service.ts
similarity index 91%
rename from frontend/src/app/components/wp-query-select/wp-static-queries.service.ts
rename to frontend/src/app/features/work-packages/components/wp-query-select/wp-static-queries.service.ts
index 26c86b5c5a4..ef99352d72a 100644
--- a/frontend/src/app/components/wp-query-select/wp-static-queries.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-query-select/wp-static-queries.service.ts
@@ -25,14 +25,14 @@
//
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { IAutocompleteItem } from 'core-components/wp-query-select/wp-query-select-dropdown.component';
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { IAutocompleteItem } from 'core-app/features/work-packages/components/wp-query-select/wp-query-select-dropdown.component';
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { Injectable } from '@angular/core';
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
import { StateService } from "@uirouter/core";
-import { CurrentUserService } from "core-app/modules/current-user/current-user.service";
+import { CurrentUserService } from "core-app/core/current-user/current-user.service";
@Injectable()
export class WorkPackageStaticQueriesService {
diff --git a/frontend/src/app/components/wp-query/query-column.ts b/frontend/src/app/features/work-packages/components/wp-query/query-column.ts
similarity index 92%
rename from frontend/src/app/components/wp-query/query-column.ts
rename to frontend/src/app/features/work-packages/components/wp-query/query-column.ts
index cfd35fb9fc1..db199d25f2f 100644
--- a/frontend/src/app/components/wp-query/query-column.ts
+++ b/frontend/src/app/features/work-packages/components/wp-query/query-column.ts
@@ -1,5 +1,5 @@
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export const queryColumnTypes = {
PROPERTY: 'QueryColumn::Property',
RELATION_OF_TYPE: 'QueryColumn::RelationOfType',
diff --git a/frontend/src/app/components/wp-query/query-filters.service.ts b/frontend/src/app/features/work-packages/components/wp-query/query-filters.service.ts
similarity index 71%
rename from frontend/src/app/components/wp-query/query-filters.service.ts
rename to frontend/src/app/features/work-packages/components/wp-query/query-filters.service.ts
index 62eacd94b89..1f235f89cbf 100644
--- a/frontend/src/app/components/wp-query/query-filters.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-query/query-filters.service.ts
@@ -1,13 +1,13 @@
import { Injectable } from "@angular/core";
-import { QueryFormResource } from "core-app/modules/hal/resources/query-form-resource";
+import { QueryFormResource } from "core-app/features/hal/resources/query-form-resource";
import {
QueryFilterInstanceSchemaResource,
QueryFilterInstanceSchemaResourceLinks
-} from "core-app/modules/hal/resources/query-filter-instance-schema-resource";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { QueryFilterInstanceResource } from "core-app/modules/hal/resources/query-filter-instance-resource";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
+} from "core-app/features/hal/resources/query-filter-instance-schema-resource";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
@Injectable()
export class QueryFiltersService {
diff --git a/frontend/src/app/components/wp-query/query-param-listener.service.ts b/frontend/src/app/features/work-packages/components/wp-query/query-param-listener.service.ts
similarity index 92%
rename from frontend/src/app/components/wp-query/query-param-listener.service.ts
rename to frontend/src/app/features/work-packages/components/wp-query/query-param-listener.service.ts
index 05eb60aa74a..2fc5b40085d 100644
--- a/frontend/src/app/components/wp-query/query-param-listener.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-query/query-param-listener.service.ts
@@ -27,8 +27,8 @@
//++
import { Injectable, Injector } from '@angular/core';
-import { WorkPackagesListChecksumService } from "core-components/wp-list/wp-list-checksum.service";
-import { WorkPackagesListService } from "core-components/wp-list/wp-list.service";
+import { WorkPackagesListChecksumService } from "core-app/features/work-packages/components/wp-list/wp-list-checksum.service";
+import { WorkPackagesListService } from "core-app/features/work-packages/components/wp-list/wp-list.service";
import { TransitionService } from "@uirouter/core";
import { Subject } from "rxjs";
diff --git a/frontend/src/app/components/wp-query/url-params-helper.spec.ts b/frontend/src/app/features/work-packages/components/wp-query/url-params-helper.spec.ts
similarity index 98%
rename from frontend/src/app/components/wp-query/url-params-helper.spec.ts
rename to frontend/src/app/features/work-packages/components/wp-query/url-params-helper.spec.ts
index fbbde0f61dd..2f8f3a7f12e 100644
--- a/frontend/src/app/components/wp-query/url-params-helper.spec.ts
+++ b/frontend/src/app/features/work-packages/components/wp-query/url-params-helper.spec.ts
@@ -28,7 +28,7 @@
/*jshint expr: true*/
-import { UrlParamsHelperService } from 'core-components/wp-query/url-params-helper';
+import { UrlParamsHelperService } from 'core-app/features/work-packages/components/wp-query/url-params-helper';
describe('UrlParamsHelper', function() {
const paginationStub = {
diff --git a/frontend/src/app/components/wp-query/url-params-helper.ts b/frontend/src/app/features/work-packages/components/wp-query/url-params-helper.ts
similarity index 95%
rename from frontend/src/app/components/wp-query/url-params-helper.ts
rename to frontend/src/app/features/work-packages/components/wp-query/url-params-helper.ts
index ecff13e5795..977efa32917 100644
--- a/frontend/src/app/components/wp-query/url-params-helper.ts
+++ b/frontend/src/app/features/work-packages/components/wp-query/url-params-helper.ts
@@ -26,13 +26,13 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { QuerySortByResource } from 'core-app/modules/hal/resources/query-sort-by-resource';
-import { HalLink } from 'core-app/modules/hal/hal-link/hal-link';
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { QuerySortByResource } from "core-app/features/hal/resources/query-sort-by-resource";
+import { HalLink } from "core-app/features/hal/hal-link/hal-link";
import { Injectable } from '@angular/core';
-import { PaginationService } from 'core-components/table-pagination/pagination-service';
-import { QueryFilterInstanceResource } from 'core-app/modules/hal/resources/query-filter-instance-resource';
-import { ApiV3Filter, FilterOperator } from "core-components/api/api-v3/api-v3-filter-builder";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
+import { ApiV3Filter, FilterOperator } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+import { PaginationService } from "core-app/shared/components/table-pagination/pagination-service";
@Injectable({ providedIn: 'root' })
export class UrlParamsHelperService {
diff --git a/frontend/src/app/features/work-packages/components/wp-relations-count/wp-relations-count.component.ts b/frontend/src/app/features/work-packages/components/wp-relations-count/wp-relations-count.component.ts
new file mode 100644
index 00000000000..bbd61f07205
--- /dev/null
+++ b/frontend/src/app/features/work-packages/components/wp-relations-count/wp-relations-count.component.ts
@@ -0,0 +1,43 @@
+import { Component, Input, OnInit } from '@angular/core';
+import { combineLatest } from 'rxjs';
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { WorkPackageRelationsService } from "core-app/features/work-packages/components/wp-relations/wp-relations.service";
+
+
+@Component({
+ templateUrl: './wp-relations-count.html',
+ selector: 'wp-relations-count',
+})
+export class WorkPackageRelationsCountComponent extends UntilDestroyedMixin implements OnInit {
+ @Input('wpId') wpId:string;
+ public count = 0;
+
+ constructor(protected apiV3Service:APIV3Service,
+ protected wpRelations:WorkPackageRelationsService) {
+ super();
+ }
+
+ ngOnInit():void {
+ this.wpRelations.require(this.wpId.toString());
+
+ combineLatest([
+ this
+ .wpRelations
+ .state(this.wpId.toString())
+ .values$(),
+ this
+ .apiV3Service
+ .work_packages
+ .id(this.wpId)
+ .requireAndStream()
+ ]).pipe(
+ this.untilDestroyed()
+ ).subscribe(([relations, workPackage]) => {
+ const relationCount = _.size(relations);
+ const childrenCount = _.size(workPackage.children);
+
+ this.count = relationCount + childrenCount;
+ });
+ }
+}
diff --git a/frontend/src/app/features/work-packages/components/wp-relations-count/wp-relations-count.html b/frontend/src/app/features/work-packages/components/wp-relations-count/wp-relations-count.html
new file mode 100644
index 00000000000..81c52049283
--- /dev/null
+++ b/frontend/src/app/features/work-packages/components/wp-relations-count/wp-relations-count.html
@@ -0,0 +1,3 @@
+<span class="wp-tabs-count"
+ *ngIf="count > 0"
+ [textContent]="count"></span>
diff --git a/frontend/src/app/features/work-packages/components/wp-relations-count/wp-watchers-count.component.ts b/frontend/src/app/features/work-packages/components/wp-relations-count/wp-watchers-count.component.ts
new file mode 100644
index 00000000000..514cfb94df7
--- /dev/null
+++ b/frontend/src/app/features/work-packages/components/wp-relations-count/wp-watchers-count.component.ts
@@ -0,0 +1,39 @@
+import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnInit } from '@angular/core';
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { WorkPackageWatchersService } from "core-app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watchers.service";
+
+@Component({
+ templateUrl: './wp-relations-count.html',
+ selector: 'wp-watchers-count',
+ changeDetection: ChangeDetectionStrategy.OnPush
+})
+export class WorkPackageWatchersCountComponent extends UntilDestroyedMixin implements OnInit {
+ @Input('wpId') wpId:string;
+ public count = 0;
+
+ constructor(protected apiV3Service:APIV3Service,
+ protected wpWatcherService:WorkPackageWatchersService,
+ protected cdRef:ChangeDetectorRef) {
+ super();
+ }
+
+ ngOnInit():void {
+ this
+ .apiV3Service
+ .work_packages
+ .id(this.wpId)
+ .requireAndStream()
+ .pipe(
+ this.untilDestroyed()
+ ).subscribe((workPackage) => {
+ this.wpWatcherService
+ .require(workPackage)
+ .then((watchers:HalResource[]) => {
+ this.count = watchers.length;
+ this.cdRef.detectChanges();
+ });
+ });
+ }
+}
diff --git a/frontend/src/app/components/wp-relations/embedded/children/wp-children-inline-create.service.ts b/frontend/src/app/features/work-packages/components/wp-relations/embedded/children/wp-children-inline-create.service.ts
similarity index 78%
rename from frontend/src/app/components/wp-relations/embedded/children/wp-children-inline-create.service.ts
rename to frontend/src/app/features/work-packages/components/wp-relations/embedded/children/wp-children-inline-create.service.ts
index bd6bbef07a1..5b0c235307d 100644
--- a/frontend/src/app/components/wp-relations/embedded/children/wp-children-inline-create.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-relations/embedded/children/wp-children-inline-create.service.ts
@@ -27,12 +27,12 @@
//++
import { Injectable, Injector } from '@angular/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { WorkPackageRelationsHierarchyService } from "core-components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";
-import { WorkPackageInlineCreateService } from "core-components/wp-inline-create/wp-inline-create.service";
-import { WpRelationInlineCreateServiceInterface } from "core-components/wp-relations/embedded/wp-relation-inline-create.service.interface";
-import { WpRelationInlineAddExistingComponent } from "core-components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { WorkPackageRelationsHierarchyService } from "core-app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";
+import { WorkPackageInlineCreateService } from "core-app/features/work-packages/components/wp-inline-create/wp-inline-create.service";
+import { WpRelationInlineCreateServiceInterface } from "core-app/features/work-packages/components/wp-relations/embedded/wp-relation-inline-create.service.interface";
+import { WpRelationInlineAddExistingComponent } from "core-app/features/work-packages/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
@Injectable()
export class WpChildrenInlineCreateService extends WorkPackageInlineCreateService implements WpRelationInlineCreateServiceInterface {
diff --git a/frontend/src/app/components/wp-relations/embedded/children/wp-children-query.component.ts b/frontend/src/app/features/work-packages/components/wp-relations/embedded/children/wp-children-query.component.ts
similarity index 70%
rename from frontend/src/app/components/wp-relations/embedded/children/wp-children-query.component.ts
rename to frontend/src/app/features/work-packages/components/wp-relations/embedded/children/wp-children-query.component.ts
index 93bc633b294..5bc647b394d 100644
--- a/frontend/src/app/components/wp-relations/embedded/children/wp-children-query.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-relations/embedded/children/wp-children-query.component.ts
@@ -27,21 +27,21 @@
//++
import { Component, Input, OnInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { UrlParamsHelperService } from 'core-components/wp-query/url-params-helper';
-import { WorkPackageRelationsHierarchyService } from 'core-components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service';
-import { OpUnlinkTableAction } from 'core-components/wp-table/table-actions/actions/unlink-table-action';
-import { OpTableActionFactory } from 'core-components/wp-table/table-actions/table-action';
-import { WorkPackageInlineCreateService } from "core-components/wp-inline-create/wp-inline-create.service";
-import { WorkPackageRelationQueryBase } from "core-components/wp-relations/embedded/wp-relation-query.base";
-import { WpChildrenInlineCreateService } from "core-components/wp-relations/embedded/children/wp-children-inline-create.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { UrlParamsHelperService } from 'core-app/features/work-packages/components/wp-query/url-params-helper';
+import { WorkPackageRelationsHierarchyService } from 'core-app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service';
+import { OpUnlinkTableAction } from 'core-app/features/work-packages/components/wp-table/table-actions/actions/unlink-table-action';
+import { OpTableActionFactory } from 'core-app/features/work-packages/components/wp-table/table-actions/table-action';
+import { WorkPackageInlineCreateService } from "core-app/features/work-packages/components/wp-inline-create/wp-inline-create.service";
+import { WorkPackageRelationQueryBase } from "core-app/features/work-packages/components/wp-relations/embedded/wp-relation-query.base";
+import { WpChildrenInlineCreateService } from "core-app/features/work-packages/components/wp-relations/embedded/children/wp-children-inline-create.service";
import { filter } from "rxjs/operators";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { GroupDescriptor } from "core-components/work-packages/wp-single-view/wp-single-view.component";
-import { HalEventsService } from "core-app/modules/hal/services/hal-events.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { GroupDescriptor } from "core-app/features/work-packages/components/wp-single-view/wp-single-view.component";
@Component({
selector: 'wp-children-query',
diff --git a/frontend/src/app/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component.html b/frontend/src/app/features/work-packages/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component.html
similarity index 100%
rename from frontend/src/app/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component.html
rename to frontend/src/app/features/work-packages/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component.html
diff --git a/frontend/src/app/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component.ts b/frontend/src/app/features/work-packages/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component.ts
similarity index 73%
rename from frontend/src/app/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component.ts
rename to frontend/src/app/features/work-packages/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component.ts
index 33eb06f7831..2c4e9c19c3d 100644
--- a/frontend/src/app/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component.ts
@@ -27,19 +27,20 @@
//++
import { Component, Inject } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { WorkPackageInlineCreateService } from "core-components/wp-inline-create/wp-inline-create.service";
-import { WorkPackageInlineCreateComponent } from "core-components/wp-inline-create/wp-inline-create.component";
-import { WorkPackageRelationsService } from "core-components/wp-relations/wp-relations.service";
-import { WpRelationInlineCreateServiceInterface } from "core-components/wp-relations/embedded/wp-relation-inline-create.service.interface";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { ApiV3Filter } from "core-components/api/api-v3/api-v3-filter-builder";
-import { UrlParamsHelperService } from "core-components/wp-query/url-params-helper";
-import { RelationResource } from "core-app/modules/hal/resources/relation-resource";
-import { HalEventsService } from "core-app/modules/hal/services/hal-events.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageInlineCreateService } from "core-app/features/work-packages/components/wp-inline-create/wp-inline-create.service";
+import { WorkPackageInlineCreateComponent } from "core-app/features/work-packages/components/wp-inline-create/wp-inline-create.component";
+import { WorkPackageRelationsService } from "core-app/features/work-packages/components/wp-relations/wp-relations.service";
+import { WpRelationInlineCreateServiceInterface } from "core-app/features/work-packages/components/wp-relations/embedded/wp-relation-inline-create.service.interface";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { UrlParamsHelperService } from "core-app/features/work-packages/components/wp-query/url-params-helper";
+import { RelationResource } from "core-app/features/hal/resources/relation-resource";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { ApiV3Filter } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+
@Component({
templateUrl: './wp-relation-inline-add-existing.component.html'
diff --git a/frontend/src/app/components/wp-relations/embedded/relations/wp-relation-inline-create.service.ts b/frontend/src/app/features/work-packages/components/wp-relations/embedded/relations/wp-relation-inline-create.service.ts
similarity index 79%
rename from frontend/src/app/components/wp-relations/embedded/relations/wp-relation-inline-create.service.ts
rename to frontend/src/app/features/work-packages/components/wp-relations/embedded/relations/wp-relation-inline-create.service.ts
index 4c4eb868b7d..95223561bbd 100644
--- a/frontend/src/app/components/wp-relations/embedded/relations/wp-relation-inline-create.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-relations/embedded/relations/wp-relation-inline-create.service.ts
@@ -27,12 +27,12 @@
//++
import { Injectable, Injector, OnDestroy } from '@angular/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { WorkPackageInlineCreateService } from "core-components/wp-inline-create/wp-inline-create.service";
-import { WpRelationInlineAddExistingComponent } from "core-components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component";
-import { WorkPackageRelationsService } from "core-components/wp-relations/wp-relations.service";
-import { WpRelationInlineCreateServiceInterface } from "core-components/wp-relations/embedded/wp-relation-inline-create.service.interface";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { WorkPackageInlineCreateService } from "core-app/features/work-packages/components/wp-inline-create/wp-inline-create.service";
+import { WpRelationInlineAddExistingComponent } from "core-app/features/work-packages/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component";
+import { WorkPackageRelationsService } from "core-app/features/work-packages/components/wp-relations/wp-relations.service";
+import { WpRelationInlineCreateServiceInterface } from "core-app/features/work-packages/components/wp-relations/embedded/wp-relation-inline-create.service.interface";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
@Injectable()
export class WpRelationInlineCreateService extends WorkPackageInlineCreateService implements WpRelationInlineCreateServiceInterface, OnDestroy {
diff --git a/frontend/src/app/components/wp-relations/embedded/relations/wp-relation-query.component.ts b/frontend/src/app/features/work-packages/components/wp-relations/embedded/relations/wp-relation-query.component.ts
similarity index 72%
rename from frontend/src/app/components/wp-relations/embedded/relations/wp-relation-query.component.ts
rename to frontend/src/app/features/work-packages/components/wp-relations/embedded/relations/wp-relation-query.component.ts
index 2dcb78c24e6..b52bce4100e 100644
--- a/frontend/src/app/components/wp-relations/embedded/relations/wp-relation-query.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-relations/embedded/relations/wp-relation-query.component.ts
@@ -27,21 +27,21 @@
//++
import { Component, Inject, Input, OnInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { UrlParamsHelperService } from 'core-components/wp-query/url-params-helper';
-import { OpUnlinkTableAction } from 'core-components/wp-table/table-actions/actions/unlink-table-action';
-import { OpTableActionFactory } from 'core-components/wp-table/table-actions/table-action';
-import { WorkPackageInlineCreateService } from "core-components/wp-inline-create/wp-inline-create.service";
-import { WorkPackageRelationQueryBase } from "core-components/wp-relations/embedded/wp-relation-query.base";
-import { WpRelationInlineCreateService } from "core-components/wp-relations/embedded/relations/wp-relation-inline-create.service";
-import { WorkPackageRelationsService } from "core-components/wp-relations/wp-relations.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { UrlParamsHelperService } from 'core-app/features/work-packages/components/wp-query/url-params-helper';
+import { OpUnlinkTableAction } from 'core-app/features/work-packages/components/wp-table/table-actions/actions/unlink-table-action';
+import { OpTableActionFactory } from 'core-app/features/work-packages/components/wp-table/table-actions/table-action';
+import { WorkPackageInlineCreateService } from "core-app/features/work-packages/components/wp-inline-create/wp-inline-create.service";
+import { WorkPackageRelationQueryBase } from "core-app/features/work-packages/components/wp-relations/embedded/wp-relation-query.base";
+import { WpRelationInlineCreateService } from "core-app/features/work-packages/components/wp-relations/embedded/relations/wp-relation-inline-create.service";
+import { WorkPackageRelationsService } from "core-app/features/work-packages/components/wp-relations/wp-relations.service";
import { filter } from "rxjs/operators";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { GroupDescriptor } from "core-components/work-packages/wp-single-view/wp-single-view.component";
-import { HalEventsService } from "core-app/modules/hal/services/hal-events.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { GroupDescriptor } from "core-app/features/work-packages/components/wp-single-view/wp-single-view.component";
@Component({
selector: 'wp-relation-query',
diff --git a/frontend/src/app/components/wp-relations/embedded/wp-relation-inline-create.service.interface.ts b/frontend/src/app/features/work-packages/components/wp-relations/embedded/wp-relation-inline-create.service.interface.ts
similarity index 87%
rename from frontend/src/app/components/wp-relations/embedded/wp-relation-inline-create.service.interface.ts
rename to frontend/src/app/features/work-packages/components/wp-relations/embedded/wp-relation-inline-create.service.interface.ts
index d6c5275053c..6a70ee8168a 100644
--- a/frontend/src/app/components/wp-relations/embedded/wp-relation-inline-create.service.interface.ts
+++ b/frontend/src/app/features/work-packages/components/wp-relations/embedded/wp-relation-inline-create.service.interface.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { WorkPackageInlineCreateService } from "core-components/wp-inline-create/wp-inline-create.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { WorkPackageInlineCreateService } from "core-app/features/work-packages/components/wp-inline-create/wp-inline-create.service";
export interface WpRelationInlineCreateServiceInterface extends WorkPackageInlineCreateService {
diff --git a/frontend/src/app/components/wp-relations/embedded/wp-relation-query.base.ts b/frontend/src/app/features/work-packages/components/wp-relations/embedded/wp-relation-query.base.ts
similarity index 87%
rename from frontend/src/app/components/wp-relations/embedded/wp-relation-query.base.ts
rename to frontend/src/app/features/work-packages/components/wp-relations/embedded/wp-relation-query.base.ts
index 95da9c0f98d..fc98fdde2dd 100644
--- a/frontend/src/app/components/wp-relations/embedded/wp-relation-query.base.ts
+++ b/frontend/src/app/features/work-packages/components/wp-relations/embedded/wp-relation-query.base.ts
@@ -26,12 +26,12 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { Directive, ViewChild } from "@angular/core";
-import { WorkPackageEmbeddedTableComponent } from "core-components/wp-table/embedded/wp-embedded-table.component";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { UrlParamsHelperService } from "core-components/wp-query/url-params-helper";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { WorkPackageEmbeddedTableComponent } from "core-app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { UrlParamsHelperService } from "core-app/features/work-packages/components/wp-query/url-params-helper";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
@Directive()
export abstract class WorkPackageRelationQueryBase extends UntilDestroyedMixin {
diff --git a/frontend/src/app/components/wp-relations/embedded/wp-relation-query.html b/frontend/src/app/features/work-packages/components/wp-relations/embedded/wp-relation-query.html
similarity index 100%
rename from frontend/src/app/components/wp-relations/embedded/wp-relation-query.html
rename to frontend/src/app/features/work-packages/components/wp-relations/embedded/wp-relation-query.html
diff --git a/frontend/src/app/components/wp-relations/wp-relation-row/wp-relation-row.component.ts b/frontend/src/app/features/work-packages/components/wp-relations/wp-relation-row/wp-relation-row.component.ts
similarity index 89%
rename from frontend/src/app/components/wp-relations/wp-relation-row/wp-relation-row.component.ts
rename to frontend/src/app/features/work-packages/components/wp-relations/wp-relation-row/wp-relation-row.component.ts
index 7cf64fe52d6..dd4e1b4c3d2 100644
--- a/frontend/src/app/components/wp-relations/wp-relation-row/wp-relation-row.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-relations/wp-relation-row/wp-relation-row.component.ts
@@ -1,13 +1,13 @@
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { WorkPackageRelationsService } from '../wp-relations.service';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { RelationResource } from 'core-app/modules/hal/resources/relation-resource';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
import { ChangeDetectorRef, Component, ElementRef, Input, OnInit, ViewChild } from "@angular/core";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { HalEventsService } from "core-app/modules/hal/services/hal-events.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { RelationResource } from "core-app/features/hal/resources/relation-resource";
@Component({
diff --git a/frontend/src/app/components/wp-relations/wp-relation-row/wp-relation-row.template.html b/frontend/src/app/features/work-packages/components/wp-relations/wp-relation-row/wp-relation-row.template.html
similarity index 100%
rename from frontend/src/app/components/wp-relations/wp-relation-row/wp-relation-row.template.html
rename to frontend/src/app/features/work-packages/components/wp-relations/wp-relation-row/wp-relation-row.template.html
diff --git a/frontend/src/app/components/wp-relations/wp-relations-create/wp-relation-create.template.html b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relation-create.template.html
similarity index 100%
rename from frontend/src/app/components/wp-relations/wp-relations-create/wp-relation-create.template.html
rename to frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relation-create.template.html
diff --git a/frontend/src/app/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.component.ts b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.component.ts
similarity index 77%
rename from frontend/src/app/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.component.ts
rename to frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.component.ts
index 0ed7d4ef6e7..f3883f77e64 100644
--- a/frontend/src/app/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.component.ts
@@ -27,31 +27,28 @@
//++
import {
- AfterContentInit,
ChangeDetectorRef,
Component,
EventEmitter, HostListener,
- Input,
+ Input, NgZone,
Output,
ViewChild,
ViewEncapsulation,
- NgZone
} from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { from, Observable, of, Subject } from "rxjs";
-import { catchError, debounceTime, distinctUntilChanged, map, switchMap, tap } from "rxjs/operators";
-import { NgSelectComponent } from "@ng-select/ng-select";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { WorkPackageCollectionResource } from "core-app/modules/hal/resources/wp-collection-resource";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { ApiV3Filter } from "core-components/api/api-v3/api-v3-filter-builder";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import {OpAutocompleterComponent} from "core-app/modules/autocompleter/op-autocompleter/op-autocompleter.component";
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { from, Observable, of } from "rxjs";
+import { catchError, map, tap } from "rxjs/operators";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { ApiV3Filter } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+import { OpAutocompleterComponent } from "core-app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
@Component({
selector: 'wp-relations-autocomplete',
@@ -113,7 +110,7 @@ export class WorkPackageRelationsAutocomplete {
public autocompleterOptions = {
resource:'work_packages',
getOptionsFn: this.getAutocompleterData
- };
+ };
public appendToContainer = 'body';
@@ -148,7 +145,7 @@ export class WorkPackageRelationsAutocomplete {
}
}
- onOpen() {
+ onOpen() {
// Force reposition as a workaround for BUG
// https://github.com/ng-select/ng-select/issues/1259
this.ngZone.runOutsideAngular(() => {
@@ -157,7 +154,7 @@ export class WorkPackageRelationsAutocomplete {
jQuery(this.hiddenOverflowContainer).one('scroll', () => {
this.ngSelectComponent.closeSelect();
});
- }, 25);
+ }, 25);
});
}
}
diff --git a/frontend/src/app/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.html b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.html
similarity index 100%
rename from frontend/src/app/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.html
rename to frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.html
diff --git a/frontend/src/app/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.sass b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.sass
similarity index 100%
rename from frontend/src/app/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.sass
rename to frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.sass
diff --git a/frontend/src/app/components/wp-relations/wp-relations-create/wp-relations-create.component.ts b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component.ts
similarity index 82%
rename from frontend/src/app/components/wp-relations/wp-relations-create/wp-relations-create.component.ts
rename to frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component.ts
index 05b4d518c35..a6762c28db5 100644
--- a/frontend/src/app/components/wp-relations/wp-relations-create/wp-relations-create.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component.ts
@@ -1,10 +1,10 @@
-import { RelationResource } from 'core-app/modules/hal/resources/relation-resource';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { WorkPackageRelationsService } from '../wp-relations.service';
import { Component, Input } from "@angular/core";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { HalEventsService } from "core-app/modules/hal/services/hal-events.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { RelationResource } from "core-app/features/hal/resources/relation-resource";
@Component({
selector: 'wp-relations-create',
diff --git a/frontend/src/app/components/wp-relations/wp-relations-group/wp-relations-group.component.ts b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-group/wp-relations-group.component.ts
similarity index 93%
rename from frontend/src/app/components/wp-relations/wp-relations-group/wp-relations-group.component.ts
rename to frontend/src/app/features/work-packages/components/wp-relations/wp-relations-group/wp-relations-group.component.ts
index 5704a135760..38ca5e2e43b 100644
--- a/frontend/src/app/components/wp-relations/wp-relations-group/wp-relations-group.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-group/wp-relations-group.component.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { Component, ElementRef, EventEmitter, Input, Output, ViewChild } from "@angular/core";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
diff --git a/frontend/src/app/components/wp-relations/wp-relations-group/wp-relations-group.template.html b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-group/wp-relations-group.template.html
similarity index 100%
rename from frontend/src/app/components/wp-relations/wp-relations-group/wp-relations-group.template.html
rename to frontend/src/app/features/work-packages/components/wp-relations/wp-relations-group/wp-relations-group.template.html
diff --git a/frontend/src/app/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.directive.ts b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.directive.ts
similarity index 85%
rename from frontend/src/app/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.directive.ts
rename to frontend/src/app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.directive.ts
index 5421541ee8f..195e03ea951 100644
--- a/frontend/src/app/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.directive.ts
+++ b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.directive.ts
@@ -27,13 +27,13 @@
//++
import { Component, Input, OnInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { WorkPackageRelationsHierarchyService } from 'core-components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { WorkPackageRelationsHierarchyService } from 'core-app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service';
import { take } from 'rxjs/operators';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Component({
selector: 'wp-relations-hierarchy',
diff --git a/frontend/src/app/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service.ts b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service.ts
similarity index 90%
rename from frontend/src/app/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service.ts
rename to frontend/src/app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service.ts
index 3b0b95535a4..4d845e443a9 100644
--- a/frontend/src/app/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service.ts
@@ -26,14 +26,14 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { States } from '../../states.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { States } from "core-app/core/states/states.service";
import { StateService } from '@uirouter/core';
import { Injectable } from '@angular/core';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { HalEventsService } from "core-app/modules/hal/services/hal-events.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
@Injectable()
export class WorkPackageRelationsHierarchyService {
diff --git a/frontend/src/app/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.template.html b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.template.html
similarity index 100%
rename from frontend/src/app/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.template.html
rename to frontend/src/app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.template.html
diff --git a/frontend/src/app/components/wp-relations/wp-relations.component.ts b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.component.ts
similarity index 92%
rename from frontend/src/app/components/wp-relations/wp-relations.component.ts
rename to frontend/src/app/features/work-packages/components/wp-relations/wp-relations.component.ts
index aa1cabda9ff..39f2804662c 100644
--- a/frontend/src/app/components/wp-relations/wp-relations.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.component.ts
@@ -27,17 +27,16 @@
//++
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { RelationResource } from 'core-app/modules/hal/resources/relation-resource';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { Observable, zip } from 'rxjs';
import { take, takeUntil } from 'rxjs/operators';
import { RelatedWorkPackagesGroup } from './wp-relations.interfaces';
import { RelationsStateValue, WorkPackageRelationsService } from './wp-relations.service';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { RelationResource } from "core-app/features/hal/resources/relation-resource";
@Component({
diff --git a/frontend/src/app/components/wp-relations/wp-relations.interfaces.ts b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.interfaces.ts
similarity index 100%
rename from frontend/src/app/components/wp-relations/wp-relations.interfaces.ts
rename to frontend/src/app/features/work-packages/components/wp-relations/wp-relations.interfaces.ts
diff --git a/frontend/src/app/components/wp-relations/wp-relations.service.ts b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.service.ts
similarity index 91%
rename from frontend/src/app/components/wp-relations/wp-relations.service.ts
rename to frontend/src/app/features/work-packages/components/wp-relations/wp-relations.service.ts
index 85a19138ce0..9f2ed2b2e16 100644
--- a/frontend/src/app/components/wp-relations/wp-relations.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.service.ts
@@ -1,14 +1,13 @@
-import { RelationResource } from 'core-app/modules/hal/resources/relation-resource';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
import { multiInput, MultiInputState, StatesGroup } from 'reactivestates';
import { Injectable } from "@angular/core";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
import { Observable } from "rxjs";
import { map, take, tap } from "rxjs/operators";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
+import { RelationResource } from "core-app/features/hal/resources/relation-resource";
export type RelationsStateValue = { [relationId:string]:RelationResource };
diff --git a/frontend/src/app/components/wp-relations/wp-relations.template.html b/frontend/src/app/features/work-packages/components/wp-relations/wp-relations.template.html
similarity index 100%
rename from frontend/src/app/components/wp-relations/wp-relations.template.html
rename to frontend/src/app/features/work-packages/components/wp-relations/wp-relations.template.html
diff --git a/frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-base.controller.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller.ts
similarity index 85%
rename from frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-base.controller.ts
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller.ts
index cd7d44e0706..317fab1d02c 100644
--- a/frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-base.controller.ts
+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller.ts
@@ -27,14 +27,14 @@
//++
import { ChangeDetectorRef, Directive, OnInit } from '@angular/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { ActivityEntryInfo } from 'core-components/wp-single-view-tabs/activity-panel/activity-entry-info';
-import { WorkPackagesActivityService } from 'core-components/wp-single-view-tabs/activity-panel/wp-activity.service';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { ActivityEntryInfo } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-entry-info';
+import { WorkPackagesActivityService } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service';
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { Transition } from "@uirouter/core";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Directive()
export class ActivityPanelBaseController extends UntilDestroyedMixin implements OnInit {
diff --git a/frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-entry-info.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-entry-info.ts
similarity index 97%
rename from frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-entry-info.ts
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-entry-info.ts
index a781a018408..64229f3c9c0 100644
--- a/frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-entry-info.ts
+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-entry-info.ts
@@ -26,7 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { TimezoneService } from 'core-components/datetime/timezone.service';
+
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
export class ActivityEntryInfo {
diff --git a/frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-on-overview.component.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-on-overview.component.ts
similarity index 82%
rename from frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-on-overview.component.ts
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-on-overview.component.ts
index 1881827e388..78d8ed456a9 100644
--- a/frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-on-overview.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-on-overview.component.ts
@@ -26,12 +26,12 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { ActivityPanelBaseController } from 'core-components/wp-single-view-tabs/activity-panel/activity-base.controller';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { ActivityPanelBaseController } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller';
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { ActivityEntryInfo } from 'core-components/wp-single-view-tabs/activity-panel/activity-entry-info';
-import { AngularTrackingHelpers } from "core-components/angular/tracking-functions";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { ActivityEntryInfo } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-entry-info';
+import { AngularTrackingHelpers } from "core-app/shared/helpers/angular/tracking-functions";
@Component({
selector: 'newest-activity-on-overview',
diff --git a/frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-on-overview.html b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-on-overview.html
similarity index 100%
rename from frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-on-overview.html
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-on-overview.html
diff --git a/frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-tab.component.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-tab.component.ts
similarity index 83%
rename from frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-tab.component.ts
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-tab.component.ts
index 853f6e32452..fe967d680ed 100644
--- a/frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-tab.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-tab.component.ts
@@ -27,9 +27,9 @@
//++
import { Component } from '@angular/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { ActivityPanelBaseController } from 'core-components/wp-single-view-tabs/activity-panel/activity-base.controller';
-import { AngularTrackingHelpers } from "core-components/angular/tracking-functions";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { AngularTrackingHelpers } from "core-app/shared/helpers/angular/tracking-functions";
+import { ActivityPanelBaseController } from "core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-base.controller";
@Component({
templateUrl: './activity-tab.html',
diff --git a/frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-tab.html b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-tab.html
similarity index 100%
rename from frontend/src/app/components/wp-single-view-tabs/activity-panel/activity-tab.html
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-tab.html
diff --git a/frontend/src/app/components/wp-single-view-tabs/activity-panel/wp-activity.service.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service.ts
similarity index 86%
rename from frontend/src/app/components/wp-single-view-tabs/activity-panel/wp-activity.service.ts
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service.ts
index 97f6dbb53bb..e241f1483ff 100644
--- a/frontend/src/app/components/wp-single-view-tabs/activity-panel/wp-activity.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service.ts
@@ -27,12 +27,12 @@
//++
import { ActivityEntryInfo } from './activity-entry-info';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { Injectable } from '@angular/core';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
-import { WorkPackageLinkedResourceCache } from 'core-components/wp-single-view-tabs/wp-linked-resource-cache.service';
-import { TimezoneService } from 'core-components/datetime/timezone.service';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
+import { WorkPackageLinkedResourceCache } from 'core-app/features/work-packages/components/wp-single-view-tabs/wp-linked-resource-cache.service';
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
@Injectable()
export class WorkPackagesActivityService extends WorkPackageLinkedResourceCache<HalResource[]> {
diff --git a/frontend/src/app/components/wp-single-view-tabs/keep-tab/keep-tab.service.spec.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service.spec.ts
similarity index 100%
rename from frontend/src/app/components/wp-single-view-tabs/keep-tab/keep-tab.service.spec.ts
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service.spec.ts
diff --git a/frontend/src/app/components/wp-single-view-tabs/keep-tab/keep-tab.service.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service.ts
similarity index 97%
rename from frontend/src/app/components/wp-single-view-tabs/keep-tab/keep-tab.service.ts
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service.ts
index cc8c261ede2..22fa07e768e 100644
--- a/frontend/src/app/components/wp-single-view-tabs/keep-tab/keep-tab.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service.ts
@@ -29,7 +29,7 @@
import { StateService, Transition, TransitionService, UIRouterGlobals } from '@uirouter/core';
import { ReplaySubject } from 'rxjs';
import { Injectable } from "@angular/core";
-import { splitViewRoute } from "core-app/modules/work_packages/routing/split-view-routes.helper";
+import { splitViewRoute } from "core-app/features/work-packages/routing/split-view-routes.helper";
@Injectable({ providedIn: 'root' })
export class KeepTabService {
diff --git a/frontend/src/app/components/wp-single-view-tabs/overview-tab/overview-tab.component.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/overview-tab/overview-tab.component.ts
similarity index 86%
rename from frontend/src/app/components/wp-single-view-tabs/overview-tab/overview-tab.component.ts
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/overview-tab/overview-tab.component.ts
index d81690d3e3f..5540b4f15c2 100644
--- a/frontend/src/app/components/wp-single-view-tabs/overview-tab/overview-tab.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/overview-tab/overview-tab.component.ts
@@ -28,10 +28,10 @@
import { Component } from '@angular/core';
import { StateService } from '@uirouter/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Component({
templateUrl: './overview-tab.html',
diff --git a/frontend/src/app/components/wp-single-view-tabs/overview-tab/overview-tab.html b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/overview-tab/overview-tab.html
similarity index 100%
rename from frontend/src/app/components/wp-single-view-tabs/overview-tab/overview-tab.html
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/overview-tab/overview-tab.html
diff --git a/frontend/src/app/components/wp-single-view-tabs/relations-tab/relations-tab.component.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/relations-tab/relations-tab.component.ts
similarity index 86%
rename from frontend/src/app/components/wp-single-view-tabs/relations-tab/relations-tab.component.ts
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/relations-tab/relations-tab.component.ts
index b5113401f9e..0cb8f18cbc5 100644
--- a/frontend/src/app/components/wp-single-view-tabs/relations-tab/relations-tab.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/relations-tab/relations-tab.component.ts
@@ -28,10 +28,10 @@
import { Transition } from '@uirouter/core';
import { Component, Input, OnInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Component({
templateUrl: './relations-tab.html',
diff --git a/frontend/src/app/components/wp-single-view-tabs/relations-tab/relations-tab.html b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/relations-tab/relations-tab.html
similarity index 100%
rename from frontend/src/app/components/wp-single-view-tabs/relations-tab/relations-tab.html
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/relations-tab/relations-tab.html
diff --git a/frontend/src/app/components/wp-single-view-tabs/watchers-tab/watchers-tab.component.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/watchers-tab.component.ts
similarity index 84%
rename from frontend/src/app/components/wp-single-view-tabs/watchers-tab/watchers-tab.component.ts
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/watchers-tab.component.ts
index 5c3f24bc7ed..3de8c8a468b 100644
--- a/frontend/src/app/components/wp-single-view-tabs/watchers-tab/watchers-tab.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/watchers-tab.component.ts
@@ -28,16 +28,16 @@
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, OnInit } from '@angular/core';
import { Transition } from '@uirouter/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { LoadingIndicatorService } from 'core-app/modules/common/loading-indicator/loading-indicator.service';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { WorkPackageWatchersService } from 'core-components/wp-single-view-tabs/watchers-tab/wp-watchers.service';
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { AngularTrackingHelpers } from "core-components/angular/tracking-functions";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { LoadingIndicatorService } from 'core-app/core/loading-indicator/loading-indicator.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageWatchersService } from 'core-app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watchers.service';
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { AngularTrackingHelpers } from "core-app/shared/helpers/angular/tracking-functions";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Component({
templateUrl: './watchers-tab.html',
diff --git a/frontend/src/app/components/wp-single-view-tabs/watchers-tab/watchers-tab.html b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/watchers-tab.html
similarity index 100%
rename from frontend/src/app/components/wp-single-view-tabs/watchers-tab/watchers-tab.html
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/watchers-tab.html
diff --git a/frontend/src/app/components/wp-single-view-tabs/watchers-tab/wp-watcher-entry.component.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watcher-entry.component.ts
similarity index 92%
rename from frontend/src/app/components/wp-single-view-tabs/watchers-tab/wp-watcher-entry.component.ts
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watcher-entry.component.ts
index 7666d760e96..63a2b3893f5 100644
--- a/frontend/src/app/components/wp-single-view-tabs/watchers-tab/wp-watcher-entry.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watcher-entry.component.ts
@@ -27,9 +27,9 @@
//++
import { Component, Input, OnInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
import { WorkPackageWatchersTabComponent } from './watchers-tab.component';
-import { UserResource } from 'core-app/modules/hal/resources/user-resource';
+import { UserResource } from "core-app/features/hal/resources/user-resource";
@Component({
templateUrl: './wp-watcher-entry.html',
diff --git a/frontend/src/app/components/wp-single-view-tabs/watchers-tab/wp-watcher-entry.html b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watcher-entry.html
similarity index 100%
rename from frontend/src/app/components/wp-single-view-tabs/watchers-tab/wp-watcher-entry.html
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watcher-entry.html
diff --git a/frontend/src/app/components/wp-single-view-tabs/watchers-tab/wp-watchers.service.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watchers.service.ts
similarity index 79%
rename from frontend/src/app/components/wp-single-view-tabs/watchers-tab/wp-watchers.service.ts
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watchers.service.ts
index fa58edd90f4..2be08b69849 100644
--- a/frontend/src/app/components/wp-single-view-tabs/watchers-tab/wp-watchers.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watchers.service.ts
@@ -27,10 +27,10 @@
//++
import { Injectable } from '@angular/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
-import { WorkPackageLinkedResourceCache } from 'core-components/wp-single-view-tabs/wp-linked-resource-cache.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { WorkPackageLinkedResourceCache } from 'core-app/features/work-packages/components/wp-single-view-tabs/wp-linked-resource-cache.service';
@Injectable()
export class WorkPackageWatchersService extends WorkPackageLinkedResourceCache<HalResource[]> {
diff --git a/frontend/src/app/components/wp-single-view-tabs/wp-linked-resource-cache.service.ts b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/wp-linked-resource-cache.service.ts
similarity index 97%
rename from frontend/src/app/components/wp-single-view-tabs/wp-linked-resource-cache.service.ts
rename to frontend/src/app/features/work-packages/components/wp-single-view-tabs/wp-linked-resource-cache.service.ts
index a55c7622142..6d7a954b317 100644
--- a/frontend/src/app/components/wp-single-view-tabs/wp-linked-resource-cache.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-single-view-tabs/wp-linked-resource-cache.service.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { input, InputState } from 'reactivestates';
import { take } from 'rxjs/operators';
import { Observable, of } from "rxjs";
@@ -102,4 +102,4 @@ export abstract class WorkPackageLinkedResourceCache<T> {
* @param {WorkPackageResource} workPackage
*/
protected abstract load(workPackage:WorkPackageResource):Promise<T>;
-}
+}
\ No newline at end of file
diff --git a/frontend/src/app/components/work-packages/wp-single-view/wp-single-view.component.ts b/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts
similarity index 89%
rename from frontend/src/app/components/work-packages/wp-single-view/wp-single-view.component.ts
rename to frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts
index 1da99d49fb8..efde1a329ae 100644
--- a/frontend/src/app/components/work-packages/wp-single-view/wp-single-view.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.component.ts
@@ -35,28 +35,26 @@ import {
Input,
OnInit
} from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
import { distinctUntilChanged, map } from 'rxjs/operators';
-import { debugLog } from '../../../helpers/debug_output';
-import { CurrentProjectService } from '../../projects/current-project.service';
-import { States } from '../../states.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { DisplayFieldService } from 'core-app/modules/fields/display/display-field.service';
-import { DisplayField } from 'core-app/modules/fields/display/display-field.module';
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { HookService } from 'core-app/modules/plugins/hook-service';
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { DisplayFieldService } from 'core-app/shared/components/fields/display/display-field.service';
+import { DisplayField } from 'core-app/shared/components/fields/display/display-field.module';
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { HookService } from 'core-app/features/plugins/hook-service';
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
import { Subject } from "rxjs";
-import { randomString } from "core-app/helpers/random-string";
-import { BrowserDetector } from "core-app/modules/common/browser/browser-detector.service";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { ISchemaProxy } from "core-app/modules/hal/schemas/schema-proxy";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { randomString } from "core-app/shared/helpers/random-string";
+import { BrowserDetector } from "core-app/core/browser/browser-detector.service";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { ISchemaProxy } from "core-app/features/hal/schemas/schema-proxy";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { States } from "core-app/core/states/states.service";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { debugLog } from "core-app/shared/helpers/debug_output";
export interface FieldDescriptor {
name:string;
diff --git a/frontend/src/app/components/work-packages/wp-single-view/wp-single-view.html b/frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.html
similarity index 100%
rename from frontend/src/app/components/work-packages/wp-single-view/wp-single-view.html
rename to frontend/src/app/features/work-packages/components/wp-single-view/wp-single-view.html
diff --git a/frontend/src/app/components/work-packages/wp-subject/wp-subject.component.ts b/frontend/src/app/features/work-packages/components/wp-subject/wp-subject.component.ts
similarity index 86%
rename from frontend/src/app/components/work-packages/wp-subject/wp-subject.component.ts
rename to frontend/src/app/features/work-packages/components/wp-subject/wp-subject.component.ts
index 6295a98c800..1c4c5d0f5ff 100644
--- a/frontend/src/app/components/work-packages/wp-subject/wp-subject.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-subject/wp-subject.component.ts
@@ -28,10 +28,10 @@
import { Component, Input, OnInit } from '@angular/core';
import { UIRouterGlobals } from '@uirouter/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { randomString } from "core-app/helpers/random-string";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { randomString } from "core-app/shared/helpers/random-string";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Component({
selector: 'wp-subject',
diff --git a/frontend/src/app/components/work-packages/wp-subject/wp-subject.html b/frontend/src/app/features/work-packages/components/wp-subject/wp-subject.html
similarity index 100%
rename from frontend/src/app/components/work-packages/wp-subject/wp-subject.html
rename to frontend/src/app/features/work-packages/components/wp-subject/wp-subject.html
diff --git a/frontend/src/app/components/wp-table/config-menu/config-menu.component.ts b/frontend/src/app/features/work-packages/components/wp-table/config-menu/config-menu.component.ts
similarity index 63%
rename from frontend/src/app/components/wp-table/config-menu/config-menu.component.ts
rename to frontend/src/app/features/work-packages/components/wp-table/config-menu/config-menu.component.ts
index 630eaed6973..f76b6ccb51a 100644
--- a/frontend/src/app/components/wp-table/config-menu/config-menu.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/config-menu/config-menu.component.ts
@@ -1,8 +1,8 @@
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { Component, OnInit, Injector } from '@angular/core';
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { OPContextMenuService } from "core-components/op-context-menu/op-context-menu.service";
-import { WpTableConfigurationModalComponent } from "core-components/wp-table/configuration-modal/wp-table-configuration.modal";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { OPContextMenuService } from "core-app/shared/components/op-context-menu/op-context-menu.service";
+import { WpTableConfigurationModalComponent } from "core-app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal";
@Component({
templateUrl: './config-menu.template.html',
diff --git a/frontend/src/app/components/wp-table/config-menu/config-menu.template.html b/frontend/src/app/features/work-packages/components/wp-table/config-menu/config-menu.template.html
similarity index 100%
rename from frontend/src/app/components/wp-table/config-menu/config-menu.template.html
rename to frontend/src/app/features/work-packages/components/wp-table/config-menu/config-menu.template.html
diff --git a/frontend/src/app/components/wp-table/configuration-modal/tab-portal-outlet.ts b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet.ts
similarity index 97%
rename from frontend/src/app/components/wp-table/configuration-modal/tab-portal-outlet.ts
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet.ts
index 2509831e79d..023c24a59e8 100644
--- a/frontend/src/app/components/wp-table/configuration-modal/tab-portal-outlet.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet.ts
@@ -10,7 +10,7 @@ import {
EmbeddedViewRef,
Injector
} from '@angular/core';
-import { TabDefinition } from "core-app/modules/common/tabs/tab.interface";
+import { TabDefinition } from "core-app/shared/components/tabs/tab.interface";
export interface TabInterface extends TabDefinition {
componentClass:{ new(...args:any[]):TabComponent };
diff --git a/frontend/src/app/components/wp-table/configuration-modal/tabs/columns-tab.component.html b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/columns-tab.component.html
similarity index 100%
rename from frontend/src/app/components/wp-table/configuration-modal/tabs/columns-tab.component.html
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/columns-tab.component.html
diff --git a/frontend/src/app/components/wp-table/configuration-modal/tabs/columns-tab.component.ts b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/columns-tab.component.ts
similarity index 72%
rename from frontend/src/app/components/wp-table/configuration-modal/tabs/columns-tab.component.ts
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/columns-tab.component.ts
index 175abd5c808..a50e98dc4ba 100644
--- a/frontend/src/app/components/wp-table/configuration-modal/tabs/columns-tab.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/columns-tab.component.ts
@@ -1,11 +1,11 @@
import { Component, Injector, OnInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { QueryColumn } from 'core-components/wp-query/query-column';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
-import { WorkPackageViewColumnsService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service';
-import { TabComponent } from 'core-components/wp-table/configuration-modal/tab-portal-outlet';
-import { BannersService } from "core-app/modules/common/enterprise/banners.service";
-import { DraggableOption } from "core-app/modules/common/draggable-autocomplete/draggable-autocomplete.component";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { QueryColumn } from 'core-app/features/work-packages/components/wp-query/query-column';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
+import { WorkPackageViewColumnsService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service';
+import { TabComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet';
+import { BannersService } from "core-app/core/enterprise/banners.service";
+import { DraggableOption } from "core-app/shared/components/autocompleter/draggable-autocomplete/draggable-autocomplete.component";
@Component({
templateUrl: './columns-tab.component.html'
diff --git a/frontend/src/app/components/wp-table/configuration-modal/tabs/display-settings-tab.component.html b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/display-settings-tab.component.html
similarity index 100%
rename from frontend/src/app/components/wp-table/configuration-modal/tabs/display-settings-tab.component.html
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/display-settings-tab.component.html
diff --git a/frontend/src/app/components/wp-table/configuration-modal/tabs/display-settings-tab.component.ts b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/display-settings-tab.component.ts
similarity index 79%
rename from frontend/src/app/components/wp-table/configuration-modal/tabs/display-settings-tab.component.ts
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/display-settings-tab.component.ts
index b05241851fb..96dd2c74e8e 100644
--- a/frontend/src/app/components/wp-table/configuration-modal/tabs/display-settings-tab.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/display-settings-tab.component.ts
@@ -1,11 +1,11 @@
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { TabComponent } from 'core-components/wp-table/configuration-modal/tab-portal-outlet';
-import { WorkPackageViewGroupByService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-group-by.service';
-import { QueryGroupByResource } from 'core-app/modules/hal/resources/query-group-by-resource';
-import { WorkPackageViewHierarchiesService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service';
-import { WorkPackageViewSumService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sum.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { TabComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet';
+import { WorkPackageViewGroupByService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-group-by.service';
+import { WorkPackageViewHierarchiesService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service';
+import { WorkPackageViewSumService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sum.service';
import { Component, Injector } from "@angular/core";
+import { QueryGroupByResource } from "core-app/features/hal/resources/query-group-by-resource";
@Component({
templateUrl: './display-settings-tab.component.html'
diff --git a/frontend/src/app/components/wp-table/configuration-modal/tabs/filters-tab.component.html b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/filters-tab.component.html
similarity index 100%
rename from frontend/src/app/components/wp-table/configuration-modal/tabs/filters-tab.component.html
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/filters-tab.component.html
diff --git a/frontend/src/app/components/wp-table/configuration-modal/tabs/filters-tab.component.ts b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/filters-tab.component.ts
similarity index 68%
rename from frontend/src/app/components/wp-table/configuration-modal/tabs/filters-tab.component.ts
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/filters-tab.component.ts
index d8adf640419..b5ef7a249cd 100644
--- a/frontend/src/app/components/wp-table/configuration-modal/tabs/filters-tab.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/filters-tab.component.ts
@@ -1,10 +1,10 @@
import { Component, Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { TabComponent } from 'core-components/wp-table/configuration-modal/tab-portal-outlet';
-import { WorkPackageFiltersService } from 'core-components/filters/wp-filters/wp-filters.service';
-import { WorkPackageViewFiltersService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service';
-import { QueryFilterInstanceResource } from "core-app/modules/hal/resources/query-filter-instance-resource";
-import { BannersService } from "core-app/modules/common/enterprise/banners.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { TabComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet';
+import { WorkPackageFiltersService } from "core-app/features/work-packages/components/filters/wp-filters/wp-filters.service";
+import { WorkPackageViewFiltersService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service';
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
+import { BannersService } from "core-app/core/enterprise/banners.service";
@Component({
templateUrl: './filters-tab.component.html',
diff --git a/frontend/src/app/components/wp-table/configuration-modal/tabs/highlighting-tab.component.html b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component.html
similarity index 100%
rename from frontend/src/app/components/wp-table/configuration-modal/tabs/highlighting-tab.component.html
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component.html
diff --git a/frontend/src/app/components/wp-table/configuration-modal/tabs/highlighting-tab.component.ts b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component.ts
similarity index 83%
rename from frontend/src/app/components/wp-table/configuration-modal/tabs/highlighting-tab.component.ts
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component.ts
index b8898363d40..469f83288f1 100644
--- a/frontend/src/app/components/wp-table/configuration-modal/tabs/highlighting-tab.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component.ts
@@ -1,13 +1,13 @@
import { Component, Injector, ViewChild } from '@angular/core';
-import { TabComponent } from 'core-components/wp-table/configuration-modal/tab-portal-outlet';
-import { WorkPackageViewHighlightingService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-highlighting.service';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { HighlightingMode } from "core-components/wp-fast-table/builders/highlighting/highlighting-mode.const";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { States } from "core-app/components/states.service";
-import { BannersService } from "core-app/modules/common/enterprise/banners.service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { TabComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet';
+import { WorkPackageViewHighlightingService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-highlighting.service';
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { HighlightingMode } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting-mode.const";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { BannersService } from "core-app/core/enterprise/banners.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { NgSelectComponent } from "@ng-select/ng-select";
+import { States } from "core-app/core/states/states.service";
@Component({
templateUrl: './highlighting-tab.component.html'
diff --git a/frontend/src/app/components/wp-table/configuration-modal/tabs/sort-by-tab.component.html b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/sort-by-tab.component.html
similarity index 100%
rename from frontend/src/app/components/wp-table/configuration-modal/tabs/sort-by-tab.component.html
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/sort-by-tab.component.html
diff --git a/frontend/src/app/components/wp-table/configuration-modal/tabs/sort-by-tab.component.ts b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/sort-by-tab.component.ts
similarity index 91%
rename from frontend/src/app/components/wp-table/configuration-modal/tabs/sort-by-tab.component.ts
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/sort-by-tab.component.ts
index aa256a7382c..fdf331584d7 100644
--- a/frontend/src/app/components/wp-table/configuration-modal/tabs/sort-by-tab.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/sort-by-tab.component.ts
@@ -1,12 +1,12 @@
import { Component, Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageViewSortByService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service';
+import { TabComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet';
import {
QUERY_SORT_BY_ASC,
QUERY_SORT_BY_DESC,
- QuerySortByResource
-} from 'core-app/modules/hal/resources/query-sort-by-resource';
-import { WorkPackageViewSortByService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sort-by.service';
-import { TabComponent } from 'core-components/wp-table/configuration-modal/tab-portal-outlet';
+ QuerySortByResource,
+} from "core-app/features/hal/resources/query-sort-by-resource";
export class SortModalObject {
constructor(public column:SortColumn,
diff --git a/frontend/src/app/components/wp-table/configuration-modal/tabs/timelines-tab.component.html b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/timelines-tab.component.html
similarity index 100%
rename from frontend/src/app/components/wp-table/configuration-modal/tabs/timelines-tab.component.html
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/timelines-tab.component.html
diff --git a/frontend/src/app/components/wp-table/configuration-modal/tabs/timelines-tab.component.ts b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/timelines-tab.component.ts
similarity index 78%
rename from frontend/src/app/components/wp-table/configuration-modal/tabs/timelines-tab.component.ts
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/timelines-tab.component.ts
index 20834e38ea7..ba21e98821d 100644
--- a/frontend/src/app/components/wp-table/configuration-modal/tabs/timelines-tab.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/tabs/timelines-tab.component.ts
@@ -1,11 +1,11 @@
import { Component, Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { TabComponent } from 'core-components/wp-table/configuration-modal/tab-portal-outlet';
-import { WorkPackageViewTimelineService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service';
-import { TimelineLabels, TimelineZoomLevel } from 'core-app/modules/hal/resources/query-resource';
-import { WorkPackageViewColumnsService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service';
-import { QueryColumn } from 'core-components/wp-query/query-column';
-import { zoomLevelOrder } from "core-components/wp-table/timeline/wp-timeline";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { TabComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet';
+import { WorkPackageViewTimelineService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service';
+import { WorkPackageViewColumnsService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service';
+import { QueryColumn } from 'core-app/features/work-packages/components/wp-query/query-column';
+import { zoomLevelOrder } from "core-app/features/work-packages/components/wp-table/timeline/wp-timeline";
+import { TimelineLabels, TimelineZoomLevel } from "core-app/features/hal/resources/query-resource";
@Component({
templateUrl: './timelines-tab.component.html'
diff --git a/frontend/src/app/components/wp-table/configuration-modal/wp-table-configuration-relation-selector.html b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration-relation-selector.html
similarity index 100%
rename from frontend/src/app/components/wp-table/configuration-modal/wp-table-configuration-relation-selector.html
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration-relation-selector.html
diff --git a/frontend/src/app/components/wp-table/configuration-modal/wp-table-configuration-relation-selector.ts b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration-relation-selector.ts
similarity index 85%
rename from frontend/src/app/components/wp-table/configuration-modal/wp-table-configuration-relation-selector.ts
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration-relation-selector.ts
index 098b1aa6d06..d2357a76dad 100644
--- a/frontend/src/app/components/wp-table/configuration-modal/wp-table-configuration-relation-selector.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration-relation-selector.ts
@@ -3,14 +3,14 @@ import {
Injector,
OnInit,
} from '@angular/core';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { WorkPackageViewFiltersService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service";
-import { QueryFilterResource } from "core-app/modules/hal/resources/query-filter-resource";
-import { QueryOperatorResource } from "core-app/modules/hal/resources/query-operator-resource";
-import { QueryFilterInstanceResource } from "core-app/modules/hal/resources/query-filter-instance-resource";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { WorkPackageViewFiltersService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service";
+import { QueryFilterResource } from "core-app/features/hal/resources/query-filter-resource";
+import { QueryOperatorResource } from "core-app/features/hal/resources/query-operator-resource";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
@Component({
templateUrl: './wp-table-configuration-relation-selector.html',
diff --git a/frontend/src/app/components/wp-table/configuration-modal/wp-table-configuration.modal.html b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.html
similarity index 100%
rename from frontend/src/app/components/wp-table/configuration-modal/wp-table-configuration.modal.html
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.html
diff --git a/frontend/src/app/components/wp-table/configuration-modal/wp-table-configuration.modal.ts b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.ts
similarity index 78%
rename from frontend/src/app/components/wp-table/configuration-modal/wp-table-configuration.modal.ts
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.ts
index 0a6568fb226..e5d306e8c13 100644
--- a/frontend/src/app/components/wp-table/configuration-modal/wp-table-configuration.modal.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.ts
@@ -13,26 +13,25 @@ import {
Optional,
ViewChild
} from '@angular/core';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
-import { WorkPackageViewColumnsService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service';
-import { WpTableConfigurationService } from 'core-components/wp-table/configuration-modal/wp-table-configuration.service';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
+import { WorkPackageViewColumnsService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service';
+import { WpTableConfigurationService } from 'core-app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.service';
import {
ActiveTabInterface,
TabComponent,
TabInterface,
TabPortalOutlet
-} from 'core-components/wp-table/configuration-modal/tab-portal-outlet';
-import { WorkPackageStatesInitializationService } from 'core-components/wp-list/wp-states-initialization.service';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { QueryFormResource } from 'core-app/modules/hal/resources/query-form-resource';
-import { LoadingIndicatorService } from 'core-app/modules/common/loading-indicator/loading-indicator.service';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { OpModalComponent } from 'core-app/modules/modal/modal.component';
-import { OpModalLocalsMap } from 'core-app/modules/modal/modal.types';
+} from 'core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet';
+import { WorkPackageStatesInitializationService } from 'core-app/features/work-packages/components/wp-list/wp-states-initialization.service';
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { LoadingIndicatorService } from 'core-app/core/loading-indicator/loading-indicator.service';
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { OpModalComponent } from 'core-app/shared/components/modal/modal.component';
+import { OpModalLocalsMap } from 'core-app/shared/components/modal/modal.types';
import { ComponentType } from "@angular/cdk/portal";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
export const WpTableConfigurationModalPrependToken = new InjectionToken<ComponentType<any>>('WpTableConfigurationModalPrependComponent');
diff --git a/frontend/src/app/components/wp-table/configuration-modal/wp-table-configuration.service.ts b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.service.ts
similarity index 51%
rename from frontend/src/app/components/wp-table/configuration-modal/wp-table-configuration.service.ts
rename to frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.service.ts
index 16eb8fc0560..612bb4680bc 100644
--- a/frontend/src/app/components/wp-table/configuration-modal/wp-table-configuration.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.service.ts
@@ -1,12 +1,12 @@
import { Injectable } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { WpTableConfigurationDisplaySettingsTab } from 'core-components/wp-table/configuration-modal/tabs/display-settings-tab.component';
-import { TabInterface } from "core-components/wp-table/configuration-modal/tab-portal-outlet";
-import { WpTableConfigurationColumnsTab } from "core-components/wp-table/configuration-modal/tabs/columns-tab.component";
-import { WpTableConfigurationFiltersTab } from "core-components/wp-table/configuration-modal/tabs/filters-tab.component";
-import { WpTableConfigurationSortByTab } from "core-components/wp-table/configuration-modal/tabs/sort-by-tab.component";
-import { WpTableConfigurationTimelinesTab } from "core-components/wp-table/configuration-modal/tabs/timelines-tab.component";
-import { WpTableConfigurationHighlightingTab } from "core-components/wp-table/configuration-modal/tabs/highlighting-tab.component";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WpTableConfigurationDisplaySettingsTab } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/display-settings-tab.component';
+import { TabInterface } from "core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet";
+import { WpTableConfigurationColumnsTab } from "core-app/features/work-packages/components/wp-table/configuration-modal/tabs/columns-tab.component";
+import { WpTableConfigurationFiltersTab } from "core-app/features/work-packages/components/wp-table/configuration-modal/tabs/filters-tab.component";
+import { WpTableConfigurationSortByTab } from "core-app/features/work-packages/components/wp-table/configuration-modal/tabs/sort-by-tab.component";
+import { WpTableConfigurationTimelinesTab } from "core-app/features/work-packages/components/wp-table/configuration-modal/tabs/timelines-tab.component";
+import { WpTableConfigurationHighlightingTab } from "core-app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component";
@Injectable()
export class WpTableConfigurationService {
diff --git a/frontend/src/app/components/wp-table/context-menu-helper/wp-context-menu-helper.service.ts b/frontend/src/app/features/work-packages/components/wp-table/context-menu-helper/wp-context-menu-helper.service.ts
similarity index 91%
rename from frontend/src/app/components/wp-table/context-menu-helper/wp-context-menu-helper.service.ts
rename to frontend/src/app/features/work-packages/components/wp-table/context-menu-helper/wp-context-menu-helper.service.ts
index 5e802b82de9..3f9daf89d19 100644
--- a/frontend/src/app/components/wp-table/context-menu-helper/wp-context-menu-helper.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/context-menu-helper/wp-context-menu-helper.service.ts
@@ -25,14 +25,14 @@
//
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { Injectable } from "@angular/core";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { UrlParamsHelperService } from 'core-components/wp-query/url-params-helper';
-import { HookService } from "core-app/modules/plugins/hook-service";
-import { WorkPackageViewTimelineService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service";
-import { WorkPackageViewHierarchyIdentationService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service";
-import { WorkPackageViewDisplayRepresentationService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { UrlParamsHelperService } from 'core-app/features/work-packages/components/wp-query/url-params-helper';
+import { HookService } from "core-app/features/plugins/hook-service";
+import { WorkPackageViewTimelineService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service";
+import { WorkPackageViewHierarchyIdentationService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service";
+import { WorkPackageViewDisplayRepresentationService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
export type WorkPackageAction = {
text:string;
diff --git a/frontend/src/app/components/wp-table/drag-and-drop/actions/group-by-drag-action.service.ts b/frontend/src/app/features/work-packages/components/wp-table/drag-and-drop/actions/group-by-drag-action.service.ts
similarity index 61%
rename from frontend/src/app/components/wp-table/drag-and-drop/actions/group-by-drag-action.service.ts
rename to frontend/src/app/features/work-packages/components/wp-table/drag-and-drop/actions/group-by-drag-action.service.ts
index 8ae3a47ee18..ca2b2a0c4b1 100644
--- a/frontend/src/app/components/wp-table/drag-and-drop/actions/group-by-drag-action.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/drag-and-drop/actions/group-by-drag-action.service.ts
@@ -1,15 +1,15 @@
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { TableDragActionService } from "core-components/wp-table/drag-and-drop/actions/table-drag-action.service";
-import { WorkPackageViewGroupByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-group-by.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { TableDragActionService } from "core-app/features/work-packages/components/wp-table/drag-and-drop/actions/table-drag-action.service";
+import { WorkPackageViewGroupByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-group-by.service";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { rowGroupClassName } from "core-components/wp-fast-table/builders/modes/grouped/grouped-classes.constants";
-import { locatePredecessorBySelector } from "core-components/wp-fast-table/helpers/wp-table-row-helpers";
-import { groupIdentifier } from "core-components/wp-fast-table/builders/modes/grouped/grouped-rows-helpers";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { HalEventsService } from "core-app/modules/hal/services/hal-events.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { rowGroupClassName } from "core-app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-classes.constants";
+import { locatePredecessorBySelector } from "core-app/features/work-packages/components/wp-fast-table/helpers/wp-table-row-helpers";
+import { groupIdentifier } from "core-app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-rows-helpers";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
export class GroupByDragActionService extends TableDragActionService {
diff --git a/frontend/src/app/components/wp-table/drag-and-drop/actions/hierarchy-drag-action.service.ts b/frontend/src/app/features/work-packages/components/wp-table/drag-and-drop/actions/hierarchy-drag-action.service.ts
similarity index 82%
rename from frontend/src/app/components/wp-table/drag-and-drop/actions/hierarchy-drag-action.service.ts
rename to frontend/src/app/features/work-packages/components/wp-table/drag-and-drop/actions/hierarchy-drag-action.service.ts
index 162a311c543..5dfd0fe0caa 100644
--- a/frontend/src/app/components/wp-table/drag-and-drop/actions/hierarchy-drag-action.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/drag-and-drop/actions/hierarchy-drag-action.service.ts
@@ -1,14 +1,14 @@
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { TableDragActionService } from "core-components/wp-table/drag-and-drop/actions/table-drag-action.service";
-import { WorkPackageViewHierarchiesService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
-import { WorkPackageRelationsHierarchyService } from "core-components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { TableDragActionService } from "core-app/features/work-packages/components/wp-table/drag-and-drop/actions/table-drag-action.service";
+import { WorkPackageViewHierarchiesService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
+import { WorkPackageRelationsHierarchyService } from "core-app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";
import {
hierarchyGroupClass,
hierarchyRootClass
-} from "core-components/wp-fast-table/helpers/wp-table-hierarchy-helpers";
-import { relationRowClass, isInsideCollapsedGroup } from "core-components/wp-fast-table/helpers/wp-table-row-helpers";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+} from "core-app/features/work-packages/components/wp-fast-table/helpers/wp-table-hierarchy-helpers";
+import { relationRowClass, isInsideCollapsedGroup } from "core-app/features/work-packages/components/wp-fast-table/helpers/wp-table-row-helpers";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
export class HierarchyDragActionService extends TableDragActionService {
diff --git a/frontend/src/app/components/wp-table/drag-and-drop/actions/table-drag-action.service.ts b/frontend/src/app/features/work-packages/components/wp-table/drag-and-drop/actions/table-drag-action.service.ts
similarity index 87%
rename from frontend/src/app/components/wp-table/drag-and-drop/actions/table-drag-action.service.ts
rename to frontend/src/app/features/work-packages/components/wp-table/drag-and-drop/actions/table-drag-action.service.ts
index 8d06fb6b702..cb8ece1a1f1 100644
--- a/frontend/src/app/components/wp-table/drag-and-drop/actions/table-drag-action.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/drag-and-drop/actions/table-drag-action.service.ts
@@ -1,5 +1,5 @@
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { Injector } from "@angular/core";
export class TableDragActionService {
diff --git a/frontend/src/app/components/wp-table/drag-and-drop/actions/table-drag-actions-registry.service.ts b/frontend/src/app/features/work-packages/components/wp-table/drag-and-drop/actions/table-drag-actions-registry.service.ts
similarity index 57%
rename from frontend/src/app/components/wp-table/drag-and-drop/actions/table-drag-actions-registry.service.ts
rename to frontend/src/app/features/work-packages/components/wp-table/drag-and-drop/actions/table-drag-actions-registry.service.ts
index 119052d4274..0b43dff0873 100644
--- a/frontend/src/app/components/wp-table/drag-and-drop/actions/table-drag-actions-registry.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/drag-and-drop/actions/table-drag-actions-registry.service.ts
@@ -1,8 +1,8 @@
import { Injectable, Injector } from "@angular/core";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { TableDragActionService } from "core-components/wp-table/drag-and-drop/actions/table-drag-action.service";
-import { HierarchyDragActionService } from "core-components/wp-table/drag-and-drop/actions/hierarchy-drag-action.service";
-import { GroupByDragActionService } from "core-components/wp-table/drag-and-drop/actions/group-by-drag-action.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { TableDragActionService } from "core-app/features/work-packages/components/wp-table/drag-and-drop/actions/table-drag-action.service";
+import { HierarchyDragActionService } from "core-app/features/work-packages/components/wp-table/drag-and-drop/actions/hierarchy-drag-action.service";
+import { GroupByDragActionService } from "core-app/features/work-packages/components/wp-table/drag-and-drop/actions/group-by-drag-action.service";
interface ITableDragActionService {
new(querySpace:IsolatedQuerySpace, injector:Injector):TableDragActionService;
diff --git a/frontend/src/app/components/wp-table/embedded/embedded-tables-macro.component.ts b/frontend/src/app/features/work-packages/components/wp-table/embedded/embedded-tables-macro.component.ts
similarity index 94%
rename from frontend/src/app/components/wp-table/embedded/embedded-tables-macro.component.ts
rename to frontend/src/app/features/work-packages/components/wp-table/embedded/embedded-tables-macro.component.ts
index 8e2c57ddd4d..10bff14332b 100644
--- a/frontend/src/app/components/wp-table/embedded/embedded-tables-macro.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/embedded/embedded-tables-macro.component.ts
@@ -27,7 +27,7 @@
//++ Ng1FieldControlsWrapper,
import { Component, ElementRef } from "@angular/core";
-import { WorkPackageTableConfigurationObject } from "core-components/wp-table/wp-table-configuration";
+import { WorkPackageTableConfigurationObject } from "core-app/features/work-packages/components/wp-table/wp-table-configuration";
export const wpEmbeddedTableMacroSelector = 'macro.embedded-table';
diff --git a/frontend/src/app/components/wp-table/embedded/wp-embedded-base.component.ts b/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-base.component.ts
similarity index 81%
rename from frontend/src/app/components/wp-table/embedded/wp-embedded-base.component.ts
rename to frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-base.component.ts
index e138e44eebf..8ee0f08e0b4 100644
--- a/frontend/src/app/components/wp-table/embedded/wp-embedded-base.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-base.component.ts
@@ -1,18 +1,18 @@
import { AfterViewInit, ChangeDetectorRef, Directive, Input, SimpleChanges } from '@angular/core';
-import { CurrentProjectService } from '../../projects/current-project.service';
import { WorkPackageStatesInitializationService } from '../../wp-list/wp-states-initialization.service';
import {
WorkPackageTableConfiguration,
WorkPackageTableConfigurationObject
-} from 'core-components/wp-table/wp-table-configuration';
-import { LoadingIndicatorService } from 'core-app/modules/common/loading-indicator/loading-indicator.service';
-import { UrlParamsHelperService } from 'core-components/wp-query/url-params-helper';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { WorkPackagesViewBase } from "core-app/modules/work_packages/routing/wp-view-base/work-packages-view.base";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+} from 'core-app/features/work-packages/components/wp-table/wp-table-configuration';
+import { LoadingIndicatorService } from 'core-app/core/loading-indicator/loading-indicator.service';
+import { UrlParamsHelperService } from 'core-app/features/work-packages/components/wp-query/url-params-helper';
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { WorkPackagesViewBase } from "core-app/features/work-packages/routing/wp-view-base/work-packages-view.base";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
@Directive()
export abstract class WorkPackageEmbeddedBaseComponent extends WorkPackagesViewBase implements AfterViewInit {
diff --git a/frontend/src/app/components/wp-table/embedded/wp-embedded-table-entry.component.ts b/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table-entry.component.ts
similarity index 100%
rename from frontend/src/app/components/wp-table/embedded/wp-embedded-table-entry.component.ts
rename to frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table-entry.component.ts
diff --git a/frontend/src/app/components/wp-table/embedded/wp-embedded-table.component.ts b/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component.ts
similarity index 78%
rename from frontend/src/app/components/wp-table/embedded/wp-embedded-table.component.ts
rename to frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component.ts
index 8f72521b2c0..56cbfc0ba42 100644
--- a/frontend/src/app/components/wp-table/embedded/wp-embedded-table.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component.ts
@@ -1,17 +1,17 @@
import { AfterViewInit, Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
-import { WorkPackageViewTimelineService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service';
-import { WorkPackageViewPaginationService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-pagination.service';
-import { OpTableActionFactory } from 'core-components/wp-table/table-actions/table-action';
-import { OpTableActionsService } from 'core-components/wp-table/table-actions/table-actions.service';
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { WpTableConfigurationModalComponent } from 'core-components/wp-table/configuration-modal/wp-table-configuration.modal';
-import { OpModalService } from 'core-app/modules/modal/modal.service';
-import { WorkPackageEmbeddedBaseComponent } from "core-components/wp-table/embedded/wp-embedded-base.component";
-import { QueryFormResource } from "core-app/modules/hal/resources/query-form-resource";
+import { WorkPackageViewTimelineService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service';
+import { WorkPackageViewPaginationService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-pagination.service';
+import { OpTableActionFactory } from 'core-app/features/work-packages/components/wp-table/table-actions/table-action';
+import { OpTableActionsService } from 'core-app/features/work-packages/components/wp-table/table-actions/table-actions.service';
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { WpTableConfigurationModalComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal';
+import { OpModalService } from 'core-app/shared/components/modal/modal.service';
+import { WorkPackageEmbeddedBaseComponent } from "core-app/features/work-packages/components/wp-table/embedded/wp-embedded-base.component";
+import { QueryFormResource } from "core-app/features/hal/resources/query-form-resource";
import { distinctUntilChanged, map, take, withLatestFrom } from "rxjs/operators";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { KeepTabService } from "core-components/wp-single-view-tabs/keep-tab/keep-tab.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { KeepTabService } from "core-app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Component({
selector: 'wp-embedded-table',
@@ -65,16 +65,16 @@ export class WorkPackageEmbeddedTableComponent extends WorkPackageEmbeddedBaseCo
this.untilDestroyed(),
withLatestFrom(this.querySpace.query.values$())
).subscribe(([_, query]) => {
- const pagination = this.wpTablePagination.paginationObject;
- const params = this.urlParamsHelper.buildV3GetQueryFromQueryResource(query, pagination);
+ const pagination = this.wpTablePagination.paginationObject;
+ const params = this.urlParamsHelper.buildV3GetQueryFromQueryResource(query, pagination);
- this.loadingIndicator =
+ this.loadingIndicator =
this
.wpListService
.loadQueryFromExisting(query, params, this.queryProjectScope)
.toPromise()
.then((query) => this.initializeStates(query));
- });
+ });
}
public openConfigurationModal(onUpdated:() => void) {
diff --git a/frontend/src/app/components/wp-table/embedded/wp-embedded-table.html b/frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table.html
similarity index 100%
rename from frontend/src/app/components/wp-table/embedded/wp-embedded-table.html
rename to frontend/src/app/features/work-packages/components/wp-table/embedded/wp-embedded-table.html
diff --git a/frontend/src/app/components/wp-table/external-configuration/external-query-configuration.component.ts b/frontend/src/app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.component.ts
similarity index 69%
rename from frontend/src/app/components/wp-table/external-configuration/external-query-configuration.component.ts
rename to frontend/src/app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.component.ts
index ad51aad5b63..178c5b953ab 100644
--- a/frontend/src/app/components/wp-table/external-configuration/external-query-configuration.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.component.ts
@@ -1,9 +1,9 @@
import { AfterViewInit, ChangeDetectorRef, Component, Inject, OnInit, ViewChild } from '@angular/core';
-import { WorkPackageEmbeddedTableComponent } from 'core-components/wp-table/embedded/wp-embedded-table.component';
-import { WpTableConfigurationService } from 'core-components/wp-table/configuration-modal/wp-table-configuration.service';
-import { RestrictedWpTableConfigurationService } from 'core-components/wp-table/external-configuration/restricted-wp-table-configuration.service';
-import { OpQueryConfigurationLocalsToken } from "core-components/wp-table/external-configuration/external-query-configuration.constants";
-import { UrlParamsHelperService } from "core-components/wp-query/url-params-helper";
+import { WorkPackageEmbeddedTableComponent } from 'core-app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component';
+import { WpTableConfigurationService } from 'core-app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.service';
+import { RestrictedWpTableConfigurationService } from 'core-app/features/work-packages/components/wp-table/external-configuration/restricted-wp-table-configuration.service';
+import { OpQueryConfigurationLocalsToken } from "core-app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.constants";
+import { UrlParamsHelperService } from "core-app/features/work-packages/components/wp-query/url-params-helper";
export interface QueryConfigurationLocals {
service:any;
diff --git a/frontend/src/app/components/wp-table/external-configuration/external-query-configuration.constants.ts b/frontend/src/app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.constants.ts
similarity index 100%
rename from frontend/src/app/components/wp-table/external-configuration/external-query-configuration.constants.ts
rename to frontend/src/app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.constants.ts
diff --git a/frontend/src/app/components/wp-table/external-configuration/external-query-configuration.service.ts b/frontend/src/app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.service.ts
similarity index 88%
rename from frontend/src/app/components/wp-table/external-configuration/external-query-configuration.service.ts
rename to frontend/src/app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.service.ts
index 3b0e139ca01..265dadd9e3b 100644
--- a/frontend/src/app/components/wp-table/external-configuration/external-query-configuration.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.service.ts
@@ -1,12 +1,12 @@
import { ApplicationRef, ComponentFactoryResolver, Injectable, Injector } from '@angular/core';
import { ComponentPortal, DomPortalOutlet, PortalInjector } from '@angular/cdk/portal';
import { TransitionService } from '@uirouter/core';
-import { FocusHelperService } from 'core-app/modules/focus/focus-helper';
+import { FocusHelperService } from 'core-app/shared/directives/focus/focus-helper';
import {
ExternalQueryConfigurationComponent,
QueryConfigurationLocals
-} from "core-components/wp-table/external-configuration/external-query-configuration.component";
-import { OpQueryConfigurationLocalsToken } from "core-components/wp-table/external-configuration/external-query-configuration.constants";
+} from "core-app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.component";
+import { OpQueryConfigurationLocalsToken } from "core-app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.constants";
export type Class = { new(...args:any[]):any; };
diff --git a/frontend/src/app/components/wp-table/external-configuration/external-query-configuration.template.html b/frontend/src/app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.template.html
similarity index 100%
rename from frontend/src/app/components/wp-table/external-configuration/external-query-configuration.template.html
rename to frontend/src/app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.template.html
diff --git a/frontend/src/app/features/work-packages/components/wp-table/external-configuration/external-relation-query-configuration.component.ts b/frontend/src/app/features/work-packages/components/wp-table/external-configuration/external-relation-query-configuration.component.ts
new file mode 100644
index 00000000000..0d8995bae27
--- /dev/null
+++ b/frontend/src/app/features/work-packages/components/wp-table/external-configuration/external-relation-query-configuration.component.ts
@@ -0,0 +1,20 @@
+import {
+ Component,
+} from '@angular/core';
+import { WpTableConfigurationService } from 'core-app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.service';
+import { RestrictedWpTableConfigurationService } from 'core-app/features/work-packages/components/wp-table/external-configuration/restricted-wp-table-configuration.service';
+import { WpTableConfigurationRelationSelectorComponent } from "core-app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration-relation-selector";
+import { WpTableConfigurationModalPrependToken } from "core-app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal";
+import { ExternalQueryConfigurationComponent } from "core-app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.component";
+
+@Component({
+ templateUrl: './external-query-configuration.template.html',
+ providers: [
+ [
+ { provide: WpTableConfigurationService, useClass: RestrictedWpTableConfigurationService }
+ ],
+ { provide: WpTableConfigurationModalPrependToken, useValue: WpTableConfigurationRelationSelectorComponent }
+ ],
+})
+export class ExternalRelationQueryConfigurationComponent extends ExternalQueryConfigurationComponent {
+}
diff --git a/frontend/src/app/components/wp-table/external-configuration/external-relation-query-configuration.service.ts b/frontend/src/app/features/work-packages/components/wp-table/external-configuration/external-relation-query-configuration.service.ts
similarity index 61%
rename from frontend/src/app/components/wp-table/external-configuration/external-relation-query-configuration.service.ts
rename to frontend/src/app/features/work-packages/components/wp-table/external-configuration/external-relation-query-configuration.service.ts
index 9bba5da32ff..2362c442b7e 100644
--- a/frontend/src/app/components/wp-table/external-configuration/external-relation-query-configuration.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/external-configuration/external-relation-query-configuration.service.ts
@@ -2,8 +2,8 @@ import { Injectable } from '@angular/core';
import {
Class,
ExternalQueryConfigurationService
-} from "core-components/wp-table/external-configuration/external-query-configuration.service";
-import { ExternalRelationQueryConfigurationComponent } from "core-components/wp-table/external-configuration/external-relation-query-configuration.component";
+} from "core-app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.service";
+import { ExternalRelationQueryConfigurationComponent } from "core-app/features/work-packages/components/wp-table/external-configuration/external-relation-query-configuration.component";
@Injectable()
export class ExternalRelationQueryConfigurationService extends ExternalQueryConfigurationService {
diff --git a/frontend/src/app/features/work-packages/components/wp-table/external-configuration/restricted-wp-table-configuration.service.ts b/frontend/src/app/features/work-packages/components/wp-table/external-configuration/restricted-wp-table-configuration.service.ts
new file mode 100644
index 00000000000..a074eaba8a8
--- /dev/null
+++ b/frontend/src/app/features/work-packages/components/wp-table/external-configuration/restricted-wp-table-configuration.service.ts
@@ -0,0 +1,30 @@
+import { Inject, Injectable } from '@angular/core';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { TabInterface } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet';
+import { WpTableConfigurationService } from 'core-app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.service';
+import { QueryConfigurationLocals } from 'core-app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.component';
+import { OpQueryConfigurationLocalsToken } from "core-app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.constants";
+
+@Injectable()
+export class RestrictedWpTableConfigurationService extends WpTableConfigurationService {
+
+ constructor(@Inject(OpQueryConfigurationLocalsToken) readonly locals:QueryConfigurationLocals,
+ readonly I18n:I18nService) {
+ super(I18n);
+ }
+
+ public get tabs():TabInterface[] {
+ const disabledTabs = this.locals.disabledTabs || {};
+
+ return this
+ ._tabs
+ .map(el => {
+ const reason = disabledTabs[el.id];
+ if (reason != null) {
+ el.disable = reason;
+ }
+
+ return el;
+ });
+ }
+}
\ No newline at end of file
diff --git a/frontend/src/app/components/wp-table/sort-header/sort-header.directive.html b/frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.html
similarity index 100%
rename from frontend/src/app/components/wp-table/sort-header/sort-header.directive.html
rename to frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.html
diff --git a/frontend/src/app/components/wp-table/sort-header/sort-header.directive.ts b/frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.ts
similarity index 86%
rename from frontend/src/app/components/wp-table/sort-header/sort-header.directive.ts
rename to frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.ts
index 030414faf77..12b1c2691b4 100644
--- a/frontend/src/app/components/wp-table/sort-header/sort-header.directive.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/sort-header/sort-header.directive.ts
@@ -27,16 +27,16 @@
//++
import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, Input } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { RelationQueryColumn, TypeRelationQueryColumn } from 'core-components/wp-query/query-column';
-import { WorkPackageTable } from 'core-components/wp-fast-table/wp-fast-table';
-import { QUERY_SORT_BY_ASC, QUERY_SORT_BY_DESC } from 'core-app/modules/hal/resources/query-sort-by-resource';
-import { WorkPackageViewHierarchiesService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
-import { WorkPackageViewSortByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
-import { WorkPackageViewGroupByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-group-by.service";
-import { WorkPackageViewRelationColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { RelationQueryColumn, TypeRelationQueryColumn } from 'core-app/features/work-packages/components/wp-query/query-column';
+import { WorkPackageTable } from 'core-app/features/work-packages/components/wp-fast-table/wp-fast-table';
+import { QUERY_SORT_BY_ASC, QUERY_SORT_BY_DESC } from "core-app/features/hal/resources/query-sort-by-resource";
+import { WorkPackageViewHierarchiesService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
+import { WorkPackageViewSortByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
+import { WorkPackageViewGroupByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-group-by.service";
+import { WorkPackageViewRelationColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
import { combineLatest } from "rxjs";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
@Component({
diff --git a/frontend/src/app/components/wp-table/table-actions/actions/context-menu-table-action.ts b/frontend/src/app/features/work-packages/components/wp-table/table-actions/actions/context-menu-table-action.ts
similarity index 79%
rename from frontend/src/app/components/wp-table/table-actions/actions/context-menu-table-action.ts
rename to frontend/src/app/features/work-packages/components/wp-table/table-actions/actions/context-menu-table-action.ts
index c4e3ad56d86..429bdf010bc 100644
--- a/frontend/src/app/components/wp-table/table-actions/actions/context-menu-table-action.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/table-actions/actions/context-menu-table-action.ts
@@ -2,8 +2,8 @@ import {
contextColumnIcon,
contextMenuLinkClassName,
OpTableAction
-} from 'core-components/wp-table/table-actions/table-action';
-import { opIconElement } from 'core-app/helpers/op-icon-builder';
+} from 'core-app/features/work-packages/components/wp-table/table-actions/table-action';
+import { opIconElement } from 'core-app/shared/helpers/op-icon-builder';
export class OpContextMenuTableAction extends OpTableAction {
diff --git a/frontend/src/app/components/wp-table/table-actions/actions/details-table-action.ts b/frontend/src/app/features/work-packages/components/wp-table/table-actions/actions/details-table-action.ts
similarity index 63%
rename from frontend/src/app/components/wp-table/table-actions/actions/details-table-action.ts
rename to frontend/src/app/features/work-packages/components/wp-table/table-actions/actions/details-table-action.ts
index b6683dd445a..b7828fb7e61 100644
--- a/frontend/src/app/components/wp-table/table-actions/actions/details-table-action.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/table-actions/actions/details-table-action.ts
@@ -1,8 +1,8 @@
-import { contextColumnIcon, OpTableAction } from 'core-components/wp-table/table-actions/table-action';
-import { opIconElement } from 'core-app/helpers/op-icon-builder';
+import { contextColumnIcon, OpTableAction } from 'core-app/features/work-packages/components/wp-table/table-actions/table-action';
+import { opIconElement } from 'core-app/shared/helpers/op-icon-builder';
-import { KeepTabService } from 'core-components/wp-single-view-tabs/keep-tab/keep-tab.service';
-import { UiStateLinkBuilder } from 'core-components/wp-fast-table/builders/ui-state-link-builder';
+import { KeepTabService } from 'core-app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service';
+import { UiStateLinkBuilder } from 'core-app/features/work-packages/components/wp-fast-table/builders/ui-state-link-builder';
import { StateService } from "@uirouter/core";
export const detailsLinkClassName = 'wp-table--details-link';
diff --git a/frontend/src/app/components/wp-table/table-actions/actions/unlink-table-action.ts b/frontend/src/app/features/work-packages/components/wp-table/table-actions/actions/unlink-table-action.ts
similarity index 87%
rename from frontend/src/app/components/wp-table/table-actions/actions/unlink-table-action.ts
rename to frontend/src/app/features/work-packages/components/wp-table/table-actions/actions/unlink-table-action.ts
index 064d2db5d72..af4d5e3b373 100644
--- a/frontend/src/app/components/wp-table/table-actions/actions/unlink-table-action.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/table-actions/actions/unlink-table-action.ts
@@ -2,10 +2,10 @@ import {
contextColumnIcon,
OpTableAction,
OpTableActionFactory,
-} from 'core-components/wp-table/table-actions/table-action';
-import { opIconElement } from 'core-app/helpers/op-icon-builder';
+} from 'core-app/features/work-packages/components/wp-table/table-actions/table-action';
+import { opIconElement } from 'core-app/shared/helpers/op-icon-builder';
import { Injector } from '@angular/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
export class OpUnlinkTableAction extends OpTableAction {
diff --git a/frontend/src/app/components/wp-table/table-actions/table-action.ts b/frontend/src/app/features/work-packages/components/wp-table/table-actions/table-action.ts
similarity index 77%
rename from frontend/src/app/components/wp-table/table-actions/table-action.ts
rename to frontend/src/app/features/work-packages/components/wp-table/table-actions/table-action.ts
index 57d6f81cd46..f55b60b08e6 100644
--- a/frontend/src/app/components/wp-table/table-actions/table-action.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/table-actions/table-action.ts
@@ -1,7 +1,7 @@
import { Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export type OpTableActionFactory = (i:Injector, wp:WorkPackageResource) => OpTableAction;
export const contextMenuTdClassName = 'wp-table--context-menu-td';
diff --git a/frontend/src/app/components/wp-table/table-actions/table-actions.service.ts b/frontend/src/app/features/work-packages/components/wp-table/table-actions/table-actions.service.ts
similarity index 66%
rename from frontend/src/app/components/wp-table/table-actions/table-actions.service.ts
rename to frontend/src/app/features/work-packages/components/wp-table/table-actions/table-actions.service.ts
index b3b198660dc..e993b685484 100644
--- a/frontend/src/app/components/wp-table/table-actions/table-actions.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/table-actions/table-actions.service.ts
@@ -1,10 +1,10 @@
import { Injectable, Injector } from '@angular/core';
import {
OpTableActionFactory,
-} from 'core-components/wp-table/table-actions/table-action';
-import { OpDetailsTableAction } from 'core-components/wp-table/table-actions/actions/details-table-action';
-import { OpContextMenuTableAction } from 'core-components/wp-table/table-actions/actions/context-menu-table-action';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+} from 'core-app/features/work-packages/components/wp-table/table-actions/table-action';
+import { OpDetailsTableAction } from 'core-app/features/work-packages/components/wp-table/table-actions/actions/details-table-action';
+import { OpContextMenuTableAction } from 'core-app/features/work-packages/components/wp-table/table-actions/actions/context-menu-table-action';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
@Injectable()
export class OpTableActionsService {
diff --git a/frontend/src/app/components/wp-table/table-pagination/wp-table-pagination.component.spec.ts b/frontend/src/app/features/work-packages/components/wp-table/table-pagination/wp-table-pagination.component.spec.ts
similarity index 80%
rename from frontend/src/app/components/wp-table/table-pagination/wp-table-pagination.component.spec.ts
rename to frontend/src/app/features/work-packages/components/wp-table/table-pagination/wp-table-pagination.component.spec.ts
index ed9f2e00b45..6f5ecf0a72a 100644
--- a/frontend/src/app/components/wp-table/table-pagination/wp-table-pagination.component.spec.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/table-pagination/wp-table-pagination.component.spec.ts
@@ -27,21 +27,20 @@
//++
import { HttpClientModule } from '@angular/common/http';
-
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { inject, TestBed, waitForAsync } from '@angular/core/testing';
-import { States } from 'core-components/states.service';
-import { PaginationInstance } from 'core-components/table-pagination/pagination-instance';
-import { IPaginationOptions, PaginationService } from 'core-components/table-pagination/pagination-service';
-import { WorkPackageViewPaginationService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-pagination.service';
-import { WorkPackageTablePaginationComponent } from 'core-components/wp-table/table-pagination/wp-table-pagination.component';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { OpenProject } from "core-app/globals/openproject";
-import { WorkPackageViewSortByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
-import { ConfigurationService } from "core-app/modules/common/config/configuration.service";
-import { OpIconComponent } from "core-app/modules/icon/icon.component";
+import { States } from 'core-app/core/states/states.service';
+import { WorkPackageViewPaginationService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-pagination.service';
+import { WorkPackageTablePaginationComponent } from 'core-app/features/work-packages/components/wp-table/table-pagination/wp-table-pagination.component';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { OpenProject } from "core-app/core/setup/globals/openproject";
+import { WorkPackageViewSortByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
+import { ConfigurationService } from "core-app/core/config/configuration.service";
+import { OpIconComponent } from "core-app/shared/components/icon/icon.component";
+import { IPaginationOptions, PaginationService } from "core-app/shared/components/table-pagination/pagination-service";
+import { PaginationInstance } from "core-app/shared/components/table-pagination/pagination-instance";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
function setupMocks(paginationService:PaginationService) {
const options:IPaginationOptions = {
@@ -165,3 +164,4 @@ describe('wpTablePagination Directive', () => {
+
diff --git a/frontend/src/app/components/wp-table/table-pagination/wp-table-pagination.component.ts b/frontend/src/app/features/work-packages/components/wp-table/table-pagination/wp-table-pagination.component.ts
similarity index 77%
rename from frontend/src/app/components/wp-table/table-pagination/wp-table-pagination.component.ts
rename to frontend/src/app/features/work-packages/components/wp-table/table-pagination/wp-table-pagination.component.ts
index a18db5fe7d0..3d2da50c22d 100644
--- a/frontend/src/app/components/wp-table/table-pagination/wp-table-pagination.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/table-pagination/wp-table-pagination.component.ts
@@ -26,19 +26,19 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { TablePaginationComponent } from 'core-components/table-pagination/table-pagination.component';
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { IPaginationOptions, PaginationService } from 'core-components/table-pagination/pagination-service';
-import { WorkPackageViewPaginationService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-pagination.service";
-import { WorkPackageViewPagination } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-table-pagination";
-import { WorkPackageViewSortByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageViewPaginationService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-pagination.service";
+import { WorkPackageViewPagination } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-table-pagination";
+import { WorkPackageViewSortByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { combineLatest } from 'rxjs';
-import { WorkPackageCollectionResource } from "core-app/modules/hal/resources/wp-collection-resource";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
+import { TablePaginationComponent } from "core-app/shared/components/table-pagination/table-pagination.component";
+import { IPaginationOptions, PaginationService } from "core-app/shared/components/table-pagination/pagination-service";
@Component({
- templateUrl: '../../table-pagination/table-pagination.component.html',
+ templateUrl: '../../../../../shared/components/table-pagination/table-pagination.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
selector: 'wp-table-pagination'
})
diff --git a/frontend/src/app/components/wp-table/timeline/cells/timeline-cell-renderer.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/timeline-cell-renderer.ts
similarity index 94%
rename from frontend/src/app/components/wp-table/timeline/cells/timeline-cell-renderer.ts
rename to frontend/src/app/features/work-packages/components/wp-table/timeline/cells/timeline-cell-renderer.ts
index 77929c6a860..88f11a0d0e0 100644
--- a/frontend/src/app/components/wp-table/timeline/cells/timeline-cell-renderer.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/timeline-cell-renderer.ts
@@ -1,5 +1,5 @@
import * as moment from 'moment';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import {
calculatePositionValueForDayCount,
calculatePositionValueForDayCountingPx,
@@ -22,17 +22,16 @@ import {
} from './wp-timeline-cell';
import { classNameBarLabel, classNameLeftHandle, classNameRightHandle } from './wp-timeline-cell-mouse-handler';
import { WorkPackageTimelineTableController } from '../container/wp-timeline-container.directive';
-import { DisplayFieldRenderer } from 'core-app/modules/fields/display/display-field-renderer';
+import { DisplayFieldRenderer } from 'core-app/shared/components/fields/display/display-field-renderer';
import { Injector } from '@angular/core';
-import { TimezoneService } from 'core-components/datetime/timezone.service';
-import { Highlighting } from "core-components/wp-fast-table/builders/highlighting/highlighting.functions";
-import { HierarchyRenderPass } from "core-components/wp-fast-table/builders/modes/hierarchy/hierarchy-render-pass";
+import { Highlighting } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting.functions";
+import { HierarchyRenderPass } from "core-app/features/work-packages/components/wp-fast-table/builders/modes/hierarchy/hierarchy-render-pass";
import Moment = moment.Moment;
-import { WorkPackageViewTimelineService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service";
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { WorkPackageViewTimelineService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service";
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
export interface CellDateMovement {
// Target values to move work package to
@@ -44,6 +43,9 @@ export interface CellDateMovement {
export type LabelPosition = 'left'|'right'|'farRight';
+class TimezoneService {
+}
+
export class TimelineCellRenderer {
@InjectField() wpTableTimeline:WorkPackageViewTimelineService;
@InjectField() TimezoneService:TimezoneService;
diff --git a/frontend/src/app/components/wp-table/timeline/cells/timeline-milestone-cell-renderer.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/timeline-milestone-cell-renderer.ts
similarity index 97%
rename from frontend/src/app/components/wp-table/timeline/cells/timeline-milestone-cell-renderer.ts
rename to frontend/src/app/features/work-packages/components/wp-table/timeline/cells/timeline-milestone-cell-renderer.ts
index 86d03dbb726..e13b4527845 100644
--- a/frontend/src/app/components/wp-table/timeline/cells/timeline-milestone-cell-renderer.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/timeline-milestone-cell-renderer.ts
@@ -1,5 +1,5 @@
import * as moment from 'moment';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import {
calculatePositionValueForDayCountingPx,
RenderInfo,
@@ -19,7 +19,7 @@ import {
WorkPackageCellLabels
} from './wp-timeline-cell';
import Moment = moment.Moment;
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
export class TimelineMilestoneCellRenderer extends TimelineCellRenderer {
public get type():string {
diff --git a/frontend/src/app/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.ts
similarity index 91%
rename from frontend/src/app/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.ts
rename to frontend/src/app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.ts
index 2eb7addfcd7..51844cc2af9 100644
--- a/frontend/src/app/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cell-mouse-handler.ts
@@ -32,18 +32,18 @@ import { WorkPackageTimelineTableController } from '../container/wp-timeline-con
import { RenderInfo } from '../wp-timeline';
import { TimelineCellRenderer } from './timeline-cell-renderer';
import { WorkPackageCellLabels } from './wp-timeline-cell';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { keyCodes } from 'core-app/modules/common/keyCodes.enum';
-import { LoadingIndicatorService } from "core-app/modules/common/loading-indicator/loading-indicator.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { keyCodes } from 'core-app/shared/helpers/keyCodes.enum';
+import { LoadingIndicatorService } from "core-app/core/loading-indicator/loading-indicator.service";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
-import { HalEventsService } from "core-app/modules/hal/services/hal-events.service";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
import Moment = moment.Moment;
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { take } from "rxjs/operators";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
export const classNameBar = 'bar';
export const classNameLeftHandle = 'leftHandle';
diff --git a/frontend/src/app/components/wp-table/timeline/cells/wp-timeline-cell.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cell.ts
similarity index 89%
rename from frontend/src/app/components/wp-table/timeline/cells/wp-timeline-cell.ts
rename to frontend/src/app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cell.ts
index 0e4d4a9610e..8166524ee1b 100644
--- a/frontend/src/app/components/wp-table/timeline/cells/wp-timeline-cell.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cell.ts
@@ -25,21 +25,21 @@
//
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { States } from '../../../states.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { States } from "core-app/core/states/states.service";
import { WorkPackageTimelineTableController } from '../container/wp-timeline-container.directive';
import { RenderInfo } from '../wp-timeline';
import { TimelineCellRenderer } from './timeline-cell-renderer';
import { TimelineMilestoneCellRenderer } from './timeline-milestone-cell-renderer';
import { registerWorkPackageMouseHandler } from './wp-timeline-cell-mouse-handler';
import { Injector } from '@angular/core';
-import { LoadingIndicatorService } from "core-app/modules/common/loading-indicator/loading-indicator.service";
+import { LoadingIndicatorService } from "core-app/core/loading-indicator/loading-indicator.service";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { HalEventsService } from "core-app/modules/hal/services/hal-events.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
export const classNameLeftLabel = 'labelLeft';
export const classNameRightContainer = 'containerRight';
diff --git a/frontend/src/app/components/wp-table/timeline/cells/wp-timeline-cells-renderer.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cells-renderer.ts
similarity index 92%
rename from frontend/src/app/components/wp-table/timeline/cells/wp-timeline-cells-renderer.ts
rename to frontend/src/app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cells-renderer.ts
index 03e92f52af4..9d79f96757a 100644
--- a/frontend/src/app/components/wp-table/timeline/cells/wp-timeline-cells-renderer.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cells-renderer.ts
@@ -27,17 +27,16 @@
//++
import { Injector } from '@angular/core';
-import { States } from '../../../states.service';
+import { States } from "core-app/core/states/states.service";
import { WorkPackageTimelineTableController } from '../container/wp-timeline-container.directive';
import { RenderInfo } from '../wp-timeline';
import { TimelineCellRenderer } from './timeline-cell-renderer';
import { TimelineMilestoneCellRenderer } from './timeline-milestone-cell-renderer';
import { WorkPackageTimelineCell } from './wp-timeline-cell';
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { RenderedWorkPackage } from "core-app/modules/work_packages/render-info/rendered-work-package.type";
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class WorkPackageTimelineCellsRenderer {
diff --git a/frontend/src/app/components/wp-table/timeline/container/wp-timeline-container.directive.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.directive.ts
similarity index 90%
rename from frontend/src/app/components/wp-table/timeline/container/wp-timeline-container.directive.ts
rename to frontend/src/app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.directive.ts
index 76756254318..9ea893e9d8d 100644
--- a/frontend/src/app/components/wp-table/timeline/container/wp-timeline-container.directive.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.directive.ts
@@ -27,10 +27,9 @@
//++
import { AfterViewInit, Component, ElementRef, Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { INotification, NotificationsService } from 'core-app/modules/common/notifications/notifications.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { IsolatedQuerySpace } from 'core-app/modules/work_packages/query-space/isolated-query-space';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { INotification, NotificationsService } from 'core-app/shared/components/notifications/notifications.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import * as moment from 'moment';
import { Moment } from 'moment';
import { filter, takeUntil } from 'rxjs/operators';
@@ -45,26 +44,27 @@ import {
zoomLevelOrder
} from '../wp-timeline';
import { input, InputState } from 'reactivestates';
-import { WorkPackageTable } from 'core-components/wp-fast-table/wp-fast-table';
-import { WorkPackageTimelineCellsRenderer } from 'core-components/wp-table/timeline/cells/wp-timeline-cells-renderer';
-import { States } from 'core-components/states.service';
-import { WorkPackageViewTimelineService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service';
-import { WorkPackageRelationsService } from 'core-components/wp-relations/wp-relations.service';
-import { WorkPackageViewHierarchiesService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service';
-import { WorkPackageTimelineCell } from 'core-components/wp-table/timeline/cells/wp-timeline-cell';
-import { selectorTimelineSide } from 'core-components/wp-table/wp-table-scroll-sync';
-import { debugLog, timeOutput } from 'core-app/helpers/debug_output';
-import { RenderedWorkPackage } from 'core-app/modules/work_packages/render-info/rendered-work-package.type';
-import { HalEventsService } from 'core-app/modules/hal/services/hal-events.service';
-import { WorkPackageNotificationService } from 'core-app/modules/work_packages/notifications/work-package-notification.service';
+import { WorkPackageTable } from 'core-app/features/work-packages/components/wp-fast-table/wp-fast-table';
+import { WorkPackageTimelineCellsRenderer } from 'core-app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cells-renderer';
+import { States } from 'core-app/core/states/states.service';
+import { WorkPackageViewTimelineService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service';
+import { WorkPackageRelationsService } from 'core-app/features/work-packages/components/wp-relations/wp-relations.service';
+import { WorkPackageViewHierarchiesService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service';
+import { WorkPackageTimelineCell } from 'core-app/features/work-packages/components/wp-table/timeline/cells/wp-timeline-cell';
+import { selectorTimelineSide } from 'core-app/features/work-packages/components/wp-table/wp-table-scroll-sync';
+import { debugLog, timeOutput } from 'core-app/shared/helpers/debug_output';
+import { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';
import { combineLatest, Observable } from 'rxjs';
-import { UntilDestroyedMixin } from 'core-app/helpers/angular/until-destroyed.mixin';
-import { WorkPackagesTableComponent } from 'core-components/wp-table/wp-table.component';
+import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';
+import { WorkPackagesTableComponent } from 'core-app/features/work-packages/components/wp-table/wp-table.component';
import {
groupIdFromIdentifier,
groupTypeFromIdentifier
-} from 'core-components/wp-fast-table/builders/modes/grouped/grouped-rows-helpers';
-import { WorkPackageViewCollapsedGroupsService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service';
+} from 'core-app/features/work-packages/components/wp-fast-table/builders/modes/grouped/grouped-rows-helpers';
+import { WorkPackageViewCollapsedGroupsService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service';
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
+
@Component({
selector: 'wp-timeline-container',
diff --git a/frontend/src/app/components/wp-table/timeline/container/wp-timeline-container.html b/frontend/src/app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.html
similarity index 100%
rename from frontend/src/app/components/wp-table/timeline/container/wp-timeline-container.html
rename to frontend/src/app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.html
diff --git a/frontend/src/app/components/wp-table/timeline/global-elements/timeline-relation-element.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/timeline-relation-element.ts
similarity index 81%
rename from frontend/src/app/components/wp-table/timeline/global-elements/timeline-relation-element.ts
rename to frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/timeline-relation-element.ts
index 6e5973cc5d0..11cdbe1396b 100644
--- a/frontend/src/app/components/wp-table/timeline/global-elements/timeline-relation-element.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/timeline-relation-element.ts
@@ -1,4 +1,4 @@
-import { RelationResource } from 'core-app/modules/hal/resources/relation-resource';
+import { RelationResource } from "core-app/features/hal/resources/relation-resource";
export function workPackagePrefix(workPackageId:string) {
return `__tl-relation-${workPackageId}`;
diff --git a/frontend/src/app/components/wp-table/timeline/global-elements/timeline-static-element.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/timeline-static-element.ts
similarity index 100%
rename from frontend/src/app/components/wp-table/timeline/global-elements/timeline-static-element.ts
rename to frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/timeline-static-element.ts
diff --git a/frontend/src/app/components/wp-table/timeline/global-elements/wp-timeline-relations.directive.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-relations.directive.ts
similarity index 95%
rename from frontend/src/app/components/wp-table/timeline/global-elements/wp-timeline-relations.directive.ts
rename to frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-relations.directive.ts
index 72bd0dcc2ba..40c7cdabad6 100644
--- a/frontend/src/app/components/wp-table/timeline/global-elements/wp-timeline-relations.directive.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-relations.directive.ts
@@ -27,19 +27,19 @@
//++
import { Component, ElementRef, Injector, OnInit } from '@angular/core';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { State } from 'reactivestates';
import { combineLatest } from 'rxjs';
import { filter, map, take } from 'rxjs/operators';
-import { States } from '../../../states.service';
+import { States } from "core-app/core/states/states.service";
import { RelationsStateValue, WorkPackageRelationsService } from '../../../wp-relations/wp-relations.service';
import { WorkPackageTimelineCell } from '../cells/wp-timeline-cell';
import { WorkPackageTimelineTableController } from '../container/wp-timeline-container.directive';
import { timelineElementCssClass, TimelineViewParameters } from '../wp-timeline';
import { TimelineRelationElement, workPackagePrefix } from './timeline-relation-element';
-import { WorkPackageViewTimelineService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { WorkPackageViewTimelineService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
const DEBUG_DRAW_RELATION_LINES_WITH_COLOR = false;
diff --git a/frontend/src/app/components/wp-table/timeline/global-elements/wp-timeline-static-elements.directive.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-static-elements.directive.ts
similarity index 97%
rename from frontend/src/app/components/wp-table/timeline/global-elements/wp-timeline-static-elements.directive.ts
rename to frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-static-elements.directive.ts
index d17cf7e706c..5d3f9224cfc 100644
--- a/frontend/src/app/components/wp-table/timeline/global-elements/wp-timeline-static-elements.directive.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-static-elements.directive.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
import { Component, ElementRef, OnInit } from '@angular/core';
-import { States } from '../../../states.service';
+import { States } from "core-app/core/states/states.service";
import { WorkPackageTimelineTableController } from '../container/wp-timeline-container.directive';
import { TimelineViewParameters } from '../wp-timeline';
import { TimelineStaticElement, timelineStaticElementCssClassname } from './timeline-static-element';
diff --git a/frontend/src/app/components/wp-table/timeline/global-elements/wp-timeline.today-line.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline.today-line.ts
similarity index 100%
rename from frontend/src/app/components/wp-table/timeline/global-elements/wp-timeline.today-line.ts
rename to frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline.today-line.ts
diff --git a/frontend/src/app/components/wp-table/timeline/grid/wp-timeline-grid.directive.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/grid/wp-timeline-grid.directive.ts
similarity index 98%
rename from frontend/src/app/components/wp-table/timeline/grid/wp-timeline-grid.directive.ts
rename to frontend/src/app/features/work-packages/components/wp-table/timeline/grid/wp-timeline-grid.directive.ts
index a38d210d108..d4ae8c08d94 100644
--- a/frontend/src/app/components/wp-table/timeline/grid/wp-timeline-grid.directive.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/grid/wp-timeline-grid.directive.ts
@@ -36,7 +36,7 @@ import {
TimelineViewParameters
} from '../wp-timeline';
import Moment = moment.Moment;
-import { TimelineZoomLevel } from 'core-app/modules/hal/resources/query-resource';
+import { TimelineZoomLevel } from "core-app/features/hal/resources/query-resource";
function checkForWeekendHighlight(date:Moment, cell:HTMLElement) {
const day = date.day();
diff --git a/frontend/src/app/components/wp-table/timeline/header/wp-timeline-header.directive.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/header/wp-timeline-header.directive.ts
similarity index 94%
rename from frontend/src/app/components/wp-table/timeline/header/wp-timeline-header.directive.ts
rename to frontend/src/app/features/work-packages/components/wp-table/timeline/header/wp-timeline-header.directive.ts
index 53a86bee08b..a8397101094 100644
--- a/frontend/src/app/components/wp-table/timeline/header/wp-timeline-header.directive.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/header/wp-timeline-header.directive.ts
@@ -27,8 +27,7 @@
//++
import { Component, ElementRef, OnInit } from '@angular/core';
-import { TimelineZoomLevel } from 'core-app/modules/hal/resources/query-resource';
-import { WorkPackageTimelineTableController } from 'core-components/wp-table/timeline/container/wp-timeline-container.directive';
+import { WorkPackageTimelineTableController } from 'core-app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.directive';
import * as moment from 'moment';
import {
calculatePositionValueForDayCount,
@@ -37,9 +36,10 @@ import {
timelineHeaderSelector,
TimelineViewParameters
} from '../wp-timeline';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { WorkPackageViewTimelineService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { WorkPackageViewTimelineService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service";
import Moment = moment.Moment;
+import { TimelineZoomLevel } from "core-app/features/hal/resources/query-resource";
@Component({
selector: timelineHeaderSelector,
diff --git a/frontend/src/app/components/wp-table/timeline/header/wp-timeline-header.html b/frontend/src/app/features/work-packages/components/wp-table/timeline/header/wp-timeline-header.html
similarity index 100%
rename from frontend/src/app/components/wp-table/timeline/header/wp-timeline-header.html
rename to frontend/src/app/features/work-packages/components/wp-table/timeline/header/wp-timeline-header.html
diff --git a/frontend/src/app/components/wp-table/timeline/wp-timeline.ts b/frontend/src/app/features/work-packages/components/wp-table/timeline/wp-timeline.ts
similarity index 94%
rename from frontend/src/app/components/wp-table/timeline/wp-timeline.ts
rename to frontend/src/app/features/work-packages/components/wp-table/timeline/wp-timeline.ts
index 5e3ca620fff..63f18c937e0 100644
--- a/frontend/src/app/components/wp-table/timeline/wp-timeline.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/wp-timeline.ts
@@ -1,4 +1,3 @@
-import { TimelineZoomLevel } from 'core-app/modules/hal/resources/query-resource';
//-- copyright
// OpenProject is an open source project management software.
// Copyright (C) 2012-2021 the OpenProject GmbH
@@ -28,10 +27,10 @@ import { TimelineZoomLevel } from 'core-app/modules/hal/resources/query-resource
//++
import * as moment from 'moment';
import { InputState, MultiInputState } from 'reactivestates';
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
-import { RenderedWorkPackage } from "core-app/modules/work_packages/render-info/rendered-work-package.type";
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import Moment = moment.Moment;
+import { TimelineZoomLevel } from "core-app/features/hal/resources/query-resource";
export const timelineElementCssClass = 'timeline-element';
export const timelineBackgroundElementClass = 'timeline-element--bg';
diff --git a/frontend/src/app/components/wp-table/typings.d.ts b/frontend/src/app/features/work-packages/components/wp-table/typings.d.ts
similarity index 100%
rename from frontend/src/app/components/wp-table/typings.d.ts
rename to frontend/src/app/features/work-packages/components/wp-table/typings.d.ts
diff --git a/frontend/src/app/components/wp-table/wp-table-configuration.ts b/frontend/src/app/features/work-packages/components/wp-table/wp-table-configuration.ts
similarity index 100%
rename from frontend/src/app/components/wp-table/wp-table-configuration.ts
rename to frontend/src/app/features/work-packages/components/wp-table/wp-table-configuration.ts
diff --git a/frontend/src/app/components/wp-table/wp-table-hover-sync.ts b/frontend/src/app/features/work-packages/components/wp-table/wp-table-hover-sync.ts
similarity index 100%
rename from frontend/src/app/components/wp-table/wp-table-hover-sync.ts
rename to frontend/src/app/features/work-packages/components/wp-table/wp-table-hover-sync.ts
diff --git a/frontend/src/app/components/wp-table/wp-table-scroll-sync.ts b/frontend/src/app/features/work-packages/components/wp-table/wp-table-scroll-sync.ts
similarity index 100%
rename from frontend/src/app/components/wp-table/wp-table-scroll-sync.ts
rename to frontend/src/app/features/work-packages/components/wp-table/wp-table-scroll-sync.ts
diff --git a/frontend/src/app/components/wp-table/wp-table-sums-row/wp-table-sums-row.directive.ts b/frontend/src/app/features/work-packages/components/wp-table/wp-table-sums-row/wp-table-sums-row.directive.ts
similarity index 74%
rename from frontend/src/app/components/wp-table/wp-table-sums-row/wp-table-sums-row.directive.ts
rename to frontend/src/app/features/work-packages/components/wp-table/wp-table-sums-row/wp-table-sums-row.directive.ts
index 3e876a03848..528d52f56d2 100644
--- a/frontend/src/app/components/wp-table/wp-table-sums-row/wp-table-sums-row.directive.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/wp-table-sums-row/wp-table-sums-row.directive.ts
@@ -28,20 +28,18 @@
import { AfterViewInit, Directive, ElementRef, Injector, Input } from '@angular/core';
import { takeUntil } from 'rxjs/operators';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { SchemaResource } from 'core-app/modules/hal/resources/schema-resource';
-import { WorkPackageCollectionResource } from 'core-app/modules/hal/resources/wp-collection-resource';
-import { States } from '../../states.service';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { DisplayFieldService } from "core-app/modules/fields/display/display-field.service";
-import { IFieldSchema } from "core-app/modules/fields/field.base";
-import { QueryColumn } from "core-components/wp-query/query-column";
-import { WorkPackageViewColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service";
-import { WorkPackageViewSumService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sum.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { States } from "core-app/core/states/states.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { QueryColumn } from "core-app/features/work-packages/components/wp-query/query-column";
+import { WorkPackageViewColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service";
+import { WorkPackageViewSumService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sum.service";
import { combineLatest } from "rxjs";
-import { GroupSumsBuilder } from "core-components/wp-fast-table/builders/modes/grouped/group-sums-builder";
-import { WorkPackageTable } from "core-components/wp-fast-table/wp-fast-table";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
+import { GroupSumsBuilder } from "core-app/features/work-packages/components/wp-fast-table/builders/modes/grouped/group-sums-builder";
+import { WorkPackageTable } from "core-app/features/work-packages/components/wp-fast-table/wp-fast-table";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
@Directive({
selector: '[wpTableSumsRow]',
diff --git a/frontend/src/app/components/wp-table/wp-table.component.ts b/frontend/src/app/features/work-packages/components/wp-table/wp-table.component.ts
similarity index 78%
rename from frontend/src/app/components/wp-table/wp-table.component.ts
rename to frontend/src/app/features/work-packages/components/wp-table/wp-table.component.ts
index b138a25b9b3..3872a1b20aa 100644
--- a/frontend/src/app/components/wp-table/wp-table.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/wp-table.component.ts
@@ -37,30 +37,30 @@ import {
OnInit, Output,
ViewEncapsulation
} from '@angular/core';
-import { QueryGroupByResource } from 'core-app/modules/hal/resources/query-group-by-resource';
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { TableEventComponent, TableHandlerRegistry } from 'core-components/wp-fast-table/handlers/table-handler-registry';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { TableEventComponent, TableHandlerRegistry } from 'core-app/features/work-packages/components/wp-fast-table/handlers/table-handler-registry';
+import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';
import { combineLatest } from 'rxjs';
-import { States } from '../states.service';
+import { QueryColumn } from 'core-app/features/work-packages/components/wp-query/query-column';
+import { WorkPackageViewSortByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
+import { AngularTrackingHelpers } from "core-app/shared/helpers/angular/tracking-functions";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
+import { WorkPackageViewGroupByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-group-by.service";
+import { WorkPackageViewColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service";
+import { createScrollSync } from "core-app/features/work-packages/components/wp-table/wp-table-scroll-sync";
+import { WpTableHoverSync } from "core-app/features/work-packages/components/wp-table/wp-table-hover-sync";
+import { WorkPackageTimelineTableController } from "core-app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.directive";
+import { WorkPackageTable } from "core-app/features/work-packages/components/wp-fast-table/wp-fast-table";
+import { WorkPackageViewTimelineService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import {WorkPackageViewSumService} from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sum.service";
import {
WorkPackageTableConfiguration,
- WorkPackageTableConfigurationObject
-} from 'core-app/components/wp-table/wp-table-configuration';
-import { QueryColumn } from 'core-components/wp-query/query-column';
-import { WorkPackageViewSortByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
-import { AngularTrackingHelpers } from "core-components/angular/tracking-functions";
-import { WorkPackageCollectionResource } from "core-app/modules/hal/resources/wp-collection-resource";
-import { WorkPackageViewGroupByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-group-by.service";
-import { WorkPackageViewColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service";
-import { createScrollSync } from "core-components/wp-table/wp-table-scroll-sync";
-import { WpTableHoverSync } from "core-components/wp-table/wp-table-hover-sync";
-import { WorkPackageTimelineTableController } from "core-components/wp-table/timeline/container/wp-timeline-container.directive";
-import { WorkPackageTable } from "core-components/wp-fast-table/wp-fast-table";
-import { WorkPackageViewTimelineService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import {WorkPackageViewSumService} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sum.service";
+ WorkPackageTableConfigurationObject,
+} from "core-app/features/work-packages/components/wp-table/wp-table-configuration";
+import { States } from "core-app/core/states/states.service";
+import { QueryGroupByResource } from "core-app/features/hal/resources/query-group-by-resource";
export interface WorkPackageFocusContext {
/** Work package that was focused */
diff --git a/frontend/src/app/components/wp-table/wp-table.directive.html b/frontend/src/app/features/work-packages/components/wp-table/wp-table.directive.html
similarity index 100%
rename from frontend/src/app/components/wp-table/wp-table.directive.html
rename to frontend/src/app/features/work-packages/components/wp-table/wp-table.directive.html
diff --git a/frontend/src/app/components/wp-table/wp-table.styles.sass b/frontend/src/app/features/work-packages/components/wp-table/wp-table.styles.sass
similarity index 100%
rename from frontend/src/app/components/wp-table/wp-table.styles.sass
rename to frontend/src/app/features/work-packages/components/wp-table/wp-table.styles.sass
diff --git a/frontend/src/app/components/wp-tabs/components/wp-tab-wrapper/tab.ts b/frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/tab.ts
similarity index 62%
rename from frontend/src/app/components/wp-tabs/components/wp-tab-wrapper/tab.ts
rename to frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/tab.ts
index cef75c9aa82..dc98e85af8f 100644
--- a/frontend/src/app/components/wp-tabs/components/wp-tab-wrapper/tab.ts
+++ b/frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/tab.ts
@@ -1,11 +1,8 @@
import { Component, Injector, Type } from '@angular/core';
-
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { StateDeclaration } from "@uirouter/core";
-import { StateParams } from "@uirouter/core/lib/params/stateParams";
import { Observable } from "rxjs";
import { StateService } from "@uirouter/angular";
-import { TabDefinition } from "core-app/modules/common/tabs/tab.interface";
+import { TabDefinition } from "core-app/shared/components/tabs/tab.interface";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
export interface TabComponent extends Component {
workPackage:WorkPackageResource;
@@ -15,5 +12,4 @@ export interface WpTabDefinition extends TabDefinition {
component:Type<TabComponent>;
displayable?:(workPackage:WorkPackageResource, $state:StateService) => boolean;
count?:(workPackage:WorkPackageResource, injector:Injector) => Observable<number>;
-}
-
+}
\ No newline at end of file
diff --git a/frontend/src/app/components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.component.ts b/frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.component.ts
similarity index 73%
rename from frontend/src/app/components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.component.ts
rename to frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.component.ts
index fd77fb2dfd0..db522659b3f 100644
--- a/frontend/src/app/components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.component.ts
@@ -26,15 +26,15 @@
// See docs/COPYRIGHT.rdoc for more details.
// ++
-import { Transition } from '@uirouter/core';
-import { Component, OnInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { APIV3Service } from 'core-app/modules/apiv3/api-v3.service';
-import { WorkPackageTabsService } from "core-components/wp-tabs/services/wp-tabs/wp-tabs.service";
-import { Observable } from "rxjs";
-import { map } from "rxjs/operators";
-import { WpTabDefinition } from "core-components/wp-tabs/components/wp-tab-wrapper/tab";
+import {Transition} from '@uirouter/core';
+import {Component, OnInit} from '@angular/core';
+import {I18nService} from 'core-app/core/i18n/i18n.service';
+import {APIV3Service} from 'core-app/core/apiv3/api-v3.service';
+import {Observable} from "rxjs";
+import {map} from "rxjs/operators";
+import { WpTabDefinition } from "core-app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/tab";
+import { WorkPackageTabsService } from "core-app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-tabs.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
@Component({
templateUrl: './wp-tab-wrapper.html',
@@ -52,9 +52,9 @@ export class WpTabWrapperComponent implements OnInit {
}
constructor(readonly I18n:I18nService,
- readonly $transition:Transition,
- readonly apiV3Service:APIV3Service,
- readonly wpTabsService:WorkPackageTabsService) {}
+ readonly $transition:Transition,
+ readonly apiV3Service:APIV3Service,
+ readonly wpTabsService:WorkPackageTabsService) {}
ngOnInit() {
this.ndcDynamicInputs$ = this
diff --git a/frontend/src/app/components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.html b/frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.html
similarity index 100%
rename from frontend/src/app/components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.html
rename to frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.html
diff --git a/frontend/src/app/components/wp-tabs/components/wp-tabs/wp-tabs.component.html b/frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tabs/wp-tabs.component.html
similarity index 100%
rename from frontend/src/app/components/wp-tabs/components/wp-tabs/wp-tabs.component.html
rename to frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tabs/wp-tabs.component.html
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component.scss b/frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tabs/wp-tabs.component.sass
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component.scss
rename to frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tabs/wp-tabs.component.sass
diff --git a/frontend/src/app/components/wp-tabs/components/wp-tabs/wp-tabs.component.spec.ts b/frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tabs/wp-tabs.component.spec.ts
similarity index 73%
rename from frontend/src/app/components/wp-tabs/components/wp-tabs/wp-tabs.component.spec.ts
rename to frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tabs/wp-tabs.component.spec.ts
index 55303c8b067..29687e4d32c 100644
--- a/frontend/src/app/components/wp-tabs/components/wp-tabs/wp-tabs.component.spec.ts
+++ b/frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tabs/wp-tabs.component.spec.ts
@@ -1,16 +1,13 @@
-import { Input } from '@angular/core';
-import { ComponentFixture, fakeAsync, TestBed, tick, waitForAsync } from '@angular/core/testing';
+import {Input} from '@angular/core';
+import { ComponentFixture, fakeAsync, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
-
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { TabComponent } from '../wp-tab-wrapper/tab';
import { WpTabsComponent } from './wp-tabs.component';
-import { WorkPackageTabsService } from "core-components/wp-tabs/services/wp-tabs/wp-tabs.service";
-import { StateService } from "@uirouter/angular";
-import { UIRouterGlobals } from "@uirouter/core";
-import { KeepTabService } from "core-components/wp-single-view-tabs/keep-tab/keep-tab.service";
-import { ScrollableTabsComponent } from "core-app/modules/common/tabs/scrollable-tabs/scrollable-tabs.component";
+import { KeepTabService } from "core-app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service";
+import { StateService, UIRouterGlobals } from "@uirouter/core";
+import { ScrollableTabsComponent } from "core-app/shared/components/tabs/scrollable-tabs/scrollable-tabs.component";
+import { WorkPackageTabsService } from "core-app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-tabs.service";
describe('WpTabsComponent', () => {
class TestComponent implements TabComponent {
@@ -63,4 +60,4 @@ describe('WpTabsComponent', () => {
const tabLink:HTMLElement = fixture.debugElement.query(By.css('[data-qa-tab-id="displayable-test-tab"]')).nativeElement;
expect(tabLink.innerText).toContain('Displayable TestTab');
}));
-});
+});
\ No newline at end of file
diff --git a/frontend/src/app/components/wp-tabs/components/wp-tabs/wp-tabs.component.ts b/frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tabs/wp-tabs.component.ts
similarity index 73%
rename from frontend/src/app/components/wp-tabs/components/wp-tabs/wp-tabs.component.ts
rename to frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tabs/wp-tabs.component.ts
index 641814b34fd..47aa8ad99ff 100644
--- a/frontend/src/app/components/wp-tabs/components/wp-tabs/wp-tabs.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-tabs/components/wp-tabs/wp-tabs.component.ts
@@ -1,12 +1,10 @@
import { ChangeDetectionStrategy, Component, Injector, Input, OnInit } from '@angular/core';
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { WorkPackageTabsService } from "core-components/wp-tabs/services/wp-tabs/wp-tabs.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { StateService } from "@uirouter/angular";
-import { KeepTabService } from "core-components/wp-single-view-tabs/keep-tab/keep-tab.service";
-import { UIRouterGlobals } from "@uirouter/core";
-import { AngularTrackingHelpers } from "core-components/angular/tracking-functions";
-import { TabDefinition } from "core-app/modules/common/tabs/tab.interface";
+import { KeepTabService } from "core-app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service";
+import { StateService, UIRouterGlobals } from "@uirouter/core";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { TabDefinition } from "core-app/shared/components/tabs/tab.interface";
+import { WorkPackageTabsService } from "core-app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-tabs.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
@Component({
selector: 'op-wp-tabs',
diff --git a/frontend/src/app/components/wp-tabs/services/wp-tabs/wp-relations-count.function.ts b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-relations-count.function.ts
similarity index 66%
rename from frontend/src/app/components/wp-tabs/services/wp-tabs/wp-relations-count.function.ts
rename to frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-relations-count.function.ts
index 34f2132b6f0..f2bc33fa94d 100644
--- a/frontend/src/app/components/wp-tabs/services/wp-tabs/wp-relations-count.function.ts
+++ b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-relations-count.function.ts
@@ -1,10 +1,9 @@
-import { Component, Injector, Input, OnInit } from '@angular/core';
+import { Injector } from '@angular/core';
import { combineLatest, Observable } from 'rxjs';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { WorkPackageRelationsService } from "core-components/wp-relations/wp-relations.service";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
import { map } from "rxjs/operators";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { WorkPackageRelationsService } from "core-app/features/work-packages/components/wp-relations/wp-relations.service";
export function workPackageRelationsCount(
workPackage:WorkPackageResource,
diff --git a/frontend/src/app/components/wp-tabs/services/wp-tabs/wp-tabs.service.spec.ts b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-tabs.service.spec.ts
similarity index 82%
rename from frontend/src/app/components/wp-tabs/services/wp-tabs/wp-tabs.service.spec.ts
rename to frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-tabs.service.spec.ts
index 150855664c2..9f7c4f63a39 100644
--- a/frontend/src/app/components/wp-tabs/services/wp-tabs/wp-tabs.service.spec.ts
+++ b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-tabs.service.spec.ts
@@ -1,12 +1,12 @@
import { HttpClientModule } from '@angular/common/http';
-import { Injector, Input } from '@angular/core';
+import { Injector } from '@angular/core';
+import { Input } from '@angular/core';
import { TestBed } from '@angular/core/testing';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
import { TabComponent } from '../../components/wp-tab-wrapper/tab';
-
-import { WorkPackageTabsService } from './wp-tabs.service';
import { StateService } from "@uirouter/angular";
+import { WorkPackageTabsService } from "core-app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-tabs.service";
describe('WpTabsService', () => {
let service:WorkPackageTabsService;
diff --git a/frontend/src/app/components/wp-tabs/services/wp-tabs/wp-tabs.service.ts b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-tabs.service.ts
similarity index 62%
rename from frontend/src/app/components/wp-tabs/services/wp-tabs/wp-tabs.service.ts
rename to frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-tabs.service.ts
index 7e051ffd568..f10eb53eb38 100644
--- a/frontend/src/app/components/wp-tabs/services/wp-tabs/wp-tabs.service.ts
+++ b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-tabs.service.ts
@@ -1,15 +1,14 @@
import { Injectable, Injector } from '@angular/core';
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { WpTabDefinition } from "core-components/wp-tabs/components/wp-tab-wrapper/tab";
-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 { workPackageRelationsCount } from "core-components/wp-tabs/services/wp-tabs/wp-relations-count.function";
-import { workPackageWatchersCount } from "core-components/wp-tabs/services/wp-tabs/wp-watchers-count.function";
-import { StateService } from "@uirouter/angular";
-import { WorkPackageOverviewTabComponent } from "core-components/wp-single-view-tabs/overview-tab/overview-tab.component";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { TabDefinition } from "core-app/modules/common/tabs/tab.interface";
+import {WorkPackageResource} from "core-app/features/hal/resources/work-package-resource";
+import { WpTabDefinition } from "core-app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/tab";
+import { WorkPackageRelationsTabComponent } from "core-app/features/work-packages/components/wp-single-view-tabs/relations-tab/relations-tab.component";
+import { StateService } from "@uirouter/core";
+import { WorkPackageOverviewTabComponent } from "core-app/features/work-packages/components/wp-single-view-tabs/overview-tab/overview-tab.component";
+import { WorkPackageActivityTabComponent } from "core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-tab.component";
+import { WorkPackageWatchersTabComponent } from "core-app/features/work-packages/components/wp-single-view-tabs/watchers-tab/watchers-tab.component";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { workPackageWatchersCount } from "core-app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-watchers-count.function";
+import { workPackageRelationsCount } from "core-app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-relations-count.function";
@Injectable({
providedIn: 'root',
diff --git a/frontend/src/app/components/wp-tabs/services/wp-tabs/wp-watchers-count.function.ts b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-watchers-count.function.ts
similarity index 53%
rename from frontend/src/app/components/wp-tabs/services/wp-tabs/wp-watchers-count.function.ts
rename to frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-watchers-count.function.ts
index a153ebee46d..1b9b33b72e4 100644
--- a/frontend/src/app/components/wp-tabs/services/wp-tabs/wp-watchers-count.function.ts
+++ b/frontend/src/app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-watchers-count.function.ts
@@ -1,9 +1,9 @@
import { Injector } from '@angular/core';
-import { from, Observable } from 'rxjs';
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
+import { Observable } from 'rxjs';
+import { WorkPackageWatchersService } from "core-app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watchers.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { map } from "rxjs/operators";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { WorkPackageWatchersService } from "core-components/wp-single-view-tabs/watchers-tab/wp-watchers.service";
export function workPackageWatchersCount(
workPackage:WorkPackageResource,
diff --git a/frontend/src/app/features/work-packages/components/wp-tabs/wp-tabs.module.ts b/frontend/src/app/features/work-packages/components/wp-tabs/wp-tabs.module.ts
new file mode 100644
index 00000000000..565114d4bf8
--- /dev/null
+++ b/frontend/src/app/features/work-packages/components/wp-tabs/wp-tabs.module.ts
@@ -0,0 +1,30 @@
+import { NgModule } from '@angular/core';
+import { CommonModule } from '@angular/common';
+import { WpTabsComponent } from './components/wp-tabs/wp-tabs.component';
+import {UIRouterModule} from "@uirouter/angular";
+import {WpTabWrapperComponent} from "core-app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.component";
+import {DynamicModule} from "ng-dynamic-component";
+import { OpenprojectAccessibilityModule } from "core-app/shared/directives/a11y/openproject-a11y.module";
+import { OpenprojectTabsModule } from "core-app/shared/components/tabs/openproject-tabs.module";
+import { IconModule } from "core-app/shared/components/icon/icon.module";
+
+@NgModule({
+ declarations: [
+ WpTabsComponent,
+ WpTabWrapperComponent,
+ ],
+ imports: [
+ CommonModule,
+ UIRouterModule,
+ DynamicModule,
+ OpenprojectAccessibilityModule,
+ OpenprojectTabsModule,
+ IconModule
+ ],
+ exports: [
+ WpTabsComponent,
+ WpTabWrapperComponent,
+ ],
+})
+export class OpWpTabsModule {
+}
diff --git a/frontend/src/app/components/work-packages/wp-type-status/wp-type-status.component.ts b/frontend/src/app/features/work-packages/components/wp-type-status/wp-type-status.component.ts
similarity index 94%
rename from frontend/src/app/components/work-packages/wp-type-status/wp-type-status.component.ts
rename to frontend/src/app/features/work-packages/components/wp-type-status/wp-type-status.component.ts
index c5103ed4c18..4bb9b781ee8 100644
--- a/frontend/src/app/components/work-packages/wp-type-status/wp-type-status.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-type-status/wp-type-status.component.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { Component, Input } from '@angular/core';
@Component({
diff --git a/frontend/src/app/components/work-packages/wp-type-status/wp-type-status.html b/frontend/src/app/features/work-packages/components/wp-type-status/wp-type-status.html
similarity index 100%
rename from frontend/src/app/components/work-packages/wp-type-status/wp-type-status.html
rename to frontend/src/app/features/work-packages/components/wp-type-status/wp-type-status.html
diff --git a/frontend/src/app/components/work-packages/wp-watcher-button/wp-watcher-button.component.ts b/frontend/src/app/features/work-packages/components/wp-watcher-button/wp-watcher-button.component.ts
similarity index 88%
rename from frontend/src/app/components/work-packages/wp-watcher-button/wp-watcher-button.component.ts
rename to frontend/src/app/features/work-packages/components/wp-watcher-button/wp-watcher-button.component.ts
index b8d9d73b711..0a9a7d58207 100644
--- a/frontend/src/app/components/work-packages/wp-watcher-button/wp-watcher-button.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-watcher-button/wp-watcher-button.component.ts
@@ -26,12 +26,12 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { WorkPackageWatchersService } from 'core-components/wp-single-view-tabs/watchers-tab/wp-watchers.service';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageWatchersService } from 'core-app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watchers.service';
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Component({
selector: 'wp-watcher-button',
diff --git a/frontend/src/app/components/work-packages/wp-watcher-button/wp-watcher-button.html b/frontend/src/app/features/work-packages/components/wp-watcher-button/wp-watcher-button.html
similarity index 100%
rename from frontend/src/app/components/work-packages/wp-watcher-button/wp-watcher-button.html
rename to frontend/src/app/features/work-packages/components/wp-watcher-button/wp-watcher-button.html
diff --git a/frontend/src/app/modules/work_packages/query-space/isolated-graph-query-space.ts b/frontend/src/app/features/work-packages/directives/query-space/isolated-graph-query-space.ts
similarity index 67%
rename from frontend/src/app/modules/work_packages/query-space/isolated-graph-query-space.ts
rename to frontend/src/app/features/work-packages/directives/query-space/isolated-graph-query-space.ts
index cb83c00910a..1c53f0c0916 100644
--- a/frontend/src/app/modules/work_packages/query-space/isolated-graph-query-space.ts
+++ b/frontend/src/app/features/work-packages/directives/query-space/isolated-graph-query-space.ts
@@ -1,7 +1,7 @@
import { Injectable } from '@angular/core';
import { input } from 'reactivestates';
import { ChartType } from 'chart.js';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
@Injectable()
export class IsolatedGraphQuerySpace extends IsolatedQuerySpace {
diff --git a/frontend/src/app/modules/work_packages/query-space/isolated-query-space.ts b/frontend/src/app/features/work-packages/directives/query-space/isolated-query-space.ts
similarity index 77%
rename from frontend/src/app/modules/work_packages/query-space/isolated-query-space.ts
rename to frontend/src/app/features/work-packages/directives/query-space/isolated-query-space.ts
index 463fd2a4cdd..4f3ea6518ef 100644
--- a/frontend/src/app/modules/work_packages/query-space/isolated-query-space.ts
+++ b/frontend/src/app/features/work-packages/directives/query-space/isolated-query-space.ts
@@ -2,11 +2,10 @@ import { derive, input, InputState, State, StatesGroup } from 'reactivestates';
import { Subject } from 'rxjs';
import { Injectable } from '@angular/core';
import { map } from 'rxjs/operators';
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { GroupObject, WorkPackageCollectionResource } from 'core-app/modules/hal/resources/wp-collection-resource';
-import { QueryFormResource } from "core-app/modules/hal/resources/query-form-resource";
-import { QueryColumn } from "core-components/wp-query/query-column";
-import { RenderedWorkPackage } from "core-app/modules/work_packages/render-info/rendered-work-package.type";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { QueryFormResource } from "core-app/features/hal/resources/query-form-resource";
+import { QueryColumn } from "core-app/features/work-packages/components/wp-query/query-column";
+import { GroupObject, WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
@Injectable()
export class IsolatedQuerySpace extends StatesGroup {
@@ -23,7 +22,7 @@ export class IsolatedQuerySpace extends StatesGroup {
// the query form associated with the table
queryForm = input<QueryFormResource>();
- // the results associated with the table
+ // the results associated with the table/time-entry-changeset
results = input<WorkPackageCollectionResource>();
// all groups returned as results
groups = input<GroupObject[]>();
diff --git a/frontend/src/app/features/work-packages/directives/query-space/wp-isolated-graph-query-space.directive.ts b/frontend/src/app/features/work-packages/directives/query-space/wp-isolated-graph-query-space.directive.ts
new file mode 100644
index 00000000000..502b53edabc
--- /dev/null
+++ b/frontend/src/app/features/work-packages/directives/query-space/wp-isolated-graph-query-space.directive.ts
@@ -0,0 +1,118 @@
+//-- copyright
+// OpenProject is an open source project management software.
+// Copyright (C) 2012-2021 the OpenProject GmbH
+//
+// 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 docs/COPYRIGHT.rdoc for more details.
+//++
+
+import { Directive } from '@angular/core';
+import { OpTableActionsService } from "core-app/features/work-packages/components/wp-table/table-actions/table-actions.service";
+import { WorkPackageViewRelationColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
+import { WorkPackageViewPaginationService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-pagination.service";
+import { WorkPackageViewGroupByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-group-by.service";
+import { WorkPackageViewHierarchiesService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
+import { WorkPackageViewSortByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
+import { WorkPackageViewColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service";
+import { WorkPackageViewFiltersService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service";
+import { WorkPackageViewTimelineService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service";
+import { WorkPackageViewSelectionService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { WorkPackageViewSumService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sum.service";
+import { WorkPackageViewAdditionalElementsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-additional-elements.service";
+import { WorkPackageViewHighlightingService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-highlighting.service";
+import { WorkPackageCreateService } from "core-app/features/work-packages/components/wp-new/wp-create.service";
+import { WorkPackageStatesInitializationService } from "core-app/features/work-packages/components/wp-list/wp-states-initialization.service";
+import { WorkPackageViewFocusService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service";
+
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { WorkPackagesListService } from "core-app/features/work-packages/components/wp-list/wp-list.service";
+import { WorkPackageRelationsHierarchyService } from "core-app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";
+import { WorkPackageFiltersService } from "core-app/features/work-packages/components/filters/wp-filters/wp-filters.service";
+import { WorkPackageContextMenuHelperService } from "core-app/features/work-packages/components/wp-table/context-menu-helper/wp-context-menu-helper.service";
+import { WorkPackageInlineCreateService } from "core-app/features/work-packages/components/wp-inline-create/wp-inline-create.service";
+import { WpChildrenInlineCreateService } from "core-app/features/work-packages/components/wp-relations/embedded/children/wp-children-inline-create.service";
+import { WpRelationInlineCreateService } from "core-app/features/work-packages/components/wp-relations/embedded/relations/wp-relation-inline-create.service";
+import { WorkPackagesListChecksumService } from "core-app/features/work-packages/components/wp-list/wp-list-checksum.service";
+import { TableDragActionsRegistryService } from "core-app/features/work-packages/components/wp-table/drag-and-drop/actions/table-drag-actions-registry.service";
+import { WorkPackageViewHierarchyIdentationService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service";
+import { WorkPackageService } from "core-app/features/work-packages/services/work-package.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { WorkPackageIsolatedQuerySpaceDirective } from "core-app/features/work-packages/directives/query-space/wp-isolated-query-space.directive";
+import { IsolatedGraphQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-graph-query-space";
+
+export const WpIsolatedGraphQuerySpaceProviders = [
+ // Open the isolated space first, order is important here
+ { provide: IsolatedQuerySpace, useClass: IsolatedGraphQuerySpace },
+ OpTableActionsService,
+
+ // Work package table services
+ WorkPackagesListChecksumService,
+ WorkPackagesListService,
+ WorkPackageViewRelationColumnsService,
+ WorkPackageViewPaginationService,
+ WorkPackageViewGroupByService,
+ WorkPackageViewHierarchiesService,
+ WorkPackageViewSortByService,
+ WorkPackageViewColumnsService,
+ WorkPackageViewFiltersService,
+ WorkPackageViewTimelineService,
+ WorkPackageViewSelectionService,
+ WorkPackageViewSumService,
+ WorkPackageViewAdditionalElementsService,
+ WorkPackageViewFocusService,
+ WorkPackageViewHighlightingService,
+ WorkPackageService,
+ WorkPackageViewHierarchyIdentationService,
+ WorkPackageRelationsHierarchyService,
+ WorkPackageFiltersService,
+ WorkPackageContextMenuHelperService,
+
+ // Provide a separate service for creation events of WP Inline create
+ // This can be hierarchically injected to provide isolated events on an embedded table
+ WorkPackageInlineCreateService,
+ WpChildrenInlineCreateService,
+ WpRelationInlineCreateService,
+
+ HalResourceEditingService,
+ WorkPackageCreateService,
+
+ WorkPackageStatesInitializationService,
+
+ // Table Drag & Drop actions
+ TableDragActionsRegistryService,
+];
+
+
+/**
+ * Directive to open a work package query 'space', an isolated injector hierarchy
+ * that provides access to query-bound data and services, especially around the querySpace services.
+ *
+ * If you add services that depend on a table state, they should be provided here, not globally
+ * in a module.
+ */
+@Directive({
+ selector: '[wp-isolated-graph-query-space]',
+ providers: WpIsolatedGraphQuerySpaceProviders
+})
+export class WorkPackageIsolatedGraphQuerySpaceDirective extends WorkPackageIsolatedQuerySpaceDirective {
+}
diff --git a/frontend/src/app/features/work-packages/directives/query-space/wp-isolated-query-space.directive.ts b/frontend/src/app/features/work-packages/directives/query-space/wp-isolated-query-space.directive.ts
new file mode 100644
index 00000000000..4716c238965
--- /dev/null
+++ b/frontend/src/app/features/work-packages/directives/query-space/wp-isolated-query-space.directive.ts
@@ -0,0 +1,138 @@
+//-- copyright
+// OpenProject is an open source project management software.
+// Copyright (C) 2012-2021 the OpenProject GmbH
+//
+// 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 docs/COPYRIGHT.rdoc for more details.
+//++
+
+import { Directive, ElementRef, Injector } from '@angular/core';
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { OpTableActionsService } from "core-app/features/work-packages/components/wp-table/table-actions/table-actions.service";
+import { WorkPackageViewRelationColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
+import { WorkPackageViewPaginationService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-pagination.service";
+import { WorkPackageViewGroupByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-group-by.service";
+import { WorkPackageViewHierarchiesService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
+import { WorkPackageViewSortByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
+import { WorkPackageViewColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service";
+import { WorkPackageViewFiltersService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service";
+import { WorkPackageViewTimelineService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service";
+import { WorkPackageViewSelectionService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { WorkPackageViewSumService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sum.service";
+import { WorkPackageViewAdditionalElementsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-additional-elements.service";
+import { WorkPackageViewHighlightingService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-highlighting.service";
+import { WorkPackageCreateService } from "core-app/features/work-packages/components/wp-new/wp-create.service";
+import { WorkPackageStatesInitializationService } from "core-app/features/work-packages/components/wp-list/wp-states-initialization.service";
+import { WorkPackageViewFocusService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { WorkPackagesListService } from "core-app/features/work-packages/components/wp-list/wp-list.service";
+import { WorkPackageRelationsHierarchyService } from "core-app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";
+import { WorkPackageFiltersService } from "core-app/features/work-packages/components/filters/wp-filters/wp-filters.service";
+import { WorkPackageContextMenuHelperService } from "core-app/features/work-packages/components/wp-table/context-menu-helper/wp-context-menu-helper.service";
+import { WorkPackageInlineCreateService } from "core-app/features/work-packages/components/wp-inline-create/wp-inline-create.service";
+import { WpChildrenInlineCreateService } from "core-app/features/work-packages/components/wp-relations/embedded/children/wp-children-inline-create.service";
+import { WpRelationInlineCreateService } from "core-app/features/work-packages/components/wp-relations/embedded/relations/wp-relation-inline-create.service";
+import { WorkPackagesListChecksumService } from "core-app/features/work-packages/components/wp-list/wp-list-checksum.service";
+import { debugLog } from "core-app/shared/helpers/debug_output";
+import { TableDragActionsRegistryService } from "core-app/features/work-packages/components/wp-table/drag-and-drop/actions/table-drag-actions-registry.service";
+import { WorkPackageViewOrderService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-order.service";
+import { CausedUpdatesService } from "core-app/features/boards/board/caused-updates/caused-updates.service";
+import { WorkPackageCardViewService } from "core-app/features/work-packages/components/wp-card-view/services/wp-card-view.service";
+import { WorkPackageViewDisplayRepresentationService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
+import { WorkPackageViewHierarchyIdentationService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { TimeEntryCreateService } from "core-app/shared/components/time_entries/create/create.service";
+import { WorkPackageViewCollapsedGroupsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service";
+import { WorkPackageService } from "core-app/features/work-packages/services/work-package.service";
+
+/**
+ * Directive to open a work package query 'space', an isolated injector hierarchy
+ * that provides access to query-bound data and services, especially around the querySpace services.
+ *
+ * If you add services that depend on a table state, they should be provided here, not globally
+ * in a module.
+ */
+@Directive({
+ selector: '[wp-isolated-query-space]',
+ providers: [
+ // Override the hal notification service
+ { provide: HalResourceNotificationService, useExisting: WorkPackageNotificationService },
+
+ // Open the isolated space first, order is important here
+ IsolatedQuerySpace,
+ OpTableActionsService,
+
+ // Work package table services
+ WorkPackagesListChecksumService,
+ WorkPackagesListService,
+ WorkPackageViewRelationColumnsService,
+ WorkPackageViewPaginationService,
+ WorkPackageViewGroupByService,
+ WorkPackageViewCollapsedGroupsService,
+ WorkPackageViewHierarchiesService,
+ WorkPackageViewSortByService,
+ WorkPackageViewColumnsService,
+ WorkPackageViewFiltersService,
+ WorkPackageViewTimelineService,
+ WorkPackageViewSelectionService,
+ WorkPackageViewSumService,
+ WorkPackageViewAdditionalElementsService,
+ WorkPackageViewFocusService,
+ WorkPackageViewHighlightingService,
+ WorkPackageViewDisplayRepresentationService,
+ WorkPackageViewOrderService,
+ WorkPackageViewHierarchyIdentationService,
+ CausedUpdatesService,
+
+ WorkPackageService,
+ WorkPackageRelationsHierarchyService,
+ WorkPackageFiltersService,
+ WorkPackageContextMenuHelperService,
+
+ // Provide a separate service for creation events of WP Inline create
+ // This can be hierarchically injected to provide isolated events on an embedded table
+ WorkPackageInlineCreateService,
+ WpChildrenInlineCreateService,
+ WpRelationInlineCreateService,
+
+ WorkPackageCardViewService,
+
+ HalResourceEditingService,
+ TimeEntryCreateService,
+ WorkPackageCreateService,
+
+ WorkPackageStatesInitializationService,
+
+ // Table Drag & Drop actions
+ TableDragActionsRegistryService,
+ ]
+})
+export class WorkPackageIsolatedQuerySpaceDirective {
+
+ constructor(private elementRef:ElementRef,
+ public querySpace:IsolatedQuerySpace,
+ private injector:Injector) {
+ debugLog("Opening isolated query space %O in %O", injector, elementRef.nativeElement);
+ }
+}
diff --git a/frontend/src/app/components/time-entries/time-entry-changeset.ts b/frontend/src/app/features/work-packages/helpers/time-entries/time-entry-changeset.ts
similarity index 73%
rename from frontend/src/app/components/time-entries/time-entry-changeset.ts
rename to frontend/src/app/features/work-packages/helpers/time-entries/time-entry-changeset.ts
index 97ad49f584b..bfd17ce691b 100644
--- a/frontend/src/app/components/time-entries/time-entry-changeset.ts
+++ b/frontend/src/app/features/work-packages/helpers/time-entries/time-entry-changeset.ts
@@ -1,5 +1,5 @@
-import { ResourceChangeset } from "core-app/modules/fields/changeset/resource-changeset";
-import { TimeEntryResource } from 'core-app/modules/hal/resources/time-entry-resource';
+import { ResourceChangeset } from "core-app/shared/components/fields/changeset/resource-changeset";
+import { TimeEntryResource } from "core-app/features/hal/resources/time-entry-resource";
export class TimeEntryChangeset extends ResourceChangeset<TimeEntryResource> {
diff --git a/frontend/src/app/modules/work_packages/openproject-work-package-routes.module.ts b/frontend/src/app/features/work-packages/openproject-work-package-routes.module.ts
similarity index 89%
rename from frontend/src/app/modules/work_packages/openproject-work-package-routes.module.ts
rename to frontend/src/app/features/work-packages/openproject-work-package-routes.module.ts
index 8b89c92c25a..0c150185136 100644
--- a/frontend/src/app/modules/work_packages/openproject-work-package-routes.module.ts
+++ b/frontend/src/app/features/work-packages/openproject-work-package-routes.module.ts
@@ -28,8 +28,8 @@
import { NgModule } from '@angular/core';
import { UIRouterModule } from "@uirouter/angular";
-import { WORK_PACKAGES_ROUTES } from "core-app/modules/work_packages/routing/work-packages-routes";
-import { OpenprojectWorkPackagesModule } from "core-app/modules/work_packages/openproject-work-packages.module";
+import { WORK_PACKAGES_ROUTES } from "core-app/features/work-packages/routing/work-packages-routes";
+import { OpenprojectWorkPackagesModule } from "core-app/features/work-packages/openproject-work-packages.module";
/**
* Separate module for work package routes because WP modules
diff --git a/frontend/src/app/features/work-packages/openproject-work-packages.module.ts b/frontend/src/app/features/work-packages/openproject-work-packages.module.ts
new file mode 100644
index 00000000000..45124aff200
--- /dev/null
+++ b/frontend/src/app/features/work-packages/openproject-work-packages.module.ts
@@ -0,0 +1,479 @@
+//-- copyright
+// OpenProject is an open source project management software.
+// Copyright (C) 2012-2021 the OpenProject GmbH
+//
+// 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 docs/COPYRIGHT.rdoc for more details.
+//++
+
+import { Injector, NgModule } from '@angular/core';
+import { OPSharedModule } from 'core-app/shared/shared.module';
+import { OpenprojectFieldsModule } from 'core-app/shared/components/fields/openproject-fields.module';
+import { OpenprojectModalModule } from 'core-app/shared/components/modal/modal.module';
+import { HookService } from 'core-app/features/plugins/hook-service';
+import { WorkPackageEmbeddedTableComponent } from 'core-app/features/work-packages/components/wp-table/embedded/wp-embedded-table.component';
+import { WorkPackageEmbeddedTableEntryComponent } from 'core-app/features/work-packages/components/wp-table/embedded/wp-embedded-table-entry.component';
+import { WorkPackageTablePaginationComponent } from 'core-app/features/work-packages/components/wp-table/table-pagination/wp-table-pagination.component';
+import { WorkPackageTimelineTableController } from 'core-app/features/work-packages/components/wp-table/timeline/container/wp-timeline-container.directive';
+import { WorkPackageInlineCreateComponent } from 'core-app/features/work-packages/components/wp-inline-create/wp-inline-create.component';
+import { OpTypesContextMenuDirective } from 'core-app/shared/components/op-context-menu/handlers/op-types-context-menu.directive';
+import { OpColumnsContextMenu } from 'core-app/shared/components/op-context-menu/handlers/op-columns-context-menu.directive';
+import { OpSettingsMenuDirective } from 'core-app/shared/components/op-context-menu/handlers/op-settings-dropdown-menu.directive';
+import { WorkPackageStatusDropdownDirective } from 'core-app/shared/components/op-context-menu/handlers/wp-status-dropdown-menu.directive';
+import { WorkPackageCreateSettingsMenuDirective } from 'core-app/shared/components/op-context-menu/handlers/wp-create-settings-menu.directive';
+import { WorkPackageSingleContextMenuDirective } from 'core-app/shared/components/op-context-menu/wp-context-menu/wp-single-context-menu';
+import { WorkPackageQuerySelectDropdownComponent } from 'core-app/features/work-packages/components/wp-query-select/wp-query-select-dropdown.component';
+import { WorkPackageTimelineHeaderController } from 'core-app/features/work-packages/components/wp-table/timeline/header/wp-timeline-header.directive';
+import { WorkPackageTableTimelineRelations } from 'core-app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-relations.directive';
+import { WorkPackageTableTimelineStaticElements } from 'core-app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-static-elements.directive';
+import { WorkPackageTableTimelineGrid } from 'core-app/features/work-packages/components/wp-table/timeline/grid/wp-timeline-grid.directive';
+import { WorkPackageTimelineButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.component';
+import { WorkPackageOverviewTabComponent } from 'core-app/features/work-packages/components/wp-single-view-tabs/overview-tab/overview-tab.component';
+import { WorkPackageStatusButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-status-button/wp-status-button.component';
+import { WorkPackageReplacementLabelComponent } from 'core-app/features/work-packages/components/wp-edit/wp-edit-field/wp-replacement-label.component';
+import { NewestActivityOnOverviewComponent } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-on-overview.component';
+import { WorkPackageActivityTabComponent } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/activity-tab.component';
+import { OpenprojectAttachmentsModule } from 'core-app/shared/components/attachments/openproject-attachments.module';
+import { WpCustomActionComponent } from 'core-app/features/work-packages/components/wp-custom-actions/wp-custom-actions/wp-custom-action.component';
+import { WpCustomActionsComponent } from 'core-app/features/work-packages/components/wp-custom-actions/wp-custom-actions.component';
+import { WorkPackageRelationsTabComponent } from 'core-app/features/work-packages/components/wp-single-view-tabs/relations-tab/relations-tab.component';
+import { WorkPackageRelationsComponent } from 'core-app/features/work-packages/components/wp-relations/wp-relations.component';
+import { WorkPackageRelationsGroupComponent } from 'core-app/features/work-packages/components/wp-relations/wp-relations-group/wp-relations-group.component';
+import { WorkPackageRelationRowComponent } from 'core-app/features/work-packages/components/wp-relations/wp-relation-row/wp-relation-row.component';
+import { WorkPackageRelationsCreateComponent } from 'core-app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-create.component';
+import { WorkPackageRelationsHierarchyComponent } from 'core-app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.directive';
+import { WorkPackageCreateButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-create-button/wp-create-button.component';
+import { WorkPackageFilterButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.component';
+import { WorkPackageDetailsViewButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-details-view-button/wp-details-view-button.component';
+import { WorkPackageFoldToggleButtonComponent } from 'core-app/features/work-packages/components/wp-buttons/wp-fold-toggle-button/wp-fold-toggle-button.component';
+import { WpTableConfigurationModalComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal';
+import { WpTableConfigurationColumnsTab } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/columns-tab.component';
+import { WpTableConfigurationDisplaySettingsTab } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/display-settings-tab.component';
+import { WpTableConfigurationFiltersTab } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/filters-tab.component';
+import { WpTableConfigurationSortByTab } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/sort-by-tab.component';
+import { WpTableConfigurationTimelinesTab } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/timelines-tab.component';
+import { WpTableConfigurationHighlightingTab } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tabs/highlighting-tab.component';
+import { WpTableConfigurationRelationSelectorComponent } from "core-app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration-relation-selector";
+import { WorkPackageWatchersTabComponent } from 'core-app/features/work-packages/components/wp-single-view-tabs/watchers-tab/watchers-tab.component';
+import { WorkPackageWatcherEntryComponent } from 'core-app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watcher-entry.component';
+import { WorkPackageNewSplitViewComponent } from 'core-app/features/work-packages/components/wp-new/wp-new-split-view.component';
+import { WorkPackageNewFullViewComponent } from 'core-app/features/work-packages/components/wp-new/wp-new-full-view.component';
+import { EmbeddedTablesMacroComponent } from 'core-app/features/work-packages/components/wp-table/embedded/embedded-tables-macro.component';
+import { OpenprojectEditorModule } from 'core-app/shared/components/editor/openproject-editor.module';
+import { WorkPackageTableSumsRowController } from 'core-app/features/work-packages/components/wp-table/wp-table-sums-row/wp-table-sums-row.directive';
+import { ExternalQueryConfigurationComponent } from 'core-app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.component';
+import { ExternalQueryConfigurationService } from 'core-app/features/work-packages/components/wp-table/external-configuration/external-query-configuration.service';
+import { ExternalRelationQueryConfigurationComponent } from "core-app/features/work-packages/components/wp-table/external-configuration/external-relation-query-configuration.component";
+import { ExternalRelationQueryConfigurationService } from "core-app/features/work-packages/components/wp-table/external-configuration/external-relation-query-configuration.service";
+import { WorkPackageStaticQueriesService } from 'core-app/features/work-packages/components/wp-query-select/wp-static-queries.service';
+import { WorkPackagesListInvalidQueryService } from 'core-app/features/work-packages/components/wp-list/wp-list-invalid-query.service';
+import { SchemaCacheService } from 'core-app/core/schemas/schema-cache.service';
+import { WorkPackageWatchersService } from 'core-app/features/work-packages/components/wp-single-view-tabs/watchers-tab/wp-watchers.service';
+import { WorkPackagesActivityService } from 'core-app/features/work-packages/components/wp-single-view-tabs/activity-panel/wp-activity.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { WorkPackageChildrenQueryComponent } from "core-app/features/work-packages/components/wp-relations/embedded/children/wp-children-query.component";
+import { WpRelationInlineAddExistingComponent } from "core-app/features/work-packages/components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component";
+import { WorkPackageRelationQueryComponent } from "core-app/features/work-packages/components/wp-relations/embedded/relations/wp-relation-query.component";
+import { WorkPackagesBaseComponent } from "core-app/features/work-packages/routing/wp-base/wp--base.component";
+import { WorkPackageSplitViewComponent } from "core-app/features/work-packages/routing/wp-split-view/wp-split-view.component";
+import { WorkPackagesFullViewComponent } from "core-app/features/work-packages/routing/wp-full-view/wp-full-view.component";
+import { AttachmentsUploadComponent } from 'core-app/shared/components/attachments/attachments-upload/attachments-upload.component';
+import { AttachmentListComponent } from 'core-app/shared/components/attachments/attachment-list/attachment-list.component';
+import { QueryFiltersService } from "core-app/features/work-packages/components/wp-query/query-filters.service";
+import { WorkPackageCardViewComponent } from "core-app/features/work-packages/components/wp-card-view/wp-card-view.component";
+import { WorkPackageRelationsService } from "core-app/features/work-packages/components/wp-relations/wp-relations.service";
+import { OpenprojectBcfModule } from "core-app/features/bim/bcf/openproject-bcf.module";
+import { WorkPackageRelationsAutocomplete } from "core-app/features/work-packages/components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.component";
+import { CustomDateActionAdminComponent } from 'core-app/features/work-packages/components/wp-custom-actions/date-action/custom-date-action-admin.component';
+import { WorkPackagesTableConfigMenu } from "core-app/features/work-packages/components/wp-table/config-menu/config-menu.component";
+import { WorkPackageViewToggleButton } from "core-app/features/work-packages/components/wp-buttons/wp-view-toggle-button/work-package-view-toggle-button.component";
+import { WorkPackageViewDropdownMenuDirective } from "core-app/shared/components/op-context-menu/handlers/wp-view-dropdown-menu.directive";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
+import { OpenprojectProjectsModule } from "core-app/features/projects/openproject-projects.module";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { WorkPackageEditActionsBarComponent } from "core-app/features/work-packages/components/edit-actions-bar/wp-edit-actions-bar.component";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { WorkPackageChangeset } from "core-app/features/work-packages/components/wp-edit/work-package-changeset";
+import { WorkPackageSingleCardComponent } from "core-app/features/work-packages/components/wp-card-view/wp-single-card/wp-single-card.component";
+import { WorkPackageListViewComponent } from "core-app/features/work-packages/routing/wp-list-view/wp-list-view.component";
+import { PartitionedQuerySpacePageComponent } from "core-app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component";
+import { WorkPackageViewPageComponent } from "core-app/features/work-packages/routing/wp-view-page/wp-view-page.component";
+import { WorkPackageSettingsButtonComponent } from "core-app/features/work-packages/components/wp-buttons/wp-settings-button/wp-settings-button.component";
+import { BackButtonComponent } from "core-app/features/work-packages/components/back-routing/back-button.component";
+import { WorkPackagesTableComponent } from "core-app/features/work-packages/components/wp-table/wp-table.component";
+import { WorkPackageGroupToggleDropdownMenuDirective } from "core-app/shared/components/op-context-menu/handlers/wp-group-toggle-dropdown-menu.directive";
+import { OpenprojectAutocompleterModule } from "core-app/shared/components/autocompleter/openproject-autocompleter.module";
+import { OpWpTabsModule } from "core-app/features/work-packages/components/wp-tabs/wp-tabs.module";
+import { EditFieldControlsModule } from "core-app/shared/components/fields/edit/field-controls/edit-field-controls.module";
+import { DatePickerModal } from "core-app/shared/components/datepicker/datepicker.modal";
+import { WpTableExportModal } from "core-app/shared/components/modals/export-modal/wp-table-export.modal";
+import { WpButtonMacroModal } from "core-app/shared/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal";
+import { QuerySharingModal } from "core-app/shared/components/modals/share-modal/query-sharing.modal";
+import { SaveQueryModal } from "core-app/shared/components/modals/save-modal/save-query.modal";
+import { QuerySharingForm } from "core-app/shared/components/modals/share-modal/query-sharing-form.component";
+import { WpDestroyModal } from "core-app/shared/components/modals/wp-destroy-modal/wp-destroy.modal";
+import { WorkPackageTypeStatusComponent } from "core-app/features/work-packages/components/wp-type-status/wp-type-status.component";
+import { WorkPackageIsolatedQuerySpaceDirective } from "core-app/features/work-packages/directives/query-space/wp-isolated-query-space.directive";
+import { WorkPackageBreadcrumbParentComponent } from "core-app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb-parent.component";
+import { WorkPackageSubjectComponent } from "core-app/features/work-packages/components/wp-subject/wp-subject.component";
+import { WorkPackageBreadcrumbComponent } from "core-app/features/work-packages/components/wp-breadcrumb/wp-breadcrumb.component";
+import { UserLinkComponent } from "core-app/shared/components/user-link/user-link.component";
+import { WorkPackageCommentComponent } from "core-app/features/work-packages/components/work-package-comment/work-package-comment.component";
+import { WorkPackageWatcherButtonComponent } from "core-app/features/work-packages/components/wp-watcher-button/wp-watcher-button.component";
+import { WorkPackageCommentFieldComponent } from "core-app/features/work-packages/components/work-package-comment/wp-comment-field.component";
+import { WpResizerDirective } from "core-app/shared/components/resizer/resizer/wp-resizer.component";
+import {
+ GroupDescriptor,
+ WorkPackageSingleViewComponent,
+} from "core-app/features/work-packages/components/wp-single-view/wp-single-view.component";
+import { WorkPackageIsolatedGraphQuerySpaceDirective } from "core-app/features/work-packages/directives/query-space/wp-isolated-graph-query-space.directive";
+import { RevisionActivityComponent } from "core-app/features/work-packages/components/wp-activity/revision/revision-activity.component";
+import { WorkPackageCopySplitViewComponent } from "core-app/features/work-packages/components/wp-copy/wp-copy-split-view.component";
+import { WorkPackageFormAttributeGroupComponent } from "core-app/features/work-packages/components/wp-form-group/wp-attribute-group.component";
+import { WorkPackagesGridComponent } from "core-app/features/work-packages/components/wp-grid/wp-grid.component";
+import { ActivityEntryComponent } from "core-app/features/work-packages/components/wp-activity/activity-entry.component";
+import { ActivityLinkComponent } from "core-app/features/work-packages/components/wp-activity/activity-link.component";
+import { UserActivityComponent } from "core-app/features/work-packages/components/wp-activity/user/user-activity.component";
+import { WorkPackageSplitViewToolbarComponent } from "core-app/features/work-packages/components/wp-details/wp-details-toolbar.component";
+import { WorkPackageCopyFullViewComponent } from "core-app/features/work-packages/components/wp-copy/wp-copy-full-view.component";
+import { OpenprojectTabsModule } from "core-app/shared/components/tabs/openproject-tabs.module";
+import { TimeEntryChangeset } from "core-app/features/work-packages/helpers/time-entries/time-entry-changeset";
+import { QueryFiltersComponent } from "core-app/features/work-packages/components/filters/query-filters/query-filters.component";
+import { FilterDateTimesValueComponent } from "core-app/features/work-packages/components/filters/filter-date-times-value/filter-date-times-value.component";
+import { FilterSearchableMultiselectValueComponent } from "core-app/features/work-packages/components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component";
+import { QueryFilterComponent } from "core-app/features/work-packages/components/filters/query-filter/query-filter.component";
+import { FilterDatesValueComponent } from "core-app/features/work-packages/components/filters/filter-dates-value/filter-dates-value.component";
+import { FilterStringValueComponent } from "core-app/features/work-packages/components/filters/filter-string-value/filter-string-value.component";
+import { FilterDateValueComponent } from "core-app/features/work-packages/components/filters/filter-date-value/filter-date-value.component";
+import { FilterDateTimeValueComponent } from "core-app/features/work-packages/components/filters/filter-date-time-value/filter-date-time-value.component";
+import { FilterToggledMultiselectValueComponent } from "core-app/features/work-packages/components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component";
+import { WorkPackageFilterByTextInputComponent } from "core-app/features/work-packages/components/filters/quick-filter-by-text-input/quick-filter-by-text-input.component";
+import { FilterIntegerValueComponent } from "core-app/features/work-packages/components/filters/filter-integer-value/filter-integer-value.component";
+import { WorkPackageFilterContainerComponent } from "core-app/features/work-packages/components/filters/filter-container/filter-container.directive";
+import { FilterBooleanValueComponent } from "core-app/features/work-packages/components/filters/filter-boolean-value/filter-boolean-value.component";
+
+
+@NgModule({
+ imports: [
+ // Commons
+ OPSharedModule,
+ // Display + Edit field functionality
+ OpenprojectFieldsModule,
+ // CKEditor
+ OpenprojectEditorModule,
+
+ OpenprojectAttachmentsModule,
+
+ OpenprojectBcfModule,
+
+ OpenprojectProjectsModule,
+
+ OpenprojectModalModule,
+
+ OpenprojectAutocompleterModule,
+
+ OpWpTabsModule,
+
+ EditFieldControlsModule,
+ OpenprojectTabsModule,
+ ],
+ providers: [
+ // Notification service
+ WorkPackageNotificationService,
+
+ // External query configuration
+ ExternalQueryConfigurationService,
+ ExternalRelationQueryConfigurationService,
+
+ // Global work package states / services
+ SchemaCacheService,
+
+ // Global query/table state services
+ // For any service that depends on the isolated query space,
+ // they should be provided in wp-isolated-query-space.directive instead
+ QueryFiltersService,
+ WorkPackageStaticQueriesService,
+ WorkPackagesListInvalidQueryService,
+
+ // Provide a separate service for creation events of WP Inline create
+ // This can be hierarchically injected to provide isolated events on an embedded table
+ WorkPackageRelationsService,
+
+ WorkPackagesActivityService,
+ WorkPackageRelationsService,
+ WorkPackageWatchersService,
+
+ HalEventsService,
+ ],
+ declarations: [
+ // Routing
+ WorkPackagesBaseComponent,
+ PartitionedQuerySpacePageComponent,
+ WorkPackageViewPageComponent,
+
+ // WP list side
+ WorkPackageListViewComponent,
+ WorkPackageSettingsButtonComponent,
+
+ // Query injector isolation
+ WorkPackageIsolatedQuerySpaceDirective,
+ WorkPackageIsolatedGraphQuerySpaceDirective,
+
+ // WP New
+ WorkPackageNewFullViewComponent,
+ WorkPackageNewSplitViewComponent,
+ WorkPackageTypeStatusComponent,
+ WorkPackageEditActionsBarComponent,
+
+ // WP Copy
+ WorkPackageCopyFullViewComponent,
+ WorkPackageCopySplitViewComponent,
+
+ // Embedded table
+ WorkPackageEmbeddedTableComponent,
+ WorkPackageEmbeddedTableEntryComponent,
+
+ // External query configuration
+ ExternalQueryConfigurationComponent,
+ ExternalRelationQueryConfigurationComponent,
+
+ // Inline create
+ WorkPackageInlineCreateComponent,
+ WpRelationInlineAddExistingComponent,
+
+ WorkPackagesGridComponent,
+
+ WorkPackagesTableComponent,
+ WorkPackagesTableConfigMenu,
+ WorkPackageTablePaginationComponent,
+
+ WpResizerDirective,
+
+ WorkPackageTableSumsRowController,
+
+ // Fold/Unfold button on wp list
+ WorkPackageFoldToggleButtonComponent,
+
+ // Filters
+ QueryFiltersComponent,
+ QueryFilterComponent,
+ FilterBooleanValueComponent,
+ FilterDateValueComponent,
+ FilterDatesValueComponent,
+ FilterDateTimeValueComponent,
+ FilterDateTimesValueComponent,
+ FilterIntegerValueComponent,
+ FilterStringValueComponent,
+ FilterToggledMultiselectValueComponent,
+ FilterSearchableMultiselectValueComponent,
+
+ WorkPackageFilterContainerComponent,
+ WorkPackageFilterButtonComponent,
+
+ // Context menus
+ OpTypesContextMenuDirective,
+ OpColumnsContextMenu,
+ OpSettingsMenuDirective,
+ WorkPackageStatusDropdownDirective,
+ WorkPackageCreateSettingsMenuDirective,
+ WorkPackageSingleContextMenuDirective,
+ WorkPackageQuerySelectDropdownComponent,
+ WorkPackageViewDropdownMenuDirective,
+ WorkPackageGroupToggleDropdownMenuDirective,
+
+ // Timeline
+ WorkPackageTimelineButtonComponent,
+ WorkPackageTimelineHeaderController,
+ WorkPackageTableTimelineRelations,
+ WorkPackageTableTimelineStaticElements,
+ WorkPackageTableTimelineGrid,
+ WorkPackageTimelineTableController,
+
+ WorkPackageCreateButtonComponent,
+ WorkPackageFilterByTextInputComponent,
+
+ // Single view
+ WorkPackageOverviewTabComponent,
+ WorkPackageSingleViewComponent,
+ WorkPackageStatusButtonComponent,
+ WorkPackageReplacementLabelComponent,
+ UserLinkComponent,
+ WorkPackageChildrenQueryComponent,
+ WorkPackageRelationQueryComponent,
+ WorkPackageFormAttributeGroupComponent,
+ BackButtonComponent,
+
+ // Activity Tab
+ NewestActivityOnOverviewComponent,
+ WorkPackageCommentComponent,
+ WorkPackageCommentFieldComponent,
+ ActivityEntryComponent,
+ UserActivityComponent,
+ RevisionActivityComponent,
+ ActivityLinkComponent,
+ WorkPackageActivityTabComponent,
+
+ // Watchers wp-tab-wrapper
+ WorkPackageWatchersTabComponent,
+ WorkPackageWatcherEntryComponent,
+
+ // Relations
+ WorkPackageRelationsTabComponent,
+ WorkPackageRelationsComponent,
+ WorkPackageRelationsGroupComponent,
+ WorkPackageRelationRowComponent,
+ WorkPackageRelationsCreateComponent,
+ WorkPackageRelationsHierarchyComponent,
+ WorkPackageRelationsAutocomplete,
+ WorkPackageBreadcrumbParentComponent,
+
+
+ // Split view
+ WorkPackageDetailsViewButtonComponent,
+ WorkPackageSplitViewComponent,
+ WorkPackageBreadcrumbComponent,
+ WorkPackageSplitViewToolbarComponent,
+ WorkPackageWatcherButtonComponent,
+ WorkPackageSubjectComponent,
+
+ // Full view
+ WorkPackagesFullViewComponent,
+
+ // Modals
+ WpTableConfigurationModalComponent,
+ WpTableConfigurationColumnsTab,
+ WpTableConfigurationDisplaySettingsTab,
+ WpTableConfigurationFiltersTab,
+ WpTableConfigurationSortByTab,
+ WpTableConfigurationTimelinesTab,
+ WpTableConfigurationHighlightingTab,
+ WpTableConfigurationRelationSelectorComponent,
+ WpTableExportModal,
+ QuerySharingForm,
+ QuerySharingModal,
+ SaveQueryModal,
+ WpDestroyModal,
+ DatePickerModal,
+
+ // CustomActions
+ WpCustomActionComponent,
+ WpCustomActionsComponent,
+ CustomDateActionAdminComponent,
+
+ // CKEditor macros which could not be included in the
+ // editor module to avoid circular dependencies
+ EmbeddedTablesMacroComponent,
+ WpButtonMacroModal,
+
+ // Card view
+ WorkPackageCardViewComponent,
+ WorkPackageSingleCardComponent,
+ WorkPackageViewToggleButton,
+
+
+ ],
+ exports: [
+ WorkPackagesTableComponent,
+ WorkPackageTablePaginationComponent,
+ WorkPackageEmbeddedTableComponent,
+ WorkPackageEmbeddedTableEntryComponent,
+ WorkPackageCardViewComponent,
+ WorkPackageSingleCardComponent,
+ WorkPackageFilterButtonComponent,
+ WorkPackageFilterContainerComponent,
+ WorkPackageIsolatedQuerySpaceDirective,
+ WorkPackageIsolatedGraphQuerySpaceDirective,
+ QueryFiltersComponent,
+
+ WpResizerDirective,
+ WorkPackageBreadcrumbComponent,
+ WorkPackageBreadcrumbParentComponent,
+ WorkPackageSplitViewToolbarComponent,
+ WorkPackageSubjectComponent,
+ WorkPackagesGridComponent,
+
+ // Modals
+ WpTableConfigurationModalComponent,
+ WpTableConfigurationFiltersTab,
+
+ // Needed so that e.g. IFC can access it.
+ WorkPackageCreateButtonComponent,
+ WorkPackageTypeStatusComponent,
+ WorkPackageEditActionsBarComponent,
+ WorkPackageSingleViewComponent,
+ WorkPackageSplitViewComponent,
+ BackButtonComponent,
+ ]
+})
+export class OpenprojectWorkPackagesModule {
+ static bootstrapAttributeGroupsCalled = false;
+
+ constructor(injector:Injector) {
+ OpenprojectWorkPackagesModule.bootstrapAttributeGroups(injector);
+ }
+
+ // The static property prevents running the function
+ // multiple times. This happens e.g. when the module is included
+ // into a plugin's module.
+ public static bootstrapAttributeGroups(injector:Injector):void {
+ if (this.bootstrapAttributeGroupsCalled) {
+ return;
+ }
+
+ this.bootstrapAttributeGroupsCalled = true;
+
+ const hookService = injector.get(HookService);
+
+ hookService.register('attributeGroupComponent', (group:GroupDescriptor, workPackage:WorkPackageResource) => {
+ if (group.type === 'WorkPackageFormAttributeGroup') {
+ return WorkPackageFormAttributeGroupComponent;
+ } else if (!workPackage.isNew && group.type === 'WorkPackageFormChildrenQueryGroup') {
+ return WorkPackageChildrenQueryComponent;
+ } else if (!workPackage.isNew && group.type === 'WorkPackageFormRelationQueryGroup') {
+ return WorkPackageRelationQueryComponent;
+ } else {
+ return null;
+ }
+ });
+
+ hookService.register('workPackageAttachmentUploadComponent', (workPackage:WorkPackageResource) => {
+ return AttachmentsUploadComponent;
+ });
+
+ hookService.register('workPackageAttachmentListComponent', (workPackage:WorkPackageResource) => {
+ return AttachmentListComponent;
+ });
+
+ /** Return specialized work package changeset for editing service */
+ hookService.register('halResourceChangesetClass', (resource:HalResource) => {
+ switch (resource._type) {
+ case 'WorkPackage':
+ return WorkPackageChangeset;
+ case 'TimeEntry':
+ return TimeEntryChangeset;
+ default:
+ return null;
+ }
+ });
+ }
+}
diff --git a/frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.html b/frontend/src/app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.html
similarity index 100%
rename from frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.html
rename to frontend/src/app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.html
diff --git a/frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass b/frontend/src/app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass
similarity index 96%
rename from frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass
rename to frontend/src/app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass
index 662d0a95b7e..0642bf4bc13 100644
--- a/frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass
+++ b/frontend/src/app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass
@@ -1,4 +1,4 @@
-@import "helpers"
+@import "src/assets/sass/helpers"
.work-packages-partitioned-query-space--container
height: 100%
diff --git a/frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.ts b/frontend/src/app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.ts
similarity index 88%
rename from frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.ts
rename to frontend/src/app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.ts
index 6170a7758e9..15815e2e57a 100644
--- a/frontend/src/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.ts
+++ b/frontend/src/app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.ts
@@ -27,20 +27,20 @@
//++
import { ChangeDetectionStrategy, Component, OnDestroy, OnInit } from "@angular/core";
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { OpTitleService } from "core-components/html/op-title.service";
-import { WorkPackagesViewBase } from "core-app/modules/work_packages/routing/wp-view-base/work-packages-view.base";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { OpTitleService } from "core-app/core/html/op-title.service";
+import { WorkPackagesViewBase } from "core-app/features/work-packages/routing/wp-view-base/work-packages-view.base";
import { take } from "rxjs/operators";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { QueryParamListenerService } from "core-components/wp-query/query-param-listener.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { QueryParamListenerService } from "core-app/features/work-packages/components/wp-query/query-param-listener.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
import { ComponentType } from "@angular/cdk/overlay";
import { Ng2StateDeclaration } from "@uirouter/angular";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { WorkPackageFilterContainerComponent } from "core-components/filters/filter-container/filter-container.directive";
-import { OpModalService } from 'core-app/modules/modal/modal.service';
-import { InviteUserModalComponent } from 'core-app/modules/invite-user-modal/invite-user.component';
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { OpModalService } from 'core-app/shared/components/modal/modal.service';
+import { InviteUserModalComponent } from 'core-app/features/invite-user-modal/invite-user.component';
+import { WorkPackageFilterContainerComponent } from "core-app/features/work-packages/components/filters/filter-container/filter-container.directive";
export interface DynamicComponentDefinition {
component:ComponentType<any>;
diff --git a/frontend/src/app/modules/work_packages/routing/split-view-routes.helper.ts b/frontend/src/app/features/work-packages/routing/split-view-routes.helper.ts
similarity index 100%
rename from frontend/src/app/modules/work_packages/routing/split-view-routes.helper.ts
rename to frontend/src/app/features/work-packages/routing/split-view-routes.helper.ts
diff --git a/frontend/src/app/modules/work_packages/routing/split-view-routes.template.ts b/frontend/src/app/features/work-packages/routing/split-view-routes.template.ts
similarity index 81%
rename from frontend/src/app/modules/work_packages/routing/split-view-routes.template.ts
rename to frontend/src/app/features/work-packages/routing/split-view-routes.template.ts
index f1c0085bfff..13c6e1d8545 100644
--- a/frontend/src/app/modules/work_packages/routing/split-view-routes.template.ts
+++ b/frontend/src/app/features/work-packages/routing/split-view-routes.template.ts
@@ -26,15 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageOverviewTabComponent } from 'core-components/wp-single-view-tabs/overview-tab/overview-tab.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 { WorkPackageNewSplitViewComponent } from 'core-components/wp-new/wp-new-split-view.component';
+import { WorkPackageNewSplitViewComponent } from 'core-app/features/work-packages/components/wp-new/wp-new-split-view.component';
import { Ng2StateDeclaration } from '@uirouter/angular';
import { ComponentType } from '@angular/cdk/overlay';
-import { WorkPackageCopySplitViewComponent } from 'core-components/wp-copy/wp-copy-split-view.component';
-import { WpTabWrapperComponent } from 'core-components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.component';
+import { WpTabWrapperComponent } from 'core-app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.component';
+import { WorkPackageCopySplitViewComponent } from "core-app/features/work-packages/components/wp-copy/wp-copy-split-view.component";
/**
* Return a set of routes for a split view mounted under the given base route,
@@ -56,11 +52,11 @@ import { WpTabWrapperComponent } from 'core-components/wp-tabs/components/wp-tab
* @param showComponent The split view component to mount
*/
export function makeSplitViewRoutes(baseRoute:string,
- menuItemClass:string|undefined,
- showComponent:ComponentType<any>,
- newComponent:ComponentType<any> = WorkPackageNewSplitViewComponent,
- makeFullWidth?:boolean,
- routeName = baseRoute):Ng2StateDeclaration[] {
+ menuItemClass:string|undefined,
+ showComponent:ComponentType<any>,
+ newComponent:ComponentType<any> = WorkPackageNewSplitViewComponent,
+ makeFullWidth?:boolean,
+ routeName = baseRoute):Ng2StateDeclaration[] {
// makeFullWidth configuration
const views:any = makeFullWidth ?
{ 'content-left@^.^': { component: showComponent } } :
diff --git a/frontend/src/app/modules/work_packages/routing/work-packages-routes.ts b/frontend/src/app/features/work-packages/routing/work-packages-routes.ts
similarity index 75%
rename from frontend/src/app/modules/work_packages/routing/work-packages-routes.ts
rename to frontend/src/app/features/work-packages/routing/work-packages-routes.ts
index 08a67771b3a..e67ff38cade 100644
--- a/frontend/src/app/modules/work_packages/routing/work-packages-routes.ts
+++ b/frontend/src/app/features/work-packages/routing/work-packages-routes.ts
@@ -26,19 +26,16 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-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 { WpTabWrapperComponent } from 'core-components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.component';
-import { WorkPackageWatchersTabComponent } from 'core-components/wp-single-view-tabs/watchers-tab/watchers-tab.component';
-import { WorkPackageNewFullViewComponent } from 'core-components/wp-new/wp-new-full-view.component';
-import { WorkPackageCopyFullViewComponent } from 'core-components/wp-copy/wp-copy-full-view.component';
-import { WorkPackagesFullViewComponent } from 'core-app/modules/work_packages/routing/wp-full-view/wp-full-view.component';
-import { WorkPackageSplitViewComponent } from 'core-app/modules/work_packages/routing/wp-split-view/wp-split-view.component';
+import { WpTabWrapperComponent } from 'core-app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/wp-tab-wrapper.component';
+import { WorkPackageNewFullViewComponent } from 'core-app/features/work-packages/components/wp-new/wp-new-full-view.component';
+import { WorkPackagesFullViewComponent } from 'core-app/features/work-packages/routing/wp-full-view/wp-full-view.component';
+import { WorkPackageSplitViewComponent } from 'core-app/features/work-packages/routing/wp-split-view/wp-split-view.component';
import { Ng2StateDeclaration } from '@uirouter/angular';
-import { WorkPackagesBaseComponent } from 'core-app/modules/work_packages/routing/wp-base/wp--base.component';
-import { WorkPackageListViewComponent } from 'core-app/modules/work_packages/routing/wp-list-view/wp-list-view.component';
-import { WorkPackageViewPageComponent } from 'core-app/modules/work_packages/routing/wp-view-page/wp-view-page.component';
-import { makeSplitViewRoutes } from 'core-app/modules/work_packages/routing/split-view-routes.template';
+import { WorkPackagesBaseComponent } from 'core-app/features/work-packages/routing/wp-base/wp--base.component';
+import { WorkPackageListViewComponent } from 'core-app/features/work-packages/routing/wp-list-view/wp-list-view.component';
+import { WorkPackageViewPageComponent } from 'core-app/features/work-packages/routing/wp-view-page/wp-view-page.component';
+import { makeSplitViewRoutes } from 'core-app/features/work-packages/routing/split-view-routes.template';
+import { WorkPackageCopyFullViewComponent } from "core-app/features/work-packages/components/wp-copy/wp-copy-full-view.component";
export const menuItemClass = 'work-packages-menu-item';
diff --git a/frontend/src/app/modules/work_packages/routing/wp-base/wp--base.component.ts b/frontend/src/app/features/work-packages/routing/wp-base/wp--base.component.ts
similarity index 86%
rename from frontend/src/app/modules/work_packages/routing/wp-base/wp--base.component.ts
rename to frontend/src/app/features/work-packages/routing/wp-base/wp--base.component.ts
index 4a57f301a1b..129f14532e6 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-base/wp--base.component.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-base/wp--base.component.ts
@@ -27,8 +27,8 @@
//++
import { Component } from "@angular/core";
-import { EditFormRoutingService } from "core-app/modules/fields/edit/edit-form/edit-form-routing.service";
-import { WorkPackageEditFormRoutingService } from "core-app/modules/work_packages/routing/wp-edit-form/wp-edit-form-routing.service";
+import { EditFormRoutingService } from "core-app/shared/components/fields/edit/edit-form/edit-form-routing.service";
+import { WorkPackageEditFormRoutingService } from "core-app/features/work-packages/routing/wp-edit-form/wp-edit-form-routing.service";
export const wpBaseSelector = 'work-packages-base';
diff --git a/frontend/src/app/modules/work_packages/routing/wp-edit-form/wp-edit-form-routing.service.ts b/frontend/src/app/features/work-packages/routing/wp-edit-form/wp-edit-form-routing.service.ts
similarity index 95%
rename from frontend/src/app/modules/work_packages/routing/wp-edit-form/wp-edit-form-routing.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-edit-form/wp-edit-form-routing.service.ts
index d4275499af8..6474ef64429 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-edit-form/wp-edit-form-routing.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-edit-form/wp-edit-form-routing.service.ts
@@ -28,7 +28,7 @@
import { Transition } from "@uirouter/core";
import { Injectable } from "@angular/core";
-import { EditFormRoutingService } from "core-app/modules/fields/edit/edit-form/edit-form-routing.service";
+import { EditFormRoutingService } from "core-app/shared/components/fields/edit/edit-form/edit-form-routing.service";
@Injectable()
export class WorkPackageEditFormRoutingService extends EditFormRoutingService {
diff --git a/frontend/src/app/modules/work_packages/routing/wp-full-view/wp-full-view.component.ts b/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.component.ts
similarity index 82%
rename from frontend/src/app/modules/work_packages/routing/wp-full-view/wp-full-view.component.ts
rename to frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.component.ts
index 3f556ef6e44..3cc650d4eef 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-full-view/wp-full-view.component.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.component.ts
@@ -26,14 +26,14 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { StateService } from '@uirouter/core';
import { Component, Injector, OnInit } from '@angular/core';
-import { WorkPackageViewSelectionService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service';
-import { WorkPackageSingleViewBase } from "core-app/modules/work_packages/routing/wp-view-base/work-package-single-view.base";
+import { WorkPackageViewSelectionService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service';
+import { WorkPackageSingleViewBase } from "core-app/features/work-packages/routing/wp-view-base/work-package-single-view.base";
import { of } from "rxjs";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
@Component({
templateUrl: './wp-full-view.html',
diff --git a/frontend/src/app/modules/work_packages/routing/wp-full-view/wp-full-view.html b/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.html
similarity index 100%
rename from frontend/src/app/modules/work_packages/routing/wp-full-view/wp-full-view.html
rename to frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.html
diff --git a/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.html b/frontend/src/app/features/work-packages/routing/wp-list-view/wp-list-view.component.html
similarity index 100%
rename from frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.html
rename to frontend/src/app/features/work-packages/routing/wp-list-view/wp-list-view.component.html
diff --git a/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.sass b/frontend/src/app/features/work-packages/routing/wp-list-view/wp-list-view.component.sass
similarity index 96%
rename from frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.sass
rename to frontend/src/app/features/work-packages/routing/wp-list-view/wp-list-view.component.sass
index 8b52ff74dfe..a9c66694826 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.sass
+++ b/frontend/src/app/features/work-packages/routing/wp-list-view/wp-list-view.component.sass
@@ -1,4 +1,4 @@
-@import "helpers"
+@import "src/assets/sass/helpers"
.result-overlay
@include overlay-background
diff --git a/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts b/frontend/src/app/features/work-packages/routing/wp-list-view/wp-list-view.component.ts
similarity index 81%
rename from frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts
rename to frontend/src/app/features/work-packages/routing/wp-list-view/wp-list-view.component.ts
index 0901d230edf..0c3ba07dab5 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-list-view/wp-list-view.component.ts
@@ -36,24 +36,24 @@ import {
NgZone
} from "@angular/core";
import { take } from "rxjs/operators";
-import { CausedUpdatesService } from "core-app/modules/boards/board/caused-updates/caused-updates.service";
-import { DragAndDropService } from "core-app/modules/common/drag-and-drop/drag-and-drop.service";
+import { CausedUpdatesService } from "core-app/features/boards/board/caused-updates/caused-updates.service";
+import { DragAndDropService } from "core-app/shared/helpers/drag-and-drop/drag-and-drop.service";
import {
WorkPackageViewDisplayRepresentationService,
wpDisplayCardRepresentation
-} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
-import { WorkPackageTableConfigurationObject } from "core-components/wp-table/wp-table-configuration";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { DeviceService } from "core-app/modules/common/browser/device.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { WorkPackageViewFiltersService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
+} from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
+import { WorkPackageTableConfigurationObject } from "core-app/features/work-packages/components/wp-table/wp-table-configuration";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { DeviceService } from "core-app/core/browser/device.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { WorkPackageViewFiltersService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
import { StateService } from "@uirouter/core";
-import { KeepTabService } from "core-components/wp-single-view-tabs/keep-tab/keep-tab.service";
+import { KeepTabService } from "core-app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service";
@Component({
selector: 'wp-list-view',
diff --git a/frontend/src/app/modules/work_packages/routing/wp-split-view/wp-split-view.component.ts b/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.component.ts
similarity index 77%
rename from frontend/src/app/modules/work_packages/routing/wp-split-view/wp-split-view.component.ts
rename to frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.component.ts
index d644423a7ed..b91c425309f 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-split-view/wp-split-view.component.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.component.ts
@@ -28,15 +28,15 @@
import { ChangeDetectionStrategy, Component, Injector, OnInit } from '@angular/core';
import { StateService } from '@uirouter/core';
-import { WorkPackageViewFocusService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service';
-import { States } from "core-components/states.service";
-import { FirstRouteService } from "core-app/modules/router/first-route-service";
-import { KeepTabService } from "core-components/wp-single-view-tabs/keep-tab/keep-tab.service";
-import { WorkPackageViewSelectionService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
-import { WorkPackageSingleViewBase } from "core-app/modules/work_packages/routing/wp-view-base/work-package-single-view.base";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { BackRoutingService } from "core-app/modules/common/back-routing/back-routing.service";
+import { WorkPackageViewFocusService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service';
+import { States } from "core-app/core/states/states.service";
+import { FirstRouteService } from "core-app/core/routing/first-route-service";
+import { KeepTabService } from "core-app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service";
+import { WorkPackageViewSelectionService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { WorkPackageSingleViewBase } from "core-app/features/work-packages/routing/wp-view-base/work-package-single-view.base";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { BackRoutingService } from "core-app/features/work-packages/components/back-routing/back-routing.service";
@Component({
templateUrl: './wp-split-view.html',
diff --git a/frontend/src/app/modules/work_packages/routing/wp-split-view/wp-split-view.html b/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.html
similarity index 100%
rename from frontend/src/app/modules/work_packages/routing/wp-split-view/wp-split-view.html
rename to frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.html
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/event-handling/event-handler-registry.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/event-handling/event-handler-registry.ts
similarity index 100%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/event-handling/event-handler-registry.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/event-handling/event-handler-registry.ts
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/typings.d.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/typings.d.ts
similarity index 100%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/typings.d.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/typings.d.ts
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-table-hierarchies.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-table-hierarchies.ts
similarity index 100%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-table-hierarchies.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-table-hierarchies.ts
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-table-highlight.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-table-highlight.ts
similarity index 86%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-table-highlight.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-table-highlight.ts
index c6437b81beb..82c2259ee7a 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-table-highlight.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-table-highlight.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HighlightingMode } from "core-components/wp-fast-table/builders/highlighting/highlighting-mode.const";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { HighlightingMode } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting-mode.const";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export interface WorkPackageViewHighlight {
mode:HighlightingMode;
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-table-pagination.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-table-pagination.ts
similarity index 89%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-table-pagination.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-table-pagination.ts
index 203abc9ff8c..6447bb2a13b 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-table-pagination.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-table-pagination.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageCollectionResource } from 'core-app/modules/hal/resources/wp-collection-resource';
-import { PaginationInstance } from 'core-components/table-pagination/pagination-instance';
+import { PaginationInstance } from "core-app/shared/components/table-pagination/pagination-instance";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
export class WorkPackageViewPagination {
public current:PaginationInstance;
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-table-relation-columns.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-table-relation-columns.ts
similarity index 100%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-table-relation-columns.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-table-relation-columns.ts
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-table-timeline.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-table-timeline.ts
similarity index 92%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-table-timeline.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-table-timeline.ts
index eb818fcca93..b1fa59ab99c 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-table-timeline.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-table-timeline.ts
@@ -26,10 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import {
- TimelineLabels,
- TimelineZoomLevel
-} from 'core-app/modules/hal/resources/query-resource';
+import { TimelineLabels, TimelineZoomLevel } from "core-app/features/hal/resources/query-resource";
export interface WorkPackageTimelineState {
visible:boolean;
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-additional-elements.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-additional-elements.service.ts
similarity index 83%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-additional-elements.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-additional-elements.service.ts
index 5a675d84e8e..9fb965b9730 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-additional-elements.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-additional-elements.service.ts
@@ -26,19 +26,19 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { WorkPackageViewColumnsService } from './wp-view-columns.service';
-import { RelationResource } from 'core-app/modules/hal/resources/relation-resource';
import { WorkPackageViewHierarchiesService } from './wp-view-hierarchy.service';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { Injectable } from '@angular/core';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
-import { RelationsStateValue, WorkPackageRelationsService } from "core-components/wp-relations/wp-relations.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { WorkPackageCollectionResource } from "core-app/modules/hal/resources/wp-collection-resource";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { RelationsStateValue, WorkPackageRelationsService } from "core-app/features/work-packages/components/wp-relations/wp-relations.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { RelationResource } from "core-app/features/hal/resources/relation-resource";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
@Injectable()
export class WorkPackageViewAdditionalElementsService {
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-base.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-base.service.ts
similarity index 91%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-base.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-base.service.ts
index cb6fc3114a9..a3eede84179 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-base.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-base.service.ts
@@ -26,14 +26,14 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { combine, deriveRaw, input, State } from 'reactivestates';
import { map, mapTo, take } from 'rxjs/operators';
import { merge, Observable } from 'rxjs';
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { QuerySchemaResource } from 'core-app/modules/hal/resources/query-schema-resource';
-import { WorkPackageCollectionResource } from 'core-app/modules/hal/resources/wp-collection-resource';
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
import { Injectable } from "@angular/core";
+import { QuerySchemaResource } from "core-app/features/hal/resources/query-schema-resource";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
@Injectable()
export abstract class WorkPackageViewBaseService<T> {
@@ -58,7 +58,7 @@ export abstract class WorkPackageViewBaseService<T> {
* Initialize this table state from the given query resource,
* and possibly the associated schema.
*
- * @param {QueryResource} query
+ * @param {QueryResource} querywp-view-group-by.service
* @param {QuerySchemaResource} schema
*/
public initialize(query:QueryResource, results:WorkPackageCollectionResource, schema?:QuerySchemaResource) {
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service.ts
similarity index 87%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service.ts
index 8e1af2792c5..74dcfda59e6 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service.ts
@@ -26,17 +26,17 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
import { WorkPackageViewBaseService } from './wp-view-base.service';
import { Injectable } from '@angular/core';
-import { WorkPackageViewGroupByService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-group-by.service';
-import { IsolatedQuerySpace } from 'core-app/modules/work_packages/query-space/isolated-query-space';
+import { WorkPackageViewGroupByService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-group-by.service';
+import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';
import { take } from 'rxjs/operators';
-import { GroupObject, WorkPackageCollectionResource } from 'core-app/modules/hal/resources/wp-collection-resource';
-import { QuerySchemaResource } from 'core-app/modules/hal/resources/query-schema-resource';
-import { QueryGroupByResource } from 'core-app/modules/hal/resources/query-group-by-resource';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { SchemaCacheService } from 'core-components/schemas/schema-cache.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { QuerySchemaResource } from "core-app/features/hal/resources/query-schema-resource";
+import { GroupObject, WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
+import { QueryGroupByResource } from "core-app/features/hal/resources/query-group-by-resource";
@Injectable()
export class WorkPackageViewCollapsedGroupsService extends WorkPackageViewBaseService<IGroupsCollapseEvent> {
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service.ts
similarity index 94%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service.ts
index 668ae8a5ff2..1eb78d53bb6 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service.ts
@@ -27,14 +27,14 @@
//++
import { WorkPackageQueryStateService } from './wp-view-base.service';
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { States } from 'core-components/states.service';
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';
+import { States } from 'core-app/core/states/states.service';
import { Injectable } from '@angular/core';
-import { cloneHalResourceCollection } from 'core-app/modules/hal/helpers/hal-resource-builder';
-import { QueryColumn, queryColumnTypes } from "core-components/wp-query/query-column";
+import { QueryColumn, queryColumnTypes } from "core-app/features/work-packages/components/wp-query/query-column";
import { combine } from "reactivestates";
import { mapTo, take } from "rxjs/operators";
+import { cloneHalResourceCollection } from "core-app/features/hal/helpers/hal-resource-builder";
@Injectable()
export class WorkPackageViewColumnsService extends WorkPackageQueryStateService<QueryColumn[]> {
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-display-representation.service.ts
similarity index 91%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-display-representation.service.ts
index fbd6acfe547..9cfe8c538d9 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-display-representation.service.ts
@@ -26,10 +26,10 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
import { WorkPackageQueryStateService } from './wp-view-base.service';
-import { States } from 'core-components/states.service';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { States } from 'core-app/core/states/states.service';
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { Injectable } from '@angular/core';
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service.ts
similarity index 91%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service.ts
index 59630833b47..4b9342d0ec1 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service.ts
@@ -28,17 +28,17 @@
import { WorkPackageQueryStateService } from './wp-view-base.service';
import { Injectable } from '@angular/core';
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { QuerySchemaResource } from 'core-app/modules/hal/resources/query-schema-resource';
-import { QueryFilterInstanceResource } from 'core-app/modules/hal/resources/query-filter-instance-resource';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { combine, input, InputState } from 'reactivestates';
-import { cloneHalResourceCollection } from 'core-app/modules/hal/helpers/hal-resource-builder';
-import { QueryFilterResource } from "core-app/modules/hal/resources/query-filter-resource";
-import { QueryFilterInstanceSchemaResource } from "core-app/modules/hal/resources/query-filter-instance-schema-resource";
-import { States } from "core-components/states.service";
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { States } from "core-app/core/states/states.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { mapTo, take } from "rxjs/operators";
+import { QuerySchemaResource } from "core-app/features/hal/resources/query-schema-resource";
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { cloneHalResourceCollection } from "core-app/features/hal/helpers/hal-resource-builder";
+import { QueryFilterInstanceSchemaResource } from "core-app/features/hal/resources/query-filter-instance-schema-resource";
+import { QueryFilterResource } from "core-app/features/hal/resources/query-filter-resource";
@Injectable()
export class WorkPackageViewFiltersService extends WorkPackageQueryStateService<QueryFilterInstanceResource[]> {
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service.ts
similarity index 84%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service.ts
index d177b309104..1c1986688a7 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service.ts
@@ -27,13 +27,13 @@
//++
import { Injectable } from '@angular/core';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';
import { Observable } from 'rxjs';
import { distinctUntilChanged, map } from 'rxjs/operators';
-import { WorkPackageViewSelectionService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
-import { WorkPackageViewBaseService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-base.service";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { WorkPackageCollectionResource } from "core-app/modules/hal/resources/wp-collection-resource";
+import { WorkPackageViewSelectionService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { WorkPackageViewBaseService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-base.service";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
export interface WPFocusState {
workPackageId:string;
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-group-by.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-group-by.service.ts
similarity index 84%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-group-by.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-group-by.service.ts
index 5bb867ad065..541e6b60d79 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-group-by.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-group-by.service.ts
@@ -26,14 +26,14 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { QueryGroupByResource } from 'core-app/modules/hal/resources/query-group-by-resource';
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
import { WorkPackageQueryStateService } from './wp-view-base.service';
-import { States } from 'core-components/states.service';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { States } from 'core-app/core/states/states.service';
+import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';
import { Injectable } from '@angular/core';
-import { QueryColumn } from "core-components/wp-query/query-column";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { QueryColumn } from "core-app/features/work-packages/components/wp-query/query-column";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { QueryGroupByResource } from "core-app/features/hal/resources/query-group-by-resource";
@Injectable()
export class WorkPackageViewGroupByService extends WorkPackageQueryStateService<QueryGroupByResource|null> {
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.spec.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.spec.ts
similarity index 92%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.spec.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.spec.ts
index 91989c1fb2a..2555c79bc97 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.spec.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.spec.ts
@@ -29,14 +29,14 @@
/*jshint expr: true*/
import { TestBed, waitForAsync } from "@angular/core/testing";
-import { States } from "core-components/states.service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { WorkPackageViewHierarchiesService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
-import { WorkPackageRelationsHierarchyService } from "core-components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";
-import { WorkPackageViewHierarchyIdentationService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service";
-import { WorkPackageViewDisplayRepresentationService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
+import { States } from "core-app/core/states/states.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { WorkPackageViewHierarchiesService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
+import { WorkPackageRelationsHierarchyService } from "core-app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";
+import { WorkPackageViewHierarchyIdentationService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service";
+import { WorkPackageViewDisplayRepresentationService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
import SpyObj = jasmine.SpyObj;
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { of } from "rxjs";
describe('WorkPackageViewIndentation service', function () {
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.ts
similarity index 83%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.ts
index 8e008ea7e74..18d45121727 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service.ts
@@ -1,11 +1,11 @@
import { Injectable } from '@angular/core';
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { WorkPackageViewHierarchiesService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { WorkPackageRelationsHierarchyService } from "core-components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";
-import { States } from "core-components/states.service";
-import { WorkPackageViewDisplayRepresentationService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { WorkPackageViewHierarchiesService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
+import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';
+import { WorkPackageRelationsHierarchyService } from "core-app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";
+import { States } from "core-app/core/states/states.service";
+import { WorkPackageViewDisplayRepresentationService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Injectable()
export class WorkPackageViewHierarchyIdentationService {
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service.ts
similarity index 92%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service.ts
index 0d49a66ce87..0c4c0180954 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service.ts
@@ -1,7 +1,7 @@
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
import { WorkPackageQueryStateService } from './wp-view-base.service';
import { Injectable } from '@angular/core';
-import { WorkPackageViewHierarchies } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-table-hierarchies";
+import { WorkPackageViewHierarchies } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-table-hierarchies";
@Injectable()
export class WorkPackageViewHierarchiesService extends WorkPackageQueryStateService<WorkPackageViewHierarchies> {
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-highlighting.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-highlighting.service.ts
similarity index 78%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-highlighting.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-highlighting.service.ts
index c9a464fa12b..8018c2e48c2 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-highlighting.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-highlighting.service.ts
@@ -1,13 +1,13 @@
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
import { WorkPackageQueryStateService } from './wp-view-base.service';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { Injectable } from '@angular/core';
-import { States } from 'core-components/states.service';
-import { BannersService } from "core-app/modules/common/enterprise/banners.service";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { WorkPackageCollectionResource } from "core-app/modules/hal/resources/wp-collection-resource";
-import { QuerySchemaResource } from "core-app/modules/hal/resources/query-schema-resource";
-import { WorkPackageViewHighlight } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-table-highlight";
+import { States } from 'core-app/core/states/states.service';
+import { BannersService } from "core-app/core/enterprise/banners.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
+import { QuerySchemaResource } from "core-app/features/hal/resources/query-schema-resource";
+import { WorkPackageViewHighlight } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-table-highlight";
@Injectable()
export class WorkPackageViewHighlightingService extends WorkPackageQueryStateService<WorkPackageViewHighlight> {
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-order.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-order.service.ts
similarity index 85%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-order.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-order.service.ts
index 7586fa18945..b876d696f7a 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-order.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-order.service.ts
@@ -26,22 +26,22 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
import { Injectable } from '@angular/core';
import { WorkPackageQueryStateService } from './wp-view-base.service';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { States } from "core-components/states.service";
-import { QuerySchemaResource } from "core-app/modules/hal/resources/query-schema-resource";
-import { WorkPackageCollectionResource } from "core-app/modules/hal/resources/wp-collection-resource";
-import { MAX_ORDER, ReorderDeltaBuilder } from "core-app/modules/common/drag-and-drop/reorder-delta-builder";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { States } from "core-app/core/states/states.service";
+import { QuerySchemaResource } from "core-app/features/hal/resources/query-schema-resource";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
+import { MAX_ORDER, ReorderDeltaBuilder } from "core-app/shared/helpers/drag-and-drop/reorder-delta-builder";
import { take } from "rxjs/operators";
import { InputState } from "reactivestates";
-import { WorkPackageViewSortByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
-import { CausedUpdatesService } from "core-app/modules/boards/board/caused-updates/caused-updates.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { QueryOrder } from "core-app/modules/apiv3/endpoints/queries/apiv3-query-order";
+import { WorkPackageViewSortByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
+import { CausedUpdatesService } from "core-app/features/boards/board/caused-updates/caused-updates.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { QueryOrder } from "core-app/core/apiv3/endpoints/queries/apiv3-query-order";
@Injectable()
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-pagination.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-pagination.service.ts
similarity index 80%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-pagination.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-pagination.service.ts
index 05de303afa3..4a3796becc8 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-pagination.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-pagination.service.ts
@@ -27,12 +27,12 @@
//++
import { Injectable } from '@angular/core';
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { WorkPackageCollectionResource } from 'core-app/modules/hal/resources/wp-collection-resource';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { PaginationObject, PaginationService } from 'core-components/table-pagination/pagination-service';
-import { WorkPackageViewPagination } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-table-pagination";
-import { WorkPackageViewBaseService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-base.service";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { WorkPackageViewPagination } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-table-pagination";
+import { WorkPackageViewBaseService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-base.service";
+import { PaginationObject, PaginationService } from "core-app/shared/components/table-pagination/pagination-service";
export interface PaginationUpdateObject {
page?:number;
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-relation-columns.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-relation-columns.service.ts
similarity index 86%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-relation-columns.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-relation-columns.service.ts
index 3f14ed2c109..bef6b8c655c 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-relation-columns.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-relation-columns.service.ts
@@ -26,23 +26,23 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { WorkPackageViewColumnsService } from './wp-view-columns.service';
import { WorkPackageViewBaseService } from './wp-view-base.service';
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
-import { RelationResource } from 'core-app/modules/hal/resources/relation-resource';
-import { WorkPackageViewRelationColumns } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-table-relation-columns";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { RelationsStateValue, WorkPackageRelationsService } from "core-components/wp-relations/wp-relations.service";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { WorkPackageViewRelationColumns } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-table-relation-columns";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { RelationsStateValue, WorkPackageRelationsService } from "core-app/features/work-packages/components/wp-relations/wp-relations.service";
import { Injectable } from "@angular/core";
import {
QueryColumn,
queryColumnTypes,
RelationQueryColumn,
TypeRelationQueryColumn
-} from "core-components/wp-query/query-column";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+} from "core-app/features/work-packages/components/wp-query/query-column";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { RelationResource } from "core-app/features/hal/resources/relation-resource";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
export type RelationColumnType = 'toType'|'ofType';
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service.ts
similarity index 86%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service.ts
index b44963df1a9..d1739d512de 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service.ts
@@ -1,12 +1,11 @@
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';
import { Injectable, OnDestroy } from '@angular/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { States } from 'core-components/states.service';
-import { OPContextMenuService } from "core-components/op-context-menu/op-context-menu.service";
-import { RenderedWorkPackage } from "core-app/modules/work_packages/render-info/rendered-work-package.type";
-import { WorkPackageViewBaseService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-base.service";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { WorkPackageCollectionResource } from "core-app/modules/hal/resources/wp-collection-resource";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { States } from 'core-app/core/states/states.service';
+import { OPContextMenuService } from "core-app/shared/components/op-context-menu/op-context-menu.service";
+import { WorkPackageViewBaseService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-base.service";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
export interface WorkPackageViewSelectionState {
// Map of selected rows
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sort-by.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service.ts
similarity index 90%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sort-by.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service.ts
index 7b03ac192fc..c0c9785edab 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sort-by.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service.ts
@@ -26,17 +26,17 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { States } from 'core-components/states.service';
+import { States } from 'core-app/core/states/states.service';
import { combine } from 'reactivestates';
import { mapTo } from 'rxjs/operators';
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';
import { Injectable } from '@angular/core';
import { WorkPackageQueryStateService } from './wp-view-base.service';
import { Observable } from 'rxjs';
-import { QuerySortByResource } from 'core-app/modules/hal/resources/query-sort-by-resource';
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { QueryColumn } from "core-components/wp-query/query-column";
+import { QuerySortByResource } from "core-app/features/hal/resources/query-sort-by-resource";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { QueryColumn } from "core-app/features/work-packages/components/wp-query/query-column";
@Injectable()
export class WorkPackageViewSortByService extends WorkPackageQueryStateService<QuerySortByResource[]> {
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sum.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-sum.service.ts
similarity index 91%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sum.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-sum.service.ts
index 007bec6826d..e8e06860c33 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sum.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-sum.service.ts
@@ -27,8 +27,8 @@
//++
import { WorkPackageQueryStateService } from './wp-view-base.service';
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { Injectable } from '@angular/core';
@Injectable()
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service.ts
similarity index 92%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service.ts
index 43d71aadd6e..72d723ff92a 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service.ts
@@ -27,13 +27,13 @@
//++
import { Injectable } from '@angular/core';
-import { QueryResource, TimelineLabels, TimelineZoomLevel } from 'core-app/modules/hal/resources/query-resource';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { input } from 'reactivestates';
import { WorkPackageQueryStateService } from './wp-view-base.service';
-import { WorkPackageTimelineState } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-table-timeline";
-import { zoomLevelOrder } from "core-components/wp-table/timeline/wp-timeline";
+import { WorkPackageTimelineState } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-table-timeline";
+import { zoomLevelOrder } from "core-app/features/work-packages/components/wp-table/timeline/wp-timeline";
+import { QueryResource, TimelineLabels, TimelineZoomLevel } from "core-app/features/hal/resources/query-resource";
@Injectable()
export class WorkPackageViewTimelineService extends WorkPackageQueryStateService<WorkPackageTimelineState> {
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/work-package-single-view.base.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/work-package-single-view.base.ts
similarity index 75%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/work-package-single-view.base.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/work-package-single-view.base.ts
index 65871f15516..ba08a5dab35 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/work-package-single-view.base.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/work-package-single-view.base.ts
@@ -27,24 +27,22 @@
//++
import { ChangeDetectorRef, Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { WorkPackageViewFocusService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { OpTitleService } from 'core-components/html/op-title.service';
-import { AuthorisationService } from 'core-app/modules/common/model-auth/model-auth.service';
-import { States } from 'core-components/states.service';
-import { KeepTabService } from 'core-components/wp-single-view-tabs/keep-tab/keep-tab.service';
-
-import { HalResourceEditingService } from 'core-app/modules/fields/edit/services/hal-resource-editing.service';
-import { WorkPackageNotificationService } from 'core-app/modules/work_packages/notifications/work-package-notification.service';
-import { InjectField } from 'core-app/helpers/angular/inject-field.decorator';
-import { UntilDestroyedMixin } from 'core-app/helpers/angular/until-destroyed.mixin';
-import { APIV3Service } from 'core-app/modules/apiv3/api-v3.service';
-import { HookService } from 'core-app/modules/plugins/hook-service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { WorkPackageViewFocusService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { OpTitleService } from "core-app/core/html/op-title.service";
+import { AuthorisationService } from 'core-app/core/model-auth/model-auth.service';
+import { States } from 'core-app/core/states/states.service';
+import { KeepTabService } from 'core-app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service';
+import { HalResourceEditingService } from 'core-app/shared/components/fields/edit/services/hal-resource-editing.service';
+import { WorkPackageNotificationService } from 'core-app/features/work-packages/services/notifications/work-package-notification.service';
+import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';
+import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';
+import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';
+import { HookService } from 'core-app/features/plugins/hook-service';
export class WorkPackageSingleViewBase extends UntilDestroyedMixin {
-
@InjectField() states:States;
@InjectField() I18n!:I18nService;
@InjectField() keepTab:KeepTabService;
@@ -89,11 +87,11 @@ export class WorkPackageSingleViewBase extends UntilDestroyedMixin {
this.untilDestroyed()
)
.subscribe((wp:WorkPackageResource) => {
- this.workPackage = wp;
- this.init();
- this.cdRef.detectChanges();
- },
- (error) => this.notificationService.handleRawError(error)
+ this.workPackage = wp;
+ this.init();
+ this.cdRef.detectChanges();
+ },
+ (error) => this.notificationService.handleRawError(error)
);
}
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/work-packages-view.base.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/work-packages-view.base.ts
similarity index 71%
rename from frontend/src/app/modules/work_packages/routing/wp-view-base/work-packages-view.base.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-base/work-packages-view.base.ts
index 769aefca913..9c1507c85cb 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/work-packages-view.base.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/work-packages-view.base.ts
@@ -28,33 +28,33 @@
import { ChangeDetectorRef, Directive, Injector, OnDestroy, OnInit } from '@angular/core';
import { StateService, TransitionService } from '@uirouter/core';
-import { AuthorisationService } from 'core-app/modules/common/model-auth/model-auth.service';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { AuthorisationService } from 'core-app/core/model-auth/model-auth.service';
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { filter, take, withLatestFrom } from 'rxjs/operators';
-import { LoadingIndicatorService } from "core-app/modules/common/loading-indicator/loading-indicator.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { WorkPackageStaticQueriesService } from 'core-components/wp-query-select/wp-static-queries.service';
-import { WorkPackageViewHighlightingService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-highlighting.service";
-import { States } from "core-components/states.service";
-import { WorkPackageViewColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service";
-import { WorkPackageViewSortByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
-import { WorkPackageViewGroupByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-group-by.service";
-import { WorkPackageViewFiltersService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service";
-import { WorkPackageViewSumService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sum.service";
-import { WorkPackageViewTimelineService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service";
-import { WorkPackageViewHierarchiesService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
-import { WorkPackageViewPaginationService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-pagination.service";
-import { WorkPackagesListService } from "core-components/wp-list/wp-list.service";
-import { WorkPackagesListChecksumService } from "core-components/wp-list/wp-list-checksum.service";
-import { WorkPackageQueryStateService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-base.service";
-import { WorkPackageStatesInitializationService } from "core-components/wp-list/wp-states-initialization.service";
-import { WorkPackageViewOrderService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-order.service";
-import { WorkPackageViewDisplayRepresentationService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
-import { HalEvent, HalEventsService } from "core-app/modules/hal/services/hal-events.service";
-import { DeviceService } from "core-app/modules/common/browser/device.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { LoadingIndicatorService } from "core-app/core/loading-indicator/loading-indicator.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { WorkPackageStaticQueriesService } from 'core-app/features/work-packages/components/wp-query-select/wp-static-queries.service';
+import { WorkPackageViewHighlightingService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-highlighting.service";
+import { States } from "core-app/core/states/states.service";
+import { WorkPackageViewColumnsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service";
+import { WorkPackageViewSortByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
+import { WorkPackageViewGroupByService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-group-by.service";
+import { WorkPackageViewFiltersService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service";
+import { WorkPackageViewSumService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sum.service";
+import { WorkPackageViewTimelineService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service";
+import { WorkPackageViewHierarchiesService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
+import { WorkPackageViewPaginationService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-pagination.service";
+import { WorkPackagesListService } from "core-app/features/work-packages/components/wp-list/wp-list.service";
+import { WorkPackagesListChecksumService } from "core-app/features/work-packages/components/wp-list/wp-list-checksum.service";
+import { WorkPackageQueryStateService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-base.service";
+import { WorkPackageStatesInitializationService } from "core-app/features/work-packages/components/wp-list/wp-states-initialization.service";
+import { WorkPackageViewOrderService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-order.service";
+import { WorkPackageViewDisplayRepresentationService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
+import { HalEvent, HalEventsService } from "core-app/features/hal/services/hal-events.service";
+import { DeviceService } from "core-app/core/browser/device.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
@Directive()
export abstract class WorkPackagesViewBase extends UntilDestroyedMixin implements OnInit, OnDestroy {
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-page/wp-view-page.component.ts b/frontend/src/app/features/work-packages/routing/wp-view-page/wp-view-page.component.ts
similarity index 65%
rename from frontend/src/app/modules/work_packages/routing/wp-view-page/wp-view-page.component.ts
rename to frontend/src/app/features/work-packages/routing/wp-view-page/wp-view-page.component.ts
index 6dbad638848..7a5d30bb710 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-page/wp-view-page.component.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-page/wp-view-page.component.ts
@@ -28,26 +28,26 @@
import { ChangeDetectionStrategy, Component, OnInit } from "@angular/core";
import { take } from "rxjs/operators";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { QueryParamListenerService } from "core-components/wp-query/query-param-listener.service";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { QueryParamListenerService } from "core-app/features/work-packages/components/wp-query/query-param-listener.service";
import {
PartitionedQuerySpacePageComponent,
ToolbarButtonComponentDefinition,
-} from "core-app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component";
-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.component";
-import { WorkPackageViewToggleButton } from "core-components/wp-buttons/wp-view-toggle-button/work-package-view-toggle-button.component";
-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 { ZenModeButtonComponent } from "core-components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component";
-import { WorkPackageSettingsButtonComponent } from "core-components/wp-buttons/wp-settings-button/wp-settings-button.component";
+} from "core-app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component";
+import { WorkPackageCreateButtonComponent } from "core-app/features/work-packages/components/wp-buttons/wp-create-button/wp-create-button.component";
+import { WorkPackageFilterButtonComponent } from "core-app/features/work-packages/components/wp-buttons/wp-filter-button/wp-filter-button.component";
+import { WorkPackageViewToggleButton } from "core-app/features/work-packages/components/wp-buttons/wp-view-toggle-button/work-package-view-toggle-button.component";
+import { WorkPackageDetailsViewButtonComponent } from "core-app/features/work-packages/components/wp-buttons/wp-details-view-button/wp-details-view-button.component";
+import { WorkPackageTimelineButtonComponent } from "core-app/features/work-packages/components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.component";
+import { ZenModeButtonComponent } from "core-app/features/work-packages/components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component";
+import { WorkPackageSettingsButtonComponent } from "core-app/features/work-packages/components/wp-buttons/wp-settings-button/wp-settings-button.component";
import { of } from "rxjs";
-import { WorkPackageFoldToggleButtonComponent } from "core-components/wp-buttons/wp-fold-toggle-button/wp-fold-toggle-button.component";
+import { WorkPackageFoldToggleButtonComponent } from "core-app/features/work-packages/components/wp-buttons/wp-fold-toggle-button/wp-fold-toggle-button.component";
@Component({
selector: 'wp-view-page',
- templateUrl: '../../../work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.html',
+ templateUrl: '../partitioned-query-space-page/partitioned-query-space-page.component.html',
styleUrls: [
// Absolute paths do not work for styleURLs :-(
'../partitioned-query-space-page/partitioned-query-space-page.component.sass',
diff --git a/frontend/src/app/modules/work_packages/notifications/work-package-notification.service.ts b/frontend/src/app/features/work-packages/services/notifications/work-package-notification.service.ts
similarity index 88%
rename from frontend/src/app/modules/work_packages/notifications/work-package-notification.service.ts
rename to frontend/src/app/features/work-packages/services/notifications/work-package-notification.service.ts
index 07ea7b5488a..6faf1a75369 100644
--- a/frontend/src/app/modules/work_packages/notifications/work-package-notification.service.ts
+++ b/frontend/src/app/features/work-packages/services/notifications/work-package-notification.service.ts
@@ -27,10 +27,10 @@
//++
import { Injectable, Injector } from '@angular/core';
-import { INotification } from 'core-app/modules/common/notifications/notifications.service';
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { INotification } from 'core-app/shared/components/notifications/notifications.service';
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Injectable()
export class WorkPackageNotificationService extends HalResourceNotificationService {
diff --git a/frontend/src/app/components/work-packages/work-package-authorization.service.ts b/frontend/src/app/features/work-packages/services/work-package-authorization.service.ts
similarity index 94%
rename from frontend/src/app/components/work-packages/work-package-authorization.service.ts
rename to frontend/src/app/features/work-packages/services/work-package-authorization.service.ts
index 6e9e0f56d87..22183293876 100644
--- a/frontend/src/app/components/work-packages/work-package-authorization.service.ts
+++ b/frontend/src/app/features/work-packages/services/work-package-authorization.service.ts
@@ -27,9 +27,9 @@
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { StateService } from '@uirouter/core';
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
export class WorkPackageAuthorization {
diff --git a/frontend/src/app/components/work-packages/work-package.service.ts b/frontend/src/app/features/work-packages/services/work-package.service.ts
similarity index 86%
rename from frontend/src/app/components/work-packages/work-package.service.ts
rename to frontend/src/app/features/work-packages/services/work-package.service.ts
index 74422e47d6f..87982e25645 100644
--- a/frontend/src/app/components/work-packages/work-package.service.ts
+++ b/frontend/src/app/features/work-packages/services/work-package.service.ts
@@ -29,11 +29,11 @@
import { StateService } from '@uirouter/core';
import { Injectable } from "@angular/core";
import { HttpClient } from "@angular/common/http";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { UrlParamsHelperService } from "core-components/wp-query/url-params-helper";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { HalDeletedEvent, HalEventsService } from "core-app/modules/hal/services/hal-events.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { UrlParamsHelperService } from "core-app/features/work-packages/components/wp-query/url-params-helper";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { HalDeletedEvent, HalEventsService } from "core-app/features/hal/services/hal-events.service";
@Injectable()
export class WorkPackageService {
diff --git a/frontend/src/app/modules/work_packages/render-info/rendered-work-package.type.ts b/frontend/src/app/features/work-packages/typings.d.ts
similarity index 89%
rename from frontend/src/app/modules/work_packages/render-info/rendered-work-package.type.ts
rename to frontend/src/app/features/work-packages/typings.d.ts
index 16711522a87..d9de60d660c 100644
--- a/frontend/src/app/modules/work_packages/render-info/rendered-work-package.type.ts
+++ b/frontend/src/app/features/work-packages/typings.d.ts
@@ -1,4 +1,4 @@
-export interface RenderedWorkPackage {
+interface RenderedWorkPackage {
/** container-unique class name for the rendered work package */
classIdentifier:string;
diff --git a/frontend/src/app/modules/autocompleter/openproject-autocompleter.module.ts b/frontend/src/app/modules/autocompleter/openproject-autocompleter.module.ts
deleted file mode 100644
index 474e98fe04a..00000000000
--- a/frontend/src/app/modules/autocompleter/openproject-autocompleter.module.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-import { NgModule } from "@angular/core";
-import { OpenprojectModalModule } from "core-app/modules/modal/modal.module";
-import { NgSelectModule } from "@ng-select/ng-select";
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
-import { CreateAutocompleterComponent } from "core-app/modules/autocompleter/create-autocompleter/create-autocompleter.component";
-import { DraggableAutocompleteComponent } from "core-app/modules/common/draggable-autocomplete/draggable-autocomplete.component";
-import { DynamicModule } from "ng-dynamic-component";
-import { ColorsAutocompleter } from "core-app/modules/common/colors/colors-autocompleter.component";
-import { WorkPackageAutocompleterComponent } from "core-app/modules/autocompleter/work-package-autocompleter/wp-autocompleter.component";
-import { TimeEntryWorkPackageAutocompleterComponent } from "core-app/modules/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component";
-import { AutocompleteSelectDecorationComponent } from "core-app/modules/autocompleter/autocomplete-select-decoration/autocomplete-select-decoration.component";
-import { VersionAutocompleterComponent } from "core-app/modules/autocompleter/version-autocompleter/version-autocompleter.component";
-import { UserAutocompleterComponent } from "core-app/modules/autocompleter/user-autocompleter/user-autocompleter.component";
-import { CommonModule } from "@angular/common";
-import { OpenprojectInviteUserModalModule } from "core-app/modules/invite-user-modal/invite-user-modal.module";
-import { DragulaModule } from "ng2-dragula";
-import {OpAutocompleterComponent} from "core-app/modules/autocompleter/op-autocompleter/op-autocompleter.component";
-import {OpAutocompleterOptionTemplateDirective} from "core-app/modules/autocompleter/op-autocompleter/directives/op-autocompleter-option-template.directive";
-import {OpAutocompleterLabelTemplateDirective} from "core-app/modules/autocompleter/op-autocompleter/directives/op-autocompleter-label-template.directive";
-import {OpAutocompleterHeaderTemplateDirective} from "core-app/modules/autocompleter/op-autocompleter/directives/op-autocompleter-header-template.directive";
-import {OpAutocompleterFooterTemplateDirective} from "core-app/modules/autocompleter/op-autocompleter/directives/op-autocompleter-footer-template.directive";
-
-export const OPENPROJECT_AUTOCOMPLETE_COMPONENTS = [
- CreateAutocompleterComponent,
- VersionAutocompleterComponent,
- WorkPackageAutocompleterComponent,
- TimeEntryWorkPackageAutocompleterComponent,
- DraggableAutocompleteComponent,
- UserAutocompleterComponent,
- ColorsAutocompleter,
- AutocompleteSelectDecorationComponent,
- OpAutocompleterComponent,
- OpAutocompleterOptionTemplateDirective,
- OpAutocompleterLabelTemplateDirective,
- OpAutocompleterHeaderTemplateDirective,
- OpAutocompleterFooterTemplateDirective,
-];
-
-@NgModule({
- imports: [
- CommonModule,
- OpenprojectCommonModule,
- OpenprojectModalModule,
- OpenprojectInviteUserModalModule,
- NgSelectModule,
- DragulaModule,
-
- DynamicModule.withComponents(OPENPROJECT_AUTOCOMPLETE_COMPONENTS)
- ],
- exports: OPENPROJECT_AUTOCOMPLETE_COMPONENTS,
- declarations: OPENPROJECT_AUTOCOMPLETE_COMPONENTS
-})
-export class OpenprojectAutocompleterModule { }
diff --git a/frontend/src/app/modules/boards/boards-root/boards-root.component.ts b/frontend/src/app/modules/boards/boards-root/boards-root.component.ts
deleted file mode 100644
index 231c703a925..00000000000
--- a/frontend/src/app/modules/boards/boards-root/boards-root.component.ts
+++ /dev/null
@@ -1,37 +0,0 @@
-import { Component, Injector } from "@angular/core";
-import { BoardConfigurationService } from "core-app/modules/boards/board/configuration-modal/board-configuration.service";
-import { BoardActionsRegistryService } from "core-app/modules/boards/board/board-actions/board-actions-registry.service";
-import { BoardStatusActionService } from "core-app/modules/boards/board/board-actions/status/status-action.service";
-import { BoardVersionActionService } from "core-app/modules/boards/board/board-actions/version/version-action.service";
-import { QueryUpdatedService } from "core-app/modules/boards/board/query-updated/query-updated.service";
-import { BoardAssigneeActionService } from "core-app/modules/boards/board/board-actions/assignee/assignee-action.service";
-import { BoardSubprojectActionService } from "core-app/modules/boards/board/board-actions/subproject/subproject-action.service";
-import { BoardSubtasksActionService } from "core-app/modules/boards/board/board-actions/subtasks/board-subtasks-action.service";
-
-@Component({
- selector: 'boards-entry',
- template: '<ui-view wp-isolated-query-space></ui-view>',
- providers: [
- BoardConfigurationService,
- BoardStatusActionService,
- BoardVersionActionService,
- BoardAssigneeActionService,
- BoardSubprojectActionService,
- BoardSubtasksActionService,
- QueryUpdatedService,
- ]
-})
-export class BoardsRootComponent {
-
- constructor(readonly injector:Injector) {
-
- // Register action services
- const registry = injector.get(BoardActionsRegistryService);
-
- registry.add('status', injector.get(BoardStatusActionService));
- registry.add('assignee', injector.get(BoardAssigneeActionService));
- registry.add('version', injector.get(BoardVersionActionService));
- registry.add('subproject', injector.get(BoardSubprojectActionService));
- registry.add('subtasks', injector.get(BoardSubtasksActionService));
- }
-}
diff --git a/frontend/src/app/modules/boards/openproject-boards.module.ts b/frontend/src/app/modules/boards/openproject-boards.module.ts
deleted file mode 100644
index 2c0c562f5cc..00000000000
--- a/frontend/src/app/modules/boards/openproject-boards.module.ts
+++ /dev/null
@@ -1,105 +0,0 @@
-//-- copyright
-// OpenProject is an open source project management software.
-// Copyright (C) 2012-2021 the OpenProject GmbH
-//
-// 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 docs/COPYRIGHT.rdoc for more details.
-//++
-
-import { NgModule } from '@angular/core';
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
-import { OpenprojectWorkPackagesModule } from "core-app/modules/work_packages/openproject-work-packages.module";
-import { OpenprojectModalModule } from "core-app/modules/modal/modal.module";
-import { UIRouterModule } from "@uirouter/angular";
-import { BoardListComponent } from "core-app/modules/boards/board/board-list/board-list.component";
-import { BoardsRootComponent } from "core-app/modules/boards/boards-root/boards-root.component";
-import { BoardInlineAddAutocompleterComponent } from "core-app/modules/boards/board/inline-add/board-inline-add-autocompleter.component";
-import { BoardsToolbarMenuDirective } from "core-app/modules/boards/board/toolbar-menu/boards-toolbar-menu.directive";
-import { BoardConfigurationModal } from "core-app/modules/boards/board/configuration-modal/board-configuration.modal";
-import { BoardsIndexPageComponent } from "core-app/modules/boards/index-page/boards-index-page.component";
-import { BoardsMenuComponent } from "core-app/modules/boards/boards-sidebar/boards-menu.component";
-import { NewBoardModalComponent } from "core-app/modules/boards/new-board-modal/new-board-modal.component";
-import { AddListModalComponent } from "core-app/modules/boards/board/add-list-modal/add-list-modal.component";
-import { BoardHighlightingTabComponent } from "core-app/modules/boards/board/configuration-modal/tabs/highlighting-tab.component";
-import { AddCardDropdownMenuDirective } from "core-app/modules/boards/board/add-card-dropdown/add-card-dropdown-menu.directive";
-import { BoardFilterComponent } from "core-app/modules/boards/board/board-filter/board-filter.component";
-import { DragScrollModule } from "cdk-drag-scroll";
-import { BoardListMenuComponent } from "core-app/modules/boards/board/board-list/board-list-menu.component";
-import { VersionBoardHeaderComponent } from "core-app/modules/boards/board/board-actions/version/version-board-header.component";
-import { DynamicModule } from "ng-dynamic-component";
-import { BOARDS_ROUTES, uiRouterBoardsConfiguration } from "core-app/modules/boards/openproject-boards.routes";
-import { BoardPartitionedPageComponent } from "core-app/modules/boards/board/board-partitioned-page/board-partitioned-page.component";
-import { BoardListContainerComponent } from "core-app/modules/boards/board/board-partitioned-page/board-list-container.component";
-import { BoardsMenuButtonComponent } from "core-app/modules/boards/board/toolbar-menu/boards-menu-button.component";
-import { AssigneeBoardHeaderComponent } from "core-app/modules/boards/board/board-actions/assignee/assignee-board-header.component";
-import { TileViewComponent } from './tile-view/tile-view.component';
-import { SubprojectBoardHeaderComponent } from "core-app/modules/boards/board/board-actions/subproject/subproject-board-header.component";
-import { SubtasksBoardHeaderComponent } from "core-app/modules/boards/board/board-actions/subtasks/subtasks-board-header.component";
-import { StatusBoardHeaderComponent } from "core-app/modules/boards/board/board-actions/status/status-board-header.component";
-import { OpenprojectAutocompleterModule } from "core-app/modules/autocompleter/openproject-autocompleter.module";
-
-@NgModule({
- imports: [
- OpenprojectCommonModule,
- OpenprojectWorkPackagesModule,
- OpenprojectModalModule,
- DragScrollModule,
- OpenprojectAutocompleterModule,
-
- // Dynamic Module for actions
- DynamicModule.withComponents([VersionBoardHeaderComponent]),
-
- // Routes for /boards
- UIRouterModule.forChild({
- states: BOARDS_ROUTES,
- config: uiRouterBoardsConfiguration
- }),
- ],
- declarations: [
- BoardsIndexPageComponent,
- BoardPartitionedPageComponent,
- BoardListContainerComponent,
- BoardListComponent,
- BoardsRootComponent,
- BoardInlineAddAutocompleterComponent,
- BoardsMenuComponent,
- BoardHighlightingTabComponent,
- BoardConfigurationModal,
- BoardsToolbarMenuDirective,
- BoardsMenuButtonComponent,
- NewBoardModalComponent,
- AddListModalComponent,
- AddCardDropdownMenuDirective,
- BoardListMenuComponent,
- BoardFilterComponent,
- VersionBoardHeaderComponent,
- AssigneeBoardHeaderComponent,
- SubprojectBoardHeaderComponent,
- SubtasksBoardHeaderComponent,
- StatusBoardHeaderComponent,
- TileViewComponent,
- ]
-})
-export class OpenprojectBoardsModule {
-}
-
diff --git a/frontend/src/app/modules/common/back-routing/back-button.component.html b/frontend/src/app/modules/common/back-routing/back-button.component.html
deleted file mode 100644
index 8b0f2b80ed5..00000000000
--- a/frontend/src/app/modules/common/back-routing/back-button.component.html
+++ /dev/null
@@ -1,8 +0,0 @@
-<button
- class="op-back-button button hide-when-print"
- [ngClass]="linkClass"
- [title]="text.goBack"
- (click)="goBack()"
->
- <op-icon icon-classes="op-back-button--icon button--icon icon-back-up"></op-icon>
-</button>
\ No newline at end of file
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.component.spec.ts b/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.component.spec.ts
deleted file mode 100644
index e592d2b2018..00000000000
--- a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.component.spec.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { DatePickerControlComponent } from './date-picker-control.component';
-
-xdescribe('DatePickerAdapterComponent', () => {
- let component: DatePickerControlComponent;
- let fixture: ComponentFixture<DatePickerControlComponent>;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- declarations: [ DatePickerControlComponent ]
- })
- .compileComponents();
- });
-
- beforeEach(() => {
- fixture = TestBed.createComponent(DatePickerControlComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.module.ts b/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.module.ts
deleted file mode 100644
index 5762d364921..00000000000
--- a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.module.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import { NgModule } from '@angular/core';
-import { CommonModule } from '@angular/common';
-import { FormattableControlComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component";
-import { OpenprojectEditorModule } from "core-app/modules/editor/openproject-editor.module";
-import { FormattableEditFieldModule } from "core-app/modules/fields/edit/field-types/formattable-edit-field/formattable-edit-field.module";
-
-
-
-@NgModule({
- declarations: [
- FormattableControlComponent,
- ],
- imports: [
- CommonModule,
- OpenprojectEditorModule,
- FormattableEditFieldModule,
- ],
- exports: [
- FormattableControlComponent,
- ]
-})
-export class FormattableControlModule { }
diff --git a/frontend/src/app/modules/common/dynamic-forms/dynamic-forms.module.ts b/frontend/src/app/modules/common/dynamic-forms/dynamic-forms.module.ts
deleted file mode 100644
index dffccbc55f0..00000000000
--- a/frontend/src/app/modules/common/dynamic-forms/dynamic-forms.module.ts
+++ /dev/null
@@ -1,79 +0,0 @@
-import { NgModule } from "@angular/core";
-import { CommonModule } from "@angular/common";
-import { ReactiveFormsModule } from "@angular/forms";
-import { FormlyModule } from "@ngx-formly/core";
-import { HTTP_INTERCEPTORS, HttpClientModule } from "@angular/common/http";
-import { NgSelectModule } from "@ng-select/ng-select";
-import { DynamicFieldGroupWrapperComponent } from "./components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component";
-import { DynamicFormComponent } from "./components/dynamic-form/dynamic-form.component";
-import { OpenProjectHeaderInterceptor } from "core-app/modules/hal/http/openproject-header-interceptor";
-import { TextInputComponent } from './components/dynamic-inputs/text-input/text-input.component';
-import { IntegerInputComponent } from './components/dynamic-inputs/integer-input/integer-input.component';
-import { SelectInputComponent } from './components/dynamic-inputs/select-input/select-input.component';
-import { SelectProjectStatusInputComponent } from "./components/dynamic-inputs/select-project-status-input/select-project-status-input.component";
-import { NgOptionHighlightModule } from "@ng-select/ng-option-highlight";
-import { BooleanInputComponent } from './components/dynamic-inputs/boolean-input/boolean-input.component';
-import { DateInputComponent } from './components/dynamic-inputs/date-input/date-input.component';
-import { FormattableTextareaInputComponent } from './components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component';
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
-import { DynamicFieldWrapperComponent } from './components/dynamic-field-wrapper/dynamic-field-wrapper.component';
-import { InviteUserButtonModule } from "core-app/modules/invite-user-modal/button/invite-user-button.module";
-import { DatePickerControlModule } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.module";
-import { FormattableControlModule } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.module";
-
-@NgModule({
- imports: [
- CommonModule,
- ReactiveFormsModule,
- FormlyModule.forRoot({
- types: [
- { name: 'booleanInput', component: BooleanInputComponent },
- { name: 'integerInput', component: IntegerInputComponent },
- { name: 'textInput', component: TextInputComponent },
- { name: 'dateInput', component: DateInputComponent },
- { name: 'selectInput', component: SelectInputComponent },
- { name: 'selectProjectStatusInput', component: SelectProjectStatusInputComponent },
- { name: 'formattableInput', component: FormattableTextareaInputComponent },
- ],
- wrappers: [
- {
- name: 'op-dynamic-field-group-wrapper',
- component: DynamicFieldGroupWrapperComponent,
- },
- {
- name: 'op-dynamic-field-wrapper',
- component: DynamicFieldWrapperComponent,
- },
- ]
- }),
- HttpClientModule,
- OpenprojectCommonModule,
-
- // Input dependencies
- NgSelectModule,
- NgOptionHighlightModule,
- InviteUserButtonModule,
- DatePickerControlModule,
- FormattableControlModule,
- ],
- declarations: [
- DynamicFormComponent,
- DynamicFieldGroupWrapperComponent,
- DynamicFieldWrapperComponent,
- // Input Types
- BooleanInputComponent,
- IntegerInputComponent,
- TextInputComponent,
- SelectInputComponent,
- SelectProjectStatusInputComponent,
- DateInputComponent,
- FormattableTextareaInputComponent,
- ],
- providers: [
- { provide: HTTP_INTERCEPTORS, useClass: OpenProjectHeaderInterceptor, multi: true },
- ],
- exports: [
- DynamicFormComponent,
- ]
-})
-export class DynamicFormsModule {}
diff --git a/frontend/src/app/modules/common/openproject-common.module.sass b/frontend/src/app/modules/common/openproject-common.module.sass
deleted file mode 100644
index 39a53d7371b..00000000000
--- a/frontend/src/app/modules/common/openproject-common.module.sass
+++ /dev/null
@@ -1,8 +0,0 @@
-@import './header/index'
-@import './menu/menu'
-@import './input/input'
-@import './link/link'
-@import './forms'
-@import './option-list/option-list'
-@import './export-options/export-options'
-@import './select/select'
diff --git a/frontend/src/app/modules/fields/edit/field-types/formattable-edit-field/formattable-edit-field.module.ts b/frontend/src/app/modules/fields/edit/field-types/formattable-edit-field/formattable-edit-field.module.ts
deleted file mode 100644
index 83f24f75c9d..00000000000
--- a/frontend/src/app/modules/fields/edit/field-types/formattable-edit-field/formattable-edit-field.module.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import { NgModule } from '@angular/core';
-import { CommonModule } from '@angular/common';
-import { FormattableEditFieldComponent } from "core-app/modules/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component";
-import { OpenprojectEditorModule } from "core-app/modules/editor/openproject-editor.module";
-import { EditFieldControlsModule } from "core-app/modules/fields/edit/field-controls/edit-field-controls.module";
-
-
-@NgModule({
- declarations: [
- FormattableEditFieldComponent,
- ],
- imports: [
- CommonModule,
- OpenprojectEditorModule,
- EditFieldControlsModule,
- ],
- exports: [
- FormattableEditFieldComponent,
- ]
-})
-export class FormattableEditFieldModule { }
diff --git a/frontend/src/app/modules/fields/macros/attribute-macro.sass b/frontend/src/app/modules/fields/macros/attribute-macro.sass
deleted file mode 100644
index 6523932a35d..00000000000
--- a/frontend/src/app/modules/fields/macros/attribute-macro.sass
+++ /dev/null
@@ -1,4 +0,0 @@
-@import 'helpers'
-
-\:host
- @include macro--text-style
\ No newline at end of file
diff --git a/frontend/src/app/modules/fields/macros/work-package-quickinfo-macro.sass b/frontend/src/app/modules/fields/macros/work-package-quickinfo-macro.sass
deleted file mode 100644
index 7612314f5de..00000000000
--- a/frontend/src/app/modules/fields/macros/work-package-quickinfo-macro.sass
+++ /dev/null
@@ -1,7 +0,0 @@
-@import 'helpers'
-
-\:host
- @include macro--text-style
-
-display-field
- padding-right: 2px
\ No newline at end of file
diff --git a/frontend/src/app/modules/fields/openproject-fields.module.ts b/frontend/src/app/modules/fields/openproject-fields.module.ts
deleted file mode 100644
index 8f15853331a..00000000000
--- a/frontend/src/app/modules/fields/openproject-fields.module.ts
+++ /dev/null
@@ -1,123 +0,0 @@
-//-- copyright
-// OpenProject is an open source project management software.
-// Copyright (C) 2012-2021 the OpenProject GmbH
-//
-// 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 docs/COPYRIGHT.rdoc for more details.
-//++
-
-import { APP_INITIALIZER, NgModule } from '@angular/core';
-import { CommonModule } from "@angular/common";
-import { OpenprojectAccessibilityModule } from "core-app/modules/a11y/openproject-a11y.module";
-import { OpenprojectModalModule } from "core-app/modules/modal/modal.module";
-import { OpenprojectEditorModule } from 'core-app/modules/editor/openproject-editor.module';
-import { OpenprojectAttachmentsModule } from "core-app/modules/attachments/openproject-attachments.module";
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
-import { AttributeHelpTextModule } from "core-app/modules/attribute-help-texts/attribute-help-text.module";
-import { EditFieldService } from "core-app/modules/fields/edit/edit-field.service";
-import { DisplayFieldService } from "core-app/modules/fields/display/display-field.service";
-import { initializeCoreEditFields } from "core-app/modules/fields/edit/edit-field.initializer";
-import { initializeCoreDisplayFields } from "core-app/modules/fields/display/display-field.initializer";
-import { DurationEditFieldComponent } from "core-app/modules/fields/edit/field-types/duration-edit-field.component";
-import { FloatEditFieldComponent } from "core-app/modules/fields/edit/field-types/float-edit-field.component";
-import { MultiSelectEditFieldComponent } from "core-app/modules/fields/edit/field-types/multi-select-edit-field.component";
-import { EditFormPortalComponent } from "core-app/modules/fields/edit/editing-portal/edit-form-portal.component";
-import { SelectAutocompleterRegisterService } from "core-app/modules/fields/edit/field-types/select-edit-field/select-autocompleter-register.service";
-import { EditFormComponent } from "core-app/modules/fields/edit/edit-form/edit-form.component";
-import { WorkPackageEditFieldComponent } from "core-app/modules/fields/edit/field-types/work-package-edit-field.component";
-import { EditableAttributeFieldComponent } from "core-app/modules/fields/edit/field/editable-attribute-field.component";
-import { ProjectStatusEditFieldComponent } from "core-app/modules/fields/edit/field-types/project-status-edit-field.component";
-import { PlainFormattableEditFieldComponent } from "core-app/modules/fields/edit/field-types/plain-formattable-edit-field.component";
-import { TimeEntryWorkPackageEditFieldComponent } from "core-app/modules/fields/edit/field-types/te-work-package-edit-field.component";
-import { AttributeValueMacroComponent } from "core-app/modules/fields/macros/attribute-value-macro.component";
-import { AttributeLabelMacroComponent } from "core-app/modules/fields/macros/attribute-label-macro.component";
-import { WorkPackageQuickinfoMacroComponent } from "core-app/modules/fields/macros/work-package-quickinfo-macro.component";
-import { DisplayFieldComponent } from "core-app/modules/fields/display/display-field.component";
-import { OpenprojectAutocompleterModule } from "core-app/modules/autocompleter/openproject-autocompleter.module";
-import { BooleanEditFieldModule } from "core-app/modules/fields/edit/field-types/boolean-edit-field/boolean-edit-field.module";
-import { IntegerEditFieldModule } from "core-app/modules/fields/edit/field-types/integer-edit-field/integer-edit-field.module";
-import { TextEditFieldModule } from "core-app/modules/fields/edit/field-types/text-edit-field/text-edit-field.module";
-import { DateEditFieldModule } from "core-app/modules/fields/edit/field-types/date-edit-field/date-edit-field.module";
-import { SelectEditFieldModule } from "core-app/modules/fields/edit/field-types/select-edit-field/select-edit-field.module";
-import { FormattableEditFieldModule } from "core-app/modules/fields/edit/field-types/formattable-edit-field/formattable-edit-field.module";
-import { EditFieldControlsModule } from "core-app/modules/fields/edit/field-controls/edit-field-controls.module";
-
-@NgModule({
- imports: [
- CommonModule,
- OpenprojectCommonModule,
- OpenprojectAttachmentsModule,
- OpenprojectAccessibilityModule,
- OpenprojectEditorModule,
- OpenprojectModalModule,
- OpenprojectAutocompleterModule,
- AttributeHelpTextModule,
- // Input Modules
- BooleanEditFieldModule,
- IntegerEditFieldModule,
- TextEditFieldModule,
- DateEditFieldModule,
- SelectEditFieldModule,
- FormattableEditFieldModule,
- EditFieldControlsModule,
- ],
- exports: [
- EditFormPortalComponent,
- EditFormComponent,
- EditableAttributeFieldComponent,
- ],
- providers: [
- {
- provide: APP_INITIALIZER,
- useFactory: initializeCoreEditFields,
- deps: [EditFieldService, SelectAutocompleterRegisterService],
- multi: true
- },
- {
- provide: APP_INITIALIZER,
- useFactory: initializeCoreDisplayFields,
- deps: [DisplayFieldService],
- multi: true
- },
- ],
- declarations: [
- EditFormPortalComponent,
- DurationEditFieldComponent,
- FloatEditFieldComponent,
- PlainFormattableEditFieldComponent,
- MultiSelectEditFieldComponent,
- WorkPackageEditFieldComponent,
- TimeEntryWorkPackageEditFieldComponent,
- EditFormComponent,
- DisplayFieldComponent,
- EditableAttributeFieldComponent,
- ProjectStatusEditFieldComponent,
- AttributeValueMacroComponent,
- AttributeLabelMacroComponent,
-
- WorkPackageQuickinfoMacroComponent,
- ]
-})
-export class OpenprojectFieldsModule {
-}
-
diff --git a/frontend/src/app/modules/grids/widgets/widget-changeset.ts b/frontend/src/app/modules/grids/widgets/widget-changeset.ts
deleted file mode 100644
index 37905aa59dc..00000000000
--- a/frontend/src/app/modules/grids/widgets/widget-changeset.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import { ResourceChangeset } from "core-app/modules/fields/changeset/resource-changeset";
-import { GridWidgetResource } from "core-app/modules/hal/resources/grid-widget-resource";
-
-export class WidgetChangeset extends ResourceChangeset<GridWidgetResource> {
-
-}
diff --git a/frontend/src/app/modules/modal/modal.module.sass b/frontend/src/app/modules/modal/modal.module.sass
deleted file mode 100644
index 2267b5081a4..00000000000
--- a/frontend/src/app/modules/modal/modal.module.sass
+++ /dev/null
@@ -1,5 +0,0 @@
-@import './modal-overrides'
-@import './modal-overlay'
-@import './modal-delivery-element'
-@import './modal'
-
diff --git a/frontend/src/app/modules/my-page/my-page.component.ts b/frontend/src/app/modules/my-page/my-page.component.ts
deleted file mode 100644
index d70bdf2edce..00000000000
--- a/frontend/src/app/modules/my-page/my-page.component.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-import { Component } from "@angular/core";
-import { GRID_PROVIDERS } from "core-app/modules/grids/grid/grid.component";
-import { GridPageComponent } from "core-app/modules/grids/grid/page/grid-page.component";
-
-@Component({
- templateUrl: '../grids/grid/page/grid-page.component.html',
- styleUrls: ['../grids/grid/page/grid-page.component.sass'],
- providers: GRID_PROVIDERS
-})
-export class MyPageComponent extends GridPageComponent {
- protected i18nNamespace():string {
- return 'my_page';
- }
-
- protected gridScopePath():string {
- return this.pathHelper.myPagePath();
- }
-}
diff --git a/frontend/src/app/modules/principal/principal-types.ts b/frontend/src/app/modules/principal/principal-types.ts
deleted file mode 100644
index a7e1e8e8b11..00000000000
--- a/frontend/src/app/modules/principal/principal-types.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-import {UserResource} from "core-app/modules/hal/resources/user-resource";
-import {PlaceholderUserResource} from "core-app/modules/hal/resources/placeholder-user-resource";
-import {GroupResource} from "core-app/modules/hal/resources/group-resource";
-
-export type PrincipalLike = UserResource|PlaceholderUserResource|GroupResource|{ id?:string, name:string, href?:string };
-export interface PrincipalData {
- principal: PrincipalLike|null;
- customFields: {[key:string]: any},
-}
diff --git a/frontend/src/app/modules/work_packages/openproject-work-packages.module.ts b/frontend/src/app/modules/work_packages/openproject-work-packages.module.ts
deleted file mode 100644
index fa2c0c7a185..00000000000
--- a/frontend/src/app/modules/work_packages/openproject-work-packages.module.ts
+++ /dev/null
@@ -1,479 +0,0 @@
-//-- copyright
-// OpenProject is an open source project management software.
-// Copyright (C) 2012-2021 the OpenProject GmbH
-//
-// 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 docs/COPYRIGHT.rdoc for more details.
-//++
-
-import { Injector, NgModule } from '@angular/core';
-import { OpenprojectCommonModule } from 'core-app/modules/common/openproject-common.module';
-import { OpenprojectFieldsModule } from 'core-app/modules/fields/openproject-fields.module';
-import { OpenprojectModalModule } from 'core-app/modules/modal/modal.module';
-import {
- GroupDescriptor,
- WorkPackageSingleViewComponent
-} from 'core-components/work-packages/wp-single-view/wp-single-view.component';
-import { HookService } from 'core-app/modules/plugins/hook-service';
-import { WorkPackageFormAttributeGroupComponent } from 'core-components/wp-form-group/wp-attribute-group.component';
-import { WorkPackageEmbeddedTableComponent } from 'core-components/wp-table/embedded/wp-embedded-table.component';
-import { WorkPackageEmbeddedTableEntryComponent } from 'core-components/wp-table/embedded/wp-embedded-table-entry.component';
-import { WorkPackageTablePaginationComponent } from 'core-components/wp-table/table-pagination/wp-table-pagination.component';
-import { WpResizerDirective } from 'core-components/resizer/wp-resizer.component';
-import { WorkPackageTimelineTableController } from 'core-components/wp-table/timeline/container/wp-timeline-container.directive';
-import { WorkPackageInlineCreateComponent } from 'core-components/wp-inline-create/wp-inline-create.component';
-import { OpTypesContextMenuDirective } from 'core-components/op-context-menu/handlers/op-types-context-menu.directive';
-import { OpColumnsContextMenu } from 'core-components/op-context-menu/handlers/op-columns-context-menu.directive';
-import { OpSettingsMenuDirective } from 'core-components/op-context-menu/handlers/op-settings-dropdown-menu.directive';
-import { WorkPackageStatusDropdownDirective } from 'core-components/op-context-menu/handlers/wp-status-dropdown-menu.directive';
-import { WorkPackageCreateSettingsMenuDirective } from 'core-components/op-context-menu/handlers/wp-create-settings-menu.directive';
-import { WorkPackageSingleContextMenuDirective } from 'core-components/op-context-menu/wp-context-menu/wp-single-context-menu';
-import { WorkPackageQuerySelectDropdownComponent } from 'core-components/wp-query-select/wp-query-select-dropdown.component';
-import { WorkPackageTimelineHeaderController } from 'core-components/wp-table/timeline/header/wp-timeline-header.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 { WorkPackageTimelineButtonComponent } from 'core-components/wp-buttons/wp-timeline-toggle-button/wp-timeline-toggle-button.component';
-import { WorkPackageOverviewTabComponent } from 'core-components/wp-single-view-tabs/overview-tab/overview-tab.component';
-import { WorkPackageStatusButtonComponent } from 'core-components/wp-buttons/wp-status-button/wp-status-button.component';
-import { WorkPackageReplacementLabelComponent } from 'core-components/wp-edit/wp-edit-field/wp-replacement-label.component';
-import { NewestActivityOnOverviewComponent } from 'core-components/wp-single-view-tabs/activity-panel/activity-on-overview.component';
-import { UserLinkComponent } from 'core-components/user/user-link/user-link.component';
-import { WorkPackageCommentComponent } from 'core-components/work-packages/work-package-comment/work-package-comment.component';
-import { WorkPackageCommentFieldComponent } from 'core-components/work-packages/work-package-comment/wp-comment-field.component';
-import { ActivityEntryComponent } from 'core-components/wp-activity/activity-entry.component';
-import { UserActivityComponent } from 'core-components/wp-activity/user/user-activity.component';
-import { RevisionActivityComponent } from 'core-components/wp-activity/revision/revision-activity.component';
-import { ActivityLinkComponent } from 'core-components/wp-activity/activity-link.component';
-import { WorkPackageActivityTabComponent } from 'core-components/wp-single-view-tabs/activity-panel/activity-tab.component';
-import { OpenprojectAttachmentsModule } from 'core-app/modules/attachments/openproject-attachments.module';
-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 { WorkPackageBreadcrumbComponent } from 'core-components/work-packages/wp-breadcrumb/wp-breadcrumb.component';
-import { WorkPackageSplitViewToolbarComponent } from 'core-components/wp-details/wp-details-toolbar.component';
-import { WorkPackageWatcherButtonComponent } from 'core-components/work-packages/wp-watcher-button/wp-watcher-button.component';
-import { WorkPackageSubjectComponent } from 'core-components/work-packages/wp-subject/wp-subject.component';
-import { WorkPackageRelationsTabComponent } from 'core-components/wp-single-view-tabs/relations-tab/relations-tab.component';
-import { WorkPackageRelationsComponent } from 'core-components/wp-relations/wp-relations.component';
-import { WorkPackageRelationsGroupComponent } from 'core-components/wp-relations/wp-relations-group/wp-relations-group.component';
-import { WorkPackageRelationRowComponent } from 'core-components/wp-relations/wp-relation-row/wp-relation-row.component';
-import { WorkPackageRelationsCreateComponent } from 'core-components/wp-relations/wp-relations-create/wp-relations-create.component';
-import { WorkPackageRelationsHierarchyComponent } from 'core-components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.directive';
-import { WorkPackageCreateButtonComponent } from 'core-components/wp-buttons/wp-create-button/wp-create-button.component';
-import { WorkPackageBreadcrumbParentComponent } from 'core-components/work-packages/wp-breadcrumb/wp-breadcrumb-parent.component';
-import { WorkPackageFilterButtonComponent } from 'core-components/wp-buttons/wp-filter-button/wp-filter-button.component';
-import { WorkPackageFilterContainerComponent } from 'core-components/filters/filter-container/filter-container.directive';
-import { QueryFiltersComponent } from 'core-components/filters/query-filters/query-filters.component';
-import { QueryFilterComponent } from 'core-components/filters/query-filter/query-filter.component';
-import { FilterBooleanValueComponent } from 'core-components/filters/filter-boolean-value/filter-boolean-value.component';
-import { FilterDateValueComponent } from 'core-components/filters/filter-date-value/filter-date-value.component';
-import { FilterDatesValueComponent } from 'core-components/filters/filter-dates-value/filter-dates-value.component';
-import { FilterDateTimeValueComponent } from 'core-components/filters/filter-date-time-value/filter-date-time-value.component';
-import { FilterDateTimesValueComponent } from 'core-components/filters/filter-date-times-value/filter-date-times-value.component';
-import { FilterIntegerValueComponent } from 'core-components/filters/filter-integer-value/filter-integer-value.component';
-import { FilterStringValueComponent } from 'core-components/filters/filter-string-value/filter-string-value.component';
-import { FilterToggledMultiselectValueComponent } from 'core-components/filters/filter-toggled-multiselect-value/filter-toggled-multiselect-value.component';
-import { FilterSearchableMultiselectValueComponent } from 'core-components/filters/filter-searchable-multiselect-value/filter-searchable-multiselect-value.component';
-import { WorkPackageDetailsViewButtonComponent } from 'core-components/wp-buttons/wp-details-view-button/wp-details-view-button.component';
-import { WorkPackageFoldToggleButtonComponent } from 'core-components/wp-buttons/wp-fold-toggle-button/wp-fold-toggle-button.component';
-import { WpTableConfigurationModalComponent } from 'core-components/wp-table/configuration-modal/wp-table-configuration.modal';
-import { WpTableConfigurationColumnsTab } from 'core-components/wp-table/configuration-modal/tabs/columns-tab.component';
-import { WpTableConfigurationDisplaySettingsTab } from 'core-components/wp-table/configuration-modal/tabs/display-settings-tab.component';
-import { WpTableConfigurationFiltersTab } from 'core-components/wp-table/configuration-modal/tabs/filters-tab.component';
-import { WpTableConfigurationSortByTab } from 'core-components/wp-table/configuration-modal/tabs/sort-by-tab.component';
-import { WpTableConfigurationTimelinesTab } from 'core-components/wp-table/configuration-modal/tabs/timelines-tab.component';
-import { WpTableConfigurationHighlightingTab } from 'core-components/wp-table/configuration-modal/tabs/highlighting-tab.component';
-import { WpTableConfigurationRelationSelectorComponent } from "core-components/wp-table/configuration-modal/wp-table-configuration-relation-selector";
-import { WorkPackageWatchersTabComponent } from 'core-components/wp-single-view-tabs/watchers-tab/watchers-tab.component';
-import { WorkPackageWatcherEntryComponent } from 'core-components/wp-single-view-tabs/watchers-tab/wp-watcher-entry.component';
-import { WorkPackageCopyFullViewComponent } from 'core-components/wp-copy/wp-copy-full-view.component';
-import { WorkPackageCopySplitViewComponent } from 'core-components/wp-copy/wp-copy-split-view.component';
-import { WorkPackageTypeStatusComponent } from 'core-components/work-packages/wp-type-status/wp-type-status.component';
-import { WorkPackageNewSplitViewComponent } from 'core-components/wp-new/wp-new-split-view.component';
-import { WorkPackageNewFullViewComponent } from 'core-components/wp-new/wp-new-full-view.component';
-import { WpTableExportModal } from 'core-components/modals/export-modal/wp-table-export.modal';
-import { QuerySharingModal } from 'core-components/modals/share-modal/query-sharing.modal';
-import { SaveQueryModal } from 'core-components/modals/save-modal/save-query.modal';
-import { WpDestroyModal } from 'core-components/modals/wp-destroy-modal/wp-destroy.modal';
-import { QuerySharingForm } from 'core-components/modals/share-modal/query-sharing-form.component';
-import { EmbeddedTablesMacroComponent } from 'core-components/wp-table/embedded/embedded-tables-macro.component';
-import { WpButtonMacroModal } from 'core-components/modals/editor/macro-wp-button-modal/wp-button-macro.modal';
-import { OpenprojectEditorModule } from 'core-app/modules/editor/openproject-editor.module';
-import { WorkPackageTableSumsRowController } from 'core-components/wp-table/wp-table-sums-row/wp-table-sums-row.directive';
-import { ExternalQueryConfigurationComponent } from 'core-components/wp-table/external-configuration/external-query-configuration.component';
-import { ExternalQueryConfigurationService } from 'core-components/wp-table/external-configuration/external-query-configuration.service';
-import { ExternalRelationQueryConfigurationComponent } from "core-components/wp-table/external-configuration/external-relation-query-configuration.component";
-import { ExternalRelationQueryConfigurationService } from "core-components/wp-table/external-configuration/external-relation-query-configuration.service";
-import { WorkPackageStaticQueriesService } from 'core-components/wp-query-select/wp-static-queries.service';
-import { WorkPackagesListInvalidQueryService } from 'core-components/wp-list/wp-list-invalid-query.service';
-import { SchemaCacheService } from 'core-components/schemas/schema-cache.service';
-import { WorkPackageWatchersService } from 'core-components/wp-single-view-tabs/watchers-tab/wp-watchers.service';
-import { WorkPackagesActivityService } from 'core-components/wp-single-view-tabs/activity-panel/wp-activity.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { WorkPackageChildrenQueryComponent } from "core-components/wp-relations/embedded/children/wp-children-query.component";
-import { WpRelationInlineAddExistingComponent } from "core-components/wp-relations/embedded/inline/add-existing/wp-relation-inline-add-existing.component";
-import { WorkPackageRelationQueryComponent } from "core-components/wp-relations/embedded/relations/wp-relation-query.component";
-import { WorkPackagesBaseComponent } from "core-app/modules/work_packages/routing/wp-base/wp--base.component";
-import { WorkPackageSplitViewComponent } from "core-app/modules/work_packages/routing/wp-split-view/wp-split-view.component";
-import { WorkPackagesFullViewComponent } from "core-app/modules/work_packages/routing/wp-full-view/wp-full-view.component";
-import { AttachmentsUploadComponent } from 'core-app/modules/attachments/attachments-upload/attachments-upload.component';
-import { AttachmentListComponent } from 'core-app/modules/attachments/attachment-list/attachment-list.component';
-import { WorkPackageFilterByTextInputComponent } from "core-components/filters/quick-filter-by-text-input/quick-filter-by-text-input.component";
-import { QueryFiltersService } from "core-components/wp-query/query-filters.service";
-import { WorkPackageCardViewComponent } from "core-components/wp-card-view/wp-card-view.component";
-import { WorkPackageIsolatedQuerySpaceDirective } from "core-app/modules/work_packages/query-space/wp-isolated-query-space.directive";
-import { WorkPackageRelationsService } from "core-components/wp-relations/wp-relations.service";
-import { OpenprojectBcfModule } from "core-app/modules/bim/bcf/openproject-bcf.module";
-import { WorkPackageRelationsAutocomplete } from "core-components/wp-relations/wp-relations-create/wp-relations-autocomplete/wp-relations-autocomplete.component";
-import { CustomDateActionAdminComponent } from 'core-components/wp-custom-actions/date-action/custom-date-action-admin.component';
-import { WorkPackagesTableConfigMenu } from "core-components/wp-table/config-menu/config-menu.component";
-import { WorkPackageIsolatedGraphQuerySpaceDirective } from "core-app/modules/work_packages/query-space/wp-isolated-graph-query-space.directive";
-import { WorkPackageViewToggleButton } from "core-components/wp-buttons/wp-view-toggle-button/work-package-view-toggle-button.component";
-import { WorkPackagesGridComponent } from "core-components/wp-grid/wp-grid.component";
-import { WorkPackageViewDropdownMenuDirective } from "core-components/op-context-menu/handlers/wp-view-dropdown-menu.directive";
-import { HalEventsService } from "core-app/modules/hal/services/hal-events.service";
-import { OpenprojectProjectsModule } from "core-app/modules/projects/openproject-projects.module";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { WorkPackageEditActionsBarComponent } from "core-app/modules/common/edit-actions-bar/wp-edit-actions-bar.component";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { WorkPackageChangeset } from "core-components/wp-edit/work-package-changeset";
-import { WorkPackageSingleCardComponent } from "core-components/wp-card-view/wp-single-card/wp-single-card.component";
-import { TimeEntryChangeset } from 'core-app/components/time-entries/time-entry-changeset';
-import { WorkPackageListViewComponent } from "core-app/modules/work_packages/routing/wp-list-view/wp-list-view.component";
-import { PartitionedQuerySpacePageComponent } from "core-app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component";
-import { WorkPackageViewPageComponent } from "core-app/modules/work_packages/routing/wp-view-page/wp-view-page.component";
-import { WorkPackageSettingsButtonComponent } from "core-components/wp-buttons/wp-settings-button/wp-settings-button.component";
-import { BackButtonComponent } from "core-app/modules/common/back-routing/back-button.component";
-import { DatePickerModal } from "core-components/datepicker/datepicker.modal";
-import { WorkPackagesTableComponent } from "core-components/wp-table/wp-table.component";
-import { WorkPackageGroupToggleDropdownMenuDirective } from "core-components/op-context-menu/handlers/wp-group-toggle-dropdown-menu.directive";
-import { OpenprojectAutocompleterModule } from "core-app/modules/autocompleter/openproject-autocompleter.module";
-import { OpWpTabsModule } from "core-components/wp-tabs/wp-tabs.module";
-import { EditFieldControlsModule } from "core-app/modules/fields/edit/field-controls/edit-field-controls.module";
-import { OpenprojectTabsModule } from "core-app/modules/common/tabs/openproject-tabs.module";
-
-
-@NgModule({
- imports: [
- // Commons
- OpenprojectCommonModule,
- // Display + Edit field functionality
- OpenprojectFieldsModule,
- // CKEditor
- OpenprojectEditorModule,
-
- OpenprojectAttachmentsModule,
-
- OpenprojectBcfModule,
-
- OpenprojectProjectsModule,
-
- OpenprojectModalModule,
-
- OpenprojectAutocompleterModule,
-
- OpWpTabsModule,
-
- EditFieldControlsModule,
- OpenprojectTabsModule,
- ],
- providers: [
- // Notification service
- WorkPackageNotificationService,
-
- // External query configuration
- ExternalQueryConfigurationService,
- ExternalRelationQueryConfigurationService,
-
- // Global work package states / services
- SchemaCacheService,
-
- // Global query/table state services
- // For any service that depends on the isolated query space,
- // they should be provided in wp-isolated-query-space.directive instead
- QueryFiltersService,
- WorkPackageStaticQueriesService,
- WorkPackagesListInvalidQueryService,
-
- // Provide a separate service for creation events of WP Inline create
- // This can be hierarchically injected to provide isolated events on an embedded table
- WorkPackageRelationsService,
-
- WorkPackagesActivityService,
- WorkPackageRelationsService,
- WorkPackageWatchersService,
-
- HalEventsService,
- ],
- declarations: [
- // Routing
- WorkPackagesBaseComponent,
- PartitionedQuerySpacePageComponent,
- WorkPackageViewPageComponent,
-
- // WP list side
- WorkPackageListViewComponent,
- WorkPackageSettingsButtonComponent,
-
- // Query injector isolation
- WorkPackageIsolatedQuerySpaceDirective,
- WorkPackageIsolatedGraphQuerySpaceDirective,
-
- // WP New
- WorkPackageNewFullViewComponent,
- WorkPackageNewSplitViewComponent,
- WorkPackageTypeStatusComponent,
- WorkPackageEditActionsBarComponent,
-
- // WP Copy
- WorkPackageCopyFullViewComponent,
- WorkPackageCopySplitViewComponent,
-
- // Embedded table
- WorkPackageEmbeddedTableComponent,
- WorkPackageEmbeddedTableEntryComponent,
-
- // External query configuration
- ExternalQueryConfigurationComponent,
- ExternalRelationQueryConfigurationComponent,
-
- // Inline create
- WorkPackageInlineCreateComponent,
- WpRelationInlineAddExistingComponent,
-
- WorkPackagesGridComponent,
-
- WorkPackagesTableComponent,
- WorkPackagesTableConfigMenu,
- WorkPackageTablePaginationComponent,
-
- WpResizerDirective,
-
- WorkPackageTableSumsRowController,
-
- // Fold/Unfold button on wp list
- WorkPackageFoldToggleButtonComponent,
-
- // Filters
- QueryFiltersComponent,
- QueryFilterComponent,
- FilterBooleanValueComponent,
- FilterDateValueComponent,
- FilterDatesValueComponent,
- FilterDateTimeValueComponent,
- FilterDateTimesValueComponent,
- FilterIntegerValueComponent,
- FilterStringValueComponent,
- FilterToggledMultiselectValueComponent,
- FilterSearchableMultiselectValueComponent,
-
- WorkPackageFilterContainerComponent,
- WorkPackageFilterButtonComponent,
-
- // Context menus
- OpTypesContextMenuDirective,
- OpColumnsContextMenu,
- OpSettingsMenuDirective,
- WorkPackageStatusDropdownDirective,
- WorkPackageCreateSettingsMenuDirective,
- WorkPackageSingleContextMenuDirective,
- WorkPackageQuerySelectDropdownComponent,
- WorkPackageViewDropdownMenuDirective,
- WorkPackageGroupToggleDropdownMenuDirective,
-
- // Timeline
- WorkPackageTimelineButtonComponent,
- WorkPackageTimelineHeaderController,
- WorkPackageTableTimelineRelations,
- WorkPackageTableTimelineStaticElements,
- WorkPackageTableTimelineGrid,
- WorkPackageTimelineTableController,
-
- WorkPackageCreateButtonComponent,
- WorkPackageFilterByTextInputComponent,
-
- // Single view
- WorkPackageOverviewTabComponent,
- WorkPackageSingleViewComponent,
- WorkPackageStatusButtonComponent,
- WorkPackageReplacementLabelComponent,
- UserLinkComponent,
- WorkPackageChildrenQueryComponent,
- WorkPackageRelationQueryComponent,
- WorkPackageFormAttributeGroupComponent,
- BackButtonComponent,
-
- // Activity Tab
- NewestActivityOnOverviewComponent,
- WorkPackageCommentComponent,
- WorkPackageCommentFieldComponent,
- ActivityEntryComponent,
- UserActivityComponent,
- RevisionActivityComponent,
- ActivityLinkComponent,
- WorkPackageActivityTabComponent,
-
- // Watchers wp-tab-wrapper
- WorkPackageWatchersTabComponent,
- WorkPackageWatcherEntryComponent,
-
- // Relations
- WorkPackageRelationsTabComponent,
- WorkPackageRelationsComponent,
- WorkPackageRelationsGroupComponent,
- WorkPackageRelationRowComponent,
- WorkPackageRelationsCreateComponent,
- WorkPackageRelationsHierarchyComponent,
- WorkPackageRelationsAutocomplete,
- WorkPackageBreadcrumbParentComponent,
-
-
- // Split view
- WorkPackageDetailsViewButtonComponent,
- WorkPackageSplitViewComponent,
- WorkPackageBreadcrumbComponent,
- WorkPackageSplitViewToolbarComponent,
- WorkPackageWatcherButtonComponent,
- WorkPackageSubjectComponent,
-
- // Full view
- WorkPackagesFullViewComponent,
-
- // Modals
- WpTableConfigurationModalComponent,
- WpTableConfigurationColumnsTab,
- WpTableConfigurationDisplaySettingsTab,
- WpTableConfigurationFiltersTab,
- WpTableConfigurationSortByTab,
- WpTableConfigurationTimelinesTab,
- WpTableConfigurationHighlightingTab,
- WpTableConfigurationRelationSelectorComponent,
- WpTableExportModal,
- QuerySharingForm,
- QuerySharingModal,
- SaveQueryModal,
- WpDestroyModal,
- DatePickerModal,
-
- // CustomActions
- WpCustomActionComponent,
- WpCustomActionsComponent,
- CustomDateActionAdminComponent,
-
- // CKEditor macros which could not be included in the
- // editor module to avoid circular dependencies
- EmbeddedTablesMacroComponent,
- WpButtonMacroModal,
-
- // Card view
- WorkPackageCardViewComponent,
- WorkPackageSingleCardComponent,
- WorkPackageViewToggleButton,
-
-
- ],
- exports: [
- WorkPackagesTableComponent,
- WorkPackageTablePaginationComponent,
- WorkPackageEmbeddedTableComponent,
- WorkPackageEmbeddedTableEntryComponent,
- WorkPackageCardViewComponent,
- WorkPackageSingleCardComponent,
- WorkPackageFilterButtonComponent,
- WorkPackageFilterContainerComponent,
- WorkPackageIsolatedQuerySpaceDirective,
- WorkPackageIsolatedGraphQuerySpaceDirective,
- QueryFiltersComponent,
-
- WpResizerDirective,
- WorkPackageBreadcrumbComponent,
- WorkPackageBreadcrumbParentComponent,
- WorkPackageSplitViewToolbarComponent,
- WorkPackageSubjectComponent,
- WorkPackagesGridComponent,
-
- // Modals
- WpTableConfigurationModalComponent,
- WpTableConfigurationFiltersTab,
-
- // Needed so that e.g. IFC can access it.
- WorkPackageCreateButtonComponent,
- WorkPackageTypeStatusComponent,
- WorkPackageEditActionsBarComponent,
- WorkPackageSingleViewComponent,
- WorkPackageSplitViewComponent,
- BackButtonComponent,
- ]
-})
-export class OpenprojectWorkPackagesModule {
- static bootstrapAttributeGroupsCalled = false;
-
- constructor(injector:Injector) {
- OpenprojectWorkPackagesModule.bootstrapAttributeGroups(injector);
- }
-
- // The static property prevents running the function
- // multiple times. This happens e.g. when the module is included
- // into a plugin's module.
- public static bootstrapAttributeGroups(injector:Injector):void {
- if (this.bootstrapAttributeGroupsCalled) {
- return;
- }
-
- this.bootstrapAttributeGroupsCalled = true;
-
- const hookService = injector.get(HookService);
-
- hookService.register('attributeGroupComponent', (group:GroupDescriptor, workPackage:WorkPackageResource) => {
- if (group.type === 'WorkPackageFormAttributeGroup') {
- return WorkPackageFormAttributeGroupComponent;
- } else if (!workPackage.isNew && group.type === 'WorkPackageFormChildrenQueryGroup') {
- return WorkPackageChildrenQueryComponent;
- } else if (!workPackage.isNew && group.type === 'WorkPackageFormRelationQueryGroup') {
- return WorkPackageRelationQueryComponent;
- } else {
- return null;
- }
- });
-
- hookService.register('workPackageAttachmentUploadComponent', (workPackage:WorkPackageResource) => {
- return AttachmentsUploadComponent;
- });
-
- hookService.register('workPackageAttachmentListComponent', (workPackage:WorkPackageResource) => {
- return AttachmentListComponent;
- });
-
- /** Return specialized work package changeset for editing service */
- hookService.register('halResourceChangesetClass', (resource:HalResource) => {
- switch (resource._type) {
- case 'WorkPackage':
- return WorkPackageChangeset;
- case 'TimeEntry':
- return TimeEntryChangeset;
- default:
- return null;
- }
- });
- }
-}
diff --git a/frontend/src/app/modules/work_packages/query-space/wp-isolated-graph-query-space.directive.ts b/frontend/src/app/modules/work_packages/query-space/wp-isolated-graph-query-space.directive.ts
deleted file mode 100644
index 2df547b2f19..00000000000
--- a/frontend/src/app/modules/work_packages/query-space/wp-isolated-graph-query-space.directive.ts
+++ /dev/null
@@ -1,118 +0,0 @@
-//-- copyright
-// OpenProject is an open source project management software.
-// Copyright (C) 2012-2021 the OpenProject GmbH
-//
-// 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 docs/COPYRIGHT.rdoc for more details.
-//++
-
-import { Directive } from '@angular/core';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { OpTableActionsService } from "core-components/wp-table/table-actions/table-actions.service";
-import { WorkPackageViewRelationColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
-import { WorkPackageViewPaginationService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-pagination.service";
-import { WorkPackageViewGroupByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-group-by.service";
-import { WorkPackageViewHierarchiesService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
-import { WorkPackageViewSortByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
-import { WorkPackageViewColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service";
-import { WorkPackageViewFiltersService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service";
-import { WorkPackageViewTimelineService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service";
-import { WorkPackageViewSelectionService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
-import { WorkPackageViewSumService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sum.service";
-import { WorkPackageViewAdditionalElementsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-additional-elements.service";
-import { WorkPackageViewHighlightingService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-highlighting.service";
-import { WorkPackageCreateService } from "core-components/wp-new/wp-create.service";
-import { WorkPackageStatesInitializationService } from "core-components/wp-list/wp-states-initialization.service";
-import { WorkPackageViewFocusService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service";
-
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { WorkPackagesListService } from "core-components/wp-list/wp-list.service";
-import { WorkPackageService } from "core-components/work-packages/work-package.service";
-import { WorkPackageRelationsHierarchyService } from "core-components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";
-import { WorkPackageFiltersService } from "core-components/filters/wp-filters/wp-filters.service";
-import { WorkPackageContextMenuHelperService } from "core-components/wp-table/context-menu-helper/wp-context-menu-helper.service";
-import { WorkPackageInlineCreateService } from "core-components/wp-inline-create/wp-inline-create.service";
-import { WpChildrenInlineCreateService } from "core-components/wp-relations/embedded/children/wp-children-inline-create.service";
-import { WpRelationInlineCreateService } from "core-components/wp-relations/embedded/relations/wp-relation-inline-create.service";
-import { WorkPackagesListChecksumService } from "core-components/wp-list/wp-list-checksum.service";
-import { TableDragActionsRegistryService } from "core-components/wp-table/drag-and-drop/actions/table-drag-actions-registry.service";
-import { IsolatedGraphQuerySpace } from "core-app/modules/work_packages/query-space/isolated-graph-query-space";
-import { WorkPackageIsolatedQuerySpaceDirective } from "core-app/modules/work_packages/query-space/wp-isolated-query-space.directive";
-import { WorkPackageViewHierarchyIdentationService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service";
-
-export const WpIsolatedGraphQuerySpaceProviders = [
- // Open the isolated space first, order is important here
- { provide: IsolatedQuerySpace, useClass: IsolatedGraphQuerySpace },
- OpTableActionsService,
-
- // Work package table services
- WorkPackagesListChecksumService,
- WorkPackagesListService,
- WorkPackageViewRelationColumnsService,
- WorkPackageViewPaginationService,
- WorkPackageViewGroupByService,
- WorkPackageViewHierarchiesService,
- WorkPackageViewSortByService,
- WorkPackageViewColumnsService,
- WorkPackageViewFiltersService,
- WorkPackageViewTimelineService,
- WorkPackageViewSelectionService,
- WorkPackageViewSumService,
- WorkPackageViewAdditionalElementsService,
- WorkPackageViewFocusService,
- WorkPackageViewHighlightingService,
- WorkPackageService,
- WorkPackageViewHierarchyIdentationService,
- WorkPackageRelationsHierarchyService,
- WorkPackageFiltersService,
- WorkPackageContextMenuHelperService,
-
- // Provide a separate service for creation events of WP Inline create
- // This can be hierarchically injected to provide isolated events on an embedded table
- WorkPackageInlineCreateService,
- WpChildrenInlineCreateService,
- WpRelationInlineCreateService,
-
- HalResourceEditingService,
- WorkPackageCreateService,
-
- WorkPackageStatesInitializationService,
-
- // Table Drag & Drop actions
- TableDragActionsRegistryService,
-];
-
-
-/**
- * Directive to open a work package query 'space', an isolated injector hierarchy
- * that provides access to query-bound data and services, especially around the querySpace services.
- *
- * If you add services that depend on a table state, they should be provided here, not globally
- * in a module.
- */
-@Directive({
- selector: '[wp-isolated-graph-query-space]',
- providers: WpIsolatedGraphQuerySpaceProviders
-})
-export class WorkPackageIsolatedGraphQuerySpaceDirective extends WorkPackageIsolatedQuerySpaceDirective {
-}
diff --git a/frontend/src/app/modules/work_packages/query-space/wp-isolated-query-space.directive.ts b/frontend/src/app/modules/work_packages/query-space/wp-isolated-query-space.directive.ts
deleted file mode 100644
index 66f6c2de9de..00000000000
--- a/frontend/src/app/modules/work_packages/query-space/wp-isolated-query-space.directive.ts
+++ /dev/null
@@ -1,139 +0,0 @@
-//-- copyright
-// OpenProject is an open source project management software.
-// Copyright (C) 2012-2021 the OpenProject GmbH
-//
-// 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 docs/COPYRIGHT.rdoc for more details.
-//++
-
-import { Directive, ElementRef, Injector } from '@angular/core';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { OpTableActionsService } from "core-components/wp-table/table-actions/table-actions.service";
-import { WorkPackageViewRelationColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-relation-columns.service";
-import { WorkPackageViewPaginationService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-pagination.service";
-import { WorkPackageViewGroupByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-group-by.service";
-import { WorkPackageViewHierarchiesService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service";
-import { WorkPackageViewSortByService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sort-by.service";
-import { WorkPackageViewColumnsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service";
-import { WorkPackageViewFiltersService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service";
-import { WorkPackageViewTimelineService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service";
-import { WorkPackageViewSelectionService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
-import { WorkPackageViewSumService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sum.service";
-import { WorkPackageViewAdditionalElementsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-additional-elements.service";
-import { WorkPackageViewHighlightingService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-highlighting.service";
-import { WorkPackageCreateService } from "core-components/wp-new/wp-create.service";
-import { WorkPackageStatesInitializationService } from "core-components/wp-list/wp-states-initialization.service";
-import { WorkPackageViewFocusService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service";
-
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { WorkPackagesListService } from "core-components/wp-list/wp-list.service";
-import { WorkPackageService } from "core-components/work-packages/work-package.service";
-import { WorkPackageRelationsHierarchyService } from "core-components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";
-import { WorkPackageFiltersService } from "core-components/filters/wp-filters/wp-filters.service";
-import { WorkPackageContextMenuHelperService } from "core-components/wp-table/context-menu-helper/wp-context-menu-helper.service";
-import { WorkPackageInlineCreateService } from "core-components/wp-inline-create/wp-inline-create.service";
-import { WpChildrenInlineCreateService } from "core-components/wp-relations/embedded/children/wp-children-inline-create.service";
-import { WpRelationInlineCreateService } from "core-components/wp-relations/embedded/relations/wp-relation-inline-create.service";
-import { WorkPackagesListChecksumService } from "core-components/wp-list/wp-list-checksum.service";
-import { debugLog } from "core-app/helpers/debug_output";
-import { TableDragActionsRegistryService } from "core-components/wp-table/drag-and-drop/actions/table-drag-actions-registry.service";
-import { WorkPackageViewOrderService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-order.service";
-import { CausedUpdatesService } from "core-app/modules/boards/board/caused-updates/caused-updates.service";
-import { WorkPackageCardViewService } from "core-components/wp-card-view/services/wp-card-view.service";
-import { WorkPackageViewDisplayRepresentationService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
-import { WorkPackageViewHierarchyIdentationService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { TimeEntryCreateService } from "core-app/modules/time_entries/create/create.service";
-import { WorkPackageViewCollapsedGroupsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service";
-
-/**
- * Directive to open a work package query 'space', an isolated injector hierarchy
- * that provides access to query-bound data and services, especially around the querySpace services.
- *
- * If you add services that depend on a table state, they should be provided here, not globally
- * in a module.
- */
-@Directive({
- selector: '[wp-isolated-query-space]',
- providers: [
- // Override the hal notification service
- { provide: HalResourceNotificationService, useExisting: WorkPackageNotificationService },
-
- // Open the isolated space first, order is important here
- IsolatedQuerySpace,
- OpTableActionsService,
-
- // Work package table services
- WorkPackagesListChecksumService,
- WorkPackagesListService,
- WorkPackageViewRelationColumnsService,
- WorkPackageViewPaginationService,
- WorkPackageViewGroupByService,
- WorkPackageViewCollapsedGroupsService,
- WorkPackageViewHierarchiesService,
- WorkPackageViewSortByService,
- WorkPackageViewColumnsService,
- WorkPackageViewFiltersService,
- WorkPackageViewTimelineService,
- WorkPackageViewSelectionService,
- WorkPackageViewSumService,
- WorkPackageViewAdditionalElementsService,
- WorkPackageViewFocusService,
- WorkPackageViewHighlightingService,
- WorkPackageViewDisplayRepresentationService,
- WorkPackageViewOrderService,
- WorkPackageViewHierarchyIdentationService,
- CausedUpdatesService,
-
- WorkPackageService,
- WorkPackageRelationsHierarchyService,
- WorkPackageFiltersService,
- WorkPackageContextMenuHelperService,
-
- // Provide a separate service for creation events of WP Inline create
- // This can be hierarchically injected to provide isolated events on an embedded table
- WorkPackageInlineCreateService,
- WpChildrenInlineCreateService,
- WpRelationInlineCreateService,
-
- WorkPackageCardViewService,
-
- HalResourceEditingService,
- TimeEntryCreateService,
- WorkPackageCreateService,
-
- WorkPackageStatesInitializationService,
-
- // Table Drag & Drop actions
- TableDragActionsRegistryService,
- ]
-})
-export class WorkPackageIsolatedQuerySpaceDirective {
-
- constructor(private elementRef:ElementRef,
- public querySpace:IsolatedQuerySpace,
- private injector:Injector) {
- debugLog("Opening isolated query space %O in %O", injector, elementRef.nativeElement);
- }
-}
diff --git a/frontend/src/app/modules/attachments/attachment-list/attachment-list-item.component.ts b/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.component.ts
similarity index 90%
rename from frontend/src/app/modules/attachments/attachment-list/attachment-list-item.component.ts
rename to frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.component.ts
index 299653d8a6d..b830c5762f3 100644
--- a/frontend/src/app/modules/attachments/attachment-list/attachment-list-item.component.ts
+++ b/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.component.ts
@@ -27,11 +27,11 @@
//++
import { Component, EventEmitter, Input, Output } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { States } from 'core-components/states.service';
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { States } from 'core-app/core/states/states.service';
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
@Component({
selector: 'attachment-list-item',
diff --git a/frontend/src/app/modules/attachments/attachment-list/attachment-list-item.html b/frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.html
similarity index 100%
rename from frontend/src/app/modules/attachments/attachment-list/attachment-list-item.html
rename to frontend/src/app/shared/components/attachments/attachment-list/attachment-list-item.html
diff --git a/frontend/src/app/modules/attachments/attachment-list/attachment-list.component.ts b/frontend/src/app/shared/components/attachments/attachment-list/attachment-list.component.ts
similarity index 90%
rename from frontend/src/app/modules/attachments/attachment-list/attachment-list.component.ts
rename to frontend/src/app/shared/components/attachments/attachment-list/attachment-list.component.ts
index 159e9bb80bd..2648e6f6809 100644
--- a/frontend/src/app/modules/attachments/attachment-list/attachment-list.component.ts
+++ b/frontend/src/app/shared/components/attachments/attachment-list/attachment-list.component.ts
@@ -27,12 +27,12 @@
//++
import { ChangeDetectorRef, Component, ElementRef, Input, OnInit } from '@angular/core';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
import { filter } from "rxjs/operators";
-import { States } from "core-components/states.service";
-import { AngularTrackingHelpers } from "core-components/angular/tracking-functions";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { States } from "core-app/core/states/states.service";
+import { AngularTrackingHelpers } from "core-app/shared/helpers/angular/tracking-functions";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
@Component({
selector: 'attachment-list',
diff --git a/frontend/src/app/modules/attachments/attachment-list/attachment-list.html b/frontend/src/app/shared/components/attachments/attachment-list/attachment-list.html
similarity index 100%
rename from frontend/src/app/modules/attachments/attachment-list/attachment-list.html
rename to frontend/src/app/shared/components/attachments/attachment-list/attachment-list.html
diff --git a/frontend/src/app/modules/attachments/attachments-upload/attachments-upload.component.ts b/frontend/src/app/shared/components/attachments/attachments-upload/attachments-upload.component.ts
similarity index 90%
rename from frontend/src/app/modules/attachments/attachments-upload/attachments-upload.component.ts
rename to frontend/src/app/shared/components/attachments/attachments-upload/attachments-upload.component.ts
index 6e439d96f6e..1af2cd1104a 100644
--- a/frontend/src/app/modules/attachments/attachments-upload/attachments-upload.component.ts
+++ b/frontend/src/app/shared/components/attachments/attachments-upload/attachments-upload.component.ts
@@ -26,14 +26,13 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
import { Component, ElementRef, Input, ViewChild , OnInit } from '@angular/core';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
-
-import { UploadFile } from "core-components/api/op-file-upload/op-file-upload.service";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { UploadFile } from "core-app/core/file-upload/op-file-upload.service";
@Component({
selector: 'attachments-upload',
diff --git a/frontend/src/app/modules/attachments/attachments-upload/attachments-upload.html b/frontend/src/app/shared/components/attachments/attachments-upload/attachments-upload.html
similarity index 100%
rename from frontend/src/app/modules/attachments/attachments-upload/attachments-upload.html
rename to frontend/src/app/shared/components/attachments/attachments-upload/attachments-upload.html
diff --git a/frontend/src/app/modules/attachments/attachments.component.ts b/frontend/src/app/shared/components/attachments/attachments.component.ts
similarity index 89%
rename from frontend/src/app/modules/attachments/attachments.component.ts
rename to frontend/src/app/shared/components/attachments/attachments.component.ts
index 5464907545f..cb67f7cf470 100644
--- a/frontend/src/app/modules/attachments/attachments.component.ts
+++ b/frontend/src/app/shared/components/attachments/attachments.component.ts
@@ -27,12 +27,12 @@
//++
import { Component, ElementRef, Input, OnInit } from '@angular/core';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { States } from 'core-components/states.service';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { States } from 'core-app/core/states/states.service';
import { filter } from 'rxjs/operators';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
export const attachmentsSelector = 'attachments';
diff --git a/frontend/src/app/modules/attachments/attachments.html b/frontend/src/app/shared/components/attachments/attachments.html
similarity index 100%
rename from frontend/src/app/modules/attachments/attachments.html
rename to frontend/src/app/shared/components/attachments/attachments.html
diff --git a/frontend/src/app/modules/attachments/authoring/authoring.component.html b/frontend/src/app/shared/components/attachments/authoring/authoring.component.html
similarity index 100%
rename from frontend/src/app/modules/attachments/authoring/authoring.component.html
rename to frontend/src/app/shared/components/attachments/authoring/authoring.component.html
diff --git a/frontend/src/app/modules/attachments/authoring/authoring.component.sass b/frontend/src/app/shared/components/attachments/authoring/authoring.component.sass
similarity index 100%
rename from frontend/src/app/modules/attachments/authoring/authoring.component.sass
rename to frontend/src/app/shared/components/attachments/authoring/authoring.component.sass
diff --git a/frontend/src/app/modules/attachments/authoring/authoring.component.ts b/frontend/src/app/shared/components/attachments/authoring/authoring.component.ts
similarity index 88%
rename from frontend/src/app/modules/attachments/authoring/authoring.component.ts
rename to frontend/src/app/shared/components/attachments/authoring/authoring.component.ts
index dec5bf2637b..3ab08ba68f8 100644
--- a/frontend/src/app/modules/attachments/authoring/authoring.component.ts
+++ b/frontend/src/app/shared/components/attachments/authoring/authoring.component.ts
@@ -27,10 +27,10 @@
//++
import { Component, Input, OnInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { TimezoneService } from 'core-components/datetime/timezone.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
@Component({
templateUrl: './authoring.component.html',
diff --git a/frontend/src/app/modules/attachments/openproject-attachments.module.ts b/frontend/src/app/shared/components/attachments/openproject-attachments.module.ts
similarity index 92%
rename from frontend/src/app/modules/attachments/openproject-attachments.module.ts
rename to frontend/src/app/shared/components/attachments/openproject-attachments.module.ts
index 5656dcf033b..c51edfc6fbe 100644
--- a/frontend/src/app/modules/attachments/openproject-attachments.module.ts
+++ b/frontend/src/app/shared/components/attachments/openproject-attachments.module.ts
@@ -29,8 +29,8 @@
import { NgModule } from '@angular/core';
import { CommonModule } from "@angular/common";
-import { IconModule } from 'core-app/modules/icon/icon.module';
-import { OpenprojectAccessibilityModule } from 'core-app/modules/a11y/openproject-a11y.module';
+import { IconModule } from 'core-app/shared/components/icon/icon.module';
+import { OpenprojectAccessibilityModule } from 'core-app/shared/directives/a11y/openproject-a11y.module';
import { AttachmentsComponent } from "./attachments.component";
import { AttachmentListComponent } from "./attachment-list/attachment-list.component";
diff --git a/frontend/src/app/modules/attribute-help-texts/attribute-help-text.component.html b/frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.html
similarity index 100%
rename from frontend/src/app/modules/attribute-help-texts/attribute-help-text.component.html
rename to frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.html
diff --git a/frontend/src/app/modules/attribute-help-texts/attribute-help-text.component.ts b/frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.ts
similarity index 96%
rename from frontend/src/app/modules/attribute-help-texts/attribute-help-text.component.ts
rename to frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.ts
index 01955fc5a49..08708ed7163 100644
--- a/frontend/src/app/modules/attribute-help-texts/attribute-help-text.component.ts
+++ b/frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.component.ts
@@ -35,8 +35,8 @@ import {
Input,
OnInit
} from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { OpModalService } from 'core-app/modules/modal/modal.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { OpModalService } from 'core-app/shared/components/modal/modal.service';
import { AttributeHelpTextsService } from './attribute-help-text.service';
import { AttributeHelpTextModal } from "./attribute-help-text.modal";
diff --git a/frontend/src/app/modules/attribute-help-texts/attribute-help-text.modal.ts b/frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.modal.ts
similarity index 85%
rename from frontend/src/app/modules/attribute-help-texts/attribute-help-text.modal.ts
rename to frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.modal.ts
index 90c1d1c398d..0c06796d972 100644
--- a/frontend/src/app/modules/attribute-help-texts/attribute-help-text.modal.ts
+++ b/frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.modal.ts
@@ -27,11 +27,11 @@
//++
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, OnInit } from '@angular/core';
-import { OpModalComponent } from 'core-app/modules/modal/modal.component';
-import { OpModalLocalsMap } from 'core-app/modules/modal/modal.types';
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { HelpTextResource } from 'core-app/modules/hal/resources/help-text-resource';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { OpModalComponent } from 'core-app/shared/components/modal/modal.component';
+import { OpModalLocalsMap } from 'core-app/shared/components/modal/modal.types';
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { HelpTextResource } from "core-app/features/hal/resources/help-text-resource";
@Component({
templateUrl: './help-text.modal.html',
diff --git a/frontend/src/app/modules/attribute-help-texts/attribute-help-text.module.ts b/frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.module.ts
similarity index 60%
rename from frontend/src/app/modules/attribute-help-texts/attribute-help-text.module.ts
rename to frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.module.ts
index 7991a2d1baa..c1bcfebcfc7 100644
--- a/frontend/src/app/modules/attribute-help-texts/attribute-help-text.module.ts
+++ b/frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.module.ts
@@ -1,9 +1,9 @@
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
-import { OpenprojectModalModule } from "core-app/modules/modal/modal.module";
-import { OpenprojectAttachmentsModule } from "core-app/modules/attachments/openproject-attachments.module";
-import { OpenprojectAccessibilityModule } from "core-app/modules/a11y/openproject-a11y.module";
-import { IconModule } from "core-app/modules/icon/icon.module";
+import { OpenprojectModalModule } from "core-app/shared/components/modal/modal.module";
+import { OpenprojectAttachmentsModule } from "core-app/shared/components/attachments/openproject-attachments.module";
+import { OpenprojectAccessibilityModule } from "core-app/shared/directives/a11y/openproject-a11y.module";
+import { IconModule } from "core-app/shared/components/icon/icon.module";
import { AttributeHelpTextComponent } from "./attribute-help-text.component";
import { AttributeHelpTextModal } from "./attribute-help-text.modal";
diff --git a/frontend/src/app/modules/attribute-help-texts/attribute-help-text.service.ts b/frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.service.ts
similarity index 82%
rename from frontend/src/app/modules/attribute-help-texts/attribute-help-text.service.ts
rename to frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.service.ts
index bdadbb94a2a..03c11ec137a 100644
--- a/frontend/src/app/modules/attribute-help-texts/attribute-help-text.service.ts
+++ b/frontend/src/app/shared/components/attribute-help-texts/attribute-help-text.service.ts
@@ -27,16 +27,11 @@
//++
import { input } from 'reactivestates';
-import { HelpTextResource } from 'core-app/modules/hal/resources/help-text-resource';
import { Injectable } from '@angular/core';
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { Observable } from "rxjs";
-import { APIv3ResourceCollection } from "core-app/modules/apiv3/paths/apiv3-resource";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { take } from "rxjs/operators";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { HelpTextResource } from "core-app/features/hal/resources/help-text-resource";
@Injectable({ providedIn: 'root' })
export class AttributeHelpTextsService {
diff --git a/frontend/src/app/modules/attribute-help-texts/help-text.modal.html b/frontend/src/app/shared/components/attribute-help-texts/help-text.modal.html
similarity index 100%
rename from frontend/src/app/modules/attribute-help-texts/help-text.modal.html
rename to frontend/src/app/shared/components/attribute-help-texts/help-text.modal.html
diff --git a/frontend/src/app/modules/autocompleter/autocomplete-select-decoration/autocomplete-select-decoration.component.ts b/frontend/src/app/shared/components/autocompleter/autocomplete-select-decoration/autocomplete-select-decoration.component.ts
similarity index 100%
rename from frontend/src/app/modules/autocompleter/autocomplete-select-decoration/autocomplete-select-decoration.component.ts
rename to frontend/src/app/shared/components/autocompleter/autocomplete-select-decoration/autocomplete-select-decoration.component.ts
diff --git a/frontend/src/app/modules/autocompleter/op-autocompleter/directives/op-autocompleter-footer-template.directive.ts b/frontend/src/app/shared/components/autocompleter/autocompleter-footer-template/op-autocompleter-footer-template.directive.ts
similarity index 100%
rename from frontend/src/app/modules/autocompleter/op-autocompleter/directives/op-autocompleter-footer-template.directive.ts
rename to frontend/src/app/shared/components/autocompleter/autocompleter-footer-template/op-autocompleter-footer-template.directive.ts
diff --git a/frontend/src/app/modules/autocompleter/create-autocompleter/create-autocompleter.component.html b/frontend/src/app/shared/components/autocompleter/create-autocompleter/create-autocompleter.component.html
similarity index 100%
rename from frontend/src/app/modules/autocompleter/create-autocompleter/create-autocompleter.component.html
rename to frontend/src/app/shared/components/autocompleter/create-autocompleter/create-autocompleter.component.html
diff --git a/frontend/src/app/modules/autocompleter/create-autocompleter/create-autocompleter.component.sass b/frontend/src/app/shared/components/autocompleter/create-autocompleter/create-autocompleter.component.sass
similarity index 100%
rename from frontend/src/app/modules/autocompleter/create-autocompleter/create-autocompleter.component.sass
rename to frontend/src/app/shared/components/autocompleter/create-autocompleter/create-autocompleter.component.sass
diff --git a/frontend/src/app/modules/autocompleter/create-autocompleter/create-autocompleter.component.ts b/frontend/src/app/shared/components/autocompleter/create-autocompleter/create-autocompleter.component.ts
similarity index 85%
rename from frontend/src/app/modules/autocompleter/create-autocompleter/create-autocompleter.component.ts
rename to frontend/src/app/shared/components/autocompleter/create-autocompleter/create-autocompleter.component.ts
index 2bba7c52413..298ab5b640e 100644
--- a/frontend/src/app/modules/autocompleter/create-autocompleter/create-autocompleter.component.ts
+++ b/frontend/src/app/shared/components/autocompleter/create-autocompleter/create-autocompleter.component.ts
@@ -37,18 +37,17 @@ import {
Injector,
} from '@angular/core';
import { NgSelectComponent } from "@ng-select/ng-select";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { InviteUserModalComponent } from "core-app/modules/invite-user-modal/invite-user.component";
-import { OpInviteUserModalService } from "core-app/modules/invite-user-modal/invite-user-modal.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { OpInviteUserModalService } from "core-app/features/invite-user-modal/invite-user-modal.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { AddTagFn } from "@ng-select/ng-select/lib/ng-select.component";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
import { Subject } from 'rxjs';
-import { PrincipalHelper } from "core-app/modules/principal/principal-helper";
-import { AngularTrackingHelpers } from "core-components/angular/tracking-functions";
+import { PrincipalHelper } from "core-app/shared/components/principal/principal-helper";
+import { AngularTrackingHelpers } from "core-app/shared/helpers/angular/tracking-functions";
import { filter } from "rxjs/operators";
export interface CreateAutocompleterValueOption {
diff --git a/frontend/src/app/modules/common/draggable-autocomplete/draggable-autocomplete.component.html b/frontend/src/app/shared/components/autocompleter/draggable-autocomplete/draggable-autocomplete.component.html
similarity index 100%
rename from frontend/src/app/modules/common/draggable-autocomplete/draggable-autocomplete.component.html
rename to frontend/src/app/shared/components/autocompleter/draggable-autocomplete/draggable-autocomplete.component.html
diff --git a/frontend/src/app/modules/common/draggable-autocomplete/draggable-autocomplete.component.sass b/frontend/src/app/shared/components/autocompleter/draggable-autocomplete/draggable-autocomplete.component.sass
similarity index 100%
rename from frontend/src/app/modules/common/draggable-autocomplete/draggable-autocomplete.component.sass
rename to frontend/src/app/shared/components/autocompleter/draggable-autocomplete/draggable-autocomplete.component.sass
diff --git a/frontend/src/app/modules/common/draggable-autocomplete/draggable-autocomplete.component.ts b/frontend/src/app/shared/components/autocompleter/draggable-autocomplete/draggable-autocomplete.component.ts
similarity index 92%
rename from frontend/src/app/modules/common/draggable-autocomplete/draggable-autocomplete.component.ts
rename to frontend/src/app/shared/components/autocompleter/draggable-autocomplete/draggable-autocomplete.component.ts
index 0015375478e..1382229d76d 100644
--- a/frontend/src/app/modules/common/draggable-autocomplete/draggable-autocomplete.component.ts
+++ b/frontend/src/app/shared/components/autocompleter/draggable-autocomplete/draggable-autocomplete.component.ts
@@ -8,13 +8,13 @@ import {
Output,
ViewChild
} from "@angular/core";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { NgSelectComponent } from "@ng-select/ng-select";
import { DragulaService, Group } from "ng2-dragula";
-import { DomAutoscrollService } from "core-app/modules/common/drag-and-drop/dom-autoscroll.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { DomAutoscrollService } from "core-app/shared/helpers/drag-and-drop/dom-autoscroll.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
import { merge } from "rxjs";
-import { DomHelpers } from "core-app/helpers/dom/set-window-cursor.helper";
+import { DomHelpers } from "core-app/shared/helpers/dom/set-window-cursor.helper";
export interface DraggableOption {
name:string;
diff --git a/frontend/src/app/modules/autocompleter/lazyloaded/lazyloaded-autocompleter.ts b/frontend/src/app/shared/components/autocompleter/lazyloaded/lazyloaded-autocompleter.ts
similarity index 100%
rename from frontend/src/app/modules/autocompleter/lazyloaded/lazyloaded-autocompleter.ts
rename to frontend/src/app/shared/components/autocompleter/lazyloaded/lazyloaded-autocompleter.ts
diff --git a/frontend/src/app/modules/members/members-autocompleter.component.ts b/frontend/src/app/shared/components/autocompleter/members-autocompleter/members-autocompleter.component.ts
similarity index 67%
rename from frontend/src/app/modules/members/members-autocompleter.component.ts
rename to frontend/src/app/shared/components/autocompleter/members-autocompleter/members-autocompleter.component.ts
index 0de318aab53..931360252c1 100644
--- a/frontend/src/app/modules/members/members-autocompleter.component.ts
+++ b/frontend/src/app/shared/components/autocompleter/members-autocompleter/members-autocompleter.component.ts
@@ -1,18 +1,19 @@
import { Observable } from "rxjs";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
import { HttpClient, HttpParams } from "@angular/common/http";
import { Component } from "@angular/core";
-import { URLParamsEncoder } from "core-app/modules/hal/services/url-params-encoder";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
import {
UserAutocompleteItem,
UserAutocompleterComponent,
-} from "core-app/modules/autocompleter/user-autocompleter/user-autocompleter.component";
+} from "core-app/shared/components/autocompleter/user-autocompleter/user-autocompleter.component";
+import { URLParamsEncoder } from "core-app/features/hal/services/url-params-encoder";
+
export const membersAutocompleterSelector = 'members-autocompleter';
@Component({
- templateUrl: '../autocompleter/user-autocompleter/user-autocompleter.component.html',
+ templateUrl: '../user-autocompleter/user-autocompleter.component.html',
selector: membersAutocompleterSelector
})
export class MembersAutocompleterComponent extends UserAutocompleterComponent {
diff --git a/frontend/src/app/modules/members/members.module.ts b/frontend/src/app/shared/components/autocompleter/members-autocompleter/members.module.ts
similarity index 86%
rename from frontend/src/app/modules/members/members.module.ts
rename to frontend/src/app/shared/components/autocompleter/members-autocompleter/members.module.ts
index 3980e5d5d48..cd76059548d 100644
--- a/frontend/src/app/modules/members/members.module.ts
+++ b/frontend/src/app/shared/components/autocompleter/members-autocompleter/members.module.ts
@@ -27,13 +27,13 @@
//++
import { NgModule } from "@angular/core";
-import { MembersAutocompleterComponent } from "core-app/modules/members/members-autocompleter.component";
+import { MembersAutocompleterComponent } from "core-app/shared/components/autocompleter/members-autocompleter/members-autocompleter.component";
import { NgSelectModule } from "@ng-select/ng-select";
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
+import { OPSharedModule } from "core-app/shared/shared.module";
@NgModule({
imports: [
- OpenprojectCommonModule,
+ OPSharedModule,
NgSelectModule
],
exports: [ ],
diff --git a/frontend/src/app/modules/autocompleter/op-autocompleter/directives/op-autocompleter-header-template.directive.ts b/frontend/src/app/shared/components/autocompleter/op-autocompleter/directives/op-autocompleter-header-template.directive.ts
similarity index 100%
rename from frontend/src/app/modules/autocompleter/op-autocompleter/directives/op-autocompleter-header-template.directive.ts
rename to frontend/src/app/shared/components/autocompleter/op-autocompleter/directives/op-autocompleter-header-template.directive.ts
diff --git a/frontend/src/app/modules/autocompleter/op-autocompleter/directives/op-autocompleter-label-template.directive.ts b/frontend/src/app/shared/components/autocompleter/op-autocompleter/directives/op-autocompleter-label-template.directive.ts
similarity index 100%
rename from frontend/src/app/modules/autocompleter/op-autocompleter/directives/op-autocompleter-label-template.directive.ts
rename to frontend/src/app/shared/components/autocompleter/op-autocompleter/directives/op-autocompleter-label-template.directive.ts
diff --git a/frontend/src/app/modules/autocompleter/op-autocompleter/directives/op-autocompleter-option-template.directive.ts b/frontend/src/app/shared/components/autocompleter/op-autocompleter/directives/op-autocompleter-option-template.directive.ts
similarity index 100%
rename from frontend/src/app/modules/autocompleter/op-autocompleter/directives/op-autocompleter-option-template.directive.ts
rename to frontend/src/app/shared/components/autocompleter/op-autocompleter/directives/op-autocompleter-option-template.directive.ts
diff --git a/frontend/src/app/modules/autocompleter/op-autocompleter/op-autocompleter.component.html b/frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component.html
similarity index 100%
rename from frontend/src/app/modules/autocompleter/op-autocompleter/op-autocompleter.component.html
rename to frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component.html
diff --git a/frontend/src/app/modules/autocompleter/op-autocompleter/op-autocompleter.component.sass b/frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component.sass
similarity index 100%
rename from frontend/src/app/modules/autocompleter/op-autocompleter/op-autocompleter.component.sass
rename to frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component.sass
diff --git a/frontend/src/app/modules/autocompleter/op-autocompleter/op-autocompleter.component.ts b/frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component.ts
similarity index 80%
rename from frontend/src/app/modules/autocompleter/op-autocompleter/op-autocompleter.component.ts
rename to frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component.ts
index 7c106bb8b7d..a0bd06867ec 100644
--- a/frontend/src/app/modules/autocompleter/op-autocompleter/op-autocompleter.component.ts
+++ b/frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component.ts
@@ -1,22 +1,17 @@
-import {HalResource} from 'core-app/modules/hal/resources/hal-resource';
-import {AfterContentInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output, ViewChild, TemplateRef, ContentChild, AfterViewInit, NgZone} from '@angular/core';
-import {I18nService} from 'core-app/modules/common/i18n/i18n.service';
-import {AngularTrackingHelpers} from 'core-components/angular/tracking-functions';
-import {HalResourceService} from 'core-app/modules/hal/services/hal-resource.service';
-import {HalResourceSortingService} from 'core-app/modules/hal/services/hal-resource-sorting.service';
+import {ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, Output, ViewChild, TemplateRef, ContentChild, AfterViewInit, NgZone} from '@angular/core';
import {DropdownPosition, NgSelectComponent} from '@ng-select/ng-select';
import { Observable, of, Subject } from 'rxjs';
-import { HalResourceNotificationService } from 'core-app/modules/hal/services/hal-resource-notification.service';
-import { CurrentProjectService } from 'core-app/components/projects/current-project.service';
import { debounceTime, distinctUntilChanged, switchMap } from 'rxjs/operators';
-import { UntilDestroyedMixin } from 'core-app/helpers/angular/until-destroyed.mixin';
import { GroupValueFn } from '@ng-select/ng-select/lib/ng-select.component';
import { OpAutocompleterOptionTemplateDirective } from "./directives/op-autocompleter-option-template.directive";
import { OpAutocompleterLabelTemplateDirective } from "./directives/op-autocompleter-label-template.directive";
import { OpAutocompleterHeaderTemplateDirective } from "./directives/op-autocompleter-header-template.directive";
-import { OpAutocompleterFooterTemplateDirective } from "./directives/op-autocompleter-footer-template.directive";
import { OpAutocompleterService } from "./services/op-autocompleter.service";
-import {Highlighting} from "core-components/wp-fast-table/builders/highlighting/highlighting.functions";
+import { Highlighting } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting.functions";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { AngularTrackingHelpers } from "core-app/shared/helpers/angular/tracking-functions";
+import { OpAutocompleterFooterTemplateDirective } from "core-app/shared/components/autocompleter/autocompleter-footer-template/op-autocompleter-footer-template.directive";
@Component({
selector: 'op-autocompleter',
@@ -148,26 +143,26 @@ export class OpAutocompleterComponent extends UntilDestroyedMixin implements Aft
distinctUntilChanged(),
switchMap(queryString => this.getOptionsItems(queryString))
)) : this.defaulData ? (this.searchInput$.pipe(
- debounceTime(250),
- distinctUntilChanged(),
- switchMap(queryString => this.opAutocompleterService.loadData(queryString, this.resource, this.filters, this.searchKey))
+ debounceTime(250),
+ distinctUntilChanged(),
+ switchMap(queryString => this.opAutocompleterService.loadData(queryString, this.resource, this.filters, this.searchKey))
)) : (this.searchInput$.pipe(
- debounceTime(250),
- distinctUntilChanged(),
- switchMap(queryString => this.getOptionsFn(queryString))
- ));
- if (this.fetchDataDirectly) {
- this.results$ = this.defaulData
- ? (this.opAutocompleterService.loadData('', this.resource, this.filters, this.searchKey))
- : (this.getOptionsFn(''));
- }
- if(this.openDirectly) {
- this.ngSelectInstance.open();
- this.ngSelectInstance.focus();
- }
- else if (this.focusDirectly) {
- this.ngSelectInstance.focus();
- }
+ debounceTime(250),
+ distinctUntilChanged(),
+ switchMap(queryString => this.getOptionsFn(queryString))
+ ));
+ if (this.fetchDataDirectly) {
+ this.results$ = this.defaulData
+ ? (this.opAutocompleterService.loadData('', this.resource, this.filters, this.searchKey))
+ : (this.getOptionsFn(''));
+ }
+ if(this.openDirectly) {
+ this.ngSelectInstance.open();
+ this.ngSelectInstance.focus();
+ }
+ else if (this.focusDirectly) {
+ this.ngSelectInstance.focus();
+ }
}, 25);
});
@@ -188,11 +183,11 @@ export class OpAutocompleterComponent extends UntilDestroyedMixin implements Aft
}
public opened(val:any) {
- if (this.openDirectly) {
- this.results$ = this.defaulData
- ? (this.opAutocompleterService.loadData('', this.resource, this.filters, this.searchKey))
- : (this.getOptionsFn(''));
- }
+ if (this.openDirectly) {
+ this.results$ = this.defaulData
+ ? (this.opAutocompleterService.loadData('', this.resource, this.filters, this.searchKey))
+ : (this.getOptionsFn(''));
+ }
this.repositionDropdown();
this.open.emit();
}
diff --git a/frontend/src/app/modules/autocompleter/op-autocompleter/op-autocompleter.spec.ts b/frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.spec.ts
similarity index 86%
rename from frontend/src/app/modules/autocompleter/op-autocompleter/op-autocompleter.spec.ts
rename to frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.spec.ts
index b281f945162..5af0767d1f0 100644
--- a/frontend/src/app/modules/autocompleter/op-autocompleter/op-autocompleter.spec.ts
+++ b/frontend/src/app/shared/components/autocompleter/op-autocompleter/op-autocompleter.spec.ts
@@ -1,13 +1,11 @@
-import { ComponentFixture, fakeAsync, flush, TestBed, tick, waitForAsync } from '@angular/core/testing';
-import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
+import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
import { OpAutocompleterComponent } from "./op-autocompleter.component";
import { OpAutocompleterService } from "./services/op-autocompleter.service";
import { DebugElement, NO_ERRORS_SCHEMA } from '@angular/core';
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
import { of } from "rxjs";
import { NgSelectComponent} from '@ng-select/ng-select';
import { NgSelectModule } from "@ng-select/ng-select";
-import {HalResource} from 'core-app/modules/hal/resources/hal-resource';
import { By } from '@angular/platform-browser';
function triggerKeyDownEvent(element:DebugElement, which:number, key = ''):void {
@@ -123,11 +121,11 @@ describe('autocompleter', () => {
tick(1000);
fixture.detectChanges();
tick(1000);
-
- expect(opAutocompleterServiceSpy.loadData).toHaveBeenCalledWith('a',
- fixture.componentInstance.resource, fixture.componentInstance.filters, fixture.componentInstance.searchKey);
-
- expect(fixture.componentInstance.ngSelectInstance.itemsList.items.length).toEqual(2);
+
+ expect(opAutocompleterServiceSpy.loadData).toHaveBeenCalledWith('a',
+ fixture.componentInstance.resource, fixture.componentInstance.filters, fixture.componentInstance.searchKey);
+
+ expect(fixture.componentInstance.ngSelectInstance.itemsList.items.length).toEqual(2);
}));
});
\ No newline at end of file
diff --git a/frontend/src/app/modules/autocompleter/op-autocompleter/services/op-autocompleter.service.ts b/frontend/src/app/shared/components/autocompleter/op-autocompleter/services/op-autocompleter.service.ts
similarity index 70%
rename from frontend/src/app/modules/autocompleter/op-autocompleter/services/op-autocompleter.service.ts
rename to frontend/src/app/shared/components/autocompleter/op-autocompleter/services/op-autocompleter.service.ts
index 93965bbb820..17381374b3e 100644
--- a/frontend/src/app/modules/autocompleter/op-autocompleter/services/op-autocompleter.service.ts
+++ b/frontend/src/app/shared/components/autocompleter/op-autocompleter/services/op-autocompleter.service.ts
@@ -1,15 +1,15 @@
import { Injectable } from '@angular/core';
-import { ApiV3FilterBuilder, FilterOperator } from 'core-app/components/api/api-v3/api-v3-filter-builder';
+import { ApiV3FilterBuilder, FilterOperator } from 'core-app/shared/helpers/api-v3/api-v3-filter-builder';
import { debounceTime, distinctUntilChanged, map, switchMap } from 'rxjs/operators';
-import { APIv3ResourceCollection } from 'core-app/modules/apiv3/paths/apiv3-resource';
-import { UserResource } from 'core-app/modules/hal/resources/user-resource';
-import { APIv3UserPaths } from 'core-app/modules/apiv3/endpoints/users/apiv3-user-paths';
-import { APIV3WorkPackagePaths } from 'core-app/modules/apiv3/endpoints/work_packages/api-v3-work-package-paths';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import {HalResource} from 'core-app/modules/hal/resources/hal-resource';
-import {APIV3Service} from "core-app/modules/apiv3/api-v3.service";
+import { APIv3ResourceCollection } from 'core-app/core/apiv3/paths/apiv3-resource';
+import { UserResource } from "core-app/features/hal/resources/user-resource";
+import { APIv3UserPaths } from 'core-app/core/apiv3/endpoints/users/apiv3-user-paths';
+import { APIV3WorkPackagePaths } from 'core-app/core/apiv3/endpoints/work_packages/api-v3-work-package-paths';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import {HalResource} from "core-app/features/hal/resources/hal-resource";
+import {APIV3Service} from "core-app/core/apiv3/api-v3.service";
import {of, Observable} from "rxjs";
-import {UntilDestroyedMixin} from "core-app/helpers/angular/until-destroyed.mixin";
+import {UntilDestroyedMixin} from "core-app/shared/helpers/angular/until-destroyed.mixin";
@Injectable()
diff --git a/frontend/src/app/modules/autocompleter/op-autocompleter/typings.d.ts b/frontend/src/app/shared/components/autocompleter/op-autocompleter/typings.d.ts
similarity index 100%
rename from frontend/src/app/modules/autocompleter/op-autocompleter/typings.d.ts
rename to frontend/src/app/shared/components/autocompleter/op-autocompleter/typings.d.ts
diff --git a/frontend/src/app/shared/components/autocompleter/openproject-autocompleter.module.ts b/frontend/src/app/shared/components/autocompleter/openproject-autocompleter.module.ts
new file mode 100644
index 00000000000..5411307481a
--- /dev/null
+++ b/frontend/src/app/shared/components/autocompleter/openproject-autocompleter.module.ts
@@ -0,0 +1,53 @@
+import { NgModule } from "@angular/core";
+import { OpenprojectModalModule } from "core-app/shared/components/modal/modal.module";
+import { NgSelectModule } from "@ng-select/ng-select";
+import { OPSharedModule } from "core-app/shared/shared.module";
+import { DraggableAutocompleteComponent } from "core-app/shared/components/autocompleter/draggable-autocomplete/draggable-autocomplete.component";
+import { DynamicModule } from "ng-dynamic-component";
+import { ColorsAutocompleter } from "core-app/shared/components/colors/colors-autocompleter.component";
+import { WorkPackageAutocompleterComponent } from "core-app/shared/components/autocompleter/work-package-autocompleter/wp-autocompleter.component";
+import { TimeEntryWorkPackageAutocompleterComponent } from "core-app/shared/components/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component";
+import { AutocompleteSelectDecorationComponent } from "core-app/shared/components/autocompleter/autocomplete-select-decoration/autocomplete-select-decoration.component";
+import { VersionAutocompleterComponent } from "core-app/shared/components/autocompleter/version-autocompleter/version-autocompleter.component";
+import { UserAutocompleterComponent } from "core-app/shared/components/autocompleter/user-autocompleter/user-autocompleter.component";
+import { CommonModule } from "@angular/common";
+import { OpenprojectInviteUserModalModule } from "core-app/features/invite-user-modal/invite-user-modal.module";
+import { DragulaModule } from "ng2-dragula";
+import {OpAutocompleterComponent} from "core-app/shared/components/autocompleter/op-autocompleter/op-autocompleter.component";
+import {OpAutocompleterOptionTemplateDirective} from "core-app/shared/components/autocompleter/op-autocompleter/directives/op-autocompleter-option-template.directive";
+import {OpAutocompleterLabelTemplateDirective} from "core-app/shared/components/autocompleter/op-autocompleter/directives/op-autocompleter-label-template.directive";
+import {OpAutocompleterHeaderTemplateDirective} from "core-app/shared/components/autocompleter/op-autocompleter/directives/op-autocompleter-header-template.directive";
+import { CreateAutocompleterComponent } from "core-app/shared/components/autocompleter/create-autocompleter/create-autocompleter.component";
+import { OpAutocompleterFooterTemplateDirective } from "core-app/shared/components/autocompleter/autocompleter-footer-template/op-autocompleter-footer-template.directive";
+
+export const OPENPROJECT_AUTOCOMPLETE_COMPONENTS = [
+ CreateAutocompleterComponent,
+ VersionAutocompleterComponent,
+ WorkPackageAutocompleterComponent,
+ TimeEntryWorkPackageAutocompleterComponent,
+ DraggableAutocompleteComponent,
+ UserAutocompleterComponent,
+ ColorsAutocompleter,
+ AutocompleteSelectDecorationComponent,
+ OpAutocompleterComponent,
+ OpAutocompleterOptionTemplateDirective,
+ OpAutocompleterLabelTemplateDirective,
+ OpAutocompleterHeaderTemplateDirective,
+ OpAutocompleterFooterTemplateDirective,
+];
+
+@NgModule({
+ imports: [
+ CommonModule,
+ OPSharedModule,
+ OpenprojectModalModule,
+ OpenprojectInviteUserModalModule,
+ NgSelectModule,
+ DragulaModule,
+
+ DynamicModule.withComponents(OPENPROJECT_AUTOCOMPLETE_COMPONENTS)
+ ],
+ exports: OPENPROJECT_AUTOCOMPLETE_COMPONENTS,
+ declarations: OPENPROJECT_AUTOCOMPLETE_COMPONENTS
+})
+export class OpenprojectAutocompleterModule { }
diff --git a/frontend/src/app/components/projects/project-menu-autocomplete/project-menu-autocomplete.component.ts b/frontend/src/app/shared/components/autocompleter/project-menu-autocomplete/project-menu-autocomplete.component.ts
similarity index 95%
rename from frontend/src/app/components/projects/project-menu-autocomplete/project-menu-autocomplete.component.ts
rename to frontend/src/app/shared/components/autocompleter/project-menu-autocomplete/project-menu-autocomplete.component.ts
index 3357b746555..81e97f36380 100644
--- a/frontend/src/app/components/projects/project-menu-autocomplete/project-menu-autocomplete.component.ts
+++ b/frontend/src/app/shared/components/autocompleter/project-menu-autocomplete/project-menu-autocomplete.component.ts
@@ -26,17 +26,17 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
import {
IAutocompleteItem,
ILazyAutocompleterBridge
-} from 'core-app/modules/autocompleter/lazyloaded/lazyloaded-autocompleter';
-import { keyCodes } from 'core-app/modules/common/keyCodes.enum';
-import { LinkHandling } from 'core-app/modules/common/link-handling/link-handling';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+} from 'core-app/shared/components/autocompleter/lazyloaded/lazyloaded-autocompleter';
+import { keyCodes } from 'core-app/shared/helpers/keyCodes.enum';
+import { LinkHandling } from 'core-app/shared/helpers/link-handling/link-handling';
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { HttpClient } from "@angular/common/http";
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, OnInit } from "@angular/core";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
export interface IProjectMenuEntry {
id:number;
diff --git a/frontend/src/app/components/projects/project-menu-autocomplete/project-menu-autocomplete.template.html b/frontend/src/app/shared/components/autocompleter/project-menu-autocomplete/project-menu-autocomplete.template.html
similarity index 100%
rename from frontend/src/app/components/projects/project-menu-autocomplete/project-menu-autocomplete.template.html
rename to frontend/src/app/shared/components/autocompleter/project-menu-autocomplete/project-menu-autocomplete.template.html
diff --git a/frontend/src/app/modules/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component.html b/frontend/src/app/shared/components/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component.html
similarity index 100%
rename from frontend/src/app/modules/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component.html
rename to frontend/src/app/shared/components/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component.html
diff --git a/frontend/src/app/modules/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component.sass b/frontend/src/app/shared/components/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component.sass
similarity index 100%
rename from frontend/src/app/modules/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component.sass
rename to frontend/src/app/shared/components/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component.sass
diff --git a/frontend/src/app/modules/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component.ts b/frontend/src/app/shared/components/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component.ts
similarity index 85%
rename from frontend/src/app/modules/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component.ts
rename to frontend/src/app/shared/components/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component.ts
index ba4bcf72aac..02cbb6d5a14 100644
--- a/frontend/src/app/modules/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component.ts
+++ b/frontend/src/app/shared/components/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component.ts
@@ -35,10 +35,10 @@ import {
ChangeDetectorRef,
Injector,
} from '@angular/core';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { WorkPackageAutocompleterComponent } from "core-app/modules/autocompleter/work-package-autocompleter/wp-autocompleter.component";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { WorkPackageAutocompleterComponent } from "core-app/shared/components/autocompleter/work-package-autocompleter/wp-autocompleter.component";
export type TimeEntryWorkPackageAutocompleterMode = 'all'|'recent';
diff --git a/frontend/src/app/modules/autocompleter/user-autocompleter/user-autocompleter.component.html b/frontend/src/app/shared/components/autocompleter/user-autocompleter/user-autocompleter.component.html
similarity index 100%
rename from frontend/src/app/modules/autocompleter/user-autocompleter/user-autocompleter.component.html
rename to frontend/src/app/shared/components/autocompleter/user-autocompleter/user-autocompleter.component.html
diff --git a/frontend/src/app/modules/autocompleter/user-autocompleter/user-autocompleter.component.ts b/frontend/src/app/shared/components/autocompleter/user-autocompleter/user-autocompleter.component.ts
similarity index 89%
rename from frontend/src/app/modules/autocompleter/user-autocompleter/user-autocompleter.component.ts
rename to frontend/src/app/shared/components/autocompleter/user-autocompleter/user-autocompleter.component.ts
index 874e6ba39d8..8265b8f4898 100644
--- a/frontend/src/app/modules/autocompleter/user-autocompleter/user-autocompleter.component.ts
+++ b/frontend/src/app/shared/components/autocompleter/user-autocompleter/user-autocompleter.component.ts
@@ -27,17 +27,17 @@
//++
import { Component, ElementRef, EventEmitter, Injector, Input, OnInit, Output, ViewChild } from '@angular/core';
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { ApiV3FilterBuilder, FilterOperator } from "core-components/api/api-v3/api-v3-filter-builder";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { Observable } from "rxjs";
import { map } from "rxjs/operators";
-import { DebouncedRequestSwitchmap, errorNotificationHandler } from "core-app/helpers/rxjs/debounced-input-switchmap";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
+import { DebouncedRequestSwitchmap, errorNotificationHandler } from "core-app/shared/helpers/rxjs/debounced-input-switchmap";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
import { NgSelectComponent } from "@ng-select/ng-select";
-import { UserResource } from "core-app/modules/hal/resources/user-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { UserResource } from "core-app/features/hal/resources/user-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { ApiV3FilterBuilder, FilterOperator } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
export const usersAutocompleterSelector = 'user-autocompleter';
diff --git a/frontend/src/app/modules/autocompleter/version-autocompleter/version-autocompleter.component.ts b/frontend/src/app/shared/components/autocompleter/version-autocompleter/version-autocompleter.component.ts
similarity index 82%
rename from frontend/src/app/modules/autocompleter/version-autocompleter/version-autocompleter.component.ts
rename to frontend/src/app/shared/components/autocompleter/version-autocompleter/version-autocompleter.component.ts
index cc05398ab1e..6f3b1f95068 100644
--- a/frontend/src/app/modules/autocompleter/version-autocompleter/version-autocompleter.component.ts
+++ b/frontend/src/app/shared/components/autocompleter/version-autocompleter/version-autocompleter.component.ts
@@ -26,14 +26,14 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { AfterViewInit, ChangeDetectorRef, Component, EventEmitter, Input, Output, Injector } from '@angular/core';
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { VersionResource } from "core-app/modules/hal/resources/version-resource";
-import { CreateAutocompleterComponent } from "core-app/modules/autocompleter/create-autocompleter/create-autocompleter.component";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { AfterViewInit, ChangeDetectorRef, Component, EventEmitter, Output, Injector } from '@angular/core';
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { CreateAutocompleterComponent } from "core-app/shared/components/autocompleter/create-autocompleter/create-autocompleter.component";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { VersionResource } from "core-app/features/hal/resources/version-resource";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
@Component({
templateUrl: '../create-autocompleter/create-autocompleter.component.html',
diff --git a/frontend/src/app/modules/autocompleter/work-package-autocompleter/wp-autocompleter.component.ts b/frontend/src/app/shared/components/autocompleter/work-package-autocompleter/wp-autocompleter.component.ts
similarity index 91%
rename from frontend/src/app/modules/autocompleter/work-package-autocompleter/wp-autocompleter.component.ts
rename to frontend/src/app/shared/components/autocompleter/work-package-autocompleter/wp-autocompleter.component.ts
index 537a56803be..0dde95511e0 100644
--- a/frontend/src/app/modules/autocompleter/work-package-autocompleter/wp-autocompleter.component.ts
+++ b/frontend/src/app/shared/components/autocompleter/work-package-autocompleter/wp-autocompleter.component.ts
@@ -30,7 +30,7 @@ import {
AfterViewInit,
Component,
} from '@angular/core';
-import { CreateAutocompleterComponent } from "core-app/modules/autocompleter/create-autocompleter/create-autocompleter.component";
+import { CreateAutocompleterComponent } from "core-app/shared/components/autocompleter/create-autocompleter/create-autocompleter.component";
@Component({
templateUrl: '../create-autocompleter/create-autocompleter.component.html',
diff --git a/frontend/src/app/modules/calendar/openproject-calendar.module.ts b/frontend/src/app/shared/components/calendar/openproject-calendar.module.ts
similarity index 75%
rename from frontend/src/app/modules/calendar/openproject-calendar.module.ts
rename to frontend/src/app/shared/components/calendar/openproject-calendar.module.ts
index d3f07379279..6e9cf7192aa 100644
--- a/frontend/src/app/modules/calendar/openproject-calendar.module.ts
+++ b/frontend/src/app/shared/components/calendar/openproject-calendar.module.ts
@@ -26,16 +26,16 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { OpenprojectCommonModule } from 'core-app/modules/common/openproject-common.module';
+import { OPSharedModule } from 'core-app/shared/shared.module';
import { NgModule } from '@angular/core';
import { FullCalendarModule } from '@fullcalendar/angular';
-import { WorkPackagesCalendarEntryComponent } from "core-app/modules/calendar/wp-calendar-entry/wp-calendar-entry.component";
-import { WorkPackagesCalendarController } from "core-app/modules/calendar/wp-calendar/wp-calendar.component";
-import { OpenprojectWorkPackagesModule } from "core-app/modules/work_packages/openproject-work-packages.module";
+import { WorkPackagesCalendarEntryComponent } from "core-app/shared/components/calendar/wp-calendar-entry/wp-calendar-entry.component";
+import { WorkPackagesCalendarController } from "core-app/shared/components/calendar/wp-calendar/wp-calendar.component";
+import { OpenprojectWorkPackagesModule } from "core-app/features/work-packages/openproject-work-packages.module";
import { Ng2StateDeclaration, UIRouterModule } from "@uirouter/angular";
-import { TimeEntryCalendarComponent } from "core-app/modules/calendar/te-calendar/te-calendar.component";
-import { OpenprojectFieldsModule } from "core-app/modules/fields/openproject-fields.module";
-import { OpenprojectTimeEntriesModule } from "core-app/modules/time_entries/openproject-time-entries.module";
+import { TimeEntryCalendarComponent } from "core-app/shared/components/calendar/te-calendar/te-calendar.component";
+import { OpenprojectFieldsModule } from "core-app/shared/components/fields/openproject-fields.module";
+import { OpenprojectTimeEntriesModule } from "core-app/shared/components/time_entries/openproject-time-entries.module";
const menuItemClass = 'calendar-menu-item';
@@ -56,7 +56,7 @@ export const CALENDAR_ROUTES:Ng2StateDeclaration[] = [
@NgModule({
imports: [
// Commons
- OpenprojectCommonModule,
+ OPSharedModule,
// Routes for /work_packages/calendar
UIRouterModule.forChild({ states: CALENDAR_ROUTES }),
diff --git a/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.sass b/frontend/src/app/shared/components/calendar/te-calendar/te-calendar.component.sass
similarity index 100%
rename from frontend/src/app/modules/calendar/te-calendar/te-calendar.component.sass
rename to frontend/src/app/shared/components/calendar/te-calendar/te-calendar.component.sass
diff --git a/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.ts b/frontend/src/app/shared/components/calendar/te-calendar/te-calendar.component.ts
similarity index 93%
rename from frontend/src/app/modules/calendar/te-calendar/te-calendar.component.ts
rename to frontend/src/app/shared/components/calendar/te-calendar/te-calendar.component.ts
index e5b3252ac17..fad67f3cee9 100644
--- a/frontend/src/app/modules/calendar/te-calendar/te-calendar.component.ts
+++ b/frontend/src/app/shared/components/calendar/te-calendar/te-calendar.component.ts
@@ -12,28 +12,28 @@ import {
ViewEncapsulation
} from "@angular/core";
import { FullCalendarComponent } from '@fullcalendar/angular';
-import { States } from "core-components/states.service";
+import { States } from "core-app/core/states/states.service";
import * as moment from "moment";
import { Moment } from "moment";
import { StateService } from "@uirouter/core";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { DomSanitizer } from "@angular/platform-browser";
import timeGrid from '@fullcalendar/timegrid';
import { CalendarOptions, Duration, EventApi, EventInput } from '@fullcalendar/core';
-import { ConfigurationService } from "core-app/modules/common/config/configuration.service";
-import { FilterOperator } from "core-components/api/api-v3/api-v3-filter-builder";
-import { TimeEntryResource } from "core-app/modules/hal/resources/time-entry-resource";
-import { TimezoneService } from "core-components/datetime/timezone.service";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
+import { ConfigurationService } from "core-app/core/config/configuration.service";
+import { TimeEntryResource } from "core-app/features/hal/resources/time-entry-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
import interactionPlugin from '@fullcalendar/interaction';
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { TimeEntryEditService } from "core-app/modules/time_entries/edit/edit.service";
-import { TimeEntryCreateService } from "core-app/modules/time_entries/create/create.service";
-import { ColorsService } from "core-app/modules/common/colors/colors.service";
-import { BrowserDetector } from "core-app/modules/common/browser/browser-detector.service";
-import { HalResourceNotificationService } from 'core-app/modules/hal/services/hal-resource-notification.service';
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { TimeEntryEditService } from "core-app/shared/components/time_entries/edit/edit.service";
+import { TimeEntryCreateService } from "core-app/shared/components/time_entries/create/create.service";
+import { ColorsService } from "core-app/shared/components/colors/colors.service";
+import { BrowserDetector } from "core-app/core/browser/browser-detector.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { FilterOperator } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
interface CalendarViewEvent {
el:HTMLElement;
diff --git a/frontend/src/app/modules/calendar/te-calendar/te-calendar.template.html b/frontend/src/app/shared/components/calendar/te-calendar/te-calendar.template.html
similarity index 100%
rename from frontend/src/app/modules/calendar/te-calendar/te-calendar.template.html
rename to frontend/src/app/shared/components/calendar/te-calendar/te-calendar.template.html
diff --git a/frontend/src/app/modules/calendar/wp-calendar-entry/wp-calendar-entry.component.html b/frontend/src/app/shared/components/calendar/wp-calendar-entry/wp-calendar-entry.component.html
similarity index 100%
rename from frontend/src/app/modules/calendar/wp-calendar-entry/wp-calendar-entry.component.html
rename to frontend/src/app/shared/components/calendar/wp-calendar-entry/wp-calendar-entry.component.html
diff --git a/frontend/src/app/modules/calendar/wp-calendar-entry/wp-calendar-entry.component.ts b/frontend/src/app/shared/components/calendar/wp-calendar-entry/wp-calendar-entry.component.ts
similarity index 88%
rename from frontend/src/app/modules/calendar/wp-calendar-entry/wp-calendar-entry.component.ts
rename to frontend/src/app/shared/components/calendar/wp-calendar-entry/wp-calendar-entry.component.ts
index a3a6887d7e5..1c333a2869f 100644
--- a/frontend/src/app/modules/calendar/wp-calendar-entry/wp-calendar-entry.component.ts
+++ b/frontend/src/app/shared/components/calendar/wp-calendar-entry/wp-calendar-entry.component.ts
@@ -27,8 +27,8 @@
//++
import { Component, ViewChild } from '@angular/core';
-import { WorkPackagesViewBase } from "core-app/modules/work_packages/routing/wp-view-base/work-packages-view.base";
-import { WorkPackagesCalendarController } from "core-app/modules/calendar/wp-calendar/wp-calendar.component";
+import { WorkPackagesViewBase } from "core-app/features/work-packages/routing/wp-view-base/work-packages-view.base";
+import { WorkPackagesCalendarController } from "core-app/shared/components/calendar/wp-calendar/wp-calendar.component";
@Component({
templateUrl: './wp-calendar-entry.component.html'
diff --git a/frontend/src/app/modules/calendar/wp-calendar/wp-calendar.component.ts b/frontend/src/app/shared/components/calendar/wp-calendar/wp-calendar.component.ts
similarity index 89%
rename from frontend/src/app/modules/calendar/wp-calendar/wp-calendar.component.ts
rename to frontend/src/app/shared/components/calendar/wp-calendar/wp-calendar.component.ts
index cd130692889..47c928eb606 100644
--- a/frontend/src/app/modules/calendar/wp-calendar/wp-calendar.component.ts
+++ b/frontend/src/app/shared/components/calendar/wp-calendar/wp-calendar.component.ts
@@ -1,6 +1,4 @@
import {
- AfterViewInit,
- ChangeDetectorRef,
Component,
ElementRef,
Input,
@@ -9,27 +7,26 @@ import {
ViewChild
} from "@angular/core";
import { FullCalendarComponent } from '@fullcalendar/angular';
-import { States } from "core-components/states.service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { WorkPackageCollectionResource } from "core-app/modules/hal/resources/wp-collection-resource";
-import { WorkPackageViewFiltersService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service";
+import { States } from "core-app/core/states/states.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
+import { WorkPackageViewFiltersService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service";
import * as moment from "moment";
-import { WorkPackagesListService } from "core-components/wp-list/wp-list.service";
+import { WorkPackagesListService } from "core-app/features/work-packages/components/wp-list/wp-list.service";
import { StateService } from "@uirouter/core";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
import { DomSanitizer } from "@angular/platform-browser";
-import { WorkPackagesListChecksumService } from "core-components/wp-list/wp-list-checksum.service";
-import { OpTitleService } from "core-components/html/op-title.service";
+import { WorkPackagesListChecksumService } from "core-app/features/work-packages/components/wp-list/wp-list-checksum.service";
+import { OpTitleService } from "core-app/core/html/op-title.service";
import dayGridPlugin from '@fullcalendar/daygrid';
import { CalendarOptions, EventApi, EventInput } from '@fullcalendar/core';
import { Subject } from "rxjs";
import { take, debounceTime } from 'rxjs/operators';
-import { ToolbarInput } from '@fullcalendar/common';
-import { ConfigurationService } from "core-app/modules/common/config/configuration.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
+import { ConfigurationService } from "core-app/core/config/configuration.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
interface CalendarViewEvent {
el:HTMLElement;
@@ -122,8 +119,8 @@ export class WorkPackagesCalendarController extends UntilDestroyedMixin implemen
}
public calendarEventsFunction(fetchInfo:{ start:Date, end:Date, timeZone:string },
- successCallback:(events:EventInput[]) => void,
- failureCallback:(error:any) => void):void|PromiseLike<EventInput[]> {
+ successCallback:(events:EventInput[]) => void,
+ failureCallback:(error:any) => void):void|PromiseLike<EventInput[]> {
if (this.alreadyLoaded) {
this.alreadyLoaded = false;
const events = this.updateResults(this.querySpace.results.value!);
diff --git a/frontend/src/app/modules/calendar/wp-calendar/wp-calendar.sass b/frontend/src/app/shared/components/calendar/wp-calendar/wp-calendar.sass
similarity index 100%
rename from frontend/src/app/modules/calendar/wp-calendar/wp-calendar.sass
rename to frontend/src/app/shared/components/calendar/wp-calendar/wp-calendar.sass
diff --git a/frontend/src/app/modules/calendar/wp-calendar/wp-calendar.template.html b/frontend/src/app/shared/components/calendar/wp-calendar/wp-calendar.template.html
similarity index 100%
rename from frontend/src/app/modules/calendar/wp-calendar/wp-calendar.template.html
rename to frontend/src/app/shared/components/calendar/wp-calendar/wp-calendar.template.html
diff --git a/frontend/src/app/modules/common/collapsible-section/collapsible-section.component.ts b/frontend/src/app/shared/components/collapsible-section/collapsible-section.component.ts
similarity index 100%
rename from frontend/src/app/modules/common/collapsible-section/collapsible-section.component.ts
rename to frontend/src/app/shared/components/collapsible-section/collapsible-section.component.ts
diff --git a/frontend/src/app/modules/common/collapsible-section/collapsible-section.html b/frontend/src/app/shared/components/collapsible-section/collapsible-section.html
similarity index 100%
rename from frontend/src/app/modules/common/collapsible-section/collapsible-section.html
rename to frontend/src/app/shared/components/collapsible-section/collapsible-section.html
diff --git a/frontend/src/app/modules/common/colors/colors-autocompleter.component.ts b/frontend/src/app/shared/components/colors/colors-autocompleter.component.ts
similarity index 95%
rename from frontend/src/app/modules/common/colors/colors-autocompleter.component.ts
rename to frontend/src/app/shared/components/colors/colors-autocompleter.component.ts
index bef842cb306..b6f27e76320 100644
--- a/frontend/src/app/modules/common/colors/colors-autocompleter.component.ts
+++ b/frontend/src/app/shared/components/colors/colors-autocompleter.component.ts
@@ -27,8 +27,8 @@
//++
import { Component, ElementRef, OnInit } from '@angular/core';
-import { Highlighting } from "core-components/wp-fast-table/builders/highlighting/highlighting.functions";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { Highlighting } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting.functions";
+import { I18nService } from "core-app/core/i18n/i18n.service";
export const colorsAutocompleterSelector = 'colors-autocompleter';
diff --git a/frontend/src/app/modules/common/colors/colors.service.ts b/frontend/src/app/shared/components/colors/colors.service.ts
similarity index 100%
rename from frontend/src/app/modules/common/colors/colors.service.ts
rename to frontend/src/app/shared/components/colors/colors.service.ts
diff --git a/frontend/src/app/modules/common/copy-to-clipboard/copy-to-clipboard.directive.ts b/frontend/src/app/shared/components/copy-to-clipboard/copy-to-clipboard.directive.ts
similarity index 92%
rename from frontend/src/app/modules/common/copy-to-clipboard/copy-to-clipboard.directive.ts
rename to frontend/src/app/shared/components/copy-to-clipboard/copy-to-clipboard.directive.ts
index eeb49ec9ed2..d05c13935a1 100644
--- a/frontend/src/app/modules/common/copy-to-clipboard/copy-to-clipboard.directive.ts
+++ b/frontend/src/app/shared/components/copy-to-clipboard/copy-to-clipboard.directive.ts
@@ -28,9 +28,9 @@
import { Component, ElementRef, OnInit } from "@angular/core";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { ConfigurationService } from "core-app/modules/common/config/configuration.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { ConfigurationService } from "core-app/core/config/configuration.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
export const copyToClipboardSelector = 'copy-to-clipboard';
diff --git a/frontend/src/app/modules/common/date/op-date-time.component.ts b/frontend/src/app/shared/components/date/op-date-time.component.ts
similarity index 95%
rename from frontend/src/app/modules/common/date/op-date-time.component.ts
rename to frontend/src/app/shared/components/date/op-date-time.component.ts
index bda2d591ee2..32715a4b168 100644
--- a/frontend/src/app/modules/common/date/op-date-time.component.ts
+++ b/frontend/src/app/shared/components/date/op-date-time.component.ts
@@ -27,7 +27,7 @@
//++
import { Component, Input } from '@angular/core';
-import { TimezoneService } from 'core-components/datetime/timezone.service';
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
@Component({
selector: 'op-date-time',
diff --git a/frontend/src/app/components/datepicker/datepicker.modal.helper.ts b/frontend/src/app/shared/components/datepicker/datepicker.modal.helper.ts
similarity index 97%
rename from frontend/src/app/components/datepicker/datepicker.modal.helper.ts
rename to frontend/src/app/shared/components/datepicker/datepicker.modal.helper.ts
index 5947b3a1742..81b33a2f6eb 100644
--- a/frontend/src/app/components/datepicker/datepicker.modal.helper.ts
+++ b/frontend/src/app/shared/components/datepicker/datepicker.modal.helper.ts
@@ -27,8 +27,8 @@
//++
import { Injectable } from '@angular/core';
-import { DateKeys } from "core-components/datepicker/datepicker.modal";
-import { DatePicker } from "core-app/modules/common/op-date-picker/datepicker";
+import { DateKeys } from "core-app/shared/components/datepicker/datepicker.modal";
+import { DatePicker } from "core-app/shared/components/op-date-picker/datepicker";
import { DateOption } from "flatpickr/dist/types/options";
@Injectable({ providedIn: 'root' })
diff --git a/frontend/src/app/components/datepicker/datepicker.modal.html b/frontend/src/app/shared/components/datepicker/datepicker.modal.html
similarity index 100%
rename from frontend/src/app/components/datepicker/datepicker.modal.html
rename to frontend/src/app/shared/components/datepicker/datepicker.modal.html
diff --git a/frontend/src/app/components/datepicker/datepicker.modal.sass b/frontend/src/app/shared/components/datepicker/datepicker.modal.sass
similarity index 100%
rename from frontend/src/app/components/datepicker/datepicker.modal.sass
rename to frontend/src/app/shared/components/datepicker/datepicker.modal.sass
diff --git a/frontend/src/app/components/datepicker/datepicker.modal.ts b/frontend/src/app/shared/components/datepicker/datepicker.modal.ts
similarity index 93%
rename from frontend/src/app/components/datepicker/datepicker.modal.ts
rename to frontend/src/app/shared/components/datepicker/datepicker.modal.ts
index 53648ec6dd8..22b9577c60a 100644
--- a/frontend/src/app/components/datepicker/datepicker.modal.ts
+++ b/frontend/src/app/shared/components/datepicker/datepicker.modal.ts
@@ -37,18 +37,18 @@ import {
Injector, ViewChild,
ViewEncapsulation
} from "@angular/core";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { OpModalLocalsMap } from "core-app/modules/modal/modal.types";
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { TimezoneService } from "core-components/datetime/timezone.service";
-import { DatePicker } from "core-app/modules/common/op-date-picker/datepicker";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { ResourceChangeset } from "core-app/modules/fields/changeset/resource-changeset";
-import { DatePickerModalHelper } from "core-components/datepicker/datepicker.modal.helper";
-import { BrowserDetector } from "core-app/modules/common/browser/browser-detector.service";
-import { ConfigurationService } from "core-app/modules/common/config/configuration.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { DatePicker } from "core-app/shared/components/op-date-picker/datepicker";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { ResourceChangeset } from "core-app/shared/components/fields/changeset/resource-changeset";
+import { DatePickerModalHelper } from "core-app/shared/components/datepicker/datepicker.modal.helper";
+import { BrowserDetector } from "core-app/core/browser/browser-detector.service";
+import { ConfigurationService } from "core-app/core/config/configuration.service";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
export type DateKeys = 'date'|'start'|'end';
diff --git a/frontend/src/app/components/datepicker/datepicker_mobile.modal.sass b/frontend/src/app/shared/components/datepicker/datepicker_mobile.modal.sass
similarity index 100%
rename from frontend/src/app/components/datepicker/datepicker_mobile.modal.sass
rename to frontend/src/app/shared/components/datepicker/datepicker_mobile.modal.sass
diff --git a/frontend/src/app/modules/common/dynamic-bootstrap/component/dynamic-bootstrap/dynamic-bootstrap.component.html b/frontend/src/app/shared/components/dynamic-bootstrap/component/dynamic-bootstrap/dynamic-bootstrap.component.html
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-bootstrap/component/dynamic-bootstrap/dynamic-bootstrap.component.html
rename to frontend/src/app/shared/components/dynamic-bootstrap/component/dynamic-bootstrap/dynamic-bootstrap.component.html
diff --git a/frontend/src/app/modules/common/dynamic-bootstrap/component/dynamic-bootstrap/dynamic-bootstrap.component.spec.ts b/frontend/src/app/shared/components/dynamic-bootstrap/component/dynamic-bootstrap/dynamic-bootstrap.component.spec.ts
similarity index 95%
rename from frontend/src/app/modules/common/dynamic-bootstrap/component/dynamic-bootstrap/dynamic-bootstrap.component.spec.ts
rename to frontend/src/app/shared/components/dynamic-bootstrap/component/dynamic-bootstrap/dynamic-bootstrap.component.spec.ts
index 28dcb8725c6..b550960356b 100644
--- a/frontend/src/app/modules/common/dynamic-bootstrap/component/dynamic-bootstrap/dynamic-bootstrap.component.spec.ts
+++ b/frontend/src/app/shared/components/dynamic-bootstrap/component/dynamic-bootstrap/dynamic-bootstrap.component.spec.ts
@@ -6,7 +6,7 @@ import {
} from '@angular/core/testing';
import { DynamicBootstrapComponent } from './dynamic-bootstrap.component';
import { ApplicationRef, Component, DebugElement } from '@angular/core';
-import { DynamicBootstrapper } from 'core-app/globals/dynamic-bootstrapper';
+import { DynamicBootstrapper } from 'core-app/core/setup/globals/dynamic-bootstrapper';
// Stub component to bootstrap dynamically
@Component({
diff --git a/frontend/src/app/modules/common/dynamic-bootstrap/component/dynamic-bootstrap/dynamic-bootstrap.component.ts b/frontend/src/app/shared/components/dynamic-bootstrap/component/dynamic-bootstrap/dynamic-bootstrap.component.ts
similarity index 92%
rename from frontend/src/app/modules/common/dynamic-bootstrap/component/dynamic-bootstrap/dynamic-bootstrap.component.ts
rename to frontend/src/app/shared/components/dynamic-bootstrap/component/dynamic-bootstrap/dynamic-bootstrap.component.ts
index d0e18d6cab7..9f7a41eb02d 100644
--- a/frontend/src/app/modules/common/dynamic-bootstrap/component/dynamic-bootstrap/dynamic-bootstrap.component.ts
+++ b/frontend/src/app/shared/components/dynamic-bootstrap/component/dynamic-bootstrap/dynamic-bootstrap.component.ts
@@ -11,7 +11,7 @@
*/
import { ApplicationRef, Component, ElementRef, Input } from '@angular/core';
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
-import { DynamicBootstrapper } from 'core-app/globals/dynamic-bootstrapper';
+import { DynamicBootstrapper } from 'core-app/core/setup/globals/dynamic-bootstrapper';
@Component({
selector: 'op-dynamic-bootstrap',
diff --git a/frontend/src/app/modules/common/dynamic-bootstrap/dynamic-bootstrap.module.ts b/frontend/src/app/shared/components/dynamic-bootstrap/dynamic-bootstrap.module.ts
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-bootstrap/dynamic-bootstrap.module.ts
rename to frontend/src/app/shared/components/dynamic-bootstrap/dynamic-bootstrap.module.ts
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component.html b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component.html
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component.html
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component.html
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-field-wrapper/dynamic-field-wrapper.component.sass b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component.scss
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-field-wrapper/dynamic-field-wrapper.component.sass
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component.scss
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component.ts
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component.ts
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-field-wrapper/dynamic-field-wrapper.component.html b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-field-wrapper/dynamic-field-wrapper.component.html
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-field-wrapper/dynamic-field-wrapper.component.html
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-field-wrapper/dynamic-field-wrapper.component.html
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-form/dynamic-form.component.scss b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-field-wrapper/dynamic-field-wrapper.component.sass
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-form/dynamic-form.component.scss
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-field-wrapper/dynamic-field-wrapper.component.sass
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-field-wrapper/dynamic-field-wrapper.component.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-field-wrapper/dynamic-field-wrapper.component.ts
similarity index 80%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-field-wrapper/dynamic-field-wrapper.component.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-field-wrapper/dynamic-field-wrapper.component.ts
index d5bac31d778..b3b8b367c9c 100644
--- a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-field-wrapper/dynamic-field-wrapper.component.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-field-wrapper/dynamic-field-wrapper.component.ts
@@ -1,6 +1,6 @@
import { Component, ChangeDetectionStrategy, Optional } from '@angular/core';
import { FieldWrapper } from "@ngx-formly/core";
-import { DynamicFormComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-form/dynamic-form.component";
+import { DynamicFormComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component";
@Component({
selector: 'op-dynamic-field-wrapper',
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-form/dynamic-form.component.html b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.html
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-form/dynamic-form.component.html
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.html
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.scss b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.scss
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.scss
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.scss
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-form/dynamic-form.component.spec.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.spec.ts
similarity index 88%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-form/dynamic-form.component.spec.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.spec.ts
index 5fc2e336928..bc7704dccfd 100644
--- a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-form/dynamic-form.component.spec.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.spec.ts
@@ -8,22 +8,22 @@ import { FormControl, FormGroup, NG_VALUE_ACCESSOR, ReactiveFormsModule } from "
import { CommonModule } from "@angular/common";
import { FormlyModule } from "@ngx-formly/core";
-import { DynamicFormComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-form/dynamic-form.component";
-import { DynamicFormService } from "core-app/modules/common/dynamic-forms/services/dynamic-form/dynamic-form.service";
-import { DynamicFieldsService } from "core-app/modules/common/dynamic-forms/services/dynamic-fields/dynamic-fields.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { TextInputComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/text-input/text-input.component";
-import { IntegerInputComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component";
-import { SelectInputComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/select-input/select-input.component";
-import { BooleanInputComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component";
-import { DateInputComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/date-input.component";
-import { FormattableTextareaInputComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component";
-import { DynamicFieldGroupWrapperComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component";
-import { OpFormFieldComponent } from "core-app/modules/common/forms/form-field/form-field.component";
+import { DynamicFormComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component";
+import { DynamicFormService } from "core-app/shared/components/dynamic-forms/services/dynamic-form/dynamic-form.service";
+import { DynamicFieldsService } from "core-app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { TextInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/text-input/text-input.component";
+import { IntegerInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component";
+import { SelectInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/select-input/select-input.component";
+import { BooleanInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component";
+import { DateInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/date-input.component";
+import { FormattableTextareaInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component";
+import { DynamicFieldGroupWrapperComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component";
+import { OpFormFieldComponent } from "core-app/shared/components/forms/form-field/form-field.component";
import { HttpClientTestingModule } from "@angular/common/http/testing";
-import { DynamicFieldWrapperComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-field-wrapper/dynamic-field-wrapper.component";
+import { DynamicFieldWrapperComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-field-wrapper/dynamic-field-wrapper.component";
@Component({
template: `
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-form/dynamic-form.component.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.ts
similarity index 93%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-form/dynamic-form.component.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.ts
index 5f23c1b133a..9c2962a4526 100644
--- a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-form/dynamic-form.component.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component.ts
@@ -11,16 +11,16 @@ import {
import { FormlyForm } from "@ngx-formly/core";
import { DynamicFormService } from "../../services/dynamic-form/dynamic-form.service";
import { IDynamicFieldGroupConfig, IOPDynamicFormSettings, IOPFormlyFieldSettings } from "../../typings";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
import { catchError, finalize } from "rxjs/operators";
-import { HalSource } from "core-app/modules/hal/resources/hal-resource";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { DynamicFieldsService } from "core-app/modules/common/dynamic-forms/services/dynamic-fields/dynamic-fields.service";
+import { HalSource } from "core-app/features/hal/resources/hal-resource";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { DynamicFieldsService } from "core-app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service";
import { FormGroup } from "@angular/forms";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { FormsService } from "core-app/core/services/forms/forms.service";
import { HttpErrorResponse } from "@angular/common/http";
+import { FormsService } from "core-app/core/forms/forms.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
/**
* SETTINGS:
@@ -88,7 +88,7 @@ import { HttpErrorResponse } from "@angular/common/http";
*
* - fieldsSettingsPipe:
* Allows to modify the dynamicFormFields settings before the form is rendered.
-*
+ *
* ```
* <op-dynamic-form [formUrl]="formUrl"
* [formHttpMethod]="formHttpMethod"
@@ -106,11 +106,11 @@ import { HttpErrorResponse } from "@angular/common/http";
* const fieldGroups = [{
* name: 'Advanced settings',
* fieldsFilter: (field) => !['name', 'parent'].includes(field.templateOptions?.property!),
-* settings: {
-* templateOptions: {
-* collapsibleFieldGroupsCollapsed: false
-* }
-* }
+ * settings: {
+ * templateOptions: {
+ * collapsibleFieldGroupsCollapsed: false
+ * }
+ * }
* }];
* ```
*/
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.html b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.html
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.html
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.html
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/date-input.component.scss b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.scss
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/date-input.component.scss
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.scss
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.spec.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.spec.ts
similarity index 92%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.spec.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.spec.ts
index 233098b561d..19965505988 100644
--- a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.spec.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.spec.ts
@@ -2,7 +2,7 @@ import { fakeAsync } from '@angular/core/testing';
import {
createDynamicInputFixture,
testDynamicInputControValueAccessor,
-} from "core-app/modules/common/dynamic-forms/spec/helpers";
+} from "core-app/shared/components/dynamic-forms/spec/helpers";
describe('BooleanInputComponent', () => {
it('should load the field', fakeAsync(() => {
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.ts
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component.ts
diff --git a/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-adapter/date-picker-adapter.component.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-adapter/date-picker-adapter.component.ts
new file mode 100644
index 00000000000..cca4f70361b
--- /dev/null
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-adapter/date-picker-adapter.component.ts
@@ -0,0 +1,87 @@
+import { AfterViewInit, ChangeDetectorRef, Component, forwardRef, NgZone } from '@angular/core';
+import { OpDatePickerComponent } from "core-app/shared/components/op-date-picker/op-date-picker.component";
+import * as moment from "moment";
+import { NG_VALUE_ACCESSOR } from "@angular/forms";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
+
+@Component({
+ selector: 'op-date-picker-adapter',
+ templateUrl: '../../../../../../op-date-picker/op-date-picker.component.html',
+ providers: [
+ {
+ provide: NG_VALUE_ACCESSOR,
+ useExisting: forwardRef(() => DatePickerAdapterComponent),
+ multi: true
+ }
+ ]
+})
+export class DatePickerAdapterComponent extends OpDatePickerComponent implements AfterViewInit {
+ onControlChange = (_:any) => { }
+ onControlTouch = () => { }
+
+ constructor(
+ timezoneService:TimezoneService,
+ private ngZone: NgZone,
+ private changeDetectorRef:ChangeDetectorRef,
+ ) {
+ super(timezoneService);
+ }
+
+ writeValue(date:string):void {
+ this.initialDate = this.formatter(date);
+ }
+
+ registerOnChange(fn: (_: any) => void): void {
+ this.onControlChange = fn;
+ }
+
+ registerOnTouched(fn: any): void {
+ this.onControlTouch = fn;
+ }
+
+ setDisabledState(disabled: boolean): void {
+ this.disabled = disabled;
+ }
+
+ ngAfterViewInit():void {
+ this.ngZone.runOutsideAngular(() => {
+ setTimeout(() => {
+ this.initializeDatepicker();
+ this.changeDetectorRef.detectChanges();
+ });
+ });
+ }
+
+ onInputChange(_event:KeyboardEvent) {
+ if (this.isEmpty()) {
+ this.datePickerInstance.clear();
+ } else if (this.inputIsValidDate()) {
+ const valueToEmit = this.parser(this.currentValue);
+ this.onControlTouch();
+ this.onControlChange(valueToEmit);
+ }
+ }
+
+ closeOnOutsideClick(event:any) {
+ super.closeOnOutsideClick(event);
+ this.onControlTouch();
+ }
+
+ public parser(data:any) {
+ if (moment(data, 'YYYY-MM-DD', true).isValid()) {
+ return data;
+ } else {
+ return null;
+ }
+ }
+
+ public formatter(data:any):string {
+ if (moment(data, 'YYYY-MM-DD', true).isValid()) {
+ var d = this.timezoneService.parseDate(data);
+
+ return this.timezoneService.formattedISODate(d);
+ } else {
+ return '';
+ }
+ }
+}
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.component.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.component.ts
similarity index 92%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.component.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.component.ts
index 4a45921edbb..e950b821abb 100644
--- a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.component.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.component.ts
@@ -1,8 +1,8 @@
import { AfterViewInit, ChangeDetectorRef, Component, forwardRef, Input, NgZone } from '@angular/core';
-import { OpDatePickerComponent } from "core-app/modules/common/op-date-picker/op-date-picker.component";
-import { TimezoneService } from "core-components/datetime/timezone.service";
import * as moment from "moment";
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from "@angular/forms";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
+import { OpDatePickerComponent } from "core-app/shared/components/op-date-picker/op-date-picker.component";
@Component({
selector: 'op-date-picker-control',
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.module.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.module.ts
similarity index 52%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.module.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.module.ts
index e90d92d4c86..a794d421000 100644
--- a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.module.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.module.ts
@@ -1,7 +1,8 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
-import { DatePickerControlComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.component";
-import { DatePickerModule } from "core-app/modules/common/op-date-picker/date-picker.module";
+import { DatePickerModule } from "core-app/shared/components/op-date-picker/date-picker.module";
+import { DatePickerControlComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.component";
+
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/date-input.component.html b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/date-input.component.html
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/date-input.component.html
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/date-input.component.html
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.scss b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/date-input.component.scss
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.scss
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/date-input.component.scss
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/date-input.component.spec.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/date-input.component.spec.ts
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/date-input.component.spec.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/date-input.component.spec.ts
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/date-input.component.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/date-input.component.ts
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/date-input.component.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/date-input.component.ts
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.html b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.html
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.html
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.html
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.scss b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.scss
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.scss
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.scss
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.spec.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.spec.ts
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.spec.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.spec.ts
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.ts
similarity index 88%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.ts
index 69c362a1eae..9850d47f716 100644
--- a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component.ts
@@ -1,9 +1,9 @@
import { Component, forwardRef, Input, OnInit, ViewChild } from '@angular/core';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { FormlyTemplateOptions } from "@ngx-formly/core";
-import { ICKEditorContext, ICKEditorInstance } from "core-app/modules/common/ckeditor/ckeditor-setup.service";
+import { ICKEditorContext, ICKEditorInstance } from "core-app/shared/components/editor/components/ckeditor/ckeditor-setup.service";
import { ControlValueAccessor, NG_VALUE_ACCESSOR } from "@angular/forms";
-import { OpCkeditorComponent } from "core-app/modules/common/ckeditor/op-ckeditor.component";
+import { OpCkeditorComponent } from "core-app/shared/components/editor/components/ckeditor/op-ckeditor.component";
@Component({
selector: 'op-formattable-control',
diff --git a/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.module.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.module.ts
new file mode 100644
index 00000000000..84a4c11bb37
--- /dev/null
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.module.ts
@@ -0,0 +1,22 @@
+import { NgModule } from '@angular/core';
+import { CommonModule } from '@angular/common';
+import { FormattableControlComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component";
+import { OpenprojectEditorModule } from "core-app/shared/components/editor/openproject-editor.module";
+import { FormattableEditFieldModule } from "core-app/shared/components/fields/edit/field-types/formattable-edit-field/formattable-edit-field.module";
+
+
+
+@NgModule({
+ declarations: [
+ FormattableControlComponent,
+ ],
+ imports: [
+ CommonModule,
+ OpenprojectEditorModule,
+ FormattableEditFieldModule,
+ ],
+ exports: [
+ FormattableControlComponent,
+ ]
+})
+export class FormattableControlModule { }
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.html b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.html
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.html
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.html
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.scss b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.scss
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.scss
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.scss
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.spec.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.spec.ts
similarity index 91%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.spec.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.spec.ts
index 3d703d04240..0a19493c421 100644
--- a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.spec.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.spec.ts
@@ -1,10 +1,10 @@
import { discardPeriodicTasks, fakeAsync, flush, tick } from '@angular/core/testing';
import {
createDynamicInputFixture,
-} from "core-app/modules/common/dynamic-forms/spec/helpers";
+} from "core-app/shared/components/dynamic-forms/spec/helpers";
import { By } from "@angular/platform-browser";
// @ts-ignore
-import(/* webpackChunkName: "ckeditor" */ 'core-vendor/ckeditor/ckeditor.js');
+import(/* webpackChunkName: "ckeditor-augmented-textarea" */ 'core-vendor/ckeditor/ckeditor.js');
describe('FormattableTextareaInputComponent', () => {
it('should load the field', fakeAsync(() => {
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.ts
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component.ts
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.html b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.html
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.html
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.html
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.scss b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.scss
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.scss
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.scss
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.spec.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.spec.ts
similarity index 92%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.spec.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.spec.ts
index d01f864a78d..327553e4455 100644
--- a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.spec.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.spec.ts
@@ -2,7 +2,7 @@ import { fakeAsync } from '@angular/core/testing';
import {
createDynamicInputFixture,
testDynamicInputControValueAccessor,
-} from "core-app/modules/common/dynamic-forms/spec/helpers";
+} from "core-app/shared/components/dynamic-forms/spec/helpers";
describe('IntegerInputComponent', () => {
it('should load the field', fakeAsync(() => {
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.ts
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component.ts
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.html b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.html
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.html
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.html
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.scss b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.scss
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.scss
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.scss
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.spec.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.spec.ts
similarity index 97%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.spec.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.spec.ts
index 2d9359d602e..41ece9b3334 100644
--- a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.spec.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.spec.ts
@@ -1,7 +1,7 @@
import { fakeAsync, flush } from '@angular/core/testing';
import {
createDynamicInputFixture,
-} from "core-app/modules/common/dynamic-forms/spec/helpers";
+} from "core-app/shared/components/dynamic-forms/spec/helpers";
import { By } from "@angular/platform-browser";
import { of } from "rxjs";
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.ts
similarity index 86%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.ts
index b606aea1802..11de180194a 100644
--- a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/select-input/select-input.component.ts
@@ -1,6 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { FieldType } from "@ngx-formly/core";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
@Component({
selector: 'op-select-input',
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/select-project-status-input/select-project-status-input.component.html b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/select-project-status-input/select-project-status-input.component.html
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/select-project-status-input/select-project-status-input.component.html
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/select-project-status-input/select-project-status-input.component.html
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/select-project-status-input/select-project-status-input.component.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/select-project-status-input/select-project-status-input.component.ts
similarity index 76%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/select-project-status-input/select-project-status-input.component.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/select-project-status-input/select-project-status-input.component.ts
index d7eb7005a18..c8c7bf66705 100644
--- a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/select-project-status-input/select-project-status-input.component.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/select-project-status-input/select-project-status-input.component.ts
@@ -1,6 +1,6 @@
import { Component } from '@angular/core';
import { FieldType } from "@ngx-formly/core";
-import { projectStatusCodeCssClass } from "core-app/modules/fields/helpers/project-status-helper";
+import { projectStatusCodeCssClass } from "core-app/shared/components/fields/helpers/project-status-helper";
@Component({
selector: 'op-select-project-status-input',
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.html b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.html
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.html
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.html
diff --git a/frontend/src/app/modules/fields/edit/field-types/project-status-edit-field.component.sass b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.scss
similarity index 100%
rename from frontend/src/app/modules/fields/edit/field-types/project-status-edit-field.component.sass
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.scss
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.spec.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.spec.ts
similarity index 93%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.spec.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.spec.ts
index d45e03e6399..b155bf89382 100644
--- a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.spec.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.spec.ts
@@ -2,7 +2,7 @@ import { fakeAsync } from '@angular/core/testing';
import {
createDynamicInputFixture,
testDynamicInputControValueAccessor,
-} from "core-app/modules/common/dynamic-forms/spec/helpers";
+} from "core-app/shared/components/dynamic-forms/spec/helpers";
describe('TextInputComponent', () => {
it('should load the field', fakeAsync(() => {
diff --git a/frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.ts b/frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.ts
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.ts
rename to frontend/src/app/shared/components/dynamic-forms/components/dynamic-inputs/text-input/text-input.component.ts
diff --git a/frontend/src/app/shared/components/dynamic-forms/dynamic-forms.module.ts b/frontend/src/app/shared/components/dynamic-forms/dynamic-forms.module.ts
new file mode 100644
index 00000000000..79cd8982a22
--- /dev/null
+++ b/frontend/src/app/shared/components/dynamic-forms/dynamic-forms.module.ts
@@ -0,0 +1,80 @@
+import { NgModule } from "@angular/core";
+import { CommonModule } from "@angular/common";
+import { TextInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/text-input/text-input.component";
+import { HTTP_INTERCEPTORS, HttpClientModule } from "@angular/common/http";
+import { IntegerInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component";
+import { FormlyModule } from "@ngx-formly/core";
+import { SelectInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/select-input/select-input.component";
+import { SelectProjectStatusInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/select-project-status-input/select-project-status-input.component";
+import { NgOptionHighlightModule } from "@ng-select/ng-option-highlight";
+import { NgSelectModule } from "@ng-select/ng-select";
+import { DatePickerControlModule } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/components/date-picker-control/date-picker-control.module";
+import { BooleanInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component";
+import { DynamicFormComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-form/dynamic-form.component";
+import { FormattableTextareaInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component";
+import { DynamicFieldWrapperComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-field-wrapper/dynamic-field-wrapper.component";
+import { InviteUserButtonModule } from "core-app/features/invite-user-modal/button/invite-user-button.module";
+import { DateInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/date-input.component";
+import { DynamicFieldGroupWrapperComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component";
+import { OpenProjectHeaderInterceptor } from "core-app/features/hal/http/openproject-header-interceptor";
+import { ReactiveFormsModule } from "@angular/forms";
+import { FormattableControlModule } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.module";
+import { OPSharedModule } from "core-app/shared/shared.module";
+
+
+@NgModule({
+ imports: [
+ CommonModule,
+ ReactiveFormsModule,
+ FormlyModule.forRoot({
+ types: [
+ { name: 'booleanInput', component: BooleanInputComponent },
+ { name: 'integerInput', component: IntegerInputComponent },
+ { name: 'textInput', component: TextInputComponent },
+ { name: 'dateInput', component: DateInputComponent },
+ { name: 'selectInput', component: SelectInputComponent },
+ { name: 'selectProjectStatusInput', component: SelectProjectStatusInputComponent },
+ { name: 'formattableInput', component: FormattableTextareaInputComponent },
+ ],
+ wrappers: [
+ {
+ name: 'op-dynamic-field-group-wrapper',
+ component: DynamicFieldGroupWrapperComponent,
+ },
+ {
+ name: 'op-dynamic-field-wrapper',
+ component: DynamicFieldWrapperComponent,
+ },
+ ]
+ }),
+ HttpClientModule,
+ OPSharedModule,
+
+ // Input dependencies
+ NgSelectModule,
+ NgOptionHighlightModule,
+ InviteUserButtonModule,
+ DatePickerControlModule,
+ FormattableControlModule,
+ ],
+ declarations: [
+ DynamicFormComponent,
+ DynamicFieldGroupWrapperComponent,
+ DynamicFieldWrapperComponent,
+ // Input Types
+ BooleanInputComponent,
+ IntegerInputComponent,
+ TextInputComponent,
+ SelectInputComponent,
+ SelectProjectStatusInputComponent,
+ DateInputComponent,
+ FormattableTextareaInputComponent,
+ ],
+ providers: [
+ { provide: HTTP_INTERCEPTORS, useClass: OpenProjectHeaderInterceptor, multi: true },
+ ],
+ exports: [
+ DynamicFormComponent,
+ ]
+})
+export class DynamicFormsModule {}
diff --git a/frontend/src/app/modules/common/dynamic-forms/services/dynamic-fields/dynamic-fields.service.spec.ts b/frontend/src/app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service.spec.ts
similarity index 60%
rename from frontend/src/app/modules/common/dynamic-forms/services/dynamic-fields/dynamic-fields.service.spec.ts
rename to frontend/src/app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service.spec.ts
index bb6bd67dca6..2d409e8064c 100644
--- a/frontend/src/app/modules/common/dynamic-forms/services/dynamic-fields/dynamic-fields.service.spec.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service.spec.ts
@@ -1,48 +1,14 @@
import { TestBed } from '@angular/core/testing';
import { HttpClientTestingModule, HttpTestingController } from "@angular/common/http/testing";
import { HttpClient } from "@angular/common/http";
-import { DynamicFieldsService } from "core-app/modules/common/dynamic-forms/services/dynamic-fields/dynamic-fields.service";
+import { DynamicFieldsService } from "core-app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service";
import { isObservable } from "rxjs";
-import { IOPFormlyFieldSettings } from "core-app/modules/common/dynamic-forms/typings";
+import { IOPFormlyFieldSettings } from "core-app/shared/components/dynamic-forms/typings";
describe('DynamicFieldsService', () => {
let httpClient: HttpClient;
let httpTestingController: HttpTestingController;
let service:DynamicFieldsService;
- const formSchema = {
- "name": {
- "type": "String",
- "name": "Name",
- "required": true,
- "hasDefault": false,
- "writable": true,
- "minLength": 1,
- "maxLength": 255,
- "options": {}
- },
- "parent": {
- "type": "Project",
- "name": "Subproject of",
- "required": false,
- "hasDefault": false,
- "location": "_links",
- "writable": true,
- "_links": {
- "allowedValues": {
- "href": "/api/v3/projects/available_parent_projects?of=25"
- }
- }
- },
- "id": {
- "type": "Integer",
- "name": "ID",
- "required": true,
- "hasDefault": false,
- "writable": false,
- "options": {}
- },
- _dependencies: [],
- };
beforeEach(() => {
TestBed.configureTestingModule({
@@ -72,6 +38,40 @@ describe('DynamicFieldsService', () => {
}
}
};
+ const formSchema = {
+ "name": {
+ "type": "String",
+ "name": "Name",
+ "required": true,
+ "hasDefault": false,
+ "writable": true,
+ "minLength": 1,
+ "maxLength": 255,
+ "options": {}
+ },
+ "parent": {
+ "type": "Project",
+ "name": "Subproject of",
+ "required": false,
+ "hasDefault": false,
+ "location": "_links",
+ "writable": true,
+ "_links": {
+ "allowedValues": {
+ "href": "/api/v3/projects/available_parent_projects?of=25"
+ }
+ }
+ },
+ "id": {
+ "type": "Integer",
+ "name": "ID",
+ "required": true,
+ "hasDefault": false,
+ "writable": false,
+ "options": {}
+ },
+ _dependencies: [],
+ };
// @ts-ignore
const fieldsSchemas = service.getFieldsSchemasWithKey(formSchema, formPayload);
@@ -101,6 +101,44 @@ describe('DynamicFieldsService', () => {
]
},
};
+ const formSchema = {
+ "title": {
+ "type": "String",
+ "name": "Name",
+ "required": true,
+ "hasDefault": false,
+ "writable": true,
+ "minLength": 1,
+ "maxLength": 255,
+ "options": {}
+ },
+ "parent": {
+ "type": "Project",
+ "name": "Subproject of",
+ "required": false,
+ "hasDefault": false,
+ "writable": true,
+ "location": "_links",
+ "_links": {
+ "allowedValues": {
+ "href": "/api/v3/projects/available_parent_projects?of=25"
+ }
+ }
+ },
+ "children": {
+ "type": "Project",
+ "name": "Project's children",
+ "required": false,
+ "hasDefault": false,
+ "writable": true,
+ "_links": {
+ "allowedValues": {
+ "href": "/api/v3/projects/available_parent_projects?of=25"
+ }
+ }
+ },
+ _dependencies: [],
+ };
// @ts-ignore
const formModel = service.getModel(formPayload);
@@ -123,10 +161,30 @@ describe('DynamicFieldsService', () => {
},
}
};
- const {parent, name} = formSchema;
- const formSchemaWithGroups = {
- parent,
- name,
+ const formSchema = {
+ "parent": {
+ "type": "Project",
+ "name": "Subproject of",
+ "required": false,
+ "hasDefault": false,
+ "writable": true,
+ "_links": {
+ "allowedValues": {
+ "href": "/api/v3/projects/available_parent_projects?of=25"
+ }
+ }
+ },
+ "name": {
+ "type": "String",
+ "name": "Name",
+ "required": true,
+ "hasDefault": false,
+ "writable": true,
+ "minLength": 1,
+ "maxLength": 255,
+ "options": {},
+ "attributeGroup": "People"
+ },
_attributeGroups: [
{
"_type": "WorkPackageFormAttributeGroup",
@@ -138,7 +196,7 @@ describe('DynamicFieldsService', () => {
]
};
// @ts-ignore
- const formlyConfig = service.getConfig(formSchemaWithGroups, formPayload);
+ const formlyConfig = service.getConfig(formSchema, formPayload);
const formlyFields = formlyConfig.reduce((result, formlyField) => {
return formlyField.fieldGroup ? [...result, ...formlyField.fieldGroup] : [...result, formlyField];
}, [] as IOPFormlyFieldSettings[]);
@@ -153,52 +211,4 @@ describe('DynamicFieldsService', () => {
expect(formGroup.templateOptions!.label).toEqual('People', 'should add the correct label to the field group wrapper');
expect(formGroup.fieldGroup![0].key).toEqual('name', 'should add the correct key to the field group wrapper');
});
-
- it('should group fields from @Input fieldGroups (IDynamicFieldGroupConfig)', () => {
- const formPayload = {};
- const {parent, name} = formSchema;
- const formSchemaWithGroups = {
- parent,
- name,
- "id": {
- "type": "Integer",
- "name": "ID",
- "required": true,
- "hasDefault": false,
- "writable": true,
- "options": {}
- },
- _attributeGroups: [
- {
- "_type": "WorkPackageFormAttributeGroup",
- "name": "People",
- "attributes": [
- "name",
- ]
- },
- ]
- };
- const fieldGroups = [
- {
- name: 'Advanced settings',
- fieldsFilter: (field:IOPFormlyFieldSettings) => ['name', 'parent'].includes(field.templateOptions?.property!),
- settings: {
- templateOptions: {
- collapsibleFieldGroupsCollapsed: false
- }
- }
- }
- ];
- const formConfig = service.getConfig(formSchemaWithGroups, formPayload);
- const formConfigWithFieldGroups = service.getFormlyFormWithFieldGroups(fieldGroups, formConfig);
- const fieldGroup = formConfigWithFieldGroups[1];
-
- expect(formConfigWithFieldGroups?.length).toBe(2, 'should create the correct number of fields (1 field + 1 field group)');
- expect(fieldGroup?.wrappers![0]).toBe('op-dynamic-field-group-wrapper', 'should set the correct group label');
- expect(fieldGroup?.templateOptions?.label).toBe(fieldGroups[0].name, 'should set the correct group label (overwriting previous grouping)');
- expect(fieldGroup?.templateOptions?.isFieldGroup).toBe(true, 'should set isFieldGroup to true');
- expect(fieldGroup?.templateOptions?.collapsibleFieldGroups).toBe(true, 'should set collapsibleFieldGroups to true');
- expect(fieldGroup?.templateOptions?.collapsibleFieldGroupsCollapsed).toBe(false, 'should overwrite the default group options with the group settings');
- expect(fieldGroup?.fieldGroup?.length).toBe(2, 'should contain the correct number of fields');
- });
});
diff --git a/frontend/src/app/modules/common/dynamic-forms/services/dynamic-fields/dynamic-fields.service.ts b/frontend/src/app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service.ts
similarity index 99%
rename from frontend/src/app/modules/common/dynamic-forms/services/dynamic-fields/dynamic-fields.service.ts
rename to frontend/src/app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service.ts
index 02831dc44e7..f4848f8ee08 100644
--- a/frontend/src/app/modules/common/dynamic-forms/services/dynamic-fields/dynamic-fields.service.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service.ts
@@ -8,8 +8,8 @@ import { FormlyFieldConfig } from "@ngx-formly/core";
import { Observable, of } from "rxjs";
import { map } from "rxjs/operators";
import { HttpClient } from "@angular/common/http";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { HalLink } from "core-app/modules/hal/hal-link/hal-link";
+import { HalLink } from "core-app/features/hal/hal-link/hal-link";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Injectable()
@@ -435,3 +435,4 @@ export class DynamicFieldsService {
}
}
+
diff --git a/frontend/src/app/modules/common/dynamic-forms/services/dynamic-form/dynamic-form.service.spec.ts b/frontend/src/app/shared/components/dynamic-forms/services/dynamic-form/dynamic-form.service.spec.ts
similarity index 93%
rename from frontend/src/app/modules/common/dynamic-forms/services/dynamic-form/dynamic-form.service.spec.ts
rename to frontend/src/app/shared/components/dynamic-forms/services/dynamic-form/dynamic-form.service.spec.ts
index 3478934b8ae..b8c93945b86 100644
--- a/frontend/src/app/modules/common/dynamic-forms/services/dynamic-form/dynamic-form.service.spec.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/services/dynamic-form/dynamic-form.service.spec.ts
@@ -1,11 +1,11 @@
import { TestBed } from '@angular/core/testing';
-import { DynamicFormService } from "core-app/modules/common/dynamic-forms/services/dynamic-form/dynamic-form.service";
+import { DynamicFormService } from "core-app/shared/components/dynamic-forms/services/dynamic-form/dynamic-form.service";
import { HttpClientTestingModule, HttpTestingController } from "@angular/common/http/testing";
import { HttpClient } from "@angular/common/http";
-import { DynamicFieldsService } from "core-app/modules/common/dynamic-forms/services/dynamic-fields/dynamic-fields.service";
+import { DynamicFieldsService } from "core-app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service";
import { FormGroup } from "@angular/forms";
import { of } from "rxjs";
-import { FormsService } from "core-app/core/services/forms/forms.service";
+import { FormsService } from "core-app/core/forms/forms.service";
describe('DynamicFormService', () => {
let httpClient:HttpClient;
diff --git a/frontend/src/app/modules/common/dynamic-forms/services/dynamic-form/dynamic-form.service.ts b/frontend/src/app/shared/components/dynamic-forms/services/dynamic-form/dynamic-form.service.ts
similarity index 90%
rename from frontend/src/app/modules/common/dynamic-forms/services/dynamic-form/dynamic-form.service.ts
rename to frontend/src/app/shared/components/dynamic-forms/services/dynamic-form/dynamic-form.service.ts
index ba04b92b876..3b81b91879c 100644
--- a/frontend/src/app/modules/common/dynamic-forms/services/dynamic-form/dynamic-form.service.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/services/dynamic-form/dynamic-form.service.ts
@@ -9,8 +9,8 @@ import {
import {
IOPDynamicFormSettings,
} from "../../typings";
-import { DynamicFieldsService } from "core-app/modules/common/dynamic-forms/services/dynamic-fields/dynamic-fields.service";
-import { FormsService } from "core-app/core/services/forms/forms.service";
+import { DynamicFieldsService } from "core-app/shared/components/dynamic-forms/services/dynamic-fields/dynamic-fields.service";
+import { FormsService } from "core-app/core/forms/forms.service";
@Injectable()
export class DynamicFormService {
dynamicForm:FormlyForm;
diff --git a/frontend/src/app/modules/common/dynamic-forms/spec/helpers.ts b/frontend/src/app/shared/components/dynamic-forms/spec/helpers.ts
similarity index 68%
rename from frontend/src/app/modules/common/dynamic-forms/spec/helpers.ts
rename to frontend/src/app/shared/components/dynamic-forms/spec/helpers.ts
index 0eb78a4a613..ee2b96f5c9c 100644
--- a/frontend/src/app/modules/common/dynamic-forms/spec/helpers.ts
+++ b/frontend/src/app/shared/components/dynamic-forms/spec/helpers.ts
@@ -2,26 +2,26 @@ import { ComponentFixture, TestBed } from "@angular/core/testing";
import { Component, forwardRef, ViewChild } from "@angular/core";
import { FormGroup, NG_VALUE_ACCESSOR, ReactiveFormsModule } from "@angular/forms";
import { CommonModule } from "@angular/common";
-import { TextInputComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/text-input/text-input.component";
-import { IntegerInputComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component";
-import { SelectInputComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/select-input/select-input.component";
-import { SelectProjectStatusInputComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/select-project-status-input/select-project-status-input.component";
-import { BooleanInputComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component";
-import { DateInputComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/date-input/date-input.component";
-import { FormattableTextareaInputComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component";
-import { DynamicFieldGroupWrapperComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component";
+import { TextInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/text-input/text-input.component";
+import { IntegerInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/integer-input/integer-input.component";
+import { SelectInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/select-input/select-input.component";
+import { SelectProjectStatusInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/select-project-status-input/select-project-status-input.component";
+import { BooleanInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/boolean-input/boolean-input.component";
+import { DateInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/date-input/date-input.component";
+import { FormattableTextareaInputComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/formattable-textarea-input.component";
+import { DynamicFieldGroupWrapperComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-field-group-wrapper/dynamic-field-group-wrapper.component";
import { NgSelectModule } from "@ng-select/ng-select";
import { NgOptionHighlightModule } from "@ng-select/ng-option-highlight";
import { FormlyModule } from "@ngx-formly/core";
-import { IOPFormlyFieldSettings } from "core-app/modules/common/dynamic-forms/typings";
+import { IOPFormlyFieldSettings } from "core-app/shared/components/dynamic-forms/typings";
import { FormlyForm } from "@ngx-formly/core";
import { By } from "@angular/platform-browser";
-import { FormattableControlComponent } from "core-app/modules/common/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component";
-import { OpCkeditorComponent } from "core-app/modules/common/ckeditor/op-ckeditor.component";
-import { ConfigurationService } from "core-app/modules/common/config/configuration.service";
-import { CKEditorSetupService } from "core-app/modules/common/ckeditor/ckeditor-setup.service";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { OpFormFieldComponent } from "core-app/modules/common/forms/form-field/form-field.component";
+import { FormattableControlComponent } from "core-app/shared/components/dynamic-forms/components/dynamic-inputs/formattable-textarea-input/components/formattable-control/formattable-control.component";
+import { OpCkeditorComponent } from "core-app/shared/components/editor/components/ckeditor/op-ckeditor.component";
+import { ConfigurationService } from "core-app/core/config/configuration.service";
+import { CKEditorSetupService } from "core-app/shared/components/editor/components/ckeditor/ckeditor-setup.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { OpFormFieldComponent } from "core-app/shared/components/forms/form-field/form-field.component";
export function createDynamicInputFixture(fields: IOPFormlyFieldSettings[], model:any, providers?:any[]): ComponentFixture<any> {
@Component({
diff --git a/frontend/src/app/modules/common/dynamic-forms/typings.d.ts b/frontend/src/app/shared/components/dynamic-forms/typings.d.ts
similarity index 100%
rename from frontend/src/app/modules/common/dynamic-forms/typings.d.ts
rename to frontend/src/app/shared/components/dynamic-forms/typings.d.ts
diff --git a/frontend/src/app/modules/common/editable-toolbar-title/editable-toolbar-title.component.ts b/frontend/src/app/shared/components/editable-toolbar-title/editable-toolbar-title.component.ts
similarity index 96%
rename from frontend/src/app/modules/common/editable-toolbar-title/editable-toolbar-title.component.ts
rename to frontend/src/app/shared/components/editable-toolbar-title/editable-toolbar-title.component.ts
index b2c8299caad..df56975a75c 100644
--- a/frontend/src/app/modules/common/editable-toolbar-title/editable-toolbar-title.component.ts
+++ b/frontend/src/app/shared/components/editable-toolbar-title/editable-toolbar-title.component.ts
@@ -37,9 +37,9 @@ import {
SimpleChanges,
ViewChild
} from "@angular/core";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { ContainHelpers } from "core-app/modules/focus/contain-helpers";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { ContainHelpers } from "core-app/shared/directives/focus/contain-helpers";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export const triggerEditingEvent = 'op:selectableTitle:trigger';
export const selectableTitleIdentifier = 'editable-toolbar-title';
diff --git a/frontend/src/app/modules/common/editable-toolbar-title/editable-toolbar-title.html b/frontend/src/app/shared/components/editable-toolbar-title/editable-toolbar-title.html
similarity index 100%
rename from frontend/src/app/modules/common/editable-toolbar-title/editable-toolbar-title.html
rename to frontend/src/app/shared/components/editable-toolbar-title/editable-toolbar-title.html
diff --git a/frontend/src/app/modules/common/editable-toolbar-title/editable-toolbar-title.sass b/frontend/src/app/shared/components/editable-toolbar-title/editable-toolbar-title.sass
similarity index 100%
rename from frontend/src/app/modules/common/editable-toolbar-title/editable-toolbar-title.sass
rename to frontend/src/app/shared/components/editable-toolbar-title/editable-toolbar-title.sass
diff --git a/frontend/src/app/ckeditor/ckeditor-augmented-textarea.component.ts b/frontend/src/app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.component.ts
similarity index 85%
rename from frontend/src/app/ckeditor/ckeditor-augmented-textarea.component.ts
rename to frontend/src/app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.component.ts
index 8ae64c3a58d..d8b1f1d7402 100644
--- a/frontend/src/app/ckeditor/ckeditor-augmented-textarea.component.ts
+++ b/frontend/src/app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.component.ts
@@ -27,22 +27,22 @@
//++
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
-import { States } from 'core-components/states.service';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { States } from 'core-app/core/states/states.service';
import { filter, takeUntil } from 'rxjs/operators';
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import {
ICKEditorContext,
ICKEditorInstance,
- ICKEditorType
-} from "core-app/modules/common/ckeditor/ckeditor-setup.service";
-import { OpCkeditorComponent } from "core-app/modules/common/ckeditor/op-ckeditor.component";
+ ICKEditorType,
+} from "core-app/shared/components/editor/components/ckeditor/ckeditor-setup.service";
+import { OpCkeditorComponent } from "core-app/shared/components/editor/components/ckeditor/op-ckeditor.component";
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
export const ckeditorAugmentedTextareaSelector = 'ckeditor-augmented-textarea';
@@ -173,18 +173,18 @@ export class CkeditorAugmentedTextareaComponent extends UntilDestroyedMixin impl
takeUntil(componentDestroyed(this)),
filter(resource => !!resource)
).subscribe(resource => {
- const missingAttachments = _.differenceBy(this.attachments,
+ const missingAttachments = _.differenceBy(this.attachments,
resource!.attachments.elements,
(attachment:HalResource) => attachment.id);
- const removedUrls = missingAttachments.map(attachment => attachment.downloadLocation.href);
+ const removedUrls = missingAttachments.map(attachment => attachment.downloadLocation.href);
- if (removedUrls.length) {
- editor.model.fire('op:attachment-removed', removedUrls);
- }
+ if (removedUrls.length) {
+ editor.model.fire('op:attachment-removed', removedUrls);
+ }
- this.attachments = _.clone(resource!.attachments.elements);
- });
+ this.attachments = _.clone(resource!.attachments.elements);
+ });
}
private setLabel() {
diff --git a/frontend/src/app/ckeditor/ckeditor-augmented-textarea.html b/frontend/src/app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.html
similarity index 100%
rename from frontend/src/app/ckeditor/ckeditor-augmented-textarea.html
rename to frontend/src/app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.html
diff --git a/frontend/src/app/modules/common/ckeditor/ckeditor-preview.service.ts b/frontend/src/app/shared/components/editor/components/ckeditor/ckeditor-preview.service.ts
similarity index 96%
rename from frontend/src/app/modules/common/ckeditor/ckeditor-preview.service.ts
rename to frontend/src/app/shared/components/editor/components/ckeditor/ckeditor-preview.service.ts
index a66a888cc27..2358442dba1 100644
--- a/frontend/src/app/modules/common/ckeditor/ckeditor-preview.service.ts
+++ b/frontend/src/app/shared/components/editor/components/ckeditor/ckeditor-preview.service.ts
@@ -27,7 +27,7 @@
//++
import { ApplicationRef, ComponentFactoryResolver, ComponentRef, Injectable, Injector } from "@angular/core";
-import { DynamicBootstrapper } from "core-app/globals/dynamic-bootstrapper";
+import { DynamicBootstrapper } from "core-app/core/setup/globals/dynamic-bootstrapper";
@Injectable()
export class CKEditorPreviewService {
diff --git a/frontend/src/app/modules/common/ckeditor/ckeditor-setup.service.ts b/frontend/src/app/shared/components/editor/components/ckeditor/ckeditor-setup.service.ts
similarity index 95%
rename from frontend/src/app/modules/common/ckeditor/ckeditor-setup.service.ts
rename to frontend/src/app/shared/components/editor/components/ckeditor/ckeditor-setup.service.ts
index 7d3055c3f70..18bfd32c808 100644
--- a/frontend/src/app/modules/common/ckeditor/ckeditor-setup.service.ts
+++ b/frontend/src/app/shared/components/editor/components/ckeditor/ckeditor-setup.service.ts
@@ -1,5 +1,5 @@
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { Injectable } from "@angular/core";
export interface ICKEditorInstance {
diff --git a/frontend/src/app/modules/common/ckeditor/op-ckeditor.component.ts b/frontend/src/app/shared/components/editor/components/ckeditor/op-ckeditor.component.ts
similarity index 95%
rename from frontend/src/app/modules/common/ckeditor/op-ckeditor.component.ts
rename to frontend/src/app/shared/components/editor/components/ckeditor/op-ckeditor.component.ts
index d372a15c710..579773d21b1 100644
--- a/frontend/src/app/modules/common/ckeditor/op-ckeditor.component.ts
+++ b/frontend/src/app/shared/components/editor/components/ckeditor/op-ckeditor.component.ts
@@ -31,10 +31,10 @@ import {
CKEditorSetupService,
ICKEditorContext,
ICKEditorInstance
-} from "core-app/modules/common/ckeditor/ckeditor-setup.service";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { ConfigurationService } from "core-app/modules/common/config/configuration.service";
+} from "core-app/shared/components/editor/components/ckeditor/ckeditor-setup.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { ConfigurationService } from "core-app/core/config/configuration.service";
declare module 'codemirror';
diff --git a/frontend/src/app/modules/common/ckeditor/op-ckeditor.html b/frontend/src/app/shared/components/editor/components/ckeditor/op-ckeditor.html
similarity index 100%
rename from frontend/src/app/modules/common/ckeditor/op-ckeditor.html
rename to frontend/src/app/shared/components/editor/components/ckeditor/op-ckeditor.html
diff --git a/frontend/src/app/modules/common/ckeditor/op-ckeditor.sass b/frontend/src/app/shared/components/editor/components/ckeditor/op-ckeditor.sass
similarity index 100%
rename from frontend/src/app/modules/common/ckeditor/op-ckeditor.sass
rename to frontend/src/app/shared/components/editor/components/ckeditor/op-ckeditor.sass
diff --git a/frontend/src/app/modules/editor/openproject-editor.module.ts b/frontend/src/app/shared/components/editor/openproject-editor.module.ts
similarity index 61%
rename from frontend/src/app/modules/editor/openproject-editor.module.ts
rename to frontend/src/app/shared/components/editor/openproject-editor.module.ts
index f344c50b4c8..84f24612558 100644
--- a/frontend/src/app/modules/editor/openproject-editor.module.ts
+++ b/frontend/src/app/shared/components/editor/openproject-editor.module.ts
@@ -29,16 +29,16 @@
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { CommonModule } from "@angular/common";
-import { OpenprojectAttachmentsModule } from 'core-app/modules/attachments/openproject-attachments.module';
-import { OpenprojectModalModule } from "core-app/modules/modal/modal.module";
-import { WikiIncludePageMacroModal } from 'core-components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal';
-import { CodeBlockMacroModal } from 'core-components/modals/editor/macro-code-block-modal/code-block-macro.modal';
-import { ChildPagesMacroModal } from 'core-components/modals/editor/macro-child-pages-modal/child-pages-macro.modal';
-import { CkeditorAugmentedTextareaComponent } from 'core-app/ckeditor/ckeditor-augmented-textarea.component';
-import { OpCkeditorComponent } from 'core-app/modules/common/ckeditor/op-ckeditor.component';
-import { EditorMacrosService } from 'core-components/modals/editor/editor-macros.service';
-import { CKEditorSetupService } from 'core-app/modules/common/ckeditor/ckeditor-setup.service';
-import { CKEditorPreviewService } from 'core-app/modules/common/ckeditor/ckeditor-preview.service';
+import { OpenprojectAttachmentsModule } from 'core-app/shared/components/attachments/openproject-attachments.module';
+import { OpenprojectModalModule } from "core-app/shared/components/modal/modal.module";
+import { CkeditorAugmentedTextareaComponent } from 'core-app/shared/components/editor/components/ckeditor-augmented-textarea/ckeditor-augmented-textarea.component';
+import { OpCkeditorComponent } from 'core-app/shared/components/editor/components/ckeditor/op-ckeditor.component';
+import { CKEditorSetupService } from 'core-app/shared/components/editor/components/ckeditor/ckeditor-setup.service';
+import { CKEditorPreviewService } from 'core-app/shared/components/editor/components/ckeditor/ckeditor-preview.service';
+import { EditorMacrosService } from "core-app/shared/components/modals/editor/editor-macros.service";
+import { WikiIncludePageMacroModal } from "core-app/shared/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal";
+import { ChildPagesMacroModal } from "core-app/shared/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal";
+import { CodeBlockMacroModal } from "core-app/shared/components/modals/editor/macro-code-block-modal/code-block-macro.modal";
@NgModule({
imports: [
diff --git a/frontend/src/app/components/enterprise-banner/enterprise-banner-bootstrap.component.ts b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner-bootstrap.component.ts
similarity index 92%
rename from frontend/src/app/components/enterprise-banner/enterprise-banner-bootstrap.component.ts
rename to frontend/src/app/shared/components/enterprise-banner/enterprise-banner-bootstrap.component.ts
index 58da12ff4ef..2dcb1a16f66 100644
--- a/frontend/src/app/components/enterprise-banner/enterprise-banner-bootstrap.component.ts
+++ b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner-bootstrap.component.ts
@@ -1,5 +1,5 @@
import { Component, ElementRef, OnInit } from "@angular/core";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
export const enterpriseBannerSelector = 'enterprise-banner-bootstrap';
diff --git a/frontend/src/app/components/enterprise-banner/enterprise-banner.component.sass b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass
similarity index 100%
rename from frontend/src/app/components/enterprise-banner/enterprise-banner.component.sass
rename to frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass
diff --git a/frontend/src/app/components/enterprise-banner/enterprise-banner.component.ts b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.ts
similarity index 87%
rename from frontend/src/app/components/enterprise-banner/enterprise-banner.component.ts
rename to frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.ts
index b5bbcf2c2ef..3642ecc3658 100644
--- a/frontend/src/app/components/enterprise-banner/enterprise-banner.component.ts
+++ b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.ts
@@ -1,6 +1,6 @@
import {Component, Input} from "@angular/core";
-import {BannersService} from "core-app/modules/common/enterprise/banners.service";
-import {I18nService} from "core-app/modules/common/i18n/i18n.service";
+import {BannersService} from "core-app/core/enterprise/banners.service";
+import {I18nService} from "core-app/core/i18n/i18n.service";
@Component({
selector: 'enterprise-banner',
diff --git a/frontend/src/app/modules/fields/changeset/changeset.ts b/frontend/src/app/shared/components/fields/changeset/changeset.ts
similarity index 100%
rename from frontend/src/app/modules/fields/changeset/changeset.ts
rename to frontend/src/app/shared/components/fields/changeset/changeset.ts
diff --git a/frontend/src/app/modules/fields/changeset/resource-changeset.ts b/frontend/src/app/shared/components/fields/changeset/resource-changeset.ts
similarity index 95%
rename from frontend/src/app/modules/fields/changeset/resource-changeset.ts
rename to frontend/src/app/shared/components/fields/changeset/resource-changeset.ts
index ae2f8cacdcd..c81e42bd3a1 100644
--- a/frontend/src/app/modules/fields/changeset/resource-changeset.ts
+++ b/frontend/src/app/shared/components/fields/changeset/resource-changeset.ts
@@ -1,14 +1,14 @@
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
-import { FormResource } from "core-app/modules/hal/resources/form-resource";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { ChangeItem, ChangeMap, Changeset } from "core-app/modules/fields/changeset/changeset";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { FormResource } from "core-app/features/hal/resources/form-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { ChangeItem, ChangeMap, Changeset } from "core-app/shared/components/fields/changeset/changeset";
import { input, InputState } from "reactivestates";
-import { IFieldSchema } from "core-app/modules/fields/field.base";
-import { debugLog } from "core-app/helpers/debug_output";
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
+import { debugLog } from "core-app/shared/helpers/debug_output";
import { take } from "rxjs/operators";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
import { Injector } from '@angular/core';
-import { SchemaProxy } from "core-app/modules/hal/schemas/schema-proxy";
+import { SchemaProxy } from "core-app/features/hal/schemas/schema-proxy";
export const PROXY_IDENTIFIER = '__is_changeset_proxy';
diff --git a/frontend/src/app/modules/fields/display/display-field-renderer.ts b/frontend/src/app/shared/components/fields/display/display-field-renderer.ts
similarity index 84%
rename from frontend/src/app/modules/fields/display/display-field-renderer.ts
rename to frontend/src/app/shared/components/fields/display/display-field-renderer.ts
index 1a05f005d6b..69e07394037 100644
--- a/frontend/src/app/modules/fields/display/display-field-renderer.ts
+++ b/frontend/src/app/shared/components/fields/display/display-field-renderer.ts
@@ -1,19 +1,19 @@
import { Injector } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { IFieldSchema } from "core-app/modules/fields/field.base";
-import { DisplayFieldContext, DisplayFieldService } from "core-app/modules/fields/display/display-field.service";
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
-import { MultipleLinesCustomOptionsDisplayField } from "core-app/modules/fields/display/field-types/multiple-lines-custom-options-display-field.module";
-import { ProgressTextDisplayField } from "core-app/modules/fields/display/field-types/progress-text-display-field.module";
-import { MultipleLinesUserFieldModule } from "core-app/modules/fields/display/field-types/multiple-lines-user-display-field.module";
-import { ResourceChangeset } from "core-app/modules/fields/changeset/resource-changeset";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
-import { ISchemaProxy } from "core-app/modules/hal/schemas/schema-proxy";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { DateDisplayField } from "core-app/modules/fields/display/field-types/date-display-field.module";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
+import { DisplayFieldContext, DisplayFieldService } from "core-app/shared/components/fields/display/display-field.service";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
+import { MultipleLinesCustomOptionsDisplayField } from "core-app/shared/components/fields/display/field-types/multiple-lines-custom-options-display-field.module";
+import { ProgressTextDisplayField } from "core-app/shared/components/fields/display/field-types/progress-text-display-field.module";
+import { MultipleLinesUserFieldModule } from "core-app/shared/components/fields/display/field-types/multiple-lines-user-display-field.module";
+import { ResourceChangeset } from "core-app/shared/components/fields/changeset/resource-changeset";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { ISchemaProxy } from "core-app/features/hal/schemas/schema-proxy";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { DateDisplayField } from "core-app/shared/components/fields/display/field-types/date-display-field.module";
export const editableClassName = '-editable';
export const requiredClassName = '-required';
diff --git a/frontend/src/app/modules/fields/display/display-field.component.ts b/frontend/src/app/shared/components/fields/display/display-field.component.ts
similarity index 81%
rename from frontend/src/app/modules/fields/display/display-field.component.ts
rename to frontend/src/app/shared/components/fields/display/display-field.component.ts
index 49d54797b21..cf65666605e 100644
--- a/frontend/src/app/modules/fields/display/display-field.component.ts
+++ b/frontend/src/app/shared/components/fields/display/display-field.component.ts
@@ -1,10 +1,10 @@
import { ChangeDetectionStrategy, Component, ElementRef, Injector, Input, OnInit, ViewChild } from '@angular/core';
-import { IFieldSchema } from "core-app/modules/fields/field.base";
-import { DisplayFieldService } from "core-app/modules/fields/display/display-field.service";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
+import { DisplayFieldService } from "core-app/shared/components/fields/display/display-field.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
import { Constructor } from "@angular/cdk/table";
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
@Component({
selector: 'display-field',
diff --git a/frontend/src/app/modules/fields/display/display-field.initializer.ts b/frontend/src/app/shared/components/fields/display/display-field.initializer.ts
similarity index 52%
rename from frontend/src/app/modules/fields/display/display-field.initializer.ts
rename to frontend/src/app/shared/components/fields/display/display-field.initializer.ts
index cbbebafdab5..de24650b87b 100644
--- a/frontend/src/app/modules/fields/display/display-field.initializer.ts
+++ b/frontend/src/app/shared/components/fields/display/display-field.initializer.ts
@@ -26,30 +26,30 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayFieldService } from "core-app/modules/fields/display/display-field.service";
-import { TextDisplayField } from "core-app/modules/fields/display/field-types/text-display-field.module";
-import { FloatDisplayField } from "core-app/modules/fields/display/field-types/float-display-field.module";
-import { IntegerDisplayField } from "core-app/modules/fields/display/field-types/integer-display-field.module";
-import { ResourceDisplayField } from "core-app/modules/fields/display/field-types/resource-display-field.module";
-import { ResourcesDisplayField } from "core-app/modules/fields/display/field-types/resources-display-field.module";
-import { FormattableDisplayField } from "core-app/modules/fields/display/field-types/formattable-display-field.module";
-import { DurationDisplayField } from "core-app/modules/fields/display/field-types/duration-display-field.module";
-import { DateDisplayField } from "core-app/modules/fields/display/field-types/date-display-field.module";
-import { DateTimeDisplayField } from "core-app/modules/fields/display/field-types/datetime-display-field.module";
-import { BooleanDisplayField } from "core-app/modules/fields/display/field-types/boolean-display-field.module";
-import { ProgressDisplayField } from "core-app/modules/fields/display/field-types/progress-display-field.module";
-import { WorkPackageDisplayField } from "core-app/modules/fields/display/field-types/work-package-display-field.module";
-import { WorkPackageSpentTimeDisplayField } from "core-app/modules/fields/display/field-types/wp-spent-time-display-field.module";
-import { IdDisplayField } from "core-app/modules/fields/display/field-types/id-display-field.module";
-import { HighlightedResourceDisplayField } from "core-app/modules/fields/display/field-types/highlighted-resource-display-field.module";
-import { TypeDisplayField } from "core-app/modules/fields/display/field-types/type-display-field.module";
-import { UserDisplayField } from "core-app/modules/fields/display/field-types/user-display-field.module";
-import { MultipleUserFieldModule } from "core-app/modules/fields/display/field-types/multiple-user-display-field.module";
-import { WorkPackageIdDisplayField } from "core-app/modules/fields/display/field-types/wp-id-display-field.module";
-import { ProjectStatusDisplayField } from "core-app/modules/fields/display/field-types/project-status-display-field.module";
-import { PlainFormattableDisplayField } from "core-app/modules/fields/display/field-types/plain-formattable-display-field.module";
-import { LinkedWorkPackageDisplayField } from "core-app/modules/fields/display/field-types/linked-work-package-display-field.module";
-import { CombinedDateDisplayField } from "core-app/modules/fields/display/field-types/combined-date-display.field";
+import { DisplayFieldService } from "core-app/shared/components/fields/display/display-field.service";
+import { TextDisplayField } from "core-app/shared/components/fields/display/field-types/text-display-field.module";
+import { FloatDisplayField } from "core-app/shared/components/fields/display/field-types/float-display-field.module";
+import { IntegerDisplayField } from "core-app/shared/components/fields/display/field-types/integer-display-field.module";
+import { ResourceDisplayField } from "core-app/shared/components/fields/display/field-types/resource-display-field.module";
+import { ResourcesDisplayField } from "core-app/shared/components/fields/display/field-types/resources-display-field.module";
+import { FormattableDisplayField } from "core-app/shared/components/fields/display/field-types/formattable-display-field.module";
+import { DurationDisplayField } from "core-app/shared/components/fields/display/field-types/duration-display-field.module";
+import { DateDisplayField } from "core-app/shared/components/fields/display/field-types/date-display-field.module";
+import { DateTimeDisplayField } from "core-app/shared/components/fields/display/field-types/datetime-display-field.module";
+import { BooleanDisplayField } from "core-app/shared/components/fields/display/field-types/boolean-display-field.module";
+import { ProgressDisplayField } from "core-app/shared/components/fields/display/field-types/progress-display-field.module";
+import { WorkPackageDisplayField } from "core-app/shared/components/fields/display/field-types/work-package-display-field.module";
+import { WorkPackageSpentTimeDisplayField } from "core-app/shared/components/fields/display/field-types/wp-spent-time-display-field.module";
+import { IdDisplayField } from "core-app/shared/components/fields/display/field-types/id-display-field.module";
+import { HighlightedResourceDisplayField } from "core-app/shared/components/fields/display/field-types/highlighted-resource-display-field.module";
+import { TypeDisplayField } from "core-app/shared/components/fields/display/field-types/type-display-field.module";
+import { UserDisplayField } from "core-app/shared/components/fields/display/field-types/user-display-field.module";
+import { MultipleUserFieldModule } from "core-app/shared/components/fields/display/field-types/multiple-user-display-field.module";
+import { WorkPackageIdDisplayField } from "core-app/shared/components/fields/display/field-types/wp-id-display-field.module";
+import { ProjectStatusDisplayField } from "core-app/shared/components/fields/display/field-types/project-status-display-field.module";
+import { PlainFormattableDisplayField } from "core-app/shared/components/fields/display/field-types/plain-formattable-display-field.module";
+import { LinkedWorkPackageDisplayField } from "core-app/shared/components/fields/display/field-types/linked-work-package-display-field.module";
+import { CombinedDateDisplayField } from "core-app/shared/components/fields/display/field-types/combined-date-display.field";
export function initializeCoreDisplayFields(displayFieldService:DisplayFieldService) {
return () => {
diff --git a/frontend/src/app/modules/fields/display/display-field.module.ts b/frontend/src/app/shared/components/fields/display/display-field.module.ts
similarity index 87%
rename from frontend/src/app/modules/fields/display/display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/display-field.module.ts
index 1c086fbfe98..3a437d05883 100644
--- a/frontend/src/app/modules/fields/display/display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/display-field.module.ts
@@ -26,12 +26,12 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { Field, IFieldSchema } from "core-app/modules/fields/field.base";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { DisplayFieldContext } from "core-app/modules/fields/display/display-field.service";
-import { ResourceChangeset } from "core-app/modules/fields/changeset/resource-changeset";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { Field, IFieldSchema } from "core-app/shared/components/fields/field.base";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { DisplayFieldContext } from "core-app/shared/components/fields/display/display-field.service";
+import { ResourceChangeset } from "core-app/shared/components/fields/changeset/resource-changeset";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export const cssClassCustomOption = 'custom-option';
diff --git a/frontend/src/app/modules/fields/display/display-field.service.ts b/frontend/src/app/shared/components/fields/display/display-field.service.ts
similarity index 88%
rename from frontend/src/app/modules/fields/display/display-field.service.ts
rename to frontend/src/app/shared/components/fields/display/display-field.service.ts
index 608aed8270c..a35111f0688 100644
--- a/frontend/src/app/modules/fields/display/display-field.service.ts
+++ b/frontend/src/app/shared/components/fields/display/display-field.service.ts
@@ -27,10 +27,10 @@
//++
import { Injectable, Injector } from '@angular/core';
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { AbstractFieldService, IFieldType } from "core-app/modules/fields/field.service";
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
-import { IFieldSchema } from "core-app/modules/fields/field.base";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { AbstractFieldService, IFieldType } from "core-app/shared/components/fields/field.service";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
export interface IDisplayFieldType extends IFieldType<DisplayField> {
new(resource:HalResource, attributeType:string, schema:IFieldSchema, context:DisplayFieldContext):DisplayField;
diff --git a/frontend/src/app/modules/fields/display/field-types/boolean-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/boolean-display-field.module.ts
similarity index 94%
rename from frontend/src/app/modules/fields/display/field-types/boolean-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/boolean-display-field.module.ts
index 96a033840c5..959b5ce7fc2 100644
--- a/frontend/src/app/modules/fields/display/field-types/boolean-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/boolean-display-field.module.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
export class BooleanDisplayField extends DisplayField {
diff --git a/frontend/src/app/modules/fields/display/field-types/combined-date-display.field.ts b/frontend/src/app/shared/components/fields/display/field-types/combined-date-display.field.ts
similarity index 95%
rename from frontend/src/app/modules/fields/display/field-types/combined-date-display.field.ts
rename to frontend/src/app/shared/components/fields/display/field-types/combined-date-display.field.ts
index 23608ca5b96..30fbfac499a 100644
--- a/frontend/src/app/modules/fields/display/field-types/combined-date-display.field.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/combined-date-display.field.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DateDisplayField } from "core-app/modules/fields/display/field-types/date-display-field.module";
+import { DateDisplayField } from "core-app/shared/components/fields/display/field-types/date-display-field.module";
export class CombinedDateDisplayField extends DateDisplayField {
text = {
diff --git a/frontend/src/app/modules/fields/display/field-types/date-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/date-display-field.module.ts
similarity index 84%
rename from frontend/src/app/modules/fields/display/field-types/date-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/date-display-field.module.ts
index 6b8ba1f21cb..63e70d0e5cb 100644
--- a/frontend/src/app/modules/fields/display/field-types/date-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/date-display-field.module.ts
@@ -26,11 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { TimezoneService } from 'core-components/datetime/timezone.service';
-import { Highlighting } from "core-components/wp-fast-table/builders/highlighting/highlighting.functions";
-import { HighlightableDisplayField } from "core-app/modules/fields/display/field-types/highlightable-display-field.module";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { Highlighting } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting.functions";
+import { HighlightableDisplayField } from "core-app/shared/components/fields/display/field-types/highlightable-display-field.module";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
export class DateDisplayField extends HighlightableDisplayField {
@InjectField() timezoneService:TimezoneService;
diff --git a/frontend/src/app/modules/fields/display/field-types/datetime-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/datetime-display-field.module.ts
similarity index 85%
rename from frontend/src/app/modules/fields/display/field-types/datetime-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/datetime-display-field.module.ts
index 92e0251d58e..dd659c414e1 100644
--- a/frontend/src/app/modules/fields/display/field-types/datetime-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/datetime-display-field.module.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
-import { TimezoneService } from 'core-components/datetime/timezone.service';
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
export class DateTimeDisplayField extends DisplayField {
@InjectField() timezoneService:TimezoneService;
diff --git a/frontend/src/app/modules/fields/display/field-types/duration-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/duration-display-field.module.ts
similarity index 93%
rename from frontend/src/app/modules/fields/display/field-types/duration-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/duration-display-field.module.ts
index 15f896364bb..5e6f2a7455b 100644
--- a/frontend/src/app/modules/fields/display/field-types/duration-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/duration-display-field.module.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
-import { TimezoneService } from 'core-components/datetime/timezone.service';
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
export class DurationDisplayField extends DisplayField {
@InjectField() timezoneService:TimezoneService;
diff --git a/frontend/src/app/modules/fields/display/field-types/float-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/float-display-field.module.ts
similarity index 94%
rename from frontend/src/app/modules/fields/display/field-types/float-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/float-display-field.module.ts
index 7f6be2a8db5..9e94f4ae972 100644
--- a/frontend/src/app/modules/fields/display/field-types/float-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/float-display-field.module.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
export class FloatDisplayField extends DisplayField {
diff --git a/frontend/src/app/modules/fields/display/field-types/formattable-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/formattable-display-field.module.ts
similarity index 88%
rename from frontend/src/app/modules/fields/display/field-types/formattable-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/formattable-display-field.module.ts
index 2c33e6d496f..e63d404cb61 100644
--- a/frontend/src/app/modules/fields/display/field-types/formattable-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/formattable-display-field.module.ts
@@ -26,11 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
-import { ExpressionService } from "../../../../../../common/expression.service";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
import { ApplicationRef } from "@angular/core";
-import { DynamicBootstrapper } from "core-app/globals/dynamic-bootstrapper";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { DynamicBootstrapper } from "core-app/core/setup/globals/dynamic-bootstrapper";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { ExpressionService } from "core-app/core/expression/expression.service";
export class FormattableDisplayField extends DisplayField {
diff --git a/frontend/src/app/modules/fields/display/field-types/highlightable-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/highlightable-display-field.module.ts
similarity index 87%
rename from frontend/src/app/modules/fields/display/field-types/highlightable-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/highlightable-display-field.module.ts
index 36a2aa593fd..4607b9a8541 100644
--- a/frontend/src/app/modules/fields/display/field-types/highlightable-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/highlightable-display-field.module.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
-import { WorkPackageViewHighlightingService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-highlighting.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
+import { WorkPackageViewHighlightingService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-highlighting.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class HighlightableDisplayField extends DisplayField {
/** Optionally test if we can inject highlighting service */
diff --git a/frontend/src/app/modules/fields/display/field-types/highlighted-resource-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/highlighted-resource-display-field.module.ts
similarity index 84%
rename from frontend/src/app/modules/fields/display/field-types/highlighted-resource-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/highlighted-resource-display-field.module.ts
index 0ca06b231ed..54fb6c7e026 100644
--- a/frontend/src/app/modules/fields/display/field-types/highlighted-resource-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/highlighted-resource-display-field.module.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { Highlighting } from "core-components/wp-fast-table/builders/highlighting/highlighting.functions";
-import { HighlightableDisplayField } from "core-app/modules/fields/display/field-types/highlightable-display-field.module";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { Highlighting } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting.functions";
+import { HighlightableDisplayField } from "core-app/shared/components/fields/display/field-types/highlightable-display-field.module";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export class HighlightedResourceDisplayField extends HighlightableDisplayField {
diff --git a/frontend/src/app/modules/fields/display/field-types/id-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/id-display-field.module.ts
similarity index 94%
rename from frontend/src/app/modules/fields/display/field-types/id-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/id-display-field.module.ts
index 7d3a62f8856..5adf1b9d73f 100644
--- a/frontend/src/app/modules/fields/display/field-types/id-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/id-display-field.module.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
export class IdDisplayField extends DisplayField {
public text = {
diff --git a/frontend/src/app/modules/fields/display/field-types/integer-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/integer-display-field.module.ts
similarity index 93%
rename from frontend/src/app/modules/fields/display/field-types/integer-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/integer-display-field.module.ts
index 7c85d10d080..f25c83c3995 100644
--- a/frontend/src/app/modules/fields/display/field-types/integer-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/integer-display-field.module.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
export class IntegerDisplayField extends DisplayField {
public get value() {
diff --git a/frontend/src/app/modules/fields/display/field-types/linked-work-package-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/linked-work-package-display-field.module.ts
similarity index 83%
rename from frontend/src/app/modules/fields/display/field-types/linked-work-package-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/linked-work-package-display-field.module.ts
index 6c7ecd78d33..43878fc5e28 100644
--- a/frontend/src/app/modules/fields/display/field-types/linked-work-package-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/linked-work-package-display-field.module.ts
@@ -27,10 +27,10 @@
//++
import { StateService } from '@uirouter/core';
-import { KeepTabService } from 'core-components/wp-single-view-tabs/keep-tab/keep-tab.service';
-import { UiStateLinkBuilder } from "core-components/wp-fast-table/builders/ui-state-link-builder";
-import { WorkPackageDisplayField } from "core-app/modules/fields/display/field-types/work-package-display-field.module";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { KeepTabService } from 'core-app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service';
+import { UiStateLinkBuilder } from "core-app/features/work-packages/components/wp-fast-table/builders/ui-state-link-builder";
+import { WorkPackageDisplayField } from "core-app/shared/components/fields/display/field-types/work-package-display-field.module";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class LinkedWorkPackageDisplayField extends WorkPackageDisplayField {
diff --git a/frontend/src/app/modules/fields/display/field-types/multiple-lines-custom-options-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/multiple-lines-custom-options-display-field.module.ts
similarity index 95%
rename from frontend/src/app/modules/fields/display/field-types/multiple-lines-custom-options-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/multiple-lines-custom-options-display-field.module.ts
index a378b6097cb..b6244b69f40 100644
--- a/frontend/src/app/modules/fields/display/field-types/multiple-lines-custom-options-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/multiple-lines-custom-options-display-field.module.ts
@@ -27,7 +27,7 @@
//++
import { ResourcesDisplayField } from "./resources-display-field.module";
-import { cssClassCustomOption } from "core-app/modules/fields/display/display-field.module";
+import { cssClassCustomOption } from "core-app/shared/components/fields/display/display-field.module";
export class MultipleLinesCustomOptionsDisplayField extends ResourcesDisplayField {
diff --git a/frontend/src/app/modules/fields/display/field-types/multiple-lines-user-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/multiple-lines-user-display-field.module.ts
similarity index 88%
rename from frontend/src/app/modules/fields/display/field-types/multiple-lines-user-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/multiple-lines-user-display-field.module.ts
index 9f5572138a3..6745d760079 100644
--- a/frontend/src/app/modules/fields/display/field-types/multiple-lines-user-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/multiple-lines-user-display-field.module.ts
@@ -27,9 +27,9 @@
//++
import {ResourcesDisplayField} from "./resources-display-field.module";
-import {UserResource} from "core-app/modules/hal/resources/user-resource";
-import {InjectField} from "core-app/helpers/angular/inject-field.decorator";
-import {PrincipalRendererService} from "core-app/modules/principal/principal-renderer.service";
+import {UserResource} from "core-app/features/hal/resources/user-resource";
+import {InjectField} from "core-app/shared/helpers/angular/inject-field.decorator";
+import {PrincipalRendererService} from "core-app/shared/components/principal/principal-renderer.service";
export class MultipleLinesUserFieldModule extends ResourcesDisplayField {
@InjectField() principalRenderer:PrincipalRendererService;
diff --git a/frontend/src/app/modules/fields/display/field-types/multiple-user-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/multiple-user-display-field.module.ts
similarity index 88%
rename from frontend/src/app/modules/fields/display/field-types/multiple-user-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/multiple-user-display-field.module.ts
index 40476df343a..9645d44984d 100644
--- a/frontend/src/app/modules/fields/display/field-types/multiple-user-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/multiple-user-display-field.module.ts
@@ -27,10 +27,10 @@
//++
import {ResourcesDisplayField} from "./resources-display-field.module";
-import {UserResource} from "core-app/modules/hal/resources/user-resource";
-import {InjectField} from "core-app/helpers/angular/inject-field.decorator";
-import {PrincipalRendererService} from "core-app/modules/principal/principal-renderer.service";
-import {cssClassCustomOption} from "core-app/modules/fields/display/display-field.module";
+import {UserResource} from "core-app/features/hal/resources/user-resource";
+import {InjectField} from "core-app/shared/helpers/angular/inject-field.decorator";
+import {PrincipalRendererService} from "core-app/shared/components/principal/principal-renderer.service";
+import {cssClassCustomOption} from "core-app/shared/components/fields/display/display-field.module";
export class MultipleUserFieldModule extends ResourcesDisplayField {
@InjectField() principalRenderer:PrincipalRendererService;
diff --git a/frontend/src/app/modules/fields/display/field-types/plain-formattable-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/plain-formattable-display-field.module.ts
similarity index 93%
rename from frontend/src/app/modules/fields/display/field-types/plain-formattable-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/plain-formattable-display-field.module.ts
index df1620896fc..15c92cb6283 100644
--- a/frontend/src/app/modules/fields/display/field-types/plain-formattable-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/plain-formattable-display-field.module.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
export class PlainFormattableDisplayField extends DisplayField {
public get value() {
diff --git a/frontend/src/app/modules/fields/display/field-types/progress-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/progress-display-field.module.ts
similarity index 95%
rename from frontend/src/app/modules/fields/display/field-types/progress-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/progress-display-field.module.ts
index 6a8749078c8..879f2f0f1f3 100644
--- a/frontend/src/app/modules/fields/display/field-types/progress-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/progress-display-field.module.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
export class ProgressDisplayField extends DisplayField {
public get value() {
diff --git a/frontend/src/app/modules/fields/display/field-types/progress-text-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/progress-text-display-field.module.ts
similarity index 100%
rename from frontend/src/app/modules/fields/display/field-types/progress-text-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/progress-text-display-field.module.ts
diff --git a/frontend/src/app/modules/fields/display/field-types/project-status-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/project-status-display-field.module.ts
similarity index 92%
rename from frontend/src/app/modules/fields/display/field-types/project-status-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/project-status-display-field.module.ts
index cba1ba3ce6e..c33ba1ad8a9 100644
--- a/frontend/src/app/modules/fields/display/field-types/project-status-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/project-status-display-field.module.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
-import { projectStatusCodeCssClass, projectStatusI18n } from "core-app/modules/fields/helpers/project-status-helper";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
+import { projectStatusCodeCssClass, projectStatusI18n } from "core-app/shared/components/fields/helpers/project-status-helper";
export class ProjectStatusDisplayField extends DisplayField {
diff --git a/frontend/src/app/modules/fields/display/field-types/resource-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/resource-display-field.module.ts
similarity index 93%
rename from frontend/src/app/modules/fields/display/field-types/resource-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/resource-display-field.module.ts
index bc81d46a8ed..d5f1d84cb12 100644
--- a/frontend/src/app/modules/fields/display/field-types/resource-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/resource-display-field.module.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
export class ResourceDisplayField extends DisplayField {
public get value() {
diff --git a/frontend/src/app/modules/fields/display/field-types/resources-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/resources-display-field.module.ts
similarity index 96%
rename from frontend/src/app/modules/fields/display/field-types/resources-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/resources-display-field.module.ts
index c08b2b5e621..cfbdcf32e0d 100644
--- a/frontend/src/app/modules/fields/display/field-types/resources-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/resources-display-field.module.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { cssClassCustomOption, DisplayField } from "core-app/modules/fields/display/display-field.module";
+import { cssClassCustomOption, DisplayField } from "core-app/shared/components/fields/display/display-field.module";
export class ResourcesDisplayField extends DisplayField {
public isEmpty():boolean {
diff --git a/frontend/src/app/modules/fields/display/field-types/text-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/text-display-field.module.ts
similarity index 93%
rename from frontend/src/app/modules/fields/display/field-types/text-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/text-display-field.module.ts
index 1bedd1f5ece..762f3d2273f 100644
--- a/frontend/src/app/modules/fields/display/field-types/text-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/text-display-field.module.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
export class TextDisplayField extends DisplayField {
}
diff --git a/frontend/src/app/modules/fields/display/field-types/type-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/type-display-field.module.ts
similarity index 90%
rename from frontend/src/app/modules/fields/display/field-types/type-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/type-display-field.module.ts
index 0a44238fb41..d87f443580a 100644
--- a/frontend/src/app/modules/fields/display/field-types/type-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/type-display-field.module.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HighlightedResourceDisplayField } from "core-app/modules/fields/display/field-types/highlighted-resource-display-field.module";
+import { HighlightedResourceDisplayField } from "core-app/shared/components/fields/display/field-types/highlighted-resource-display-field.module";
export class TypeDisplayField extends HighlightedResourceDisplayField {
// Type will always be highlighted
diff --git a/frontend/src/app/modules/fields/display/field-types/user-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/user-display-field.module.ts
similarity index 86%
rename from frontend/src/app/modules/fields/display/field-types/user-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/user-display-field.module.ts
index 473cd17505c..45ca0947eb8 100644
--- a/frontend/src/app/modules/fields/display/field-types/user-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/user-display-field.module.ts
@@ -26,9 +26,9 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import {DisplayField} from "core-app/modules/fields/display/display-field.module";
-import {InjectField} from "core-app/helpers/angular/inject-field.decorator";
-import {PrincipalRendererService} from "core-app/modules/principal/principal-renderer.service";
+import {DisplayField} from "core-app/shared/components/fields/display/display-field.module";
+import {InjectField} from "core-app/shared/helpers/angular/inject-field.decorator";
+import {PrincipalRendererService} from "core-app/shared/components/principal/principal-renderer.service";
export class UserDisplayField extends DisplayField {
@InjectField() principalRenderer:PrincipalRendererService;
diff --git a/frontend/src/app/modules/fields/display/field-types/work-package-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/work-package-display-field.module.ts
similarity index 95%
rename from frontend/src/app/modules/fields/display/field-types/work-package-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/work-package-display-field.module.ts
index 3e55fd60a60..75084cbad29 100644
--- a/frontend/src/app/modules/fields/display/field-types/work-package-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/work-package-display-field.module.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
export class WorkPackageDisplayField extends DisplayField {
diff --git a/frontend/src/app/modules/fields/display/field-types/wp-id-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/wp-id-display-field.module.ts
similarity index 79%
rename from frontend/src/app/modules/fields/display/field-types/wp-id-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/wp-id-display-field.module.ts
index c86f0638ebd..aee4d8702a7 100644
--- a/frontend/src/app/modules/fields/display/field-types/wp-id-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/wp-id-display-field.module.ts
@@ -26,11 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { KeepTabService } from 'core-components/wp-single-view-tabs/keep-tab/keep-tab.service';
+import { KeepTabService } from 'core-app/features/work-packages/components/wp-single-view-tabs/keep-tab/keep-tab.service';
import { StateService } from '@uirouter/core';
-import { UiStateLinkBuilder } from "core-components/wp-fast-table/builders/ui-state-link-builder";
-import { IdDisplayField } from "core-app/modules/fields/display/field-types/id-display-field.module";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { UiStateLinkBuilder } from "core-app/features/work-packages/components/wp-fast-table/builders/ui-state-link-builder";
+import { IdDisplayField } from "core-app/shared/components/fields/display/field-types/id-display-field.module";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class WorkPackageIdDisplayField extends IdDisplayField {
@InjectField() $state!:StateService;
diff --git a/frontend/src/app/modules/fields/display/field-types/wp-spent-time-display-field.module.ts b/frontend/src/app/shared/components/fields/display/field-types/wp-spent-time-display-field.module.ts
similarity index 87%
rename from frontend/src/app/modules/fields/display/field-types/wp-spent-time-display-field.module.ts
rename to frontend/src/app/shared/components/fields/display/field-types/wp-spent-time-display-field.module.ts
index a30cabc95fc..51eb48562e8 100644
--- a/frontend/src/app/modules/fields/display/field-types/wp-spent-time-display-field.module.ts
+++ b/frontend/src/app/shared/components/fields/display/field-types/wp-spent-time-display-field.module.ts
@@ -27,13 +27,13 @@
//++
import { DurationDisplayField } from './duration-display-field.module';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
import * as URI from 'urijs';
-import { TimeEntryCreateService } from 'core-app/modules/time_entries/create/create.service';
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { TimeEntryCreateService } from 'core-app/shared/components/time_entries/create/create.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
export class WorkPackageSpentTimeDisplayField extends DurationDisplayField {
public text = {
diff --git a/frontend/src/app/modules/fields/edit/edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/edit-field.component.ts
similarity index 89%
rename from frontend/src/app/modules/fields/edit/edit-field.component.ts
rename to frontend/src/app/shared/components/fields/edit/edit-field.component.ts
index 18dabf5bce1..96ef074dff6 100644
--- a/frontend/src/app/modules/fields/edit/edit-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/edit-field.component.ts
@@ -36,12 +36,12 @@ import {
OnDestroy,
OnInit
} from "@angular/core";
-import { EditFieldHandler } from "core-app/modules/fields/edit/editing-portal/edit-field-handler";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { Field, IFieldSchema } from "core-app/modules/fields/field.base";
-import { ResourceChangeset } from "core-app/modules/fields/changeset/resource-changeset";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { CurrentProjectService } from 'core-components/projects/current-project.service';
+import { EditFieldHandler } from "core-app/shared/components/fields/edit/editing-portal/edit-field-handler";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { Field, IFieldSchema } from "core-app/shared/components/fields/field.base";
+import { ResourceChangeset } from "core-app/shared/components/fields/changeset/resource-changeset";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { CurrentProjectService } from 'core-app/core/current-project/current-project.service';
export const OpEditingPortalSchemaToken = new InjectionToken('editing-portal--schema');
export const OpEditingPortalHandlerToken = new InjectionToken('editing-portal--handler');
diff --git a/frontend/src/app/modules/fields/edit/edit-field.initializer.ts b/frontend/src/app/shared/components/fields/edit/edit-field.initializer.ts
similarity index 56%
rename from frontend/src/app/modules/fields/edit/edit-field.initializer.ts
rename to frontend/src/app/shared/components/fields/edit/edit-field.initializer.ts
index bf13cf67687..bf353c29cd0 100644
--- a/frontend/src/app/modules/fields/edit/edit-field.initializer.ts
+++ b/frontend/src/app/shared/components/fields/edit/edit-field.initializer.ts
@@ -26,25 +26,25 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { EditFieldService } from "core-app/modules/fields/edit/edit-field.service";
-import { TextEditFieldComponent } from "core-app/modules/fields/edit/field-types/text-edit-field/text-edit-field.component";
-import { IntegerEditFieldComponent } from "core-app/modules/fields/edit/field-types/integer-edit-field/integer-edit-field.component";
-import { DurationEditFieldComponent } from "core-app/modules/fields/edit/field-types/duration-edit-field.component";
-import { SelectEditFieldComponent } from "core-app/modules/fields/edit/field-types/select-edit-field/select-edit-field.component";
-import { MultiSelectEditFieldComponent } from "core-app/modules/fields/edit/field-types/multi-select-edit-field.component";
-import { FloatEditFieldComponent } from "core-app/modules/fields/edit/field-types/float-edit-field.component";
-import { BooleanEditFieldComponent } from "core-app/modules/fields/edit/field-types/boolean-edit-field/boolean-edit-field.component";
-import { WorkPackageEditFieldComponent } from "core-app/modules/fields/edit/field-types/work-package-edit-field.component";
-import { DateEditFieldComponent } from "core-app/modules/fields/edit/field-types/date-edit-field/date-edit-field.component";
-import { FormattableEditFieldComponent } from "core-app/modules/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component";
-import { WorkPackageCommentFieldComponent } from "core-components/work-packages/work-package-comment/wp-comment-field.component";
-import { SelectAutocompleterRegisterService } from "core-app/modules/fields/edit/field-types/select-edit-field/select-autocompleter-register.service";
-import { ProjectStatusEditFieldComponent } from "core-app/modules/fields/edit/field-types/project-status-edit-field.component";
-import { PlainFormattableEditFieldComponent } from "core-app/modules/fields/edit/field-types/plain-formattable-edit-field.component";
-import { TimeEntryWorkPackageEditFieldComponent } from "core-app/modules/fields/edit/field-types/te-work-package-edit-field.component";
-import { CombinedDateEditFieldComponent } from "core-app/modules/fields/edit/field-types/combined-date-edit-field.component";
-import { VersionAutocompleterComponent } from "core-app/modules/autocompleter/version-autocompleter/version-autocompleter.component";
-import { WorkPackageAutocompleterComponent } from "core-app/modules/autocompleter/work-package-autocompleter/wp-autocompleter.component";
+import { EditFieldService } from "core-app/shared/components/fields/edit/edit-field.service";
+import { TextEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/text-edit-field/text-edit-field.component";
+import { IntegerEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/integer-edit-field/integer-edit-field.component";
+import { DurationEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/duration-edit-field.component";
+import { SelectEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/select-edit-field/select-edit-field.component";
+import { MultiSelectEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/multi-select-edit-field.component";
+import { FloatEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/float-edit-field.component";
+import { BooleanEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/boolean-edit-field/boolean-edit-field.component";
+import { WorkPackageEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/work-package-edit-field.component";
+import { DateEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/date-edit-field/date-edit-field.component";
+import { FormattableEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component";
+import { SelectAutocompleterRegisterService } from "core-app/shared/components/fields/edit/field-types/select-edit-field/select-autocompleter-register.service";
+import { ProjectStatusEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/project-status-edit-field.component";
+import { PlainFormattableEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/plain-formattable-edit-field.component";
+import { TimeEntryWorkPackageEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/te-work-package-edit-field.component";
+import { CombinedDateEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/combined-date-edit-field.component";
+import { VersionAutocompleterComponent } from "core-app/shared/components/autocompleter/version-autocompleter/version-autocompleter.component";
+import { WorkPackageAutocompleterComponent } from "core-app/shared/components/autocompleter/work-package-autocompleter/wp-autocompleter.component";
+import { WorkPackageCommentFieldComponent } from "core-app/features/work-packages/components/work-package-comment/wp-comment-field.component";
export function initializeCoreEditFields(editFieldService:EditFieldService, selectAutocompleterRegisterService:SelectAutocompleterRegisterService) {
diff --git a/frontend/src/app/modules/fields/edit/edit-field.service.ts b/frontend/src/app/shared/components/fields/edit/edit-field.service.ts
similarity index 88%
rename from frontend/src/app/modules/fields/edit/edit-field.service.ts
rename to frontend/src/app/shared/components/fields/edit/edit-field.service.ts
index ea87f3025f3..b921b5763b9 100644
--- a/frontend/src/app/modules/fields/edit/edit-field.service.ts
+++ b/frontend/src/app/shared/components/fields/edit/edit-field.service.ts
@@ -27,8 +27,8 @@
//++
import { Injectable } from '@angular/core';
-import { AbstractFieldService, IFieldType } from "core-app/modules/fields/field.service";
-import { EditFieldComponent } from "core-app/modules/fields/edit/edit-field.component";
+import { AbstractFieldService, IFieldType } from "core-app/shared/components/fields/field.service";
+import { EditFieldComponent } from "core-app/shared/components/fields/edit/edit-field.component";
export interface IEditFieldType extends IFieldType<EditFieldComponent> {
new():EditFieldComponent;
diff --git a/frontend/src/app/modules/fields/edit/edit-form/edit-form-routing.service.ts b/frontend/src/app/shared/components/fields/edit/edit-form/edit-form-routing.service.ts
similarity index 100%
rename from frontend/src/app/modules/fields/edit/edit-form/edit-form-routing.service.ts
rename to frontend/src/app/shared/components/fields/edit/edit-form/edit-form-routing.service.ts
diff --git a/frontend/src/app/modules/fields/edit/edit-form/edit-form.component.ts b/frontend/src/app/shared/components/fields/edit/edit-form/edit-form.component.ts
similarity index 85%
rename from frontend/src/app/modules/fields/edit/edit-form/edit-form.component.ts
rename to frontend/src/app/shared/components/fields/edit/edit-form/edit-form.component.ts
index 3bea15afbbd..93f7559e113 100644
--- a/frontend/src/app/modules/fields/edit/edit-form/edit-form.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/edit-form/edit-form.component.ts
@@ -28,23 +28,23 @@
import { Component, ElementRef, EventEmitter, Injector, Input, OnDestroy, OnInit, Optional, Output } from '@angular/core';
import { StateService, Transition, TransitionService } from '@uirouter/core';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
-import { EditableAttributeFieldComponent } from 'core-app/modules/fields/edit/field/editable-attribute-field.component';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
+import { EditableAttributeFieldComponent } from 'core-app/shared/components/fields/edit/field/editable-attribute-field.component';
import { input } from 'reactivestates';
import { filter, map, take } from 'rxjs/operators';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import {
activeFieldClassName,
activeFieldContainerClassName,
EditForm
-} from "core-app/modules/fields/edit/edit-form/edit-form";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { IFieldSchema } from "core-app/modules/fields/field.base";
-import { EditFieldHandler } from "core-app/modules/fields/edit/editing-portal/edit-field-handler";
-import { EditingPortalService } from "core-app/modules/fields/edit/editing-portal/editing-portal-service";
-import { EditFormRoutingService } from "core-app/modules/fields/edit/edit-form/edit-form-routing.service";
-import { ResourceChangesetCommit } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { GlobalEditFormChangesTrackerService } from "core-app/modules/fields/edit/services/global-edit-form-changes-tracker/global-edit-form-changes-tracker.service";
+} from "core-app/shared/components/fields/edit/edit-form/edit-form";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
+import { EditFieldHandler } from "core-app/shared/components/fields/edit/editing-portal/edit-field-handler";
+import { EditingPortalService } from "core-app/shared/components/fields/edit/editing-portal/editing-portal-service";
+import { EditFormRoutingService } from "core-app/shared/components/fields/edit/edit-form/edit-form-routing.service";
+import { ResourceChangesetCommit } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { GlobalEditFormChangesTrackerService } from "core-app/shared/components/fields/edit/services/global-edit-form-changes-tracker/global-edit-form-changes-tracker.service";
@Component({
selector: 'edit-form,[edit-form]',
diff --git a/frontend/src/app/modules/fields/edit/edit-form/edit-form.ts b/frontend/src/app/shared/components/fields/edit/edit-form/edit-form.ts
similarity index 91%
rename from frontend/src/app/modules/fields/edit/edit-form/edit-form.ts
rename to frontend/src/app/shared/components/fields/edit/edit-form/edit-form.ts
index 9ab1ef72926..2ce3b43a572 100644
--- a/frontend/src/app/modules/fields/edit/edit-form/edit-form.ts
+++ b/frontend/src/app/shared/components/fields/edit/edit-form/edit-form.ts
@@ -27,20 +27,19 @@
//++
import { Injector } from '@angular/core';
-import { ErrorResource } from 'core-app/modules/hal/resources/error-resource';
-import { States } from 'core-components/states.service';
-import { IFieldSchema } from "core-app/modules/fields/field.base";
-
+import { States } from 'core-app/core/states/states.service';
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
import {
HalResourceEditingService,
ResourceChangesetCommit
-} from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { HalEventsService } from "core-app/modules/hal/services/hal-events.service";
-import { EditFieldHandler } from "core-app/modules/fields/edit/editing-portal/edit-field-handler";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { ResourceChangeset } from "core-app/modules/fields/changeset/resource-changeset";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+} from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
+import { EditFieldHandler } from "core-app/shared/components/fields/edit/editing-portal/edit-field-handler";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { ResourceChangeset } from "core-app/shared/components/fields/changeset/resource-changeset";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { ErrorResource } from "core-app/features/hal/resources/error-resource";
export const activeFieldContainerClassName = 'inline-edit--active-field';
export const activeFieldClassName = 'inline-edit--field';
diff --git a/frontend/src/app/modules/fields/edit/editing-portal/edit-field-handler.ts b/frontend/src/app/shared/components/fields/edit/editing-portal/edit-field-handler.ts
similarity index 96%
rename from frontend/src/app/modules/fields/edit/editing-portal/edit-field-handler.ts
rename to frontend/src/app/shared/components/fields/edit/editing-portal/edit-field-handler.ts
index 82267dbbe6d..69207c3b50c 100644
--- a/frontend/src/app/modules/fields/edit/editing-portal/edit-field-handler.ts
+++ b/frontend/src/app/shared/components/fields/edit/editing-portal/edit-field-handler.ts
@@ -27,8 +27,8 @@
//++
import { Subject } from 'rxjs';
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
export abstract class EditFieldHandler extends UntilDestroyedMixin {
/**
diff --git a/frontend/src/app/modules/fields/edit/editing-portal/edit-form-portal.component.html b/frontend/src/app/shared/components/fields/edit/editing-portal/edit-form-portal.component.html
similarity index 100%
rename from frontend/src/app/modules/fields/edit/editing-portal/edit-form-portal.component.html
rename to frontend/src/app/shared/components/fields/edit/editing-portal/edit-form-portal.component.html
diff --git a/frontend/src/app/modules/fields/edit/editing-portal/edit-form-portal.component.ts b/frontend/src/app/shared/components/fields/edit/editing-portal/edit-form-portal.component.ts
similarity index 76%
rename from frontend/src/app/modules/fields/edit/editing-portal/edit-form-portal.component.ts
rename to frontend/src/app/shared/components/fields/edit/editing-portal/edit-form-portal.component.ts
index 150d03dee76..539d1fdedfd 100644
--- a/frontend/src/app/modules/fields/edit/editing-portal/edit-form-portal.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/editing-portal/edit-form-portal.component.ts
@@ -9,16 +9,16 @@ import {
OnInit,
Output
} from "@angular/core";
-import { EditFieldHandler } from "core-app/modules/fields/edit/editing-portal/edit-field-handler";
+import { EditFieldHandler } from "core-app/shared/components/fields/edit/editing-portal/edit-field-handler";
import {
OpEditingPortalChangesetToken,
OpEditingPortalHandlerToken,
OpEditingPortalSchemaToken
-} from "core-app/modules/fields/edit/edit-field.component";
-import { createLocalInjector } from "core-app/modules/fields/edit/editing-portal/edit-form-portal.injector";
-import { IFieldSchema } from "core-app/modules/fields/field.base";
-import { EditFieldService, IEditFieldType } from "core-app/modules/fields/edit/edit-field.service";
-import { ResourceChangeset } from "core-app/modules/fields/changeset/resource-changeset";
+} from "core-app/shared/components/fields/edit/edit-field.component";
+import { createLocalInjector } from "core-app/shared/components/fields/edit/editing-portal/edit-form-portal.injector";
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
+import { EditFieldService, IEditFieldType } from "core-app/shared/components/fields/edit/edit-field.service";
+import { ResourceChangeset } from "core-app/shared/components/fields/changeset/resource-changeset";
@Component({
selector: 'edit-form-portal',
diff --git a/frontend/src/app/modules/fields/edit/editing-portal/edit-form-portal.injector.ts b/frontend/src/app/shared/components/fields/edit/editing-portal/edit-form-portal.injector.ts
similarity index 67%
rename from frontend/src/app/modules/fields/edit/editing-portal/edit-form-portal.injector.ts
rename to frontend/src/app/shared/components/fields/edit/editing-portal/edit-form-portal.injector.ts
index 2c3e2fe29a9..7258023c491 100644
--- a/frontend/src/app/modules/fields/edit/editing-portal/edit-form-portal.injector.ts
+++ b/frontend/src/app/shared/components/fields/edit/editing-portal/edit-form-portal.injector.ts
@@ -3,11 +3,11 @@ import {
OpEditingPortalChangesetToken,
OpEditingPortalHandlerToken,
OpEditingPortalSchemaToken
-} from "core-app/modules/fields/edit/edit-field.component";
+} from "core-app/shared/components/fields/edit/edit-field.component";
import { PortalInjector } from "@angular/cdk/portal";
-import { EditFieldHandler } from "core-app/modules/fields/edit/editing-portal/edit-field-handler";
-import { IFieldSchema } from "core-app/modules/fields/field.base";
-import { ResourceChangeset } from "core-app/modules/fields/changeset/resource-changeset";
+import { EditFieldHandler } from "core-app/shared/components/fields/edit/editing-portal/edit-field-handler";
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
+import { ResourceChangeset } from "core-app/shared/components/fields/changeset/resource-changeset";
/**
* Creates an injector for the edit field portal to pass data into.
diff --git a/frontend/src/app/modules/fields/edit/editing-portal/editing-portal-service.ts b/frontend/src/app/shared/components/fields/edit/editing-portal/editing-portal-service.ts
similarity index 75%
rename from frontend/src/app/modules/fields/edit/editing-portal/editing-portal-service.ts
rename to frontend/src/app/shared/components/fields/edit/editing-portal/editing-portal-service.ts
index 86db95fcabd..dec476bd72b 100644
--- a/frontend/src/app/modules/fields/edit/editing-portal/editing-portal-service.ts
+++ b/frontend/src/app/shared/components/fields/edit/editing-portal/editing-portal-service.ts
@@ -3,14 +3,14 @@
*/
import { ApplicationRef, ComponentFactoryResolver, Injectable, Injector } from "@angular/core";
import { ComponentPortal, DomPortalOutlet } from "@angular/cdk/portal";
-import { EditFormPortalComponent } from "core-app/modules/fields/edit/editing-portal/edit-form-portal.component";
-import { createLocalInjector } from "core-app/modules/fields/edit/editing-portal/edit-form-portal.injector";
+import { EditFormPortalComponent } from "core-app/shared/components/fields/edit/editing-portal/edit-form-portal.component";
+import { createLocalInjector } from "core-app/shared/components/fields/edit/editing-portal/edit-form-portal.injector";
import { take } from "rxjs/operators";
-import { IFieldSchema } from "core-app/modules/fields/field.base";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { EditForm } from "core-app/modules/fields/edit/edit-form/edit-form";
-import { EditFieldHandler } from "core-app/modules/fields/edit/editing-portal/edit-field-handler";
-import { HalResourceEditFieldHandler } from "core-app/modules/fields/edit/field-handler/hal-resource-edit-field-handler";
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { EditForm } from "core-app/shared/components/fields/edit/edit-form/edit-form";
+import { EditFieldHandler } from "core-app/shared/components/fields/edit/editing-portal/edit-field-handler";
+import { HalResourceEditFieldHandler } from "core-app/shared/components/fields/edit/field-handler/hal-resource-edit-field-handler";
@Injectable({ providedIn: 'root' })
export class EditingPortalService {
diff --git a/frontend/src/app/modules/fields/edit/field-controls/edit-field-controls.component.html b/frontend/src/app/shared/components/fields/edit/field-controls/edit-field-controls.component.html
similarity index 100%
rename from frontend/src/app/modules/fields/edit/field-controls/edit-field-controls.component.html
rename to frontend/src/app/shared/components/fields/edit/field-controls/edit-field-controls.component.html
diff --git a/frontend/src/app/modules/fields/edit/field-controls/edit-field-controls.component.ts b/frontend/src/app/shared/components/fields/edit/field-controls/edit-field-controls.component.ts
similarity index 94%
rename from frontend/src/app/modules/fields/edit/field-controls/edit-field-controls.component.ts
rename to frontend/src/app/shared/components/fields/edit/field-controls/edit-field-controls.component.ts
index bdbc0331482..6484baf6b37 100644
--- a/frontend/src/app/modules/fields/edit/field-controls/edit-field-controls.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-controls/edit-field-controls.component.ts
@@ -27,7 +27,7 @@
//++
import { Component, Input, Output, EventEmitter } from "@angular/core";
-import { EditFieldComponent } from "core-app/modules/fields/edit/edit-field.component";
+import { EditFieldComponent } from "core-app/shared/components/fields/edit/edit-field.component";
@Component({
selector: 'edit-field-controls',
diff --git a/frontend/src/app/modules/fields/edit/field-controls/edit-field-controls.module.ts b/frontend/src/app/shared/components/fields/edit/field-controls/edit-field-controls.module.ts
similarity index 54%
rename from frontend/src/app/modules/fields/edit/field-controls/edit-field-controls.module.ts
rename to frontend/src/app/shared/components/fields/edit/field-controls/edit-field-controls.module.ts
index fdb85e7d57a..b4dcc74a78a 100644
--- a/frontend/src/app/modules/fields/edit/field-controls/edit-field-controls.module.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-controls/edit-field-controls.module.ts
@@ -1,7 +1,7 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
-import { EditFieldControlsComponent } from "core-app/modules/fields/edit/field-controls/edit-field-controls.component";
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
+import { EditFieldControlsComponent } from "core-app/shared/components/fields/edit/field-controls/edit-field-controls.component";
+import { OPSharedModule } from "core-app/shared/shared.module";
@NgModule({
@@ -10,7 +10,7 @@ import { OpenprojectCommonModule } from "core-app/modules/common/openproject-com
],
imports: [
CommonModule,
- OpenprojectCommonModule,
+ OPSharedModule,
],
exports: [
EditFieldControlsComponent,
diff --git a/frontend/src/app/modules/fields/edit/field-handler/hal-resource-edit-field-handler.ts b/frontend/src/app/shared/components/fields/edit/field-handler/hal-resource-edit-field-handler.ts
similarity index 86%
rename from frontend/src/app/modules/fields/edit/field-handler/hal-resource-edit-field-handler.ts
rename to frontend/src/app/shared/components/fields/edit/field-handler/hal-resource-edit-field-handler.ts
index 3ee4a536e6e..51871fa9c87 100644
--- a/frontend/src/app/modules/fields/edit/field-handler/hal-resource-edit-field-handler.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-handler/hal-resource-edit-field-handler.ts
@@ -26,20 +26,20 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { keyCodes } from 'core-app/modules/common/keyCodes.enum';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
+import { keyCodes } from 'core-app/shared/helpers/keyCodes.enum';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
import { Injector } from '@angular/core';
-import { FocusHelperService } from 'core-app/modules/focus/focus-helper';
-import { EditFieldHandler } from "core-app/modules/fields/edit/editing-portal/edit-field-handler";
-import { ClickPositionMapper } from "core-app/modules/common/set-click-position/set-click-position";
-import { debugLog } from "core-app/helpers/debug_output";
-import { IFieldSchema } from "core-app/modules/fields/field.base";
+import { FocusHelperService } from 'core-app/shared/directives/focus/focus-helper';
+import { EditFieldHandler } from "core-app/shared/components/fields/edit/editing-portal/edit-field-handler";
+import { ClickPositionMapper } from "core-app/shared/helpers/set-click-position/set-click-position";
+import { debugLog } from "core-app/shared/helpers/debug_output";
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
import { Subject } from 'rxjs';
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { EditForm } from "core-app/modules/fields/edit/edit-form/edit-form";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { EditForm } from "core-app/shared/components/fields/edit/edit-form/edit-form";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class HalResourceEditFieldHandler extends EditFieldHandler {
// Injections
diff --git a/frontend/src/app/modules/fields/edit/field-types/boolean-edit-field/boolean-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/boolean-edit-field/boolean-edit-field.component.ts
similarity index 94%
rename from frontend/src/app/modules/fields/edit/field-types/boolean-edit-field/boolean-edit-field.component.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/boolean-edit-field/boolean-edit-field.component.ts
index 34158f27fbc..83966ec0384 100644
--- a/frontend/src/app/modules/fields/edit/field-types/boolean-edit-field/boolean-edit-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/boolean-edit-field/boolean-edit-field.component.ts
@@ -27,7 +27,7 @@
//++
import { Component } from "@angular/core";
-import { EditFieldComponent } from "core-app/modules/fields/edit/edit-field.component";
+import { EditFieldComponent } from "core-app/shared/components/fields/edit/edit-field.component";
@Component({
diff --git a/frontend/src/app/modules/fields/edit/field-types/boolean-edit-field/boolean-edit-field.module.ts b/frontend/src/app/shared/components/fields/edit/field-types/boolean-edit-field/boolean-edit-field.module.ts
similarity index 66%
rename from frontend/src/app/modules/fields/edit/field-types/boolean-edit-field/boolean-edit-field.module.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/boolean-edit-field/boolean-edit-field.module.ts
index 481d7c5c1f8..d60a2cdb888 100644
--- a/frontend/src/app/modules/fields/edit/field-types/boolean-edit-field/boolean-edit-field.module.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/boolean-edit-field/boolean-edit-field.module.ts
@@ -1,6 +1,6 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
-import { BooleanEditFieldComponent } from "core-app/modules/fields/edit/field-types/boolean-edit-field/boolean-edit-field.component";
+import { BooleanEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/boolean-edit-field/boolean-edit-field.component";
diff --git a/frontend/src/app/modules/fields/edit/field-types/combined-date-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/combined-date-edit-field.component.ts
similarity index 86%
rename from frontend/src/app/modules/fields/edit/field-types/combined-date-edit-field.component.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/combined-date-edit-field.component.ts
index 7d78841ec1b..9c765c5474b 100644
--- a/frontend/src/app/modules/fields/edit/field-types/combined-date-edit-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/combined-date-edit-field.component.ts
@@ -27,13 +27,13 @@
//++
import { Component, OnDestroy, OnInit } from "@angular/core";
-import { TimezoneService } from "core-components/datetime/timezone.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { DatePickerModal } from "core-components/datepicker/datepicker.modal";
-import { OpModalService } from "core-app/modules/modal/modal.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
import { take } from "rxjs/operators";
-import { DateEditFieldComponent } from "core-app/modules/fields/edit/field-types/date-edit-field/date-edit-field.component";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
+import { DateEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/date-edit-field/date-edit-field.component";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { DatePickerModal } from "core-app/shared/components/datepicker/datepicker.modal";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
@Component({
template: `
diff --git a/frontend/src/app/modules/fields/edit/field-types/date-edit-field/date-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/date-edit-field/date-edit-field.component.ts
similarity index 87%
rename from frontend/src/app/modules/fields/edit/field-types/date-edit-field/date-edit-field.component.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/date-edit-field/date-edit-field.component.ts
index 98fecb99b3e..ab6ebfc22f2 100644
--- a/frontend/src/app/modules/fields/edit/field-types/date-edit-field/date-edit-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/date-edit-field/date-edit-field.component.ts
@@ -28,10 +28,10 @@
import { Component, OnInit } from "@angular/core";
import * as moment from "moment";
-import { TimezoneService } from "core-components/datetime/timezone.service";
-import { EditFieldComponent } from "core-app/modules/fields/edit/edit-field.component";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { OpModalService } from "core-app/modules/modal/modal.service";
+import { EditFieldComponent } from "core-app/shared/components/fields/edit/edit-field.component";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
@Component({
template: `
diff --git a/frontend/src/app/modules/fields/edit/field-types/date-edit-field/date-edit-field.module.ts b/frontend/src/app/shared/components/fields/edit/field-types/date-edit-field/date-edit-field.module.ts
similarity index 56%
rename from frontend/src/app/modules/fields/edit/field-types/date-edit-field/date-edit-field.module.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/date-edit-field/date-edit-field.module.ts
index abec9f8a4b9..a1f852bfcb7 100644
--- a/frontend/src/app/modules/fields/edit/field-types/date-edit-field/date-edit-field.module.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/date-edit-field/date-edit-field.module.ts
@@ -1,7 +1,7 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
-import { DateEditFieldComponent } from "core-app/modules/fields/edit/field-types/date-edit-field/date-edit-field.component";
-import { DatePickerModule } from "core-app/modules/common/op-date-picker/date-picker.module";
+import { DateEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/date-edit-field/date-edit-field.component";
+import { DatePickerModule } from "core-app/shared/components/op-date-picker/date-picker.module";
diff --git a/frontend/src/app/modules/fields/edit/field-types/duration-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/duration-edit-field.component.ts
similarity index 92%
rename from frontend/src/app/modules/fields/edit/field-types/duration-edit-field.component.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/duration-edit-field.component.ts
index ab78f69f8d4..ce583c2d44c 100644
--- a/frontend/src/app/modules/fields/edit/field-types/duration-edit-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/duration-edit-field.component.ts
@@ -26,11 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { TimezoneService } from 'core-components/datetime/timezone.service';
import * as moment from 'moment';
import { Component } from "@angular/core";
-import { EditFieldComponent } from "core-app/modules/fields/edit/edit-field.component";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { EditFieldComponent } from "core-app/shared/components/fields/edit/edit-field.component";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
@Component({
template: `
diff --git a/frontend/src/app/modules/fields/edit/field-types/float-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/float-edit-field.component.ts
similarity index 94%
rename from frontend/src/app/modules/fields/edit/field-types/float-edit-field.component.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/float-edit-field.component.ts
index bae521a5f57..d6cb4cb25d1 100644
--- a/frontend/src/app/modules/fields/edit/field-types/float-edit-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/float-edit-field.component.ts
@@ -26,7 +26,7 @@
// ++
import { Component } from "@angular/core";
-import { EditFieldComponent } from "core-app/modules/fields/edit/edit-field.component";
+import { EditFieldComponent } from "core-app/shared/components/fields/edit/edit-field.component";
@Component({
template: `
diff --git a/frontend/src/app/modules/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component.html b/frontend/src/app/shared/components/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component.html
similarity index 100%
rename from frontend/src/app/modules/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component.html
rename to frontend/src/app/shared/components/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component.html
diff --git a/frontend/src/app/modules/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component.ts
similarity index 92%
rename from frontend/src/app/modules/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component.ts
index f92c80ac65e..d04d5e07539 100644
--- a/frontend/src/app/modules/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component.ts
@@ -26,9 +26,13 @@
// ++
import { Component, OnInit, ViewChild, ChangeDetectionStrategy } from "@angular/core";
-import { EditFieldComponent } from "core-app/modules/fields/edit/edit-field.component";
-import { OpCkeditorComponent } from "core-app/modules/common/ckeditor/op-ckeditor.component";
-import { ICKEditorContext, ICKEditorInstance } from "core-app/modules/common/ckeditor/ckeditor-setup.service";
+import { EditFieldComponent } from "core-app/shared/components/fields/edit/edit-field.component";
+import { OpCkeditorComponent } from "core-app/shared/components/editor/components/ckeditor/op-ckeditor.component";
+import {
+ ICKEditorContext,
+ ICKEditorInstance,
+} from "core-app/shared/components/editor/components/ckeditor/ckeditor-setup.service";
+
@Component({
templateUrl: "./formattable-edit-field.component.html",
diff --git a/frontend/src/app/shared/components/fields/edit/field-types/formattable-edit-field/formattable-edit-field.module.ts b/frontend/src/app/shared/components/fields/edit/field-types/formattable-edit-field/formattable-edit-field.module.ts
new file mode 100644
index 00000000000..01b010ba4ab
--- /dev/null
+++ b/frontend/src/app/shared/components/fields/edit/field-types/formattable-edit-field/formattable-edit-field.module.ts
@@ -0,0 +1,21 @@
+import { NgModule } from '@angular/core';
+import { CommonModule } from '@angular/common';
+import { FormattableEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/formattable-edit-field/formattable-edit-field.component";
+import { OpenprojectEditorModule } from "core-app/shared/components/editor/openproject-editor.module";
+import { EditFieldControlsModule } from "core-app/shared/components/fields/edit/field-controls/edit-field-controls.module";
+
+
+@NgModule({
+ declarations: [
+ FormattableEditFieldComponent,
+ ],
+ imports: [
+ CommonModule,
+ OpenprojectEditorModule,
+ EditFieldControlsModule,
+ ],
+ exports: [
+ FormattableEditFieldComponent,
+ ]
+})
+export class FormattableEditFieldModule { }
diff --git a/frontend/src/app/modules/fields/edit/field-types/integer-edit-field/integer-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/integer-edit-field/integer-edit-field.component.ts
similarity index 94%
rename from frontend/src/app/modules/fields/edit/field-types/integer-edit-field/integer-edit-field.component.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/integer-edit-field/integer-edit-field.component.ts
index 0014c0bffa6..db4b81a51c4 100644
--- a/frontend/src/app/modules/fields/edit/field-types/integer-edit-field/integer-edit-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/integer-edit-field/integer-edit-field.component.ts
@@ -26,7 +26,7 @@
// ++
import { Component } from "@angular/core";
-import { EditFieldComponent } from "core-app/modules/fields/edit/edit-field.component";
+import { EditFieldComponent } from "core-app/shared/components/fields/edit/edit-field.component";
@Component({
template: `
diff --git a/frontend/src/app/modules/fields/edit/field-types/integer-edit-field/integer-edit-field.module.ts b/frontend/src/app/shared/components/fields/edit/field-types/integer-edit-field/integer-edit-field.module.ts
similarity index 70%
rename from frontend/src/app/modules/fields/edit/field-types/integer-edit-field/integer-edit-field.module.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/integer-edit-field/integer-edit-field.module.ts
index 45f10ef5c78..05ba23adffa 100644
--- a/frontend/src/app/modules/fields/edit/field-types/integer-edit-field/integer-edit-field.module.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/integer-edit-field/integer-edit-field.module.ts
@@ -1,6 +1,6 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
-import { IntegerEditFieldComponent } from "core-app/modules/fields/edit/field-types/integer-edit-field/integer-edit-field.component";
+import { IntegerEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/integer-edit-field/integer-edit-field.component";
import { FormsModule } from "@angular/forms";
diff --git a/frontend/src/app/modules/fields/edit/field-types/multi-select-edit-field.component.html b/frontend/src/app/shared/components/fields/edit/field-types/multi-select-edit-field.component.html
similarity index 100%
rename from frontend/src/app/modules/fields/edit/field-types/multi-select-edit-field.component.html
rename to frontend/src/app/shared/components/fields/edit/field-types/multi-select-edit-field.component.html
diff --git a/frontend/src/app/modules/fields/edit/field-types/multi-select-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/multi-select-edit-field.component.ts
similarity index 92%
rename from frontend/src/app/modules/fields/edit/field-types/multi-select-edit-field.component.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/multi-select-edit-field.component.ts
index 7ca991883c7..28ed25c930d 100644
--- a/frontend/src/app/modules/fields/edit/field-types/multi-select-edit-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/multi-select-edit-field.component.ts
@@ -26,14 +26,14 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
import { Component, OnInit, ViewChild } from "@angular/core";
-import { EditFieldComponent } from "core-app/modules/fields/edit/edit-field.component";
-import { ValueOption } from "core-app/modules/fields/edit/field-types/select-edit-field/select-edit-field.component";
+import { EditFieldComponent } from "core-app/shared/components/fields/edit/edit-field.component";
+import { ValueOption } from "core-app/shared/components/fields/edit/field-types/select-edit-field/select-edit-field.component";
import { NgSelectComponent } from "@ng-select/ng-select";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
@Component({
templateUrl: './multi-select-edit-field.component.html'
diff --git a/frontend/src/app/modules/fields/edit/field-types/plain-formattable-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/plain-formattable-edit-field.component.ts
similarity index 94%
rename from frontend/src/app/modules/fields/edit/field-types/plain-formattable-edit-field.component.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/plain-formattable-edit-field.component.ts
index 9269961be7f..5d595dc0043 100644
--- a/frontend/src/app/modules/fields/edit/field-types/plain-formattable-edit-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/plain-formattable-edit-field.component.ts
@@ -27,7 +27,7 @@
//++
import { Component } from "@angular/core";
-import { EditFieldComponent } from "core-app/modules/fields/edit/edit-field.component";
+import { EditFieldComponent } from "core-app/shared/components/fields/edit/edit-field.component";
@Component({
templateUrl: './text-edit-field.component.html'
diff --git a/frontend/src/app/modules/fields/edit/field-types/project-status-edit-field.component.html b/frontend/src/app/shared/components/fields/edit/field-types/project-status-edit-field.component.html
similarity index 100%
rename from frontend/src/app/modules/fields/edit/field-types/project-status-edit-field.component.html
rename to frontend/src/app/shared/components/fields/edit/field-types/project-status-edit-field.component.html
diff --git a/frontend/src/app/shared/components/fields/edit/field-types/project-status-edit-field.component.sass b/frontend/src/app/shared/components/fields/edit/field-types/project-status-edit-field.component.sass
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/frontend/src/app/modules/fields/edit/field-types/project-status-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/project-status-edit-field.component.ts
similarity index 90%
rename from frontend/src/app/modules/fields/edit/field-types/project-status-edit-field.component.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/project-status-edit-field.component.ts
index c7d9cf0b09c..ea6c841a55b 100644
--- a/frontend/src/app/modules/fields/edit/field-types/project-status-edit-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/project-status-edit-field.component.ts
@@ -26,13 +26,13 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
import { Component, OnInit, ViewChild } from "@angular/core";
-import { EditFieldComponent } from "core-app/modules/fields/edit/edit-field.component";
+import { EditFieldComponent } from "core-app/shared/components/fields/edit/edit-field.component";
import { NgSelectComponent } from "@ng-select/ng-select";
-import { projectStatusCodeCssClass, projectStatusI18n } from "core-app/modules/fields/helpers/project-status-helper";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { projectStatusCodeCssClass, projectStatusI18n } from "core-app/shared/components/fields/helpers/project-status-helper";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
interface ProjectStatusOption {
href:string
diff --git a/frontend/src/app/modules/fields/edit/field-types/select-edit-field/select-autocompleter-register.service.ts b/frontend/src/app/shared/components/fields/edit/field-types/select-edit-field/select-autocompleter-register.service.ts
similarity index 100%
rename from frontend/src/app/modules/fields/edit/field-types/select-edit-field/select-autocompleter-register.service.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/select-edit-field/select-autocompleter-register.service.ts
diff --git a/frontend/src/app/modules/fields/edit/field-types/select-edit-field/select-edit-field.component.html b/frontend/src/app/shared/components/fields/edit/field-types/select-edit-field/select-edit-field.component.html
similarity index 100%
rename from frontend/src/app/modules/fields/edit/field-types/select-edit-field/select-edit-field.component.html
rename to frontend/src/app/shared/components/fields/edit/field-types/select-edit-field/select-edit-field.component.html
diff --git a/frontend/src/app/modules/fields/edit/field-types/select-edit-field/select-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/select-edit-field/select-edit-field.component.ts
similarity index 91%
rename from frontend/src/app/modules/fields/edit/field-types/select-edit-field/select-edit-field.component.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/select-edit-field/select-edit-field.component.ts
index 8f2ab0a72a8..9a867db3259 100644
--- a/frontend/src/app/modules/fields/edit/field-types/select-edit-field/select-edit-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/select-edit-field/select-edit-field.component.ts
@@ -27,18 +27,18 @@
//++
import { Component, InjectFlags, OnInit } from '@angular/core';
-import { HalResourceSortingService } from 'core-app/modules/hal/services/hal-resource-sorting.service';
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { EditFieldComponent } from '../../edit-field.component';
-import { SelectAutocompleterRegisterService } from 'core-app/modules/fields/edit/field-types/select-edit-field/select-autocompleter-register.service';
+import { SelectAutocompleterRegisterService } from 'core-app/shared/components/fields/edit/field-types/select-edit-field/select-autocompleter-register.service';
import { from } from 'rxjs';
import { map, tap } from 'rxjs/operators';
-import { HalResourceNotificationService } from 'core-app/modules/hal/services/hal-resource-notification.service';
-import { InjectField } from 'core-app/helpers/angular/inject-field.decorator';
-import { CreateAutocompleterComponent } from "core-app/modules/autocompleter/create-autocompleter/create-autocompleter.component";
-import { EditFormComponent } from "core-app/modules/fields/edit/edit-form/edit-form.component";
+import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';
+import { CreateAutocompleterComponent } from "core-app/shared/components/autocompleter/create-autocompleter/create-autocompleter.component";
+import { EditFormComponent } from "core-app/shared/components/fields/edit/edit-form/edit-form.component";
import { StateService } from "@uirouter/core";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { HalResourceSortingService } from "core-app/features/hal/services/hal-resource-sorting.service";
export interface ValueOption {
name:string;
diff --git a/frontend/src/app/modules/fields/edit/field-types/select-edit-field/select-edit-field.module.ts b/frontend/src/app/shared/components/fields/edit/field-types/select-edit-field/select-edit-field.module.ts
similarity index 71%
rename from frontend/src/app/modules/fields/edit/field-types/select-edit-field/select-edit-field.module.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/select-edit-field/select-edit-field.module.ts
index 58098189e2f..a0eda33c40b 100644
--- a/frontend/src/app/modules/fields/edit/field-types/select-edit-field/select-edit-field.module.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/select-edit-field/select-edit-field.module.ts
@@ -1,6 +1,6 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
-import { SelectEditFieldComponent } from "core-app/modules/fields/edit/field-types/select-edit-field/select-edit-field.component";
+import { SelectEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/select-edit-field/select-edit-field.component";
import { DynamicModule } from 'ng-dynamic-component';
diff --git a/frontend/src/app/modules/fields/edit/field-types/te-work-package-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/te-work-package-edit-field.component.ts
similarity index 89%
rename from frontend/src/app/modules/fields/edit/field-types/te-work-package-edit-field.component.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/te-work-package-edit-field.component.ts
index 45950128077..623af26bccd 100644
--- a/frontend/src/app/modules/fields/edit/field-types/te-work-package-edit-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/te-work-package-edit-field.component.ts
@@ -27,15 +27,15 @@
//++
import { Component } from "@angular/core";
-import { WorkPackageEditFieldComponent } from "core-app/modules/fields/edit/field-types/work-package-edit-field.component";
-import { ApiV3FilterBuilder } from "core-components/api/api-v3/api-v3-filter-builder";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { WorkPackageEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/work-package-edit-field.component";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import {
TimeEntryWorkPackageAutocompleterComponent,
TimeEntryWorkPackageAutocompleterMode
-} from "core-app/modules/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component";
+} from "core-app/shared/components/autocompleter/te-work-package-autocompleter/te-work-package-autocompleter.component";
+import { ApiV3FilterBuilder } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
const RECENT_TIME_ENTRIES_MAGIC_NUMBER = 30;
diff --git a/frontend/src/app/modules/fields/edit/field-types/text-edit-field.component.html b/frontend/src/app/shared/components/fields/edit/field-types/text-edit-field.component.html
similarity index 100%
rename from frontend/src/app/modules/fields/edit/field-types/text-edit-field.component.html
rename to frontend/src/app/shared/components/fields/edit/field-types/text-edit-field.component.html
diff --git a/frontend/src/app/modules/fields/edit/field-types/text-edit-field/text-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/text-edit-field/text-edit-field.component.ts
similarity index 93%
rename from frontend/src/app/modules/fields/edit/field-types/text-edit-field/text-edit-field.component.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/text-edit-field/text-edit-field.component.ts
index 091774a6a1d..c79624869a9 100644
--- a/frontend/src/app/modules/fields/edit/field-types/text-edit-field/text-edit-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/text-edit-field/text-edit-field.component.ts
@@ -27,7 +27,7 @@
//++
import { Component } from "@angular/core";
-import { EditFieldComponent } from "core-app/modules/fields/edit/edit-field.component";
+import { EditFieldComponent } from "core-app/shared/components/fields/edit/edit-field.component";
@Component({
templateUrl: '../text-edit-field.component.html'
diff --git a/frontend/src/app/modules/fields/edit/field-types/text-edit-field/text-edit-field.module.ts b/frontend/src/app/shared/components/fields/edit/field-types/text-edit-field/text-edit-field.module.ts
similarity index 62%
rename from frontend/src/app/modules/fields/edit/field-types/text-edit-field/text-edit-field.module.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/text-edit-field/text-edit-field.module.ts
index 3b85c47faef..1d24188bfd2 100644
--- a/frontend/src/app/modules/fields/edit/field-types/text-edit-field/text-edit-field.module.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/text-edit-field/text-edit-field.module.ts
@@ -1,8 +1,8 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from "@angular/forms";
-import { TextEditFieldComponent } from "core-app/modules/fields/edit/field-types/text-edit-field/text-edit-field.component";
-import { FocusModule } from "core-app/modules/focus/focus.module";
+import { TextEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/text-edit-field/text-edit-field.component";
+import { FocusModule } from "core-app/shared/directives/focus/focus.module";
@NgModule({
imports: [
diff --git a/frontend/src/app/modules/fields/edit/field-types/work-package-edit-field.component.html b/frontend/src/app/shared/components/fields/edit/field-types/work-package-edit-field.component.html
similarity index 100%
rename from frontend/src/app/modules/fields/edit/field-types/work-package-edit-field.component.html
rename to frontend/src/app/shared/components/fields/edit/field-types/work-package-edit-field.component.html
diff --git a/frontend/src/app/modules/fields/edit/field-types/work-package-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/work-package-edit-field.component.ts
similarity index 92%
rename from frontend/src/app/modules/fields/edit/field-types/work-package-edit-field.component.ts
rename to frontend/src/app/shared/components/fields/edit/field-types/work-package-edit-field.component.ts
index 250cc7b9fdc..34eb20f319d 100644
--- a/frontend/src/app/modules/fields/edit/field-types/work-package-edit-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/work-package-edit-field.component.ts
@@ -28,10 +28,10 @@
import { Component } from "@angular/core";
import { SelectEditFieldComponent, ValueOption } from './select-edit-field/select-edit-field.component';
-import { ApiV3FilterBuilder } from "core-components/api/api-v3/api-v3-filter-builder";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { DebouncedRequestSwitchmap, errorNotificationHandler } from "core-app/helpers/rxjs/debounced-input-switchmap";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { DebouncedRequestSwitchmap, errorNotificationHandler } from "core-app/shared/helpers/rxjs/debounced-input-switchmap";
import { take } from 'rxjs/operators';
+import { ApiV3FilterBuilder } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
@Component({
templateUrl: './work-package-edit-field.component.html'
diff --git a/frontend/src/app/modules/fields/edit/field/editable-attribute-field.component.html b/frontend/src/app/shared/components/fields/edit/field/editable-attribute-field.component.html
similarity index 100%
rename from frontend/src/app/modules/fields/edit/field/editable-attribute-field.component.html
rename to frontend/src/app/shared/components/fields/edit/field/editable-attribute-field.component.html
diff --git a/frontend/src/app/modules/fields/edit/field/editable-attribute-field.component.ts b/frontend/src/app/shared/components/fields/edit/field/editable-attribute-field.component.ts
similarity index 85%
rename from frontend/src/app/modules/fields/edit/field/editable-attribute-field.component.ts
rename to frontend/src/app/shared/components/fields/edit/field/editable-attribute-field.component.ts
index 63eb6da5daf..9ee5dc5c24f 100644
--- a/frontend/src/app/modules/fields/edit/field/editable-attribute-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field/editable-attribute-field.component.ts
@@ -26,8 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { States } from 'core-components/states.service';
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
import { SelectionHelpers } from '../../../../helpers/selection-helpers';
import { debugLog } from '../../../../helpers/debug_output';
import {
@@ -41,21 +40,22 @@ import {
OnInit, Optional,
ViewChild
} from '@angular/core';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
-import { OPContextMenuService } from "core-components/op-context-menu/op-context-menu.service";
-import { NotificationsService } from 'core-app/modules/common/notifications/notifications.service';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { ClickPositionMapper } from "core-app/modules/common/set-click-position/set-click-position";
-import { EditFormComponent } from "core-app/modules/fields/edit/edit-form/edit-form.component";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { ISchemaProxy } from "core-app/modules/hal/schemas/schema-proxy";
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
+import { OPContextMenuService } from "core-app/shared/components/op-context-menu/op-context-menu.service";
+import { NotificationsService } from 'core-app/shared/components/notifications/notifications.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { ClickPositionMapper } from "core-app/shared/helpers/set-click-position/set-click-position";
+import { EditFormComponent } from "core-app/shared/components/fields/edit/edit-form/edit-form.component";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { ISchemaProxy } from "core-app/features/hal/schemas/schema-proxy";
import {
displayClassName,
DisplayFieldRenderer,
editFieldContainerClass
-} from "core-app/modules/fields/display/display-field-renderer";
+} from "core-app/shared/components/fields/display/display-field-renderer";
+import { States } from "core-app/core/states/states.service";
@Component({
selector: 'editable-attribute-field',
diff --git a/frontend/src/app/modules/fields/edit/services/global-edit-form-changes-tracker/global-edit-form-changes-tracker.service.spec.ts b/frontend/src/app/shared/components/fields/edit/services/global-edit-form-changes-tracker/global-edit-form-changes-tracker.service.spec.ts
similarity index 95%
rename from frontend/src/app/modules/fields/edit/services/global-edit-form-changes-tracker/global-edit-form-changes-tracker.service.spec.ts
rename to frontend/src/app/shared/components/fields/edit/services/global-edit-form-changes-tracker/global-edit-form-changes-tracker.service.spec.ts
index 0dea9a6f700..e5d26dbd820 100644
--- a/frontend/src/app/modules/fields/edit/services/global-edit-form-changes-tracker/global-edit-form-changes-tracker.service.spec.ts
+++ b/frontend/src/app/shared/components/fields/edit/services/global-edit-form-changes-tracker/global-edit-form-changes-tracker.service.spec.ts
@@ -1,6 +1,6 @@
import { TestBed } from '@angular/core/testing';
import { GlobalEditFormChangesTrackerService } from './global-edit-form-changes-tracker.service';
-import { EditFormComponent } from "core-app/modules/fields/edit/edit-form/edit-form.component";
+import { EditFormComponent } from "core-app/shared/components/fields/edit/edit-form/edit-form.component";
describe('GlobalEditFormChangesTrackerService', () => {
let service:GlobalEditFormChangesTrackerService;
diff --git a/frontend/src/app/modules/fields/edit/services/global-edit-form-changes-tracker/global-edit-form-changes-tracker.service.ts b/frontend/src/app/shared/components/fields/edit/services/global-edit-form-changes-tracker/global-edit-form-changes-tracker.service.ts
similarity index 85%
rename from frontend/src/app/modules/fields/edit/services/global-edit-form-changes-tracker/global-edit-form-changes-tracker.service.ts
rename to frontend/src/app/shared/components/fields/edit/services/global-edit-form-changes-tracker/global-edit-form-changes-tracker.service.ts
index c3bc036c670..138f1175a2a 100644
--- a/frontend/src/app/modules/fields/edit/services/global-edit-form-changes-tracker/global-edit-form-changes-tracker.service.ts
+++ b/frontend/src/app/shared/components/fields/edit/services/global-edit-form-changes-tracker/global-edit-form-changes-tracker.service.ts
@@ -1,6 +1,6 @@
import { Injectable } from '@angular/core';
-import { EditFormComponent } from "core-app/modules/fields/edit/edit-form/edit-form.component";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { EditFormComponent } from "core-app/shared/components/fields/edit/edit-form/edit-form.component";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Injectable({
providedIn: 'root'
diff --git a/frontend/src/app/modules/fields/edit/services/hal-resource-editing.service.ts b/frontend/src/app/shared/components/fields/edit/services/hal-resource-editing.service.ts
similarity index 93%
rename from frontend/src/app/modules/fields/edit/services/hal-resource-editing.service.ts
rename to frontend/src/app/shared/components/fields/edit/services/hal-resource-editing.service.ts
index bcdceb76342..99cb5eab931 100644
--- a/frontend/src/app/modules/fields/edit/services/hal-resource-editing.service.ts
+++ b/frontend/src/app/shared/components/fields/edit/services/hal-resource-editing.service.ts
@@ -30,13 +30,13 @@ import { combine, deriveRaw, InputState, multiInput, MultiInputState, State, Sta
import { filter, map } from 'rxjs/operators';
import { Injectable, Injector } from '@angular/core';
import { Subject } from "rxjs";
-import { FormResource } from "core-app/modules/hal/resources/form-resource";
-import { ChangeMap } from "core-app/modules/fields/changeset/changeset";
-import { ResourceChangeset } from "core-app/modules/fields/changeset/resource-changeset";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { HookService } from "core-app/modules/plugins/hook-service";
-import { HalEventsService } from "core-app/modules/hal/services/hal-events.service";
-import { StateCacheService } from "core-app/modules/apiv3/cache/state-cache.service";
+import { FormResource } from "core-app/features/hal/resources/form-resource";
+import { ChangeMap } from "core-app/shared/components/fields/changeset/changeset";
+import { ResourceChangeset } from "core-app/shared/components/fields/changeset/resource-changeset";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { HookService } from "core-app/features/plugins/hook-service";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
+import { StateCacheService } from "core-app/core/apiv3/cache/state-cache.service";
class ChangesetStates extends StatesGroup {
name = 'Changesets';
diff --git a/frontend/src/app/modules/fields/field.base.ts b/frontend/src/app/shared/components/fields/field.base.ts
similarity index 92%
rename from frontend/src/app/modules/fields/field.base.ts
rename to frontend/src/app/shared/components/fields/field.base.ts
index 1220651c521..779ab19803b 100644
--- a/frontend/src/app/modules/fields/field.base.ts
+++ b/frontend/src/app/shared/components/fields/field.base.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayFieldContext } from "core-app/modules/fields/display/display-field.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { DisplayFieldContext } from "core-app/shared/components/fields/display/display-field.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
export interface IFieldSchema {
type:string;
diff --git a/frontend/src/app/modules/fields/field.service.ts b/frontend/src/app/shared/components/fields/field.service.ts
similarity index 98%
rename from frontend/src/app/modules/fields/field.service.ts
rename to frontend/src/app/shared/components/fields/field.service.ts
index dc78ca2fc2b..0b4babb1630 100644
--- a/frontend/src/app/modules/fields/field.service.ts
+++ b/frontend/src/app/shared/components/fields/field.service.ts
@@ -27,7 +27,7 @@
//++
import { Injector } from '@angular/core';
-import { Field } from "core-app/modules/fields/field.base";
+import { Field } from "core-app/shared/components/fields/field.base";
export interface IFieldType<T extends Field> {
fieldType:string;
diff --git a/frontend/src/app/modules/fields/helpers/project-status-helper.ts b/frontend/src/app/shared/components/fields/helpers/project-status-helper.ts
similarity index 86%
rename from frontend/src/app/modules/fields/helpers/project-status-helper.ts
rename to frontend/src/app/shared/components/fields/helpers/project-status-helper.ts
index 541f8a62147..b058861b73e 100644
--- a/frontend/src/app/modules/fields/helpers/project-status-helper.ts
+++ b/frontend/src/app/shared/components/fields/helpers/project-status-helper.ts
@@ -1,4 +1,4 @@
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
export function projectStatusCodeCssClass(code:string|null|undefined):string {
code = ensureDefaultCode(code);
diff --git a/frontend/src/app/modules/fields/macros/attribute-label-macro.component.ts b/frontend/src/app/shared/components/fields/macros/attribute-label-macro.component.ts
similarity index 85%
rename from frontend/src/app/modules/fields/macros/attribute-label-macro.component.ts
rename to frontend/src/app/shared/components/fields/macros/attribute-label-macro.component.ts
index 28587b56233..f5d6cd2b750 100644
--- a/frontend/src/app/modules/fields/macros/attribute-label-macro.component.ts
+++ b/frontend/src/app/shared/components/fields/macros/attribute-label-macro.component.ts
@@ -35,20 +35,20 @@ import {
Injector,
ViewChild
} from "@angular/core";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { NEVER, Observable } from "rxjs";
import { filter, map, take, tap } from "rxjs/operators";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { DisplayFieldService } from "core-app/modules/fields/display/display-field.service";
-import { IFieldSchema } from "core-app/modules/fields/field.base";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { DisplayFieldService } from "core-app/shared/components/fields/display/display-field.service";
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import {
AttributeModelLoaderService,
SupportedAttributeModels
-} from "core-app/modules/fields/macros/attribute-model-loader.service";
-import { StringHelpers } from "core-app/helpers/string-helpers";
+} from "core-app/shared/components/fields/macros/attribute-model-loader.service";
+import { StringHelpers } from "core-app/shared/helpers/string-helpers";
export const attributeLabelMacro = 'macro.macro--attribute-label';
diff --git a/frontend/src/app/modules/fields/macros/attribute-label-macro.html b/frontend/src/app/shared/components/fields/macros/attribute-label-macro.html
similarity index 100%
rename from frontend/src/app/modules/fields/macros/attribute-label-macro.html
rename to frontend/src/app/shared/components/fields/macros/attribute-label-macro.html
diff --git a/frontend/src/app/shared/components/fields/macros/attribute-macro.sass b/frontend/src/app/shared/components/fields/macros/attribute-macro.sass
new file mode 100644
index 00000000000..21f5bfce867
--- /dev/null
+++ b/frontend/src/app/shared/components/fields/macros/attribute-macro.sass
@@ -0,0 +1,4 @@
+@import 'src/assets/sass/helpers'
+
+\:host
+ @include macro--text-style
\ No newline at end of file
diff --git a/frontend/src/app/modules/fields/macros/attribute-model-loader.service.ts b/frontend/src/app/shared/components/fields/macros/attribute-model-loader.service.ts
similarity index 91%
rename from frontend/src/app/modules/fields/macros/attribute-model-loader.service.ts
rename to frontend/src/app/shared/components/fields/macros/attribute-model-loader.service.ts
index dfff52bec9e..914508ee5bf 100644
--- a/frontend/src/app/modules/fields/macros/attribute-model-loader.service.ts
+++ b/frontend/src/app/shared/components/fields/macros/attribute-model-loader.service.ts
@@ -27,15 +27,14 @@
//++ Ng1FieldControlsWrapper,
import { Injectable } from "@angular/core";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { NEVER, Observable, throwError } from "rxjs";
import { filter, map, take, tap } from "rxjs/operators";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { multiInput } from "reactivestates";
import { TransitionService } from "@uirouter/core";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export type SupportedAttributeModels = 'project'|'workPackage';
diff --git a/frontend/src/app/modules/fields/macros/attribute-value-macro.component.ts b/frontend/src/app/shared/components/fields/macros/attribute-value-macro.component.ts
similarity index 86%
rename from frontend/src/app/modules/fields/macros/attribute-value-macro.component.ts
rename to frontend/src/app/shared/components/fields/macros/attribute-value-macro.component.ts
index 2bba4322eb1..58ff918825d 100644
--- a/frontend/src/app/modules/fields/macros/attribute-value-macro.component.ts
+++ b/frontend/src/app/shared/components/fields/macros/attribute-value-macro.component.ts
@@ -35,19 +35,19 @@ import {
Injector,
ViewChild
} from "@angular/core";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { NEVER, Observable } from "rxjs";
import { filter, map, take, tap } from "rxjs/operators";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { DisplayFieldService } from "core-app/modules/fields/display/display-field.service";
-import { IFieldSchema } from "core-app/modules/fields/field.base";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { DisplayFieldService } from "core-app/shared/components/fields/display/display-field.service";
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import {
AttributeModelLoaderService,
SupportedAttributeModels
-} from "core-app/modules/fields/macros/attribute-model-loader.service";
+} from "core-app/shared/components/fields/macros/attribute-model-loader.service";
export const attributeValueMacro = 'macro.macro--attribute-value';
diff --git a/frontend/src/app/modules/fields/macros/attribute-value-macro.html b/frontend/src/app/shared/components/fields/macros/attribute-value-macro.html
similarity index 100%
rename from frontend/src/app/modules/fields/macros/attribute-value-macro.html
rename to frontend/src/app/shared/components/fields/macros/attribute-value-macro.html
diff --git a/frontend/src/app/modules/fields/macros/work-package-quickinfo-macro.component.ts b/frontend/src/app/shared/components/fields/macros/work-package-quickinfo-macro.component.ts
similarity index 79%
rename from frontend/src/app/modules/fields/macros/work-package-quickinfo-macro.component.ts
rename to frontend/src/app/shared/components/fields/macros/work-package-quickinfo-macro.component.ts
index f74ef8016ef..271fa6864e1 100644
--- a/frontend/src/app/modules/fields/macros/work-package-quickinfo-macro.component.ts
+++ b/frontend/src/app/shared/components/fields/macros/work-package-quickinfo-macro.component.ts
@@ -27,17 +27,17 @@
//++ Ng1FieldControlsWrapper,
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, HostBinding, Injector } from "@angular/core";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { Observable } from "rxjs";
import { tap } from "rxjs/operators";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { DisplayFieldService } from "core-app/modules/fields/display/display-field.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { DateDisplayField } from "core-app/modules/fields/display/field-types/date-display-field.module";
-import { CombinedDateDisplayField } from "core-app/modules/fields/display/field-types/combined-date-display.field";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { DisplayFieldService } from "core-app/shared/components/fields/display/display-field.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { DateDisplayField } from "core-app/shared/components/fields/display/field-types/date-display-field.module";
+import { CombinedDateDisplayField } from "core-app/shared/components/fields/display/field-types/combined-date-display.field";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
export const quickInfoMacroSelector = 'macro.macro--wp-quickinfo';
diff --git a/frontend/src/app/modules/fields/macros/work-package-quickinfo-macro.html b/frontend/src/app/shared/components/fields/macros/work-package-quickinfo-macro.html
similarity index 100%
rename from frontend/src/app/modules/fields/macros/work-package-quickinfo-macro.html
rename to frontend/src/app/shared/components/fields/macros/work-package-quickinfo-macro.html
diff --git a/frontend/src/app/shared/components/fields/macros/work-package-quickinfo-macro.sass b/frontend/src/app/shared/components/fields/macros/work-package-quickinfo-macro.sass
new file mode 100644
index 00000000000..35907b26d72
--- /dev/null
+++ b/frontend/src/app/shared/components/fields/macros/work-package-quickinfo-macro.sass
@@ -0,0 +1,7 @@
+@import 'src/assets/sass/helpers'
+
+\:host
+ @include macro--text-style
+
+display-field
+ padding-right: 2px
\ No newline at end of file
diff --git a/frontend/src/app/shared/components/fields/openproject-fields.module.ts b/frontend/src/app/shared/components/fields/openproject-fields.module.ts
new file mode 100644
index 00000000000..a1f8638d1b3
--- /dev/null
+++ b/frontend/src/app/shared/components/fields/openproject-fields.module.ts
@@ -0,0 +1,123 @@
+//-- copyright
+// OpenProject is an open source project management software.
+// Copyright (C) 2012-2021 the OpenProject GmbH
+//
+// 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 docs/COPYRIGHT.rdoc for more details.
+//++
+
+import { APP_INITIALIZER, NgModule } from '@angular/core';
+import { CommonModule } from "@angular/common";
+import { OpenprojectAccessibilityModule } from "core-app/shared/directives/a11y/openproject-a11y.module";
+import { OpenprojectModalModule } from "core-app/shared/components/modal/modal.module";
+import { OpenprojectEditorModule } from 'core-app/shared/components/editor/openproject-editor.module';
+import { OpenprojectAttachmentsModule } from "core-app/shared/components/attachments/openproject-attachments.module";
+import { OPSharedModule } from "core-app/shared/shared.module";
+import { AttributeHelpTextModule } from "core-app/shared/components/attribute-help-texts/attribute-help-text.module";
+import { EditFieldService } from "core-app/shared/components/fields/edit/edit-field.service";
+import { DisplayFieldService } from "core-app/shared/components/fields/display/display-field.service";
+import { initializeCoreEditFields } from "core-app/shared/components/fields/edit/edit-field.initializer";
+import { initializeCoreDisplayFields } from "core-app/shared/components/fields/display/display-field.initializer";
+import { DurationEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/duration-edit-field.component";
+import { FloatEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/float-edit-field.component";
+import { MultiSelectEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/multi-select-edit-field.component";
+import { EditFormPortalComponent } from "core-app/shared/components/fields/edit/editing-portal/edit-form-portal.component";
+import { SelectAutocompleterRegisterService } from "core-app/shared/components/fields/edit/field-types/select-edit-field/select-autocompleter-register.service";
+import { EditFormComponent } from "core-app/shared/components/fields/edit/edit-form/edit-form.component";
+import { WorkPackageEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/work-package-edit-field.component";
+import { EditableAttributeFieldComponent } from "core-app/shared/components/fields/edit/field/editable-attribute-field.component";
+import { ProjectStatusEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/project-status-edit-field.component";
+import { PlainFormattableEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/plain-formattable-edit-field.component";
+import { TimeEntryWorkPackageEditFieldComponent } from "core-app/shared/components/fields/edit/field-types/te-work-package-edit-field.component";
+import { AttributeValueMacroComponent } from "core-app/shared/components/fields/macros/attribute-value-macro.component";
+import { AttributeLabelMacroComponent } from "core-app/shared/components/fields/macros/attribute-label-macro.component";
+import { WorkPackageQuickinfoMacroComponent } from "core-app/shared/components/fields/macros/work-package-quickinfo-macro.component";
+import { DisplayFieldComponent } from "core-app/shared/components/fields/display/display-field.component";
+import { OpenprojectAutocompleterModule } from "core-app/shared/components/autocompleter/openproject-autocompleter.module";
+import { BooleanEditFieldModule } from "core-app/shared/components/fields/edit/field-types/boolean-edit-field/boolean-edit-field.module";
+import { IntegerEditFieldModule } from "core-app/shared/components/fields/edit/field-types/integer-edit-field/integer-edit-field.module";
+import { TextEditFieldModule } from "core-app/shared/components/fields/edit/field-types/text-edit-field/text-edit-field.module";
+import { DateEditFieldModule } from "core-app/shared/components/fields/edit/field-types/date-edit-field/date-edit-field.module";
+import { SelectEditFieldModule } from "core-app/shared/components/fields/edit/field-types/select-edit-field/select-edit-field.module";
+import { FormattableEditFieldModule } from "core-app/shared/components/fields/edit/field-types/formattable-edit-field/formattable-edit-field.module";
+import { EditFieldControlsModule } from "core-app/shared/components/fields/edit/field-controls/edit-field-controls.module";
+
+@NgModule({
+ imports: [
+ CommonModule,
+ OPSharedModule,
+ OpenprojectAttachmentsModule,
+ OpenprojectAccessibilityModule,
+ OpenprojectEditorModule,
+ OpenprojectModalModule,
+ OpenprojectAutocompleterModule,
+ AttributeHelpTextModule,
+ // Input Modules
+ BooleanEditFieldModule,
+ IntegerEditFieldModule,
+ TextEditFieldModule,
+ DateEditFieldModule,
+ SelectEditFieldModule,
+ FormattableEditFieldModule,
+ EditFieldControlsModule,
+ ],
+ exports: [
+ EditFormPortalComponent,
+ EditFormComponent,
+ EditableAttributeFieldComponent,
+ ],
+ providers: [
+ {
+ provide: APP_INITIALIZER,
+ useFactory: initializeCoreEditFields,
+ deps: [EditFieldService, SelectAutocompleterRegisterService],
+ multi: true
+ },
+ {
+ provide: APP_INITIALIZER,
+ useFactory: initializeCoreDisplayFields,
+ deps: [DisplayFieldService],
+ multi: true
+ },
+ ],
+ declarations: [
+ EditFormPortalComponent,
+ DurationEditFieldComponent,
+ FloatEditFieldComponent,
+ PlainFormattableEditFieldComponent,
+ MultiSelectEditFieldComponent,
+ WorkPackageEditFieldComponent,
+ TimeEntryWorkPackageEditFieldComponent,
+ EditFormComponent,
+ DisplayFieldComponent,
+ EditableAttributeFieldComponent,
+ ProjectStatusEditFieldComponent,
+ AttributeValueMacroComponent,
+ AttributeLabelMacroComponent,
+
+ WorkPackageQuickinfoMacroComponent,
+ ]
+})
+export class OpenprojectFieldsModule {
+}
+
diff --git a/frontend/src/app/modules/common/forms/fieldset.sass b/frontend/src/app/shared/components/forms/fieldset.sass
similarity index 98%
rename from frontend/src/app/modules/common/forms/fieldset.sass
rename to frontend/src/app/shared/components/forms/fieldset.sass
index edeee9824ee..885bfed0425 100644
--- a/frontend/src/app/modules/common/forms/fieldset.sass
+++ b/frontend/src/app/shared/components/forms/fieldset.sass
@@ -55,4 +55,4 @@
&--fields
height: auto
visibility: visible
- overflow: visible
+ overflow: visible
\ No newline at end of file
diff --git a/frontend/src/app/modules/common/forms/form-field/form-binding.directive.ts b/frontend/src/app/shared/components/forms/form-field/form-binding.directive.ts
similarity index 100%
rename from frontend/src/app/modules/common/forms/form-field/form-binding.directive.ts
rename to frontend/src/app/shared/components/forms/form-field/form-binding.directive.ts
diff --git a/frontend/src/app/modules/common/forms/form-field/form-field.children.sass b/frontend/src/app/shared/components/forms/form-field/form-field.children.sass
similarity index 100%
rename from frontend/src/app/modules/common/forms/form-field/form-field.children.sass
rename to frontend/src/app/shared/components/forms/form-field/form-field.children.sass
diff --git a/frontend/src/app/modules/common/forms/form-field/form-field.component.html b/frontend/src/app/shared/components/forms/form-field/form-field.component.html
similarity index 100%
rename from frontend/src/app/modules/common/forms/form-field/form-field.component.html
rename to frontend/src/app/shared/components/forms/form-field/form-field.component.html
diff --git a/frontend/src/app/modules/common/forms/form-field/form-field.component.ts b/frontend/src/app/shared/components/forms/form-field/form-field.component.ts
similarity index 100%
rename from frontend/src/app/modules/common/forms/form-field/form-field.component.ts
rename to frontend/src/app/shared/components/forms/form-field/form-field.component.ts
diff --git a/frontend/src/app/modules/common/forms/form-field/form-field.sass b/frontend/src/app/shared/components/forms/form-field/form-field.sass
similarity index 97%
rename from frontend/src/app/modules/common/forms/form-field/form-field.sass
rename to frontend/src/app/shared/components/forms/form-field/form-field.sass
index e106d186bfa..1cd3a42f313 100644
--- a/frontend/src/app/modules/common/forms/form-field/form-field.sass
+++ b/frontend/src/app/shared/components/forms/form-field/form-field.sass
@@ -1,4 +1,4 @@
-@import './form-field.children'
+@import 'form-field.children'
.op-form-field
display: flex
diff --git a/frontend/src/app/modules/common/forms/form.sass b/frontend/src/app/shared/components/forms/form.sass
similarity index 100%
rename from frontend/src/app/modules/common/forms/form.sass
rename to frontend/src/app/shared/components/forms/form.sass
diff --git a/frontend/src/app/modules/common/forms/highlighted-input.sass b/frontend/src/app/shared/components/forms/highlighted-input.sass
similarity index 100%
rename from frontend/src/app/modules/common/forms/highlighted-input.sass
rename to frontend/src/app/shared/components/forms/highlighted-input.sass
diff --git a/frontend/src/app/modules/common/forms/index.sass b/frontend/src/app/shared/components/forms/index.sass
similarity index 100%
rename from frontend/src/app/modules/common/forms/index.sass
rename to frontend/src/app/shared/components/forms/index.sass
diff --git a/frontend/src/app/modules/grids/areas/grid-area.ts b/frontend/src/app/shared/components/grids/areas/grid-area.ts
similarity index 100%
rename from frontend/src/app/modules/grids/areas/grid-area.ts
rename to frontend/src/app/shared/components/grids/areas/grid-area.ts
diff --git a/frontend/src/app/modules/grids/areas/grid-gap.ts b/frontend/src/app/shared/components/grids/areas/grid-gap.ts
similarity index 92%
rename from frontend/src/app/modules/grids/areas/grid-gap.ts
rename to frontend/src/app/shared/components/grids/areas/grid-gap.ts
index dcc8087fb28..de3e41ea539 100644
--- a/frontend/src/app/modules/grids/areas/grid-gap.ts
+++ b/frontend/src/app/shared/components/grids/areas/grid-gap.ts
@@ -1,4 +1,4 @@
-import { GridArea } from "core-app/modules/grids/areas/grid-area";
+import { GridArea } from "core-app/shared/components/grids/areas/grid-area";
export class GridGap extends GridArea {
private type:'row'|'column';
diff --git a/frontend/src/app/modules/grids/areas/grid-widget-area.ts b/frontend/src/app/shared/components/grids/areas/grid-widget-area.ts
similarity index 93%
rename from frontend/src/app/modules/grids/areas/grid-widget-area.ts
rename to frontend/src/app/shared/components/grids/areas/grid-widget-area.ts
index 7f561237ab4..cb42c59b463 100644
--- a/frontend/src/app/modules/grids/areas/grid-widget-area.ts
+++ b/frontend/src/app/shared/components/grids/areas/grid-widget-area.ts
@@ -1,5 +1,5 @@
-import { GridWidgetResource } from "app/modules/hal/resources/grid-widget-resource";
-import { GridArea } from "app/modules/grids/areas/grid-area";
+import { GridWidgetResource } from "core-app/features/hal/resources/grid-widget-resource";
+import { GridArea } from "core-app/shared/components/grids/areas/grid-area";
export class GridWidgetArea extends GridArea {
public widget:GridWidgetResource;
diff --git a/frontend/src/app/modules/grids/grid/add-widget.service.ts b/frontend/src/app/shared/components/grids/grid/add-widget.service.ts
similarity index 75%
rename from frontend/src/app/modules/grids/grid/add-widget.service.ts
rename to frontend/src/app/shared/components/grids/grid/add-widget.service.ts
index aa8c2fb2ae8..46189beb022 100644
--- a/frontend/src/app/modules/grids/grid/add-widget.service.ts
+++ b/frontend/src/app/shared/components/grids/grid/add-widget.service.ts
@@ -1,16 +1,16 @@
import { Injectable, Injector } from "@angular/core";
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { AddGridWidgetModal } from "app/modules/grids/widgets/add/add.modal";
-import { GridWidgetResource } from "app/modules/hal/resources/grid-widget-resource";
-import { GridArea } from "app/modules/grids/areas/grid-area";
-import { HalResourceService } from "app/modules/hal/services/hal-resource.service";
-import { GridWidgetArea } from "core-app/modules/grids/areas/grid-widget-area";
-import { GridAreaService } from "core-app/modules/grids/grid/area.service";
-import { GridDragAndDropService } from "core-app/modules/grids/grid/drag-and-drop.service";
-import { GridResizeService } from "core-app/modules/grids/grid/resize.service";
-import { GridMoveService } from "core-app/modules/grids/grid/move.service";
-import { GridGap } from "core-app/modules/grids/areas/grid-gap";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { AddGridWidgetModal } from "core-app/shared/components/grids/widgets/add/add.modal";
+import { GridWidgetResource } from "core-app/features/hal/resources/grid-widget-resource";
+import { GridArea } from "core-app/shared/components/grids/areas/grid-area";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { GridWidgetArea } from "core-app/shared/components/grids/areas/grid-widget-area";
+import { GridAreaService } from "core-app/shared/components/grids/grid/area.service";
+import { GridDragAndDropService } from "core-app/shared/components/grids/grid/drag-and-drop.service";
+import { GridResizeService } from "core-app/shared/components/grids/grid/resize.service";
+import { GridMoveService } from "core-app/shared/components/grids/grid/move.service";
+import { GridGap } from "core-app/shared/components/grids/areas/grid-gap";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Injectable()
export class GridAddWidgetService {
diff --git a/frontend/src/app/modules/grids/grid/area.service.ts b/frontend/src/app/shared/components/grids/grid/area.service.ts
similarity index 92%
rename from frontend/src/app/modules/grids/grid/area.service.ts
rename to frontend/src/app/shared/components/grids/grid/area.service.ts
index a75a585948b..bd5a32394ec 100644
--- a/frontend/src/app/modules/grids/grid/area.service.ts
+++ b/frontend/src/app/shared/components/grids/grid/area.service.ts
@@ -1,16 +1,16 @@
import { Injectable } from '@angular/core';
-import { GridWidgetArea } from "app/modules/grids/areas/grid-widget-area";
-import { GridArea } from "core-app/modules/grids/areas/grid-area";
-import { GridGap } from "core-app/modules/grids/areas/grid-gap";
-import { GridResource } from "core-app/modules/hal/resources/grid-resource";
-import { GridWidgetResource } from "core-app/modules/hal/resources/grid-widget-resource";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
-import { WidgetChangeset } from "core-app/modules/grids/widgets/widget-changeset";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { GridWidgetArea } from "core-app/shared/components/grids/areas/grid-widget-area";
+import { GridArea } from "core-app/shared/components/grids/areas/grid-area";
+import { GridGap } from "core-app/shared/components/grids/areas/grid-gap";
+import { GridResource } from "core-app/features/hal/resources/grid-resource";
+import { GridWidgetResource } from "core-app/features/hal/resources/grid-widget-resource";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { WidgetChangeset } from "core-app/shared/components/grids/widgets/widget-changeset";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { BehaviorSubject } from 'rxjs';
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { Apiv3GridForm } from "core-app/modules/apiv3/endpoints/grids/apiv3-grid-form";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { Apiv3GridForm } from "core-app/core/apiv3/endpoints/grids/apiv3-grid-form";
import { map } from "rxjs/operators";
@Injectable()
diff --git a/frontend/src/app/modules/grids/grid/drag-and-drop.service.ts b/frontend/src/app/shared/components/grids/grid/drag-and-drop.service.ts
similarity index 92%
rename from frontend/src/app/modules/grids/grid/drag-and-drop.service.ts
rename to frontend/src/app/shared/components/grids/grid/drag-and-drop.service.ts
index eb76db4677d..db03f02fda6 100644
--- a/frontend/src/app/modules/grids/grid/drag-and-drop.service.ts
+++ b/frontend/src/app/shared/components/grids/grid/drag-and-drop.service.ts
@@ -1,8 +1,8 @@
import { Injectable, OnDestroy } from '@angular/core';
-import { GridWidgetArea } from "core-app/modules/grids/areas/grid-widget-area";
-import { GridArea } from "core-app/modules/grids/areas/grid-area";
-import { GridAreaService } from "core-app/modules/grids/grid/area.service";
-import { GridMoveService } from "core-app/modules/grids/grid/move.service";
+import { GridWidgetArea } from "core-app/shared/components/grids/areas/grid-widget-area";
+import { GridArea } from "core-app/shared/components/grids/areas/grid-area";
+import { GridAreaService } from "core-app/shared/components/grids/grid/area.service";
+import { GridMoveService } from "core-app/shared/components/grids/grid/move.service";
import { Subscription } from 'rxjs';
import { filter, distinctUntilChanged, throttleTime } from 'rxjs/operators';
diff --git a/frontend/src/app/modules/grids/grid/grid.component.html b/frontend/src/app/shared/components/grids/grid/grid.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/grid/grid.component.html
rename to frontend/src/app/shared/components/grids/grid/grid.component.html
diff --git a/frontend/src/app/modules/grids/grid/grid.component.ts b/frontend/src/app/shared/components/grids/grid/grid.component.ts
similarity index 72%
rename from frontend/src/app/modules/grids/grid/grid.component.ts
rename to frontend/src/app/shared/components/grids/grid/grid.component.ts
index e3bfd2655cc..74f71a4af75 100644
--- a/frontend/src/app/modules/grids/grid/grid.component.ts
+++ b/frontend/src/app/shared/components/grids/grid/grid.component.ts
@@ -4,20 +4,20 @@ import { Component,
OnInit,
Input,
HostListener } from "@angular/core";
-import { GridResource } from "app/modules/hal/resources/grid-resource";
+import { GridResource } from "core-app/features/hal/resources/grid-resource";
import { DomSanitizer } from "@angular/platform-browser";
-import { GridWidgetsService } from "app/modules/grids/widgets/widgets.service";
-import { AbstractWidgetComponent } from "app/modules/grids/widgets/abstract-widget.component";
-import { GridArea } from "app/modules/grids/areas/grid-area";
-import { GridMoveService } from "app/modules/grids/grid/move.service";
-import { GridDragAndDropService } from "core-app/modules/grids/grid/drag-and-drop.service";
-import { GridResizeService } from "core-app/modules/grids/grid/resize.service";
-import { GridAreaService } from "core-app/modules/grids/grid/area.service";
-import { GridAddWidgetService } from "core-app/modules/grids/grid/add-widget.service";
-import { GridRemoveWidgetService } from "core-app/modules/grids/grid/remove-widget.service";
-import { WidgetWpGraphComponent } from "core-app/modules/grids/widgets/wp-graph/wp-graph.component";
-import { GridWidgetArea } from "core-app/modules/grids/areas/grid-widget-area";
-import { BrowserDetector } from "core-app/modules/common/browser/browser-detector.service";
+import { GridWidgetsService } from "core-app/shared/components/grids/widgets/widgets.service";
+import { AbstractWidgetComponent } from "core-app/shared/components/grids/widgets/abstract-widget.component";
+import { GridArea } from "core-app/shared/components/grids/areas/grid-area";
+import { GridMoveService } from "core-app/shared/components/grids/grid/move.service";
+import { GridDragAndDropService } from "core-app/shared/components/grids/grid/drag-and-drop.service";
+import { GridResizeService } from "core-app/shared/components/grids/grid/resize.service";
+import { GridAreaService } from "core-app/shared/components/grids/grid/area.service";
+import { GridAddWidgetService } from "core-app/shared/components/grids/grid/add-widget.service";
+import { GridRemoveWidgetService } from "core-app/shared/components/grids/grid/remove-widget.service";
+import { WidgetWpGraphComponent } from "core-app/shared/components/grids/widgets/wp-graph/wp-graph.component";
+import { GridWidgetArea } from "core-app/shared/components/grids/areas/grid-widget-area";
+import { BrowserDetector } from "core-app/core/browser/browser-detector.service";
export interface WidgetRegistration {
identifier:string;
diff --git a/frontend/src/app/modules/grids/grid/initialization.service.ts b/frontend/src/app/shared/components/grids/grid/initialization.service.ts
similarity index 87%
rename from frontend/src/app/modules/grids/grid/initialization.service.ts
rename to frontend/src/app/shared/components/grids/grid/initialization.service.ts
index 5c29f140973..06b62f9b0a2 100644
--- a/frontend/src/app/modules/grids/grid/initialization.service.ts
+++ b/frontend/src/app/shared/components/grids/grid/initialization.service.ts
@@ -1,7 +1,7 @@
import { Injectable } from '@angular/core';
-import { GridResource } from "core-app/modules/hal/resources/grid-resource";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { GridResource } from "core-app/features/hal/resources/grid-resource";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { switchMap } from "rxjs/operators";
@Injectable()
diff --git a/frontend/src/app/modules/grids/grid/move.service.ts b/frontend/src/app/shared/components/grids/grid/move.service.ts
similarity index 95%
rename from frontend/src/app/modules/grids/grid/move.service.ts
rename to frontend/src/app/shared/components/grids/grid/move.service.ts
index 9cc3f57a5d5..04d940c5de7 100644
--- a/frontend/src/app/modules/grids/grid/move.service.ts
+++ b/frontend/src/app/shared/components/grids/grid/move.service.ts
@@ -1,6 +1,6 @@
import { Injectable } from '@angular/core';
-import { GridWidgetArea } from "app/modules/grids/areas/grid-widget-area";
-import { GridAreaService } from "core-app/modules/grids/grid/area.service";
+import { GridWidgetArea } from "core-app/shared/components/grids/areas/grid-widget-area";
+import { GridAreaService } from "core-app/shared/components/grids/grid/area.service";
@Injectable()
diff --git a/frontend/src/app/modules/grids/grid/page/grid-page.component.html b/frontend/src/app/shared/components/grids/grid/page/grid-page.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/grid/page/grid-page.component.html
rename to frontend/src/app/shared/components/grids/grid/page/grid-page.component.html
diff --git a/frontend/src/app/modules/grids/grid/page/grid-page.component.sass b/frontend/src/app/shared/components/grids/grid/page/grid-page.component.sass
similarity index 100%
rename from frontend/src/app/modules/grids/grid/page/grid-page.component.sass
rename to frontend/src/app/shared/components/grids/grid/page/grid-page.component.sass
diff --git a/frontend/src/app/modules/grids/grid/page/grid-page.component.ts b/frontend/src/app/shared/components/grids/grid/page/grid-page.component.ts
similarity index 71%
rename from frontend/src/app/modules/grids/grid/page/grid-page.component.ts
rename to frontend/src/app/shared/components/grids/grid/page/grid-page.component.ts
index 9165c16e0c4..8d0d9ca4523 100644
--- a/frontend/src/app/modules/grids/grid/page/grid-page.component.ts
+++ b/frontend/src/app/shared/components/grids/grid/page/grid-page.component.ts
@@ -1,12 +1,12 @@
import { ChangeDetectorRef, OnDestroy, OnInit, Renderer2, Directive } from '@angular/core';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { Title } from '@angular/platform-browser';
-import { GridInitializationService } from "core-app/modules/grids/grid/initialization.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { GridResource } from "core-app/modules/hal/resources/grid-resource";
-import { GridAddWidgetService } from "core-app/modules/grids/grid/add-widget.service";
-import { GridAreaService } from "core-app/modules/grids/grid/area.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
+import { GridInitializationService } from "core-app/shared/components/grids/grid/initialization.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { GridResource } from "core-app/features/hal/resources/grid-resource";
+import { GridAddWidgetService } from "core-app/shared/components/grids/grid/add-widget.service";
+import { GridAreaService } from "core-app/shared/components/grids/grid/area.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
@Directive()
export abstract class GridPageComponent implements OnInit, OnDestroy {
diff --git a/frontend/src/app/modules/grids/grid/remove-widget.service.ts b/frontend/src/app/shared/components/grids/grid/remove-widget.service.ts
similarity index 54%
rename from frontend/src/app/modules/grids/grid/remove-widget.service.ts
rename to frontend/src/app/shared/components/grids/grid/remove-widget.service.ts
index 89a72877380..e465d233383 100644
--- a/frontend/src/app/modules/grids/grid/remove-widget.service.ts
+++ b/frontend/src/app/shared/components/grids/grid/remove-widget.service.ts
@@ -1,7 +1,7 @@
import { Injectable } from "@angular/core";
-import { GridWidgetArea } from "core-app/modules/grids/areas/grid-widget-area";
-import { GridAreaService } from "core-app/modules/grids/grid/area.service";
-import { GridWidgetResource } from "core-app/modules/hal/resources/grid-widget-resource";
+import { GridWidgetArea } from "core-app/shared/components/grids/areas/grid-widget-area";
+import { GridAreaService } from "core-app/shared/components/grids/grid/area.service";
+import { GridWidgetResource } from "core-app/features/hal/resources/grid-widget-resource";
@Injectable()
export class GridRemoveWidgetService {
diff --git a/frontend/src/app/modules/grids/grid/resize.service.ts b/frontend/src/app/shared/components/grids/grid/resize.service.ts
similarity index 85%
rename from frontend/src/app/modules/grids/grid/resize.service.ts
rename to frontend/src/app/shared/components/grids/grid/resize.service.ts
index d8cb0f3abf7..6eeea34b4d4 100644
--- a/frontend/src/app/modules/grids/grid/resize.service.ts
+++ b/frontend/src/app/shared/components/grids/grid/resize.service.ts
@@ -1,10 +1,10 @@
import { Injectable } from '@angular/core';
-import { GridWidgetArea } from "core-app/modules/grids/areas/grid-widget-area";
-import { GridArea } from "core-app/modules/grids/areas/grid-area";
-import { ResizeDelta } from "core-app/modules/common/resizer/resizer.component";
-import { GridAreaService } from "core-app/modules/grids/grid/area.service";
-import { GridMoveService } from "core-app/modules/grids/grid/move.service";
-import { GridDragAndDropService } from "core-app/modules/grids/grid/drag-and-drop.service";
+import { GridWidgetArea } from "core-app/shared/components/grids/areas/grid-widget-area";
+import { GridArea } from "core-app/shared/components/grids/areas/grid-area";
+import { ResizeDelta } from "core-app/shared/components/resizer/resizer.component";
+import { GridAreaService } from "core-app/shared/components/grids/grid/area.service";
+import { GridMoveService } from "core-app/shared/components/grids/grid/move.service";
+import { GridDragAndDropService } from "core-app/shared/components/grids/grid/drag-and-drop.service";
@Injectable()
export class GridResizeService {
diff --git a/frontend/src/app/modules/grids/openproject-grids.module.ts b/frontend/src/app/shared/components/grids/openproject-grids.module.ts
similarity index 72%
rename from frontend/src/app/modules/grids/openproject-grids.module.ts
rename to frontend/src/app/shared/components/grids/openproject-grids.module.ts
index a90e6faca89..4d7a3831412 100644
--- a/frontend/src/app/modules/grids/openproject-grids.module.ts
+++ b/frontend/src/app/shared/components/grids/openproject-grids.module.ts
@@ -28,45 +28,45 @@
import { Injector, NgModule } from '@angular/core';
import { DynamicModule } from 'ng-dynamic-component';
-import { HookService } from "core-app/modules/plugins/hook-service";
-import { OpenprojectCommonModule } from "core-app/modules/common/openproject-common.module";
-import { OpenprojectModalModule } from "core-app/modules/modal/modal.module";
-import { OpenprojectCalendarModule } from "core-app/modules/calendar/openproject-calendar.module";
+import { HookService } from "core-app/features/plugins/hook-service";
+import { OPSharedModule } from "core-app/shared/shared.module";
+import { OpenprojectModalModule } from "core-app/shared/components/modal/modal.module";
+import { OpenprojectCalendarModule } from "core-app/shared/components/calendar/openproject-calendar.module";
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { DragDropModule } from '@angular/cdk/drag-drop';
-import { OpenprojectWorkPackagesModule } from "core-app/modules/work_packages/openproject-work-packages.module";
-import { WidgetWpCalendarComponent } from "core-app/modules/grids/widgets/wp-calendar/wp-calendar.component";
-import { WidgetTimeEntriesCurrentUserComponent } from "core-app/modules/grids/widgets/time-entries/current-user/time-entries-current-user.component";
-import { GridWidgetsService } from "core-app/modules/grids/widgets/widgets.service";
-import { GridComponent } from "core-app/modules/grids/grid/grid.component";
-import { AddGridWidgetModal } from "core-app/modules/grids/widgets/add/add.modal";
-import { WidgetDocumentsComponent } from "core-app/modules/grids/widgets/documents/documents.component";
-import { WidgetNewsComponent } from "core-app/modules/grids/widgets/news/news.component";
-import { WidgetWpTableComponent } from "core-app/modules/grids/widgets/wp-table/wp-table.component";
-import { WidgetMenuComponent } from "core-app/modules/grids/widgets/menu/widget-menu.component";
-import { WidgetWpTableMenuComponent } from "core-app/modules/grids/widgets/wp-table/wp-table-menu.component";
-import { GridInitializationService } from "core-app/modules/grids/grid/initialization.service";
-import { WidgetWpGraphComponent } from "core-app/modules/grids/widgets/wp-graph/wp-graph.component";
-import { WidgetWpGraphMenuComponent } from "core-app/modules/grids/widgets/wp-graph/wp-graph-menu.component";
-import { WidgetWpTableQuerySpaceComponent } from "core-app/modules/grids/widgets/wp-table/wp-table-qs.component";
-import { OpenprojectWorkPackageGraphsModule } from "core-app/modules/work-package-graphs/openproject-work-package-graphs.module";
-import { ApiV3FilterBuilder } from "core-components/api/api-v3/api-v3-filter-builder";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { WidgetProjectDescriptionComponent } from "core-app/modules/grids/widgets/project-description/project-description.component";
-import { WidgetHeaderComponent } from "core-app/modules/grids/widgets/header/header.component";
-import { WidgetWpOverviewComponent } from "core-app/modules/grids/widgets/wp-overview/wp-overview.component";
-import { WidgetCustomTextComponent } from "core-app/modules/grids/widgets/custom-text/custom-text.component";
-import { OpenprojectFieldsModule } from "core-app/modules/fields/openproject-fields.module";
-import { WidgetProjectDetailsComponent } from "core-app/modules/grids/widgets/project-details/project-details.component";
-import { WidgetTimeEntriesProjectComponent } from "core-app/modules/grids/widgets/time-entries/project/time-entries-project.component";
-import { WidgetSubprojectsComponent } from "core-app/modules/grids/widgets/subprojects/subprojects.component";
-import { OpenprojectAttachmentsModule } from "core-app/modules/attachments/openproject-attachments.module";
-import { WidgetMembersComponent } from "core-app/modules/grids/widgets/members/members.component";
-import { WidgetProjectStatusComponent } from "core-app/modules/grids/widgets/project-status/project-status.component";
-import { OpenprojectTimeEntriesModule } from "core-app/modules/time_entries/openproject-time-entries.module";
-import { WidgetTimeEntriesCurrentUserMenuComponent } from "core-app/modules/grids/widgets/time-entries/current-user/time-entries-current-user-menu.component";
+import { OpenprojectWorkPackagesModule } from "core-app/features/work-packages/openproject-work-packages.module";
+import { WidgetWpCalendarComponent } from "core-app/shared/components/grids/widgets/wp-calendar/wp-calendar.component";
+import { WidgetTimeEntriesCurrentUserComponent } from "core-app/shared/components/grids/widgets/time-entries/current-user/time-entries-current-user.component";
+import { GridWidgetsService } from "core-app/shared/components/grids/widgets/widgets.service";
+import { GridComponent } from "core-app/shared/components/grids/grid/grid.component";
+import { AddGridWidgetModal } from "core-app/shared/components/grids/widgets/add/add.modal";
+import { WidgetDocumentsComponent } from "core-app/shared/components/grids/widgets/documents/documents.component";
+import { WidgetNewsComponent } from "core-app/shared/components/grids/widgets/news/news.component";
+import { WidgetWpTableComponent } from "core-app/shared/components/grids/widgets/wp-table/wp-table.component";
+import { WidgetMenuComponent } from "core-app/shared/components/grids/widgets/menu/widget-menu.component";
+import { WidgetWpTableMenuComponent } from "core-app/shared/components/grids/widgets/wp-table/wp-table-menu.component";
+import { GridInitializationService } from "core-app/shared/components/grids/grid/initialization.service";
+import { WidgetWpGraphComponent } from "core-app/shared/components/grids/widgets/wp-graph/wp-graph.component";
+import { WidgetWpGraphMenuComponent } from "core-app/shared/components/grids/widgets/wp-graph/wp-graph-menu.component";
+import { WidgetWpTableQuerySpaceComponent } from "core-app/shared/components/grids/widgets/wp-table/wp-table-qs.component";
+import { OpenprojectWorkPackageGraphsModule } from "core-app/shared/components/work-package-graphs/openproject-work-package-graphs.module";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { WidgetProjectDescriptionComponent } from "core-app/shared/components/grids/widgets/project-description/project-description.component";
+import { WidgetHeaderComponent } from "core-app/shared/components/grids/widgets/header/header.component";
+import { WidgetWpOverviewComponent } from "core-app/shared/components/grids/widgets/wp-overview/wp-overview.component";
+import { WidgetCustomTextComponent } from "core-app/shared/components/grids/widgets/custom-text/custom-text.component";
+import { OpenprojectFieldsModule } from "core-app/shared/components/fields/openproject-fields.module";
+import { WidgetProjectDetailsComponent } from "core-app/shared/components/grids/widgets/project-details/project-details.component";
+import { WidgetTimeEntriesProjectComponent } from "core-app/shared/components/grids/widgets/time-entries/project/time-entries-project.component";
+import { WidgetSubprojectsComponent } from "core-app/shared/components/grids/widgets/subprojects/subprojects.component";
+import { OpenprojectAttachmentsModule } from "core-app/shared/components/attachments/openproject-attachments.module";
+import { WidgetMembersComponent } from "core-app/shared/components/grids/widgets/members/members.component";
+import { WidgetProjectStatusComponent } from "core-app/shared/components/grids/widgets/project-status/project-status.component";
+import { OpenprojectTimeEntriesModule } from "core-app/shared/components/time_entries/openproject-time-entries.module";
+import { WidgetTimeEntriesCurrentUserMenuComponent } from "core-app/shared/components/grids/widgets/time-entries/current-user/time-entries-current-user-menu.component";
import { TimeEntriesCurrentUserConfigurationModalComponent } from './widgets/time-entries/current-user/configuration-modal/configuration.modal';
+import { ApiV3FilterBuilder } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
@NgModule({
imports: [
@@ -74,7 +74,7 @@ import { TimeEntriesCurrentUserConfigurationModalComponent } from './widgets/tim
FormsModule,
DragDropModule,
- OpenprojectCommonModule,
+ OPSharedModule,
OpenprojectModalModule,
OpenprojectWorkPackagesModule,
OpenprojectWorkPackageGraphsModule,
diff --git a/frontend/src/app/modules/grids/widgets/abstract-widget.component.ts b/frontend/src/app/shared/components/grids/widgets/abstract-widget.component.ts
similarity index 82%
rename from frontend/src/app/modules/grids/widgets/abstract-widget.component.ts
rename to frontend/src/app/shared/components/grids/widgets/abstract-widget.component.ts
index 3ef46a2bd11..e603f5f65f2 100644
--- a/frontend/src/app/modules/grids/widgets/abstract-widget.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/abstract-widget.component.ts
@@ -1,8 +1,8 @@
import { Directive, EventEmitter, HostBinding, Injector, Input, Output } from "@angular/core";
-import { GridWidgetResource } from "app/modules/hal/resources/grid-widget-resource";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { WidgetChangeset } from "core-app/modules/grids/widgets/widget-changeset";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { GridWidgetResource } from "core-app/features/hal/resources/grid-widget-resource";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { WidgetChangeset } from "core-app/shared/components/grids/widgets/widget-changeset";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
@Directive()
export abstract class AbstractWidgetComponent extends UntilDestroyedMixin {
diff --git a/frontend/src/app/modules/grids/widgets/add/add.modal.html b/frontend/src/app/shared/components/grids/widgets/add/add.modal.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/add/add.modal.html
rename to frontend/src/app/shared/components/grids/widgets/add/add.modal.html
diff --git a/frontend/src/app/modules/grids/widgets/add/add.modal.ts b/frontend/src/app/shared/components/grids/widgets/add/add.modal.ts
similarity index 74%
rename from frontend/src/app/modules/grids/widgets/add/add.modal.ts
rename to frontend/src/app/shared/components/grids/widgets/add/add.modal.ts
index 2b96dea75d1..5d9254bd478 100644
--- a/frontend/src/app/modules/grids/widgets/add/add.modal.ts
+++ b/frontend/src/app/shared/components/grids/widgets/add/add.modal.ts
@@ -1,11 +1,11 @@
import { Component, ElementRef, Inject, ChangeDetectorRef } from "@angular/core";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { OpModalLocalsMap } from "core-app/modules/modal/modal.types";
-import { WidgetRegistration } from "app/modules/grids/grid/grid.component";
-import { GridWidgetsService } from "app/modules/grids/widgets/widgets.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { BannersService } from "core-app/modules/common/enterprise/banners.service";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
+import { WidgetRegistration } from "core-app/shared/components/grids/grid/grid.component";
+import { GridWidgetsService } from "core-app/shared/components/grids/widgets/widgets.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { BannersService } from "core-app/core/enterprise/banners.service";
@Component({
templateUrl: './add.modal.html'
diff --git a/frontend/src/app/modules/grids/widgets/custom-text/custom-text-edit-field.service.ts b/frontend/src/app/shared/components/grids/widgets/custom-text/custom-text-edit-field.service.ts
similarity index 81%
rename from frontend/src/app/modules/grids/widgets/custom-text/custom-text-edit-field.service.ts
rename to frontend/src/app/shared/components/grids/widgets/custom-text/custom-text-edit-field.service.ts
index c390042da26..d2f542b4892 100644
--- a/frontend/src/app/modules/grids/widgets/custom-text/custom-text-edit-field.service.ts
+++ b/frontend/src/app/shared/components/grids/widgets/custom-text/custom-text-edit-field.service.ts
@@ -1,14 +1,14 @@
-import { EditFieldHandler } from "core-app/modules/fields/edit/editing-portal/edit-field-handler";
+import { EditFieldHandler } from "core-app/shared/components/fields/edit/editing-portal/edit-field-handler";
import { ElementRef, Injector, Injectable } from "@angular/core";
-import { IFieldSchema } from "core-app/modules/fields/field.base";
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
import { BehaviorSubject } from "rxjs";
-import { GridWidgetResource } from "core-app/modules/hal/resources/grid-widget-resource";
-import { UploadFile } from "core-components/api/op-file-upload/op-file-upload.service";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { ResourceChangeset } from "core-app/modules/fields/changeset/resource-changeset";
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
-import { ICKEditorContext } from "core-app/modules/common/ckeditor/ckeditor-setup.service";
+import { GridWidgetResource } from "core-app/features/hal/resources/grid-widget-resource";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { ResourceChangeset } from "core-app/shared/components/fields/changeset/resource-changeset";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
+import { UploadFile } from "core-app/core/file-upload/op-file-upload.service";
+import { ICKEditorContext } from "core-app/shared/components/editor/components/ckeditor/ckeditor-setup.service";
@Injectable()
export class CustomTextEditFieldService extends EditFieldHandler {
diff --git a/frontend/src/app/modules/grids/widgets/custom-text/custom-text.component.html b/frontend/src/app/shared/components/grids/widgets/custom-text/custom-text.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/custom-text/custom-text.component.html
rename to frontend/src/app/shared/components/grids/widgets/custom-text/custom-text.component.html
diff --git a/frontend/src/app/modules/grids/widgets/custom-text/custom-text.component.ts b/frontend/src/app/shared/components/grids/widgets/custom-text/custom-text.component.ts
similarity index 86%
rename from frontend/src/app/modules/grids/widgets/custom-text/custom-text.component.ts
rename to frontend/src/app/shared/components/grids/widgets/custom-text/custom-text.component.ts
index abba17f7b2b..ac39fb34e75 100644
--- a/frontend/src/app/modules/grids/widgets/custom-text/custom-text.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/custom-text/custom-text.component.ts
@@ -1,4 +1,4 @@
-import { AbstractWidgetComponent } from "core-app/modules/grids/widgets/abstract-widget.component";
+import { AbstractWidgetComponent } from "core-app/shared/components/grids/widgets/abstract-widget.component";
import {
ApplicationRef,
ChangeDetectionStrategy,
@@ -12,13 +12,13 @@ import {
SimpleChanges,
ViewChild
} from '@angular/core';
-import { CustomTextEditFieldService } from "core-app/modules/grids/widgets/custom-text/custom-text-edit-field.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { CustomTextEditFieldService } from "core-app/shared/components/grids/widgets/custom-text/custom-text-edit-field.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { filter } from 'rxjs/operators';
-import { GridAreaService } from "core-app/modules/grids/grid/area.service";
+import { GridAreaService } from "core-app/shared/components/grids/grid/area.service";
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
-import { DynamicBootstrapper } from "core-app/globals/dynamic-bootstrapper";
+import { DynamicBootstrapper } from "core-app/core/setup/globals/dynamic-bootstrapper";
@Component({
templateUrl: './custom-text.component.html',
diff --git a/frontend/src/app/modules/grids/widgets/documents/documents.component.html b/frontend/src/app/shared/components/grids/widgets/documents/documents.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/documents/documents.component.html
rename to frontend/src/app/shared/components/grids/widgets/documents/documents.component.html
diff --git a/frontend/src/app/modules/grids/widgets/documents/documents.component.ts b/frontend/src/app/shared/components/grids/widgets/documents/documents.component.ts
similarity index 73%
rename from frontend/src/app/modules/grids/widgets/documents/documents.component.ts
rename to frontend/src/app/shared/components/grids/widgets/documents/documents.component.ts
index 0a6489b8a95..65fd829776b 100644
--- a/frontend/src/app/modules/grids/widgets/documents/documents.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/documents/documents.component.ts
@@ -1,14 +1,14 @@
-import { AbstractWidgetComponent } from "core-app/modules/grids/widgets/abstract-widget.component";
+import { AbstractWidgetComponent } from "core-app/shared/components/grids/widgets/abstract-widget.component";
import { Component, OnInit, SecurityContext, ChangeDetectionStrategy, ChangeDetectorRef, Injector } from '@angular/core';
-import { DocumentResource } from "../../../../../../../modules/documents/frontend/module/hal/resources/document-resource";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { TimezoneService } from "core-components/datetime/timezone.service";
+import { DocumentResource } from "../../../../../../../../modules/documents/frontend/module/hal/resources/document-resource";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
import { DomSanitizer } from '@angular/platform-browser';
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
@Component({
templateUrl: './documents.component.html',
diff --git a/frontend/src/app/modules/grids/widgets/header/header.component.html b/frontend/src/app/shared/components/grids/widgets/header/header.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/header/header.component.html
rename to frontend/src/app/shared/components/grids/widgets/header/header.component.html
diff --git a/frontend/src/app/modules/grids/widgets/header/header.component.sass b/frontend/src/app/shared/components/grids/widgets/header/header.component.sass
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/header/header.component.sass
rename to frontend/src/app/shared/components/grids/widgets/header/header.component.sass
diff --git a/frontend/src/app/modules/grids/widgets/header/header.component.ts b/frontend/src/app/shared/components/grids/widgets/header/header.component.ts
similarity index 95%
rename from frontend/src/app/modules/grids/widgets/header/header.component.ts
rename to frontend/src/app/shared/components/grids/widgets/header/header.component.ts
index 18f4db52e7c..e5337334ee4 100644
--- a/frontend/src/app/modules/grids/widgets/header/header.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/header/header.component.ts
@@ -27,7 +27,7 @@
//++
import { Component, ChangeDetectionStrategy, Input, EventEmitter, Output } from '@angular/core';
-import { GridAreaService } from "core-app/modules/grids/grid/area.service";
+import { GridAreaService } from "core-app/shared/components/grids/grid/area.service";
@Component({
selector: 'widget-header',
diff --git a/frontend/src/app/modules/grids/widgets/members/members.component.html b/frontend/src/app/shared/components/grids/widgets/members/members.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/members/members.component.html
rename to frontend/src/app/shared/components/grids/widgets/members/members.component.html
diff --git a/frontend/src/app/modules/grids/widgets/members/members.component.sass b/frontend/src/app/shared/components/grids/widgets/members/members.component.sass
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/members/members.component.sass
rename to frontend/src/app/shared/components/grids/widgets/members/members.component.sass
diff --git a/frontend/src/app/modules/grids/widgets/members/members.component.ts b/frontend/src/app/shared/components/grids/widgets/members/members.component.ts
similarity index 81%
rename from frontend/src/app/modules/grids/widgets/members/members.component.ts
rename to frontend/src/app/shared/components/grids/widgets/members/members.component.ts
index 631fa681969..c97211a4b56 100644
--- a/frontend/src/app/modules/grids/widgets/members/members.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/members/members.component.ts
@@ -1,14 +1,14 @@
-import {AbstractWidgetComponent} from "core-app/modules/grids/widgets/abstract-widget.component";
+import {AbstractWidgetComponent} from "core-app/shared/components/grids/widgets/abstract-widget.component";
import {Component, OnInit, ChangeDetectorRef, Injector, ChangeDetectionStrategy} from '@angular/core';
-import {I18nService} from "core-app/modules/common/i18n/i18n.service";
-import {PathHelperService} from "core-app/modules/common/path-helper/path-helper.service";
-import {UserResource} from "core-app/modules/hal/resources/user-resource";
-import {CurrentProjectService} from "core-components/projects/current-project.service";
-import {MembershipResource} from "core-app/modules/hal/resources/membership-resource";
-import {RoleResource} from "core-app/modules/hal/resources/role-resource";
-import {APIV3Service} from "core-app/modules/apiv3/api-v3.service";
-import {Apiv3ListParameters} from "core-app/modules/apiv3/paths/apiv3-list-resource.interface";
-import {HalResource} from "core-app/modules/hal/resources/hal-resource";
+import {I18nService} from "core-app/core/i18n/i18n.service";
+import {PathHelperService} from "core-app/core/path-helper/path-helper.service";
+import {UserResource} from "core-app/features/hal/resources/user-resource";
+import {CurrentProjectService} from "core-app/core/current-project/current-project.service";
+import {MembershipResource} from "core-app/features/hal/resources/membership-resource";
+import {RoleResource} from "core-app/features/hal/resources/role-resource";
+import {APIV3Service} from "core-app/core/apiv3/api-v3.service";
+import {Apiv3ListParameters} from "core-app/core/apiv3/paths/apiv3-list-resource.interface";
+import {HalResource} from "core-app/features/hal/resources/hal-resource";
const DISPLAYED_MEMBERS_LIMIT = 100;
diff --git a/frontend/src/app/modules/grids/widgets/menu/widget-abstract-menu.component.ts b/frontend/src/app/shared/components/grids/widgets/menu/widget-abstract-menu.component.ts
similarity index 81%
rename from frontend/src/app/modules/grids/widgets/menu/widget-abstract-menu.component.ts
rename to frontend/src/app/shared/components/grids/widgets/menu/widget-abstract-menu.component.ts
index 37c8a2004e2..525c7e51bba 100644
--- a/frontend/src/app/modules/grids/widgets/menu/widget-abstract-menu.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/menu/widget-abstract-menu.component.ts
@@ -27,11 +27,11 @@
//++
import { Input, Directive } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { OpContextMenuItem } from "core-components/op-context-menu/op-context-menu.types";
-import { GridWidgetResource } from "core-app/modules/hal/resources/grid-widget-resource";
-import { GridRemoveWidgetService } from "core-app/modules/grids/grid/remove-widget.service";
-import { GridAreaService } from "core-app/modules/grids/grid/area.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { OpContextMenuItem } from "core-app/shared/components/op-context-menu/op-context-menu.types";
+import { GridWidgetResource } from "core-app/features/hal/resources/grid-widget-resource";
+import { GridRemoveWidgetService } from "core-app/shared/components/grids/grid/remove-widget.service";
+import { GridAreaService } from "core-app/shared/components/grids/grid/area.service";
@Directive()
export abstract class WidgetAbstractMenuComponent {
diff --git a/frontend/src/app/modules/grids/widgets/menu/widget-menu.component.css b/frontend/src/app/shared/components/grids/widgets/menu/widget-menu.component.css
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/menu/widget-menu.component.css
rename to frontend/src/app/shared/components/grids/widgets/menu/widget-menu.component.css
diff --git a/frontend/src/app/modules/grids/widgets/menu/widget-menu.component.html b/frontend/src/app/shared/components/grids/widgets/menu/widget-menu.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/menu/widget-menu.component.html
rename to frontend/src/app/shared/components/grids/widgets/menu/widget-menu.component.html
diff --git a/frontend/src/app/modules/grids/widgets/menu/widget-menu.component.ts b/frontend/src/app/shared/components/grids/widgets/menu/widget-menu.component.ts
similarity index 92%
rename from frontend/src/app/modules/grids/widgets/menu/widget-menu.component.ts
rename to frontend/src/app/shared/components/grids/widgets/menu/widget-menu.component.ts
index 24c288c7851..8bfabde5d4a 100644
--- a/frontend/src/app/modules/grids/widgets/menu/widget-menu.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/menu/widget-menu.component.ts
@@ -27,7 +27,7 @@
//++
import { Component } from '@angular/core';
-import { WidgetAbstractMenuComponent } from "core-app/modules/grids/widgets/menu/widget-abstract-menu.component";
+import { WidgetAbstractMenuComponent } from "core-app/shared/components/grids/widgets/menu/widget-abstract-menu.component";
@Component({
selector: 'widget-menu',
diff --git a/frontend/src/app/modules/grids/widgets/menu/wp-set-menu.component.ts b/frontend/src/app/shared/components/grids/widgets/menu/wp-set-menu.component.ts
similarity index 78%
rename from frontend/src/app/modules/grids/widgets/menu/wp-set-menu.component.ts
rename to frontend/src/app/shared/components/grids/widgets/menu/wp-set-menu.component.ts
index e516d503b15..ce29133c29f 100644
--- a/frontend/src/app/modules/grids/widgets/menu/wp-set-menu.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/menu/wp-set-menu.component.ts
@@ -27,14 +27,14 @@
//++
import { Injector, EventEmitter, Output, Directive } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { GridRemoveWidgetService } from "core-app/modules/grids/grid/remove-widget.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { GridRemoveWidgetService } from "core-app/shared/components/grids/grid/remove-widget.service";
import { ComponentType } from '@angular/cdk/portal';
-import { WidgetAbstractMenuComponent } from "core-app/modules/grids/widgets/menu/widget-abstract-menu.component";
-import { WpGraphConfigurationModalComponent } from "core-app/modules/work-package-graphs/configuration-modal/wp-graph-configuration.modal";
-import { GridAreaService } from "core-app/modules/grids/grid/area.service";
+import { WidgetAbstractMenuComponent } from "core-app/shared/components/grids/widgets/menu/widget-abstract-menu.component";
+import { WpGraphConfigurationModalComponent } from "core-app/shared/components/work-package-graphs/configuration-modal/wp-graph-configuration.modal";
+import { GridAreaService } from "core-app/shared/components/grids/grid/area.service";
@Directive()
export abstract class WidgetWpSetMenuComponent extends WidgetAbstractMenuComponent {
diff --git a/frontend/src/app/modules/grids/widgets/news/news.component.html b/frontend/src/app/shared/components/grids/widgets/news/news.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/news/news.component.html
rename to frontend/src/app/shared/components/grids/widgets/news/news.component.html
diff --git a/frontend/src/app/modules/grids/widgets/news/news.component.spec.ts b/frontend/src/app/shared/components/grids/widgets/news/news.component.spec.ts
similarity index 89%
rename from frontend/src/app/modules/grids/widgets/news/news.component.spec.ts
rename to frontend/src/app/shared/components/grids/widgets/news/news.component.spec.ts
index 3bb19ec71f7..3cf5ba36e25 100644
--- a/frontend/src/app/modules/grids/widgets/news/news.component.spec.ts
+++ b/frontend/src/app/shared/components/grids/widgets/news/news.component.spec.ts
@@ -1,14 +1,14 @@
import { ComponentFixture, fakeAsync, TestBed, tick, waitForAsync } from '@angular/core/testing';
import { WidgetNewsComponent } from './news.component';
import { DebugElement, NO_ERRORS_SCHEMA } from '@angular/core';
-import { TimezoneService } from 'core-app/components/datetime/timezone.service';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
-import { States } from 'core-app/components/states.service';
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
+import { States } from 'core-app/core/states/states.service';
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
import { HttpClientModule } from "@angular/common/http";
import { By } from '@angular/platform-browser';
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { of } from "rxjs";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
describe('shows news', () => {
let app:WidgetNewsComponent;
diff --git a/frontend/src/app/modules/grids/widgets/news/news.component.ts b/frontend/src/app/shared/components/grids/widgets/news/news.component.ts
similarity index 77%
rename from frontend/src/app/modules/grids/widgets/news/news.component.ts
rename to frontend/src/app/shared/components/grids/widgets/news/news.component.ts
index ed7ff66956c..d5aafa9dd54 100644
--- a/frontend/src/app/modules/grids/widgets/news/news.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/news/news.component.ts
@@ -1,12 +1,12 @@
-import { AbstractWidgetComponent } from "core-app/modules/grids/widgets/abstract-widget.component";
+import { AbstractWidgetComponent } from "core-app/shared/components/grids/widgets/abstract-widget.component";
import { ChangeDetectionStrategy, Component, Injector, OnInit, ChangeDetectorRef } from '@angular/core';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { TimezoneService } from "core-components/datetime/timezone.service";
-import { NewsResource } from "core-app/modules/hal/resources/news-resource";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { Apiv3ListParameters } from "core-app/modules/apiv3/paths/apiv3-list-resource.interface";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { NewsResource } from "core-app/features/hal/resources/news-resource";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { Apiv3ListParameters } from "core-app/core/apiv3/paths/apiv3-list-resource.interface";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
@Component({
templateUrl: './news.component.html',
diff --git a/frontend/src/app/modules/grids/widgets/project-description/project-description.component.html b/frontend/src/app/shared/components/grids/widgets/project-description/project-description.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/project-description/project-description.component.html
rename to frontend/src/app/shared/components/grids/widgets/project-description/project-description.component.html
diff --git a/frontend/src/app/modules/grids/widgets/project-description/project-description.component.ts b/frontend/src/app/shared/components/grids/widgets/project-description/project-description.component.ts
similarity index 80%
rename from frontend/src/app/modules/grids/widgets/project-description/project-description.component.ts
rename to frontend/src/app/shared/components/grids/widgets/project-description/project-description.component.ts
index a9ef8a640c6..6fa59712c75 100644
--- a/frontend/src/app/modules/grids/widgets/project-description/project-description.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/project-description/project-description.component.ts
@@ -27,13 +27,13 @@
//++
import { Component, OnInit, ChangeDetectionStrategy, ChangeDetectorRef, Injector } from '@angular/core';
-import { AbstractWidgetComponent } from "app/modules/grids/widgets/abstract-widget.component";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
+import { AbstractWidgetComponent } from "core-app/shared/components/grids/widgets/abstract-widget.component";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
import { Observable } from "rxjs";
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Component({
templateUrl: './project-description.component.html',
diff --git a/frontend/src/app/modules/grids/widgets/project-details/project-details.component.html b/frontend/src/app/shared/components/grids/widgets/project-details/project-details.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/project-details/project-details.component.html
rename to frontend/src/app/shared/components/grids/widgets/project-details/project-details.component.html
diff --git a/frontend/src/app/modules/grids/widgets/project-details/project-details.component.ts b/frontend/src/app/shared/components/grids/widgets/project-details/project-details.component.ts
similarity index 82%
rename from frontend/src/app/modules/grids/widgets/project-details/project-details.component.ts
rename to frontend/src/app/shared/components/grids/widgets/project-details/project-details.component.ts
index 4125e251a64..6d6a1b006b4 100644
--- a/frontend/src/app/modules/grids/widgets/project-details/project-details.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/project-details/project-details.component.ts
@@ -35,14 +35,14 @@ import {
OnInit,
ViewChild
} from '@angular/core';
-import { AbstractWidgetComponent } from "app/modules/grids/widgets/abstract-widget.component";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { SchemaResource } from "core-app/modules/hal/resources/schema-resource";
+import { AbstractWidgetComponent } from "core-app/shared/components/grids/widgets/abstract-widget.component";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { SchemaResource } from "core-app/features/hal/resources/schema-resource";
import { Observable } from "rxjs";
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Component({
templateUrl: './project-details.component.html',
diff --git a/frontend/src/app/modules/grids/widgets/project-status/project-status.component.html b/frontend/src/app/shared/components/grids/widgets/project-status/project-status.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/project-status/project-status.component.html
rename to frontend/src/app/shared/components/grids/widgets/project-status/project-status.component.html
diff --git a/frontend/src/app/modules/grids/widgets/project-status/project-status.component.ts b/frontend/src/app/shared/components/grids/widgets/project-status/project-status.component.ts
similarity index 75%
rename from frontend/src/app/modules/grids/widgets/project-status/project-status.component.ts
rename to frontend/src/app/shared/components/grids/widgets/project-status/project-status.component.ts
index 92433c87bc6..3f1e0075223 100644
--- a/frontend/src/app/modules/grids/widgets/project-status/project-status.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/project-status/project-status.component.ts
@@ -35,15 +35,15 @@ import {
OnInit,
ViewChild
} from '@angular/core';
-import { AbstractWidgetComponent } from "app/modules/grids/widgets/abstract-widget.component";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
-import { WorkPackageViewHighlightingService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-highlighting.service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { AbstractWidgetComponent } from "core-app/shared/components/grids/widgets/abstract-widget.component";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
+import { WorkPackageViewHighlightingService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-highlighting.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
import { Observable } from "rxjs";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Component({
templateUrl: './project-status.component.html',
diff --git a/frontend/src/app/modules/grids/widgets/subprojects/subprojects.component.html b/frontend/src/app/shared/components/grids/widgets/subprojects/subprojects.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/subprojects/subprojects.component.html
rename to frontend/src/app/shared/components/grids/widgets/subprojects/subprojects.component.html
diff --git a/frontend/src/app/modules/grids/widgets/subprojects/subprojects.component.ts b/frontend/src/app/shared/components/grids/widgets/subprojects/subprojects.component.ts
similarity index 67%
rename from frontend/src/app/modules/grids/widgets/subprojects/subprojects.component.ts
rename to frontend/src/app/shared/components/grids/widgets/subprojects/subprojects.component.ts
index f28b13553d4..7e9a8e529b2 100644
--- a/frontend/src/app/modules/grids/widgets/subprojects/subprojects.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/subprojects/subprojects.component.ts
@@ -1,13 +1,13 @@
-import { AbstractWidgetComponent } from "core-app/modules/grids/widgets/abstract-widget.component";
+import { AbstractWidgetComponent } from "core-app/shared/components/grids/widgets/abstract-widget.component";
import { Component, OnInit, ChangeDetectorRef, Injector, ChangeDetectionStrategy } from '@angular/core';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { TimezoneService } from "core-components/datetime/timezone.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { ProjectResource } from "core-app/modules/hal/resources/project-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { Apiv3ListParameters } from "core-app/modules/apiv3/paths/apiv3-list-resource.interface";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { ProjectResource } from "core-app/features/hal/resources/project-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { Apiv3ListParameters } from "core-app/core/apiv3/paths/apiv3-list-resource.interface";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
@Component({
templateUrl: './subprojects.component.html',
diff --git a/frontend/src/app/modules/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.html b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.html
rename to frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.html
diff --git a/frontend/src/app/modules/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.ts b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.ts
similarity index 74%
rename from frontend/src/app/modules/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.ts
rename to frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.ts
index 1e2aea33af2..e2f26443ffc 100644
--- a/frontend/src/app/modules/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.ts
+++ b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal.ts
@@ -7,14 +7,14 @@ import {
Injector,
OnInit,
} from '@angular/core';
-import { OpModalLocalsMap } from 'core-app/modules/modal/modal.types';
-import { OpModalComponent } from 'core-app/modules/modal/modal.component';
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
-import { LoadingIndicatorService } from 'core-app/modules/common/loading-indicator/loading-indicator.service';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { TimeEntriesCurrentUserConfigurationModalService } from "core-app/modules/grids/widgets/time-entries/current-user/configuration-modal/services/configuration-modal/configuration-modal.service";
+import { OpModalLocalsMap } from 'core-app/shared/components/modal/modal.types';
+import { OpModalComponent } from 'core-app/shared/components/modal/modal.component';
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
+import { LoadingIndicatorService } from 'core-app/core/loading-indicator/loading-indicator.service';
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { TimeEntriesCurrentUserConfigurationModalService } from "core-app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/services/configuration-modal/configuration-modal.service";
@Component({
templateUrl: './configuration.modal.html',
diff --git a/frontend/src/app/modules/grids/widgets/time-entries/current-user/configuration-modal/services/configuration-modal/configuration-modal.service.spec.ts b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/services/configuration-modal/configuration-modal.service.spec.ts
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/time-entries/current-user/configuration-modal/services/configuration-modal/configuration-modal.service.spec.ts
rename to frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/services/configuration-modal/configuration-modal.service.spec.ts
diff --git a/frontend/src/app/modules/grids/widgets/time-entries/current-user/configuration-modal/services/configuration-modal/configuration-modal.service.ts b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/services/configuration-modal/configuration-modal.service.ts
similarity index 96%
rename from frontend/src/app/modules/grids/widgets/time-entries/current-user/configuration-modal/services/configuration-modal/configuration-modal.service.ts
rename to frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/services/configuration-modal/configuration-modal.service.ts
index a1d700558fa..99ff7efaf94 100644
--- a/frontend/src/app/modules/grids/widgets/time-entries/current-user/configuration-modal/services/configuration-modal/configuration-modal.service.ts
+++ b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/services/configuration-modal/configuration-modal.service.ts
@@ -1,5 +1,5 @@
import { Injectable } from '@angular/core';
-import {DisplayedDays} from "core-app/modules/calendar/te-calendar/te-calendar.component";
+import {DisplayedDays} from "core-app/shared/components/calendar/te-calendar/te-calendar.component";
@Injectable()
export class TimeEntriesCurrentUserConfigurationModalService {
diff --git a/frontend/src/app/modules/grids/widgets/time-entries/current-user/time-entries-current-user-menu.component.ts b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/time-entries-current-user-menu.component.ts
similarity index 82%
rename from frontend/src/app/modules/grids/widgets/time-entries/current-user/time-entries-current-user-menu.component.ts
rename to frontend/src/app/shared/components/grids/widgets/time-entries/current-user/time-entries-current-user-menu.component.ts
index 1670c435670..6783fca0a8f 100644
--- a/frontend/src/app/modules/grids/widgets/time-entries/current-user/time-entries-current-user-menu.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/time-entries-current-user-menu.component.ts
@@ -27,12 +27,12 @@
//++
import { Component, Output, EventEmitter, Injector } from '@angular/core';
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { GridRemoveWidgetService } from "core-app/modules/grids/grid/remove-widget.service";
-import { GridAreaService } from "core-app/modules/grids/grid/area.service";
-import { WidgetAbstractMenuComponent } from "core-app/modules/grids/widgets/menu/widget-abstract-menu.component";
-import { TimeEntriesCurrentUserConfigurationModalComponent } from "core-app/modules/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { GridRemoveWidgetService } from "core-app/shared/components/grids/grid/remove-widget.service";
+import { GridAreaService } from "core-app/shared/components/grids/grid/area.service";
+import { WidgetAbstractMenuComponent } from "core-app/shared/components/grids/widgets/menu/widget-abstract-menu.component";
+import { TimeEntriesCurrentUserConfigurationModalComponent } from "core-app/shared/components/grids/widgets/time-entries/current-user/configuration-modal/configuration.modal";
@Component({
selector: 'widget-time-entries-current-user-menu',
diff --git a/frontend/src/app/modules/grids/widgets/time-entries/current-user/time-entries-current-user.component.html b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/time-entries-current-user.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/time-entries/current-user/time-entries-current-user.component.html
rename to frontend/src/app/shared/components/grids/widgets/time-entries/current-user/time-entries-current-user.component.html
diff --git a/frontend/src/app/modules/grids/widgets/time-entries/current-user/time-entries-current-user.component.ts b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/time-entries-current-user.component.ts
similarity index 73%
rename from frontend/src/app/modules/grids/widgets/time-entries/current-user/time-entries-current-user.component.ts
rename to frontend/src/app/shared/components/grids/widgets/time-entries/current-user/time-entries-current-user.component.ts
index f8895241d10..700ce4b48e0 100644
--- a/frontend/src/app/modules/grids/widgets/time-entries/current-user/time-entries-current-user.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/time-entries-current-user.component.ts
@@ -1,11 +1,11 @@
import { Component, Injector, ChangeDetectionStrategy, ChangeDetectorRef } from "@angular/core";
-import { TimeEntryResource } from 'core-app/modules/hal/resources/time-entry-resource';
-import { CollectionResource } from "core-app/modules/hal/resources/collection-resource";
-import { TimezoneService } from "core-components/datetime/timezone.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { AbstractWidgetComponent } from "core-app/modules/grids/widgets/abstract-widget.component";
-import { DisplayedDays } from "core-app/modules/calendar/te-calendar/te-calendar.component";
+import { TimeEntryResource } from "core-app/features/hal/resources/time-entry-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { AbstractWidgetComponent } from "core-app/shared/components/grids/widgets/abstract-widget.component";
+import { DisplayedDays } from "core-app/shared/components/calendar/te-calendar/te-calendar.component";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
@Component({
templateUrl: './time-entries-current-user.component.html',
diff --git a/frontend/src/app/modules/grids/widgets/time-entries/current-user/typings.d.ts b/frontend/src/app/shared/components/grids/widgets/time-entries/current-user/typings.d.ts
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/time-entries/current-user/typings.d.ts
rename to frontend/src/app/shared/components/grids/widgets/time-entries/current-user/typings.d.ts
diff --git a/frontend/src/app/modules/grids/widgets/time-entries/list/time-entries-list.component.html b/frontend/src/app/shared/components/grids/widgets/time-entries/list/time-entries-list.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/time-entries/list/time-entries-list.component.html
rename to frontend/src/app/shared/components/grids/widgets/time-entries/list/time-entries-list.component.html
diff --git a/frontend/src/app/modules/grids/widgets/time-entries/list/time-entries-list.component.ts b/frontend/src/app/shared/components/grids/widgets/time-entries/list/time-entries-list.component.ts
similarity index 85%
rename from frontend/src/app/modules/grids/widgets/time-entries/list/time-entries-list.component.ts
rename to frontend/src/app/shared/components/grids/widgets/time-entries/list/time-entries-list.component.ts
index 2141afa4ab0..d3ba60e5571 100644
--- a/frontend/src/app/modules/grids/widgets/time-entries/list/time-entries-list.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/time-entries/list/time-entries-list.component.ts
@@ -1,14 +1,14 @@
import { ChangeDetectorRef, Injector, OnInit, Directive } from "@angular/core";
-import { AbstractWidgetComponent } from "core-app/modules/grids/widgets/abstract-widget.component";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { TimeEntryResource } from "core-app/modules/hal/resources/time-entry-resource";
-import { TimezoneService } from "core-components/datetime/timezone.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { ConfirmDialogService } from "core-components/modals/confirm-dialog/confirm-dialog.service";
-import { FilterOperator } from "core-components/api/api-v3/api-v3-filter-builder";
-import { TimeEntryEditService } from "core-app/modules/time_entries/edit/edit.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { AbstractWidgetComponent } from "core-app/shared/components/grids/widgets/abstract-widget.component";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { TimeEntryEditService } from "core-app/shared/components/time_entries/edit/edit.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { FilterOperator } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
+import { ConfirmDialogService } from "core-app/shared/components/modals/confirm-dialog/confirm-dialog.service";
+import { TimeEntryResource } from "core-app/features/hal/resources/time-entry-resource";
@Directive()
export abstract class WidgetTimeEntriesListComponent extends AbstractWidgetComponent implements OnInit {
diff --git a/frontend/src/app/modules/grids/widgets/time-entries/project/time-entries-project.component.ts b/frontend/src/app/shared/components/grids/widgets/time-entries/project/time-entries-project.component.ts
similarity index 59%
rename from frontend/src/app/modules/grids/widgets/time-entries/project/time-entries-project.component.ts
rename to frontend/src/app/shared/components/grids/widgets/time-entries/project/time-entries-project.component.ts
index 20b160cc5e1..0875ab984d7 100644
--- a/frontend/src/app/modules/grids/widgets/time-entries/project/time-entries-project.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/time-entries/project/time-entries-project.component.ts
@@ -1,11 +1,11 @@
import { Component, OnInit, Injector, ChangeDetectorRef } from "@angular/core";
-import { FilterOperator } from "core-components/api/api-v3/api-v3-filter-builder";
-import { WidgetTimeEntriesListComponent } from "core-app/modules/grids/widgets/time-entries/list/time-entries-list.component";
-import { TimezoneService } from "core-components/datetime/timezone.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { ConfirmDialogService } from "core-components/modals/confirm-dialog/confirm-dialog.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
+import { WidgetTimeEntriesListComponent } from "core-app/shared/components/grids/widgets/time-entries/list/time-entries-list.component";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { FilterOperator } from "core-app/shared/helpers/api-v3/api-v3-filter-builder";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
+import { ConfirmDialogService } from "core-app/shared/components/modals/confirm-dialog/confirm-dialog.service";
@Component({
templateUrl: '../list/time-entries-list.component.html',
diff --git a/frontend/src/app/shared/components/grids/widgets/widget-changeset.ts b/frontend/src/app/shared/components/grids/widgets/widget-changeset.ts
new file mode 100644
index 00000000000..4da2e0a6246
--- /dev/null
+++ b/frontend/src/app/shared/components/grids/widgets/widget-changeset.ts
@@ -0,0 +1,6 @@
+import { ResourceChangeset } from "core-app/shared/components/fields/changeset/resource-changeset";
+import { GridWidgetResource } from "core-app/features/hal/resources/grid-widget-resource";
+
+export class WidgetChangeset extends ResourceChangeset<GridWidgetResource> {
+
+}
diff --git a/frontend/src/app/modules/grids/widgets/widgets.service.ts b/frontend/src/app/shared/components/grids/widgets/widgets.service.ts
similarity index 71%
rename from frontend/src/app/modules/grids/widgets/widgets.service.ts
rename to frontend/src/app/shared/components/grids/widgets/widgets.service.ts
index 88372417eb6..2c757b22ecd 100644
--- a/frontend/src/app/modules/grids/widgets/widgets.service.ts
+++ b/frontend/src/app/shared/components/grids/widgets/widgets.service.ts
@@ -1,6 +1,6 @@
import { Injectable } from "@angular/core";
-import { WidgetRegistration } from "app/modules/grids/grid/grid.component";
-import { HookService } from "app/modules/plugins/hook-service";
+import { WidgetRegistration } from "core-app/shared/components/grids/grid/grid.component";
+import { HookService } from "core-app/features/plugins/hook-service";
@Injectable()
export class GridWidgetsService {
diff --git a/frontend/src/app/modules/grids/widgets/wp-calendar/wp-calendar.component.html b/frontend/src/app/shared/components/grids/widgets/wp-calendar/wp-calendar.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/wp-calendar/wp-calendar.component.html
rename to frontend/src/app/shared/components/grids/widgets/wp-calendar/wp-calendar.component.html
diff --git a/frontend/src/app/modules/grids/widgets/wp-calendar/wp-calendar.component.ts b/frontend/src/app/shared/components/grids/widgets/wp-calendar/wp-calendar.component.ts
similarity index 86%
rename from frontend/src/app/modules/grids/widgets/wp-calendar/wp-calendar.component.ts
rename to frontend/src/app/shared/components/grids/widgets/wp-calendar/wp-calendar.component.ts
index 600951ebd69..d3ee4e51d32 100644
--- a/frontend/src/app/modules/grids/widgets/wp-calendar/wp-calendar.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/wp-calendar/wp-calendar.component.ts
@@ -27,9 +27,9 @@
//++
import { Component, Injector } from '@angular/core';
-import { AbstractWidgetComponent } from "app/modules/grids/widgets/abstract-widget.component";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
+import { AbstractWidgetComponent } from "core-app/shared/components/grids/widgets/abstract-widget.component";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
@Component({
templateUrl: './wp-calendar.component.html',
diff --git a/frontend/src/app/modules/grids/widgets/wp-graph/wp-graph-menu.component.ts b/frontend/src/app/shared/components/grids/widgets/wp-graph/wp-graph-menu.component.ts
similarity index 85%
rename from frontend/src/app/modules/grids/widgets/wp-graph/wp-graph-menu.component.ts
rename to frontend/src/app/shared/components/grids/widgets/wp-graph/wp-graph-menu.component.ts
index 09b938206ed..a132e58b82e 100644
--- a/frontend/src/app/modules/grids/widgets/wp-graph/wp-graph-menu.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/wp-graph/wp-graph-menu.component.ts
@@ -27,8 +27,8 @@
//++
import { Component } from '@angular/core';
-import { WpGraphConfigurationModalComponent } from "core-app/modules/work-package-graphs/configuration-modal/wp-graph-configuration.modal";
-import { WidgetWpSetMenuComponent } from "core-app/modules/grids/widgets/menu/wp-set-menu.component";
+import { WpGraphConfigurationModalComponent } from "core-app/shared/components/work-package-graphs/configuration-modal/wp-graph-configuration.modal";
+import { WidgetWpSetMenuComponent } from "core-app/shared/components/grids/widgets/menu/wp-set-menu.component";
@Component({
selector: 'widget-wp-graph-menu',
diff --git a/frontend/src/app/modules/grids/widgets/wp-graph/wp-graph.component.html b/frontend/src/app/shared/components/grids/widgets/wp-graph/wp-graph.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/wp-graph/wp-graph.component.html
rename to frontend/src/app/shared/components/grids/widgets/wp-graph/wp-graph.component.html
diff --git a/frontend/src/app/modules/grids/widgets/wp-graph/wp-graph.component.ts b/frontend/src/app/shared/components/grids/widgets/wp-graph/wp-graph.component.ts
similarity index 80%
rename from frontend/src/app/modules/grids/widgets/wp-graph/wp-graph.component.ts
rename to frontend/src/app/shared/components/grids/widgets/wp-graph/wp-graph.component.ts
index 80ae9c94f40..7f0e3366ccf 100644
--- a/frontend/src/app/modules/grids/widgets/wp-graph/wp-graph.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/wp-graph/wp-graph.component.ts
@@ -1,10 +1,10 @@
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Injector, OnDestroy, OnInit } from '@angular/core';
-import { WorkPackageEmbeddedGraphDataset } from "core-app/modules/work-package-graphs/embedded/wp-embedded-graph.component";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { AbstractWidgetComponent } from "core-app/modules/grids/widgets/abstract-widget.component";
+import { WorkPackageEmbeddedGraphDataset } from "core-app/shared/components/work-package-graphs/embedded/wp-embedded-graph.component";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { AbstractWidgetComponent } from "core-app/shared/components/grids/widgets/abstract-widget.component";
import { ChartOptions, ChartType } from 'chart.js';
-import { WpGraphConfigurationService } from "core-app/modules/work-package-graphs/configuration/wp-graph-configuration.service";
-import { WpGraphConfiguration } from "core-app/modules/work-package-graphs/configuration/wp-graph-configuration";
+import { WpGraphConfigurationService } from "core-app/shared/components/work-package-graphs/configuration/wp-graph-configuration.service";
+import { WpGraphConfiguration } from "core-app/shared/components/work-package-graphs/configuration/wp-graph-configuration";
@Component({
selector: 'widget-wp-graph',
diff --git a/frontend/src/app/modules/grids/widgets/wp-overview/wp-overview.component.html b/frontend/src/app/shared/components/grids/widgets/wp-overview/wp-overview.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/wp-overview/wp-overview.component.html
rename to frontend/src/app/shared/components/grids/widgets/wp-overview/wp-overview.component.html
diff --git a/frontend/src/app/modules/grids/widgets/wp-overview/wp-overview.component.ts b/frontend/src/app/shared/components/grids/widgets/wp-overview/wp-overview.component.ts
similarity index 93%
rename from frontend/src/app/modules/grids/widgets/wp-overview/wp-overview.component.ts
rename to frontend/src/app/shared/components/grids/widgets/wp-overview/wp-overview.component.ts
index 9892f19f319..44e45cd41fd 100644
--- a/frontend/src/app/modules/grids/widgets/wp-overview/wp-overview.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/wp-overview/wp-overview.component.ts
@@ -27,7 +27,7 @@
//++
import { Component, ChangeDetectionStrategy } from '@angular/core';
-import { AbstractWidgetComponent } from "app/modules/grids/widgets/abstract-widget.component";
+import { AbstractWidgetComponent } from "core-app/shared/components/grids/widgets/abstract-widget.component";
@Component({
templateUrl: './wp-overview.component.html',
diff --git a/frontend/src/app/modules/grids/widgets/wp-table/wp-table-menu.component.ts b/frontend/src/app/shared/components/grids/widgets/wp-table/wp-table-menu.component.ts
similarity index 85%
rename from frontend/src/app/modules/grids/widgets/wp-table/wp-table-menu.component.ts
rename to frontend/src/app/shared/components/grids/widgets/wp-table/wp-table-menu.component.ts
index 66543112bbe..4310265ed8b 100644
--- a/frontend/src/app/modules/grids/widgets/wp-table/wp-table-menu.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/wp-table/wp-table-menu.component.ts
@@ -27,8 +27,8 @@
//++
import { Component } from '@angular/core';
-import { WpTableConfigurationModalComponent } from "core-components/wp-table/configuration-modal/wp-table-configuration.modal";
-import { WidgetWpSetMenuComponent } from "core-app/modules/grids/widgets/menu/wp-set-menu.component";
+import { WpTableConfigurationModalComponent } from "core-app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal";
+import { WidgetWpSetMenuComponent } from "core-app/shared/components/grids/widgets/menu/wp-set-menu.component";
@Component({
selector: 'widget-wp-table-menu',
diff --git a/frontend/src/app/modules/grids/widgets/wp-table/wp-table-qs.component.html b/frontend/src/app/shared/components/grids/widgets/wp-table/wp-table-qs.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/wp-table/wp-table-qs.component.html
rename to frontend/src/app/shared/components/grids/widgets/wp-table/wp-table-qs.component.html
diff --git a/frontend/src/app/modules/grids/widgets/wp-table/wp-table-qs.component.sass b/frontend/src/app/shared/components/grids/widgets/wp-table/wp-table-qs.component.sass
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/wp-table/wp-table-qs.component.sass
rename to frontend/src/app/shared/components/grids/widgets/wp-table/wp-table-qs.component.sass
diff --git a/frontend/src/app/modules/grids/widgets/wp-table/wp-table-qs.component.ts b/frontend/src/app/shared/components/grids/widgets/wp-table/wp-table-qs.component.ts
similarity index 62%
rename from frontend/src/app/modules/grids/widgets/wp-table/wp-table-qs.component.ts
rename to frontend/src/app/shared/components/grids/widgets/wp-table/wp-table-qs.component.ts
index ea82b1513b6..b83f63fb779 100644
--- a/frontend/src/app/modules/grids/widgets/wp-table/wp-table-qs.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/wp-table/wp-table-qs.component.ts
@@ -1,6 +1,6 @@
import { Component } from '@angular/core';
-import { AbstractWidgetComponent } from "core-app/modules/grids/widgets/abstract-widget.component";
-import { WidgetChangeset } from "core-app/modules/grids/widgets/widget-changeset";
+import { AbstractWidgetComponent } from "core-app/shared/components/grids/widgets/abstract-widget.component";
+import { WidgetChangeset } from "core-app/shared/components/grids/widgets/widget-changeset";
@Component({
templateUrl: './wp-table-qs.component.html',
diff --git a/frontend/src/app/modules/grids/widgets/wp-table/wp-table.component.html b/frontend/src/app/shared/components/grids/widgets/wp-table/wp-table.component.html
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/wp-table/wp-table.component.html
rename to frontend/src/app/shared/components/grids/widgets/wp-table/wp-table.component.html
diff --git a/frontend/src/app/modules/grids/widgets/wp-table/wp-table.component.sass b/frontend/src/app/shared/components/grids/widgets/wp-table/wp-table.component.sass
similarity index 100%
rename from frontend/src/app/modules/grids/widgets/wp-table/wp-table.component.sass
rename to frontend/src/app/shared/components/grids/widgets/wp-table/wp-table.component.sass
diff --git a/frontend/src/app/modules/grids/widgets/wp-table/wp-table.component.ts b/frontend/src/app/shared/components/grids/widgets/wp-table/wp-table.component.ts
similarity index 83%
rename from frontend/src/app/modules/grids/widgets/wp-table/wp-table.component.ts
rename to frontend/src/app/shared/components/grids/widgets/wp-table/wp-table.component.ts
index 64ee710e53f..90b055f56a9 100644
--- a/frontend/src/app/modules/grids/widgets/wp-table/wp-table.component.ts
+++ b/frontend/src/app/shared/components/grids/widgets/wp-table/wp-table.component.ts
@@ -1,15 +1,15 @@
import { ChangeDetectionStrategy, Component, Injector } from '@angular/core';
-import { AbstractWidgetComponent } from "core-app/modules/grids/widgets/abstract-widget.component";
-import { QueryFormResource } from "core-app/modules/hal/resources/query-form-resource";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { WorkPackageTableConfiguration } from "core-components/wp-table/wp-table-configuration";
+import { AbstractWidgetComponent } from "core-app/shared/components/grids/widgets/abstract-widget.component";
+import { QueryFormResource } from "core-app/features/hal/resources/query-form-resource";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { WorkPackageTableConfiguration } from "core-app/features/work-packages/components/wp-table/wp-table-configuration";
import { Observable } from 'rxjs';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { UrlParamsHelperService } from "core-components/wp-query/url-params-helper";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { UrlParamsHelperService } from "core-app/features/work-packages/components/wp-query/url-params-helper";
+import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';
import { StateService } from '@uirouter/core';
import { finalize, publish, skip } from 'rxjs/operators';
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Component({
selector: 'widget-wp-table',
diff --git a/frontend/src/app/modules/common/hide-section/add-section-dropdown/add-section-dropdown.component.html b/frontend/src/app/shared/components/hide-section/add-section-dropdown/add-section-dropdown.component.html
similarity index 100%
rename from frontend/src/app/modules/common/hide-section/add-section-dropdown/add-section-dropdown.component.html
rename to frontend/src/app/shared/components/hide-section/add-section-dropdown/add-section-dropdown.component.html
diff --git a/frontend/src/app/modules/common/hide-section/add-section-dropdown/add-section-dropdown.component.ts b/frontend/src/app/shared/components/hide-section/add-section-dropdown/add-section-dropdown.component.ts
similarity index 89%
rename from frontend/src/app/modules/common/hide-section/add-section-dropdown/add-section-dropdown.component.ts
rename to frontend/src/app/shared/components/hide-section/add-section-dropdown/add-section-dropdown.component.ts
index 99bb07df534..49448277088 100644
--- a/frontend/src/app/modules/common/hide-section/add-section-dropdown/add-section-dropdown.component.ts
+++ b/frontend/src/app/shared/components/hide-section/add-section-dropdown/add-section-dropdown.component.ts
@@ -26,11 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { Component, ElementRef, OnInit, ViewChild } from "@angular/core";
-import { HideSectionDefinition, HideSectionService } from "core-app/modules/common/hide-section/hide-section.service";
-import { AngularTrackingHelpers } from "core-components/angular/tracking-functions";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { HideSectionDefinition, HideSectionService } from "core-app/shared/components/hide-section/hide-section.service";
+import { AngularTrackingHelpers } from "core-app/shared/helpers/angular/tracking-functions";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
export const addSectionDropdownSelector = 'add-section-dropdown';
diff --git a/frontend/src/app/modules/common/hide-section/hide-section-link/hide-section-link.component.html b/frontend/src/app/shared/components/hide-section/hide-section-link/hide-section-link.component.html
similarity index 100%
rename from frontend/src/app/modules/common/hide-section/hide-section-link/hide-section-link.component.html
rename to frontend/src/app/shared/components/hide-section/hide-section-link/hide-section-link.component.html
diff --git a/frontend/src/app/modules/common/hide-section/hide-section-link/hide-section-link.component.ts b/frontend/src/app/shared/components/hide-section/hide-section-link/hide-section-link.component.ts
similarity index 92%
rename from frontend/src/app/modules/common/hide-section/hide-section-link/hide-section-link.component.ts
rename to frontend/src/app/shared/components/hide-section/hide-section-link/hide-section-link.component.ts
index f59b1ee8270..51ce7aad340 100644
--- a/frontend/src/app/modules/common/hide-section/hide-section-link/hide-section-link.component.ts
+++ b/frontend/src/app/shared/components/hide-section/hide-section-link/hide-section-link.component.ts
@@ -27,9 +27,8 @@
//++
import { Component, ElementRef, OnInit } from "@angular/core";
-import { HideSectionService } from "core-app/modules/common/hide-section/hide-section.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-
+import { HideSectionService } from "core-app/shared/components/hide-section/hide-section.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
export const hideSectionLinkSelector = 'hide-section-link';
@Component({
diff --git a/frontend/src/app/modules/common/hide-section/hide-section.service.ts b/frontend/src/app/shared/components/hide-section/hide-section.service.ts
similarity index 97%
rename from frontend/src/app/modules/common/hide-section/hide-section.service.ts
rename to frontend/src/app/shared/components/hide-section/hide-section.service.ts
index 4fd9f92b76c..428fd363bfa 100644
--- a/frontend/src/app/modules/common/hide-section/hide-section.service.ts
+++ b/frontend/src/app/shared/components/hide-section/hide-section.service.ts
@@ -27,7 +27,7 @@
//++
-import { GonService } from "core-app/modules/common/gon/gon.service";
+import { GonService } from "core-app/core/gon/gon.service";
import { Injectable } from "@angular/core";
import { input } from "reactivestates";
diff --git a/frontend/src/app/modules/common/hide-section/show-section-dropdown.component.ts b/frontend/src/app/shared/components/hide-section/show-section-dropdown.component.ts
similarity index 100%
rename from frontend/src/app/modules/common/hide-section/show-section-dropdown.component.ts
rename to frontend/src/app/shared/components/hide-section/show-section-dropdown.component.ts
diff --git a/frontend/src/app/modules/icon/icon.component.ts b/frontend/src/app/shared/components/icon/icon.component.ts
similarity index 100%
rename from frontend/src/app/modules/icon/icon.component.ts
rename to frontend/src/app/shared/components/icon/icon.component.ts
diff --git a/frontend/src/app/modules/icon/icon.module.ts b/frontend/src/app/shared/components/icon/icon.module.ts
similarity index 100%
rename from frontend/src/app/modules/icon/icon.module.ts
rename to frontend/src/app/shared/components/icon/icon.module.ts
diff --git a/frontend/src/app/modules/icon/op-icon.spec.ts b/frontend/src/app/shared/components/icon/op-icon.spec.ts
similarity index 100%
rename from frontend/src/app/modules/icon/op-icon.spec.ts
rename to frontend/src/app/shared/components/icon/op-icon.spec.ts
diff --git a/frontend/src/app/modules/modal/modal-delivery-element.sass b/frontend/src/app/shared/components/modal/modal-delivery-element.sass
similarity index 100%
rename from frontend/src/app/modules/modal/modal-delivery-element.sass
rename to frontend/src/app/shared/components/modal/modal-delivery-element.sass
diff --git a/frontend/src/app/modules/modal/modal-header.component.html b/frontend/src/app/shared/components/modal/modal-header.component.html
similarity index 100%
rename from frontend/src/app/modules/modal/modal-header.component.html
rename to frontend/src/app/shared/components/modal/modal-header.component.html
diff --git a/frontend/src/app/modules/modal/modal-header.component.ts b/frontend/src/app/shared/components/modal/modal-header.component.ts
similarity index 87%
rename from frontend/src/app/modules/modal/modal-header.component.ts
rename to frontend/src/app/shared/components/modal/modal-header.component.ts
index f3fe0118ac8..d385b0ac1e3 100644
--- a/frontend/src/app/modules/modal/modal-header.component.ts
+++ b/frontend/src/app/shared/components/modal/modal-header.component.ts
@@ -5,7 +5,7 @@ import {
Output,
HostBinding,
} from '@angular/core';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Component({
selector: 'op-modal-header',
diff --git a/frontend/src/app/modules/common/modal/modal-heading.component.html b/frontend/src/app/shared/components/modal/modal-header/modal-heading.component.html
similarity index 100%
rename from frontend/src/app/modules/common/modal/modal-heading.component.html
rename to frontend/src/app/shared/components/modal/modal-header/modal-heading.component.html
diff --git a/frontend/src/app/modules/common/modal/modal-heading.component.ts b/frontend/src/app/shared/components/modal/modal-header/modal-heading.component.ts
similarity index 86%
rename from frontend/src/app/modules/common/modal/modal-heading.component.ts
rename to frontend/src/app/shared/components/modal/modal-header/modal-heading.component.ts
index 0f7caa6cb1d..0a945aac4d5 100644
--- a/frontend/src/app/modules/common/modal/modal-heading.component.ts
+++ b/frontend/src/app/shared/components/modal/modal-header/modal-heading.component.ts
@@ -4,7 +4,7 @@ import {
Output,
HostBinding,
} from '@angular/core';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Component({
selector: 'op-modal-heading',
diff --git a/frontend/src/app/modules/modal/modal-overlay.sass b/frontend/src/app/shared/components/modal/modal-overlay.sass
similarity index 100%
rename from frontend/src/app/modules/modal/modal-overlay.sass
rename to frontend/src/app/shared/components/modal/modal-overlay.sass
diff --git a/frontend/src/app/modules/modal/modal-overrides.sass b/frontend/src/app/shared/components/modal/modal-overrides.sass
similarity index 100%
rename from frontend/src/app/modules/modal/modal-overrides.sass
rename to frontend/src/app/shared/components/modal/modal-overrides.sass
diff --git a/frontend/src/app/modules/modal/modal-wrapper-augment.service.ts b/frontend/src/app/shared/components/modal/modal-wrapper-augment.service.ts
similarity index 94%
rename from frontend/src/app/modules/modal/modal-wrapper-augment.service.ts
rename to frontend/src/app/shared/components/modal/modal-wrapper-augment.service.ts
index 997d1799124..62a4fa74985 100644
--- a/frontend/src/app/modules/modal/modal-wrapper-augment.service.ts
+++ b/frontend/src/app/shared/components/modal/modal-wrapper-augment.service.ts
@@ -29,8 +29,8 @@
import { Inject, Injectable, Injector } from "@angular/core";
import { DOCUMENT } from "@angular/common";
-import { DynamicContentModal } from "core-components/modals/modal-wrapper/dynamic-content.modal";
-import { OpModalService } from "core-app/modules/modal/modal.service";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { DynamicContentModal } from "core-app/shared/components/modals/modal-wrapper/dynamic-content.modal";
const iframeSelector = '.iframe-target-wrapper';
diff --git a/frontend/src/app/modules/modal/modal.component.ts b/frontend/src/app/shared/components/modal/modal.component.ts
similarity index 86%
rename from frontend/src/app/modules/modal/modal.component.ts
rename to frontend/src/app/shared/components/modal/modal.component.ts
index 83860acab9c..41b7d929253 100644
--- a/frontend/src/app/modules/modal/modal.component.ts
+++ b/frontend/src/app/shared/components/modal/modal.component.ts
@@ -1,7 +1,7 @@
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, Directive } from '@angular/core';
-import { OpModalLocalsMap } from 'core-app/modules/modal/modal.types';
-import { OpModalService } from 'core-app/modules/modal/modal.service';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { OpModalLocalsMap } from 'core-app/shared/components/modal/modal.types';
+import { OpModalService } from 'core-app/shared/components/modal/modal.service';
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
@Directive()
export abstract class OpModalComponent extends UntilDestroyedMixin implements OnInit, OnDestroy {
diff --git a/frontend/src/app/shared/components/modal/modal.module.sass b/frontend/src/app/shared/components/modal/modal.module.sass
new file mode 100644
index 00000000000..b208339222b
--- /dev/null
+++ b/frontend/src/app/shared/components/modal/modal.module.sass
@@ -0,0 +1,5 @@
+@import 'modal-overrides'
+@import 'modal-overlay'
+@import 'modal-delivery-element'
+@import 'modal'
+
diff --git a/frontend/src/app/modules/modal/modal.module.ts b/frontend/src/app/shared/components/modal/modal.module.ts
similarity index 78%
rename from frontend/src/app/modules/modal/modal.module.ts
rename to frontend/src/app/shared/components/modal/modal.module.ts
index 3691fd9a4ea..4cc1d7745ea 100644
--- a/frontend/src/app/modules/modal/modal.module.ts
+++ b/frontend/src/app/shared/components/modal/modal.module.ts
@@ -1,7 +1,7 @@
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
-import { FocusModule } from "core-app/modules/focus/focus.module";
-import { IconModule } from "core-app/modules/icon/icon.module";
+import { FocusModule } from "core-app/shared/directives/focus/focus.module";
+import { IconModule } from "core-app/shared/components/icon/icon.module";
import { OpModalService } from "./modal.service";
import { OpModalWrapperAugmentService } from "./modal-wrapper-augment.service";
import { OpModalHeaderComponent } from "./modal-header.component";
diff --git a/frontend/src/app/modules/modal/modal.sass b/frontend/src/app/shared/components/modal/modal.sass
similarity index 100%
rename from frontend/src/app/modules/modal/modal.sass
rename to frontend/src/app/shared/components/modal/modal.sass
diff --git a/frontend/src/app/modules/modal/modal.service.ts b/frontend/src/app/shared/components/modal/modal.service.ts
similarity index 95%
rename from frontend/src/app/modules/modal/modal.service.ts
rename to frontend/src/app/shared/components/modal/modal.service.ts
index 2cb34c94cae..6bec934c610 100644
--- a/frontend/src/app/modules/modal/modal.service.ts
+++ b/frontend/src/app/shared/components/modal/modal.service.ts
@@ -8,9 +8,9 @@ import {
} from '@angular/core';
import { ComponentPortal, ComponentType, DomPortalOutlet, PortalInjector } from '@angular/cdk/portal';
import { TransitionService } from '@uirouter/core';
-import { OpModalComponent } from 'core-app/modules/modal/modal.component';
-import { keyCodes } from 'core-app/modules/common/keyCodes.enum';
-import { FocusHelperService } from 'core-app/modules/focus/focus-helper';
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { FocusHelperService } from "core-app/shared/directives/focus/focus-helper";
+import { keyCodes } from "core-app/shared/helpers/keyCodes.enum";
export const OpModalLocalsToken = new InjectionToken<any>('OP_MODAL_LOCALS');
@@ -147,4 +147,4 @@ export class OpModalService {
return new PortalInjector(injector, injectorTokens);
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/app/modules/modal/modal.types.ts b/frontend/src/app/shared/components/modal/modal.types.ts
similarity index 100%
rename from frontend/src/app/modules/modal/modal.types.ts
rename to frontend/src/app/shared/components/modal/modal.types.ts
diff --git a/frontend/src/app/components/modals/confirm-dialog/confirm-dialog.modal.html b/frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.modal.html
similarity index 100%
rename from frontend/src/app/components/modals/confirm-dialog/confirm-dialog.modal.html
rename to frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.modal.html
diff --git a/frontend/src/app/components/modals/confirm-dialog/confirm-dialog.modal.ts b/frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.modal.ts
similarity index 90%
rename from frontend/src/app/components/modals/confirm-dialog/confirm-dialog.modal.ts
rename to frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.modal.ts
index 3e1a210a626..b0a789f123d 100644
--- a/frontend/src/app/components/modals/confirm-dialog/confirm-dialog.modal.ts
+++ b/frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.modal.ts
@@ -27,10 +27,10 @@
//++
import { ChangeDetectorRef, Component, ElementRef, Inject } from "@angular/core";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { OpModalLocalsMap } from "core-app/modules/modal/modal.types";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
+import { I18nService } from "core-app/core/i18n/i18n.service";
export interface ConfirmDialogOptions {
text:{
diff --git a/frontend/src/app/components/modals/confirm-dialog/confirm-dialog.service.ts b/frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.service.ts
similarity index 90%
rename from frontend/src/app/components/modals/confirm-dialog/confirm-dialog.service.ts
rename to frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.service.ts
index ab329d8bff0..d60e11d59c8 100644
--- a/frontend/src/app/components/modals/confirm-dialog/confirm-dialog.service.ts
+++ b/frontend/src/app/shared/components/modals/confirm-dialog/confirm-dialog.service.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { ConfirmDialogModal, ConfirmDialogOptions } from "core-components/modals/confirm-dialog/confirm-dialog.modal";
-import { OpModalService } from "core-app/modules/modal/modal.service";
+import { ConfirmDialogModal, ConfirmDialogOptions } from "core-app/shared/components/modals/confirm-dialog/confirm-dialog.modal";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
import { Injectable, Injector } from "@angular/core";
@Injectable()
diff --git a/frontend/src/app/components/modals/confirm-form-submit/confirm-form-submit.directive.ts b/frontend/src/app/shared/components/modals/confirm-form-submit/confirm-form-submit.directive.ts
similarity index 94%
rename from frontend/src/app/components/modals/confirm-form-submit/confirm-form-submit.directive.ts
rename to frontend/src/app/shared/components/modals/confirm-form-submit/confirm-form-submit.directive.ts
index abf25204752..a2f4c893024 100644
--- a/frontend/src/app/components/modals/confirm-form-submit/confirm-form-submit.directive.ts
+++ b/frontend/src/app/shared/components/modals/confirm-form-submit/confirm-form-submit.directive.ts
@@ -26,8 +26,8 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { ConfirmDialogService } from './../confirm-dialog/confirm-dialog.service';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { ConfirmDialogService } from '../confirm-dialog/confirm-dialog.service';
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { Component, ElementRef, OnInit } from "@angular/core";
export const confirmFormSubmitSelector = 'confirm-form-submit';
diff --git a/frontend/src/app/components/modals/editor/editor-macros.service.ts b/frontend/src/app/shared/components/modals/editor/editor-macros.service.ts
similarity index 82%
rename from frontend/src/app/components/modals/editor/editor-macros.service.ts
rename to frontend/src/app/shared/components/modals/editor/editor-macros.service.ts
index 6a7adb679a9..d4a421b2993 100644
--- a/frontend/src/app/components/modals/editor/editor-macros.service.ts
+++ b/frontend/src/app/shared/components/modals/editor/editor-macros.service.ts
@@ -26,12 +26,12 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { OpModalService } from "core-app/modules/modal/modal.service";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
import { Injectable, Injector } from "@angular/core";
-import { WpButtonMacroModal } from "core-components/modals/editor/macro-wp-button-modal/wp-button-macro.modal";
-import { WikiIncludePageMacroModal } from "core-components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal";
-import { CodeBlockMacroModal } from "core-components/modals/editor/macro-code-block-modal/code-block-macro.modal";
-import { ChildPagesMacroModal } from "core-components/modals/editor/macro-child-pages-modal/child-pages-macro.modal";
+import { WpButtonMacroModal } from "core-app/shared/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal";
+import { WikiIncludePageMacroModal } from "core-app/shared/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal";
+import { CodeBlockMacroModal } from "core-app/shared/components/modals/editor/macro-code-block-modal/code-block-macro.modal";
+import { ChildPagesMacroModal } from "core-app/shared/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal";
@Injectable()
export class EditorMacrosService {
@@ -42,7 +42,7 @@ export class EditorMacrosService {
/**
* Show a modal to edit the work package button macro settings.
- * Used from within ckeditor.
+ * Used from within ckeditor-augmented-textarea.
*/
public configureWorkPackageButton(typeName?:string, classes?:string):Promise<{ type:string, classes:string }> {
return new Promise<{ type:string, classes:string }>((resolve, reject) => {
@@ -57,7 +57,7 @@ export class EditorMacrosService {
/**
* Show a modal to edit the wiki include macro.
- * Used from within ckeditor.
+ * Used from within ckeditor-augmented-textarea.
*/
public configureWikiPageInclude(page:string):Promise<string> {
return new Promise<string>((resolve, _) => {
@@ -73,7 +73,7 @@ export class EditorMacrosService {
/**
* Show a modal to show an enhanced code editor for editing code blocks.
- * Used from within ckeditor.
+ * Used from within ckeditor-augmented-textarea.
*/
public editCodeBlock(content:string, languageClass:string):Promise<{ content:string, languageClass:string }> {
return new Promise<{ content:string, languageClass:string }>((resolve, _) => {
@@ -88,7 +88,7 @@ export class EditorMacrosService {
/**
* Show a modal to edit the child pages macro.
- * Used from within ckeditor.
+ * Used from within ckeditor-augmented-textarea.
*/
public configureChildPages(page:string, includeParent:string):Promise<object> {
return new Promise<object>((resolve, _) => {
diff --git a/frontend/src/app/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.html b/frontend/src/app/shared/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.html
similarity index 100%
rename from frontend/src/app/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.html
rename to frontend/src/app/shared/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.html
diff --git a/frontend/src/app/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.ts b/frontend/src/app/shared/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.ts
similarity index 90%
rename from frontend/src/app/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.ts
rename to frontend/src/app/shared/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.ts
index d3a90698835..4944a7bf998 100644
--- a/frontend/src/app/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.ts
+++ b/frontend/src/app/shared/components/modals/editor/macro-child-pages-modal/child-pages-macro.modal.ts
@@ -27,10 +27,10 @@
//++
import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, Inject, ViewChild } from "@angular/core";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { OpModalLocalsMap } from "core-app/modules/modal/modal.types";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Component({
templateUrl: './child-pages-macro.modal.html'
diff --git a/frontend/src/app/components/modals/editor/macro-code-block-modal/code-block-macro.modal.html b/frontend/src/app/shared/components/modals/editor/macro-code-block-modal/code-block-macro.modal.html
similarity index 100%
rename from frontend/src/app/components/modals/editor/macro-code-block-modal/code-block-macro.modal.html
rename to frontend/src/app/shared/components/modals/editor/macro-code-block-modal/code-block-macro.modal.html
diff --git a/frontend/src/app/components/modals/editor/macro-code-block-modal/code-block-macro.modal.ts b/frontend/src/app/shared/components/modals/editor/macro-code-block-modal/code-block-macro.modal.ts
similarity index 93%
rename from frontend/src/app/components/modals/editor/macro-code-block-modal/code-block-macro.modal.ts
rename to frontend/src/app/shared/components/modals/editor/macro-code-block-modal/code-block-macro.modal.ts
index 06157ec4a82..3a43ba68f2e 100644
--- a/frontend/src/app/components/modals/editor/macro-code-block-modal/code-block-macro.modal.ts
+++ b/frontend/src/app/shared/components/modals/editor/macro-code-block-modal/code-block-macro.modal.ts
@@ -27,10 +27,10 @@
//++
import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, Inject, ViewChild } from "@angular/core";
-import { OpModalLocalsMap } from "core-app/modules/modal/modal.types";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Component({
templateUrl: './code-block-macro.modal.html'
diff --git a/frontend/src/app/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.html b/frontend/src/app/shared/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.html
similarity index 100%
rename from frontend/src/app/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.html
rename to frontend/src/app/shared/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.html
diff --git a/frontend/src/app/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.ts b/frontend/src/app/shared/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.ts
similarity index 89%
rename from frontend/src/app/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.ts
rename to frontend/src/app/shared/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.ts
index d6e1873b646..f8731024449 100644
--- a/frontend/src/app/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.ts
+++ b/frontend/src/app/shared/components/modals/editor/macro-wiki-include-page-modal/wiki-include-page-macro.modal.ts
@@ -27,10 +27,10 @@
//++
import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, Inject, ViewChild } from "@angular/core";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { OpModalLocalsMap } from "core-app/modules/modal/modal.types";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Component({
templateUrl: './wiki-include-page-macro.modal.html'
diff --git a/frontend/src/app/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.html b/frontend/src/app/shared/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.html
similarity index 100%
rename from frontend/src/app/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.html
rename to frontend/src/app/shared/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.html
diff --git a/frontend/src/app/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.ts b/frontend/src/app/shared/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.ts
similarity index 84%
rename from frontend/src/app/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.ts
rename to frontend/src/app/shared/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.ts
index 4e3069e5784..15c4cb93b8f 100644
--- a/frontend/src/app/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.ts
+++ b/frontend/src/app/shared/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.ts
@@ -34,14 +34,14 @@ import {
Inject,
ViewChild
} from "@angular/core";
-import { OpModalLocalsMap } from "core-app/modules/modal/modal.types";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { TypeResource } from "core-app/modules/hal/resources/type-resource";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { FormResource } from "core-app/modules/hal/resources/form-resource";
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { TypeResource } from "core-app/features/hal/resources/type-resource";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { FormResource } from "core-app/features/hal/resources/form-resource";
@Component({
templateUrl: './wp-button-macro.modal.html'
diff --git a/frontend/src/app/components/modals/export-modal/wp-table-export.modal.html b/frontend/src/app/shared/components/modals/export-modal/wp-table-export.modal.html
similarity index 100%
rename from frontend/src/app/components/modals/export-modal/wp-table-export.modal.html
rename to frontend/src/app/shared/components/modals/export-modal/wp-table-export.modal.html
diff --git a/frontend/src/app/components/modals/export-modal/wp-table-export.modal.sass b/frontend/src/app/shared/components/modals/export-modal/wp-table-export.modal.sass
similarity index 100%
rename from frontend/src/app/components/modals/export-modal/wp-table-export.modal.sass
rename to frontend/src/app/shared/components/modals/export-modal/wp-table-export.modal.sass
diff --git a/frontend/src/app/components/modals/export-modal/wp-table-export.modal.ts b/frontend/src/app/shared/components/modals/export-modal/wp-table-export.modal.ts
similarity index 79%
rename from frontend/src/app/components/modals/export-modal/wp-table-export.modal.ts
rename to frontend/src/app/shared/components/modals/export-modal/wp-table-export.modal.ts
index 187dc600e0d..5a6e6635d3f 100644
--- a/frontend/src/app/components/modals/export-modal/wp-table-export.modal.ts
+++ b/frontend/src/app/shared/components/modals/export-modal/wp-table-export.modal.ts
@@ -1,18 +1,18 @@
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, OnInit } from '@angular/core';
-import { OpModalLocalsMap } from 'core-app/modules/modal/modal.types';
-import { OpModalComponent } from 'core-app/modules/modal/modal.component';
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { WorkPackageViewColumnsService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { WorkPackageCollectionResource } from "core-app/modules/hal/resources/wp-collection-resource";
-import { HalLink } from "core-app/modules/hal/hal-link/hal-link";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { OpModalLocalsMap } from 'core-app/shared/components/modal/modal.types';
+import { OpModalComponent } from 'core-app/shared/components/modal/modal.component';
+import { WorkPackageViewColumnsService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service';
+import { WorkPackageCollectionResource } from "core-app/features/hal/resources/wp-collection-resource";
+import { HalLink } from "core-app/features/hal/hal-link/hal-link";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import * as URI from 'urijs';
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
-import { LoadingIndicatorService } from "core-app/modules/common/loading-indicator/loading-indicator.service";
-import { Observable } from 'rxjs';
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { JobStatusModal } from "core-app/modules/job-status/job-status-modal/job-status.modal";
+import { LoadingIndicatorService } from "core-app/core/loading-indicator/loading-indicator.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { JobStatusModal } from "core-app/features/job-status/job-status-modal/job-status.modal";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+
interface ExportLink extends HalLink {
identifier:string;
diff --git a/frontend/src/app/components/modals/modal-wrapper/dynamic-content.modal.html b/frontend/src/app/shared/components/modals/modal-wrapper/dynamic-content.modal.html
similarity index 100%
rename from frontend/src/app/components/modals/modal-wrapper/dynamic-content.modal.html
rename to frontend/src/app/shared/components/modals/modal-wrapper/dynamic-content.modal.html
diff --git a/frontend/src/app/components/modals/modal-wrapper/dynamic-content.modal.ts b/frontend/src/app/shared/components/modals/modal-wrapper/dynamic-content.modal.ts
similarity index 89%
rename from frontend/src/app/components/modals/modal-wrapper/dynamic-content.modal.ts
rename to frontend/src/app/shared/components/modals/modal-wrapper/dynamic-content.modal.ts
index a0d750dbec3..8dbc84ac434 100644
--- a/frontend/src/app/components/modals/modal-wrapper/dynamic-content.modal.ts
+++ b/frontend/src/app/shared/components/modals/modal-wrapper/dynamic-content.modal.ts
@@ -27,10 +27,10 @@
//++
import { ChangeDetectorRef, Component, ElementRef, Inject, OnDestroy, OnInit } from "@angular/core";
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { OpModalLocalsMap } from "core-app/modules/modal/modal.types";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Component({
templateUrl: './dynamic-content.modal.html'
diff --git a/frontend/src/app/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.html b/frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.html
similarity index 100%
rename from frontend/src/app/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.html
rename to frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.html
diff --git a/frontend/src/app/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.sass b/frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.sass
similarity index 88%
rename from frontend/src/app/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.sass
rename to frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.sass
index 6db3305b449..ba6929ae5a0 100644
--- a/frontend/src/app/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.sass
+++ b/frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.sass
@@ -6,4 +6,4 @@
min-width: 350px
padding: 0px
box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.25)
- pointer-events: all
+ pointer-events: all
\ No newline at end of file
diff --git a/frontend/src/app/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.ts b/frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.ts
similarity index 84%
rename from frontend/src/app/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.ts
rename to frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.ts
index 1c61591f6ca..f3190dd853b 100644
--- a/frontend/src/app/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.ts
+++ b/frontend/src/app/shared/components/modals/preview-modal/wp-preview-modal/wp-preview.modal.ts
@@ -27,13 +27,13 @@
//++
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, OnInit } from "@angular/core";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { OpModalLocalsToken, OpModalService } from "core-app/modules/modal/modal.service";
-import { OpModalLocalsMap } from "core-app/modules/modal/modal.types";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { OpModalLocalsToken, OpModalService } from "core-app/shared/components/modal/modal.service";
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { StateService } from "@uirouter/core";
@Component({
diff --git a/frontend/src/app/components/modals/request-for-confirmation/password-confirmation.modal.html b/frontend/src/app/shared/components/modals/request-for-confirmation/password-confirmation.modal.html
similarity index 100%
rename from frontend/src/app/components/modals/request-for-confirmation/password-confirmation.modal.html
rename to frontend/src/app/shared/components/modals/request-for-confirmation/password-confirmation.modal.html
diff --git a/frontend/src/app/components/modals/request-for-confirmation/password-confirmation.modal.ts b/frontend/src/app/shared/components/modals/request-for-confirmation/password-confirmation.modal.ts
similarity index 95%
rename from frontend/src/app/components/modals/request-for-confirmation/password-confirmation.modal.ts
rename to frontend/src/app/shared/components/modals/request-for-confirmation/password-confirmation.modal.ts
index 2478b253ba7..63c90dcf73c 100644
--- a/frontend/src/app/components/modals/request-for-confirmation/password-confirmation.modal.ts
+++ b/frontend/src/app/shared/components/modals/request-for-confirmation/password-confirmation.modal.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { ConfirmDialogModal } from "core-components/modals/confirm-dialog/confirm-dialog.modal";
+import { ConfirmDialogModal } from "core-app/shared/components/modals/confirm-dialog/confirm-dialog.modal";
import { Component, ElementRef, OnInit, ViewChild } from "@angular/core";
@Component({
diff --git a/frontend/src/app/components/modals/save-modal/save-query.modal.html b/frontend/src/app/shared/components/modals/save-modal/save-query.modal.html
similarity index 100%
rename from frontend/src/app/components/modals/save-modal/save-query.modal.html
rename to frontend/src/app/shared/components/modals/save-modal/save-query.modal.html
diff --git a/frontend/src/app/components/modals/save-modal/save-query.modal.ts b/frontend/src/app/shared/components/modals/save-modal/save-query.modal.ts
similarity index 78%
rename from frontend/src/app/components/modals/save-modal/save-query.modal.ts
rename to frontend/src/app/shared/components/modals/save-modal/save-query.modal.ts
index 500238d8011..e3b88a010d9 100644
--- a/frontend/src/app/components/modals/save-modal/save-query.modal.ts
+++ b/frontend/src/app/shared/components/modals/save-modal/save-query.modal.ts
@@ -27,17 +27,17 @@
//++
import { ChangeDetectorRef, Component, ElementRef, Inject, ViewChild } from "@angular/core";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { OpModalLocalsMap } from "core-app/modules/modal/modal.types";
-import { QuerySharingChange } from "core-components/modals/share-modal/query-sharing-form.component";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
-import { WorkPackagesListService } from "core-components/wp-list/wp-list.service";
-import { States } from '../../states.service';
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
+import { QuerySharingChange } from "core-app/shared/components/modals/share-modal/query-sharing-form.component";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
+import { WorkPackagesListService } from "core-app/features/work-packages/components/wp-list/wp-list.service";
+import { States } from 'core-app/core/states/states.service';
@Component({
templateUrl: './save-query.modal.html'
diff --git a/frontend/src/app/components/modals/share-modal/query-sharing-form.component.ts b/frontend/src/app/shared/components/modals/share-modal/query-sharing-form.component.ts
similarity index 83%
rename from frontend/src/app/components/modals/share-modal/query-sharing-form.component.ts
rename to frontend/src/app/shared/components/modals/share-modal/query-sharing-form.component.ts
index 1109149319b..a8da01e2cce 100644
--- a/frontend/src/app/components/modals/share-modal/query-sharing-form.component.ts
+++ b/frontend/src/app/shared/components/modals/share-modal/query-sharing-form.component.ts
@@ -1,8 +1,8 @@
-import { States } from '../../states.service';
-import { AuthorisationService } from 'core-app/modules/common/model-auth/model-auth.service';
+import { States } from 'core-app/core/states/states.service';
+import { AuthorisationService } from 'core-app/core/model-auth/model-auth.service';
import { Component, EventEmitter, Input, Output } from "@angular/core";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
export interface QuerySharingChange {
isStarred:boolean;
diff --git a/frontend/src/app/components/modals/share-modal/query-sharing-form.html b/frontend/src/app/shared/components/modals/share-modal/query-sharing-form.html
similarity index 100%
rename from frontend/src/app/components/modals/share-modal/query-sharing-form.html
rename to frontend/src/app/shared/components/modals/share-modal/query-sharing-form.html
diff --git a/frontend/src/app/components/modals/share-modal/query-sharing.modal.html b/frontend/src/app/shared/components/modals/share-modal/query-sharing.modal.html
similarity index 100%
rename from frontend/src/app/components/modals/share-modal/query-sharing.modal.html
rename to frontend/src/app/shared/components/modals/share-modal/query-sharing.modal.html
diff --git a/frontend/src/app/components/modals/share-modal/query-sharing.modal.ts b/frontend/src/app/shared/components/modals/share-modal/query-sharing.modal.ts
similarity index 78%
rename from frontend/src/app/components/modals/share-modal/query-sharing.modal.ts
rename to frontend/src/app/shared/components/modals/share-modal/query-sharing.modal.ts
index 071d1f24559..a61f09af6fd 100644
--- a/frontend/src/app/components/modals/share-modal/query-sharing.modal.ts
+++ b/frontend/src/app/shared/components/modals/share-modal/query-sharing.modal.ts
@@ -26,18 +26,18 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackagesListService } from '../../wp-list/wp-list.service';
-import { States } from '../../states.service';
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { OpModalLocalsMap } from "core-app/modules/modal/modal.types";
+import { WorkPackagesListService } from 'core-app/features/work-packages/components/wp-list/wp-list.service';
+import { States } from 'core-app/core/states/states.service';
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
import { ChangeDetectorRef, Component, ElementRef, Inject, OnInit } from "@angular/core";
-import { QuerySharingChange } from "core-components/modals/share-modal/query-sharing-form.component";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { QuerySharingChange } from "core-app/shared/components/modals/share-modal/query-sharing-form.component";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { IsolatedQuerySpace } from "core-app/features/work-packages/directives/query-space/isolated-query-space";
@Component({
templateUrl: './query-sharing.modal.html'
diff --git a/frontend/src/app/components/modals/wp-destroy-modal/wp-destroy.modal.html b/frontend/src/app/shared/components/modals/wp-destroy-modal/wp-destroy.modal.html
similarity index 100%
rename from frontend/src/app/components/modals/wp-destroy-modal/wp-destroy.modal.html
rename to frontend/src/app/shared/components/modals/wp-destroy-modal/wp-destroy.modal.html
diff --git a/frontend/src/app/components/modals/wp-destroy-modal/wp-destroy.modal.ts b/frontend/src/app/shared/components/modals/wp-destroy-modal/wp-destroy.modal.ts
similarity index 83%
rename from frontend/src/app/components/modals/wp-destroy-modal/wp-destroy.modal.ts
rename to frontend/src/app/shared/components/modals/wp-destroy-modal/wp-destroy.modal.ts
index 573acdb8f66..d82717c3ccf 100644
--- a/frontend/src/app/components/modals/wp-destroy-modal/wp-destroy.modal.ts
+++ b/frontend/src/app/shared/components/modals/wp-destroy-modal/wp-destroy.modal.ts
@@ -26,19 +26,19 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackagesListService } from '../../wp-list/wp-list.service';
-import { States } from '../../states.service';
+import { WorkPackagesListService } from 'core-app/features/work-packages/components/wp-list/wp-list.service';
+import { States } from 'core-app/core/states/states.service';
import { ChangeDetectorRef, Component, ElementRef, Inject, OnInit } from "@angular/core";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { OpModalLocalsMap } from "core-app/modules/modal/modal.types";
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { WorkPackageViewFocusService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-focus.service';
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { WorkPackageViewFocusService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-focus.service';
import { StateService } from '@uirouter/core';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { WorkPackageService } from "core-components/work-packages/work-package.service";
-import { BackRoutingService } from "core-app/modules/common/back-routing/back-routing.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { BackRoutingService } from "core-app/features/work-packages/components/back-routing/back-routing.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { WorkPackageService } from "core-app/features/work-packages/services/work-package.service";
@Component({
templateUrl: './wp-destroy.modal.html'
diff --git a/frontend/src/app/modules/common/no-results/no-results.component.html b/frontend/src/app/shared/components/no-results/no-results.component.html
similarity index 100%
rename from frontend/src/app/modules/common/no-results/no-results.component.html
rename to frontend/src/app/shared/components/no-results/no-results.component.html
diff --git a/frontend/src/app/modules/common/no-results/no-results.component.ts b/frontend/src/app/shared/components/no-results/no-results.component.ts
similarity index 100%
rename from frontend/src/app/modules/common/no-results/no-results.component.ts
rename to frontend/src/app/shared/components/no-results/no-results.component.ts
diff --git a/frontend/src/app/modules/common/notifications/notification.component.html b/frontend/src/app/shared/components/notifications/notification.component.html
similarity index 100%
rename from frontend/src/app/modules/common/notifications/notification.component.html
rename to frontend/src/app/shared/components/notifications/notification.component.html
diff --git a/frontend/src/app/modules/common/notifications/notification.component.ts b/frontend/src/app/shared/components/notifications/notification.component.ts
similarity index 95%
rename from frontend/src/app/modules/common/notifications/notification.component.ts
rename to frontend/src/app/shared/components/notifications/notification.component.ts
index 5ec6278551d..dabed6301fc 100644
--- a/frontend/src/app/modules/common/notifications/notification.component.ts
+++ b/frontend/src/app/shared/components/notifications/notification.component.ts
@@ -27,12 +27,12 @@
//++
import { ChangeDetectionStrategy, Component, Input, OnInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
import {
INotification,
NotificationsService,
NotificationType
-} from 'core-app/modules/common/notifications/notifications.service';
+} from 'core-app/shared/components/notifications/notifications.service';
@Component({
templateUrl: './notification.component.html',
diff --git a/frontend/src/app/modules/common/notifications/notifications-container.component.ts b/frontend/src/app/shared/components/notifications/notifications-container.component.ts
similarity index 91%
rename from frontend/src/app/modules/common/notifications/notifications-container.component.ts
rename to frontend/src/app/shared/components/notifications/notifications-container.component.ts
index 6512f694306..c5f2f3ea99a 100644
--- a/frontend/src/app/modules/common/notifications/notifications-container.component.ts
+++ b/frontend/src/app/shared/components/notifications/notifications-container.component.ts
@@ -27,8 +27,8 @@
//++
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit } from '@angular/core';
-import { INotification, NotificationsService } from 'core-app/modules/common/notifications/notifications.service';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { INotification, NotificationsService } from 'core-app/shared/components/notifications/notifications.service';
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
export const notificationsContainerSelector = 'notifications-container';
diff --git a/frontend/src/app/modules/common/notifications/notifications.service.spec.ts b/frontend/src/app/shared/components/notifications/notifications.service.spec.ts
similarity index 92%
rename from frontend/src/app/modules/common/notifications/notifications.service.spec.ts
rename to frontend/src/app/shared/components/notifications/notifications.service.spec.ts
index 802594be367..d8bd7bcc051 100644
--- a/frontend/src/app/modules/common/notifications/notifications.service.spec.ts
+++ b/frontend/src/app/shared/components/notifications/notifications.service.spec.ts
@@ -26,11 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { OpenprojectHalModule } from 'core-app/modules/hal/openproject-hal.module';
import { TestBed, waitForAsync } from '@angular/core/testing';
-import { NotificationsService } from 'core-app/modules/common/notifications/notifications.service';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { NotificationsService } from 'core-app/shared/components/notifications/notifications.service';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { OpenprojectHalModule } from "core-app/features/hal/openproject-hal.module";
describe('NotificationsService', function () {
var notificationsService:NotificationsService;
diff --git a/frontend/src/app/modules/common/notifications/notifications.service.ts b/frontend/src/app/shared/components/notifications/notifications.service.ts
similarity index 95%
rename from frontend/src/app/modules/common/notifications/notifications.service.ts
rename to frontend/src/app/shared/components/notifications/notifications.service.ts
index 564019bdbb8..a964895f875 100644
--- a/frontend/src/app/modules/common/notifications/notifications.service.ts
+++ b/frontend/src/app/shared/components/notifications/notifications.service.ts
@@ -26,10 +26,10 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
import { input, State } from 'reactivestates';
import { Injectable } from '@angular/core';
-import { UploadInProgress } from "core-components/api/op-file-upload/op-file-upload.service";
+import { UploadInProgress } from "core-app/core/file-upload/op-file-upload.service";
export function removeSuccessFlashMessages() {
jQuery('.flash.notice').remove();
diff --git a/frontend/src/app/modules/common/notifications/upload-progress.component.ts b/frontend/src/app/shared/components/notifications/upload-progress.component.ts
similarity index 93%
rename from frontend/src/app/modules/common/notifications/upload-progress.component.ts
rename to frontend/src/app/shared/components/notifications/upload-progress.component.ts
index ab84f0c2a9a..55f5fa82b02 100644
--- a/frontend/src/app/modules/common/notifications/upload-progress.component.ts
+++ b/frontend/src/app/shared/components/notifications/upload-progress.component.ts
@@ -27,11 +27,11 @@
//++
import { Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
-import { UploadFile, UploadHttpEvent, UploadInProgress } from "core-components/api/op-file-upload/op-file-upload.service";
import { HttpErrorResponse, HttpEventType, HttpProgressEvent } from "@angular/common/http";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { debugLog } from "core-app/helpers/debug_output";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { debugLog } from "core-app/shared/helpers/debug_output";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { UploadFile, UploadHttpEvent, UploadInProgress } from "core-app/core/file-upload/op-file-upload.service";
@Component({
selector: 'notifications-upload-progress',
diff --git a/frontend/src/app/components/op-context-menu/handlers/op-columns-context-menu.directive.ts b/frontend/src/app/shared/components/op-context-menu/handlers/op-columns-context-menu.directive.ts
similarity index 82%
rename from frontend/src/app/components/op-context-menu/handlers/op-columns-context-menu.directive.ts
rename to frontend/src/app/shared/components/op-context-menu/handlers/op-columns-context-menu.directive.ts
index cb421d64ec6..adac23d26a5 100644
--- a/frontend/src/app/components/op-context-menu/handlers/op-columns-context-menu.directive.ts
+++ b/frontend/src/app/shared/components/op-context-menu/handlers/op-columns-context-menu.directive.ts
@@ -27,20 +27,20 @@
//++
import { Directive, ElementRef, Injector, Input } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-
-import { OpContextMenuTrigger } from 'core-components/op-context-menu/handlers/op-context-menu-trigger.directive';
-import { OPContextMenuService } from 'core-components/op-context-menu/op-context-menu.service';
-import { OpModalService } from 'core-app/modules/modal/modal.service';
-import { WorkPackageViewColumnsService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-columns.service';
-import { WorkPackageViewGroupByService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-group-by.service';
-import { WorkPackageViewHierarchiesService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy.service';
-import { WorkPackageViewSortByService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-sort-by.service';
-import { WorkPackageTable } from 'core-components/wp-fast-table/wp-fast-table';
-import { QueryColumn } from 'core-components/wp-query/query-column';
-import { WpTableConfigurationModalComponent } from 'core-components/wp-table/configuration-modal/wp-table-configuration.modal';
-import { ConfirmDialogService } from "core-components/modals/confirm-dialog/confirm-dialog.service";
-import { QUERY_SORT_BY_ASC, QUERY_SORT_BY_DESC } from "core-app/modules/hal/resources/query-sort-by-resource";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+
+import { OpContextMenuTrigger } from 'core-app/shared/components/op-context-menu/handlers/op-context-menu-trigger.directive';
+import { OPContextMenuService } from 'core-app/shared/components/op-context-menu/op-context-menu.service';
+import { OpModalService } from 'core-app/shared/components/modal/modal.service';
+import { WorkPackageViewColumnsService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-columns.service';
+import { WorkPackageViewGroupByService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-group-by.service';
+import { WorkPackageViewHierarchiesService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy.service';
+import { WorkPackageViewSortByService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-sort-by.service';
+import { WorkPackageTable } from 'core-app/features/work-packages/components/wp-fast-table/wp-fast-table';
+import { QueryColumn } from 'core-app/features/work-packages/components/wp-query/query-column';
+import { WpTableConfigurationModalComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal';
+import { QUERY_SORT_BY_ASC, QUERY_SORT_BY_DESC } from "core-app/features/hal/resources/query-sort-by-resource";
+import { ConfirmDialogService } from "core-app/shared/components/modals/confirm-dialog/confirm-dialog.service";
@Directive({
selector: '[opColumnsContextMenu]'
diff --git a/frontend/src/app/components/op-context-menu/handlers/op-context-menu-trigger.directive.ts b/frontend/src/app/shared/components/op-context-menu/handlers/op-context-menu-trigger.directive.ts
similarity index 80%
rename from frontend/src/app/components/op-context-menu/handlers/op-context-menu-trigger.directive.ts
rename to frontend/src/app/shared/components/op-context-menu/handlers/op-context-menu-trigger.directive.ts
index a731bf2bc7f..66d37de7630 100644
--- a/frontend/src/app/components/op-context-menu/handlers/op-context-menu-trigger.directive.ts
+++ b/frontend/src/app/shared/components/op-context-menu/handlers/op-context-menu-trigger.directive.ts
@@ -1,7 +1,7 @@
import { AfterViewInit, Directive, ElementRef } from "@angular/core";
-import { OPContextMenuService } from "core-components/op-context-menu/op-context-menu.service";
-import { OpContextMenuHandler } from "core-components/op-context-menu/op-context-menu-handler";
-import { OpContextMenuItem } from "core-components/op-context-menu/op-context-menu.types";
+import { OPContextMenuService } from "core-app/shared/components/op-context-menu/op-context-menu.service";
+import { OpContextMenuHandler } from "core-app/shared/components/op-context-menu/op-context-menu-handler";
+import { OpContextMenuItem } from "core-app/shared/components/op-context-menu/op-context-menu.types";
@Directive({
selector: '[opContextMenuTrigger]'
diff --git a/frontend/src/app/components/op-context-menu/handlers/op-settings-dropdown-menu.directive.ts b/frontend/src/app/shared/components/op-context-menu/handlers/op-settings-dropdown-menu.directive.ts
similarity index 86%
rename from frontend/src/app/components/op-context-menu/handlers/op-settings-dropdown-menu.directive.ts
rename to frontend/src/app/shared/components/op-context-menu/handlers/op-settings-dropdown-menu.directive.ts
index 86bc3bb4e37..7790ce907ec 100644
--- a/frontend/src/app/components/op-context-menu/handlers/op-settings-dropdown-menu.directive.ts
+++ b/frontend/src/app/shared/components/op-context-menu/handlers/op-settings-dropdown-menu.directive.ts
@@ -27,24 +27,24 @@
//++
import { Directive, ElementRef, Injector, Input } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { AuthorisationService } from 'core-app/modules/common/model-auth/model-auth.service';
-import { OpContextMenuTrigger } from 'core-components/op-context-menu/handlers/op-context-menu-trigger.directive';
-import { OPContextMenuService } from 'core-components/op-context-menu/op-context-menu.service';
-import { States } from 'core-components/states.service';
-import { WorkPackagesListService } from 'core-components/wp-list/wp-list.service';
-import { QueryFormResource } from 'core-app/modules/hal/resources/query-form-resource';
-import { QueryResource } from 'core-app/modules/hal/resources/query-resource';
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { WpTableExportModal } from "core-components/modals/export-modal/wp-table-export.modal";
-import { SaveQueryModal } from "core-components/modals/save-modal/save-query.modal";
-import { QuerySharingModal } from "core-components/modals/share-modal/query-sharing.modal";
-import { WpTableConfigurationModalComponent } from 'core-components/wp-table/configuration-modal/wp-table-configuration.modal';
-import { IsolatedQuerySpace } from "core-app/modules/work_packages/query-space/isolated-query-space";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { AuthorisationService } from 'core-app/core/model-auth/model-auth.service';
+import { OpContextMenuTrigger } from 'core-app/shared/components/op-context-menu/handlers/op-context-menu-trigger.directive';
+import { OPContextMenuService } from 'core-app/shared/components/op-context-menu/op-context-menu.service';
+import { States } from 'core-app/core/states/states.service';
+import { WorkPackagesListService } from 'core-app/features/work-packages/components/wp-list/wp-list.service';
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { WpTableConfigurationModalComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal';
+import { IsolatedQuerySpace } from 'core-app/features/work-packages/directives/query-space/isolated-query-space';
import {
selectableTitleIdentifier,
triggerEditingEvent
-} from "core-app/modules/common/editable-toolbar-title/editable-toolbar-title.component";
+} from "core-app/shared/components/editable-toolbar-title/editable-toolbar-title.component";
+import { QuerySharingModal } from "core-app/shared/components/modals/share-modal/query-sharing.modal";
+import { WpTableExportModal } from "core-app/shared/components/modals/export-modal/wp-table-export.modal";
+import { SaveQueryModal } from "core-app/shared/components/modals/save-modal/save-query.modal";
+import { QueryFormResource } from "core-app/features/hal/resources/query-form-resource";
@Directive({
selector: '[opSettingsContextMenu]'
diff --git a/frontend/src/app/components/op-context-menu/handlers/op-types-context-menu.directive.ts b/frontend/src/app/shared/components/op-context-menu/handlers/op-types-context-menu.directive.ts
similarity index 80%
rename from frontend/src/app/components/op-context-menu/handlers/op-types-context-menu.directive.ts
rename to frontend/src/app/shared/components/op-context-menu/handlers/op-types-context-menu.directive.ts
index 8c470fd9fb2..99d69a587da 100644
--- a/frontend/src/app/components/op-context-menu/handlers/op-types-context-menu.directive.ts
+++ b/frontend/src/app/shared/components/op-context-menu/handlers/op-types-context-menu.directive.ts
@@ -26,16 +26,16 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { OpContextMenuItem } from 'core-components/op-context-menu/op-context-menu.types';
+import { OpContextMenuItem } from 'core-app/shared/components/op-context-menu/op-context-menu.types';
import { StateService } from '@uirouter/core';
-import { OPContextMenuService } from "core-components/op-context-menu/op-context-menu.service";
+import { OPContextMenuService } from "core-app/shared/components/op-context-menu/op-context-menu.service";
import { Directive, ElementRef, Input, OnInit } from "@angular/core";
-import { LinkHandling } from "core-app/modules/common/link-handling/link-handling";
-import { OpContextMenuTrigger } from "core-components/op-context-menu/handlers/op-context-menu-trigger.directive";
-import { TypeResource } from 'core-app/modules/hal/resources/type-resource';
-import { Highlighting } from 'core-app/components/wp-fast-table/builders/highlighting/highlighting.functions';
-import { BrowserDetector } from "core-app/modules/common/browser/browser-detector.service";
-import { WorkPackageCreateService } from 'core-components/wp-new/wp-create.service';
+import { LinkHandling } from "core-app/shared/helpers/link-handling/link-handling";
+import { OpContextMenuTrigger } from "core-app/shared/components/op-context-menu/handlers/op-context-menu-trigger.directive";
+import { BrowserDetector } from "core-app/core/browser/browser-detector.service";
+import { WorkPackageCreateService } from 'core-app/features/work-packages/components/wp-new/wp-create.service';
+import { Highlighting } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting.functions";
+import { TypeResource } from "core-app/features/hal/resources/type-resource";
@Directive({
selector: '[opTypesCreateDropdown]'
diff --git a/frontend/src/app/components/op-context-menu/handlers/wp-create-settings-menu.directive.ts b/frontend/src/app/shared/components/op-context-menu/handlers/wp-create-settings-menu.directive.ts
similarity index 85%
rename from frontend/src/app/components/op-context-menu/handlers/wp-create-settings-menu.directive.ts
rename to frontend/src/app/shared/components/op-context-menu/handlers/wp-create-settings-menu.directive.ts
index 84cb5809366..8ae942bca29 100644
--- a/frontend/src/app/components/op-context-menu/handlers/wp-create-settings-menu.directive.ts
+++ b/frontend/src/app/shared/components/op-context-menu/handlers/wp-create-settings-menu.directive.ts
@@ -26,13 +26,12 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { OPContextMenuService } from "core-components/op-context-menu/op-context-menu.service";
+import { OPContextMenuService } from "core-app/shared/components/op-context-menu/op-context-menu.service";
import { Directive, ElementRef } from "@angular/core";
-import { OpContextMenuTrigger } from "core-components/op-context-menu/handlers/op-context-menu-trigger.directive";
-
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { States } from "core-components/states.service";
-import { FormResource } from 'core-app/modules/hal/resources/form-resource';
+import { OpContextMenuTrigger } from "core-app/shared/components/op-context-menu/handlers/op-context-menu-trigger.directive";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { States } from "core-app/core/states/states.service";
+import { FormResource } from "core-app/features/hal/resources/form-resource";
@Directive({
selector: '[wpCreateSettingsMenu]'
diff --git a/frontend/src/app/components/op-context-menu/handlers/wp-group-toggle-dropdown-menu.directive.ts b/frontend/src/app/shared/components/op-context-menu/handlers/wp-group-toggle-dropdown-menu.directive.ts
similarity index 81%
rename from frontend/src/app/components/op-context-menu/handlers/wp-group-toggle-dropdown-menu.directive.ts
rename to frontend/src/app/shared/components/op-context-menu/handlers/wp-group-toggle-dropdown-menu.directive.ts
index c10724cfafd..37184438437 100644
--- a/frontend/src/app/components/op-context-menu/handlers/wp-group-toggle-dropdown-menu.directive.ts
+++ b/frontend/src/app/shared/components/op-context-menu/handlers/wp-group-toggle-dropdown-menu.directive.ts
@@ -26,17 +26,17 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { OPContextMenuService } from "core-components/op-context-menu/op-context-menu.service";
+import { OPContextMenuService } from "core-app/shared/components/op-context-menu/op-context-menu.service";
import { Directive, ElementRef } from "@angular/core";
-import { OpContextMenuTrigger } from "core-components/op-context-menu/handlers/op-context-menu-trigger.directive";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { OpContextMenuTrigger } from "core-app/shared/components/op-context-menu/handlers/op-context-menu-trigger.directive";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import {
WorkPackageViewDisplayRepresentationService,
wpDisplayCardRepresentation,
wpDisplayListRepresentation
-} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
-import { WorkPackageViewTimelineService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service";
-import { WorkPackageViewCollapsedGroupsService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service";
+} from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
+import { WorkPackageViewTimelineService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service";
+import { WorkPackageViewCollapsedGroupsService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-collapsed-groups.service";
@Directive({
selector: '[wpGroupToggleDropdown]'
diff --git a/frontend/src/app/components/op-context-menu/handlers/wp-status-dropdown-menu.directive.ts b/frontend/src/app/shared/components/op-context-menu/handlers/wp-status-dropdown-menu.directive.ts
similarity index 75%
rename from frontend/src/app/components/op-context-menu/handlers/wp-status-dropdown-menu.directive.ts
rename to frontend/src/app/shared/components/op-context-menu/handlers/wp-status-dropdown-menu.directive.ts
index 66924ea6188..85ec1ff38ac 100644
--- a/frontend/src/app/components/op-context-menu/handlers/wp-status-dropdown-menu.directive.ts
+++ b/frontend/src/app/shared/components/op-context-menu/handlers/wp-status-dropdown-menu.directive.ts
@@ -27,19 +27,19 @@
//++
import { StateService } from '@uirouter/core';
-import { OPContextMenuService } from "core-components/op-context-menu/op-context-menu.service";
+import { OPContextMenuService } from "core-app/shared/components/op-context-menu/op-context-menu.service";
import { Directive, ElementRef, Input } from "@angular/core";
-import { OpContextMenuTrigger } from "core-components/op-context-menu/handlers/op-context-menu-trigger.directive";
+import { OpContextMenuTrigger } from "core-app/shared/components/op-context-menu/handlers/op-context-menu-trigger.directive";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { WorkPackageResource } from "core-app/modules/hal/resources/work-package-resource";
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
-import { Highlighting } from "core-components/wp-fast-table/builders/highlighting/highlighting.functions";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { HalEventsService } from "core-app/modules/hal/services/hal-events.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
+import { Highlighting } from "core-app/features/work-packages/components/wp-fast-table/builders/highlighting/highlighting.functions";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { HalEventsService } from "core-app/features/hal/services/hal-events.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
@Directive({
selector: '[wpStatusDropdown]'
diff --git a/frontend/src/app/components/op-context-menu/handlers/wp-view-dropdown-menu.directive.ts b/frontend/src/app/shared/components/op-context-menu/handlers/wp-view-dropdown-menu.directive.ts
similarity index 87%
rename from frontend/src/app/components/op-context-menu/handlers/wp-view-dropdown-menu.directive.ts
rename to frontend/src/app/shared/components/op-context-menu/handlers/wp-view-dropdown-menu.directive.ts
index 41ecb82da89..69af23d7acf 100644
--- a/frontend/src/app/components/op-context-menu/handlers/wp-view-dropdown-menu.directive.ts
+++ b/frontend/src/app/shared/components/op-context-menu/handlers/wp-view-dropdown-menu.directive.ts
@@ -26,16 +26,16 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { OPContextMenuService } from "core-components/op-context-menu/op-context-menu.service";
+import { OPContextMenuService } from "core-app/shared/components/op-context-menu/op-context-menu.service";
import { Directive, ElementRef } from "@angular/core";
-import { OpContextMenuTrigger } from "core-components/op-context-menu/handlers/op-context-menu-trigger.directive";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { OpContextMenuTrigger } from "core-app/shared/components/op-context-menu/handlers/op-context-menu-trigger.directive";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import {
WorkPackageViewDisplayRepresentationService,
wpDisplayCardRepresentation,
wpDisplayListRepresentation
-} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
-import { WorkPackageViewTimelineService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-timeline.service";
+} from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-display-representation.service";
+import { WorkPackageViewTimelineService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-timeline.service";
@Directive({
selector: '[wpViewDropdown]'
diff --git a/frontend/src/app/components/op-context-menu/icon-triggered-context-menu/icon-triggered-context-menu.component.html b/frontend/src/app/shared/components/op-context-menu/icon-triggered-context-menu/icon-triggered-context-menu.component.html
similarity index 100%
rename from frontend/src/app/components/op-context-menu/icon-triggered-context-menu/icon-triggered-context-menu.component.html
rename to frontend/src/app/shared/components/op-context-menu/icon-triggered-context-menu/icon-triggered-context-menu.component.html
diff --git a/frontend/src/app/components/op-context-menu/icon-triggered-context-menu/icon-triggered-context-menu.component.sass b/frontend/src/app/shared/components/op-context-menu/icon-triggered-context-menu/icon-triggered-context-menu.component.sass
similarity index 100%
rename from frontend/src/app/components/op-context-menu/icon-triggered-context-menu/icon-triggered-context-menu.component.sass
rename to frontend/src/app/shared/components/op-context-menu/icon-triggered-context-menu/icon-triggered-context-menu.component.sass
diff --git a/frontend/src/app/components/op-context-menu/icon-triggered-context-menu/icon-triggered-context-menu.component.ts b/frontend/src/app/shared/components/op-context-menu/icon-triggered-context-menu/icon-triggered-context-menu.component.ts
similarity index 85%
rename from frontend/src/app/components/op-context-menu/icon-triggered-context-menu/icon-triggered-context-menu.component.ts
rename to frontend/src/app/shared/components/op-context-menu/icon-triggered-context-menu/icon-triggered-context-menu.component.ts
index 6d15d36e580..34cddc6f826 100644
--- a/frontend/src/app/components/op-context-menu/icon-triggered-context-menu/icon-triggered-context-menu.component.ts
+++ b/frontend/src/app/shared/components/op-context-menu/icon-triggered-context-menu/icon-triggered-context-menu.component.ts
@@ -27,11 +27,11 @@
//++
import { ChangeDetectorRef, Component, ElementRef, Injector, Input } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { OpContextMenuTrigger } from 'core-components/op-context-menu/handlers/op-context-menu-trigger.directive';
-import { OPContextMenuService } from 'core-components/op-context-menu/op-context-menu.service';
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { OpContextMenuItem } from "core-components/op-context-menu/op-context-menu.types";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { OpContextMenuTrigger } from 'core-app/shared/components/op-context-menu/handlers/op-context-menu-trigger.directive';
+import { OPContextMenuService } from 'core-app/shared/components/op-context-menu/op-context-menu.service';
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { OpContextMenuItem } from "core-app/shared/components/op-context-menu/op-context-menu.types";
@Component({
selector: 'icon-triggered-context-menu',
diff --git a/frontend/src/app/components/op-context-menu/op-context-menu-handler.ts b/frontend/src/app/shared/components/op-context-menu/op-context-menu-handler.ts
similarity index 81%
rename from frontend/src/app/components/op-context-menu/op-context-menu-handler.ts
rename to frontend/src/app/shared/components/op-context-menu/op-context-menu-handler.ts
index 387ce7dc4a6..9b9dfb51925 100644
--- a/frontend/src/app/components/op-context-menu/op-context-menu-handler.ts
+++ b/frontend/src/app/shared/components/op-context-menu/op-context-menu-handler.ts
@@ -1,6 +1,6 @@
-import { OPContextMenuService } from 'core-components/op-context-menu/op-context-menu.service';
-import { OpContextMenuItem } from 'core-components/op-context-menu/op-context-menu.types';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { OPContextMenuService } from 'core-app/shared/components/op-context-menu/op-context-menu.service';
+import { OpContextMenuItem } from 'core-app/shared/components/op-context-menu/op-context-menu.types';
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
/**
* Interface passed to CM service to open a particular context menu.
diff --git a/frontend/src/app/components/op-context-menu/op-context-menu.component.ts b/frontend/src/app/shared/components/op-context-menu/op-context-menu.component.ts
similarity index 81%
rename from frontend/src/app/components/op-context-menu/op-context-menu.component.ts
rename to frontend/src/app/shared/components/op-context-menu/op-context-menu.component.ts
index ca13ca38429..a91a6bf32a3 100644
--- a/frontend/src/app/components/op-context-menu/op-context-menu.component.ts
+++ b/frontend/src/app/shared/components/op-context-menu/op-context-menu.component.ts
@@ -2,8 +2,8 @@ import { Component, Inject } from "@angular/core";
import {
OpContextMenuItem,
OpContextMenuLocalsMap, OpContextMenuLocalsToken
-} from "core-components/op-context-menu/op-context-menu.types";
-import { OPContextMenuService } from "core-components/op-context-menu/op-context-menu.service";
+} from "core-app/shared/components/op-context-menu/op-context-menu.types";
+import { OPContextMenuService } from "core-app/shared/components/op-context-menu/op-context-menu.service";
@Component({
templateUrl: './op-context-menu.html'
diff --git a/frontend/src/app/components/op-context-menu/op-context-menu.html b/frontend/src/app/shared/components/op-context-menu/op-context-menu.html
similarity index 100%
rename from frontend/src/app/components/op-context-menu/op-context-menu.html
rename to frontend/src/app/shared/components/op-context-menu/op-context-menu.html
diff --git a/frontend/src/app/components/op-context-menu/op-context-menu.service.ts b/frontend/src/app/shared/components/op-context-menu/op-context-menu.service.ts
similarity index 90%
rename from frontend/src/app/components/op-context-menu/op-context-menu.service.ts
rename to frontend/src/app/shared/components/op-context-menu/op-context-menu.service.ts
index 6ea8377c2c3..71b00f79041 100644
--- a/frontend/src/app/components/op-context-menu/op-context-menu.service.ts
+++ b/frontend/src/app/shared/components/op-context-menu/op-context-menu.service.ts
@@ -1,11 +1,11 @@
import { ApplicationRef, ComponentFactoryResolver, Injectable, Injector } from '@angular/core';
import { ComponentPortal, DomPortalOutlet, PortalInjector } from "@angular/cdk/portal";
import { TransitionService } from "@uirouter/core";
-import { OpContextMenuHandler } from "core-components/op-context-menu/op-context-menu-handler";
-import { OpContextMenuLocalsMap, OpContextMenuLocalsToken } from "core-components/op-context-menu/op-context-menu.types";
-import { OPContextMenuComponent } from "core-components/op-context-menu/op-context-menu.component";
-import { keyCodes } from 'core-app/modules/common/keyCodes.enum';
-import { FocusHelperService } from 'core-app/modules/focus/focus-helper';
+import { OpContextMenuHandler } from "core-app/shared/components/op-context-menu/op-context-menu-handler";
+import { OpContextMenuLocalsMap, OpContextMenuLocalsToken } from "core-app/shared/components/op-context-menu/op-context-menu.types";
+import { OPContextMenuComponent } from "core-app/shared/components/op-context-menu/op-context-menu.component";
+import { keyCodes } from 'core-app/shared/helpers/keyCodes.enum';
+import { FocusHelperService } from 'core-app/shared/directives/focus/focus-helper';
@Injectable({ providedIn: 'root' })
export class OPContextMenuService {
diff --git a/frontend/src/app/components/op-context-menu/op-context-menu.types.ts b/frontend/src/app/shared/components/op-context-menu/op-context-menu.types.ts
similarity index 100%
rename from frontend/src/app/components/op-context-menu/op-context-menu.types.ts
rename to frontend/src/app/shared/components/op-context-menu/op-context-menu.types.ts
diff --git a/frontend/src/app/components/op-context-menu/wp-context-menu/wp-single-context-menu.ts b/frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-single-context-menu.ts
similarity index 73%
rename from frontend/src/app/components/op-context-menu/wp-context-menu/wp-single-context-menu.ts
rename to frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-single-context-menu.ts
index f509f0b4e8c..463c97bd3ff 100644
--- a/frontend/src/app/components/op-context-menu/wp-context-menu/wp-single-context-menu.ts
+++ b/frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-single-context-menu.ts
@@ -1,20 +1,20 @@
import { Directive, ElementRef, Injector, Input } from '@angular/core';
import { StateService } from '@uirouter/core';
-import { LinkHandling } from 'core-app/modules/common/link-handling/link-handling';
-import { AuthorisationService } from 'core-app/modules/common/model-auth/model-auth.service';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { HookService } from 'core-app/modules/plugins/hook-service';
-import { WpDestroyModal } from 'core-components/modals/wp-destroy-modal/wp-destroy.modal';
-import { OpContextMenuTrigger } from 'core-components/op-context-menu/handlers/op-context-menu-trigger.directive';
-import { OPContextMenuService } from 'core-components/op-context-menu/op-context-menu.service';
-import { OpContextMenuItem } from 'core-components/op-context-menu/op-context-menu.types';
-import { PERMITTED_CONTEXT_MENU_ACTIONS } from 'core-components/op-context-menu/wp-context-menu/wp-static-context-menu-actions';
-import { OpModalService } from 'core-app/modules/modal/modal.service';
-import { WorkPackageAuthorization } from 'core-components/work-packages/work-package-authorization.service';
-import { WorkPackageAction } from 'core-components/wp-table/context-menu-helper/wp-context-menu-helper.service';
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { TimeEntryCreateService } from "core-app/modules/time_entries/create/create.service";
+import { LinkHandling } from 'core-app/shared/helpers/link-handling/link-handling';
+import { AuthorisationService } from 'core-app/core/model-auth/model-auth.service';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HookService } from 'core-app/features/plugins/hook-service';
+import { OpContextMenuTrigger } from 'core-app/shared/components/op-context-menu/handlers/op-context-menu-trigger.directive';
+import { OPContextMenuService } from 'core-app/shared/components/op-context-menu/op-context-menu.service';
+import { OpContextMenuItem } from 'core-app/shared/components/op-context-menu/op-context-menu.types';
+import { PERMITTED_CONTEXT_MENU_ACTIONS } from 'core-app/shared/components/op-context-menu/wp-context-menu/wp-static-context-menu-actions';
+import { OpModalService } from 'core-app/shared/components/modal/modal.service';
+import { WorkPackageAction } from 'core-app/features/work-packages/components/wp-table/context-menu-helper/wp-context-menu-helper.service';
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { TimeEntryCreateService } from "core-app/shared/components/time_entries/create/create.service";
+import { WpDestroyModal } from "core-app/shared/components/modals/wp-destroy-modal/wp-destroy.modal";
+import { WorkPackageAuthorization } from "core-app/features/work-packages/services/work-package-authorization.service";
@Directive({
selector: '[wpSingleContextMenu]'
diff --git a/frontend/src/app/components/op-context-menu/wp-context-menu/wp-static-context-menu-actions.ts b/frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-static-context-menu-actions.ts
similarity index 100%
rename from frontend/src/app/components/op-context-menu/wp-context-menu/wp-static-context-menu-actions.ts
rename to frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-static-context-menu-actions.ts
diff --git a/frontend/src/app/components/op-context-menu/wp-context-menu/wp-table-context-menu.directive.ts b/frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-table-context-menu.directive.ts
similarity index 67%
rename from frontend/src/app/components/op-context-menu/wp-context-menu/wp-table-context-menu.directive.ts
rename to frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-table-context-menu.directive.ts
index e16d9449f25..65f373e36dd 100644
--- a/frontend/src/app/components/op-context-menu/wp-context-menu/wp-table-context-menu.directive.ts
+++ b/frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-table-context-menu.directive.ts
@@ -1,9 +1,9 @@
import { Injector } from "@angular/core";
-import { WorkPackageAction } from "core-components/wp-table/context-menu-helper/wp-context-menu-helper.service";
-import { WorkPackageTable } from "core-components/wp-fast-table/wp-fast-table";
-import { WorkPackageViewContextMenu } from "core-components/op-context-menu/wp-context-menu/wp-view-context-menu.directive";
-import { WorkPackageViewHierarchyIdentationService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
+import { WorkPackageAction } from "core-app/features/work-packages/components/wp-table/context-menu-helper/wp-context-menu-helper.service";
+import { WorkPackageTable } from "core-app/features/work-packages/components/wp-fast-table/wp-fast-table";
+import { WorkPackageViewContextMenu } from "core-app/shared/components/op-context-menu/wp-context-menu/wp-view-context-menu.directive";
+import { WorkPackageViewHierarchyIdentationService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-hierarchy-indentation.service";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
export class WorkPackageTableContextMenu extends WorkPackageViewContextMenu {
diff --git a/frontend/src/app/components/op-context-menu/wp-context-menu/wp-view-context-menu.directive.ts b/frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-view-context-menu.directive.ts
similarity index 73%
rename from frontend/src/app/components/op-context-menu/wp-context-menu/wp-view-context-menu.directive.ts
rename to frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-view-context-menu.directive.ts
index a6fa435cb56..04d11c14031 100644
--- a/frontend/src/app/components/op-context-menu/wp-context-menu/wp-view-context-menu.directive.ts
+++ b/frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-view-context-menu.directive.ts
@@ -2,21 +2,21 @@ import { Injector } from "@angular/core";
import {
WorkPackageAction,
WorkPackageContextMenuHelperService
-} from "core-components/wp-table/context-menu-helper/wp-context-menu-helper.service";
-import { States } from "core-components/states.service";
-import { WorkPackageRelationsHierarchyService } from "core-components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";
-import { WorkPackageViewSelectionService } from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-selection.service";
-import { LinkHandling } from "core-app/modules/common/link-handling/link-handling";
-import { OpContextMenuHandler } from "core-components/op-context-menu/op-context-menu-handler";
-import { OPContextMenuService } from "core-components/op-context-menu/op-context-menu.service";
-import { OpContextMenuItem, OpContextMenuLocalsMap } from "core-components/op-context-menu/op-context-menu.types";
-import { PERMITTED_CONTEXT_MENU_ACTIONS } from "core-components/op-context-menu/wp-context-menu/wp-static-context-menu-actions";
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { WpDestroyModal } from "core-components/modals/wp-destroy-modal/wp-destroy.modal";
+} from "core-app/features/work-packages/components/wp-table/context-menu-helper/wp-context-menu-helper.service";
+import { States } from "core-app/core/states/states.service";
+import { WorkPackageRelationsHierarchyService } from "core-app/features/work-packages/components/wp-relations/wp-relations-hierarchy/wp-relations-hierarchy.service";
+import { WorkPackageViewSelectionService } from "core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-selection.service";
+import { LinkHandling } from "core-app/shared/helpers/link-handling/link-handling";
+import { OpContextMenuHandler } from "core-app/shared/components/op-context-menu/op-context-menu-handler";
+import { OPContextMenuService } from "core-app/shared/components/op-context-menu/op-context-menu.service";
+import { OpContextMenuItem, OpContextMenuLocalsMap } from "core-app/shared/components/op-context-menu/op-context-menu.types";
+import { PERMITTED_CONTEXT_MENU_ACTIONS } from "core-app/shared/components/op-context-menu/wp-context-menu/wp-static-context-menu-actions";
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
import { StateService } from "@uirouter/core";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { TimeEntryCreateService } from "core-app/modules/time_entries/create/create.service";
-import { splitViewRoute } from "core-app/modules/work_packages/routing/split-view-routes.helper";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { TimeEntryCreateService } from "core-app/shared/components/time_entries/create/create.service";
+import { splitViewRoute } from "core-app/features/work-packages/routing/split-view-routes.helper";
+import { WpDestroyModal } from "core-app/shared/components/modals/wp-destroy-modal/wp-destroy.modal";
export class WorkPackageViewContextMenu extends OpContextMenuHandler {
@@ -64,29 +64,29 @@ export class WorkPackageViewContextMenu extends OpContextMenuHandler {
const link = action.link;
switch (action.key) {
- case 'delete':
- this.deleteSelectedWorkPackages();
- break;
+ case 'delete':
+ this.deleteSelectedWorkPackages();
+ break;
- case 'edit':
- this.editSelectedWorkPackages(link!);
- break;
+ case 'edit':
+ this.editSelectedWorkPackages(link!);
+ break;
- case 'copy':
- this.copySelectedWorkPackages(link!);
- break;
+ case 'copy':
+ this.copySelectedWorkPackages(link!);
+ break;
- case 'relation-new-child':
- this.wpRelationsHierarchyService.addNewChildWp(this.baseRoute, this.workPackage);
- break;
+ case 'relation-new-child':
+ this.wpRelationsHierarchyService.addNewChildWp(this.baseRoute, this.workPackage);
+ break;
- case 'log_time':
- this.logTimeForSelectedWorkPackage();
- break;
+ case 'log_time':
+ this.logTimeForSelectedWorkPackage();
+ break;
- default:
- window.location.href = link!;
- break;
+ default:
+ window.location.href = link!;
+ break;
}
}
diff --git a/frontend/src/app/modules/common/op-date-picker/date-picker.module.ts b/frontend/src/app/shared/components/op-date-picker/date-picker.module.ts
similarity index 71%
rename from frontend/src/app/modules/common/op-date-picker/date-picker.module.ts
rename to frontend/src/app/shared/components/op-date-picker/date-picker.module.ts
index 7efe6b8121d..f19d7adbea2 100644
--- a/frontend/src/app/modules/common/op-date-picker/date-picker.module.ts
+++ b/frontend/src/app/shared/components/op-date-picker/date-picker.module.ts
@@ -1,6 +1,6 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
-import { OpDatePickerComponent } from "core-app/modules/common/op-date-picker/op-date-picker.component";
+import { OpDatePickerComponent } from "core-app/shared/components/op-date-picker/op-date-picker.component";
@NgModule({
diff --git a/frontend/src/app/modules/common/op-date-picker/datepicker.ts b/frontend/src/app/shared/components/op-date-picker/datepicker.ts
similarity index 96%
rename from frontend/src/app/modules/common/op-date-picker/datepicker.ts
rename to frontend/src/app/shared/components/op-date-picker/datepicker.ts
index eb58d557c62..ed0258ebd5c 100644
--- a/frontend/src/app/modules/common/op-date-picker/datepicker.ts
+++ b/frontend/src/app/shared/components/op-date-picker/datepicker.ts
@@ -29,8 +29,8 @@
import * as moment from 'moment';
import flatpickr from 'flatpickr';
import { Instance } from 'flatpickr/dist/types/instance';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
import DateOption = flatpickr.Options.DateOption;
export class DatePicker {
diff --git a/frontend/src/app/modules/common/op-date-picker/op-date-picker.component.html b/frontend/src/app/shared/components/op-date-picker/op-date-picker.component.html
similarity index 100%
rename from frontend/src/app/modules/common/op-date-picker/op-date-picker.component.html
rename to frontend/src/app/shared/components/op-date-picker/op-date-picker.component.html
diff --git a/frontend/src/app/modules/common/op-date-picker/op-date-picker.component.ts b/frontend/src/app/shared/components/op-date-picker/op-date-picker.component.ts
similarity index 91%
rename from frontend/src/app/modules/common/op-date-picker/op-date-picker.component.ts
rename to frontend/src/app/shared/components/op-date-picker/op-date-picker.component.ts
index 4374af5a8b4..412e0e37ce1 100644
--- a/frontend/src/app/modules/common/op-date-picker/op-date-picker.component.ts
+++ b/frontend/src/app/shared/components/op-date-picker/op-date-picker.component.ts
@@ -27,13 +27,13 @@
//++
import { AfterViewInit, Component, ElementRef, EventEmitter, Input, OnDestroy, Output, ViewChild } from '@angular/core';
-import { TimezoneService } from 'core-components/datetime/timezone.service';
-import { DatePicker } from "core-app/modules/common/op-date-picker/datepicker";
-import { DebouncedEventEmitter } from "core-components/angular/debounced-event-emitter";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
import { componentDestroyed } from "@w11k/ngx-componentdestroyed";
-import { keyCodes } from "core-app/modules/common/keyCodes.enum";
import { Instance } from "flatpickr/dist/types/instance";
+import { DebouncedEventEmitter } from "core-app/shared/helpers/rxjs/debounced-event-emitter";
+import { keyCodes } from "core-app/shared/helpers/keyCodes.enum";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
+import { DatePicker } from "core-app/shared/components/op-date-picker/datepicker";
@Component({
selector: 'op-date-picker',
diff --git a/frontend/src/app/modules/common/option-list/option-list.component.html b/frontend/src/app/shared/components/option-list/option-list.component.html
similarity index 100%
rename from frontend/src/app/modules/common/option-list/option-list.component.html
rename to frontend/src/app/shared/components/option-list/option-list.component.html
diff --git a/frontend/src/app/modules/common/option-list/option-list.component.ts b/frontend/src/app/shared/components/option-list/option-list.component.ts
similarity index 100%
rename from frontend/src/app/modules/common/option-list/option-list.component.ts
rename to frontend/src/app/shared/components/option-list/option-list.component.ts
diff --git a/frontend/src/app/modules/common/option-list/option-list.sass b/frontend/src/app/shared/components/option-list/option-list.sass
similarity index 100%
rename from frontend/src/app/modules/common/option-list/option-list.sass
rename to frontend/src/app/shared/components/option-list/option-list.sass
diff --git a/frontend/src/app/modules/common/persistent-toggle/persistent-toggle.component.ts b/frontend/src/app/shared/components/persistent-toggle/persistent-toggle.component.ts
similarity index 100%
rename from frontend/src/app/modules/common/persistent-toggle/persistent-toggle.component.ts
rename to frontend/src/app/shared/components/persistent-toggle/persistent-toggle.component.ts
diff --git a/frontend/src/app/modules/principal/principal-helper.ts b/frontend/src/app/shared/components/principal/principal-helper.ts
similarity index 100%
rename from frontend/src/app/modules/principal/principal-helper.ts
rename to frontend/src/app/shared/components/principal/principal-helper.ts
diff --git a/frontend/src/app/modules/principal/principal-renderer.service.ts b/frontend/src/app/shared/components/principal/principal-renderer.service.ts
similarity index 93%
rename from frontend/src/app/modules/principal/principal-renderer.service.ts
rename to frontend/src/app/shared/components/principal/principal-renderer.service.ts
index 6725360ea08..d63572a7dab 100644
--- a/frontend/src/app/modules/principal/principal-renderer.service.ts
+++ b/frontend/src/app/shared/components/principal/principal-renderer.service.ts
@@ -1,12 +1,12 @@
import { Injectable } from "@angular/core";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { ColorsService } from "core-app/modules/common/colors/colors.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { ColorsService } from "core-app/shared/components/colors/colors.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { PrincipalLike } from "./principal-types";
import { PrincipalHelper } from "./principal-helper";
import PrincipalType = PrincipalHelper.PrincipalType;
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export type AvatarSize = 'default'|'medium'|'mini';
diff --git a/frontend/src/app/modules/principal/principal-rendering.module.ts b/frontend/src/app/shared/components/principal/principal-rendering.module.ts
similarity index 100%
rename from frontend/src/app/modules/principal/principal-rendering.module.ts
rename to frontend/src/app/shared/components/principal/principal-rendering.module.ts
diff --git a/frontend/src/app/shared/components/principal/principal-types.ts b/frontend/src/app/shared/components/principal/principal-types.ts
new file mode 100644
index 00000000000..e5ef8c676e2
--- /dev/null
+++ b/frontend/src/app/shared/components/principal/principal-types.ts
@@ -0,0 +1,9 @@
+import {UserResource} from "core-app/features/hal/resources/user-resource";
+import {PlaceholderUserResource} from "core-app/features/hal/resources/placeholder-user-resource";
+import {GroupResource} from "core-app/features/hal/resources/group-resource";
+
+export type PrincipalLike = UserResource|PlaceholderUserResource|GroupResource|{ id?:string, name:string, href?:string };
+export interface PrincipalData {
+ principal: PrincipalLike|null;
+ customFields: {[key:string]: any},
+}
diff --git a/frontend/src/app/modules/principal/principal.component.ts b/frontend/src/app/shared/components/principal/principal.component.ts
similarity index 91%
rename from frontend/src/app/modules/principal/principal.component.ts
rename to frontend/src/app/shared/components/principal/principal.component.ts
index 7813640686b..d0e5c6e00ac 100644
--- a/frontend/src/app/modules/principal/principal.component.ts
+++ b/frontend/src/app/shared/components/principal/principal.component.ts
@@ -27,15 +27,15 @@
//++
import { Component, ElementRef, Input, OnInit } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
-import { TimezoneService } from 'core-components/datetime/timezone.service';
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { AvatarSize, PrincipalRendererService } from "./principal-renderer.service";
import { PrincipalLike } from "./principal-types";
import { PrincipalHelper } from "./principal-helper";
import PrincipalPluralType = PrincipalHelper.PrincipalPluralType;
+import { TimezoneService } from "core-app/core/datetime/timezone.service";
export const principalSelector = 'op-principal';
diff --git a/frontend/src/app/modules/common/remote-field-updater/remote-field-updater.component.ts b/frontend/src/app/shared/components/remote-field-updater/remote-field-updater.component.ts
similarity index 98%
rename from frontend/src/app/modules/common/remote-field-updater/remote-field-updater.component.ts
rename to frontend/src/app/shared/components/remote-field-updater/remote-field-updater.component.ts
index 5ee1d55d70b..da767eb97c9 100644
--- a/frontend/src/app/modules/common/remote-field-updater/remote-field-updater.component.ts
+++ b/frontend/src/app/shared/components/remote-field-updater/remote-field-updater.component.ts
@@ -27,7 +27,7 @@
//++
import { Component, ElementRef, OnInit } from '@angular/core';
-import { keyCodes } from 'core-app/modules/common/keyCodes.enum';
+import { keyCodes } from 'core-app/shared/helpers/keyCodes.enum';
import { HttpClient } from '@angular/common/http';
export const remoteFieldUpdaterSelector = 'remote-field-updater';
diff --git a/frontend/src/app/modules/common/resizer/resizer.component.html b/frontend/src/app/shared/components/resizer/resizer.component.html
similarity index 100%
rename from frontend/src/app/modules/common/resizer/resizer.component.html
rename to frontend/src/app/shared/components/resizer/resizer.component.html
diff --git a/frontend/src/app/modules/common/resizer/resizer.component.ts b/frontend/src/app/shared/components/resizer/resizer.component.ts
similarity index 97%
rename from frontend/src/app/modules/common/resizer/resizer.component.ts
rename to frontend/src/app/shared/components/resizer/resizer.component.ts
index a7a3285952f..6a163c05da4 100644
--- a/frontend/src/app/modules/common/resizer/resizer.component.ts
+++ b/frontend/src/app/shared/components/resizer/resizer.component.ts
@@ -1,5 +1,5 @@
import { Component, EventEmitter, HostListener, Input, OnDestroy, Output } from "@angular/core";
-import { DomHelpers } from "core-app/helpers/dom/set-window-cursor.helper";
+import { DomHelpers } from "core-app/shared/helpers/dom/set-window-cursor.helper";
export interface ResizeDelta {
diff --git a/frontend/src/app/components/resizer/main-menu-resizer.component.ts b/frontend/src/app/shared/components/resizer/resizer/main-menu-resizer.component.ts
similarity index 92%
rename from frontend/src/app/components/resizer/main-menu-resizer.component.ts
rename to frontend/src/app/shared/components/resizer/resizer/main-menu-resizer.component.ts
index 11f52f0f24d..989a8607a5d 100644
--- a/frontend/src/app/components/resizer/main-menu-resizer.component.ts
+++ b/frontend/src/app/shared/components/resizer/resizer/main-menu-resizer.component.ts
@@ -28,9 +28,9 @@
import { ChangeDetectorRef, Component, ElementRef, OnInit } from '@angular/core';
import { distinctUntilChanged } from 'rxjs/operators';
-import { ResizeDelta } from "core-app/modules/common/resizer/resizer.component";
-import { MainMenuToggleService } from "core-components/main-menu/main-menu-toggle.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { ResizeDelta } from "core-app/shared/components/resizer/resizer.component";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { MainMenuToggleService } from "core-app/core/main-menu/main-menu-toggle.service";
export const mainMenuResizerSelector = 'main-menu-resizer';
diff --git a/frontend/src/app/components/resizer/wp-resizer.component.ts b/frontend/src/app/shared/components/resizer/resizer/wp-resizer.component.ts
similarity index 95%
rename from frontend/src/app/components/resizer/wp-resizer.component.ts
rename to frontend/src/app/shared/components/resizer/resizer/wp-resizer.component.ts
index e92839ca7b0..23bae76d645 100644
--- a/frontend/src/app/components/resizer/wp-resizer.component.ts
+++ b/frontend/src/app/shared/components/resizer/resizer/wp-resizer.component.ts
@@ -29,11 +29,11 @@
import { AfterViewInit, Component, ElementRef, Input, OnInit, ChangeDetectionStrategy } from '@angular/core';
import { debounceTime, distinctUntilChanged } from 'rxjs/operators';
import { TransitionService } from '@uirouter/core';
-import { MainMenuToggleService } from "core-components/main-menu/main-menu-toggle.service";
-import { BrowserDetector } from "core-app/modules/common/browser/browser-detector.service";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { ResizeDelta } from "core-app/modules/common/resizer/resizer.component";
+import { BrowserDetector } from "core-app/core/browser/browser-detector.service";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { ResizeDelta } from "core-app/shared/components/resizer/resizer.component";
import { fromEvent } from "rxjs";
+import { MainMenuToggleService } from "core-app/core/main-menu/main-menu-toggle.service";
@Component({
selector: 'wp-resizer',
diff --git a/frontend/src/app/modules/common/slide-toggle/slide-toggle.component.html b/frontend/src/app/shared/components/slide-toggle/slide-toggle.component.html
similarity index 100%
rename from frontend/src/app/modules/common/slide-toggle/slide-toggle.component.html
rename to frontend/src/app/shared/components/slide-toggle/slide-toggle.component.html
diff --git a/frontend/src/app/modules/common/slide-toggle/slide-toggle.component.sass b/frontend/src/app/shared/components/slide-toggle/slide-toggle.component.sass
similarity index 100%
rename from frontend/src/app/modules/common/slide-toggle/slide-toggle.component.sass
rename to frontend/src/app/shared/components/slide-toggle/slide-toggle.component.sass
diff --git a/frontend/src/app/modules/common/slide-toggle/slide-toggle.component.spec.ts b/frontend/src/app/shared/components/slide-toggle/slide-toggle.component.spec.ts
similarity index 100%
rename from frontend/src/app/modules/common/slide-toggle/slide-toggle.component.spec.ts
rename to frontend/src/app/shared/components/slide-toggle/slide-toggle.component.spec.ts
diff --git a/frontend/src/app/modules/common/slide-toggle/slide-toggle.component.ts b/frontend/src/app/shared/components/slide-toggle/slide-toggle.component.ts
similarity index 100%
rename from frontend/src/app/modules/common/slide-toggle/slide-toggle.component.ts
rename to frontend/src/app/shared/components/slide-toggle/slide-toggle.component.ts
diff --git a/frontend/src/app/components/table-pagination/pagination-instance.ts b/frontend/src/app/shared/components/table-pagination/pagination-instance.ts
similarity index 100%
rename from frontend/src/app/components/table-pagination/pagination-instance.ts
rename to frontend/src/app/shared/components/table-pagination/pagination-instance.ts
diff --git a/frontend/src/app/components/table-pagination/pagination-service.ts b/frontend/src/app/shared/components/table-pagination/pagination-service.ts
similarity index 97%
rename from frontend/src/app/components/table-pagination/pagination-service.ts
rename to frontend/src/app/shared/components/table-pagination/pagination-service.ts
index e7fda9c7633..1d4a8f14f0b 100644
--- a/frontend/src/app/components/table-pagination/pagination-service.ts
+++ b/frontend/src/app/shared/components/table-pagination/pagination-service.ts
@@ -27,7 +27,7 @@
//++
import { Injectable } from '@angular/core';
-import { ConfigurationService } from "core-app/modules/common/config/configuration.service";
+import { ConfigurationService } from "core-app/core/config/configuration.service";
export const DEFAULT_PAGINATION_OPTIONS = {
maxVisiblePageOptions: 6,
diff --git a/frontend/src/app/components/table-pagination/table-pagination.component.html b/frontend/src/app/shared/components/table-pagination/table-pagination.component.html
similarity index 100%
rename from frontend/src/app/components/table-pagination/table-pagination.component.html
rename to frontend/src/app/shared/components/table-pagination/table-pagination.component.html
diff --git a/frontend/src/app/components/table-pagination/table-pagination.component.ts b/frontend/src/app/shared/components/table-pagination/table-pagination.component.ts
similarity index 93%
rename from frontend/src/app/components/table-pagination/table-pagination.component.ts
rename to frontend/src/app/shared/components/table-pagination/table-pagination.component.ts
index dbc2748eada..24e1980a5b0 100644
--- a/frontend/src/app/components/table-pagination/table-pagination.component.ts
+++ b/frontend/src/app/shared/components/table-pagination/table-pagination.component.ts
@@ -26,9 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { PaginationService } from 'core-components/table-pagination/pagination-service';
-import { PaginationInstance } from 'core-components/table-pagination/pagination-instance';
-import { IPaginationOptions } from './pagination-service';
+import { IPaginationOptions, PaginationService } from './pagination-service';
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
@@ -38,8 +36,9 @@ import {
OnInit,
Output
} from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { PaginationInstance } from "core-app/shared/components/table-pagination/pagination-instance";
@Component({
selector: '[tablePagination]',
diff --git a/frontend/src/app/modules/common/tabs/content-tabs/content-tabs.component.sass b/frontend/src/app/shared/components/tabs/content-tabs/content-tabs.component.sass
similarity index 100%
rename from frontend/src/app/modules/common/tabs/content-tabs/content-tabs.component.sass
rename to frontend/src/app/shared/components/tabs/content-tabs/content-tabs.component.sass
diff --git a/frontend/src/app/modules/common/tabs/content-tabs/content-tabs.component.ts b/frontend/src/app/shared/components/tabs/content-tabs/content-tabs.component.ts
similarity index 88%
rename from frontend/src/app/modules/common/tabs/content-tabs/content-tabs.component.ts
rename to frontend/src/app/shared/components/tabs/content-tabs/content-tabs.component.ts
index 96a8b47abed..fc4fa84ca13 100644
--- a/frontend/src/app/modules/common/tabs/content-tabs/content-tabs.component.ts
+++ b/frontend/src/app/shared/components/tabs/content-tabs/content-tabs.component.ts
@@ -31,11 +31,11 @@ import {
ElementRef,
ChangeDetectionStrategy, ChangeDetectorRef,
} from '@angular/core';
-import { GonService } from "core-app/modules/common/gon/gon.service";
+import { GonService } from "core-app/core/gon/gon.service";
import { StateService } from '@uirouter/core';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { ScrollableTabsComponent } from "core-app/modules/common/tabs/scrollable-tabs/scrollable-tabs.component";
-import { TabDefinition } from "core-app/modules/common/tabs/tab.interface";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { ScrollableTabsComponent } from "core-app/shared/components/tabs/scrollable-tabs/scrollable-tabs.component";
+import { TabDefinition } from "core-app/shared/components/tabs/tab.interface";
export const contentTabsSelector = 'content-tabs';
diff --git a/frontend/src/app/modules/common/tabs/openproject-tabs.module.ts b/frontend/src/app/shared/components/tabs/openproject-tabs.module.ts
similarity index 74%
rename from frontend/src/app/modules/common/tabs/openproject-tabs.module.ts
rename to frontend/src/app/shared/components/tabs/openproject-tabs.module.ts
index dbaf3ae8556..02e152145b4 100644
--- a/frontend/src/app/modules/common/tabs/openproject-tabs.module.ts
+++ b/frontend/src/app/shared/components/tabs/openproject-tabs.module.ts
@@ -27,13 +27,13 @@
//++
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
-import { IconModule } from 'core-app/modules/icon/icon.module';
-import { AttributeHelpTextModule } from 'core-app/modules/attribute-help-texts/attribute-help-text.module';
-import { FocusModule } from "core-app/modules/focus/focus.module";
-import { ScrollableTabsComponent } from "core-app/modules/common/tabs/scrollable-tabs/scrollable-tabs.component";
-import { ContentTabsComponent } from "core-app/modules/common/tabs/content-tabs/content-tabs.component";
-import { TabCountComponent } from "core-app/modules/common/tabs/tab-badges/tab-count.component";
import { UIRouterModule } from "@uirouter/angular";
+import { FocusModule } from "core-app/shared/directives/focus/focus.module";
+import { AttributeHelpTextModule } from "core-app/shared/components/attribute-help-texts/attribute-help-text.module";
+import { ContentTabsComponent } from "core-app/shared/components/tabs/content-tabs/content-tabs.component";
+import { ScrollableTabsComponent } from "core-app/shared/components/tabs/scrollable-tabs/scrollable-tabs.component";
+import { TabCountComponent } from "core-app/shared/components/tabs/tab-badges/tab-count.component";
+import { IconModule } from "core-app/shared/components/icon/icon.module";
@NgModule({
imports: [
@@ -53,4 +53,4 @@ import { UIRouterModule } from "@uirouter/angular";
],
})
export class OpenprojectTabsModule {
-}
+}
\ No newline at end of file
diff --git a/frontend/src/app/modules/common/tabs/scrollable-tabs/scrollable-tabs.component.html b/frontend/src/app/shared/components/tabs/scrollable-tabs/scrollable-tabs.component.html
similarity index 100%
rename from frontend/src/app/modules/common/tabs/scrollable-tabs/scrollable-tabs.component.html
rename to frontend/src/app/shared/components/tabs/scrollable-tabs/scrollable-tabs.component.html
diff --git a/frontend/src/app/modules/common/tabs/scrollable-tabs/scrollable-tabs.component.ts b/frontend/src/app/shared/components/tabs/scrollable-tabs/scrollable-tabs.component.ts
similarity index 94%
rename from frontend/src/app/modules/common/tabs/scrollable-tabs/scrollable-tabs.component.ts
rename to frontend/src/app/shared/components/tabs/scrollable-tabs/scrollable-tabs.component.ts
index 8154af0e84f..7191a281087 100644
--- a/frontend/src/app/modules/common/tabs/scrollable-tabs/scrollable-tabs.component.ts
+++ b/frontend/src/app/shared/components/tabs/scrollable-tabs/scrollable-tabs.component.ts
@@ -7,10 +7,9 @@ import {
Input, OnChanges,
Output, SimpleChanges,
ViewChild,
- ViewEncapsulation,
} from "@angular/core";
-import { TabDefinition } from "core-app/modules/common/tabs/tab.interface";
-import { AngularTrackingHelpers } from "core-components/angular/tracking-functions";
+import { TabDefinition } from "core-app/shared/components/tabs/tab.interface";
+import { AngularTrackingHelpers } from "core-app/shared/helpers/angular/tracking-functions";
@Component({
templateUrl: 'scrollable-tabs.component.html',
diff --git a/frontend/src/app/modules/common/tabs/tab-badges/tab-count.component.html b/frontend/src/app/shared/components/tabs/tab-badges/tab-count.component.html
similarity index 90%
rename from frontend/src/app/modules/common/tabs/tab-badges/tab-count.component.html
rename to frontend/src/app/shared/components/tabs/tab-badges/tab-count.component.html
index 12c743b2c49..2ae8de9c78c 100644
--- a/frontend/src/app/modules/common/tabs/tab-badges/tab-count.component.html
+++ b/frontend/src/app/shared/components/tabs/tab-badges/tab-count.component.html
@@ -5,4 +5,4 @@
[textContent]="count"
>
</span>
-</ng-container>
+</ng-container>
\ No newline at end of file
diff --git a/frontend/src/app/modules/common/tabs/tab-badges/tab-count.component.sass b/frontend/src/app/shared/components/tabs/tab-badges/tab-count.component.sass
similarity index 100%
rename from frontend/src/app/modules/common/tabs/tab-badges/tab-count.component.sass
rename to frontend/src/app/shared/components/tabs/tab-badges/tab-count.component.sass
diff --git a/frontend/src/app/modules/common/tabs/tab-badges/tab-count.component.ts b/frontend/src/app/shared/components/tabs/tab-badges/tab-count.component.ts
similarity index 100%
rename from frontend/src/app/modules/common/tabs/tab-badges/tab-count.component.ts
rename to frontend/src/app/shared/components/tabs/tab-badges/tab-count.component.ts
diff --git a/frontend/src/app/modules/common/tabs/tab.interface.ts b/frontend/src/app/shared/components/tabs/tab.interface.ts
similarity index 100%
rename from frontend/src/app/modules/common/tabs/tab.interface.ts
rename to frontend/src/app/shared/components/tabs/tab.interface.ts
diff --git a/frontend/src/app/modules/time_entries/create/create.modal.ts b/frontend/src/app/shared/components/time_entries/create/create.modal.ts
similarity index 73%
rename from frontend/src/app/modules/time_entries/create/create.modal.ts
rename to frontend/src/app/shared/components/time_entries/create/create.modal.ts
index 52d5c06be88..7f649e6aa67 100644
--- a/frontend/src/app/modules/time_entries/create/create.modal.ts
+++ b/frontend/src/app/shared/components/time_entries/create/create.modal.ts
@@ -1,7 +1,7 @@
import { Component, ChangeDetectionStrategy } from "@angular/core";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { TimeEntryResource } from "core-app/modules/hal/resources/time-entry-resource";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { TimeEntryResource } from "core-app/features/hal/resources/time-entry-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { TimeEntryBaseModal } from '../shared/modal/base.modal';
@Component({
diff --git a/frontend/src/app/modules/time_entries/create/create.service.ts b/frontend/src/app/shared/components/time_entries/create/create.service.ts
similarity index 74%
rename from frontend/src/app/modules/time_entries/create/create.service.ts
rename to frontend/src/app/shared/components/time_entries/create/create.service.ts
index 02f84f49a88..6e560b62cc9 100644
--- a/frontend/src/app/modules/time_entries/create/create.service.ts
+++ b/frontend/src/app/shared/components/time_entries/create/create.service.ts
@@ -1,17 +1,17 @@
import { Injectable, Injector } from "@angular/core";
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { HalResourceService } from "app/modules/hal/services/hal-resource.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { TimeEntryResource } from 'core-app/modules/hal/resources/time-entry-resource';
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { take } from 'rxjs/operators';
-import { FormResource } from "core-app/modules/hal/resources/form-resource";
-import { ResourceChangeset } from "core-app/modules/fields/changeset/resource-changeset";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
+import { FormResource } from "core-app/features/hal/resources/form-resource";
+import { ResourceChangeset } from "core-app/shared/components/fields/changeset/resource-changeset";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
import { Moment } from 'moment';
-import { TimeEntryCreateModal } from "core-app/modules/time_entries/create/create.modal";
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { SchemaCacheService } from "core-components/schemas/schema-cache.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { TimeEntryCreateModal } from "core-app/shared/components/time_entries/create/create.modal";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { SchemaCacheService } from "core-app/core/schemas/schema-cache.service";
+import { TimeEntryResource } from "core-app/features/hal/resources/time-entry-resource";
@Injectable()
export class TimeEntryCreateService {
diff --git a/frontend/src/app/modules/time_entries/edit/edit.modal.ts b/frontend/src/app/shared/components/time_entries/edit/edit.modal.ts
similarity index 70%
rename from frontend/src/app/modules/time_entries/edit/edit.modal.ts
rename to frontend/src/app/shared/components/time_entries/edit/edit.modal.ts
index b8874305580..7bc6137b76e 100644
--- a/frontend/src/app/modules/time_entries/edit/edit.modal.ts
+++ b/frontend/src/app/shared/components/time_entries/edit/edit.modal.ts
@@ -1,8 +1,8 @@
import { Component, ChangeDetectionStrategy } from "@angular/core";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { TimeEntryResource } from "core-app/modules/hal/resources/time-entry-resource";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { TimeEntryBaseModal } from "core-app/modules/time_entries/shared/modal/base.modal";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { TimeEntryResource } from "core-app/features/hal/resources/time-entry-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { TimeEntryBaseModal } from "core-app/shared/components/time_entries/shared/modal/base.modal";
@Component({
templateUrl: '../shared/modal/base.modal.html',
diff --git a/frontend/src/app/modules/time_entries/edit/edit.service.ts b/frontend/src/app/shared/components/time_entries/edit/edit.service.ts
similarity index 73%
rename from frontend/src/app/modules/time_entries/edit/edit.service.ts
rename to frontend/src/app/shared/components/time_entries/edit/edit.service.ts
index 2002d89c797..803eae2fc60 100644
--- a/frontend/src/app/modules/time_entries/edit/edit.service.ts
+++ b/frontend/src/app/shared/components/time_entries/edit/edit.service.ts
@@ -1,13 +1,13 @@
import { Injectable, Injector } from "@angular/core";
-import { OpModalService } from "core-app/modules/modal/modal.service";
-import { HalResourceService } from "app/modules/hal/services/hal-resource.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { TimeEntryResource } from 'core-app/modules/hal/resources/time-entry-resource';
+import { OpModalService } from "core-app/shared/components/modal/modal.service";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { TimeEntryEditModal } from './edit.modal';
import { take } from 'rxjs/operators';
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { ResourceChangeset } from "core-app/modules/fields/changeset/resource-changeset";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { ResourceChangeset } from "core-app/shared/components/fields/changeset/resource-changeset";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { TimeEntryResource } from "core-app/features/hal/resources/time-entry-resource";
@Injectable()
export class TimeEntryEditService {
diff --git a/frontend/src/app/modules/time_entries/edit/trigger-actions-entry.component.ts b/frontend/src/app/shared/components/time_entries/edit/trigger-actions-entry.component.ts
similarity index 78%
rename from frontend/src/app/modules/time_entries/edit/trigger-actions-entry.component.ts
rename to frontend/src/app/shared/components/time_entries/edit/trigger-actions-entry.component.ts
index f199bc4feef..40c40284b48 100644
--- a/frontend/src/app/modules/time_entries/edit/trigger-actions-entry.component.ts
+++ b/frontend/src/app/shared/components/time_entries/edit/trigger-actions-entry.component.ts
@@ -1,11 +1,11 @@
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Injector, OnInit } from "@angular/core";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { TimeEntryEditService } from "core-app/modules/time_entries/edit/edit.service";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { TimeEntryResource } from "core-app/modules/hal/resources/time-entry-resource";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { TimeEntryEditService } from "core-app/shared/components/time_entries/edit/edit.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { TimeEntryResource } from "core-app/features/hal/resources/time-entry-resource";
export const triggerActionsEntryComponentSelector = 'time-entry--trigger-actions-entry';
diff --git a/frontend/src/app/modules/time_entries/form/form.component.html b/frontend/src/app/shared/components/time_entries/form/form.component.html
similarity index 100%
rename from frontend/src/app/modules/time_entries/form/form.component.html
rename to frontend/src/app/shared/components/time_entries/form/form.component.html
diff --git a/frontend/src/app/modules/time_entries/form/form.component.ts b/frontend/src/app/shared/components/time_entries/form/form.component.ts
similarity index 81%
rename from frontend/src/app/modules/time_entries/form/form.component.ts
rename to frontend/src/app/shared/components/time_entries/form/form.component.ts
index 6d368376e11..3d9457720ea 100644
--- a/frontend/src/app/modules/time_entries/form/form.component.ts
+++ b/frontend/src/app/shared/components/time_entries/form/form.component.ts
@@ -1,6 +1,6 @@
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
-import { TimeEntryResource } from "core-app/modules/hal/resources/time-entry-resource";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
+import { TimeEntryResource } from "core-app/features/hal/resources/time-entry-resource";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
@@ -13,10 +13,10 @@ import {
ViewChild,
ViewEncapsulation
} from '@angular/core';
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { EditFormComponent } from 'core-app/modules/fields/edit/edit-form/edit-form.component';
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
-import { ResourceChangeset } from "core-app/modules/fields/changeset/resource-changeset";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { EditFormComponent } from 'core-app/shared/components/fields/edit/edit-form/edit-form.component';
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
+import { ResourceChangeset } from "core-app/shared/components/fields/changeset/resource-changeset";
@Component({
templateUrl: './form.component.html',
diff --git a/frontend/src/app/modules/time_entries/openproject-time-entries.module.ts b/frontend/src/app/shared/components/time_entries/openproject-time-entries.module.ts
similarity index 64%
rename from frontend/src/app/modules/time_entries/openproject-time-entries.module.ts
rename to frontend/src/app/shared/components/time_entries/openproject-time-entries.module.ts
index 3df1d951678..1fb6f093364 100644
--- a/frontend/src/app/modules/time_entries/openproject-time-entries.module.ts
+++ b/frontend/src/app/shared/components/time_entries/openproject-time-entries.module.ts
@@ -27,20 +27,20 @@
//++
import { NgModule } from '@angular/core';
-import { OpenprojectCommonModule } from 'core-app/modules/common/openproject-common.module';
-import { OpenprojectModalModule } from "core-app/modules/modal/modal.module";
-import { OpenprojectFieldsModule } from "core-app/modules/fields/openproject-fields.module";
-import { TimeEntryCreateModal } from "core-app/modules/time_entries/create/create.modal";
-import { TimeEntryEditModal } from "core-app/modules/time_entries/edit/edit.modal";
-import { TimeEntryFormComponent } from "core-app/modules/time_entries/form/form.component";
-import { TimeEntryEditService } from "core-app/modules/time_entries/edit/edit.service";
-import { TriggerActionsEntryComponent } from "core-app/modules/time_entries/edit/trigger-actions-entry.component";
-import { HalResourceEditingService } from "core-app/modules/fields/edit/services/hal-resource-editing.service";
+import { OPSharedModule } from 'core-app/shared/shared.module';
+import { OpenprojectModalModule } from "core-app/shared/components/modal/modal.module";
+import { OpenprojectFieldsModule } from "core-app/shared/components/fields/openproject-fields.module";
+import { TimeEntryCreateModal } from "core-app/shared/components/time_entries/create/create.modal";
+import { TimeEntryEditModal } from "core-app/shared/components/time_entries/edit/edit.modal";
+import { TimeEntryFormComponent } from "core-app/shared/components/time_entries/form/form.component";
+import { TimeEntryEditService } from "core-app/shared/components/time_entries/edit/edit.service";
+import { TriggerActionsEntryComponent } from "core-app/shared/components/time_entries/edit/trigger-actions-entry.component";
+import { HalResourceEditingService } from "core-app/shared/components/fields/edit/services/hal-resource-editing.service";
@NgModule({
imports: [
// Commons
- OpenprojectCommonModule,
+ OPSharedModule,
OpenprojectModalModule,
// Editable fields e.g. for modals
diff --git a/frontend/src/app/modules/time_entries/shared/modal/base.modal.html b/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.html
similarity index 100%
rename from frontend/src/app/modules/time_entries/shared/modal/base.modal.html
rename to frontend/src/app/shared/components/time_entries/shared/modal/base.modal.html
diff --git a/frontend/src/app/modules/time_entries/shared/modal/base.modal.sass b/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.sass
similarity index 100%
rename from frontend/src/app/modules/time_entries/shared/modal/base.modal.sass
rename to frontend/src/app/shared/components/time_entries/shared/modal/base.modal.sass
diff --git a/frontend/src/app/modules/time_entries/shared/modal/base.modal.ts b/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.ts
similarity index 76%
rename from frontend/src/app/modules/time_entries/shared/modal/base.modal.ts
rename to frontend/src/app/shared/components/time_entries/shared/modal/base.modal.ts
index 7ed233d4502..414a33d3268 100644
--- a/frontend/src/app/modules/time_entries/shared/modal/base.modal.ts
+++ b/frontend/src/app/shared/components/time_entries/shared/modal/base.modal.ts
@@ -1,12 +1,12 @@
import { ElementRef, Inject, ChangeDetectorRef, ViewChild, Directive, Injector } from "@angular/core";
-import { OpModalComponent } from "core-app/modules/modal/modal.component";
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { OpModalLocalsMap } from "core-app/modules/modal/modal.types";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { TimeEntryFormComponent } from "core-app/modules/time_entries/form/form.component";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
-import { InjectField } from 'core-app/helpers/angular/inject-field.decorator';
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { OpModalComponent } from "core-app/shared/components/modal/modal.component";
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { OpModalLocalsMap } from "core-app/shared/components/modal/modal.types";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { TimeEntryFormComponent } from "core-app/shared/components/time_entries/form/form.component";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { InjectField } from 'core-app/shared/helpers/angular/inject-field.decorator';
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
@Directive()
export abstract class TimeEntryBaseModal extends OpModalComponent {
diff --git a/frontend/src/app/components/user/user-link/user-link.component.spec.ts b/frontend/src/app/shared/components/user-link/user-link.component.spec.ts
similarity index 93%
rename from frontend/src/app/components/user/user-link/user-link.component.spec.ts
rename to frontend/src/app/shared/components/user-link/user-link.component.spec.ts
index 622bc466875..a220cfd426d 100644
--- a/frontend/src/app/components/user/user-link/user-link.component.spec.ts
+++ b/frontend/src/app/shared/components/user-link/user-link.component.spec.ts
@@ -29,9 +29,9 @@
import { UserLinkComponent } from './user-link.component';
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { UserResource } from '../../../modules/hal/resources/user-resource';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';
+import { UserResource } from "core-app/features/hal/resources/user-resource";
describe('UserLinkComponent component test', () => {
const PathHelperStub = {
diff --git a/frontend/src/app/components/user/user-link/user-link.component.ts b/frontend/src/app/shared/components/user-link/user-link.component.ts
similarity index 92%
rename from frontend/src/app/components/user/user-link/user-link.component.ts
rename to frontend/src/app/shared/components/user-link/user-link.component.ts
index 423b8969dbf..4520fb1bd18 100644
--- a/frontend/src/app/components/user/user-link/user-link.component.ts
+++ b/frontend/src/app/shared/components/user-link/user-link.component.ts
@@ -27,8 +27,8 @@
//++
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
-import { UserResource } from 'core-app/modules/hal/resources/user-resource';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
+import { UserResource } from "core-app/features/hal/resources/user-resource";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
@Component({
selector: 'user-link',
diff --git a/frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/abstract-query-spaced-tab.component.ts b/frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/abstract-query-spaced-tab.component.ts
similarity index 58%
rename from frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/abstract-query-spaced-tab.component.ts
rename to frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/abstract-query-spaced-tab.component.ts
index 88547ac9fa3..570406dd861 100644
--- a/frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/abstract-query-spaced-tab.component.ts
+++ b/frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/abstract-query-spaced-tab.component.ts
@@ -1,7 +1,7 @@
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { WorkPackageStatesInitializationService } from "core-components/wp-list/wp-states-initialization.service";
-import { WpGraphConfigurationService } from "core-app/modules/work-package-graphs/configuration/wp-graph-configuration.service";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { WorkPackageStatesInitializationService } from "core-app/features/work-packages/components/wp-list/wp-states-initialization.service";
+import { WpGraphConfigurationService } from "core-app/shared/components/work-package-graphs/configuration/wp-graph-configuration.service";
export abstract class QuerySpacedTabComponent {
constructor(readonly I18n:I18nService,
diff --git a/frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/filters-tab-inner.component.html b/frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/filters-tab-inner.component.html
similarity index 100%
rename from frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/filters-tab-inner.component.html
rename to frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/filters-tab-inner.component.html
diff --git a/frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/filters-tab-inner.component.ts b/frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/filters-tab-inner.component.ts
similarity index 56%
rename from frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/filters-tab-inner.component.ts
rename to frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/filters-tab-inner.component.ts
index fdf7306f268..c04bf8bf258 100644
--- a/frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/filters-tab-inner.component.ts
+++ b/frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/filters-tab-inner.component.ts
@@ -1,12 +1,12 @@
import { Component } from '@angular/core';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { TabComponent } from 'core-components/wp-table/configuration-modal/tab-portal-outlet';
-import { WorkPackageFiltersService } from 'core-components/filters/wp-filters/wp-filters.service';
-import { WorkPackageViewFiltersService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service';
-import { QueryFilterInstanceResource } from "core-app/modules/hal/resources/query-filter-instance-resource";
-import { WpGraphConfigurationService } from "core-app/modules/work-package-graphs/configuration/wp-graph-configuration.service";
-import { WorkPackageStatesInitializationService } from "core-components/wp-list/wp-states-initialization.service";
-import { QuerySpacedTabComponent } from "core-app/modules/work-package-graphs/configuration-modal/tabs/abstract-query-spaced-tab.component";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { TabComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet';
+import { WorkPackageViewFiltersService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-filters.service';
+import { QueryFilterInstanceResource } from "core-app/features/hal/resources/query-filter-instance-resource";
+import { WpGraphConfigurationService } from "core-app/shared/components/work-package-graphs/configuration/wp-graph-configuration.service";
+import { WorkPackageStatesInitializationService } from "core-app/features/work-packages/components/wp-list/wp-states-initialization.service";
+import { QuerySpacedTabComponent } from "core-app/shared/components/work-package-graphs/configuration-modal/tabs/abstract-query-spaced-tab.component";
+import { WorkPackageFiltersService } from "core-app/features/work-packages/components/filters/wp-filters/wp-filters.service";
@Component({
selector: 'filters-tab-inner',
diff --git a/frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/filters-tab.component.html b/frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/filters-tab.component.html
similarity index 100%
rename from frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/filters-tab.component.html
rename to frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/filters-tab.component.html
diff --git a/frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/filters-tab.component.ts b/frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/filters-tab.component.ts
similarity index 71%
rename from frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/filters-tab.component.ts
rename to frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/filters-tab.component.ts
index c64be7bc838..ee02684cf32 100644
--- a/frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/filters-tab.component.ts
+++ b/frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/filters-tab.component.ts
@@ -1,5 +1,5 @@
import { Component, ViewChild } from '@angular/core';
-import { TabComponent } from 'core-components/wp-table/configuration-modal/tab-portal-outlet';
+import { TabComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet';
@Component({
templateUrl: './filters-tab.component.html'
diff --git a/frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/settings-tab-inner.component.html b/frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/settings-tab-inner.component.html
similarity index 100%
rename from frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/settings-tab-inner.component.html
rename to frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/settings-tab-inner.component.html
diff --git a/frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/settings-tab-inner.component.ts b/frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/settings-tab-inner.component.ts
similarity index 78%
rename from frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/settings-tab-inner.component.ts
rename to frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/settings-tab-inner.component.ts
index d084ee443c6..223ffc5d3f0 100644
--- a/frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/settings-tab-inner.component.ts
+++ b/frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/settings-tab-inner.component.ts
@@ -1,13 +1,13 @@
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { WorkPackageViewGroupByService } from 'core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-group-by.service';
-import { QueryGroupByResource } from 'core-app/modules/hal/resources/query-group-by-resource';
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WorkPackageViewGroupByService } from 'core-app/features/work-packages/routing/wp-view-base/view-services/wp-view-group-by.service';
import { Component } from "@angular/core";
import { ChartType } from 'chart.js';
-import { WpGraphConfigurationService } from "core-app/modules/work-package-graphs/configuration/wp-graph-configuration.service";
-import { WorkPackageStatesInitializationService } from "core-components/wp-list/wp-states-initialization.service";
-import { TabComponent } from "core-components/wp-table/configuration-modal/tab-portal-outlet";
-import { QuerySpacedTabComponent } from "core-app/modules/work-package-graphs/configuration-modal/tabs/abstract-query-spaced-tab.component";
+import { WpGraphConfigurationService } from "core-app/shared/components/work-package-graphs/configuration/wp-graph-configuration.service";
+import { WorkPackageStatesInitializationService } from "core-app/features/work-packages/components/wp-list/wp-states-initialization.service";
+import { TabComponent } from "core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet";
+import { QuerySpacedTabComponent } from "core-app/shared/components/work-package-graphs/configuration-modal/tabs/abstract-query-spaced-tab.component";
+import { QueryGroupByResource } from "core-app/features/hal/resources/query-group-by-resource";
interface OpChartType {
identifier:ChartType;
diff --git a/frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/settings-tab.component.html b/frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/settings-tab.component.html
similarity index 100%
rename from frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/settings-tab.component.html
rename to frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/settings-tab.component.html
diff --git a/frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/settings-tab.component.ts b/frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/settings-tab.component.ts
similarity index 71%
rename from frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/settings-tab.component.ts
rename to frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/settings-tab.component.ts
index e64c35b6294..ce83bae8f89 100644
--- a/frontend/src/app/modules/work-package-graphs/configuration-modal/tabs/settings-tab.component.ts
+++ b/frontend/src/app/shared/components/work-package-graphs/configuration-modal/tabs/settings-tab.component.ts
@@ -1,4 +1,4 @@
-import { TabComponent } from 'core-components/wp-table/configuration-modal/tab-portal-outlet';
+import { TabComponent } from 'core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet';
import { Component, ViewChild } from "@angular/core";
@Component({
diff --git a/frontend/src/app/modules/work-package-graphs/configuration-modal/wp-graph-configuration.modal.ts b/frontend/src/app/shared/components/work-package-graphs/configuration-modal/wp-graph-configuration.modal.ts
similarity index 76%
rename from frontend/src/app/modules/work-package-graphs/configuration-modal/wp-graph-configuration.modal.ts
rename to frontend/src/app/shared/components/work-package-graphs/configuration-modal/wp-graph-configuration.modal.ts
index 0d7076a69fd..f4ff9dbb81b 100644
--- a/frontend/src/app/modules/work-package-graphs/configuration-modal/wp-graph-configuration.modal.ts
+++ b/frontend/src/app/shared/components/work-package-graphs/configuration-modal/wp-graph-configuration.modal.ts
@@ -11,29 +11,30 @@ import {
OnDestroy,
OnInit,
Optional,
- ViewChild
+ ViewChild,
} from '@angular/core';
-import { OpModalLocalsMap } from 'core-app/modules/modal/modal.types';
-import { OpModalComponent } from 'core-app/modules/modal/modal.component';
-import { OpModalLocalsToken } from "core-app/modules/modal/modal.service";
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
+import { OpModalLocalsMap } from 'core-app/shared/components/modal/modal.types';
+import { OpModalComponent } from 'core-app/shared/components/modal/modal.component';
+import { OpModalLocalsToken } from "core-app/shared/components/modal/modal.service";
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
import {
ActiveTabInterface,
TabComponent,
TabInterface,
TabPortalOutlet
-} from 'core-components/wp-table/configuration-modal/tab-portal-outlet';
-import { LoadingIndicatorService } from 'core-app/modules/common/loading-indicator/loading-indicator.service';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+} from 'core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet';
+import { LoadingIndicatorService } from 'core-app/core/loading-indicator/loading-indicator.service';
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { ComponentType } from "@angular/cdk/portal";
-import { WpGraphConfigurationService } from "core-app/modules/work-package-graphs/configuration/wp-graph-configuration.service";
-import { WpGraphConfiguration } from "core-app/modules/work-package-graphs/configuration/wp-graph-configuration";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
+import { WpGraphConfigurationService } from "core-app/shared/components/work-package-graphs/configuration/wp-graph-configuration.service";
+import { WpGraphConfiguration } from "core-app/shared/components/work-package-graphs/configuration/wp-graph-configuration";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+
export const WpTableConfigurationModalPrependToken = new InjectionToken<ComponentType<any>>('WpTableConfigurationModalPrependComponent');
@Component({
- templateUrl: '../../../components/wp-table/configuration-modal/wp-table-configuration.modal.html',
+ templateUrl: '../../../../features/work-packages/components/wp-table/configuration-modal/wp-table-configuration.modal.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class WpGraphConfigurationModalComponent extends OpModalComponent implements OnInit, OnDestroy {
diff --git a/frontend/src/app/modules/work-package-graphs/configuration/wp-graph-configuration.service.ts b/frontend/src/app/shared/components/work-package-graphs/configuration/wp-graph-configuration.service.ts
similarity index 80%
rename from frontend/src/app/modules/work-package-graphs/configuration/wp-graph-configuration.service.ts
rename to frontend/src/app/shared/components/work-package-graphs/configuration/wp-graph-configuration.service.ts
index 04c0d0154f8..aab3d86d7c7 100644
--- a/frontend/src/app/modules/work-package-graphs/configuration/wp-graph-configuration.service.ts
+++ b/frontend/src/app/shared/components/work-package-graphs/configuration/wp-graph-configuration.service.ts
@@ -1,20 +1,19 @@
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
-import { WpGraphConfigurationSettingsTab } from "core-app/modules/work-package-graphs/configuration-modal/tabs/settings-tab.component";
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
-import { TabInterface } from "core-components/wp-table/configuration-modal/tab-portal-outlet";
+import { I18nService } from 'core-app/core/i18n/i18n.service';
+import { WpGraphConfigurationSettingsTab } from "core-app/shared/components/work-package-graphs/configuration-modal/tabs/settings-tab.component";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
+import { TabInterface } from "core-app/features/work-packages/components/wp-table/configuration-modal/tab-portal-outlet";
import { Injectable } from '@angular/core';
-import { WpGraphConfigurationFiltersTab } from "core-app/modules/work-package-graphs/configuration-modal/tabs/filters-tab.component";
+import { WpGraphConfigurationFiltersTab } from "core-app/shared/components/work-package-graphs/configuration-modal/tabs/filters-tab.component";
import { ChartOptions, ChartType } from 'chart.js';
-import { QueryFormResource } from "core-app/modules/hal/resources/query-form-resource";
+import { QueryFormResource } from "core-app/features/hal/resources/query-form-resource";
import {
WpGraphConfiguration,
WpGraphQueryParams
-} from "core-app/modules/work-package-graphs/configuration/wp-graph-configuration";
-import { CurrentProjectService } from "core-components/projects/current-project.service";
-import { WorkPackageNotificationService } from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
-import { FormResource } from "core-app/modules/hal/resources/form-resource";
-import { WorkPackageEmbeddedGraphDataset } from "core-app/modules/work-package-graphs/embedded/wp-embedded-graph.component";
+} from "core-app/shared/components/work-package-graphs/configuration/wp-graph-configuration";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
+import { WorkPackageNotificationService } from "core-app/features/work-packages/services/notifications/work-package-notification.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
+import { WorkPackageEmbeddedGraphDataset } from "core-app/shared/components/work-package-graphs/embedded/wp-embedded-graph.component";
@Injectable()
export class WpGraphConfigurationService {
diff --git a/frontend/src/app/modules/work-package-graphs/configuration/wp-graph-configuration.ts b/frontend/src/app/shared/components/work-package-graphs/configuration/wp-graph-configuration.ts
similarity index 86%
rename from frontend/src/app/modules/work-package-graphs/configuration/wp-graph-configuration.ts
rename to frontend/src/app/shared/components/work-package-graphs/configuration/wp-graph-configuration.ts
index 449c65b5f9c..60f2c64be10 100644
--- a/frontend/src/app/modules/work-package-graphs/configuration/wp-graph-configuration.ts
+++ b/frontend/src/app/shared/components/work-package-graphs/configuration/wp-graph-configuration.ts
@@ -1,6 +1,6 @@
-import { QueryResource } from "core-app/modules/hal/resources/query-resource";
+import { QueryResource } from "core-app/features/hal/resources/query-resource";
import { ChartType, ChartOptions } from 'chart.js';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
export interface WpGraphQueryParams {
id?:string;
diff --git a/frontend/src/app/modules/work-package-graphs/embedded/wp-embedded-graph.component.sass b/frontend/src/app/shared/components/work-package-graphs/embedded/wp-embedded-graph.component.sass
similarity index 100%
rename from frontend/src/app/modules/work-package-graphs/embedded/wp-embedded-graph.component.sass
rename to frontend/src/app/shared/components/work-package-graphs/embedded/wp-embedded-graph.component.sass
diff --git a/frontend/src/app/modules/work-package-graphs/embedded/wp-embedded-graph.component.ts b/frontend/src/app/shared/components/work-package-graphs/embedded/wp-embedded-graph.component.ts
similarity index 94%
rename from frontend/src/app/modules/work-package-graphs/embedded/wp-embedded-graph.component.ts
rename to frontend/src/app/shared/components/work-package-graphs/embedded/wp-embedded-graph.component.ts
index 67acee90a06..1af31fc2c24 100644
--- a/frontend/src/app/modules/work-package-graphs/embedded/wp-embedded-graph.component.ts
+++ b/frontend/src/app/shared/components/work-package-graphs/embedded/wp-embedded-graph.component.ts
@@ -1,8 +1,8 @@
import { Component, Input, SimpleChanges } from '@angular/core';
-import { WorkPackageTableConfiguration } from 'core-components/wp-table/wp-table-configuration';
-import { GroupObject } from 'core-app/modules/hal/resources/wp-collection-resource';
+import { WorkPackageTableConfiguration } from 'core-app/features/work-packages/components/wp-table/wp-table-configuration';
import { ChartOptions, ChartType } from 'chart.js';
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { GroupObject } from "core-app/features/hal/resources/wp-collection-resource";
export interface WorkPackageEmbeddedGraphDataset {
label:string;
diff --git a/frontend/src/app/modules/work-package-graphs/embedded/wp-embedded-graph.html b/frontend/src/app/shared/components/work-package-graphs/embedded/wp-embedded-graph.html
similarity index 100%
rename from frontend/src/app/modules/work-package-graphs/embedded/wp-embedded-graph.html
rename to frontend/src/app/shared/components/work-package-graphs/embedded/wp-embedded-graph.html
diff --git a/frontend/src/app/modules/work-package-graphs/openproject-work-package-graphs.module.ts b/frontend/src/app/shared/components/work-package-graphs/openproject-work-package-graphs.module.ts
similarity index 64%
rename from frontend/src/app/modules/work-package-graphs/openproject-work-package-graphs.module.ts
rename to frontend/src/app/shared/components/work-package-graphs/openproject-work-package-graphs.module.ts
index b33c4a52545..9e48bb05de7 100644
--- a/frontend/src/app/modules/work-package-graphs/openproject-work-package-graphs.module.ts
+++ b/frontend/src/app/shared/components/work-package-graphs/openproject-work-package-graphs.module.ts
@@ -27,30 +27,30 @@
//++
import { NgModule } from '@angular/core';
-import { OpenprojectCommonModule } from 'core-app/modules/common/openproject-common.module';
-import { OpenprojectModalModule } from "core-app/modules/modal/modal.module";
-import { OpenprojectWorkPackagesModule } from "core-app/modules/work_packages/openproject-work-packages.module";
-import { WpGraphConfigurationModalComponent } from "core-app/modules/work-package-graphs/configuration-modal/wp-graph-configuration.modal";
-import { WpGraphConfigurationFiltersTab } from "core-app/modules/work-package-graphs/configuration-modal/tabs/filters-tab.component";
-import { WpGraphConfigurationSettingsTab } from "core-app/modules/work-package-graphs/configuration-modal/tabs/settings-tab.component";
-import { WpGraphConfigurationFiltersTabInner } from "core-app/modules/work-package-graphs/configuration-modal/tabs/filters-tab-inner.component";
-import { WpGraphConfigurationSettingsTabInner } from "core-app/modules/work-package-graphs/configuration-modal/tabs/settings-tab-inner.component";
-import { WorkPackageEmbeddedGraphComponent } from "core-app/modules/work-package-graphs/embedded/wp-embedded-graph.component";
-import { WorkPackageOverviewGraphComponent } from "core-app/modules/work-package-graphs/overview/wp-overview-graph.component";
+import { OPSharedModule } from 'core-app/shared/shared.module';
+import { OpenprojectModalModule } from "core-app/shared/components/modal/modal.module";
+import { OpenprojectWorkPackagesModule } from "core-app/features/work-packages/openproject-work-packages.module";
+import { WpGraphConfigurationModalComponent } from "core-app/shared/components/work-package-graphs/configuration-modal/wp-graph-configuration.modal";
+import { WpGraphConfigurationFiltersTab } from "core-app/shared/components/work-package-graphs/configuration-modal/tabs/filters-tab.component";
+import { WpGraphConfigurationSettingsTab } from "core-app/shared/components/work-package-graphs/configuration-modal/tabs/settings-tab.component";
+import { WpGraphConfigurationFiltersTabInner } from "core-app/shared/components/work-package-graphs/configuration-modal/tabs/filters-tab-inner.component";
+import { WpGraphConfigurationSettingsTabInner } from "core-app/shared/components/work-package-graphs/configuration-modal/tabs/settings-tab-inner.component";
+import { WorkPackageEmbeddedGraphComponent } from "core-app/shared/components/work-package-graphs/embedded/wp-embedded-graph.component";
+import { WorkPackageOverviewGraphComponent } from "core-app/shared/components/work-package-graphs/overview/wp-overview-graph.component";
import { ChartsModule } from 'ng2-charts';
import * as ChartDataLabels from 'chartjs-plugin-datalabels';
-import { OpenprojectTabsModule } from "core-app/modules/common/tabs/openproject-tabs.module";
+import { OpenprojectTabsModule } from "core-app/shared/components/tabs/openproject-tabs.module";
@NgModule({
imports: [
// Commons
- OpenprojectCommonModule,
+ OPSharedModule,
OpenprojectModalModule,
OpenprojectWorkPackagesModule,
- OpenprojectTabsModule,
ChartsModule,
+ OpenprojectTabsModule,
],
declarations: [
// Modals
diff --git a/frontend/src/app/modules/work-package-graphs/overview/wp-overview-graph.component.sass b/frontend/src/app/shared/components/work-package-graphs/overview/wp-overview-graph.component.sass
similarity index 100%
rename from frontend/src/app/modules/work-package-graphs/overview/wp-overview-graph.component.sass
rename to frontend/src/app/shared/components/work-package-graphs/overview/wp-overview-graph.component.sass
diff --git a/frontend/src/app/modules/work-package-graphs/overview/wp-overview-graph.component.ts b/frontend/src/app/shared/components/work-package-graphs/overview/wp-overview-graph.component.ts
similarity index 92%
rename from frontend/src/app/modules/work-package-graphs/overview/wp-overview-graph.component.ts
rename to frontend/src/app/shared/components/work-package-graphs/overview/wp-overview-graph.component.ts
index 6ba03dd84bb..8cceac06dc7 100644
--- a/frontend/src/app/modules/work-package-graphs/overview/wp-overview-graph.component.ts
+++ b/frontend/src/app/shared/components/work-package-graphs/overview/wp-overview-graph.component.ts
@@ -2,14 +2,14 @@ import { Component, ElementRef, Input, OnInit, ViewChild, ChangeDetectorRef, Cha
import {
WorkPackageEmbeddedGraphComponent,
WorkPackageEmbeddedGraphDataset
-} from "core-app/modules/work-package-graphs/embedded/wp-embedded-graph.component";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
+} from "core-app/shared/components/work-package-graphs/embedded/wp-embedded-graph.component";
+import { I18nService } from "core-app/core/i18n/i18n.service";
import { ChartOptions } from 'chart.js';
-import { WpGraphConfigurationService } from "core-app/modules/work-package-graphs/configuration/wp-graph-configuration.service";
+import { WpGraphConfigurationService } from "core-app/shared/components/work-package-graphs/configuration/wp-graph-configuration.service";
import {
WpGraphConfiguration,
WpGraphQueryParams
-} from "core-app/modules/work-package-graphs/configuration/wp-graph-configuration";
+} from "core-app/shared/components/work-package-graphs/configuration/wp-graph-configuration";
export const wpOverviewGraphSelector = 'wp-overview-graph';
diff --git a/frontend/src/app/modules/work-package-graphs/overview/wp-overview-graph.template.html b/frontend/src/app/shared/components/work-package-graphs/overview/wp-overview-graph.template.html
similarity index 100%
rename from frontend/src/app/modules/work-package-graphs/overview/wp-overview-graph.template.html
rename to frontend/src/app/shared/components/work-package-graphs/overview/wp-overview-graph.template.html
diff --git a/frontend/src/app/modules/a11y/accessible-click.directive.spec.ts b/frontend/src/app/shared/directives/a11y/accessible-click.directive.spec.ts
similarity index 97%
rename from frontend/src/app/modules/a11y/accessible-click.directive.spec.ts
rename to frontend/src/app/shared/directives/a11y/accessible-click.directive.spec.ts
index cfffa73ac93..fdd49ac73fd 100644
--- a/frontend/src/app/modules/a11y/accessible-click.directive.spec.ts
+++ b/frontend/src/app/shared/directives/a11y/accessible-click.directive.spec.ts
@@ -30,7 +30,7 @@ import { Component, DebugElement } from "@angular/core";
import { ComponentFixture, fakeAsync, TestBed, tick } from '@angular/core/testing';
import { By } from "@angular/platform-browser";
-import { AccessibleClickDirective } from "core-app/modules/a11y/accessible-click.directive";
+import { AccessibleClickDirective } from "core-app/shared/directives/a11y/accessible-click.directive";
@Component({
template: `<div (accessibleClick)="onClick()">Click me</div>`
diff --git a/frontend/src/app/modules/a11y/accessible-click.directive.ts b/frontend/src/app/shared/directives/a11y/accessible-click.directive.ts
similarity index 97%
rename from frontend/src/app/modules/a11y/accessible-click.directive.ts
rename to frontend/src/app/shared/directives/a11y/accessible-click.directive.ts
index dd060aae19a..2051cc6b881 100644
--- a/frontend/src/app/modules/a11y/accessible-click.directive.ts
+++ b/frontend/src/app/shared/directives/a11y/accessible-click.directive.ts
@@ -27,7 +27,7 @@
//++
import { Directive, EventEmitter, HostListener, Input, Output } from '@angular/core';
-import { LinkHandling } from 'core-app/modules/common/link-handling/link-handling';
+import { LinkHandling } from 'core-app/shared/helpers/link-handling/link-handling';
@Directive({
selector: '[accessibleClick]',
diff --git a/frontend/src/app/modules/a11y/double-click-or-tap.directive.ts b/frontend/src/app/shared/directives/a11y/double-click-or-tap.directive.ts
similarity index 100%
rename from frontend/src/app/modules/a11y/double-click-or-tap.directive.ts
rename to frontend/src/app/shared/directives/a11y/double-click-or-tap.directive.ts
diff --git a/frontend/src/app/modules/a11y/keyboard-shortcut-service.ts b/frontend/src/app/shared/directives/a11y/keyboard-shortcut-service.ts
similarity index 95%
rename from frontend/src/app/modules/a11y/keyboard-shortcut-service.ts
rename to frontend/src/app/shared/directives/a11y/keyboard-shortcut-service.ts
index 738b196d4a7..113e72b7d30 100644
--- a/frontend/src/app/modules/a11y/keyboard-shortcut-service.ts
+++ b/frontend/src/app/shared/directives/a11y/keyboard-shortcut-service.ts
@@ -27,9 +27,9 @@
//++
import { Injectable } from "@angular/core";
-import { FocusHelperService } from "core-app/modules/focus/focus-helper";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { CurrentProjectService } from "core-app/components/projects/current-project.service";
+import { FocusHelperService } from "core-app/shared/directives/focus/focus-helper";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { CurrentProjectService } from "core-app/core/current-project/current-project.service";
const accessKeys = {
diff --git a/frontend/src/app/modules/a11y/openproject-a11y.module.ts b/frontend/src/app/shared/directives/a11y/openproject-a11y.module.ts
similarity index 88%
rename from frontend/src/app/modules/a11y/openproject-a11y.module.ts
rename to frontend/src/app/shared/directives/a11y/openproject-a11y.module.ts
index 411f800eed4..06da8b3ff44 100644
--- a/frontend/src/app/modules/a11y/openproject-a11y.module.ts
+++ b/frontend/src/app/shared/directives/a11y/openproject-a11y.module.ts
@@ -30,8 +30,8 @@
import { NgModule } from "@angular/core";
import { FormsModule } from "@angular/forms";
import { CommonModule } from "@angular/common";
-import { AccessibleClickDirective } from "core-app/modules/a11y/accessible-click.directive";
-import { DoubleClickOrTapDirective } from "core-app/modules/a11y/double-click-or-tap.directive";
+import { AccessibleClickDirective } from "core-app/shared/directives/a11y/accessible-click.directive";
+import { DoubleClickOrTapDirective } from "core-app/shared/directives/a11y/double-click-or-tap.directive";
@NgModule({
imports: [
diff --git a/frontend/src/app/modules/common/autofocus/autofocus.directive.ts b/frontend/src/app/shared/directives/autofocus/autofocus.directive.ts
similarity index 86%
rename from frontend/src/app/modules/common/autofocus/autofocus.directive.ts
rename to frontend/src/app/shared/directives/autofocus/autofocus.directive.ts
index 0615513fda7..52b61100bab 100644
--- a/frontend/src/app/modules/common/autofocus/autofocus.directive.ts
+++ b/frontend/src/app/shared/directives/autofocus/autofocus.directive.ts
@@ -1,5 +1,5 @@
import { AfterContentInit, Directive, ElementRef, Input } from '@angular/core';
-import { FocusHelperService } from "core-app/modules/focus/focus-helper";
+import { FocusHelperService } from "core-app/shared/directives/focus/focus-helper";
@Directive({
selector: '[autoFocus]'
diff --git a/frontend/src/app/modules/focus/contain-helpers.ts b/frontend/src/app/shared/directives/focus/contain-helpers.ts
similarity index 100%
rename from frontend/src/app/modules/focus/contain-helpers.ts
rename to frontend/src/app/shared/directives/focus/contain-helpers.ts
diff --git a/frontend/src/app/modules/focus/focus-helper.ts b/frontend/src/app/shared/directives/focus/focus-helper.ts
similarity index 100%
rename from frontend/src/app/modules/focus/focus-helper.ts
rename to frontend/src/app/shared/directives/focus/focus-helper.ts
diff --git a/frontend/src/app/modules/focus/focus-within.directive.ts b/frontend/src/app/shared/directives/focus/focus-within.directive.ts
similarity index 96%
rename from frontend/src/app/modules/focus/focus-within.directive.ts
rename to frontend/src/app/shared/directives/focus/focus-within.directive.ts
index dc9be3f82d6..865d463cca4 100644
--- a/frontend/src/app/modules/focus/focus-within.directive.ts
+++ b/frontend/src/app/shared/directives/focus/focus-within.directive.ts
@@ -29,7 +29,7 @@
import { BehaviorSubject } from 'rxjs';
import { auditTime } from 'rxjs/operators';
import { Directive, ElementRef, Input, OnInit } from "@angular/core";
-import { UntilDestroyedMixin } from "core-app/helpers/angular/until-destroyed.mixin";
+import { UntilDestroyedMixin } from "core-app/shared/helpers/angular/until-destroyed.mixin";
// with courtesy of http://stackoverflow.com/a/29722694/3206935
diff --git a/frontend/src/app/modules/focus/focus.directive.ts b/frontend/src/app/shared/directives/focus/focus.directive.ts
similarity index 95%
rename from frontend/src/app/modules/focus/focus.directive.ts
rename to frontend/src/app/shared/directives/focus/focus.directive.ts
index e324ea12847..43659afaf28 100644
--- a/frontend/src/app/modules/focus/focus.directive.ts
+++ b/frontend/src/app/shared/directives/focus/focus.directive.ts
@@ -27,7 +27,7 @@
//++
import { AfterViewInit, Directive, ElementRef, Input } from "@angular/core";
-import { FocusHelperService } from "core-app/modules/focus/focus-helper";
+import { FocusHelperService } from "core-app/shared/directives/focus/focus-helper";
@Directive({
selector: '[focus]'
diff --git a/frontend/src/app/modules/focus/focus.module.ts b/frontend/src/app/shared/directives/focus/focus.module.ts
similarity index 100%
rename from frontend/src/app/modules/focus/focus.module.ts
rename to frontend/src/app/shared/directives/focus/focus.module.ts
diff --git a/frontend/src/app/modules/common/highlight-col/highlight-col.directive.ts b/frontend/src/app/shared/directives/highlight-col/highlight-col.directive.ts
similarity index 100%
rename from frontend/src/app/modules/common/highlight-col/highlight-col.directive.ts
rename to frontend/src/app/shared/directives/highlight-col/highlight-col.directive.ts
diff --git a/frontend/src/app/modules/common/ui/op-drag-scroll.directive.ts b/frontend/src/app/shared/directives/op-drag-scroll/op-drag-scroll.directive.ts
similarity index 100%
rename from frontend/src/app/modules/common/ui/op-drag-scroll.directive.ts
rename to frontend/src/app/shared/directives/op-drag-scroll/op-drag-scroll.directive.ts
diff --git a/frontend/src/app/helpers/angular/inject-field.decorator.ts b/frontend/src/app/shared/helpers/angular/inject-field.decorator.ts
similarity index 92%
rename from frontend/src/app/helpers/angular/inject-field.decorator.ts
rename to frontend/src/app/shared/helpers/angular/inject-field.decorator.ts
index 80637b27427..53b7d4af21b 100644
--- a/frontend/src/app/helpers/angular/inject-field.decorator.ts
+++ b/frontend/src/app/shared/helpers/angular/inject-field.decorator.ts
@@ -1,6 +1,6 @@
import "reflect-metadata";
import { InjectFlags,Injector } from "@angular/core";
-import { debugLog } from "core-app/helpers/debug_output";
+import { debugLog } from "core-app/shared/helpers/debug_output";
export interface InjectableClass {
injector:Injector;
diff --git a/frontend/src/app/components/angular/tracking-functions.ts b/frontend/src/app/shared/helpers/angular/tracking-functions.ts
similarity index 95%
rename from frontend/src/app/components/angular/tracking-functions.ts
rename to frontend/src/app/shared/helpers/angular/tracking-functions.ts
index 8f8d5e554c4..7f5652f74bd 100644
--- a/frontend/src/app/components/angular/tracking-functions.ts
+++ b/frontend/src/app/shared/helpers/angular/tracking-functions.ts
@@ -1,4 +1,4 @@
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export namespace AngularTrackingHelpers {
export function halHref<T extends HalResource>(_index:number, item:T):string|null {
@@ -54,4 +54,4 @@ export namespace AngularTrackingHelpers {
const bothNil = !a && !b;
return bothNil || a === b;
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/app/helpers/angular/until-destroyed.mixin.ts b/frontend/src/app/shared/helpers/angular/until-destroyed.mixin.ts
similarity index 100%
rename from frontend/src/app/helpers/angular/until-destroyed.mixin.ts
rename to frontend/src/app/shared/helpers/angular/until-destroyed.mixin.ts
diff --git a/frontend/src/app/components/api/api-v3/api-v3-filter-builder.ts b/frontend/src/app/shared/helpers/api-v3/api-v3-filter-builder.ts
similarity index 100%
rename from frontend/src/app/components/api/api-v3/api-v3-filter-builder.ts
rename to frontend/src/app/shared/helpers/api-v3/api-v3-filter-builder.ts
diff --git a/frontend/src/app/helpers/debug_output.ts b/frontend/src/app/shared/helpers/debug_output.ts
similarity index 94%
rename from frontend/src/app/helpers/debug_output.ts
rename to frontend/src/app/shared/helpers/debug_output.ts
index 3adc277e56e..914c4e0f221 100644
--- a/frontend/src/app/helpers/debug_output.ts
+++ b/frontend/src/app/shared/helpers/debug_output.ts
@@ -1,4 +1,4 @@
-import { environment } from '../../environments/environment';
+import { environment } from '../../../environments/environment';
/**
* Execute the callback when DEBUG is defined
diff --git a/frontend/src/app/helpers/dom/set-window-cursor.helper.ts b/frontend/src/app/shared/helpers/dom/set-window-cursor.helper.ts
similarity index 100%
rename from frontend/src/app/helpers/dom/set-window-cursor.helper.ts
rename to frontend/src/app/shared/helpers/dom/set-window-cursor.helper.ts
diff --git a/frontend/src/app/modules/common/drag-and-drop/dom-autoscroll.service.ts b/frontend/src/app/shared/helpers/drag-and-drop/dom-autoscroll.service.ts
similarity index 100%
rename from frontend/src/app/modules/common/drag-and-drop/dom-autoscroll.service.ts
rename to frontend/src/app/shared/helpers/drag-and-drop/dom-autoscroll.service.ts
diff --git a/frontend/src/app/modules/common/drag-and-drop/drag-and-drop.helpers.ts b/frontend/src/app/shared/helpers/drag-and-drop/drag-and-drop.helpers.ts
similarity index 100%
rename from frontend/src/app/modules/common/drag-and-drop/drag-and-drop.helpers.ts
rename to frontend/src/app/shared/helpers/drag-and-drop/drag-and-drop.helpers.ts
diff --git a/frontend/src/app/modules/common/drag-and-drop/drag-and-drop.service.ts b/frontend/src/app/shared/helpers/drag-and-drop/drag-and-drop.service.ts
similarity index 98%
rename from frontend/src/app/modules/common/drag-and-drop/drag-and-drop.service.ts
rename to frontend/src/app/shared/helpers/drag-and-drop/drag-and-drop.service.ts
index 23ebb0d1dca..36e35da8335 100644
--- a/frontend/src/app/modules/common/drag-and-drop/drag-and-drop.service.ts
+++ b/frontend/src/app/shared/helpers/drag-and-drop/drag-and-drop.service.ts
@@ -1,7 +1,7 @@
import { Inject, Injectable, Injector, OnDestroy } from "@angular/core";
import { DOCUMENT } from "@angular/common";
-import { DomAutoscrollService } from "core-app/modules/common/drag-and-drop/dom-autoscroll.service";
-import { DragAndDropHelpers } from "core-app/modules/common/drag-and-drop/drag-and-drop.helpers";
+import { DomAutoscrollService } from "core-app/shared/helpers/drag-and-drop/dom-autoscroll.service";
+import { DragAndDropHelpers } from "core-app/shared/helpers/drag-and-drop/drag-and-drop.helpers";
export interface DragMember {
dragContainer:HTMLElement;
diff --git a/frontend/src/app/modules/common/drag-and-drop/reorder-delta-builder.spec.ts b/frontend/src/app/shared/helpers/drag-and-drop/reorder-delta-builder.spec.ts
similarity index 98%
rename from frontend/src/app/modules/common/drag-and-drop/reorder-delta-builder.spec.ts
rename to frontend/src/app/shared/helpers/drag-and-drop/reorder-delta-builder.spec.ts
index e8575bbb52a..cd93c08286b 100644
--- a/frontend/src/app/modules/common/drag-and-drop/reorder-delta-builder.spec.ts
+++ b/frontend/src/app/shared/helpers/drag-and-drop/reorder-delta-builder.spec.ts
@@ -30,8 +30,8 @@ import {
DEFAULT_ORDER,
MAX_ORDER,
ReorderDeltaBuilder
-} from "core-app/modules/common/drag-and-drop/reorder-delta-builder";
-import { QueryOrder } from "core-app/modules/apiv3/endpoints/queries/apiv3-query-order";
+} from "core-app/shared/helpers/drag-and-drop/reorder-delta-builder";
+import { QueryOrder } from "core-app/core/apiv3/endpoints/queries/apiv3-query-order";
describe('ReorderDeltaBuilder', () => {
const work_packages:string[] = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10'];
diff --git a/frontend/src/app/modules/common/drag-and-drop/reorder-delta-builder.ts b/frontend/src/app/shared/helpers/drag-and-drop/reorder-delta-builder.ts
similarity index 98%
rename from frontend/src/app/modules/common/drag-and-drop/reorder-delta-builder.ts
rename to frontend/src/app/shared/helpers/drag-and-drop/reorder-delta-builder.ts
index 81a2ee5a051..9f4bfeaa50f 100644
--- a/frontend/src/app/modules/common/drag-and-drop/reorder-delta-builder.ts
+++ b/frontend/src/app/shared/helpers/drag-and-drop/reorder-delta-builder.ts
@@ -1,5 +1,5 @@
-import { debugLog, timeOutput } from "core-app/helpers/debug_output";
-import { QueryOrder } from "core-app/modules/apiv3/endpoints/queries/apiv3-query-order";
+import { debugLog, timeOutput } from "core-app/shared/helpers/debug_output";
+import { QueryOrder } from "core-app/core/apiv3/endpoints/queries/apiv3-query-order";
// min allowed position
export const MIN_ORDER = -2147483647;
diff --git a/frontend/src/app/helpers/i18n/localized-link.ts b/frontend/src/app/shared/helpers/i18n/localized-link.ts
similarity index 100%
rename from frontend/src/app/helpers/i18n/localized-link.ts
rename to frontend/src/app/shared/helpers/i18n/localized-link.ts
diff --git a/frontend/src/app/helpers/images/path-helper.ts b/frontend/src/app/shared/helpers/images/path-helper.ts
similarity index 100%
rename from frontend/src/app/helpers/images/path-helper.ts
rename to frontend/src/app/shared/helpers/images/path-helper.ts
diff --git a/frontend/src/app/helpers/images/resizer.ts b/frontend/src/app/shared/helpers/images/resizer.ts
similarity index 95%
rename from frontend/src/app/helpers/images/resizer.ts
rename to frontend/src/app/shared/helpers/images/resizer.ts
index fce626de20c..74fd29c4a37 100644
--- a/frontend/src/app/helpers/images/resizer.ts
+++ b/frontend/src/app/shared/helpers/images/resizer.ts
@@ -1,4 +1,4 @@
-import { UploadBlob } from "core-components/api/op-file-upload/op-file-upload.service";
+import { UploadBlob } from "core-app/core/file-upload/op-file-upload.service";
export namespace ImageHelpers {
diff --git a/frontend/src/app/modules/common/keyCodes.enum.ts b/frontend/src/app/shared/helpers/keyCodes.enum.ts
similarity index 100%
rename from frontend/src/app/modules/common/keyCodes.enum.ts
rename to frontend/src/app/shared/helpers/keyCodes.enum.ts
diff --git a/frontend/src/app/modules/common/link-handling/link-handling.ts b/frontend/src/app/shared/helpers/link-handling/link-handling.ts
similarity index 100%
rename from frontend/src/app/modules/common/link-handling/link-handling.ts
rename to frontend/src/app/shared/helpers/link-handling/link-handling.ts
diff --git a/frontend/src/app/helpers/op-icon-builder.ts b/frontend/src/app/shared/helpers/op-icon-builder.ts
similarity index 100%
rename from frontend/src/app/helpers/op-icon-builder.ts
rename to frontend/src/app/shared/helpers/op-icon-builder.ts
diff --git a/frontend/src/app/helpers/random-string.ts b/frontend/src/app/shared/helpers/random-string.ts
similarity index 100%
rename from frontend/src/app/helpers/random-string.ts
rename to frontend/src/app/shared/helpers/random-string.ts
diff --git a/frontend/src/app/components/angular/debounced-event-emitter.ts b/frontend/src/app/shared/helpers/rxjs/debounced-event-emitter.ts
similarity index 100%
rename from frontend/src/app/components/angular/debounced-event-emitter.ts
rename to frontend/src/app/shared/helpers/rxjs/debounced-event-emitter.ts
diff --git a/frontend/src/app/helpers/rxjs/debounced-input-switchmap.ts b/frontend/src/app/shared/helpers/rxjs/debounced-input-switchmap.ts
similarity index 89%
rename from frontend/src/app/helpers/rxjs/debounced-input-switchmap.ts
rename to frontend/src/app/shared/helpers/rxjs/debounced-input-switchmap.ts
index fbcb0eea205..ad9629ce115 100644
--- a/frontend/src/app/helpers/rxjs/debounced-input-switchmap.ts
+++ b/frontend/src/app/shared/helpers/rxjs/debounced-input-switchmap.ts
@@ -1,15 +1,15 @@
import { concat, Observable, of, Subject } from "rxjs";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
import {
catchError,
debounceTime,
- distinctUntilChanged, filter, share, shareReplay,
+ distinctUntilChanged, filter, shareReplay,
switchMap,
takeUntil,
tap
} from "rxjs/operators";
-import { RequestSwitchmapHandler } from "core-app/helpers/rxjs/request-switchmap";
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
+import { RequestSwitchmapHandler } from "core-app/shared/helpers/rxjs/request-switchmap";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export type RequestErrorHandler = (error:unknown) => void;
diff --git a/frontend/src/app/helpers/rxjs/request-switchmap.ts b/frontend/src/app/shared/helpers/rxjs/request-switchmap.ts
similarity index 93%
rename from frontend/src/app/helpers/rxjs/request-switchmap.ts
rename to frontend/src/app/shared/helpers/rxjs/request-switchmap.ts
index 751757df4bf..d687d4370e7 100644
--- a/frontend/src/app/helpers/rxjs/request-switchmap.ts
+++ b/frontend/src/app/shared/helpers/rxjs/request-switchmap.ts
@@ -1,5 +1,5 @@
import { Observable, Subject } from "rxjs";
-import { HalResource } from "core-app/modules/hal/resources/hal-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { switchMap, takeUntil } from "rxjs/operators";
export type RequestSwitchmapHandler<T, R> = (input:T) => Observable<R>;
diff --git a/frontend/src/app/helpers/selection-helpers.ts b/frontend/src/app/shared/helpers/selection-helpers.ts
similarity index 100%
rename from frontend/src/app/helpers/selection-helpers.ts
rename to frontend/src/app/shared/helpers/selection-helpers.ts
diff --git a/frontend/src/app/modules/common/set-click-position/set-click-position.ts b/frontend/src/app/shared/helpers/set-click-position/set-click-position.ts
similarity index 95%
rename from frontend/src/app/modules/common/set-click-position/set-click-position.ts
rename to frontend/src/app/shared/helpers/set-click-position/set-click-position.ts
index de668e0e9a8..8046b6450f0 100644
--- a/frontend/src/app/modules/common/set-click-position/set-click-position.ts
+++ b/frontend/src/app/shared/helpers/set-click-position/set-click-position.ts
@@ -1,5 +1,5 @@
-import { debugLog } from '../../../helpers/debug_output';
+import { debugLog } from '../debug_output';
export namespace ClickPositionMapper {
/**
diff --git a/frontend/src/app/helpers/string-helpers.ts b/frontend/src/app/shared/helpers/string-helpers.ts
similarity index 100%
rename from frontend/src/app/helpers/string-helpers.ts
rename to frontend/src/app/shared/helpers/string-helpers.ts
diff --git a/frontend/src/app/modules/common/openproject-common.module.ts b/frontend/src/app/shared/shared.module.ts
similarity index 55%
rename from frontend/src/app/modules/common/openproject-common.module.ts
rename to frontend/src/app/shared/shared.module.ts
index aa55cc97ff3..046916e133d 100644
--- a/frontend/src/app/modules/common/openproject-common.module.ts
+++ b/frontend/src/app/shared/shared.module.ts
@@ -35,47 +35,46 @@ import {NgOptionHighlightModule} from '@ng-select/ng-option-highlight';
import {DragulaModule} from 'ng2-dragula';
import {DynamicModule} from 'ng-dynamic-component';
import {StateService, UIRouterModule} from '@uirouter/angular';
-import {HookService} from '../plugins/hook-service';
-import {OpenprojectAccessibilityModule} from 'core-app/modules/a11y/openproject-a11y.module';
-import {CurrentUserModule} from 'core-app/modules/current-user/current-user.module';
-import {IconModule} from 'core-app/modules/icon/icon.module';
-import {AttributeHelpTextModule} from 'core-app/modules/attribute-help-texts/attribute-help-text.module';
-
-import {IconTriggeredContextMenuComponent} from 'core-components/op-context-menu/icon-triggered-context-menu/icon-triggered-context-menu.component';
-import {CurrentProjectService} from 'core-components/projects/current-project.service';
-import {TablePaginationComponent} from 'core-components/table-pagination/table-pagination.component';
-import {SortHeaderDirective} from 'core-components/wp-table/sort-header/sort-header.directive';
-import {ZenModeButtonComponent} from 'core-components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component';
-import {OPContextMenuComponent} from 'core-components/op-context-menu/op-context-menu.component';
-import {EnterpriseBannerComponent} from 'core-components/enterprise-banner/enterprise-banner.component';
-import {EnterpriseBannerBootstrapComponent} from 'core-components/enterprise-banner/enterprise-banner-bootstrap.component';
-import {HomescreenNewFeaturesBlockComponent} from 'core-components/homescreen/blocks/new-features.component';
-import {BoardVideoTeaserModalComponent} from 'core-app/modules/boards/board/board-video-teaser-modal/board-video-teaser-modal.component';
-import {highlightColBootstrap} from './highlight-col/highlight-col.directive';
-import {HighlightColDirective} from './highlight-col/highlight-col.directive';
-import {CopyToClipboardDirective} from './copy-to-clipboard/copy-to-clipboard.directive';
-import {OpDateTimeComponent} from './date/op-date-time.component';
-import {NotificationComponent} from './notifications/notification.component';
-import {NotificationsContainerComponent} from './notifications/notifications-container.component';
-import {UploadProgressComponent} from './notifications/upload-progress.component';
-import {ResizerComponent} from './resizer/resizer.component';
-import {CollapsibleSectionComponent} from './collapsible-section/collapsible-section.component';
-import {NoResultsComponent} from './no-results/no-results.component';
-import {EditableToolbarTitleComponent} from './editable-toolbar-title/editable-toolbar-title.component';
-import {PersistentToggleComponent} from './persistent-toggle/persistent-toggle.component';
-import {AddSectionDropdownComponent} from './hide-section/add-section-dropdown/add-section-dropdown.component';
-import {HideSectionLinkComponent} from './hide-section/hide-section-link/hide-section-link.component';
-import {RemoteFieldUpdaterComponent} from './remote-field-updater/remote-field-updater.component';
-import {AutofocusDirective} from './autofocus/autofocus.directive';
-import {ShowSectionDropdownComponent} from './hide-section/show-section-dropdown.component';
-import {SlideToggleComponent} from './slide-toggle/slide-toggle.component';
-import {DynamicBootstrapModule} from './dynamic-bootstrap/dynamic-bootstrap.module';
-import {OpFormFieldComponent} from './forms/form-field/form-field.component';
-import {OpFormBindingDirective} from './forms/form-field/form-binding.directive';
-import {OpOptionListComponent} from './option-list/option-list.component';
-import {OpenprojectPrincipalRenderingModule} from "core-app/modules/principal/principal-rendering.module";
-import { DatePickerModule } from "core-app/modules/common/op-date-picker/date-picker.module";
-import { FocusModule } from "core-app/modules/focus/focus.module";
+import {OpenprojectAccessibilityModule} from 'core-app/shared/directives/a11y/openproject-a11y.module';
+import {CurrentUserModule} from 'core-app/core/current-user/current-user.module';
+import {IconModule} from 'core-app/shared/components/icon/icon.module';
+import {AttributeHelpTextModule} from 'core-app/shared/components/attribute-help-texts/attribute-help-text.module';
+import {IconTriggeredContextMenuComponent} from 'core-app/shared/components/op-context-menu/icon-triggered-context-menu/icon-triggered-context-menu.component';
+import {CurrentProjectService} from 'core-app/core/current-project/current-project.service';
+import {SortHeaderDirective} from 'core-app/features/work-packages/components/wp-table/sort-header/sort-header.directive';
+import {ZenModeButtonComponent} from 'core-app/features/work-packages/components/wp-buttons/zen-mode-toggle-button/zen-mode-toggle-button.component';
+import {OPContextMenuComponent} from 'core-app/shared/components/op-context-menu/op-context-menu.component';
+import {BoardVideoTeaserModalComponent} from 'core-app/features/boards/board/board-video-teaser-modal/board-video-teaser-modal.component';
+import {highlightColBootstrap} from './directives/highlight-col/highlight-col.directive';
+import {HighlightColDirective} from './directives/highlight-col/highlight-col.directive';
+import {CopyToClipboardDirective} from './components/copy-to-clipboard/copy-to-clipboard.directive';
+import {OpDateTimeComponent} from './components/date/op-date-time.component';
+import {NotificationComponent} from './components/notifications/notification.component';
+import {NotificationsContainerComponent} from './components/notifications/notifications-container.component';
+import {UploadProgressComponent} from './components/notifications/upload-progress.component';
+import {ResizerComponent} from './components/resizer/resizer.component';
+import {CollapsibleSectionComponent} from './components/collapsible-section/collapsible-section.component';
+import {NoResultsComponent} from './components/no-results/no-results.component';
+import {EditableToolbarTitleComponent} from './components/editable-toolbar-title/editable-toolbar-title.component';
+import {PersistentToggleComponent} from './components/persistent-toggle/persistent-toggle.component';
+import {AddSectionDropdownComponent} from './components/hide-section/add-section-dropdown/add-section-dropdown.component';
+import {HideSectionLinkComponent} from './components/hide-section/hide-section-link/hide-section-link.component';
+import {RemoteFieldUpdaterComponent} from './components/remote-field-updater/remote-field-updater.component';
+import {AutofocusDirective} from './directives/autofocus/autofocus.directive';
+import {ShowSectionDropdownComponent} from './components/hide-section/show-section-dropdown.component';
+import {SlideToggleComponent} from './components/slide-toggle/slide-toggle.component';
+import {DynamicBootstrapModule} from './components/dynamic-bootstrap/dynamic-bootstrap.module';
+import {OpFormFieldComponent} from './components/forms/form-field/form-field.component';
+import {OpFormBindingDirective} from './components/forms/form-field/form-binding.directive';
+import {OpOptionListComponent} from './components/option-list/option-list.component';
+import {OpenprojectPrincipalRenderingModule} from "core-app/shared/components/principal/principal-rendering.module";
+import { DatePickerModule } from "core-app/shared/components/op-date-picker/date-picker.module";
+import { FocusModule } from "core-app/shared/directives/focus/focus.module";
+import { EnterpriseBannerComponent } from "core-app/shared/components/enterprise-banner/enterprise-banner.component";
+import { EnterpriseBannerBootstrapComponent } from "core-app/shared/components/enterprise-banner/enterprise-banner-bootstrap.component";
+import { HomescreenNewFeaturesBlockComponent } from "core-app/features/homescreen/blocks/new-features.component";
+import { TablePaginationComponent } from "core-app/shared/components/table-pagination/table-pagination.component";
+import { HookService } from "core-app/features/plugins/hook-service";
export function bootstrapModule(injector:Injector) {
@@ -237,10 +236,9 @@ export function bootstrapModule(injector:Injector) {
OpOptionListComponent,
]
})
-export class OpenprojectCommonModule {
+export class OPSharedModule {
constructor(injector:Injector) {
bootstrapModule(injector);
-
-
}
}
+
diff --git a/frontend/src/app/modules/common/export-options/export-options.sass b/frontend/src/global_styles/common/export-options/export-options.sass
similarity index 100%
rename from frontend/src/app/modules/common/export-options/export-options.sass
rename to frontend/src/global_styles/common/export-options/export-options.sass
diff --git a/frontend/src/app/modules/common/header/app-header.sass b/frontend/src/global_styles/common/header/app-header.sass
similarity index 100%
rename from frontend/src/app/modules/common/header/app-header.sass
rename to frontend/src/global_styles/common/header/app-header.sass
diff --git a/frontend/src/app/modules/common/header/app-help.sass b/frontend/src/global_styles/common/header/app-help.sass
similarity index 100%
rename from frontend/src/app/modules/common/header/app-help.sass
rename to frontend/src/global_styles/common/header/app-help.sass
diff --git a/frontend/src/app/modules/common/header/app-menu.sass b/frontend/src/global_styles/common/header/app-menu.sass
similarity index 100%
rename from frontend/src/app/modules/common/header/app-menu.sass
rename to frontend/src/global_styles/common/header/app-menu.sass
diff --git a/frontend/src/app/modules/common/header/app-search.sass b/frontend/src/global_styles/common/header/app-search.sass
similarity index 100%
rename from frontend/src/app/modules/common/header/app-search.sass
rename to frontend/src/global_styles/common/header/app-search.sass
diff --git a/frontend/src/app/modules/common/header/index.sass b/frontend/src/global_styles/common/header/index.sass
similarity index 100%
rename from frontend/src/app/modules/common/header/index.sass
rename to frontend/src/global_styles/common/header/index.sass
diff --git a/frontend/src/app/modules/common/header/logo.sass b/frontend/src/global_styles/common/header/logo.sass
similarity index 100%
rename from frontend/src/app/modules/common/header/logo.sass
rename to frontend/src/global_styles/common/header/logo.sass
diff --git a/frontend/src/app/modules/common/header/main-menu-toggle.sass b/frontend/src/global_styles/common/header/main-menu-toggle.sass
similarity index 71%
rename from frontend/src/app/modules/common/header/main-menu-toggle.sass
rename to frontend/src/global_styles/common/header/main-menu-toggle.sass
index c87dedeb391..6a14a035c3c 100644
--- a/frontend/src/app/modules/common/header/main-menu-toggle.sass
+++ b/frontend/src/global_styles/common/header/main-menu-toggle.sass
@@ -1,3 +1,3 @@
.op-main-menu-toggle
@at-root .nosidebar &
- display: none
+ display: none
\ No newline at end of file
diff --git a/frontend/src/app/modules/common/header/quick-add-menu.sass b/frontend/src/global_styles/common/header/quick-add-menu.sass
similarity index 100%
rename from frontend/src/app/modules/common/header/quick-add-menu.sass
rename to frontend/src/global_styles/common/header/quick-add-menu.sass
diff --git a/frontend/src/app/modules/common/input/input.component.sass b/frontend/src/global_styles/common/input/input.component.sass
similarity index 100%
rename from frontend/src/app/modules/common/input/input.component.sass
rename to frontend/src/global_styles/common/input/input.component.sass
diff --git a/frontend/src/app/modules/common/input/input.sass b/frontend/src/global_styles/common/input/input.sass
similarity index 100%
rename from frontend/src/app/modules/common/input/input.sass
rename to frontend/src/global_styles/common/input/input.sass
diff --git a/frontend/src/app/modules/common/link/link.sass b/frontend/src/global_styles/common/link/link.sass
similarity index 100%
rename from frontend/src/app/modules/common/link/link.sass
rename to frontend/src/global_styles/common/link/link.sass
diff --git a/frontend/src/app/modules/common/menu/menu.sass b/frontend/src/global_styles/common/menu/menu.sass
similarity index 100%
rename from frontend/src/app/modules/common/menu/menu.sass
rename to frontend/src/global_styles/common/menu/menu.sass
diff --git a/frontend/src/global_styles/common/openproject-common.module.sass b/frontend/src/global_styles/common/openproject-common.module.sass
new file mode 100644
index 00000000000..ec6e307b0f3
--- /dev/null
+++ b/frontend/src/global_styles/common/openproject-common.module.sass
@@ -0,0 +1,8 @@
+@import 'header/index'
+@import 'menu/menu'
+@import 'input/input'
+@import 'link/link'
+@import '../../app/shared/components/forms'
+@import '../../app/shared/components/option-list/option-list'
+@import 'export-options/export-options'
+@import 'select/select'
diff --git a/frontend/src/app/modules/common/select/select.sass b/frontend/src/global_styles/common/select/select.sass
similarity index 100%
rename from frontend/src/app/modules/common/select/select.sass
rename to frontend/src/global_styles/common/select/select.sass
diff --git a/frontend/src/global_styles/content/user-content/_figure.sass b/frontend/src/global_styles/content/user-content/_figure.sass
index 5da56f9f2a1..ebe1812212c 100644
--- a/frontend/src/global_styles/content/user-content/_figure.sass
+++ b/frontend/src/global_styles/content/user-content/_figure.sass
@@ -25,7 +25,7 @@
float: left
width: auto
&_align-center
- // This is the current default behaviour, as ckeditor has no "don't align" option
+ // This is the current default behaviour, as ckeditor-augmented-textarea has no "don't align" option
&--content
flex-basis: auto
diff --git a/frontend/src/global_styles/content/user-content/_image.sass b/frontend/src/global_styles/content/user-content/_image.sass
index 658d2ce5cdc..199e8a6bd36 100644
--- a/frontend/src/global_styles/content/user-content/_image.sass
+++ b/frontend/src/global_styles/content/user-content/_image.sass
@@ -2,6 +2,6 @@
max-width: 100%
max-height: 100%
- // Needed to override built-in ckeditor styles
+ // Needed to override built-in ckeditor-augmented-textarea styles
@at-root .op-uc-container .image &
margin: 0
diff --git a/frontend/src/global_styles/openproject.sass b/frontend/src/global_styles/openproject.sass
index 19b89c8b3c1..9986d8b19ed 100644
--- a/frontend/src/global_styles/openproject.sass
+++ b/frontend/src/global_styles/openproject.sass
@@ -4,8 +4,8 @@
@import "layout/_index.sass"
@import "content/_index.sass"
-@import "../app/modules/common/openproject-common.module"
-@import "../app/modules/modal/modal.module"
+@import "./common/openproject-common.module"
+@import "../app/shared/components/modal/modal.module"
// Dynamically linked plugin styles from Rails plugins
-@import "../app/modules/plugins/linked-plugins.styles"
+@import "../app/features/plugins/linked-plugins.styles"
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index a94092dab17..ac7e93fc79d 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -1,12 +1,12 @@
-import { OpenProjectModule } from 'core-app/angular4-modules';
+import { OpenProjectModule } from 'core-app/app.module';
import { enableProdMode } from '@angular/core';
import * as jQuery from "jquery";
import { environment } from './environments/environment';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
-import { SentryReporter } from "core-app/sentry/sentry-reporter";
-import { whenDebugging } from "core-app/helpers/debug_output";
+import { SentryReporter } from "core-app/core/errors/sentry/sentry-reporter";
+import { whenDebugging } from "core-app/shared/helpers/debug_output";
import { enableReactiveStatesLogging } from "reactivestates";
-import { initializeLocale } from "core-app/init-locale";
+import { initializeLocale } from "core-app/core/setup/init-locale";
(window as any).global = window;
@@ -24,8 +24,8 @@ __webpack_public_path__ = window.appBasePath + ASSET_BASE_PATH;
window.ErrorReporter = new SentryReporter();
-require('core-app/init-vendors');
-require('core-app/init-globals');
+require('core-app/core/setup/init-vendors');
+require('core-app/core/setup/init-globals');
if (environment.production) {
enableProdMode();
diff --git a/frontend/src/test.ts b/frontend/src/test.ts
index 327a8dc4c12..5d155a0b1d3 100644
--- a/frontend/src/test.ts
+++ b/frontend/src/test.ts
@@ -10,7 +10,7 @@ import {
BrowserDynamicTestingModule,
platformBrowserDynamicTesting,
} from '@angular/platform-browser-dynamic/testing';
-import { GlobalI18n } from "core-app/modules/common/i18n/i18n.service";
+import { GlobalI18n } from "core-app/core/i18n/i18n.service";
import { I18nShim } from "./test/i18n-shim";
require('expose-loader?_!lodash');
diff --git a/frontend/src/test/i18n-shim.ts b/frontend/src/test/i18n-shim.ts
index e4ea1e5d241..3bb93e46531 100644
--- a/frontend/src/test/i18n-shim.ts
+++ b/frontend/src/test/i18n-shim.ts
@@ -1,4 +1,4 @@
-import {GlobalI18n} from "core-app/modules/common/i18n/i18n.service";
+import {GlobalI18n} from "core-app/core/i18n/i18n.service";
export class I18nShim implements GlobalI18n {
diff --git a/frontend/src/app/openproject-tests.js b/frontend/src/test/openproject-tests.js
similarity index 100%
rename from frontend/src/app/openproject-tests.js
rename to frontend/src/test/openproject-tests.js
diff --git a/frontend/src/tsconfig.app.json b/frontend/src/tsconfig.app.json
index 1c520561182..546641180f1 100644
--- a/frontend/src/tsconfig.app.json
+++ b/frontend/src/tsconfig.app.json
@@ -8,12 +8,12 @@
"files": [
"main.ts",
"polyfills.ts",
- "app/init-globals.ts",
- "app/init-vendors.ts"
+ "app/core/setup/init-globals.ts",
+ "app/core/setup/init-vendors.ts"
],
"include": [
"src/**/*.ts",
"**/*.d.ts",
- "app/modules/augmenting/dynamic-scripts/*.ts"
+ "app/core/augmenting/dynamic-scripts/*.ts"
]
}
diff --git a/frontend/src/typings/shims.d.ts b/frontend/src/typings/shims.d.ts
index 65a5107866d..043e9d9f18c 100644
--- a/frontend/src/typings/shims.d.ts
+++ b/frontend/src/typings/shims.d.ts
@@ -14,13 +14,13 @@
/// <reference path="../../node_modules/@types/dragula/index.d.ts" />
/// <reference path="../../node_modules/@types/resize-observer-browser/index.d.ts" />
-import { ErrorReporter } from "core-app/sentry/sentry-reporter";
+import { ErrorReporter } from "core-app/core/errors/sentry/sentry-reporter";
import { Injector } from '@angular/core';
-import { OpenProject } from 'core-app/globals/openproject';
+import { OpenProject } from 'core-app/core/setup/globals/openproject';
import * as TLodash from 'lodash';
import * as TMoment from 'moment';
-import { GlobalI18n } from "core-app/modules/common/i18n/i18n.service";
+import { GlobalI18n } from "core-app/core/i18n/i18n.service";
import { Dragula } from "dragula";
import { Screenfull } from "screenfull";
diff --git a/lib/open_project/plugins/frontend_linking/generator.rb b/lib/open_project/plugins/frontend_linking/generator.rb
index 63d4d47e849..0958907d964 100644
--- a/lib/open_project/plugins/frontend_linking/generator.rb
+++ b/lib/open_project/plugins/frontend_linking/generator.rb
@@ -59,7 +59,7 @@ module ::OpenProject::Plugins
# For that, search all gems with the group :opf_plugins
def regenerate_angular_links
all_frontend_plugins.tap do |plugins|
- target_dir = Rails.root.join('frontend', 'src', 'app', 'modules', 'plugins', 'linked')
+ target_dir = Rails.root.join('frontend', 'src', 'app', 'features', 'plugins', 'linked')
puts "Cleaning linked target directory #{target_dir}"
# Removing the current linked directory and recreate
@@ -103,7 +103,7 @@ module ::OpenProject::Plugins
##
# Regenerate the frontend plugin module orchestrating the linked frontends
def generate_plugin_module(plugins)
- file_register = Rails.root.join('frontend', 'src', 'app', 'modules', 'plugins', 'linked-plugins.module.ts')
+ file_register = Rails.root.join('frontend', 'src', 'app', 'features', 'plugins', 'linked-plugins.module.ts')
template_file = File.read(File.expand_path('linked-plugins.module.ts.erb', __dir__))
template = ::ERB.new template_file, trim_mode: '-'
@@ -116,7 +116,7 @@ module ::OpenProject::Plugins
##
# Regenerate the frontend plugin sass files
def generate_plugin_sass(plugins)
- file_register = Rails.root.join('frontend', 'src', 'app', 'modules', 'plugins', 'linked-plugins.styles.sass')
+ file_register = Rails.root.join('frontend', 'src', 'app', 'features', 'plugins', 'linked-plugins.styles.sass')
template_file = File.read(File.expand_path('linked-plugins.styles.sass.erb', __dir__))
template = ::ERB.new template_file, trim_mode: '-'
diff --git a/modules/avatars/frontend/module/avatar-upload-form/avatar-upload-form.component.ts b/modules/avatars/frontend/module/avatar-upload-form/avatar-upload-form.component.ts
index 91312150d8e..0445c35949f 100644
--- a/modules/avatars/frontend/module/avatar-upload-form/avatar-upload-form.component.ts
+++ b/modules/avatars/frontend/module/avatar-upload-form/avatar-upload-form.component.ts
@@ -26,11 +26,10 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
import { Component, ElementRef, OnInit, ViewChild } from "@angular/core";
-import { I18nService } from "core-app/modules/common/i18n/i18n.service";
-import { OpenProjectFileUploadService , UploadFile } from "core-components/api/op-file-upload/op-file-upload.service";
-import { NotificationsService } from "core-app/modules/common/notifications/notifications.service";
-
-import { ImageHelpers } from "core-app/helpers/images/resizer";
+import { OpenProjectFileUploadService, UploadFile } from "core-app/core/file-upload/op-file-upload.service";
+import { ImageHelpers } from "core-app/shared/helpers/images/resizer";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { NotificationsService } from "core-app/shared/components/notifications/notifications.service";
@Component({
selector: 'avatar-upload-form',
diff --git a/modules/avatars/frontend/module/main.ts b/modules/avatars/frontend/module/main.ts
index e964d4526bd..131bbf19a04 100644
--- a/modules/avatars/frontend/module/main.ts
+++ b/modules/avatars/frontend/module/main.ts
@@ -27,7 +27,7 @@
import { Injector, NgModule } from '@angular/core';
import { CommonModule } from "@angular/common";
import { AvatarUploadFormComponent } from "./avatar-upload-form/avatar-upload-form.component";
-import { HookService } from "../../hook-service";
+import { HookService } from "core-app/features/plugins/hook-service";
@NgModule({
imports: [
diff --git a/modules/budgets/frontend/module/augment/cost-budget-subform.augment.service.ts b/modules/budgets/frontend/module/augment/cost-budget-subform.augment.service.ts
index 5462cf1c5a7..e47ae785006 100644
--- a/modules/budgets/frontend/module/augment/cost-budget-subform.augment.service.ts
+++ b/modules/budgets/frontend/module/augment/cost-budget-subform.augment.service.ts
@@ -28,7 +28,7 @@
import { Injectable } from "@angular/core";
import { HttpClient } from '@angular/common/http';
-import { HalResourceNotificationService } from "core-app/modules/hal/services/hal-resource-notification.service";
+import { HalResourceNotificationService } from "core-app/features/hal/services/hal-resource-notification.service";
@Injectable()
export class CostBudgetSubformAugmentService {
diff --git a/modules/budgets/frontend/module/hal/resources/budget-resource.ts b/modules/budgets/frontend/module/hal/resources/budget-resource.ts
index 679640dedfd..35b592f6460 100644
--- a/modules/budgets/frontend/module/hal/resources/budget-resource.ts
+++ b/modules/budgets/frontend/module/hal/resources/budget-resource.ts
@@ -24,8 +24,8 @@
//
// See docs/COPYRIGHT.rdoc for more details.
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { Attachable } from 'core-app/modules/hal/resources/mixins/attachable-mixin';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { Attachable } from "core-app/features/hal/resources/mixins/attachable-mixin";
export interface BudgetResourceLinks {
addAttachment(attachment:HalResource):Promise<any>;
diff --git a/modules/budgets/frontend/module/main.ts b/modules/budgets/frontend/module/main.ts
index 4bb43d5a16b..ec556e32c8c 100644
--- a/modules/budgets/frontend/module/main.ts
+++ b/modules/budgets/frontend/module/main.ts
@@ -25,12 +25,12 @@
// See docs/COPYRIGHT.rdoc for more details.
import { Injector, NgModule } from '@angular/core';
-import { OpenProjectPluginContext } from 'core-app/modules/plugins/plugin-context';
+import { OpenProjectPluginContext } from 'core-app/features/plugins/plugin-context';
import { BudgetResource } from './hal/resources/budget-resource';
import { multiInput } from 'reactivestates';
import { CostSubformAugmentService } from "./augment/cost-subform.augment.service";
-import { PlannedCostsFormAugment } from "core-app/modules/plugins/linked/budgets/augment/planned-costs-form";
-import { CostBudgetSubformAugmentService } from "core-app/modules/plugins/linked/budgets/augment/cost-budget-subform.augment.service";
+import { PlannedCostsFormAugment } from "core-app/features/plugins/linked/budgets/augment/planned-costs-form";
+import { CostBudgetSubformAugmentService } from "core-app/features/plugins/linked/budgets/augment/cost-budget-subform.augment.service";
export function initializeCostsPlugin(injector:Injector) {
window.OpenProject.getPluginContext().then((pluginContext:OpenProjectPluginContext) => {
diff --git a/modules/costs/frontend/module/main.ts b/modules/costs/frontend/module/main.ts
index d6ab90df53a..058493dc380 100644
--- a/modules/costs/frontend/module/main.ts
+++ b/modules/costs/frontend/module/main.ts
@@ -25,7 +25,7 @@
// See docs/COPYRIGHT.rdoc for more details.
import { Injector, NgModule } from '@angular/core';
-import { OpenProjectPluginContext } from 'core-app/modules/plugins/plugin-context';
+import { OpenProjectPluginContext } from 'core-app/features/plugins/plugin-context';
import { CostsByTypeDisplayField } from './wp-display/costs-by-type-display-field.module';
import { CurrencyDisplayField } from './wp-display/currency-display-field.module';
diff --git a/modules/costs/frontend/module/wp-display/costs-by-type-display-field.module.ts b/modules/costs/frontend/module/wp-display/costs-by-type-display-field.module.ts
index e745ae29627..b6459183745 100644
--- a/modules/costs/frontend/module/wp-display/costs-by-type-display-field.module.ts
+++ b/modules/costs/frontend/module/wp-display/costs-by-type-display-field.module.ts
@@ -27,10 +27,10 @@
//++
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
-import { IFieldSchema } from "core-app/modules/fields/field.base";
-import { InjectField } from "core-app/helpers/angular/inject-field.decorator";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
+import { IFieldSchema } from "core-app/shared/components/fields/field.base";
+import { InjectField } from "core-app/shared/helpers/angular/inject-field.decorator";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
interface ICostsByType {
costObjectId:string;
diff --git a/modules/costs/frontend/module/wp-display/currency-display-field.module.ts b/modules/costs/frontend/module/wp-display/currency-display-field.module.ts
index 0ed23375c6d..0c9205b0728 100644
--- a/modules/costs/frontend/module/wp-display/currency-display-field.module.ts
+++ b/modules/costs/frontend/module/wp-display/currency-display-field.module.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { DisplayField } from "core-app/modules/fields/display/display-field.module";
+import { DisplayField } from "core-app/shared/components/fields/display/display-field.module";
export class CurrencyDisplayField extends DisplayField {
diff --git a/modules/documents/frontend/module/hal/resources/document-resource.ts b/modules/documents/frontend/module/hal/resources/document-resource.ts
index f164413711a..1f3037647cd 100644
--- a/modules/documents/frontend/module/hal/resources/document-resource.ts
+++ b/modules/documents/frontend/module/hal/resources/document-resource.ts
@@ -28,8 +28,8 @@
// This resource exists solely for the purpose of uploading attachments via the
// WYSIWYIG editor.
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
-import { Attachable } from 'core-app/modules/hal/resources/mixins/attachable-mixin';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
+import { Attachable } from "core-app/features/hal/resources/mixins/attachable-mixin";
export interface DocumentResourceLinks {
addAttachment(attachment:HalResource):Promise<any>;
diff --git a/modules/documents/frontend/module/main.ts b/modules/documents/frontend/module/main.ts
index ad796a58324..5405a455758 100644
--- a/modules/documents/frontend/module/main.ts
+++ b/modules/documents/frontend/module/main.ts
@@ -27,7 +27,7 @@
//++
import { NgModule } from '@angular/core';
-import { OpenProjectPluginContext } from "core-app/modules/plugins/plugin-context";
+import { OpenProjectPluginContext } from "core-app/features/plugins/plugin-context";
import { DocumentResource } from './hal/resources/document-resource';
import { multiInput } from 'reactivestates';
diff --git a/modules/github_integration/frontend/module/git-actions-menu/git-actions-menu.component.spec.ts b/modules/github_integration/frontend/module/git-actions-menu/git-actions-menu.component.spec.ts
index 14414715ea0..ecfbc9b7e29 100644
--- a/modules/github_integration/frontend/module/git-actions-menu/git-actions-menu.component.spec.ts
+++ b/modules/github_integration/frontend/module/git-actions-menu/git-actions-menu.component.spec.ts
@@ -4,11 +4,11 @@ import {
} from '@angular/core/testing';
import { DebugElement } from '@angular/core';
import { GitActionsMenuComponent } from "./git-actions-menu.component";
-import {I18nService} from 'core-app/modules/common/i18n/i18n.service';
-import { OpContextMenuLocalsToken } from "core-app/components/op-context-menu/op-context-menu.types";
import { GitActionsService } from "../git-actions/git-actions.service";
import { By } from "@angular/platform-browser";
-import { OpIconComponent } from "core-app/modules/icon/icon.component";
+import { OpIconComponent } from "core-app/shared/components/icon/icon.component";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { OpContextMenuLocalsToken } from "core-app/shared/components/op-context-menu/op-context-menu.types";
describe('GitActionsMenuComponent', () => {
diff --git a/modules/github_integration/frontend/module/git-actions-menu/git-actions-menu.component.ts b/modules/github_integration/frontend/module/git-actions-menu/git-actions-menu.component.ts
index c5cf02bb835..4bb4689f5b0 100644
--- a/modules/github_integration/frontend/module/git-actions-menu/git-actions-menu.component.ts
+++ b/modules/github_integration/frontend/module/git-actions-menu/git-actions-menu.component.ts
@@ -28,15 +28,15 @@
import copy from 'copy-text-to-clipboard';
import { Component, Inject, Input } from '@angular/core';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { I18nService } from 'core-app/modules/common/i18n/i18n.service';
import { GitActionsService } from '../git-actions/git-actions.service';
-import { OPContextMenuComponent } from 'core-app/components/op-context-menu/op-context-menu.component';
+import { ISnippet} from "core-app/features/plugins/linked/openproject-github_integration/typings";
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { OPContextMenuComponent } from "core-app/shared/components/op-context-menu/op-context-menu.component";
import {
OpContextMenuLocalsMap,
- OpContextMenuLocalsToken
-} from 'core-app/components/op-context-menu/op-context-menu.types';
-import { ISnippet} from "core-app/modules/plugins/linked/openproject-github_integration/typings";
+ OpContextMenuLocalsToken,
+} from "core-app/shared/components/op-context-menu/op-context-menu.types";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Component({
diff --git a/modules/github_integration/frontend/module/git-actions-menu/git-actions-menu.directive.ts b/modules/github_integration/frontend/module/git-actions-menu/git-actions-menu.directive.ts
index da8c8fa6020..f2a4257195f 100644
--- a/modules/github_integration/frontend/module/git-actions-menu/git-actions-menu.directive.ts
+++ b/modules/github_integration/frontend/module/git-actions-menu/git-actions-menu.directive.ts
@@ -26,11 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import {OpContextMenuItem} from 'core-components/op-context-menu/op-context-menu.types';
-import {OPContextMenuService} from 'core-components/op-context-menu/op-context-menu.service';
+import {OpContextMenuItem} from 'core-app/shared/components/op-context-menu/op-context-menu.types';
+import {OPContextMenuService} from 'core-app/shared/components/op-context-menu/op-context-menu.service';
import {Directive, ElementRef, Input} from '@angular/core';
-import {OpContextMenuTrigger} from 'core-components/op-context-menu/handlers/op-context-menu-trigger.directive';
-import {WorkPackageResource} from 'core-app/modules/hal/resources/work-package-resource';
+import {OpContextMenuTrigger} from 'core-app/shared/components/op-context-menu/handlers/op-context-menu-trigger.directive';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import {GitActionsMenuComponent} from './git-actions-menu.component';
@Directive({
diff --git a/modules/github_integration/frontend/module/git-actions/git-actions.service.spec.ts b/modules/github_integration/frontend/module/git-actions/git-actions.service.spec.ts
index 68a5a6dc71b..ef291d36c72 100644
--- a/modules/github_integration/frontend/module/git-actions/git-actions.service.spec.ts
+++ b/modules/github_integration/frontend/module/git-actions/git-actions.service.spec.ts
@@ -29,9 +29,9 @@
/*jshint expr: true*/
import { GitActionsService } from './git-actions.service';
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { PathHelperService } from 'core-app/modules/common/path-helper/path-helper.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import { TestBed, waitForAsync } from '@angular/core/testing';
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
describe('GitActionsService', function() {
let service:GitActionsService;
diff --git a/modules/github_integration/frontend/module/git-actions/git-actions.service.ts b/modules/github_integration/frontend/module/git-actions/git-actions.service.ts
index 852879d30ad..0f2b1f14cd1 100644
--- a/modules/github_integration/frontend/module/git-actions/git-actions.service.ts
+++ b/modules/github_integration/frontend/module/git-actions/git-actions.service.ts
@@ -27,7 +27,7 @@
//++
import {Injectable} from '@angular/core';
-import {WorkPackageResource} from 'core-app/modules/hal/resources/work-package-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
import formatter from 'tickety-tick-formatter';
// probably not providable in root when we want to cache the formatter and set custom templates
diff --git a/modules/github_integration/frontend/module/github-tab/github-tab.component.spec.ts b/modules/github_integration/frontend/module/github-tab/github-tab.component.spec.ts
index 0df17bb1aea..4c8456dadbb 100644
--- a/modules/github_integration/frontend/module/github-tab/github-tab.component.spec.ts
+++ b/modules/github_integration/frontend/module/github-tab/github-tab.component.spec.ts
@@ -3,12 +3,12 @@ import {
TestBed,
} from '@angular/core/testing';
import { DebugElement } from '@angular/core';
-import {I18nService} from 'core-app/modules/common/i18n/i18n.service';
-import { GitHubTabComponent } from "core-app/modules/plugins/linked/openproject-github_integration/github-tab/github-tab.component";
-import { PathHelperService } from "core-app/modules/common/path-helper/path-helper.service";
-import { TabPrsComponent } from "core-app/modules/plugins/linked/openproject-github_integration/tab-prs/tab-prs.component";
-import { TabHeaderComponent } from "core-app/modules/plugins/linked/openproject-github_integration/tab-header/tab-header.component";
+import { GitHubTabComponent } from "core-app/features/plugins/linked/openproject-github_integration/github-tab/github-tab.component";
+import { TabPrsComponent } from "core-app/features/plugins/linked/openproject-github_integration/tab-prs/tab-prs.component";
+import { TabHeaderComponent } from "core-app/features/plugins/linked/openproject-github_integration/tab-header/tab-header.component";
import { By } from "@angular/platform-browser";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
describe('GitHubTabComponent.', () => {
diff --git a/modules/github_integration/frontend/module/github-tab/github-tab.component.ts b/modules/github_integration/frontend/module/github-tab/github-tab.component.ts
index b253760746b..e26011a5e1f 100644
--- a/modules/github_integration/frontend/module/github-tab/github-tab.component.ts
+++ b/modules/github_integration/frontend/module/github-tab/github-tab.component.ts
@@ -27,10 +27,10 @@
//++
import {Component, Input} from '@angular/core';
-import {WorkPackageResource} from 'core-app/modules/hal/resources/work-package-resource';
-import {PathHelperService} from 'core-app/modules/common/path-helper/path-helper.service';
-import {I18nService} from 'core-app/modules/common/i18n/i18n.service';
-import { TabComponent } from 'core-app/components/wp-tabs/components/wp-tab-wrapper/tab';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { TabComponent } from "core-app/features/work-packages/components/wp-tabs/components/wp-tab-wrapper/tab";
+import { I18nService } from "core-app/core/i18n/i18n.service";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
@Component({
selector: 'github-tab',
diff --git a/modules/github_integration/frontend/module/hal/resources/github-check-run-resource.ts b/modules/github_integration/frontend/module/hal/resources/github-check-run-resource.ts
index d46f8f94fc9..985d6a45524 100644
--- a/modules/github_integration/frontend/module/hal/resources/github-check-run-resource.ts
+++ b/modules/github_integration/frontend/module/hal/resources/github-check-run-resource.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export class GithubCheckRunResource extends HalResource {
public get state() {
diff --git a/modules/github_integration/frontend/module/hal/resources/github-pull-request-resource.ts b/modules/github_integration/frontend/module/hal/resources/github-pull-request-resource.ts
index f52eaeb69b6..54916720127 100644
--- a/modules/github_integration/frontend/module/hal/resources/github-pull-request-resource.ts
+++ b/modules/github_integration/frontend/module/hal/resources/github-pull-request-resource.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export class GithubPullRequestResource extends HalResource {
public get state() {
diff --git a/modules/github_integration/frontend/module/hal/resources/github-user-resource.ts b/modules/github_integration/frontend/module/hal/resources/github-user-resource.ts
index a8ffee89b3f..68e83246c2d 100644
--- a/modules/github_integration/frontend/module/hal/resources/github-user-resource.ts
+++ b/modules/github_integration/frontend/module/hal/resources/github-user-resource.ts
@@ -26,7 +26,7 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
export class GithubUserResource extends HalResource {
public get state() {
diff --git a/modules/github_integration/frontend/module/main.ts b/modules/github_integration/frontend/module/main.ts
index 0c4c610e668..a29470ab1cf 100644
--- a/modules/github_integration/frontend/module/main.ts
+++ b/modules/github_integration/frontend/module/main.ts
@@ -25,8 +25,6 @@
// See docs/COPYRIGHT.rdoc for more details.
import { Injector, NgModule } from '@angular/core';
-import { OpenprojectCommonModule } from 'core-app/modules/common/openproject-common.module';
-
import { GitHubTabComponent } from './github-tab/github-tab.component';
import { TabHeaderComponent } from './tab-header/tab-header.component';
import { TabPrsComponent } from './tab-prs/tab-prs.component';
@@ -34,8 +32,9 @@ import { GitActionsMenuDirective } from './git-actions-menu/git-actions-menu.dir
import { GitActionsMenuComponent } from './git-actions-menu/git-actions-menu.component';
import { WorkPackagesGithubPrsService } from './tab-prs/wp-github-prs.service';
import { PullRequestComponent } from './pull-request/pull-request.component';
-import { WorkPackageTabsService } from "core-components/wp-tabs/services/wp-tabs/wp-tabs.service";
-import { OpenprojectTabsModule } from "core-app/modules/common/tabs/openproject-tabs.module";
+import { OPSharedModule } from "core-app/shared/shared.module";
+import { OpenprojectTabsModule } from "core-app/shared/components/tabs/openproject-tabs.module";
+import { WorkPackageTabsService } from "core-app/features/work-packages/components/wp-tabs/services/wp-tabs/wp-tabs.service";
export function initializeGithubIntegrationPlugin(injector:Injector) {
const wpTabService = injector.get(WorkPackageTabsService);
@@ -50,7 +49,7 @@ export function initializeGithubIntegrationPlugin(injector:Injector) {
@NgModule({
imports: [
- OpenprojectCommonModule,
+ OPSharedModule,
OpenprojectTabsModule,
],
providers: [
@@ -77,3 +76,5 @@ export class PluginModule {
initializeGithubIntegrationPlugin(injector);
}
}
+
+
diff --git a/modules/github_integration/frontend/module/pull-request/pull-request.component.ts b/modules/github_integration/frontend/module/pull-request/pull-request.component.ts
index 587558af20a..07a2668c99a 100644
--- a/modules/github_integration/frontend/module/pull-request/pull-request.component.ts
+++ b/modules/github_integration/frontend/module/pull-request/pull-request.component.ts
@@ -27,10 +27,10 @@
//++
import { Component, Input } from '@angular/core';
-import {PathHelperService} from 'core-app/modules/common/path-helper/path-helper.service';
-import {I18nService} from 'core-app/modules/common/i18n/i18n.service';
-import { GithubCheckRunResource } from '../hal/resources/github-check-run-resource';
-import { IGithubPullRequestResource } from "../../../../../../../../modules/github_integration/frontend/module/typings";
+import { GithubCheckRunResource } from 'core-app/features/plugins/linked/openproject-github_integration/hal/resources/github-check-run-resource';
+import { IGithubPullRequestResource } from "core-app/features/plugins/linked/openproject-github_integration/typings";
+import { PathHelperService } from "core-app/core/path-helper/path-helper.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Component({
selector: 'github-pull-request',
diff --git a/modules/github_integration/frontend/module/tab-header/tab-header.component.spec.ts b/modules/github_integration/frontend/module/tab-header/tab-header.component.spec.ts
index 6a7ed7713dc..49e61d21252 100644
--- a/modules/github_integration/frontend/module/tab-header/tab-header.component.spec.ts
+++ b/modules/github_integration/frontend/module/tab-header/tab-header.component.spec.ts
@@ -3,12 +3,12 @@ import {
TestBed,
} from '@angular/core/testing';
import { DebugElement } from '@angular/core';
-import {I18nService} from 'core-app/modules/common/i18n/i18n.service';
-import { TabHeaderComponent } from "core-app/modules/plugins/linked/openproject-github_integration/tab-header/tab-header.component";
+import { TabHeaderComponent } from "core-app/features/plugins/linked/openproject-github_integration/tab-header/tab-header.component";
import { By } from "@angular/platform-browser";
-import { OpIconComponent } from "core-app/modules/icon/icon.component";
-import { GitActionsMenuDirective } from "core-app/modules/plugins/linked/openproject-github_integration/git-actions-menu/git-actions-menu.directive";
-import { OPContextMenuService } from "core-components/op-context-menu/op-context-menu.service";
+import { OpIconComponent } from "core-app/shared/components/icon/icon.component";
+import { GitActionsMenuDirective } from "core-app/features/plugins/linked/openproject-github_integration/git-actions-menu/git-actions-menu.directive";
+import { OPContextMenuService } from "core-app/shared/components/op-context-menu/op-context-menu.service";
+import { I18nService } from "core-app/core/i18n/i18n.service";
describe('TabHeaderComponent', () => {
diff --git a/modules/github_integration/frontend/module/tab-header/tab-header.component.ts b/modules/github_integration/frontend/module/tab-header/tab-header.component.ts
index 0e049ea1578..bc52ba488b3 100644
--- a/modules/github_integration/frontend/module/tab-header/tab-header.component.ts
+++ b/modules/github_integration/frontend/module/tab-header/tab-header.component.ts
@@ -27,8 +27,8 @@
//++
import {Component, Input} from '@angular/core';
-import {WorkPackageResource} from 'core-app/modules/hal/resources/work-package-resource';
-import {I18nService} from 'core-app/modules/common/i18n/i18n.service';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Component({
selector: 'tab-header',
diff --git a/modules/github_integration/frontend/module/tab-prs/tab-prs.component.spec.ts b/modules/github_integration/frontend/module/tab-prs/tab-prs.component.spec.ts
index 124c23661c4..b15df6631fa 100644
--- a/modules/github_integration/frontend/module/tab-prs/tab-prs.component.spec.ts
+++ b/modules/github_integration/frontend/module/tab-prs/tab-prs.component.spec.ts
@@ -3,15 +3,15 @@ import {
TestBed,
} from '@angular/core/testing';
import { ChangeDetectorRef, DebugElement, Component, Input } from '@angular/core';
-import {I18nService} from 'core-app/modules/common/i18n/i18n.service';
-import { OpIconComponent } from "core-app/modules/icon/icon.component";
-import { GitActionsMenuDirective } from "core-app/modules/plugins/linked/openproject-github_integration/git-actions-menu/git-actions-menu.directive";
-import { TabPrsComponent } from "core-app/modules/plugins/linked/openproject-github_integration/tab-prs/tab-prs.component";
-import { HalResourceService } from "core-app/modules/hal/services/hal-resource.service";
-import { APIV3Service } from "core-app/modules/apiv3/api-v3.service";
+import { OpIconComponent } from "core-app/shared/components/icon/icon.component";
+import { GitActionsMenuDirective } from "core-app/features/plugins/linked/openproject-github_integration/git-actions-menu/git-actions-menu.directive";
+import { TabPrsComponent } from "core-app/features/plugins/linked/openproject-github_integration/tab-prs/tab-prs.component";
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { APIV3Service } from "core-app/core/apiv3/api-v3.service";
import { of } from "rxjs";
-import { PullRequestComponent } from "core-app/modules/plugins/linked/openproject-github_integration/pull-request/pull-request.component";
+import { PullRequestComponent } from "core-app/features/plugins/linked/openproject-github_integration/pull-request/pull-request.component";
import { By } from "@angular/platform-browser";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Component({
selector: 'op-date-time',
diff --git a/modules/github_integration/frontend/module/tab-prs/tab-prs.component.ts b/modules/github_integration/frontend/module/tab-prs/tab-prs.component.ts
index d897a2e2148..6ced008729c 100644
--- a/modules/github_integration/frontend/module/tab-prs/tab-prs.component.ts
+++ b/modules/github_integration/frontend/module/tab-prs/tab-prs.component.ts
@@ -27,13 +27,13 @@
//++
import {Component, Input, OnInit} from '@angular/core';
-import {WorkPackageResource} from 'core-app/modules/hal/resources/work-package-resource';
-import {I18nService} from 'core-app/modules/common/i18n/i18n.service';
-import { APIV3Service } from 'core-app/modules/apiv3/api-v3.service';
-import { HalResourceService } from 'core-app/modules/hal/services/hal-resource.service';
-import { CollectionResource } from 'core-app/modules/hal/resources/collection-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';
+import { HalResourceService } from "core-app/features/hal/services/hal-resource.service";
+import { CollectionResource } from "core-app/features/hal/resources/collection-resource";
import { ChangeDetectorRef } from '@angular/core';
import { IGithubPullRequestResource } from "../../../../../../../../modules/github_integration/frontend/module/typings";
+import { I18nService } from "core-app/core/i18n/i18n.service";
@Component({
selector: 'tab-prs',
diff --git a/modules/github_integration/frontend/module/tab-prs/wp-github-prs.service.ts b/modules/github_integration/frontend/module/tab-prs/wp-github-prs.service.ts
index e15d5617d23..a3bf73026be 100644
--- a/modules/github_integration/frontend/module/tab-prs/wp-github-prs.service.ts
+++ b/modules/github_integration/frontend/module/tab-prs/wp-github-prs.service.ts
@@ -26,11 +26,11 @@
// See docs/COPYRIGHT.rdoc for more details.
//++
-import { WorkPackageResource } from 'core-app/modules/hal/resources/work-package-resource';
-import { HalResource } from 'core-app/modules/hal/resources/hal-resource';
+import { WorkPackageResource } from "core-app/features/hal/resources/work-package-resource";
+import { HalResource } from "core-app/features/hal/resources/hal-resource";
import { Injectable } from '@angular/core';
-import { ConfigurationService } from 'core-app/modules/common/config/configuration.service';
-import { WorkPackageLinkedResourceCache } from 'core-components/wp-single-view-tabs/wp-linked-resource-cache.service';
+import { ConfigurationService } from "core-app/core/config/configuration.service";
+import { WorkPackageLinkedResourceCache } from 'core-app/features/work-packages/components/wp-single-view-tabs/wp-linked-resource-cache.service';
@Injectable()
export class WorkPackagesGithubPrsService extends WorkPackageLinkedResourceCache<HalResource[]> {
diff --git a/modules/github_integration/frontend/module/typings.d.ts b/modules/github_integration/frontend/module/typings.d.ts
index 1bc6d6688f3..827aca0e2a7 100644
--- a/modules/github_integration/frontend/module/typings.d.ts
+++ b/modules/github_integration/frontend/module/typings.d.ts
@@ -1,4 +1,3 @@
-import { TabDefinition } from "core-app/modules/common/tabs/tab.interface";
import { HalResourceClass } from "core-app/modules/hal/resources/hal-resource";
export interface ISnippet {
diff --git a/spec/features/projects/projects_custom_fields_spec.rb b/spec/features/projects/projects_custom_fields_spec.rb
index 04cf3355c7f..9d4b3cff444 100644
--- a/spec/features/projects/projects_custom_fields_spec.rb
+++ b/spec/features/projects/projects_custom_fields_spec.rb
@@ -109,7 +109,7 @@ describe 'Projects custom fields', type: :feature, js: true do
scenario 'allows settings the project boolean CF (regression #26313)' do
visit settings_generic_project_path(project.id)
- # expect CF, description and status description ckeditor
+ # expect CF, description and status description ckeditor-augmented-textarea
expect(page).to have_selector('.op-ckeditor--wrapper', count: 3)
# single hash autocomplete
diff --git a/spec/features/wysiwyg/macros/embedded_tables_spec.rb b/spec/features/wysiwyg/macros/embedded_tables_spec.rb
index 4d8b53de8c0..a335ce31a1f 100644
--- a/spec/features/wysiwyg/macros/embedded_tables_spec.rb
+++ b/spec/features/wysiwyg/macros/embedded_tables_spec.rb
@@ -94,7 +94,7 @@ describe 'Wysiwyg embedded work package tables',
columns.expect_checked 'Type'
modal.cancel
- # Expect we can preview the table within ckeditor
+ # Expect we can preview the table within ckeditor-augmented-textarea
editor.within_enabled_preview do |preview_container|
embedded_table = ::Pages::EmbeddedWorkPackagesTable.new preview_container
embedded_table.expect_work_package_listed wp_task
diff --git a/spec/support/components/wysiwyg/wysiwyg_editor.rb b/spec/support/components/wysiwyg/wysiwyg_editor.rb
index 20a4e864cb6..8a4bad4b018 100644
--- a/spec/support/components/wysiwyg/wysiwyg_editor.rb
+++ b/spec/support/components/wysiwyg/wysiwyg_editor.rb
@@ -28,17 +28,17 @@ module Components
def set_markdown(text)
textarea = container.find('.op-ckeditor-source-element', visible: :all)
page.execute_script(
- 'jQuery(arguments[0]).trigger("op:ckeditor:setData", arguments[1])',
- textarea.native,
- text
+ 'jQuery(arguments[0]).trigger("op:ckeditor:setData", arguments[1])',
+ textarea.native,
+ text
)
end
def clear
textarea = container.find('.op-ckeditor-source-element', visible: :all)
page.execute_script(
- 'jQuery(arguments[0]).trigger("op:ckeditor:clear")',
- textarea.native
+ 'jQuery(arguments[0]).trigger("op:ckeditor:clear")',
+ textarea.native
)
end
@@ -56,7 +56,7 @@ module Components
def expect_supports_no_macros
expect(container)
- .to have_no_selector('.ck-button', visible: :all, text: 'Macros')
+ .to have_no_selector('.ck-button', visible: :all, text: 'Macros')
end
def within_enabled_preview
@@ -79,7 +79,7 @@ module Components
attachments.drag_and_drop_file(editable, image_fixture)
expect(page)
- .to have_selector('figure img[src^="/api/v3/attachments/"]', count: images.length + 1, wait: 10)
+ .to have_selector('figure img[src^="/api/v3/attachments/"]', count: images.length + 1, wait: 10)
expect(page).not_to have_selector('notification-upload-progress')
sleep 0.5
@@ -154,8 +154,8 @@ module Components
def align_table_by_label(editor, table, label)
# Style first td in table
table
- .find('.op-uc-table--row:first-of-type .op-uc-table--cell:first-of-type')
- .click
+ .find('.op-uc-table--row:first-of-type .op-uc-table--cell:first-of-type')
+ .click
# Click table toolbar
editor.click_hover_toolbar_button 'Table properties'
@@ -166,4 +166,4 @@ module Components
find('.ck-button-save').click
end
end
-end
+end
\ No newline at end of file