@alfresco/aca-content 8.1.0-43221495357 → 8.1.0-43390478347

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,12 +5,12 @@ import { LazyApi, VersionsApi } from '@alfresco/js-api';
5
5
  import * as i0 from '@angular/core';
6
6
  import { inject, Injectable, DestroyRef, HostListener, ViewEncapsulation, Component, NgModule } from '@angular/core';
7
7
  import * as i1$1 from '@angular/router';
8
- import { ActivatedRoute, Router, PRIMARY_OUTLET, RouterModule } from '@angular/router';
8
+ import { ActivatedRoute, Router, PRIMARY_OUTLET, UrlSegment, NavigationStart, RouterModule } from '@angular/router';
9
9
  import * as i2 from '@alfresco/adf-core';
10
10
  import { UserPreferencesService, ObjectUtils, ViewerToolbarActionsComponent, ViewerOpenWithComponent, ViewerSidebarComponent, ViewerModule } from '@alfresco/adf-core';
11
11
  import { Store } from '@ngrx/store';
12
- import { from } from 'rxjs';
13
- import { debounceTime, map } from 'rxjs/operators';
12
+ import { from, of } from 'rxjs';
13
+ import { debounceTime, filter, take, timeout, map } from 'rxjs/operators';
14
14
  import { Actions, ofType } from '@ngrx/effects';
15
15
  import * as i3 from '@alfresco/adf-content-services';
16
16
  import { AlfrescoApiService, NodesApiService, UploadService, DocumentListService, AlfrescoViewerComponent, AlfrescoViewerModule } from '@alfresco/adf-content-services';
@@ -261,9 +261,13 @@ class AcaViewerComponent {
261
261
  this.showRightSide = false;
262
262
  this.toolbarActions = [];
263
263
  this.versionId = null;
264
+ this._breadcrumbsRoot = 'APP.BROWSE.PERSONAL.TITLE';
264
265
  this.containersSkipNavigation = ['adf-viewer__sidebar', 'cdk-overlay-container', 'adf-image-viewer'];
265
266
  this.destroyRef = inject(DestroyRef);
266
267
  }
