From 02fddbf2054d0cb6c21bcce99a8e4da3054ebfba Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Fri, 27 Feb 2026 12:34:51 +0000 Subject: [PATCH] refactor: remove upload module and clean up imports in ContentModule - Deleted UploadModule and its associated exports. - Removed CONTENT_UPLOAD_DIRECTIVES from ContentModule imports. - Updated public API to exclude UploadModule exports. [ci:force] --- .../src/lib/content.module.ts | 3 -- .../src/lib/upload/public-api.ts | 2 - .../src/lib/upload/upload.module.ts | 42 ------------------- 3 files changed, 47 deletions(-) delete mode 100644 lib/content-services/src/lib/upload/upload.module.ts diff --git a/lib/content-services/src/lib/content.module.ts b/lib/content-services/src/lib/content.module.ts index a41a4bfcef..3cc995cfc8 100644 --- a/lib/content-services/src/lib/content.module.ts +++ b/lib/content-services/src/lib/content.module.ts @@ -29,7 +29,6 @@ import { versionCompatibilityFactory } from './version-compatibility/version-com import { VersionCompatibilityService } from './version-compatibility/version-compatibility.service'; import { contentAuthLoaderFactory } from './auth-loader/content-auth-loader-factory'; import { ContentAuthLoaderService } from './auth-loader/content-auth-loader.service'; -import { CONTENT_UPLOAD_DIRECTIVES } from './upload'; import { MaterialModule } from './material.module'; import { AlfrescoApiService } from './services/alfresco-api.service'; import { AlfrescoApiNoAuthService } from './api-factories/alfresco-api-no-auth.service'; @@ -43,7 +42,6 @@ import { AlfrescoApiLoaderService, createAlfrescoApiInstance } from './api-facto ...CONTENT_TAG_DIRECTIVES, ...CONTENT_SEARCH_DIRECTIVES, ...DOCUMENT_LIST_DIRECTIVES, - ...CONTENT_UPLOAD_DIRECTIVES, ...CONTENT_NODE_SHARE_DIRECTIVES, ...CONTENT_DIRECTIVES, ...CONTENT_PERMISSION_MANAGER_DIRECTIVES, @@ -54,7 +52,6 @@ import { AlfrescoApiLoaderService, createAlfrescoApiInstance } from './api-facto MaterialModule, ...CONTENT_TAG_DIRECTIVES, ...DOCUMENT_LIST_DIRECTIVES, - ...CONTENT_UPLOAD_DIRECTIVES, ...CONTENT_SEARCH_DIRECTIVES, ...CONTENT_NODE_SHARE_DIRECTIVES, ...CONTENT_DIRECTIVES, diff --git a/lib/content-services/src/lib/upload/public-api.ts b/lib/content-services/src/lib/upload/public-api.ts index 17b5ab3747..d1758ebe41 100644 --- a/lib/content-services/src/lib/upload/public-api.ts +++ b/lib/content-services/src/lib/upload/public-api.ts @@ -26,5 +26,3 @@ export * from './components/upload-files.event'; export * from './directives/file-draggable.directive'; export * from './components/base-upload/upload-base'; - -export * from './upload.module'; diff --git a/lib/content-services/src/lib/upload/upload.module.ts b/lib/content-services/src/lib/upload/upload.module.ts deleted file mode 100644 index 0a7698e63f..0000000000 --- a/lib/content-services/src/lib/upload/upload.module.ts +++ /dev/null @@ -1,42 +0,0 @@ -/*! - * @license - * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { NgModule } from '@angular/core'; -import { FileUploadingDialogComponent } from './components/file-uploading-dialog.component'; -import { FileUploadingListRowComponent } from './components/file-uploading-list-row.component'; -import { FileUploadingListComponent } from './components/file-uploading-list.component'; -import { UploadButtonComponent } from './components/upload-button.component'; -import { UploadVersionButtonComponent } from './components/upload-version-button.component'; -import { UploadDragAreaComponent } from './components/upload-drag-area.component'; -import { FileDraggableDirective } from './directives/file-draggable.directive'; - -export const CONTENT_UPLOAD_DIRECTIVES = [ - FileDraggableDirective, - UploadDragAreaComponent, - UploadButtonComponent, - UploadVersionButtonComponent, - FileUploadingListRowComponent, - FileUploadingListComponent, - FileUploadingDialogComponent -] as const; - -/** @deprecated use `...CONTENT_UPLOAD_DIRECTIVES` instead or import standalone components directly */ -@NgModule({ - imports: [...CONTENT_UPLOAD_DIRECTIVES], - exports: [...CONTENT_UPLOAD_DIRECTIVES] -}) -export class UploadModule {}