diff --git a/package-lock.json b/package-lock.json index fb0000170..3cacaa030 100644 --- a/package-lock.json +++ b/package-lock.json @@ -80,7 +80,7 @@ "eslint-plugin-license-header": "^0.6.1", "eslint-plugin-playwright": "^1.6.2", "eslint-plugin-prefer-arrow": "1.2.3", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "5.0.0", "eslint-plugin-rxjs": "^5.0.2", "eslint-plugin-unicorn": "^54.0.0", "husky": "^9.0.11", @@ -96,7 +96,7 @@ "ng-packagr": "17.1.2", "node-stream-zip": "^1.14.0", "nx": "17.3.2", - "prettier": "2.8.8", + "prettier": "3.5.3", "stylelint": "^15.11.0", "stylelint-config-standard-scss": "^7.0.1", "ts-node": "^10.9.2", @@ -16699,27 +16699,52 @@ } }, "node_modules/eslint-plugin-prettier": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz", - "integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.0.tgz", + "integrity": "sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w==", "dev": true, "license": "MIT", "dependencies": { - "prettier-linter-helpers": "^1.0.0" + "prettier-linter-helpers": "^1.0.0", + "synckit": "^0.8.5" }, "engines": { - "node": ">=12.0.0" + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/prettier" }, "peerDependencies": { - "eslint": ">=7.28.0", - "prettier": ">=2.0.0" + "@types/eslint": ">=8.0.0", + "eslint": ">=8.0.0", + "prettier": ">=3.0.0" }, "peerDependenciesMeta": { + "@types/eslint": { + "optional": true + }, "eslint-config-prettier": { "optional": true } } }, + "node_modules/eslint-plugin-prettier/node_modules/synckit": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.8.tgz", + "integrity": "sha512-HwOKAP7Wc5aRGYdKH+dw0PRRpbO841v2DENBtjnR5HFWoiNByAl7vrx3p0G/rCyYXQsrxqtX48TImFtPcIHSpQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@pkgr/core": "^0.1.0", + "tslib": "^2.6.2" + }, + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/unts" + } + }, "node_modules/eslint-plugin-rxjs": { "version": "5.0.3", "resolved": "https://registry.npmjs.org/eslint-plugin-rxjs/-/eslint-plugin-rxjs-5.0.3.tgz", @@ -26133,16 +26158,16 @@ } }, "node_modules/prettier": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz", - "integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==", + "version": "3.5.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", + "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", "dev": true, "license": "MIT", "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" diff --git a/package.json b/package.json index 71eb5672f..8c07ff6bb 100644 --- a/package.json +++ b/package.json @@ -101,7 +101,7 @@ "eslint-plugin-license-header": "^0.6.1", "eslint-plugin-playwright": "^1.6.2", "eslint-plugin-prefer-arrow": "1.2.3", - "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-prettier": "5.0.0", "eslint-plugin-rxjs": "^5.0.2", "eslint-plugin-unicorn": "^54.0.0", "husky": "^9.0.11", @@ -117,7 +117,7 @@ "ng-packagr": "17.1.2", "node-stream-zip": "^1.14.0", "nx": "17.3.2", - "prettier": "2.8.8", + "prettier": "3.5.3", "stylelint": "^15.11.0", "stylelint-config-standard-scss": "^7.0.1", "ts-node": "^10.9.2", diff --git a/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.ts b/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.ts index af0d19fd4..a23ccf229 100644 --- a/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.ts +++ b/projects/aca-content/folder-rules/src/rule-details/actions/rule-action.ui-component.ts @@ -276,8 +276,8 @@ export class RuleActionUiComponent implements ControlValueAccessor, OnInit, OnCh ...cardViewPropertiesModel, value: constraintsForDropdownBox && this.readOnly && this.paramsToFormatDisplayedValue.includes(paramDef.name) - ? constraintsForDropdownBox.constraints.find((constraint) => constraint.key === this.parameters[paramDef.name])?.label ?? '' - : this.parameters[paramDef.name] ?? '' + ? (constraintsForDropdownBox.constraints.find((constraint) => constraint.key === this.parameters[paramDef.name])?.label ?? '') + : (this.parameters[paramDef.name] ?? '') }); } }); diff --git a/projects/aca-content/src/lib/components/context-menu/context-menu.service.ts b/projects/aca-content/src/lib/components/context-menu/context-menu.service.ts index 4899e5cb8..9c923c912 100644 --- a/projects/aca-content/src/lib/components/context-menu/context-menu.service.ts +++ b/projects/aca-content/src/lib/components/context-menu/context-menu.service.ts @@ -41,7 +41,11 @@ import { CustomContextMenuComponent } from './custom-context-menu.component'; export class ContextMenuService { private direction: Directionality; - constructor(private injector: Injector, private overlay: Overlay, private userPreferenceService: UserPreferencesService) { + constructor( + private readonly injector: Injector, + private readonly overlay: Overlay, + private readonly userPreferenceService: UserPreferencesService + ) { this.userPreferenceService.select('textOrientation').subscribe((textOrientation) => { this.direction = textOrientation; }); diff --git a/projects/aca-content/src/lib/components/dl-custom-components/name-column/name-column.component.ts b/projects/aca-content/src/lib/components/dl-custom-components/name-column/name-column.component.ts index 6abe5d877..32a268b39 100644 --- a/projects/aca-content/src/lib/components/dl-custom-components/name-column/name-column.component.ts +++ b/projects/aca-content/src/lib/components/dl-custom-components/name-column/name-column.component.ts @@ -60,7 +60,12 @@ export class CustomNameColumnComponent extends NameColumnComponent implements On private readonly destroy = inject(DestroyRef); - constructor(element: ElementRef, private cd: ChangeDetectorRef, private actions$: Actions, private nodesService: NodesApiService) { + constructor( + element: ElementRef, + private readonly cd: ChangeDetectorRef, + private readonly actions$: Actions, + private readonly nodesService: NodesApiService + ) { super(element, nodesService); } diff --git a/projects/aca-content/src/lib/components/files/files.component.ts b/projects/aca-content/src/lib/components/files/files.component.ts index 6a2ca23b5..efb36422e 100644 --- a/projects/aca-content/src/lib/components/files/files.component.ts +++ b/projects/aca-content/src/lib/components/files/files.component.ts @@ -106,7 +106,11 @@ export class FilesComponent extends PageComponent implements OnInit, OnDestroy { return this._errorTranslationKey; } - constructor(private contentApi: ContentApiService, private nodeActionsService: NodeActionsService, private route: ActivatedRoute) { + constructor( + private readonly contentApi: ContentApiService, + private readonly nodeActionsService: NodeActionsService, + private readonly route: ActivatedRoute + ) { super(); } diff --git a/projects/aca-content/src/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.ts b/projects/aca-content/src/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.ts index 08abf1d4b..ef849b6ab 100644 --- a/projects/aca-content/src/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.ts +++ b/projects/aca-content/src/lib/components/info-drawer/library-metadata-tab/library-metadata-form.component.ts @@ -124,7 +124,11 @@ export class LibraryMetadataFormComponent implements OnInit, OnChanges { private readonly destroyRef = inject(DestroyRef); - constructor(private alfrescoApiService: AlfrescoApiService, protected store: Store, private actions$: Actions) {} + constructor( + private readonly alfrescoApiService: AlfrescoApiService, + protected readonly store: Store, + private readonly actions$: Actions + ) {} toggleEdit() { if (this.form.enabled) { diff --git a/projects/aca-content/src/lib/components/knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component.ts b/projects/aca-content/src/lib/components/knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component.ts index d45322c3f..aa54c92e3 100644 --- a/projects/aca-content/src/lib/components/knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component.ts +++ b/projects/aca-content/src/lib/components/knowledge-retrieval/search-ai/search-ai-input-container/search-ai-input-container.component.ts @@ -53,7 +53,11 @@ export class SearchAiInputContainerComponent implements OnInit { inputState$: Observable; isKnowledgeRetrievalPage = false; - constructor(private searchAiService: SearchAiService, private searchNavigationService: SearchAiNavigationService, private router: Router) {} + constructor( + private readonly searchAiService: SearchAiService, + private searchNavigationService: SearchAiNavigationService, + private router: Router + ) {} ngOnInit(): void { this.isKnowledgeRetrievalPage = this.router.url.startsWith('/knowledge-retrieval'); diff --git a/projects/aca-content/src/lib/components/sidenav/components/button-menu.component.ts b/projects/aca-content/src/lib/components/sidenav/components/button-menu.component.ts index 52926e876..39d961a9c 100644 --- a/projects/aca-content/src/lib/components/sidenav/components/button-menu.component.ts +++ b/projects/aca-content/src/lib/components/sidenav/components/button-menu.component.ts @@ -46,7 +46,10 @@ export class ButtonMenuComponent implements OnInit { @Input({ required: true }) item: NavBarLinkRef; - constructor(private cd: ChangeDetectorRef, private overlayContainer: OverlayContainer) { + constructor( + private readonly cd: ChangeDetectorRef, + private readonly overlayContainer: OverlayContainer + ) { this.overlayContainer.getContainerElement().classList.add('aca-menu-panel'); } diff --git a/projects/aca-content/src/lib/components/sidenav/directives/action.directive.ts b/projects/aca-content/src/lib/components/sidenav/directives/action.directive.ts index 82153358d..9b3616791 100644 --- a/projects/aca-content/src/lib/components/sidenav/directives/action.directive.ts +++ b/projects/aca-content/src/lib/components/sidenav/directives/action.directive.ts @@ -52,7 +52,10 @@ export class ActionDirective { this.actionClicked.next(this.action); } - constructor(private router: Router, private store: Store) {} + constructor( + private router: Router, + private store: Store + ) {} private getNavigationCommands(url: string): any[] { const urlTree = this.router.parseUrl(url); const urlSegmentGroup = urlTree.root.children[PRIMARY_OUTLET]; diff --git a/projects/aca-content/src/lib/components/sidenav/directives/active-link.directive.ts b/projects/aca-content/src/lib/components/sidenav/directives/active-link.directive.ts index c6b2c93a7..da7f675c9 100644 --- a/projects/aca-content/src/lib/components/sidenav/directives/active-link.directive.ts +++ b/projects/aca-content/src/lib/components/sidenav/directives/active-link.directive.ts @@ -53,7 +53,12 @@ export class ActiveLinkDirective implements OnInit, AfterContentInit { private readonly destroyRef = inject(DestroyRef); - constructor(private router: Router, private element: ElementRef, private renderer: Renderer2, @Optional() private action?: ActionDirective) {} + constructor( + private router: Router, + private element: ElementRef, + private renderer: Renderer2, + @Optional() private action?: ActionDirective + ) {} ngOnInit() { this.router.events diff --git a/projects/aca-content/src/lib/components/sidenav/directives/expansion-panel.directive.ts b/projects/aca-content/src/lib/components/sidenav/directives/expansion-panel.directive.ts index aefbeb79e..ab5539a82 100644 --- a/projects/aca-content/src/lib/components/sidenav/directives/expansion-panel.directive.ts +++ b/projects/aca-content/src/lib/components/sidenav/directives/expansion-panel.directive.ts @@ -55,7 +55,11 @@ export class ExpansionPanelDirective implements OnInit { private readonly destroyRef = inject(DestroyRef); - constructor(private store: Store, private router: Router, private expansionPanel: MatExpansionPanel) {} + constructor( + private store: Store, + private router: Router, + private expansionPanel: MatExpansionPanel + ) {} hasActiveLinks() { if (this.acaExpansionPanel?.children) { diff --git a/projects/aca-content/src/lib/components/sidenav/directives/menu-panel.directive.ts b/projects/aca-content/src/lib/components/sidenav/directives/menu-panel.directive.ts index 2640c3596..bb56ab644 100644 --- a/projects/aca-content/src/lib/components/sidenav/directives/menu-panel.directive.ts +++ b/projects/aca-content/src/lib/components/sidenav/directives/menu-panel.directive.ts @@ -54,7 +54,10 @@ export class MenuPanelDirective implements OnInit { private readonly destroyRef = inject(DestroyRef); - constructor(private store: Store, private router: Router) {} + constructor( + private store: Store, + private router: Router + ) {} hasActiveLinks() { if (this.acaMenuPanel?.children) { diff --git a/projects/aca-content/src/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.ts b/projects/aca-content/src/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.ts index 780ef7fd6..bfbfab0ed 100644 --- a/projects/aca-content/src/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.ts +++ b/projects/aca-content/src/lib/components/toolbar/toggle-edit-offline/toggle-edit-offline.component.ts @@ -55,7 +55,11 @@ export class ToggleEditOfflineComponent implements OnInit { nodeTitle = ''; isNodeLocked = false; - constructor(private store: Store, private alfrescoApiService: AlfrescoApiService, private extensions: AppExtensionService) { + constructor( + private store: Store, + private alfrescoApiService: AlfrescoApiService, + private extensions: AppExtensionService + ) { this.nodesApi = new NodesApi(this.alfrescoApiService.getInstance()); } diff --git a/projects/aca-content/src/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.ts b/projects/aca-content/src/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.ts index 03b6a2b8a..456393faa 100644 --- a/projects/aca-content/src/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.ts +++ b/projects/aca-content/src/lib/components/toolbar/toggle-favorite-library/toggle-favorite-library.component.ts @@ -60,7 +60,11 @@ export class ToggleFavoriteLibraryComponent implements OnInit { private readonly destroyRef = inject(DestroyRef); - constructor(private store: Store, private appHookService: AppHookService, private router: Router) {} + constructor( + private store: Store, + private appHookService: AppHookService, + private router: Router + ) {} ngOnInit() { const isFavoriteLibraries = this.router.url.startsWith('/favorite/libraries'); diff --git a/projects/aca-content/src/lib/components/toolbar/toggle-favorite/toggle-favorite.component.ts b/projects/aca-content/src/lib/components/toolbar/toggle-favorite/toggle-favorite.component.ts index 3ba662bfc..b87ff9627 100644 --- a/projects/aca-content/src/lib/components/toolbar/toggle-favorite/toggle-favorite.component.ts +++ b/projects/aca-content/src/lib/components/toolbar/toggle-favorite/toggle-favorite.component.ts @@ -55,7 +55,10 @@ export class ToggleFavoriteComponent implements OnInit { selection$: Observable; private reloadOnRoutes: string[] = []; - constructor(private store: Store, private router: Router) { + constructor( + private store: Store, + private router: Router + ) { this.selection$ = this.store.select(getAppSelection); } diff --git a/projects/aca-content/src/lib/components/view-profile/view-profile.component.ts b/projects/aca-content/src/lib/components/view-profile/view-profile.component.ts index 7f20e8344..421fa76a7 100644 --- a/projects/aca-content/src/lib/components/view-profile/view-profile.component.ts +++ b/projects/aca-content/src/lib/components/view-profile/view-profile.component.ts @@ -62,7 +62,11 @@ export class ViewProfileComponent implements OnInit { contactSectionButtonsToggle = true; appNavNarMode$: Observable<'collapsed' | 'expanded'>; - constructor(private router: Router, apiService: AlfrescoApiService, private appService: AppService) { + constructor( + private router: Router, + apiService: AlfrescoApiService, + private appService: AppService + ) { this.peopleApi = new PeopleApi(apiService.getInstance()); this.appNavNarMode$ = appService.appNavNarMode$.pipe(takeUntilDestroyed()); } diff --git a/projects/aca-content/src/lib/services/content-url.service.ts b/projects/aca-content/src/lib/services/content-url.service.ts index 2e0fe3aae..082ad2321 100644 --- a/projects/aca-content/src/lib/services/content-url.service.ts +++ b/projects/aca-content/src/lib/services/content-url.service.ts @@ -33,7 +33,11 @@ import { AlfrescoApiService, ContentVersionService } from '@alfresco/adf-content @Injectable({ providedIn: 'root' }) export class ContentUrlService extends ContentVersionService { - constructor(private store: Store, private contentApiService: ContentApiService, alfrescoApiService: AlfrescoApiService) { + constructor( + private store: Store, + private contentApiService: ContentApiService, + alfrescoApiService: AlfrescoApiService + ) { super(alfrescoApiService); } diff --git a/projects/aca-content/src/lib/services/search-ai-navigation.service.ts b/projects/aca-content/src/lib/services/search-ai-navigation.service.ts index 28359b397..ba4a86fd9 100644 --- a/projects/aca-content/src/lib/services/search-ai-navigation.service.ts +++ b/projects/aca-content/src/lib/services/search-ai-navigation.service.ts @@ -32,7 +32,10 @@ export class SearchAiNavigationService { private previousRoute = ''; - constructor(private router: Router, private searchAiService: SearchAiService) {} + constructor( + private router: Router, + private searchAiService: SearchAiService + ) {} navigateToPreviousRouteOrCloseInput(): void { if (this.router.url.includes(this.knowledgeRetrievalRoute)) { diff --git a/projects/aca-content/viewer/src/lib/services/viewer.service.ts b/projects/aca-content/viewer/src/lib/services/viewer.service.ts index cac15415b..030574238 100644 --- a/projects/aca-content/viewer/src/lib/services/viewer.service.ts +++ b/projects/aca-content/viewer/src/lib/services/viewer.service.ts @@ -42,7 +42,10 @@ export class ViewerService { this._customNodesOrder = customNodesOrder; } - constructor(private preferences: UserPreferencesService, private contentApi: ContentApiService) {} + constructor( + private preferences: UserPreferencesService, + private contentApi: ContentApiService + ) {} recentFileFilters = [ 'TYPE:"content"', diff --git a/projects/aca-playwright-shared/src/api/rules-api.ts b/projects/aca-playwright-shared/src/api/rules-api.ts index e3656666a..02c3e9de3 100644 --- a/projects/aca-playwright-shared/src/api/rules-api.ts +++ b/projects/aca-playwright-shared/src/api/rules-api.ts @@ -234,7 +234,10 @@ export class ActionTypes { ActionTypes.SPECIALISETYPE.value, ActionTypes.SETPROPERTYVALUE.value ]; - constructor(public key: string, public value: RuleAction) {} + constructor( + public key: string, + public value: RuleAction + ) {} } export class ConditionsTypes { @@ -283,5 +286,8 @@ export class ConditionsTypes { ] }); static readonly conditions = [ConditionsTypes.MIMETYPE.value, ConditionsTypes.CMNAME.value, ConditionsTypes.SIZE.value, ConditionsTypes.TAG.value]; - constructor(public key: string, public value: AcaFolderRulesModule) {} + constructor( + public key: string, + public value: AcaFolderRulesModule + ) {} } diff --git a/projects/aca-shared/src/lib/directives/pagination.directive.ts b/projects/aca-shared/src/lib/directives/pagination.directive.ts index ddee85739..8a4423802 100644 --- a/projects/aca-shared/src/lib/directives/pagination.directive.ts +++ b/projects/aca-shared/src/lib/directives/pagination.directive.ts @@ -33,7 +33,11 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; export class PaginationDirective implements OnInit { private readonly destroyRef = inject(DestroyRef); - constructor(private pagination: PaginationComponent, private preferences: UserPreferencesService, private config: AppConfigService) {} + constructor( + private readonly pagination: PaginationComponent, + private readonly preferences: UserPreferencesService, + private readonly config: AppConfigService + ) {} ngOnInit() { this.pagination.supportedPageSizes = this.config.get('pagination.supportedPageSizes'); diff --git a/projects/aca-shared/src/lib/services/content-api.service.ts b/projects/aca-shared/src/lib/services/content-api.service.ts index 6da527492..5bb7f1657 100644 --- a/projects/aca-shared/src/lib/services/content-api.service.ts +++ b/projects/aca-shared/src/lib/services/content-api.service.ts @@ -119,7 +119,10 @@ export class ContentApiService { this._versionsApi = this._versionsApi ?? new VersionsApi(this.api.getInstance()); return this._versionsApi; } - constructor(private api: AlfrescoApiService, private preferences: UserPreferencesService) {} + constructor( + private readonly api: AlfrescoApiService, + private readonly preferences: UserPreferencesService + ) {} /** * Moves a node to the trashcan. diff --git a/projects/aca-shared/src/lib/services/router.extension.service.ts b/projects/aca-shared/src/lib/services/router.extension.service.ts index 891a96487..3eb18b960 100644 --- a/projects/aca-shared/src/lib/services/router.extension.service.ts +++ b/projects/aca-shared/src/lib/services/router.extension.service.ts @@ -36,7 +36,10 @@ export class RouterExtensionService { auth: ['app.auth', 'app.extensions.dataLoaderGuard'] }; - constructor(private router: Router, protected extensions: ExtensionService) {} + constructor( + private readonly router: Router, + protected readonly extensions: ExtensionService + ) {} mapExtensionRoutes() { const routesWithoutParent = []; diff --git a/projects/aca-shared/store/src/actions/contextmenu.actions.ts b/projects/aca-shared/store/src/actions/contextmenu.actions.ts index 593453295..f6e688344 100644 --- a/projects/aca-shared/store/src/actions/contextmenu.actions.ts +++ b/projects/aca-shared/store/src/actions/contextmenu.actions.ts @@ -35,5 +35,8 @@ export class ContextMenu implements Action { export class CustomContextMenu implements Action { readonly type = ContextMenuActionTypes.CustomContextMenu; - constructor(public event: MouseEvent, public payload: ContentActionRef[] = []) {} + constructor( + public readonly event: MouseEvent, + public readonly payload: ContentActionRef[] = [] + ) {} } diff --git a/projects/aca-shared/store/src/actions/library.actions.ts b/projects/aca-shared/store/src/actions/library.actions.ts index 35135eea4..f55d86a5e 100644 --- a/projects/aca-shared/store/src/actions/library.actions.ts +++ b/projects/aca-shared/store/src/actions/library.actions.ts @@ -47,7 +47,10 @@ export class CreateLibraryAction implements Action { export class NavigateLibraryAction implements Action { readonly type = LibraryActionTypes.Navigate; - constructor(public payload?: string, public route?: string) {} + constructor( + public payload?: string, + public route?: string + ) {} } export class UpdateLibraryAction implements Action { @@ -59,5 +62,8 @@ export class UpdateLibraryAction implements Action { export class LeaveLibraryAction implements Action { readonly type = LibraryActionTypes.Leave; - constructor(public payload?: string, public configuration?: ModalConfiguration) {} + constructor( + public payload?: string, + public configuration?: ModalConfiguration + ) {} } diff --git a/projects/aca-shared/store/src/actions/node.actions.ts b/projects/aca-shared/store/src/actions/node.actions.ts index dc76e8084..571e35213 100644 --- a/projects/aca-shared/store/src/actions/node.actions.ts +++ b/projects/aca-shared/store/src/actions/node.actions.ts @@ -61,7 +61,10 @@ export class SetSelectedNodesAction implements Action { export class DeleteNodesAction implements Action { readonly type = NodeActionTypes.Delete; - constructor(public payload: NodeEntry[] = [], public allowUndo = true) {} + constructor( + public payload: NodeEntry[] = [], + public allowUndo = true + ) {} } export class UndoDeleteNodesAction implements Action { @@ -85,7 +88,10 @@ export class PurgeDeletedNodesAction implements Action { export class DownloadNodesAction implements Action { readonly type = NodeActionTypes.Download; - constructor(public payload: NodeEntry[] = [], public configuration?: ModalConfiguration) {} + constructor( + public payload: NodeEntry[] = [], + public configuration?: ModalConfiguration + ) {} } export class CreateFolderAction implements Action { @@ -97,13 +103,19 @@ export class CreateFolderAction implements Action { export class EditFolderAction implements Action { readonly type = NodeActionTypes.EditFolder; - constructor(public payload: NodeEntry, public configuration?: ModalConfiguration) {} + constructor( + public payload: NodeEntry, + public configuration?: ModalConfiguration + ) {} } export class ShareNodeAction implements Action { readonly type = NodeActionTypes.Share; - constructor(public payload: NodeEntry, public configuration?: ModalConfiguration) {} + constructor( + public payload: NodeEntry, + public configuration?: ModalConfiguration + ) {} } export class UnshareNodesAction implements Action { @@ -115,13 +127,19 @@ export class UnshareNodesAction implements Action { export class CopyNodesAction implements Action { readonly type = NodeActionTypes.Copy; - constructor(public payload: Array, public configuration?: ModalConfiguration) {} + constructor( + public payload: Array, + public configuration?: ModalConfiguration + ) {} } export class MoveNodesAction implements Action { readonly type = NodeActionTypes.Move; - constructor(public payload: Array, public configuration?: ModalConfiguration) {} + constructor( + public payload: Array, + public configuration?: ModalConfiguration + ) {} } export class ManagePermissionsAction implements Action { @@ -144,7 +162,10 @@ export class PrintFileAction implements Action { export class ManageVersionsAction implements Action { readonly type = NodeActionTypes.ManageVersions; - constructor(public payload: NodeEntry, public configuration?: ModalConfiguration) {} + constructor( + public payload: NodeEntry, + public configuration?: ModalConfiguration + ) {} } export class EditOfflineAction implements Action { @@ -173,7 +194,10 @@ export class RemoveFavoriteAction implements Action { export class ManageAspectsAction implements Action { readonly type = NodeActionTypes.ChangeAspects; - constructor(public payload: NodeEntry, public configuration?: ModalConfiguration) {} + constructor( + public payload: NodeEntry, + public configuration?: ModalConfiguration + ) {} } export class ManageRulesAction implements Action { diff --git a/projects/aca-shared/store/src/actions/search-ai.actions.ts b/projects/aca-shared/store/src/actions/search-ai.actions.ts index e3a1d6122..dba0a08ad 100644 --- a/projects/aca-shared/store/src/actions/search-ai.actions.ts +++ b/projects/aca-shared/store/src/actions/search-ai.actions.ts @@ -38,5 +38,8 @@ export class SearchByTermAiAction implements Action { export class ToggleAISearchInput implements Action { readonly type = SearchAiActionTypes.ToggleAiSearchInput; - constructor(public agentId: string, public searchTerm?: string) {} + constructor( + public agentId: string, + public searchTerm?: string + ) {} } diff --git a/projects/aca-shared/store/src/actions/search.actions.ts b/projects/aca-shared/store/src/actions/search.actions.ts index 6dbaa9934..c97402f99 100644 --- a/projects/aca-shared/store/src/actions/search.actions.ts +++ b/projects/aca-shared/store/src/actions/search.actions.ts @@ -36,5 +36,8 @@ export class SearchAction implements Action { export class SearchByTermAction implements Action { readonly type = SearchActionTypes.SearchByTerm; - constructor(public payload: string, public searchOptions?: SearchOptionModel[]) {} + constructor( + public payload: string, + public searchOptions?: SearchOptionModel[] + ) {} } diff --git a/projects/aca-shared/store/src/actions/snackbar.actions.ts b/projects/aca-shared/store/src/actions/snackbar.actions.ts index 2556f3faa..13eec4dd5 100644 --- a/projects/aca-shared/store/src/actions/snackbar.actions.ts +++ b/projects/aca-shared/store/src/actions/snackbar.actions.ts @@ -38,7 +38,10 @@ export interface SnackbarAction extends Action { } export class SnackbarUserAction { - constructor(public title: string, public action: Action) {} + constructor( + public title: string, + public action: Action + ) {} } export class SnackbarInfoAction implements SnackbarAction { @@ -46,7 +49,10 @@ export class SnackbarInfoAction implements SnackbarAction { userAction?: SnackbarUserAction; - constructor(public payload: string, public params?: any) {} + constructor( + public payload: string, + public params?: any + ) {} } export class SnackbarWarningAction implements SnackbarAction { @@ -54,7 +60,10 @@ export class SnackbarWarningAction implements SnackbarAction { userAction?: SnackbarUserAction; - constructor(public payload: string, public params?: any) {} + constructor( + public payload: string, + public params?: any + ) {} } export class SnackbarErrorAction implements SnackbarAction { @@ -62,5 +71,8 @@ export class SnackbarErrorAction implements SnackbarAction { userAction?: SnackbarUserAction; - constructor(public payload: string, public params?: any) {} + constructor( + public payload: string, + public params?: any + ) {} } diff --git a/projects/aca-shared/store/src/actions/upload.actions.ts b/projects/aca-shared/store/src/actions/upload.actions.ts index 2e23f8917..5cf16332a 100644 --- a/projects/aca-shared/store/src/actions/upload.actions.ts +++ b/projects/aca-shared/store/src/actions/upload.actions.ts @@ -46,5 +46,8 @@ export class UploadFolderAction implements Action { export class UploadFileVersionAction implements Action { readonly type = UploadActionTypes.UploadFileVersion; - constructor(public payload: CustomEvent, public configuration?: ModalConfiguration) {} + constructor( + public payload: CustomEvent, + public configuration?: ModalConfiguration + ) {} } diff --git a/projects/aca-shared/store/src/actions/viewer.actions.ts b/projects/aca-shared/store/src/actions/viewer.actions.ts index c2fcd4a9e..6db6ec67c 100644 --- a/projects/aca-shared/store/src/actions/viewer.actions.ts +++ b/projects/aca-shared/store/src/actions/viewer.actions.ts @@ -43,19 +43,29 @@ export interface ViewNodeExtras { export class ViewFileAction implements Action { readonly type = ViewerActionTypes.ViewFile; - constructor(public payload?: NodeEntry, public parentId?: string) {} + constructor( + public payload?: NodeEntry, + public parentId?: string + ) {} } export class ViewNodeAction implements Action { readonly type = ViewerActionTypes.ViewNode; - constructor(public nodeId: string, public viewNodeExtras?: ViewNodeExtras) {} + constructor( + public nodeId: string, + public viewNodeExtras?: ViewNodeExtras + ) {} } export class ViewNodeVersionAction implements Action { readonly type = ViewerActionTypes.ViewNodeVersion; - constructor(public nodeId: string, public versionId: string, public viewNodeExtras?: ViewNodeExtras) {} + constructor( + public nodeId: string, + public versionId: string, + public viewNodeExtras?: ViewNodeExtras + ) {} } export class FullscreenViewerAction implements Action { @@ -77,5 +87,8 @@ export class RefreshPreviewAction implements Action { export class PluginPreviewAction implements Action { readonly type = ViewerActionTypes.PluginPreview; - constructor(public pluginRoute: string, public nodeId: string) {} + constructor( + public pluginRoute: string, + public nodeId: string + ) {} }