268
+ get breadcrumbsRoot() {
269
+ return this._breadcrumbsRoot;
270
+ }
267
271
  ngOnInit() {
268
272
  this.infoDrawerOpened$ = this.store.select(isInfoDrawerOpened);
269
273
  from(this.infoDrawerOpened$)
@@ -352,6 +356,7 @@ class AcaViewerComponent {
352
356
  if (nodeId) {
353
357
  try {
354
358
  this.node = await this.contentApi.getNodeInfo(nodeId).toPromise();
359
+ this.setBreadcrumbsRoot();
355
360
  this.store.dispatch(new SetSelectedNodesAction([{ entry: this.node }]));
356
361
  this.navigateMultiple = this.extensions.canShowViewerNavigation({ entry: this.node });
357
362
  if (this.node?.isFile) {
@@ -390,6 +395,48 @@ class AcaViewerComponent {
390
395
  const location = this.getFileLocation();
391
396
  this.store.dispatch(new ViewNodeAction(this.nextNodeId, { location }));
392
397
  }
398
+ async onBreadcrumbNavigate(route) {
399
+ const folderWithViewerUrl = this.router.parseUrl(this.router.url);
400
+ const primary = folderWithViewerUrl.root.children[PRIMARY_OUTLET];
401
+ if (!primary?.segments.length) {
402
+ return;
403
+ }
404
+ this.pendingBreadcrumbNavigation?.unsubscribe();
405
+ const elements = this.node?.path?.elements ?? [];
406
+ const isSitesPath = elements[1]?.nodeType === 'st:sites';
407
+ const browsingAreas = ['personal-files', 'libraries', 'favorite', 'repository'];
408
+ let path;
409
+ if (browsingAreas.includes(primary.segments[0].path)) {
410
+ path = primary.segments[0].path;
411
+ }
412
+ else {
413
+ path = isSitesPath ? 'libraries' : 'personal-files';
414
+ }
415
+ const isLibraries = path === 'libraries' || path === 'favorite';
416
+ const baseCommands = path === 'favorite' ? [path, 'libraries'] : [path];
417
+ const basePath = baseCommands.join('/');
418
+ const isRootClicked = route.id === elements[0]?.id && (isLibraries || path === 'personal-files' || path === 'repository');
419
+ if (isRootClicked || (isLibraries && isSitesPath && route.id === elements[1].id)) {
420
+ await this.router.navigateByUrl(`/${basePath}`);
421
+ return;
422
+ }
423
+ if (isLibraries && isSitesPath && route.id === elements[2]?.id && elements[3]) {
424
+ route = elements[3];
425
+ }
426
+ const isAreaChanged = primary.segments[0].path !== path;
427
+ if (route.id === this.node?.parentId || isAreaChanged) {
428
+ await this.router.navigateByUrl(`/${basePath}/${route.id}`);
429
+ return;
430
+ }
431
+ primary.segments = [...baseCommands, route.id].map((segment) => new UrlSegment(segment, {}));
432
+ this.pendingBreadcrumbNavigation = this.appHookService.documentListReady$
433
+ .pipe(filter((folderId) => folderId === route.id), take(1), timeout({ first: 5000, with: () => of(null) }), takeUntilDestroyed(this.destroyRef))
434
+ .subscribe(() => void this.router.navigate([...baseCommands, route.id], { replaceUrl: true }));
435
+ this.router.events
436
+ .pipe(filter((event) => event instanceof NavigationStart), take(1))
437
+ .subscribe(() => this.store.dispatch(new SetSelectedNodesAction([{ entry: this.node }])));
438
+ await this.router.navigateByUrl(folderWithViewerUrl);
439
+ }
393
440
  handleKeyboardEvent(event) {
394
441
  const key = event.key;
395
442
  if (key === 'ArrowRight' || key === 'ArrowLeft') {
@@ -414,8 +461,19 @@ class AcaViewerComponent {
414
461
  isChild(list) {
415
462
  return Array.from(list).some((className) => this.containersSkipNavigation.includes(className));
416
463
  }
464
+ setBreadcrumbsRoot() {
465
+ this._breadcrumbsRoot = 'APP.BROWSE.PERSONAL.TITLE';
466
+ if (this.router.url.startsWith('/repository')) {
467
+ this._breadcrumbsRoot = 'APP.BROWSE.REPOSITORY_VIEW.TITLE';
468
+ }
469
+ else if (this.node.path?.elements?.[1]?.nodeType === 'st:sites' && !this.router.url.startsWith('/personal-files')) {
470
+ this._breadcrumbsRoot = this.navigationPath?.startsWith('/favorite/')
471
+ ? 'APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.TITLE'
472
+ : 'APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.TITLE';
473
+ }
474
+ }
417
475
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: AcaViewerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
418
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: AcaViewerComponent, isStandalone: true, selector: "aca-viewer", host: { listeners: { "document:keydown": "handleKeyboardEvent($event)" }, classAttribute: "app-viewer" }, ngImport: i0, template: "@if (nodeId) {\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [maxRetries]=\"settings.viewerMaxRetries\"\n [nodeId]=\"nodeId\"\n [readOnly]=\"node?.aspectNames?.includes('cm:checkedOut')\"\n [versionId]=\"versionId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [overlayMode]=\"true\"\n [hideInfoButton]=\"true\"\n [closeButtonPosition]=\"settings.viewerCloseButtonPosition\"\n (showViewerChange)=\"onViewerVisibilityChanged()\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n @if (infoDrawerOpened$ | async) {\n <adf-viewer-sidebar>\n <aca-info-drawer [node]=\"selection.file\" />\n </adf-viewer-sidebar>\n }\n @if (openWith.length) {\n <adf-viewer-open-with>\n @for (action of openWith; track trackByActionId($index, action)) {\n <app-toolbar-menu-item [actionRef]=\"action\" />\n }\n </adf-viewer-open-with>\n }\n <adf-viewer-toolbar-actions>\n <aca-toolbar [items]=\"toolbarActions\" />\n </adf-viewer-toolbar-actions>\n </adf-alfresco-viewer>\n}\n", styles: [".app-viewer{width:100%;height:100%}.app-viewer .adf-viewer-toolbar .adf-toolbar-divider{display:none}.app-viewer .adf-viewer-toolbar-actions{display:flex;flex-direction:row;align-items:center;margin-left:auto}.app-viewer .adf-viewer-toolbar-actions .adf-toolbar-divider{display:inline}.app-viewer .adf-viewer-render .adf-image-viewer__toolbar .adf-toolbar-container{box-shadow:0 2px 2px var(--theme-box-shadow-dark-color),0 0 2px var(--theme-box-shadow-third-color)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container{--mat-sys-surface: var(--theme-white-background);border-width:0;border-radius:2px;--mat-toolbar-standard-height: 48px;--mat-toolbar-container-text-color: var(--adf-theme-foreground-text-color-064);--mat-toolbar-container-background-color: var(--mat-sys-surface)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container .adf-image-viewer__toolbar-page-scale{--mat-sys-outline: var(--adf-theme-foreground-text-color-007)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container .adf-pdf-viewer__toolbar-page-scale{--mat-sys-body-small-size: 14px}.app-viewer .adf-viewer-render .adf-pdf-viewer .adf-pdf-viewer-annotation-tooltip.popup{background-color:color-mix(in srgb,var(--adf-theme-background-card-color) 70%,var(--adf-theme-foreground-base-color) 30%)}.app-viewer .adf-alfresco-viewer.aca-right_side--hide .adf-viewer__sidebar__right{width:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: InfoDrawerComponent, selector: "aca-info-drawer", inputs: ["nodeId", "node"] }, { kind: "component", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }, { kind: "component", type: ToolbarComponent, selector: "aca-toolbar", inputs: ["items"] }, { kind: "component", type: AlfrescoViewerComponent, selector: "adf-alfresco-viewer", inputs: ["nodeId", "versionId", "sharedLinkId", "showViewer", "maxRetries", "allowGoBack", "showToolbar", "overlayMode", "allowNavigate", "canNavigateBefore", "canNavigateNext", "allowLeftSidebar", "allowRightSidebar", "showRightSidebar", "showLeftSidebar", "allowDownload", "allowPrint", "allowFullScreen", "hideInfoButton", "closeButtonPosition", "sidebarRightTemplate", "sidebarLeftTemplate", "readOnly", "showToolbarDividers"], outputs: ["invalidSharedLink", "navigateBefore", "navigateNext", "showViewerChange"] }, { kind: "component", type: ViewerToolbarActionsComponent, selector: "adf-viewer-toolbar-actions" }, { kind: "component", type: ViewerOpenWithComponent, selector: "adf-viewer-open-with" }, { kind: "component", type: ViewerSidebarComponent, selector: "adf-viewer-sidebar" }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
476
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: AcaViewerComponent, isStandalone: true, selector: "aca-viewer", host: { listeners: { "document:keydown": "handleKeyboardEvent($event)" }, classAttribute: "app-viewer" }, ngImport: i0, template: "@if (nodeId) {\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [maxRetries]=\"settings.viewerMaxRetries\"\n [nodeId]=\"nodeId\"\n [readOnly]=\"node?.aspectNames?.includes('cm:checkedOut')\"\n [versionId]=\"versionId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [overlayMode]=\"true\"\n [hideInfoButton]=\"true\"\n [closeButtonPosition]=\"settings.viewerCloseButtonPosition\"\n (showViewerChange)=\"onViewerVisibilityChanged()\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n (breadcrumbNavigate)=\"onBreadcrumbNavigate($event)\"\n [showBreadcrumbs]=\"true\"\n [breadcrumbsRoot]=\"breadcrumbsRoot\">\n @if (infoDrawerOpened$ | async) {\n <adf-viewer-sidebar>\n <aca-info-drawer [node]=\"selection.file\" />\n </adf-viewer-sidebar>\n }\n @if (openWith.length) {\n <adf-viewer-open-with>\n @for (action of openWith; track trackByActionId($index, action)) {\n <app-toolbar-menu-item [actionRef]=\"action\" />\n }\n </adf-viewer-open-with>\n }\n <adf-viewer-toolbar-actions>\n <aca-toolbar [items]=\"toolbarActions\" />\n </adf-viewer-toolbar-actions>\n </adf-alfresco-viewer>\n}\n", styles: [".app-viewer{width:100%;height:100%}.app-viewer .adf-viewer-toolbar .adf-toolbar-divider{display:none}.app-viewer .adf-viewer-toolbar-actions{display:flex;flex-direction:row;align-items:center;margin-left:auto}.app-viewer .adf-viewer-toolbar-actions .adf-toolbar-divider{display:inline}.app-viewer .adf-viewer-render .adf-image-viewer__toolbar .adf-toolbar-container{box-shadow:0 2px 2px var(--theme-box-shadow-dark-color),0 0 2px var(--theme-box-shadow-third-color)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container{--mat-sys-surface: var(--theme-white-background);border-width:0;border-radius:2px;--mat-toolbar-standard-height: 48px;--mat-toolbar-container-text-color: var(--adf-theme-foreground-text-color-064);--mat-toolbar-container-background-color: var(--mat-sys-surface)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container .adf-image-viewer__toolbar-page-scale{--mat-sys-outline: var(--adf-theme-foreground-text-color-007)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container .adf-pdf-viewer__toolbar-page-scale{--mat-sys-body-small-size: 14px}.app-viewer .adf-viewer-render .adf-pdf-viewer .adf-pdf-viewer-annotation-tooltip.popup{background-color:color-mix(in srgb,var(--adf-theme-background-card-color) 70%,var(--adf-theme-foreground-base-color) 30%)}.app-viewer .adf-alfresco-viewer.aca-right_side--hide .adf-viewer__sidebar__right{width:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: InfoDrawerComponent, selector: "aca-info-drawer", inputs: ["nodeId", "node"] }, { kind: "component", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }, { kind: "component", type: ToolbarComponent, selector: "aca-toolbar", inputs: ["items"] }, { kind: "component", type: AlfrescoViewerComponent, selector: "adf-alfresco-viewer", inputs: ["nodeId", "versionId", "sharedLinkId", "showViewer", "maxRetries", "allowGoBack", "showToolbar", "overlayMode", "allowNavigate", "canNavigateBefore", "canNavigateNext", "allowLeftSidebar", "allowRightSidebar", "showRightSidebar", "showLeftSidebar", "allowDownload", "allowPrint", "allowFullScreen", "hideInfoButton", "closeButtonPosition", "sidebarRightTemplate", "sidebarLeftTemplate", "readOnly", "showToolbarDividers", "showBreadcrumbs", "breadcrumbsRoot"], outputs: ["invalidSharedLink", "navigateBefore", "navigateNext", "showViewerChange", "breadcrumbNavigate"] }, { kind: "component", type: ViewerToolbarActionsComponent, selector: "adf-viewer-toolbar-actions" }, { kind: "component", type: ViewerOpenWithComponent, selector: "adf-viewer-open-with" }, { kind: "component", type: ViewerSidebarComponent, selector: "adf-viewer-sidebar" }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
419
477
  }
420
478
  __decorate([
421
479
  LazyApi((self) => new VersionsApi(self.apiService.getInstance())),
@@ -432,7 +490,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImpo
432
490
  ViewerToolbarActionsComponent,
433
491
  ViewerOpenWithComponent,
434
492
  ViewerSidebarComponent
435
- ], selector: 'aca-viewer', encapsulation: ViewEncapsulation.None, host: { class: 'app-viewer' }, template: "@if (nodeId) {\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [maxRetries]=\"settings.viewerMaxRetries\"\n [nodeId]=\"nodeId\"\n [readOnly]=\"node?.aspectNames?.includes('cm:checkedOut')\"\n [versionId]=\"versionId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [overlayMode]=\"true\"\n [hideInfoButton]=\"true\"\n [closeButtonPosition]=\"settings.viewerCloseButtonPosition\"\n (showViewerChange)=\"onViewerVisibilityChanged()\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n @if (infoDrawerOpened$ | async) {\n <adf-viewer-sidebar>\n <aca-info-drawer [node]=\"selection.file\" />\n </adf-viewer-sidebar>\n }\n @if (openWith.length) {\n <adf-viewer-open-with>\n @for (action of openWith; track trackByActionId($index, action)) {\n <app-toolbar-menu-item [actionRef]=\"action\" />\n }\n </adf-viewer-open-with>\n }\n <adf-viewer-toolbar-actions>\n <aca-toolbar [items]=\"toolbarActions\" />\n </adf-viewer-toolbar-actions>\n </adf-alfresco-viewer>\n}\n", styles: [".app-viewer{width:100%;height:100%}.app-viewer .adf-viewer-toolbar .adf-toolbar-divider{display:none}.app-viewer .adf-viewer-toolbar-actions{display:flex;flex-direction:row;align-items:center;margin-left:auto}.app-viewer .adf-viewer-toolbar-actions .adf-toolbar-divider{display:inline}.app-viewer .adf-viewer-render .adf-image-viewer__toolbar .adf-toolbar-container{box-shadow:0 2px 2px var(--theme-box-shadow-dark-color),0 0 2px var(--theme-box-shadow-third-color)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container{--mat-sys-surface: var(--theme-white-background);border-width:0;border-radius:2px;--mat-toolbar-standard-height: 48px;--mat-toolbar-container-text-color: var(--adf-theme-foreground-text-color-064);--mat-toolbar-container-background-color: var(--mat-sys-surface)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container .adf-image-viewer__toolbar-page-scale{--mat-sys-outline: var(--adf-theme-foreground-text-color-007)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container .adf-pdf-viewer__toolbar-page-scale{--mat-sys-body-small-size: 14px}.app-viewer .adf-viewer-render .adf-pdf-viewer .adf-pdf-viewer-annotation-tooltip.popup{background-color:color-mix(in srgb,var(--adf-theme-background-card-color) 70%,var(--adf-theme-foreground-base-color) 30%)}.app-viewer .adf-alfresco-viewer.aca-right_side--hide .adf-viewer__sidebar__right{width:0}\n"] }]
493
+ ], selector: 'aca-viewer', encapsulation: ViewEncapsulation.None, host: { class: 'app-viewer' }, template: "@if (nodeId) {\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [maxRetries]=\"settings.viewerMaxRetries\"\n [nodeId]=\"nodeId\"\n [readOnly]=\"node?.aspectNames?.includes('cm:checkedOut')\"\n [versionId]=\"versionId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [overlayMode]=\"true\"\n [hideInfoButton]=\"true\"\n [closeButtonPosition]=\"settings.viewerCloseButtonPosition\"\n (showViewerChange)=\"onViewerVisibilityChanged()\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n (breadcrumbNavigate)=\"onBreadcrumbNavigate($event)\"\n [showBreadcrumbs]=\"true\"\n [breadcrumbsRoot]=\"breadcrumbsRoot\">\n @if (infoDrawerOpened$ | async) {\n <adf-viewer-sidebar>\n <aca-info-drawer [node]=\"selection.file\" />\n </adf-viewer-sidebar>\n }\n @if (openWith.length) {\n <adf-viewer-open-with>\n @for (action of openWith; track trackByActionId($index, action)) {\n <app-toolbar-menu-item [actionRef]=\"action\" />\n }\n </adf-viewer-open-with>\n }\n <adf-viewer-toolbar-actions>\n <aca-toolbar [items]=\"toolbarActions\" />\n </adf-viewer-toolbar-actions>\n </adf-alfresco-viewer>\n}\n", styles: [".app-viewer{width:100%;height:100%}.app-viewer .adf-viewer-toolbar .adf-toolbar-divider{display:none}.app-viewer .adf-viewer-toolbar-actions{display:flex;flex-direction:row;align-items:center;margin-left:auto}.app-viewer .adf-viewer-toolbar-actions .adf-toolbar-divider{display:inline}.app-viewer .adf-viewer-render .adf-image-viewer__toolbar .adf-toolbar-container{box-shadow:0 2px 2px var(--theme-box-shadow-dark-color),0 0 2px var(--theme-box-shadow-third-color)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container{--mat-sys-surface: var(--theme-white-background);border-width:0;border-radius:2px;--mat-toolbar-standard-height: 48px;--mat-toolbar-container-text-color: var(--adf-theme-foreground-text-color-064);--mat-toolbar-container-background-color: var(--mat-sys-surface)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container .adf-image-viewer__toolbar-page-scale{--mat-sys-outline: var(--adf-theme-foreground-text-color-007)}.app-viewer .adf-viewer-render .adf-toolbar .adf-toolbar-container .adf-pdf-viewer__toolbar-page-scale{--mat-sys-body-small-size: 14px}.app-viewer .adf-viewer-render .adf-pdf-viewer .adf-pdf-viewer-annotation-tooltip.popup{background-color:color-mix(in srgb,var(--adf-theme-background-card-color) 70%,var(--adf-theme-foreground-base-color) 30%)}.app-viewer .adf-alfresco-viewer.aca-right_side--hide .adf-viewer__sidebar__right{width:0}\n"] }]
436
494
  }], propDecorators: { versionsApi: [], handleKeyboardEvent: [{
437
495
  type: HostListener,
438
496
  args: ['document:keydown', ['$event']]
@@ -642,7 +700,7 @@ class PreviewComponent extends PageComponent {
642
700
  return Array.from(list).some((className) => this.containersSkipNavigation.includes(className));
643
701
  }
644
702
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: PreviewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
645
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: PreviewComponent, isStandalone: true, selector: "app-preview", host: { listeners: { "document:keydown": "handleKeyboardEvent($event)" }, classAttribute: "app-preview" }, usesInheritance: true, ngImport: i0, template: "@if (nodeId) {\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [nodeId]=\"nodeId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n [overlayMode]=\"true\"\n (showViewerChange)=\"onVisibilityChanged($event)\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n @if (infoDrawerOpened$ | async) {\n <adf-viewer-sidebar>\n <aca-info-drawer [node]=\"selection.file\" />\n </adf-viewer-sidebar>\n }\n @if (openWith.length) {\n <adf-viewer-open-with>\n @for (action of openWith; track trackByActionId($index, action)) {\n <app-toolbar-menu-item [actionRef]=\"action\" />\n }\n </adf-viewer-open-with>\n }\n @if (!simplestMode) {\n <adf-viewer-toolbar-actions>\n <aca-toolbar [items]=\"viewerToolbarActions\" />\n </adf-viewer-toolbar-actions>\n }\n </adf-alfresco-viewer>\n}\n", styles: [".app-preview{width:100%;height:100%}.adf-viewer-toolbar .adf-toolbar-divider{display:none}.adf-viewer-toolbar-actions{display:flex;flex-direction:row;align-items:center}.adf-viewer-toolbar-actions .adf-toolbar-divider{display:inline}.adf-viewer-toolbar>*>button:last-child{display:none}.adf-alfresco-viewer.aca-right_side--hide .adf-viewer__sidebar__right{width:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ViewerModule }, { kind: "component", type: i2.ViewerSidebarComponent, selector: "adf-viewer-sidebar" }, { kind: "component", type: i2.ViewerOpenWithComponent, selector: "adf-viewer-open-with" }, { kind: "component", type: i2.ViewerToolbarActionsComponent, selector: "adf-viewer-toolbar-actions" }, { kind: "ngmodule", type: AlfrescoViewerModule }, { kind: "component", type: i3.AlfrescoViewerComponent, selector: "adf-alfresco-viewer", inputs: ["nodeId", "versionId", "sharedLinkId", "showViewer", "maxRetries", "allowGoBack", "showToolbar", "overlayMode", "allowNavigate", "canNavigateBefore", "canNavigateNext", "allowLeftSidebar", "allowRightSidebar", "showRightSidebar", "showLeftSidebar", "allowDownload", "allowPrint", "allowFullScreen", "hideInfoButton", "closeButtonPosition", "sidebarRightTemplate", "sidebarLeftTemplate", "readOnly", "showToolbarDividers"], outputs: ["invalidSharedLink", "navigateBefore", "navigateNext", "showViewerChange"] }, { kind: "component", type: InfoDrawerComponent, selector: "aca-info-drawer", inputs: ["nodeId", "node"] }, { kind: "component", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }, { kind: "component", type: ToolbarComponent, selector: "aca-toolbar", inputs: ["items"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
703
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.22", type: PreviewComponent, isStandalone: true, selector: "app-preview", host: { listeners: { "document:keydown": "handleKeyboardEvent($event)" }, classAttribute: "app-preview" }, usesInheritance: true, ngImport: i0, template: "@if (nodeId) {\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [nodeId]=\"nodeId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n [overlayMode]=\"true\"\n (showViewerChange)=\"onVisibilityChanged($event)\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n @if (infoDrawerOpened$ | async) {\n <adf-viewer-sidebar>\n <aca-info-drawer [node]=\"selection.file\" />\n </adf-viewer-sidebar>\n }\n @if (openWith.length) {\n <adf-viewer-open-with>\n @for (action of openWith; track trackByActionId($index, action)) {\n <app-toolbar-menu-item [actionRef]=\"action\" />\n }\n </adf-viewer-open-with>\n }\n @if (!simplestMode) {\n <adf-viewer-toolbar-actions>\n <aca-toolbar [items]=\"viewerToolbarActions\" />\n </adf-viewer-toolbar-actions>\n }\n </adf-alfresco-viewer>\n}\n", styles: [".app-preview{width:100%;height:100%}.adf-viewer-toolbar .adf-toolbar-divider{display:none}.adf-viewer-toolbar-actions{display:flex;flex-direction:row;align-items:center}.adf-viewer-toolbar-actions .adf-toolbar-divider{display:inline}.adf-viewer-toolbar>*>button:last-child{display:none}.adf-alfresco-viewer.aca-right_side--hide .adf-viewer__sidebar__right{width:0}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ViewerModule }, { kind: "component", type: i2.ViewerSidebarComponent, selector: "adf-viewer-sidebar" }, { kind: "component", type: i2.ViewerOpenWithComponent, selector: "adf-viewer-open-with" }, { kind: "component", type: i2.ViewerToolbarActionsComponent, selector: "adf-viewer-toolbar-actions" }, { kind: "ngmodule", type: AlfrescoViewerModule }, { kind: "component", type: i3.AlfrescoViewerComponent, selector: "adf-alfresco-viewer", inputs: ["nodeId", "versionId", "sharedLinkId", "showViewer", "maxRetries", "allowGoBack", "showToolbar", "overlayMode", "allowNavigate", "canNavigateBefore", "canNavigateNext", "allowLeftSidebar", "allowRightSidebar", "showRightSidebar", "showLeftSidebar", "allowDownload", "allowPrint", "allowFullScreen", "hideInfoButton", "closeButtonPosition", "sidebarRightTemplate", "sidebarLeftTemplate", "readOnly", "showToolbarDividers", "showBreadcrumbs", "breadcrumbsRoot"], outputs: ["invalidSharedLink", "navigateBefore", "navigateNext", "showViewerChange", "breadcrumbNavigate"] }, { kind: "component", type: InfoDrawerComponent, selector: "aca-info-drawer", inputs: ["nodeId", "node"] }, { kind: "component", type: ToolbarMenuItemComponent, selector: "app-toolbar-menu-item", inputs: ["actionRef", "menuId"] }, { kind: "component", type: ToolbarComponent, selector: "aca-toolbar", inputs: ["items"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], encapsulation: i0.ViewEncapsulation.None }); }
646
704
  }
647
705
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.22", ngImport: i0, type: PreviewComponent, decorators: [{
648
706
  type: Component,
@@ -1 +1 @@
1
- {"version":3,"file":"alfresco-aca-content-viewer.mjs","sources":["../../../../projects/aca-content/viewer/src/lib/services/viewer.service.ts","../../../../projects/aca-content/viewer/src/lib/components/viewer/viewer.component.ts","../../../../projects/aca-content/viewer/src/lib/components/viewer/viewer.component.html","../../../../projects/aca-content/viewer/src/lib/components/preview/preview.component.ts","../../../../projects/aca-content/viewer/src/lib/components/preview/preview.component.html","../../../../projects/aca-content/viewer/src/lib/viewer.module.ts","../../../../projects/aca-content/viewer/src/public-api.ts","../../../../projects/aca-content/viewer/src/alfresco-aca-content-viewer.ts"],"sourcesContent":["/*!\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { ObjectUtils, UserPreferencesService } from '@alfresco/adf-core';\nimport { FavoritePaging, Node, NodePaging, SearchRequest, ResultSetPaging, SharedLink, SharedLinkPaging } from '@alfresco/js-api';\nimport { Injectable, inject } from '@angular/core';\nimport { ContentApiService } from '@alfresco/aca-shared';\n\ninterface AdjacentFiles {\n left: string;\n right: string;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ViewerService {\n private readonly preferences = inject(UserPreferencesService);\n private readonly contentApi = inject(ContentApiService);\n\n recentFileFilters = [\n 'TYPE:\"content\"',\n '-PATH:\"//cm:wiki/*\"',\n '-TYPE:\"app:filelink\"',\n '-TYPE:\"fm:post\"',\n '-TYPE:\"cm:thumbnail\"',\n '-TYPE:\"cm:failedThumbnail\"',\n '-TYPE:\"cm:rating\"',\n '-TYPE:\"dl:dataList\"',\n '-TYPE:\"dl:todoList\"',\n '-TYPE:\"dl:issue\"',\n '-TYPE:\"dl:contact\"',\n '-TYPE:\"dl:eventAgenda\"',\n '-TYPE:\"dl:event\"',\n '-TYPE:\"dl:task\"',\n '-TYPE:\"dl:simpletask\"',\n '-TYPE:\"dl:meetingAgenda\"',\n '-TYPE:\"dl:location\"',\n '-TYPE:\"fm:topic\"',\n '-TYPE:\"fm:post\"',\n '-TYPE:\"ia:calendarEvent\"',\n '-TYPE:\"lnk:link\"'\n ];\n\n /**\n * Retrieves nearest node information for the given node and folder.\n *\n * @param nodeId Unique identifier of the document node\n * @param folderId Unique identifier of the containing folder node.\n * @param source Data source name. Returns file ids for personal-files, libraries, favorites, shared and recent-files, otherwise returns empty.\n */\n async getNearestNodes(nodeId: string, folderId: string, source: string): Promise<AdjacentFiles> {\n const empty: AdjacentFiles = {\n left: null,\n right: null\n };\n\n if (nodeId && folderId) {\n try {\n const ids = await this.getFileIds(source, folderId);\n const idx = ids.indexOf(nodeId);\n\n if (idx >= 0) {\n return {\n left: ids[idx - 1] || null,\n right: ids[idx + 1] || null\n };\n }\n } catch {}\n }\n return empty;\n }\n\n /**\n * Retrieves a list of node identifiers for the folder and data source.\n *\n * @param source Data source name. Returns file ids for personal-files, libraries, favorites, shared and recent-files, otherwise returns empty.\n * @param folderId Optional parameter containing folder node identifier for 'personal-files' and 'libraries' sources.\n */\n async getFileIds(source: string, folderId?: string): Promise<string[]> {\n if (source === 'libraries') {\n source = 'libraries-files';\n }\n const isClient = this.preferences.get(`${source}.sorting.mode`) === 'client';\n const [sortKey, sortDirection, previousSortKey, previousSortDir] = this.getSortKeyDir(source);\n let nodes: NodePaging | FavoritePaging | SharedLinkPaging | ResultSetPaging;\n\n if (source === 'personal-files' || source === 'libraries-files') {\n if (!folderId) {\n return [];\n }\n const orderBy = isClient ? null : ['isFolder desc', `${sortKey} ${sortDirection}`];\n const result = await this.contentApi\n .getNodeChildren(folderId, {\n orderBy: orderBy,\n include: ['aspectNames'],\n fields: [...this.getFields(sortKey, previousSortKey), 'aspectNames'],\n where: '(isFile=true)'\n })\n .toPromise();\n if (result) {\n result.list.entries = result.list.entries.filter((e) => !e.entry.aspectNames?.includes('cm:checkedOut'));\n }\n nodes = result;\n }\n\n if (source === 'favorites') {\n nodes = await this.contentApi\n .getFavorites('-me-', {\n where: '(EXISTS(target/file))',\n fields: ['target']\n })\n .toPromise();\n }\n\n if (source === 'shared') {\n nodes = await this.contentApi\n .findSharedLinks({\n fields: ['nodeId', this.getRootField(sortKey)]\n })\n .toPromise();\n }\n\n if (source === 'recent-files') {\n const person = await this.contentApi.getPerson('-me-').toPromise();\n const username = person.entry.id;\n const query: SearchRequest = {\n query: {\n query: '*',\n language: 'afts'\n },\n filterQueries: [\n { query: `cm:modified:[NOW/DAY-30DAYS TO NOW/DAY+1DAY]` },\n { query: `cm:modifier:${username} OR cm:creator:${username}` },\n {\n query: this.recentFileFilters.join(' AND ')\n }\n ],\n fields: this.getFields(sortKey, previousSortKey),\n include: ['path', 'properties', 'allowableOperations'],\n sort: [\n {\n type: 'FIELD',\n field: 'cm:modified',\n ascending: false\n }\n ]\n };\n nodes = await this.contentApi.search(query).toPromise();\n }\n return this.getNodeIds(nodes, isClient, previousSortKey, previousSortDir, sortKey, sortDirection);\n }\n\n /**\n * Get the root field name from the property path.\n * Example: 'property1.some.child.property' => 'property1'\n *\n * @param path Property path\n */\n getRootField(path: string): string {\n if (path) {\n return path.split('.')[0];\n }\n return path;\n }\n\n private sort(items: Node[] | SharedLink[], key: string, direction: string) {\n const options: Intl.CollatorOptions = {};\n if (key.includes('sizeInBytes') || key === 'name') {\n options.numeric = true;\n }\n\n items.sort((a: Node | SharedLink, b: Node | SharedLink) => {\n let left = ObjectUtils.getValue(a, key) ?? '';\n left = left instanceof Date ? left.valueOf().toString() : left.toString();\n\n let right = ObjectUtils.getValue(b, key) ?? '';\n right = right instanceof Date ? right.valueOf().toString() : right.toString();\n\n return direction === 'asc' ? left.localeCompare(right, undefined, options) : right.localeCompare(left, undefined, options);\n });\n }\n\n private getFields(sortKey: string, previousSortKey?: string): string[] {\n return ['id', this.getRootField(sortKey), this.getRootField(previousSortKey)];\n }\n\n private getSortKeyDir(source: string): string[] {\n const previousSortKey = this.preferences.get(`${source}.sorting.previousKey`);\n const previousSortDir = this.preferences.get(`${source}.sorting.previousDirection`);\n const sortKey = this.preferences.get(`${source}.sorting.key`) || this.getDefaults(source)[0];\n const sortDirection = this.preferences.get(`${source}.sorting.direction`) || this.getDefaults(source)[1];\n return [sortKey, sortDirection, previousSortKey, previousSortDir];\n }\n\n private getDefaults(source: string): string[] {\n if (source === 'personal-files' || source === 'libraries-files') {\n return ['name', 'asc'];\n } else {\n return ['modifiedAt', 'desc'];\n }\n }\n\n private getNodeIds(\n nodes: NodePaging | FavoritePaging | SharedLinkPaging | ResultSetPaging,\n isClient: boolean,\n previousSortKey: string,\n previousSortDir: string,\n sortKey: string,\n sortDirection: string\n ): string[] {\n if (nodes) {\n const entries = nodes.list.entries.map((obj) => obj.entry.target?.file ?? obj.entry);\n if (isClient) {\n if (previousSortKey) {\n this.sort(entries, previousSortKey, previousSortDir);\n }\n this.sort(entries, sortKey, sortDirection);\n }\n return entries.map((entry) => entry.id ?? entry.nodeId);\n }\n return [];\n }\n}\n","/*!\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport {\n AppExtensionService,\n AppHookService,\n AppSettingsService,\n ContentApiService,\n InfoDrawerComponent,\n ToolbarComponent,\n ToolbarMenuItemComponent\n} from '@alfresco/aca-shared';\nimport {\n AppStore,\n ClosePreviewAction,\n getAppSelection,\n isInfoDrawerOpened,\n RefreshPreviewAction,\n SetCurrentNodeVersionAction,\n SetSelectedNodesAction,\n ViewerActionTypes,\n ViewNodeAction\n} from '@alfresco/aca-shared/store';\nimport { ContentActionRef, SelectionState } from '@alfresco/adf-extensions';\nimport { Node, VersionEntry, VersionsApi, LazyApi } from '@alfresco/js-api';\nimport { Component, DestroyRef, HostListener, inject, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';\nimport { ActivatedRoute, PRIMARY_OUTLET, Router } from '@angular/router';\nimport { ViewerOpenWithComponent, ViewerSidebarComponent, ViewerToolbarActionsComponent } from '@alfresco/adf-core';\nimport { Store } from '@ngrx/store';\nimport { from, Observable } from 'rxjs';\nimport { debounceTime } from 'rxjs/operators';\nimport { Actions, ofType } from '@ngrx/effects';\nimport { AlfrescoApiService, AlfrescoViewerComponent, DocumentListService, NodesApiService, UploadService } from '@alfresco/adf-content-services';\nimport { CommonModule } from '@angular/common';\nimport { ViewerService } from '../../services/viewer.service';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n@Component({\n imports: [\n CommonModule,\n InfoDrawerComponent,\n ToolbarMenuItemComponent,\n ToolbarComponent,\n AlfrescoViewerComponent,\n ViewerToolbarActionsComponent,\n ViewerOpenWithComponent,\n ViewerSidebarComponent\n ],\n selector: 'aca-viewer',\n templateUrl: './viewer.component.html',\n styleUrls: ['./viewer.component.scss'],\n encapsulation: ViewEncapsulation.None,\n host: { class: 'app-viewer' }\n})\nexport class AcaViewerComponent implements OnInit, OnDestroy {\n private readonly actions$ = inject(Actions);\n private readonly apiService = inject(AlfrescoApiService);\n private readonly appHookService = inject(AppHookService);\n private readonly contentApi = inject(ContentApiService);\n private readonly extensions = inject(AppExtensionService);\n private readonly nodesApiService = inject(NodesApiService);\n private readonly route = inject(ActivatedRoute);\n private readonly router = inject(Router);\n private readonly store = inject<Store<AppStore>>(Store);\n private readonly uploadService = inject(UploadService);\n private readonly viewerService = inject(ViewerService);\n\n settings = inject(AppSettingsService);\n\n private readonly documentListService = inject(DocumentListService);\n\n @LazyApi((self: AcaViewerComponent) => new VersionsApi(self.apiService.getInstance()))\n declare versionsApi: VersionsApi;\n fileName: string;\n folderId: string = null;\n infoDrawerOpened$: Observable<boolean>;\n navigateMultiple = true;\n navigateSource: string = null;\n navigationSources = ['favorites', 'libraries', 'personal-files', 'recent-files', 'shared'];\n nextNodeId: string;\n node: Node;\n nodeId: string = null;\n openWith: ContentActionRef[] = [];\n previousNodeId: string;\n selection: SelectionState;\n showRightSide = false;\n toolbarActions: ContentActionRef[] = [];\n versionId: string = null;\n\n private navigationPath: string;\n private previewLocation: string;\n private readonly containersSkipNavigation = ['adf-viewer__sidebar', 'cdk-overlay-container', 'adf-image-viewer'];\n\n private readonly destroyRef = inject(DestroyRef);\n\n ngOnInit() {\n this.infoDrawerOpened$ = this.store.select(isInfoDrawerOpened);\n\n from(this.infoDrawerOpened$)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((val) => {\n this.showRightSide = val;\n });\n\n this.store\n .select(getAppSelection)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((selection) => {\n this.selection = selection;\n });\n\n this.extensions\n .getViewerToolbarActions()\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((actions) => {\n this.toolbarActions = actions;\n });\n\n this.extensions\n .getOpenWithActions()\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((actions) => {\n this.openWith = actions;\n });\n\n this.route.params.subscribe((params) => {\n this.folderId = params.folderId;\n const { nodeId } = params;\n this.versionId = params.versionId;\n if (this.versionId) {\n void this.versionsApi.getVersion(nodeId, this.versionId).then((version: VersionEntry) => {\n if (version) {\n this.store.dispatch(new SetCurrentNodeVersionAction(version));\n }\n });\n }\n if (nodeId) {\n void this.displayNode(nodeId);\n }\n });\n\n this.route.queryParams.subscribe((params) => {\n this.navigationPath = params.path || params.location;\n });\n\n if (this.route.snapshot.data?.navigateSource) {\n const source = this.route.snapshot.data.navigateSource.toLowerCase();\n if (this.navigationSources.includes(source)) {\n this.navigateSource = this.route.snapshot.data.navigateSource;\n }\n }\n\n this.actions$.pipe(ofType<ClosePreviewAction>(ViewerActionTypes.ClosePreview), takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this.store.dispatch(new SetCurrentNodeVersionAction(null));\n this.navigateToFileLocation();\n });\n\n this.actions$\n .pipe(ofType<RefreshPreviewAction>(ViewerActionTypes.RefreshPreview), takeUntilDestroyed(this.destroyRef))\n .subscribe((action: RefreshPreviewAction) => {\n this.nodesApiService.nodeUpdated.next(action.node);\n void this.displayNode(action.node.id);\n });\n\n this.appHookService.nodesDeleted.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => this.navigateToFileLocation());\n\n this.uploadService.fileUploadDeleted.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => this.navigateToFileLocation());\n\n this.uploadService.fileUploadComplete.pipe(debounceTime(300), takeUntilDestroyed(this.destroyRef)).subscribe((event) => {\n const uploadedEntry = event.data.entry;\n this.nodesApiService.nodeUpdated.next(uploadedEntry);\n\n if (this.node?.aspectNames?.includes('cm:workingcopy') && event.file?.id === this.nodeId && uploadedEntry.id !== this.nodeId) {\n const location = this.route.snapshot.queryParams['location'] || this.router.url;\n this.store.dispatch(new ViewNodeAction(uploadedEntry.id, { location }));\n } else if (uploadedEntry.id === this.nodeId) {\n void this.displayNode(uploadedEntry.id);\n }\n });\n\n this.previewLocation = this.router.url.substring(0, this.router.url.indexOf('/', 1)).replace(/\\//g, '');\n }\n\n onViewerVisibilityChanged() {\n this.documentListService.reload();\n this.navigateToFileLocation();\n }\n\n ngOnDestroy() {\n this.store.dispatch(new SetCurrentNodeVersionAction(null));\n }\n\n trackByActionId(_: number, obj: ContentActionRef): string {\n return obj.id;\n }\n\n async displayNode(nodeId: string) {\n if (nodeId) {\n try {\n this.node = await this.contentApi.getNodeInfo(nodeId).toPromise();\n this.store.dispatch(new SetSelectedNodesAction([{ entry: this.node }]));\n this.navigateMultiple = this.extensions.canShowViewerNavigation({ entry: this.node });\n\n if (this.node?.isFile) {\n this.nodeId = this.node.id;\n this.fileName = this.node.name + this.node?.properties?.['cm:versionLabel'];\n if (this.navigateMultiple) {\n const nearest = await this.viewerService.getNearestNodes(this.node.id, this.node.parentId, this.navigateSource);\n this.previousNodeId = nearest.left;\n this.nextNodeId = nearest.right;\n }\n return;\n }\n this.navigateToFileLocation();\n } catch (error) {\n const statusCode = JSON.parse(error.message).error.statusCode;\n\n if (statusCode !== 401) {\n await this.router.navigate([this.previewLocation, { outlets: { viewer: null } }]).then(() => {\n void this.router.navigate([this.previewLocation, nodeId]);\n });\n }\n }\n }\n }\n\n onNavigateBefore(event: MouseEvent | KeyboardEvent): void {\n if (event.type !== 'click' && this.shouldNavigate(event.target as HTMLElement)) {\n return;\n }\n\n const location = this.getFileLocation();\n this.store.dispatch(new ViewNodeAction(this.previousNodeId, { location }));\n }\n\n onNavigateNext(event: MouseEvent | KeyboardEvent): void {\n if (event.type !== 'click' && this.shouldNavigate(event.target as HTMLElement)) {\n return;\n }\n\n const location = this.getFileLocation();\n this.store.dispatch(new ViewNodeAction(this.nextNodeId, { location }));\n }\n\n @HostListener('document:keydown', ['$event'])\n handleKeyboardEvent(event: KeyboardEvent) {\n const key = event.key;\n\n if (key === 'ArrowRight' || key === 'ArrowLeft') {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n }\n\n private navigateToFileLocation() {\n const location = this.getFileLocation();\n void this.router.navigateByUrl(location);\n }\n\n private getFileLocation(): string {\n return this.navigationPath || this.router.parseUrl(this.router.url).root.children[PRIMARY_OUTLET].toString();\n }\n\n private shouldNavigate(element: HTMLElement): boolean {\n let currentElement = element.parentElement;\n\n while (currentElement && !this.isChild(currentElement.classList)) {\n currentElement = currentElement.parentElement;\n }\n\n return !!currentElement;\n }\n\n private isChild(list: DOMTokenList): boolean {\n return Array.from(list).some((className: string) => this.containersSkipNavigation.includes(className));\n }\n}\n","@if (nodeId) {\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [maxRetries]=\"settings.viewerMaxRetries\"\n [nodeId]=\"nodeId\"\n [readOnly]=\"node?.aspectNames?.includes('cm:checkedOut')\"\n [versionId]=\"versionId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [overlayMode]=\"true\"\n [hideInfoButton]=\"true\"\n [closeButtonPosition]=\"settings.viewerCloseButtonPosition\"\n (showViewerChange)=\"onViewerVisibilityChanged()\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n @if (infoDrawerOpened$ | async) {\n <adf-viewer-sidebar>\n <aca-info-drawer [node]=\"selection.file\" />\n </adf-viewer-sidebar>\n }\n @if (openWith.length) {\n <adf-viewer-open-with>\n @for (action of openWith; track trackByActionId($index, action)) {\n <app-toolbar-menu-item [actionRef]=\"action\" />\n }\n </adf-viewer-open-with>\n }\n <adf-viewer-toolbar-actions>\n <aca-toolbar [items]=\"toolbarActions\" />\n </adf-viewer-toolbar-actions>\n </adf-alfresco-viewer>\n}\n","/*!\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, HostListener, OnInit, ViewEncapsulation, inject } from '@angular/core';\nimport { CommonModule, Location } from '@angular/common';\nimport { ActivatedRoute, PRIMARY_OUTLET, UrlSegment, UrlSegmentGroup, UrlTree } from '@angular/router';\nimport { debounceTime, map } from 'rxjs/operators';\nimport { ViewerModule } from '@alfresco/adf-core';\nimport { ClosePreviewAction, SetSelectedNodesAction, ViewerActionTypes } from '@alfresco/aca-shared/store';\nimport {\n AppHookService,\n ContentApiService,\n InfoDrawerComponent,\n PageComponent,\n ToolbarComponent,\n ToolbarMenuItemComponent\n} from '@alfresco/aca-shared';\nimport { ContentActionRef } from '@alfresco/adf-extensions';\nimport { from } from 'rxjs';\nimport { Actions, ofType } from '@ngrx/effects';\nimport { AlfrescoViewerModule, NodesApiService } from '@alfresco/adf-content-services';\nimport { ViewerService } from '../../services/viewer.service';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n@Component({\n imports: [CommonModule, ViewerModule, AlfrescoViewerModule, InfoDrawerComponent, ToolbarMenuItemComponent, ToolbarComponent],\n selector: 'app-preview',\n templateUrl: './preview.component.html',\n styleUrls: ['./preview.component.scss'],\n encapsulation: ViewEncapsulation.None,\n host: { class: 'app-preview' }\n})\nexport class PreviewComponent extends PageComponent implements OnInit {\n private readonly actions$ = inject(Actions);\n private readonly appHookService = inject(AppHookService);\n private readonly contentApi = inject(ContentApiService);\n private readonly location = inject(Location);\n private readonly nodesApiService = inject(NodesApiService);\n private readonly route = inject(ActivatedRoute);\n private readonly viewerService = inject(ViewerService);\n\n folderId: string = null;\n navigateBackAsClose = false;\n navigateMultiple = false;\n navigateSource: string = null;\n navigationSources = ['favorites', 'libraries', 'personal-files', 'recent-files', 'shared'];\n nextNodeId: string;\n nodeId: string = null;\n openWith: Array<ContentActionRef> = [];\n previewLocation: string = null;\n previousNodeId: string;\n routesSkipNavigation = ['favorites', 'recent-files', 'shared'];\n showRightSide = false;\n simplestMode = false;\n\n private readonly containersSkipNavigation = ['adf-viewer__sidebar', 'cdk-overlay-container', 'adf-image-viewer'];\n\n ngOnInit() {\n super.ngOnInit();\n\n from(this.infoDrawerOpened$)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((val) => {\n this.showRightSide = val;\n });\n\n this.previewLocation = this.router.url.substr(0, this.router.url.indexOf('/', 1)).replace(/\\//g, '');\n\n const routeData = this.route.snapshot.data;\n this.navigateBackAsClose = !!routeData.navigateBackAsClose;\n this.simplestMode = !!routeData.simplestMode;\n\n if (routeData.navigateMultiple) {\n this.navigateMultiple = true;\n }\n\n if (routeData.navigateSource) {\n const source = routeData.navigateSource.toLowerCase();\n if (this.navigationSources.includes(source)) {\n this.navigateSource = routeData.navigateSource;\n }\n }\n\n this.route.params.subscribe((params) => {\n this.folderId = params.folderId;\n const id = params.nodeId;\n if (id) {\n void this.displayNode(id);\n }\n });\n\n this.subscriptions = this.subscriptions.concat([\n this.appHookService.nodesDeleted.subscribe(() => this.navigateToFileLocation(true)),\n\n this.uploadService.fileUploadDeleted.subscribe(() => this.navigateToFileLocation(true)),\n\n this.uploadService.fileUploadComplete.pipe(debounceTime(300)).subscribe((file) => this.nodesApiService.nodeUpdated.next(file.data.entry)),\n\n this.actions$\n .pipe(\n ofType<ClosePreviewAction>(ViewerActionTypes.ClosePreview),\n map(() => this.navigateToFileLocation(true))\n )\n .subscribe(() => {})\n ]);\n\n this.extensions\n .getOpenWithActions()\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((actions) => {\n this.openWith = actions;\n });\n }\n\n /**\n * Loads the particular node into the Viewer\n *\n * @param id Unique identifier for the Node to display\n */\n async displayNode(id: string) {\n if (id) {\n try {\n this.node = await this.contentApi.getNodeInfo(id).toPromise();\n this.store.dispatch(new SetSelectedNodesAction([{ entry: this.node }]));\n\n if (this.node?.isFile) {\n this.nodeId = this.node.id;\n if (this.navigateMultiple) {\n const nearest = await this.viewerService.getNearestNodes(this.node.id, this.node.parentId, this.navigateSource);\n this.previousNodeId = nearest.left;\n this.nextNodeId = nearest.right;\n }\n return;\n }\n await this.router.navigate([this.previewLocation, id]);\n } catch (err) {\n if (err?.status !== 401) {\n await this.router.navigate([this.previewLocation, id]);\n }\n }\n }\n }\n\n @HostListener('document:keydown', ['$event'])\n handleKeyboardEvent(event: KeyboardEvent) {\n const key = event.key;\n\n if (key === 'ArrowRight' || key === 'ArrowLeft') {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n }\n\n /**\n * Handles the visibility change of the Viewer component.\n *\n * @param isVisible Indicator whether Viewer is visible or hidden.\n */\n onVisibilityChanged(isVisible: boolean): void {\n const shouldNavigate = !isVisible;\n this.navigateToFileLocation(shouldNavigate);\n }\n\n navigateToFileLocation(shouldNavigate: boolean) {\n if (shouldNavigate) {\n if (this.navigateBackAsClose) {\n this.location.back();\n } else {\n const shouldSkipNavigation = this.routesSkipNavigation.includes(this.previewLocation);\n const route = this.getNavigationCommands(this.previewLocation);\n\n if (!shouldSkipNavigation && this.folderId) {\n route.push(this.folderId);\n }\n void this.router.navigate(route);\n }\n }\n }\n\n /** Handles navigation to a previous document */\n onNavigateBefore(event: MouseEvent | KeyboardEvent): void {\n if (event.type !== 'click' && this.shouldNavigate(event.target as HTMLElement)) {\n return;\n }\n\n if (this.previousNodeId) {\n void this.router.navigate(this.getPreviewPath(this.folderId, this.previousNodeId));\n }\n }\n\n /** Handles navigation to a next document */\n onNavigateNext(event: MouseEvent | KeyboardEvent): void {\n if (event.type !== 'click' && this.shouldNavigate(event.target as HTMLElement)) {\n return;\n }\n\n if (this.nextNodeId) {\n void this.router.navigate(this.getPreviewPath(this.folderId, this.nextNodeId));\n }\n }\n\n /**\n * Generates a node preview route based on folder and node IDs.\n *\n * @param folderId Folder ID\n * @param nodeId Node ID\n */\n getPreviewPath(folderId: string, nodeId: string): any[] {\n const route = [this.previewLocation];\n\n if (folderId) {\n route.push(folderId);\n }\n\n if (nodeId) {\n route.push('preview', nodeId);\n }\n\n return route;\n }\n\n private getNavigationCommands(url: string): any[] {\n const urlTree: UrlTree = this.router.parseUrl(url);\n const urlSegmentGroup: UrlSegmentGroup = urlTree.root.children[PRIMARY_OUTLET];\n\n if (!urlSegmentGroup) {\n return [url];\n }\n\n const urlSegments: UrlSegment[] = urlSegmentGroup.segments;\n\n return urlSegments.reduce(function (acc, item) {\n acc.push(item.path, item.parameters);\n return acc;\n }, []);\n }\n\n private shouldNavigate(element: HTMLElement): boolean {\n let currentElement = element.parentElement;\n\n while (currentElement && !this.isChild(currentElement.classList)) {\n currentElement = currentElement.parentElement;\n }\n\n return !!currentElement;\n }\n\n private isChild(list: DOMTokenList): boolean {\n return Array.from(list).some((className: string) => this.containersSkipNavigation.includes(className));\n }\n}\n","@if (nodeId) {\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [nodeId]=\"nodeId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n [overlayMode]=\"true\"\n (showViewerChange)=\"onVisibilityChanged($event)\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n @if (infoDrawerOpened$ | async) {\n <adf-viewer-sidebar>\n <aca-info-drawer [node]=\"selection.file\" />\n </adf-viewer-sidebar>\n }\n @if (openWith.length) {\n <adf-viewer-open-with>\n @for (action of openWith; track trackByActionId($index, action)) {\n <app-toolbar-menu-item [actionRef]=\"action\" />\n }\n </adf-viewer-open-with>\n }\n @if (!simplestMode) {\n <adf-viewer-toolbar-actions>\n <aca-toolbar [items]=\"viewerToolbarActions\" />\n </adf-viewer-toolbar-actions>\n }\n </adf-alfresco-viewer>\n}\n","/*!\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { AcaViewerComponent } from './components/viewer/viewer.component';\nimport { PreviewComponent } from './components/preview/preview.component';\nimport { RouterModule, Routes } from '@angular/router';\n\nconst routes: Routes = [\n {\n path: '',\n data: {\n title: 'APP.PREVIEW.TITLE',\n navigateMultiple: true\n },\n component: AcaViewerComponent\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes), AcaViewerComponent, PreviewComponent],\n exports: [AcaViewerComponent, PreviewComponent]\n})\nexport class AcaViewerModule {}\n","/*!\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\n/*\n * Public API Surface of aca-viewer\n */\n\nexport * from './lib/components/viewer/viewer.component';\nexport * from './lib/components/preview/preview.component';\nexport * from './lib/viewer.module';\nexport * from './lib/services/viewer.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;AAsBG;MAeU,aAAa,CAAA;AAH1B,IAAA,WAAA,GAAA;AAImB,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,sBAAsB,CAAC;AAC5C,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAEvD,QAAA,IAAA,CAAA,iBAAiB,GAAG;YAClB,gBAAgB;YAChB,qBAAqB;YACrB,sBAAsB;YACtB,iBAAiB;YACjB,sBAAsB;YACtB,4BAA4B;YAC5B,mBAAmB;YACnB,qBAAqB;YACrB,qBAAqB;YACrB,kBA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A;AACE,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,KAAK,EAAE,mBAAmB;AAC1B,YAAA,gBAAgB,EAAE;AACnB,SAAA;AACD,QAAA,SAAS,EAAE;AACZ;CACF;MAMY,eAAe,CAAA;+GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,+BAHe,kBAAkB,EAAE,gBAAgB,CAAA,EAAA,OAAA,EAAA,CACnE,kBAAkB,EAAE,gBAAgB,CAAA,EAAA,CAAA,CAAA;gHAEnC,eAAe,EAAA,OAAA,EAAA,CAHhB,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,kBAAkB,EAAE,gBAAgB,CAAA,EAAA,CAAA,CAAA;;4FAGlE,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,kBAAkB,EAAE,gBAAgB,CAAC;AAC9E,oBAAA,OAAO,EAAE,CAAC,kBAAkB,EAAE,gBAAgB;AAC/C,iBAAA;;;AC3CD;;;;;;;;;;;;;;;;;;;;;;AAsBG;AAEH;;AAEG;;AC1BH;;AAEG;;"}
1
+ {"version":3,"file":"alfresco-aca-content-viewer.mjs","sources":["../../../../projects/aca-content/viewer/src/lib/services/viewer.service.ts","../../../../projects/aca-content/viewer/src/lib/components/viewer/viewer.component.ts","../../../../projects/aca-content/viewer/src/lib/components/viewer/viewer.component.html","../../../../projects/aca-content/viewer/src/lib/components/preview/preview.component.ts","../../../../projects/aca-content/viewer/src/lib/components/preview/preview.component.html","../../../../projects/aca-content/viewer/src/lib/viewer.module.ts","../../../../projects/aca-content/viewer/src/public-api.ts","../../../../projects/aca-content/viewer/src/alfresco-aca-content-viewer.ts"],"sourcesContent":["/*!\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { ObjectUtils, UserPreferencesService } from '@alfresco/adf-core';\nimport { FavoritePaging, Node, NodePaging, SearchRequest, ResultSetPaging, SharedLink, SharedLinkPaging } from '@alfresco/js-api';\nimport { Injectable, inject } from '@angular/core';\nimport { ContentApiService } from '@alfresco/aca-shared';\n\ninterface AdjacentFiles {\n left: string;\n right: string;\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ViewerService {\n private readonly preferences = inject(UserPreferencesService);\n private readonly contentApi = inject(ContentApiService);\n\n recentFileFilters = [\n 'TYPE:\"content\"',\n '-PATH:\"//cm:wiki/*\"',\n '-TYPE:\"app:filelink\"',\n '-TYPE:\"fm:post\"',\n '-TYPE:\"cm:thumbnail\"',\n '-TYPE:\"cm:failedThumbnail\"',\n '-TYPE:\"cm:rating\"',\n '-TYPE:\"dl:dataList\"',\n '-TYPE:\"dl:todoList\"',\n '-TYPE:\"dl:issue\"',\n '-TYPE:\"dl:contact\"',\n '-TYPE:\"dl:eventAgenda\"',\n '-TYPE:\"dl:event\"',\n '-TYPE:\"dl:task\"',\n '-TYPE:\"dl:simpletask\"',\n '-TYPE:\"dl:meetingAgenda\"',\n '-TYPE:\"dl:location\"',\n '-TYPE:\"fm:topic\"',\n '-TYPE:\"fm:post\"',\n '-TYPE:\"ia:calendarEvent\"',\n '-TYPE:\"lnk:link\"'\n ];\n\n /**\n * Retrieves nearest node information for the given node and folder.\n *\n * @param nodeId Unique identifier of the document node\n * @param folderId Unique identifier of the containing folder node.\n * @param source Data source name. Returns file ids for personal-files, libraries, favorites, shared and recent-files, otherwise returns empty.\n */\n async getNearestNodes(nodeId: string, folderId: string, source: string): Promise<AdjacentFiles> {\n const empty: AdjacentFiles = {\n left: null,\n right: null\n };\n\n if (nodeId && folderId) {\n try {\n const ids = await this.getFileIds(source, folderId);\n const idx = ids.indexOf(nodeId);\n\n if (idx >= 0) {\n return {\n left: ids[idx - 1] || null,\n right: ids[idx + 1] || null\n };\n }\n } catch {}\n }\n return empty;\n }\n\n /**\n * Retrieves a list of node identifiers for the folder and data source.\n *\n * @param source Data source name. Returns file ids for personal-files, libraries, favorites, shared and recent-files, otherwise returns empty.\n * @param folderId Optional parameter containing folder node identifier for 'personal-files' and 'libraries' sources.\n */\n async getFileIds(source: string, folderId?: string): Promise<string[]> {\n if (source === 'libraries') {\n source = 'libraries-files';\n }\n const isClient = this.preferences.get(`${source}.sorting.mode`) === 'client';\n const [sortKey, sortDirection, previousSortKey, previousSortDir] = this.getSortKeyDir(source);\n let nodes: NodePaging | FavoritePaging | SharedLinkPaging | ResultSetPaging;\n\n if (source === 'personal-files' || source === 'libraries-files') {\n if (!folderId) {\n return [];\n }\n const orderBy = isClient ? null : ['isFolder desc', `${sortKey} ${sortDirection}`];\n const result = await this.contentApi\n .getNodeChildren(folderId, {\n orderBy: orderBy,\n include: ['aspectNames'],\n fields: [...this.getFields(sortKey, previousSortKey), 'aspectNames'],\n where: '(isFile=true)'\n })\n .toPromise();\n if (result) {\n result.list.entries = result.list.entries.filter((e) => !e.entry.aspectNames?.includes('cm:checkedOut'));\n }\n nodes = result;\n }\n\n if (source === 'favorites') {\n nodes = await this.contentApi\n .getFavorites('-me-', {\n where: '(EXISTS(target/file))',\n fields: ['target']\n })\n .toPromise();\n }\n\n if (source === 'shared') {\n nodes = await this.contentApi\n .findSharedLinks({\n fields: ['nodeId', this.getRootField(sortKey)]\n })\n .toPromise();\n }\n\n if (source === 'recent-files') {\n const person = await this.contentApi.getPerson('-me-').toPromise();\n const username = person.entry.id;\n const query: SearchRequest = {\n query: {\n query: '*',\n language: 'afts'\n },\n filterQueries: [\n { query: `cm:modified:[NOW/DAY-30DAYS TO NOW/DAY+1DAY]` },\n { query: `cm:modifier:${username} OR cm:creator:${username}` },\n {\n query: this.recentFileFilters.join(' AND ')\n }\n ],\n fields: this.getFields(sortKey, previousSortKey),\n include: ['path', 'properties', 'allowableOperations'],\n sort: [\n {\n type: 'FIELD',\n field: 'cm:modified',\n ascending: false\n }\n ]\n };\n nodes = await this.contentApi.search(query).toPromise();\n }\n return this.getNodeIds(nodes, isClient, previousSortKey, previousSortDir, sortKey, sortDirection);\n }\n\n /**\n * Get the root field name from the property path.\n * Example: 'property1.some.child.property' => 'property1'\n *\n * @param path Property path\n */\n getRootField(path: string): string {\n if (path) {\n return path.split('.')[0];\n }\n return path;\n }\n\n private sort(items: Node[] | SharedLink[], key: string, direction: string) {\n const options: Intl.CollatorOptions = {};\n if (key.includes('sizeInBytes') || key === 'name') {\n options.numeric = true;\n }\n\n items.sort((a: Node | SharedLink, b: Node | SharedLink) => {\n let left = ObjectUtils.getValue(a, key) ?? '';\n left = left instanceof Date ? left.valueOf().toString() : left.toString();\n\n let right = ObjectUtils.getValue(b, key) ?? '';\n right = right instanceof Date ? right.valueOf().toString() : right.toString();\n\n return direction === 'asc' ? left.localeCompare(right, undefined, options) : right.localeCompare(left, undefined, options);\n });\n }\n\n private getFields(sortKey: string, previousSortKey?: string): string[] {\n return ['id', this.getRootField(sortKey), this.getRootField(previousSortKey)];\n }\n\n private getSortKeyDir(source: string): string[] {\n const previousSortKey = this.preferences.get(`${source}.sorting.previousKey`);\n const previousSortDir = this.preferences.get(`${source}.sorting.previousDirection`);\n const sortKey = this.preferences.get(`${source}.sorting.key`) || this.getDefaults(source)[0];\n const sortDirection = this.preferences.get(`${source}.sorting.direction`) || this.getDefaults(source)[1];\n return [sortKey, sortDirection, previousSortKey, previousSortDir];\n }\n\n private getDefaults(source: string): string[] {\n if (source === 'personal-files' || source === 'libraries-files') {\n return ['name', 'asc'];\n } else {\n return ['modifiedAt', 'desc'];\n }\n }\n\n private getNodeIds(\n nodes: NodePaging | FavoritePaging | SharedLinkPaging | ResultSetPaging,\n isClient: boolean,\n previousSortKey: string,\n previousSortDir: string,\n sortKey: string,\n sortDirection: string\n ): string[] {\n if (nodes) {\n const entries = nodes.list.entries.map((obj) => obj.entry.target?.file ?? obj.entry);\n if (isClient) {\n if (previousSortKey) {\n this.sort(entries, previousSortKey, previousSortDir);\n }\n this.sort(entries, sortKey, sortDirection);\n }\n return entries.map((entry) => entry.id ?? entry.nodeId);\n }\n return [];\n }\n}\n","/*!\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport {\n AppExtensionService,\n AppHookService,\n AppSettingsService,\n ContentApiService,\n InfoDrawerComponent,\n ToolbarComponent,\n ToolbarMenuItemComponent\n} from '@alfresco/aca-shared';\nimport {\n AppStore,\n ClosePreviewAction,\n getAppSelection,\n isInfoDrawerOpened,\n RefreshPreviewAction,\n SetCurrentNodeVersionAction,\n SetSelectedNodesAction,\n ViewerActionTypes,\n ViewNodeAction\n} from '@alfresco/aca-shared/store';\nimport { ContentActionRef, SelectionState } from '@alfresco/adf-extensions';\nimport { Node, VersionEntry, VersionsApi, LazyApi, PathElement } from '@alfresco/js-api';\nimport { Component, DestroyRef, HostListener, inject, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';\nimport { ActivatedRoute, NavigationStart, PRIMARY_OUTLET, Router, UrlSegment } from '@angular/router';\nimport { ViewerOpenWithComponent, ViewerSidebarComponent, ViewerToolbarActionsComponent } from '@alfresco/adf-core';\nimport { Store } from '@ngrx/store';\nimport { from, Observable, of, Subscription } from 'rxjs';\nimport { debounceTime, filter, take, timeout } from 'rxjs/operators';\nimport { Actions, ofType } from '@ngrx/effects';\nimport { AlfrescoApiService, AlfrescoViewerComponent, DocumentListService, NodesApiService, UploadService } from '@alfresco/adf-content-services';\nimport { CommonModule } from '@angular/common';\nimport { ViewerService } from '../../services/viewer.service';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n@Component({\n imports: [\n CommonModule,\n InfoDrawerComponent,\n ToolbarMenuItemComponent,\n ToolbarComponent,\n AlfrescoViewerComponent,\n ViewerToolbarActionsComponent,\n ViewerOpenWithComponent,\n ViewerSidebarComponent\n ],\n selector: 'aca-viewer',\n templateUrl: './viewer.component.html',\n styleUrls: ['./viewer.component.scss'],\n encapsulation: ViewEncapsulation.None,\n host: { class: 'app-viewer' }\n})\nexport class AcaViewerComponent implements OnInit, OnDestroy {\n private readonly actions$ = inject(Actions);\n private readonly apiService = inject(AlfrescoApiService);\n private readonly appHookService = inject(AppHookService);\n private readonly contentApi = inject(ContentApiService);\n private readonly extensions = inject(AppExtensionService);\n private readonly nodesApiService = inject(NodesApiService);\n private readonly route = inject(ActivatedRoute);\n private readonly router = inject(Router);\n private readonly store = inject<Store<AppStore>>(Store);\n private readonly uploadService = inject(UploadService);\n private readonly viewerService = inject(ViewerService);\n\n settings = inject(AppSettingsService);\n\n private readonly documentListService = inject(DocumentListService);\n\n @LazyApi((self: AcaViewerComponent) => new VersionsApi(self.apiService.getInstance()))\n declare versionsApi: VersionsApi;\n fileName: string;\n folderId: string = null;\n infoDrawerOpened$: Observable<boolean>;\n navigateMultiple = true;\n navigateSource: string = null;\n navigationSources = ['favorites', 'libraries', 'personal-files', 'recent-files', 'shared'];\n nextNodeId: string;\n node: Node;\n nodeId: string = null;\n openWith: ContentActionRef[] = [];\n previousNodeId: string;\n selection: SelectionState;\n showRightSide = false;\n toolbarActions: ContentActionRef[] = [];\n versionId: string = null;\n\n private _breadcrumbsRoot = 'APP.BROWSE.PERSONAL.TITLE';\n private navigationPath: string;\n private pendingBreadcrumbNavigation: Subscription;\n private previewLocation: string;\n\n private readonly containersSkipNavigation = ['adf-viewer__sidebar', 'cdk-overlay-container', 'adf-image-viewer'];\n private readonly destroyRef = inject(DestroyRef);\n\n get breadcrumbsRoot(): string {\n return this._breadcrumbsRoot;\n }\n\n ngOnInit() {\n this.infoDrawerOpened$ = this.store.select(isInfoDrawerOpened);\n\n from(this.infoDrawerOpened$)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((val) => {\n this.showRightSide = val;\n });\n\n this.store\n .select(getAppSelection)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((selection) => {\n this.selection = selection;\n });\n\n this.extensions\n .getViewerToolbarActions()\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((actions) => {\n this.toolbarActions = actions;\n });\n\n this.extensions\n .getOpenWithActions()\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((actions) => {\n this.openWith = actions;\n });\n\n this.route.params.subscribe((params) => {\n this.folderId = params.folderId;\n const { nodeId } = params;\n this.versionId = params.versionId;\n if (this.versionId) {\n void this.versionsApi.getVersion(nodeId, this.versionId).then((version: VersionEntry) => {\n if (version) {\n this.store.dispatch(new SetCurrentNodeVersionAction(version));\n }\n });\n }\n if (nodeId) {\n void this.displayNode(nodeId);\n }\n });\n\n this.route.queryParams.subscribe((params) => {\n this.navigationPath = params.path || params.location;\n });\n\n if (this.route.snapshot.data?.navigateSource) {\n const source = this.route.snapshot.data.navigateSource.toLowerCase();\n if (this.navigationSources.includes(source)) {\n this.navigateSource = this.route.snapshot.data.navigateSource;\n }\n }\n\n this.actions$.pipe(ofType<ClosePreviewAction>(ViewerActionTypes.ClosePreview), takeUntilDestroyed(this.destroyRef)).subscribe(() => {\n this.store.dispatch(new SetCurrentNodeVersionAction(null));\n this.navigateToFileLocation();\n });\n\n this.actions$\n .pipe(ofType<RefreshPreviewAction>(ViewerActionTypes.RefreshPreview), takeUntilDestroyed(this.destroyRef))\n .subscribe((action: RefreshPreviewAction) => {\n this.nodesApiService.nodeUpdated.next(action.node);\n void this.displayNode(action.node.id);\n });\n\n this.appHookService.nodesDeleted.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => this.navigateToFileLocation());\n\n this.uploadService.fileUploadDeleted.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => this.navigateToFileLocation());\n\n this.uploadService.fileUploadComplete.pipe(debounceTime(300), takeUntilDestroyed(this.destroyRef)).subscribe((event) => {\n const uploadedEntry = event.data.entry;\n this.nodesApiService.nodeUpdated.next(uploadedEntry);\n\n if (this.node?.aspectNames?.includes('cm:workingcopy') && event.file?.id === this.nodeId && uploadedEntry.id !== this.nodeId) {\n const location = this.route.snapshot.queryParams['location'] || this.router.url;\n this.store.dispatch(new ViewNodeAction(uploadedEntry.id, { location }));\n } else if (uploadedEntry.id === this.nodeId) {\n void this.displayNode(uploadedEntry.id);\n }\n });\n\n this.previewLocation = this.router.url.substring(0, this.router.url.indexOf('/', 1)).replace(/\\//g, '');\n }\n\n onViewerVisibilityChanged() {\n this.documentListService.reload();\n this.navigateToFileLocation();\n }\n\n ngOnDestroy() {\n this.store.dispatch(new SetCurrentNodeVersionAction(null));\n }\n\n trackByActionId(_: number, obj: ContentActionRef): string {\n return obj.id;\n }\n\n async displayNode(nodeId: string) {\n if (nodeId) {\n try {\n this.node = await this.contentApi.getNodeInfo(nodeId).toPromise();\n this.setBreadcrumbsRoot();\n this.store.dispatch(new SetSelectedNodesAction([{ entry: this.node }]));\n this.navigateMultiple = this.extensions.canShowViewerNavigation({ entry: this.node });\n\n if (this.node?.isFile) {\n this.nodeId = this.node.id;\n this.fileName = this.node.name + this.node?.properties?.['cm:versionLabel'];\n if (this.navigateMultiple) {\n const nearest = await this.viewerService.getNearestNodes(this.node.id, this.node.parentId, this.navigateSource);\n this.previousNodeId = nearest.left;\n this.nextNodeId = nearest.right;\n }\n return;\n }\n this.navigateToFileLocation();\n } catch (error) {\n const statusCode = JSON.parse(error.message).error.statusCode;\n\n if (statusCode !== 401) {\n await this.router.navigate([this.previewLocation, { outlets: { viewer: null } }]).then(() => {\n void this.router.navigate([this.previewLocation, nodeId]);\n });\n }\n }\n }\n }\n\n onNavigateBefore(event: MouseEvent | KeyboardEvent): void {\n if (event.type !== 'click' && this.shouldNavigate(event.target as HTMLElement)) {\n return;\n }\n\n const location = this.getFileLocation();\n this.store.dispatch(new ViewNodeAction(this.previousNodeId, { location }));\n }\n\n onNavigateNext(event: MouseEvent | KeyboardEvent): void {\n if (event.type !== 'click' && this.shouldNavigate(event.target as HTMLElement)) {\n return;\n }\n\n const location = this.getFileLocation();\n this.store.dispatch(new ViewNodeAction(this.nextNodeId, { location }));\n }\n\n async onBreadcrumbNavigate(route: PathElement): Promise<void> {\n const folderWithViewerUrl = this.router.parseUrl(this.router.url);\n const primary = folderWithViewerUrl.root.children[PRIMARY_OUTLET];\n if (!primary?.segments.length) {\n return;\n }\n\n this.pendingBreadcrumbNavigation?.unsubscribe();\n const elements = this.node?.path?.elements ?? [];\n const isSitesPath = elements[1]?.nodeType === 'st:sites';\n const browsingAreas = ['personal-files', 'libraries', 'favorite', 'repository'];\n let path: string;\n if (browsingAreas.includes(primary.segments[0].path)) {\n path = primary.segments[0].path;\n } else {\n path = isSitesPath ? 'libraries' : 'personal-files';\n }\n const isLibraries = path === 'libraries' || path === 'favorite';\n const baseCommands = path === 'favorite' ? [path, 'libraries'] : [path];\n const basePath = baseCommands.join('/');\n const isRootClicked = route.id === elements[0]?.id && (isLibraries || path === 'personal-files' || path === 'repository');\n if (isRootClicked || (isLibraries && isSitesPath && route.id === elements[1].id)) {\n await this.router.navigateByUrl(`/${basePath}`);\n return;\n }\n if (isLibraries && isSitesPath && route.id === elements[2]?.id && elements[3]) {\n route = elements[3];\n }\n const isAreaChanged = primary.segments[0].path !== path;\n if (route.id === this.node?.parentId || isAreaChanged) {\n await this.router.navigateByUrl(`/${basePath}/${route.id}`);\n return;\n }\n primary.segments = [...baseCommands, route.id].map((segment) => new UrlSegment(segment, {}));\n\n this.pendingBreadcrumbNavigation = this.appHookService.documentListReady$\n .pipe(\n filter((folderId) => folderId === route.id),\n take(1),\n timeout({ first: 5000, with: () => of(null) }),\n takeUntilDestroyed(this.destroyRef)\n )\n .subscribe(() => void this.router.navigate([...baseCommands, route.id], { replaceUrl: true }));\n this.router.events\n .pipe(\n filter((event) => event instanceof NavigationStart),\n take(1)\n )\n .subscribe(() => this.store.dispatch(new SetSelectedNodesAction([{ entry: this.node }])));\n\n await this.router.navigateByUrl(folderWithViewerUrl);\n }\n\n @HostListener('document:keydown', ['$event'])\n handleKeyboardEvent(event: KeyboardEvent) {\n const key = event.key;\n\n if (key === 'ArrowRight' || key === 'ArrowLeft') {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n }\n\n private navigateToFileLocation() {\n const location = this.getFileLocation();\n void this.router.navigateByUrl(location);\n }\n\n private getFileLocation(): string {\n return this.navigationPath || this.router.parseUrl(this.router.url).root.children[PRIMARY_OUTLET].toString();\n }\n\n private shouldNavigate(element: HTMLElement): boolean {\n let currentElement = element.parentElement;\n\n while (currentElement && !this.isChild(currentElement.classList)) {\n currentElement = currentElement.parentElement;\n }\n\n return !!currentElement;\n }\n\n private isChild(list: DOMTokenList): boolean {\n return Array.from(list).some((className: string) => this.containersSkipNavigation.includes(className));\n }\n\n private setBreadcrumbsRoot(): void {\n this._breadcrumbsRoot = 'APP.BROWSE.PERSONAL.TITLE';\n if (this.router.url.startsWith('/repository')) {\n this._breadcrumbsRoot = 'APP.BROWSE.REPOSITORY_VIEW.TITLE';\n } else if (this.node.path?.elements?.[1]?.nodeType === 'st:sites' && !this.router.url.startsWith('/personal-files')) {\n this._breadcrumbsRoot = this.navigationPath?.startsWith('/favorite/')\n ? 'APP.BROWSE.LIBRARIES.MENU.FAVORITE_LIBRARIES.TITLE'\n : 'APP.BROWSE.LIBRARIES.MENU.MY_LIBRARIES.TITLE';\n }\n }\n}\n","@if (nodeId) {\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [maxRetries]=\"settings.viewerMaxRetries\"\n [nodeId]=\"nodeId\"\n [readOnly]=\"node?.aspectNames?.includes('cm:checkedOut')\"\n [versionId]=\"versionId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [overlayMode]=\"true\"\n [hideInfoButton]=\"true\"\n [closeButtonPosition]=\"settings.viewerCloseButtonPosition\"\n (showViewerChange)=\"onViewerVisibilityChanged()\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n (breadcrumbNavigate)=\"onBreadcrumbNavigate($event)\"\n [showBreadcrumbs]=\"true\"\n [breadcrumbsRoot]=\"breadcrumbsRoot\">\n @if (infoDrawerOpened$ | async) {\n <adf-viewer-sidebar>\n <aca-info-drawer [node]=\"selection.file\" />\n </adf-viewer-sidebar>\n }\n @if (openWith.length) {\n <adf-viewer-open-with>\n @for (action of openWith; track trackByActionId($index, action)) {\n <app-toolbar-menu-item [actionRef]=\"action\" />\n }\n </adf-viewer-open-with>\n }\n <adf-viewer-toolbar-actions>\n <aca-toolbar [items]=\"toolbarActions\" />\n </adf-viewer-toolbar-actions>\n </adf-alfresco-viewer>\n}\n","/*!\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { Component, HostListener, OnInit, ViewEncapsulation, inject } from '@angular/core';\nimport { CommonModule, Location } from '@angular/common';\nimport { ActivatedRoute, PRIMARY_OUTLET, UrlSegment, UrlSegmentGroup, UrlTree } from '@angular/router';\nimport { debounceTime, map } from 'rxjs/operators';\nimport { ViewerModule } from '@alfresco/adf-core';\nimport { ClosePreviewAction, SetSelectedNodesAction, ViewerActionTypes } from '@alfresco/aca-shared/store';\nimport {\n AppHookService,\n ContentApiService,\n InfoDrawerComponent,\n PageComponent,\n ToolbarComponent,\n ToolbarMenuItemComponent\n} from '@alfresco/aca-shared';\nimport { ContentActionRef } from '@alfresco/adf-extensions';\nimport { from } from 'rxjs';\nimport { Actions, ofType } from '@ngrx/effects';\nimport { AlfrescoViewerModule, NodesApiService } from '@alfresco/adf-content-services';\nimport { ViewerService } from '../../services/viewer.service';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n@Component({\n imports: [CommonModule, ViewerModule, AlfrescoViewerModule, InfoDrawerComponent, ToolbarMenuItemComponent, ToolbarComponent],\n selector: 'app-preview',\n templateUrl: './preview.component.html',\n styleUrls: ['./preview.component.scss'],\n encapsulation: ViewEncapsulation.None,\n host: { class: 'app-preview' }\n})\nexport class PreviewComponent extends PageComponent implements OnInit {\n private readonly actions$ = inject(Actions);\n private readonly appHookService = inject(AppHookService);\n private readonly contentApi = inject(ContentApiService);\n private readonly location = inject(Location);\n private readonly nodesApiService = inject(NodesApiService);\n private readonly route = inject(ActivatedRoute);\n private readonly viewerService = inject(ViewerService);\n\n folderId: string = null;\n navigateBackAsClose = false;\n navigateMultiple = false;\n navigateSource: string = null;\n navigationSources = ['favorites', 'libraries', 'personal-files', 'recent-files', 'shared'];\n nextNodeId: string;\n nodeId: string = null;\n openWith: Array<ContentActionRef> = [];\n previewLocation: string = null;\n previousNodeId: string;\n routesSkipNavigation = ['favorites', 'recent-files', 'shared'];\n showRightSide = false;\n simplestMode = false;\n\n private readonly containersSkipNavigation = ['adf-viewer__sidebar', 'cdk-overlay-container', 'adf-image-viewer'];\n\n ngOnInit() {\n super.ngOnInit();\n\n from(this.infoDrawerOpened$)\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((val) => {\n this.showRightSide = val;\n });\n\n this.previewLocation = this.router.url.substr(0, this.router.url.indexOf('/', 1)).replace(/\\//g, '');\n\n const routeData = this.route.snapshot.data;\n this.navigateBackAsClose = !!routeData.navigateBackAsClose;\n this.simplestMode = !!routeData.simplestMode;\n\n if (routeData.navigateMultiple) {\n this.navigateMultiple = true;\n }\n\n if (routeData.navigateSource) {\n const source = routeData.navigateSource.toLowerCase();\n if (this.navigationSources.includes(source)) {\n this.navigateSource = routeData.navigateSource;\n }\n }\n\n this.route.params.subscribe((params) => {\n this.folderId = params.folderId;\n const id = params.nodeId;\n if (id) {\n void this.displayNode(id);\n }\n });\n\n this.subscriptions = this.subscriptions.concat([\n this.appHookService.nodesDeleted.subscribe(() => this.navigateToFileLocation(true)),\n\n this.uploadService.fileUploadDeleted.subscribe(() => this.navigateToFileLocation(true)),\n\n this.uploadService.fileUploadComplete.pipe(debounceTime(300)).subscribe((file) => this.nodesApiService.nodeUpdated.next(file.data.entry)),\n\n this.actions$\n .pipe(\n ofType<ClosePreviewAction>(ViewerActionTypes.ClosePreview),\n map(() => this.navigateToFileLocation(true))\n )\n .subscribe(() => {})\n ]);\n\n this.extensions\n .getOpenWithActions()\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((actions) => {\n this.openWith = actions;\n });\n }\n\n /**\n * Loads the particular node into the Viewer\n *\n * @param id Unique identifier for the Node to display\n */\n async displayNode(id: string) {\n if (id) {\n try {\n this.node = await this.contentApi.getNodeInfo(id).toPromise();\n this.store.dispatch(new SetSelectedNodesAction([{ entry: this.node }]));\n\n if (this.node?.isFile) {\n this.nodeId = this.node.id;\n if (this.navigateMultiple) {\n const nearest = await this.viewerService.getNearestNodes(this.node.id, this.node.parentId, this.navigateSource);\n this.previousNodeId = nearest.left;\n this.nextNodeId = nearest.right;\n }\n return;\n }\n await this.router.navigate([this.previewLocation, id]);\n } catch (err) {\n if (err?.status !== 401) {\n await this.router.navigate([this.previewLocation, id]);\n }\n }\n }\n }\n\n @HostListener('document:keydown', ['$event'])\n handleKeyboardEvent(event: KeyboardEvent) {\n const key = event.key;\n\n if (key === 'ArrowRight' || key === 'ArrowLeft') {\n event.preventDefault();\n event.stopImmediatePropagation();\n }\n }\n\n /**\n * Handles the visibility change of the Viewer component.\n *\n * @param isVisible Indicator whether Viewer is visible or hidden.\n */\n onVisibilityChanged(isVisible: boolean): void {\n const shouldNavigate = !isVisible;\n this.navigateToFileLocation(shouldNavigate);\n }\n\n navigateToFileLocation(shouldNavigate: boolean) {\n if (shouldNavigate) {\n if (this.navigateBackAsClose) {\n this.location.back();\n } else {\n const shouldSkipNavigation = this.routesSkipNavigation.includes(this.previewLocation);\n const route = this.getNavigationCommands(this.previewLocation);\n\n if (!shouldSkipNavigation && this.folderId) {\n route.push(this.folderId);\n }\n void this.router.navigate(route);\n }\n }\n }\n\n /** Handles navigation to a previous document */\n onNavigateBefore(event: MouseEvent | KeyboardEvent): void {\n if (event.type !== 'click' && this.shouldNavigate(event.target as HTMLElement)) {\n return;\n }\n\n if (this.previousNodeId) {\n void this.router.navigate(this.getPreviewPath(this.folderId, this.previousNodeId));\n }\n }\n\n /** Handles navigation to a next document */\n onNavigateNext(event: MouseEvent | KeyboardEvent): void {\n if (event.type !== 'click' && this.shouldNavigate(event.target as HTMLElement)) {\n return;\n }\n\n if (this.nextNodeId) {\n void this.router.navigate(this.getPreviewPath(this.folderId, this.nextNodeId));\n }\n }\n\n /**\n * Generates a node preview route based on folder and node IDs.\n *\n * @param folderId Folder ID\n * @param nodeId Node ID\n */\n getPreviewPath(folderId: string, nodeId: string): any[] {\n const route = [this.previewLocation];\n\n if (folderId) {\n route.push(folderId);\n }\n\n if (nodeId) {\n route.push('preview', nodeId);\n }\n\n return route;\n }\n\n private getNavigationCommands(url: string): any[] {\n const urlTree: UrlTree = this.router.parseUrl(url);\n const urlSegmentGroup: UrlSegmentGroup = urlTree.root.children[PRIMARY_OUTLET];\n\n if (!urlSegmentGroup) {\n return [url];\n }\n\n const urlSegments: UrlSegment[] = urlSegmentGroup.segments;\n\n return urlSegments.reduce(function (acc, item) {\n acc.push(item.path, item.parameters);\n return acc;\n }, []);\n }\n\n private shouldNavigate(element: HTMLElement): boolean {\n let currentElement = element.parentElement;\n\n while (currentElement && !this.isChild(currentElement.classList)) {\n currentElement = currentElement.parentElement;\n }\n\n return !!currentElement;\n }\n\n private isChild(list: DOMTokenList): boolean {\n return Array.from(list).some((className: string) => this.containersSkipNavigation.includes(className));\n }\n}\n","@if (nodeId) {\n <adf-alfresco-viewer\n [ngClass]=\"{\n 'aca-right_side--hide': !showRightSide\n }\"\n [nodeId]=\"nodeId\"\n [allowNavigate]=\"navigateMultiple\"\n [allowRightSidebar]=\"true\"\n [allowPrint]=\"false\"\n [showRightSidebar]=\"true\"\n [allowDownload]=\"false\"\n [allowFullScreen]=\"false\"\n [canNavigateBefore]=\"!!previousNodeId\"\n [canNavigateNext]=\"!!nextNodeId\"\n [overlayMode]=\"true\"\n (showViewerChange)=\"onVisibilityChanged($event)\"\n (navigateBefore)=\"onNavigateBefore($event)\"\n (navigateNext)=\"onNavigateNext($event)\"\n >\n @if (infoDrawerOpened$ | async) {\n <adf-viewer-sidebar>\n <aca-info-drawer [node]=\"selection.file\" />\n </adf-viewer-sidebar>\n }\n @if (openWith.length) {\n <adf-viewer-open-with>\n @for (action of openWith; track trackByActionId($index, action)) {\n <app-toolbar-menu-item [actionRef]=\"action\" />\n }\n </adf-viewer-open-with>\n }\n @if (!simplestMode) {\n <adf-viewer-toolbar-actions>\n <aca-toolbar [items]=\"viewerToolbarActions\" />\n </adf-viewer-toolbar-actions>\n }\n </adf-alfresco-viewer>\n}\n","/*!\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport { NgModule } from '@angular/core';\nimport { AcaViewerComponent } from './components/viewer/viewer.component';\nimport { PreviewComponent } from './components/preview/preview.component';\nimport { RouterModule, Routes } from '@angular/router';\n\nconst routes: Routes = [\n {\n path: '',\n data: {\n title: 'APP.PREVIEW.TITLE',\n navigateMultiple: true\n },\n component: AcaViewerComponent\n }\n];\n\n@NgModule({\n imports: [RouterModule.forChild(routes), AcaViewerComponent, PreviewComponent],\n exports: [AcaViewerComponent, PreviewComponent]\n})\nexport class AcaViewerModule {}\n","/*!\n * Copyright © 2005-2026 Hyland Software, Inc. and its affiliates. All rights reserved.\n *\n * Alfresco Example Content Application\n *\n * This file is part of the Alfresco Example Content Application.\n * If the software was purchased under a paid Alfresco license, the terms of\n * the paid license agreement will prevail. Otherwise, the software is\n * provided under the following open source license terms:\n *\n * The Alfresco Example Content Application is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesser General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * The Alfresco Example Content Application is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Lesser General Public License for more details.\n *\n * You should have received a copy of the GNU Lesser General Public License\n * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.\n */\n\n/*\n * Public API Surface of aca-viewer\n */\n\nexport * from './lib/components/viewer/viewer.component';\nexport * from './lib/components/preview/preview.component';\nexport * from './lib/viewer.module';\nexport * from './lib/services/viewer.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;AAsBG;MAeU,aAAa,CAAA;AAH1B,IAAA,WAAA,GAAA;AAImB,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,sBAAsB,CAAC;AAC5C,QAAA,IAAA,CAAA,UAA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