mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACS-9602] resolve issue for upgrading prettier (#4554)
* Build(deps-dev): Bump prettier from 2.8.8 to 3.5.3 Bumps [prettier](https://github.com/prettier/prettier) from 2.8.8 to 3.5.3. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.8.8...3.5.3) --- updated-dependencies: - dependency-name: prettier dependency-version: 3.5.3 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Resolve issue for upgrading prettier * Update ADF --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
parent
325d072c4d
commit
bf909d9a5b
53
package-lock.json
generated
53
package-lock.json
generated
@ -80,7 +80,7 @@
|
|||||||
"eslint-plugin-license-header": "^0.6.1",
|
"eslint-plugin-license-header": "^0.6.1",
|
||||||
"eslint-plugin-playwright": "^1.6.2",
|
"eslint-plugin-playwright": "^1.6.2",
|
||||||
"eslint-plugin-prefer-arrow": "1.2.3",
|
"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-rxjs": "^5.0.2",
|
||||||
"eslint-plugin-unicorn": "^54.0.0",
|
"eslint-plugin-unicorn": "^54.0.0",
|
||||||
"husky": "^9.0.11",
|
"husky": "^9.0.11",
|
||||||
@ -96,7 +96,7 @@
|
|||||||
"ng-packagr": "17.1.2",
|
"ng-packagr": "17.1.2",
|
||||||
"node-stream-zip": "^1.14.0",
|
"node-stream-zip": "^1.14.0",
|
||||||
"nx": "17.3.2",
|
"nx": "17.3.2",
|
||||||
"prettier": "2.8.8",
|
"prettier": "3.5.3",
|
||||||
"stylelint": "^15.11.0",
|
"stylelint": "^15.11.0",
|
||||||
"stylelint-config-standard-scss": "^7.0.1",
|
"stylelint-config-standard-scss": "^7.0.1",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
@ -16699,27 +16699,52 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/eslint-plugin-prettier": {
|
"node_modules/eslint-plugin-prettier": {
|
||||||
"version": "4.2.1",
|
"version": "5.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.0.0.tgz",
|
||||||
"integrity": "sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==",
|
"integrity": "sha512-AgaZCVuYDXHUGxj/ZGu1u8H8CYgDY3iG6w5kUFw4AzMVXzB7VvbKgYR4nATIN+OvUrghMbiDLeimVjVY5ilq3w==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"prettier-linter-helpers": "^1.0.0"
|
"prettier-linter-helpers": "^1.0.0",
|
||||||
|
"synckit": "^0.8.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.0.0"
|
"node": "^14.18.0 || >=16.0.0"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://opencollective.com/prettier"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"eslint": ">=7.28.0",
|
"@types/eslint": ">=8.0.0",
|
||||||
"prettier": ">=2.0.0"
|
"eslint": ">=8.0.0",
|
||||||
|
"prettier": ">=3.0.0"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
|
"@types/eslint": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
"eslint-config-prettier": {
|
"eslint-config-prettier": {
|
||||||
"optional": true
|
"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": {
|
"node_modules/eslint-plugin-rxjs": {
|
||||||
"version": "5.0.3",
|
"version": "5.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/eslint-plugin-rxjs/-/eslint-plugin-rxjs-5.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/eslint-plugin-rxjs/-/eslint-plugin-rxjs-5.0.3.tgz",
|
||||||
@ -26133,16 +26158,16 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/prettier": {
|
"node_modules/prettier": {
|
||||||
"version": "2.8.8",
|
"version": "3.5.3",
|
||||||
"resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.8.tgz",
|
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz",
|
||||||
"integrity": "sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==",
|
"integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bin": {
|
"bin": {
|
||||||
"prettier": "bin-prettier.js"
|
"prettier": "bin/prettier.cjs"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10.13.0"
|
"node": ">=14"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/prettier/prettier?sponsor=1"
|
"url": "https://github.com/prettier/prettier?sponsor=1"
|
||||||
|
@ -101,7 +101,7 @@
|
|||||||
"eslint-plugin-license-header": "^0.6.1",
|
"eslint-plugin-license-header": "^0.6.1",
|
||||||
"eslint-plugin-playwright": "^1.6.2",
|
"eslint-plugin-playwright": "^1.6.2",
|
||||||
"eslint-plugin-prefer-arrow": "1.2.3",
|
"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-rxjs": "^5.0.2",
|
||||||
"eslint-plugin-unicorn": "^54.0.0",
|
"eslint-plugin-unicorn": "^54.0.0",
|
||||||
"husky": "^9.0.11",
|
"husky": "^9.0.11",
|
||||||
@ -117,7 +117,7 @@
|
|||||||
"ng-packagr": "17.1.2",
|
"ng-packagr": "17.1.2",
|
||||||
"node-stream-zip": "^1.14.0",
|
"node-stream-zip": "^1.14.0",
|
||||||
"nx": "17.3.2",
|
"nx": "17.3.2",
|
||||||
"prettier": "2.8.8",
|
"prettier": "3.5.3",
|
||||||
"stylelint": "^15.11.0",
|
"stylelint": "^15.11.0",
|
||||||
"stylelint-config-standard-scss": "^7.0.1",
|
"stylelint-config-standard-scss": "^7.0.1",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
|
@ -276,8 +276,8 @@ export class RuleActionUiComponent implements ControlValueAccessor, OnInit, OnCh
|
|||||||
...cardViewPropertiesModel,
|
...cardViewPropertiesModel,
|
||||||
value:
|
value:
|
||||||
constraintsForDropdownBox && this.readOnly && this.paramsToFormatDisplayedValue.includes(paramDef.name)
|
constraintsForDropdownBox && this.readOnly && this.paramsToFormatDisplayedValue.includes(paramDef.name)
|
||||||
? constraintsForDropdownBox.constraints.find((constraint) => constraint.key === this.parameters[paramDef.name])?.label ?? ''
|
? (constraintsForDropdownBox.constraints.find((constraint) => constraint.key === this.parameters[paramDef.name])?.label ?? '')
|
||||||
: this.parameters[paramDef.name] ?? ''
|
: (this.parameters[paramDef.name] ?? '')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -41,7 +41,11 @@ import { CustomContextMenuComponent } from './custom-context-menu.component';
|
|||||||
export class ContextMenuService {
|
export class ContextMenuService {
|
||||||
private direction: Directionality;
|
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.userPreferenceService.select('textOrientation').subscribe((textOrientation) => {
|
||||||
this.direction = textOrientation;
|
this.direction = textOrientation;
|
||||||
});
|
});
|
||||||
|
@ -60,7 +60,12 @@ export class CustomNameColumnComponent extends NameColumnComponent implements On
|
|||||||
|
|
||||||
private readonly destroy = inject(DestroyRef);
|
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);
|
super(element, nodesService);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,7 +106,11 @@ export class FilesComponent extends PageComponent implements OnInit, OnDestroy {
|
|||||||
return this._errorTranslationKey;
|
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();
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -124,7 +124,11 @@ export class LibraryMetadataFormComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
private readonly destroyRef = inject(DestroyRef);
|
private readonly destroyRef = inject(DestroyRef);
|
||||||
|
|
||||||
constructor(private alfrescoApiService: AlfrescoApiService, protected store: Store<AppStore>, private actions$: Actions) {}
|
constructor(
|
||||||
|
private readonly alfrescoApiService: AlfrescoApiService,
|
||||||
|
protected readonly store: Store<AppStore>,
|
||||||
|
private readonly actions$: Actions
|
||||||
|
) {}
|
||||||
|
|
||||||
toggleEdit() {
|
toggleEdit() {
|
||||||
if (this.form.enabled) {
|
if (this.form.enabled) {
|
||||||
|
@ -53,7 +53,11 @@ export class SearchAiInputContainerComponent implements OnInit {
|
|||||||
inputState$: Observable<SearchAiInputState>;
|
inputState$: Observable<SearchAiInputState>;
|
||||||
isKnowledgeRetrievalPage = false;
|
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 {
|
ngOnInit(): void {
|
||||||
this.isKnowledgeRetrievalPage = this.router.url.startsWith('/knowledge-retrieval');
|
this.isKnowledgeRetrievalPage = this.router.url.startsWith('/knowledge-retrieval');
|
||||||
|
@ -46,7 +46,10 @@ export class ButtonMenuComponent implements OnInit {
|
|||||||
@Input({ required: true })
|
@Input({ required: true })
|
||||||
item: NavBarLinkRef;
|
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');
|
this.overlayContainer.getContainerElement().classList.add('aca-menu-panel');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,7 +52,10 @@ export class ActionDirective {
|
|||||||
this.actionClicked.next(this.action);
|
this.actionClicked.next(this.action);
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(private router: Router, private store: Store<AppStore>) {}
|
constructor(
|
||||||
|
private router: Router,
|
||||||
|
private store: Store<AppStore>
|
||||||
|
) {}
|
||||||
private getNavigationCommands(url: string): any[] {
|
private getNavigationCommands(url: string): any[] {
|
||||||
const urlTree = this.router.parseUrl(url);
|
const urlTree = this.router.parseUrl(url);
|
||||||
const urlSegmentGroup = urlTree.root.children[PRIMARY_OUTLET];
|
const urlSegmentGroup = urlTree.root.children[PRIMARY_OUTLET];
|
||||||
|
@ -53,7 +53,12 @@ export class ActiveLinkDirective implements OnInit, AfterContentInit {
|
|||||||
|
|
||||||
private readonly destroyRef = inject(DestroyRef);
|
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() {
|
ngOnInit() {
|
||||||
this.router.events
|
this.router.events
|
||||||
|
@ -55,7 +55,11 @@ export class ExpansionPanelDirective implements OnInit {
|
|||||||
|
|
||||||
private readonly destroyRef = inject(DestroyRef);
|
private readonly destroyRef = inject(DestroyRef);
|
||||||
|
|
||||||
constructor(private store: Store<any>, private router: Router, private expansionPanel: MatExpansionPanel) {}
|
constructor(
|
||||||
|
private store: Store<any>,
|
||||||
|
private router: Router,
|
||||||
|
private expansionPanel: MatExpansionPanel
|
||||||
|
) {}
|
||||||
|
|
||||||
hasActiveLinks() {
|
hasActiveLinks() {
|
||||||
if (this.acaExpansionPanel?.children) {
|
if (this.acaExpansionPanel?.children) {
|
||||||
|
@ -54,7 +54,10 @@ export class MenuPanelDirective implements OnInit {
|
|||||||
|
|
||||||
private readonly destroyRef = inject(DestroyRef);
|
private readonly destroyRef = inject(DestroyRef);
|
||||||
|
|
||||||
constructor(private store: Store<any>, private router: Router) {}
|
constructor(
|
||||||
|
private store: Store<any>,
|
||||||
|
private router: Router
|
||||||
|
) {}
|
||||||
|
|
||||||
hasActiveLinks() {
|
hasActiveLinks() {
|
||||||
if (this.acaMenuPanel?.children) {
|
if (this.acaMenuPanel?.children) {
|
||||||
|
@ -55,7 +55,11 @@ export class ToggleEditOfflineComponent implements OnInit {
|
|||||||
nodeTitle = '';
|
nodeTitle = '';
|
||||||
isNodeLocked = false;
|
isNodeLocked = false;
|
||||||
|
|
||||||
constructor(private store: Store<AppStore>, private alfrescoApiService: AlfrescoApiService, private extensions: AppExtensionService) {
|
constructor(
|
||||||
|
private store: Store<AppStore>,
|
||||||
|
private alfrescoApiService: AlfrescoApiService,
|
||||||
|
private extensions: AppExtensionService
|
||||||
|
) {
|
||||||
this.nodesApi = new NodesApi(this.alfrescoApiService.getInstance());
|
this.nodesApi = new NodesApi(this.alfrescoApiService.getInstance());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,7 +60,11 @@ export class ToggleFavoriteLibraryComponent implements OnInit {
|
|||||||
|
|
||||||
private readonly destroyRef = inject(DestroyRef);
|
private readonly destroyRef = inject(DestroyRef);
|
||||||
|
|
||||||
constructor(private store: Store<AppStore>, private appHookService: AppHookService, private router: Router) {}
|
constructor(
|
||||||
|
private store: Store<AppStore>,
|
||||||
|
private appHookService: AppHookService,
|
||||||
|
private router: Router
|
||||||
|
) {}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
const isFavoriteLibraries = this.router.url.startsWith('/favorite/libraries');
|
const isFavoriteLibraries = this.router.url.startsWith('/favorite/libraries');
|
||||||
|
@ -55,7 +55,10 @@ export class ToggleFavoriteComponent implements OnInit {
|
|||||||
selection$: Observable<SelectionState>;
|
selection$: Observable<SelectionState>;
|
||||||
private reloadOnRoutes: string[] = [];
|
private reloadOnRoutes: string[] = [];
|
||||||
|
|
||||||
constructor(private store: Store<AppStore>, private router: Router) {
|
constructor(
|
||||||
|
private store: Store<AppStore>,
|
||||||
|
private router: Router
|
||||||
|
) {
|
||||||
this.selection$ = this.store.select(getAppSelection);
|
this.selection$ = this.store.select(getAppSelection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,7 +62,11 @@ export class ViewProfileComponent implements OnInit {
|
|||||||
contactSectionButtonsToggle = true;
|
contactSectionButtonsToggle = true;
|
||||||
appNavNarMode$: Observable<'collapsed' | 'expanded'>;
|
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.peopleApi = new PeopleApi(apiService.getInstance());
|
||||||
this.appNavNarMode$ = appService.appNavNarMode$.pipe(takeUntilDestroyed());
|
this.appNavNarMode$ = appService.appNavNarMode$.pipe(takeUntilDestroyed());
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,11 @@ import { AlfrescoApiService, ContentVersionService } from '@alfresco/adf-content
|
|||||||
|
|
||||||
@Injectable({ providedIn: 'root' })
|
@Injectable({ providedIn: 'root' })
|
||||||
export class ContentUrlService extends ContentVersionService {
|
export class ContentUrlService extends ContentVersionService {
|
||||||
constructor(private store: Store<AppStore>, private contentApiService: ContentApiService, alfrescoApiService: AlfrescoApiService) {
|
constructor(
|
||||||
|
private store: Store<AppStore>,
|
||||||
|
private contentApiService: ContentApiService,
|
||||||
|
alfrescoApiService: AlfrescoApiService
|
||||||
|
) {
|
||||||
super(alfrescoApiService);
|
super(alfrescoApiService);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,7 +32,10 @@ export class SearchAiNavigationService {
|
|||||||
|
|
||||||
private previousRoute = '';
|
private previousRoute = '';
|
||||||
|
|
||||||
constructor(private router: Router, private searchAiService: SearchAiService) {}
|
constructor(
|
||||||
|
private router: Router,
|
||||||
|
private searchAiService: SearchAiService
|
||||||
|
) {}
|
||||||
|
|
||||||
navigateToPreviousRouteOrCloseInput(): void {
|
navigateToPreviousRouteOrCloseInput(): void {
|
||||||
if (this.router.url.includes(this.knowledgeRetrievalRoute)) {
|
if (this.router.url.includes(this.knowledgeRetrievalRoute)) {
|
||||||
|
@ -42,7 +42,10 @@ export class ViewerService {
|
|||||||
this._customNodesOrder = customNodesOrder;
|
this._customNodesOrder = customNodesOrder;
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(private preferences: UserPreferencesService, private contentApi: ContentApiService) {}
|
constructor(
|
||||||
|
private preferences: UserPreferencesService,
|
||||||
|
private contentApi: ContentApiService
|
||||||
|
) {}
|
||||||
|
|
||||||
recentFileFilters = [
|
recentFileFilters = [
|
||||||
'TYPE:"content"',
|
'TYPE:"content"',
|
||||||
|
@ -234,7 +234,10 @@ export class ActionTypes {
|
|||||||
ActionTypes.SPECIALISETYPE.value,
|
ActionTypes.SPECIALISETYPE.value,
|
||||||
ActionTypes.SETPROPERTYVALUE.value
|
ActionTypes.SETPROPERTYVALUE.value
|
||||||
];
|
];
|
||||||
constructor(public key: string, public value: RuleAction) {}
|
constructor(
|
||||||
|
public key: string,
|
||||||
|
public value: RuleAction
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ConditionsTypes {
|
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];
|
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
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,11 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|||||||
export class PaginationDirective implements OnInit {
|
export class PaginationDirective implements OnInit {
|
||||||
private readonly destroyRef = inject(DestroyRef);
|
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() {
|
ngOnInit() {
|
||||||
this.pagination.supportedPageSizes = this.config.get('pagination.supportedPageSizes');
|
this.pagination.supportedPageSizes = this.config.get('pagination.supportedPageSizes');
|
||||||
|
@ -119,7 +119,10 @@ export class ContentApiService {
|
|||||||
this._versionsApi = this._versionsApi ?? new VersionsApi(this.api.getInstance());
|
this._versionsApi = this._versionsApi ?? new VersionsApi(this.api.getInstance());
|
||||||
return this._versionsApi;
|
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.
|
* Moves a node to the trashcan.
|
||||||
|
@ -36,7 +36,10 @@ export class RouterExtensionService {
|
|||||||
auth: ['app.auth', 'app.extensions.dataLoaderGuard']
|
auth: ['app.auth', 'app.extensions.dataLoaderGuard']
|
||||||
};
|
};
|
||||||
|
|
||||||
constructor(private router: Router, protected extensions: ExtensionService) {}
|
constructor(
|
||||||
|
private readonly router: Router,
|
||||||
|
protected readonly extensions: ExtensionService
|
||||||
|
) {}
|
||||||
|
|
||||||
mapExtensionRoutes() {
|
mapExtensionRoutes() {
|
||||||
const routesWithoutParent = [];
|
const routesWithoutParent = [];
|
||||||
|
@ -35,5 +35,8 @@ export class ContextMenu implements Action {
|
|||||||
export class CustomContextMenu implements Action {
|
export class CustomContextMenu implements Action {
|
||||||
readonly type = ContextMenuActionTypes.CustomContextMenu;
|
readonly type = ContextMenuActionTypes.CustomContextMenu;
|
||||||
|
|
||||||
constructor(public event: MouseEvent, public payload: ContentActionRef[] = []) {}
|
constructor(
|
||||||
|
public readonly event: MouseEvent,
|
||||||
|
public readonly payload: ContentActionRef[] = []
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,10 @@ export class CreateLibraryAction implements Action {
|
|||||||
export class NavigateLibraryAction implements Action {
|
export class NavigateLibraryAction implements Action {
|
||||||
readonly type = LibraryActionTypes.Navigate;
|
readonly type = LibraryActionTypes.Navigate;
|
||||||
|
|
||||||
constructor(public payload?: string, public route?: string) {}
|
constructor(
|
||||||
|
public payload?: string,
|
||||||
|
public route?: string
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class UpdateLibraryAction implements Action {
|
export class UpdateLibraryAction implements Action {
|
||||||
@ -59,5 +62,8 @@ export class UpdateLibraryAction implements Action {
|
|||||||
export class LeaveLibraryAction implements Action {
|
export class LeaveLibraryAction implements Action {
|
||||||
readonly type = LibraryActionTypes.Leave;
|
readonly type = LibraryActionTypes.Leave;
|
||||||
|
|
||||||
constructor(public payload?: string, public configuration?: ModalConfiguration) {}
|
constructor(
|
||||||
|
public payload?: string,
|
||||||
|
public configuration?: ModalConfiguration
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,10 @@ export class SetSelectedNodesAction implements Action {
|
|||||||
export class DeleteNodesAction implements Action {
|
export class DeleteNodesAction implements Action {
|
||||||
readonly type = NodeActionTypes.Delete;
|
readonly type = NodeActionTypes.Delete;
|
||||||
|
|
||||||
constructor(public payload: NodeEntry[] = [], public allowUndo = true) {}
|
constructor(
|
||||||
|
public payload: NodeEntry[] = [],
|
||||||
|
public allowUndo = true
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class UndoDeleteNodesAction implements Action {
|
export class UndoDeleteNodesAction implements Action {
|
||||||
@ -85,7 +88,10 @@ export class PurgeDeletedNodesAction implements Action {
|
|||||||
export class DownloadNodesAction implements Action {
|
export class DownloadNodesAction implements Action {
|
||||||
readonly type = NodeActionTypes.Download;
|
readonly type = NodeActionTypes.Download;
|
||||||
|
|
||||||
constructor(public payload: NodeEntry[] = [], public configuration?: ModalConfiguration) {}
|
constructor(
|
||||||
|
public payload: NodeEntry[] = [],
|
||||||
|
public configuration?: ModalConfiguration
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CreateFolderAction implements Action {
|
export class CreateFolderAction implements Action {
|
||||||
@ -97,13 +103,19 @@ export class CreateFolderAction implements Action {
|
|||||||
export class EditFolderAction implements Action {
|
export class EditFolderAction implements Action {
|
||||||
readonly type = NodeActionTypes.EditFolder;
|
readonly type = NodeActionTypes.EditFolder;
|
||||||
|
|
||||||
constructor(public payload: NodeEntry, public configuration?: ModalConfiguration) {}
|
constructor(
|
||||||
|
public payload: NodeEntry,
|
||||||
|
public configuration?: ModalConfiguration
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ShareNodeAction implements Action {
|
export class ShareNodeAction implements Action {
|
||||||
readonly type = NodeActionTypes.Share;
|
readonly type = NodeActionTypes.Share;
|
||||||
|
|
||||||
constructor(public payload: NodeEntry, public configuration?: ModalConfiguration) {}
|
constructor(
|
||||||
|
public payload: NodeEntry,
|
||||||
|
public configuration?: ModalConfiguration
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class UnshareNodesAction implements Action {
|
export class UnshareNodesAction implements Action {
|
||||||
@ -115,13 +127,19 @@ export class UnshareNodesAction implements Action {
|
|||||||
export class CopyNodesAction implements Action {
|
export class CopyNodesAction implements Action {
|
||||||
readonly type = NodeActionTypes.Copy;
|
readonly type = NodeActionTypes.Copy;
|
||||||
|
|
||||||
constructor(public payload: Array<NodeEntry>, public configuration?: ModalConfiguration) {}
|
constructor(
|
||||||
|
public payload: Array<NodeEntry>,
|
||||||
|
public configuration?: ModalConfiguration
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class MoveNodesAction implements Action {
|
export class MoveNodesAction implements Action {
|
||||||
readonly type = NodeActionTypes.Move;
|
readonly type = NodeActionTypes.Move;
|
||||||
|
|
||||||
constructor(public payload: Array<NodeEntry>, public configuration?: ModalConfiguration) {}
|
constructor(
|
||||||
|
public payload: Array<NodeEntry>,
|
||||||
|
public configuration?: ModalConfiguration
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ManagePermissionsAction implements Action {
|
export class ManagePermissionsAction implements Action {
|
||||||
@ -144,7 +162,10 @@ export class PrintFileAction implements Action {
|
|||||||
export class ManageVersionsAction implements Action {
|
export class ManageVersionsAction implements Action {
|
||||||
readonly type = NodeActionTypes.ManageVersions;
|
readonly type = NodeActionTypes.ManageVersions;
|
||||||
|
|
||||||
constructor(public payload: NodeEntry, public configuration?: ModalConfiguration) {}
|
constructor(
|
||||||
|
public payload: NodeEntry,
|
||||||
|
public configuration?: ModalConfiguration
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class EditOfflineAction implements Action {
|
export class EditOfflineAction implements Action {
|
||||||
@ -173,7 +194,10 @@ export class RemoveFavoriteAction implements Action {
|
|||||||
export class ManageAspectsAction implements Action {
|
export class ManageAspectsAction implements Action {
|
||||||
readonly type = NodeActionTypes.ChangeAspects;
|
readonly type = NodeActionTypes.ChangeAspects;
|
||||||
|
|
||||||
constructor(public payload: NodeEntry, public configuration?: ModalConfiguration) {}
|
constructor(
|
||||||
|
public payload: NodeEntry,
|
||||||
|
public configuration?: ModalConfiguration
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ManageRulesAction implements Action {
|
export class ManageRulesAction implements Action {
|
||||||
|
@ -38,5 +38,8 @@ export class SearchByTermAiAction implements Action {
|
|||||||
export class ToggleAISearchInput implements Action {
|
export class ToggleAISearchInput implements Action {
|
||||||
readonly type = SearchAiActionTypes.ToggleAiSearchInput;
|
readonly type = SearchAiActionTypes.ToggleAiSearchInput;
|
||||||
|
|
||||||
constructor(public agentId: string, public searchTerm?: string) {}
|
constructor(
|
||||||
|
public agentId: string,
|
||||||
|
public searchTerm?: string
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
@ -36,5 +36,8 @@ export class SearchAction implements Action {
|
|||||||
|
|
||||||
export class SearchByTermAction implements Action {
|
export class SearchByTermAction implements Action {
|
||||||
readonly type = SearchActionTypes.SearchByTerm;
|
readonly type = SearchActionTypes.SearchByTerm;
|
||||||
constructor(public payload: string, public searchOptions?: SearchOptionModel[]) {}
|
constructor(
|
||||||
|
public payload: string,
|
||||||
|
public searchOptions?: SearchOptionModel[]
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,10 @@ export interface SnackbarAction extends Action {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export class SnackbarUserAction {
|
export class SnackbarUserAction {
|
||||||
constructor(public title: string, public action: Action) {}
|
constructor(
|
||||||
|
public title: string,
|
||||||
|
public action: Action
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class SnackbarInfoAction implements SnackbarAction {
|
export class SnackbarInfoAction implements SnackbarAction {
|
||||||
@ -46,7 +49,10 @@ export class SnackbarInfoAction implements SnackbarAction {
|
|||||||
|
|
||||||
userAction?: SnackbarUserAction;
|
userAction?: SnackbarUserAction;
|
||||||
|
|
||||||
constructor(public payload: string, public params?: any) {}
|
constructor(
|
||||||
|
public payload: string,
|
||||||
|
public params?: any
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class SnackbarWarningAction implements SnackbarAction {
|
export class SnackbarWarningAction implements SnackbarAction {
|
||||||
@ -54,7 +60,10 @@ export class SnackbarWarningAction implements SnackbarAction {
|
|||||||
|
|
||||||
userAction?: SnackbarUserAction;
|
userAction?: SnackbarUserAction;
|
||||||
|
|
||||||
constructor(public payload: string, public params?: any) {}
|
constructor(
|
||||||
|
public payload: string,
|
||||||
|
public params?: any
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class SnackbarErrorAction implements SnackbarAction {
|
export class SnackbarErrorAction implements SnackbarAction {
|
||||||
@ -62,5 +71,8 @@ export class SnackbarErrorAction implements SnackbarAction {
|
|||||||
|
|
||||||
userAction?: SnackbarUserAction;
|
userAction?: SnackbarUserAction;
|
||||||
|
|
||||||
constructor(public payload: string, public params?: any) {}
|
constructor(
|
||||||
|
public payload: string,
|
||||||
|
public params?: any
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
@ -46,5 +46,8 @@ export class UploadFolderAction implements Action {
|
|||||||
export class UploadFileVersionAction implements Action {
|
export class UploadFileVersionAction implements Action {
|
||||||
readonly type = UploadActionTypes.UploadFileVersion;
|
readonly type = UploadActionTypes.UploadFileVersion;
|
||||||
|
|
||||||
constructor(public payload: CustomEvent, public configuration?: ModalConfiguration) {}
|
constructor(
|
||||||
|
public payload: CustomEvent,
|
||||||
|
public configuration?: ModalConfiguration
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
@ -43,19 +43,29 @@ export interface ViewNodeExtras {
|
|||||||
export class ViewFileAction implements Action {
|
export class ViewFileAction implements Action {
|
||||||
readonly type = ViewerActionTypes.ViewFile;
|
readonly type = ViewerActionTypes.ViewFile;
|
||||||
|
|
||||||
constructor(public payload?: NodeEntry, public parentId?: string) {}
|
constructor(
|
||||||
|
public payload?: NodeEntry,
|
||||||
|
public parentId?: string
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ViewNodeAction implements Action {
|
export class ViewNodeAction implements Action {
|
||||||
readonly type = ViewerActionTypes.ViewNode;
|
readonly type = ViewerActionTypes.ViewNode;
|
||||||
|
|
||||||
constructor(public nodeId: string, public viewNodeExtras?: ViewNodeExtras) {}
|
constructor(
|
||||||
|
public nodeId: string,
|
||||||
|
public viewNodeExtras?: ViewNodeExtras
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class ViewNodeVersionAction implements Action {
|
export class ViewNodeVersionAction implements Action {
|
||||||
readonly type = ViewerActionTypes.ViewNodeVersion;
|
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 {
|
export class FullscreenViewerAction implements Action {
|
||||||
@ -77,5 +87,8 @@ export class RefreshPreviewAction implements Action {
|
|||||||
export class PluginPreviewAction implements Action {
|
export class PluginPreviewAction implements Action {
|
||||||
readonly type = ViewerActionTypes.PluginPreview;
|
readonly type = ViewerActionTypes.PluginPreview;
|
||||||
|
|
||||||
constructor(public pluginRoute: string, public nodeId: string) {}
|
constructor(
|
||||||
|
public pluginRoute: string,
|
||||||
|
public nodeId: string
|
||||||
|
) {}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user