@alfresco/aca-content 7.2.0-18836116450 → 7.2.0-18837796869

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.
@@ -1,6 +1,6 @@
1
1
  import { DomSanitizer, HammerModule } from '@angular/platform-browser';
2
2
  import * as i0 from '@angular/core';
3
- import { inject, Injectable, DestroyRef, ViewEncapsulation, Component, SecurityContext, NgZone, RendererFactory2, Inject, InjectionToken, Input, EventEmitter, Output, Directive, HostListener, ViewChild, Injector, NgModule, ChangeDetectionStrategy, Optional, Pipe, ContentChildren, QueryList, ViewChildren } from '@angular/core';
3
+ import { inject, Injectable, DestroyRef, ViewEncapsulation, Component, SecurityContext, NgZone, RendererFactory2, Inject, InjectionToken, Input, EventEmitter, Output, Directive, HostListener, ViewChild, QueryList, ViewChildren, Injector, NgModule, ChangeDetectionStrategy, Optional, Pipe, ContentChildren } from '@angular/core';
4
4
  import * as i2$1 from '@alfresco/adf-core';
5
5
  import { DIALOG_COMPONENT_DATA, TimeAgoPipe, LocalizedDatePipe, IconComponent, NotificationService, TranslationService, ConfirmDialogComponent, DialogComponent, DialogSize, FileUtils, LogoutDirective, UserPreferencesService, AppConfigValues, UnsavedChangesDialogComponent, AvatarComponent, ShowHeaderMode, PaginationComponent, DataColumnListComponent, DataColumnComponent, CustomEmptyContentTemplateDirective, EmptyContentComponent, DateColumnHeaderComponent, ViewerToolbarComponent, InfoDrawerButtonsDirective, AuthenticationService, ViewerModule, DataTableSchema, DATATABLE_DIRECTIVES, TEMPLATE_DIRECTIVES, DataTableComponent, AuthGuard, UnsavedChangesGuard, UserPreferenceValues, provideTranslations, NotificationHistoryComponent, LanguagePickerComponent, AuthGuardEcm } from '@alfresco/adf-core';
6
6
  import * as i3 from '@alfresco/adf-content-services';
@@ -42,9 +42,9 @@ import * as i1$4 from '@angular/cdk/overlay';
42
42
  import { OverlayConfig } from '@angular/cdk/overlay';
43
43
  import { ComponentPortal } from '@angular/cdk/portal';
44
44
  import * as i3$1 from '@angular/material/menu';
45
- import { MatMenuModule, MatMenuTrigger, MatMenuItem, MatMenu } from '@angular/material/menu';
45
+ import { MatMenuModule, MatMenuTrigger, MatMenu, MatMenuItem } from '@angular/material/menu';
46
46
  import * as i6$3 from '@alfresco/adf-extensions';
47
- import { DynamicExtensionComponent, DynamicColumnComponent, provideAppExtensions, provideExtensions } from '@alfresco/adf-extensions';
47
+ import { DynamicExtensionComponent, ContentActionType, DynamicColumnComponent, provideAppExtensions, provideExtensions } from '@alfresco/adf-extensions';
48
48
  import * as i5 from '@angular/cdk/bidi';
49
49
  import * as i4 from '@angular/material/icon';
50
50
  import { MatIconModule } from '@angular/material/icon';
@@ -3793,6 +3793,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
3793
3793
  * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
3794
3794
  */
3795
3795
  class ContextMenuComponent extends BaseContextMenuDirective {
3796
+ dynamicExtensionComponents;
3797
+ menu;
3798
+ matMenuItems;
3796
3799
  destroyRef = inject(DestroyRef);
3797
3800
  constructor(contextMenuOverlayRef, extensions, direction) {
3798
3801
  super(contextMenuOverlayRef, extensions, direction);
@@ -3809,9 +3812,38 @@ class ContextMenuComponent extends BaseContextMenuDirective {
3809
3812
  if (this.actions.length) {
3810
3813
  setTimeout(() => this.trigger.openMenu(), 0);
3811
3814
  }
3815
+ const itemsById = this.createMenuItemsLookup();
3816
+ const orderedItems = this.createOrderedItemsList(itemsById);
3817
+ const menuItemsQueryList = new QueryList();
3818
+ menuItemsQueryList.reset(orderedItems);
3819
+ this.menu._allItems = menuItemsQueryList;
3820
+ this.menu.ngAfterContentInit();
3821
+ }
3822
+ createMenuItemsLookup() {
3823
+ const itemsById = new Map();
3824
+ this.matMenuItems.forEach((item) => {
3825
+ itemsById.set(item._getHostElement()?.getAttribute('id'), item);
3826
+ });
3827
+ this.dynamicExtensionComponents.forEach((component) => {
3828
+ if (component.menuItem && component.id) {
3829
+ itemsById.set(component.id, component.menuItem);
3830
+ }
3831
+ });
3832
+ return itemsById;
3833
+ }
3834
+ createOrderedItemsList(itemsById) {
3835
+ const orderedItems = [];
3836
+ this.actions.forEach((action) => {
3837
+ const lookupId = action.type === ContentActionType.custom ? action.component : action.id;
3838
+ const item = lookupId ? itemsById.get(lookupId) : undefined;
3839
+ if (item) {
3840
+ orderedItems.push(item);
3841
+ }
3842
+ });
3843
+ return orderedItems;
3812
3844
  }
3813
3845
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ContextMenuComponent, deps: [{ token: ContextMenuOverlayRef }, { token: i2.AppExtensionService }, { token: CONTEXT_MENU_DIRECTION }], target: i0.ɵɵFactoryTarget.Component });
3814
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ContextMenuComponent, isStandalone: true, selector: "aca-context-menu", host: { classAttribute: "aca-context-menu-holder" }, usesInheritance: true, ngImport: i0, template: "<div [dir]=\"direction\">\n <div style=\"visibility: hidden;\" [matMenuTriggerFor]=\"rootMenu\"></div>\n\n <mat-menu #rootMenu=\"matMenu\" class=\"aca-context-menu\" hasBackdrop=\"false\" acaContextMenuOutsideEvent (clickOutside)=\"onClickOutsideEvent()\">\n <ng-container *ngFor=\"let entry of actions; trackBy: trackByActionId\" [ngSwitch]=\"entry.type\">\n <ng-container *ngSwitchDefault>\n <button mat-menu-item [id]=\"entry.id\" (click)=\"runAction(entry)\">\n <adf-icon [value]=\"entry.icon\" class=\"app-context-menu-item--icon\" />\n <span [attr.data-automation-id]=\"entry.id + '-label'\">{{ entry.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'separator'\">\n <mat-divider />\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'menu'\">\n <button mat-menu-item [id]=\"entry.id\" [matMenuTriggerFor]=\"childMenu\">\n <adf-icon [value]=\"entry.icon\" class=\"app-context-menu-item--icon\" />\n <span [attr.data-automation-id]=\"entry.id + '-label'\">{{ entry.title | translate }}</span>\n </button>\n\n <mat-menu #childMenu=\"matMenu\">\n <ng-container *ngFor=\"let child of entry.children; trackBy: trackByActionId\">\n <app-context-menu-item [actionRef]=\"child\" />\n </ng-container>\n </mat-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [data]=\"entry.data\" [id]=\"entry.component\" />\n </ng-container>\n </ng-container>\n </mat-menu>\n</div>\n", styles: [".aca-context-menu .app-context-menu-item--icon{display:inline-flex;vertical-align:middle}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3$1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i5.Dir, selector: "[dir]", inputs: ["dir"], outputs: ["dirChange"], exportAs: ["dir"] }, { kind: "component", type: i3$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i6.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: ContextMenuItemComponent, selector: "app-context-menu-item", inputs: ["actionRef"] }, { kind: "directive", type: OutsideEventDirective, selector: "[acaContextMenuOutsideEvent]", outputs: ["clickOutside"] }, { kind: "component", type: IconComponent, selector: "adf-icon", inputs: ["color", "fontSet", "value"] }, { kind: "component", type: DynamicExtensionComponent, selector: "adf-dynamic-component", inputs: ["id", "data"] }], encapsulation: i0.ViewEncapsulation.None });
3846
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ContextMenuComponent, isStandalone: true, selector: "aca-context-menu", host: { classAttribute: "aca-context-menu-holder" }, viewQueries: [{ propertyName: "menu", first: true, predicate: MatMenu, descendants: true }, { propertyName: "dynamicExtensionComponents", predicate: DynamicExtensionComponent, descendants: true }, { propertyName: "matMenuItems", predicate: MatMenuItem, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div [dir]=\"direction\">\n <div style=\"visibility: hidden;\" [matMenuTriggerFor]=\"rootMenu\"></div>\n\n <mat-menu #rootMenu=\"matMenu\" class=\"aca-context-menu\" hasBackdrop=\"false\" acaContextMenuOutsideEvent (clickOutside)=\"onClickOutsideEvent()\">\n <ng-container *ngFor=\"let entry of actions; trackBy: trackByActionId\" [ngSwitch]=\"entry.type\">\n <ng-container *ngSwitchDefault>\n <button mat-menu-item [id]=\"entry.id\" (click)=\"runAction(entry)\">\n <adf-icon [value]=\"entry.icon\" class=\"app-context-menu-item--icon\" />\n <span [attr.data-automation-id]=\"entry.id + '-label'\">{{ entry.title | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'separator'\">\n <mat-divider />\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'menu'\">\n <button mat-menu-item [id]=\"entry.id\" [matMenuTriggerFor]=\"childMenu\">\n <adf-icon [value]=\"entry.icon\" class=\"app-context-menu-item--icon\" />\n <span [attr.data-automation-id]=\"entry.id + '-label'\">{{ entry.title | translate }}</span>\n </button>\n\n <mat-menu #childMenu=\"matMenu\">\n <ng-container *ngFor=\"let child of entry.children; trackBy: trackByActionId\">\n <app-context-menu-item [actionRef]=\"child\" />\n </ng-container>\n </mat-menu>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'custom'\">\n <adf-dynamic-component [data]=\"entry.data\" [id]=\"entry.component\" />\n </ng-container>\n </ng-container>\n </mat-menu>\n</div>\n", styles: [".aca-context-menu .app-context-menu-item--icon{display:inline-flex;vertical-align:middle}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3$1.MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: i5.Dir, selector: "[dir]", inputs: ["dir"], outputs: ["dirChange"], exportAs: ["dir"] }, { kind: "component", type: i3$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i6.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "component", type: ContextMenuItemComponent, selector: "app-context-menu-item", inputs: ["actionRef"] }, { kind: "directive", type: OutsideEventDirective, selector: "[acaContextMenuOutsideEvent]", outputs: ["clickOutside"] }, { kind: "component", type: IconComponent, selector: "adf-icon", inputs: ["color", "fontSet", "value"] }, { kind: "component", type: DynamicExtensionComponent, selector: "adf-dynamic-component", inputs: ["id", "data"] }], encapsulation: i0.ViewEncapsulation.None });
3815
3847
  }
3816
3848
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ContextMenuComponent, decorators: [{
3817
3849
  type: Component,
@@ -3830,7 +3862,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
3830
3862
  }], ctorParameters: () => [{ type: ContextMenuOverlayRef }, { type: i2.AppExtensionService }, { type: undefined, decorators: [{
3831
3863
  type: Inject,
3832
3864
  args: [CONTEXT_MENU_DIRECTION]
3833
- }] }] });
3865
+ }] }], propDecorators: { dynamicExtensionComponents: [{
3866
+ type: ViewChildren,
3867
+ args: [DynamicExtensionComponent]
3868
+ }], menu: [{
3869
+ type: ViewChild,
3870
+ args: [MatMenu]
3871
+ }], matMenuItems: [{
3872
+ type: ViewChildren,
3873
+ args: [MatMenuItem]
3874
+ }] } });
3834
3875
 
3835
3876
  /*!
3836
3877
  * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
@@ -4543,6 +4584,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
4543
4584
  class ToggleSharedComponent {
4544
4585
  store;
4545
4586
  data;
4587
+ menuItem;
4546
4588
  selection$;
4547
4589
  selectionState;
4548
4590
  selectionLabel = '';
@@ -4567,13 +4609,16 @@ class ToggleSharedComponent {
4567
4609
  }));
4568
4610
  }
4569
4611
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToggleSharedComponent, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Component });
4570
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ToggleSharedComponent, isStandalone: true, selector: "app-toggle-shared", inputs: { data: "data" }, ngImport: i0, template: "<ng-container *ngIf=\"selectionState\">\n <ng-container *ngIf=\"!data.iconButton\">\n <button mat-menu-item data-automation-id=\"share-action-button\" (click)=\"editSharedNode(selectionState, '.adf-context-menu-source')\">\n <mat-icon>link</mat-icon>\n <ng-container *ngIf=\"isShared; else not_shared\">\n <span>{{ 'APP.ACTIONS.SHARE_EDIT' | translate }}</span>\n </ng-container>\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"data.iconButton\">\n <button\n mat-icon-button\n data-automation-id=\"share-action-button\"\n (click)=\"editSharedNode(selectionState, '#share-action-button')\"\n [attr.aria-label]=\"selectionLabel | translate\"\n [attr.title]=\"selectionLabel | translate\"\n id=\"share-action-button\"\n >\n <mat-icon>link</mat-icon>\n </button>\n </ng-container>\n</ng-container>\n\n<ng-template #not_shared>\n <span>{{ 'APP.ACTIONS.SHARE' | translate }}</span>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6$2.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }], encapsulation: i0.ViewEncapsulation.None });
4612
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ToggleSharedComponent, isStandalone: true, selector: "app-toggle-shared", inputs: { data: "data" }, viewQueries: [{ propertyName: "menuItem", first: true, predicate: MatMenuItem, descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"selectionState\">\n <ng-container *ngIf=\"!data.iconButton\">\n <button mat-menu-item data-automation-id=\"share-action-button\" (click)=\"editSharedNode(selectionState, '.adf-context-menu-source')\">\n <mat-icon>link</mat-icon>\n <span>{{ (isShared ? 'APP.ACTIONS.SHARE_EDIT' : 'APP.ACTIONS.SHARE') | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"data.iconButton\">\n <button\n mat-icon-button\n data-automation-id=\"share-action-button\"\n (click)=\"editSharedNode(selectionState, '#share-action-button')\"\n [attr.aria-label]=\"selectionLabel | translate\"\n [attr.title]=\"selectionLabel | translate\"\n id=\"share-action-button\"\n >\n <mat-icon>link</mat-icon>\n </button>\n </ng-container>\n</ng-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6$2.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }], encapsulation: i0.ViewEncapsulation.None });
4571
4613
  }
4572
4614
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToggleSharedComponent, decorators: [{
4573
4615
  type: Component,
4574
- args: [{ imports: [CommonModule, MatMenuModule, MatIconModule, TranslatePipe, MatButtonModule], selector: 'app-toggle-shared', encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"selectionState\">\n <ng-container *ngIf=\"!data.iconButton\">\n <button mat-menu-item data-automation-id=\"share-action-button\" (click)=\"editSharedNode(selectionState, '.adf-context-menu-source')\">\n <mat-icon>link</mat-icon>\n <ng-container *ngIf=\"isShared; else not_shared\">\n <span>{{ 'APP.ACTIONS.SHARE_EDIT' | translate }}</span>\n </ng-container>\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"data.iconButton\">\n <button\n mat-icon-button\n data-automation-id=\"share-action-button\"\n (click)=\"editSharedNode(selectionState, '#share-action-button')\"\n [attr.aria-label]=\"selectionLabel | translate\"\n [attr.title]=\"selectionLabel | translate\"\n id=\"share-action-button\"\n >\n <mat-icon>link</mat-icon>\n </button>\n </ng-container>\n</ng-container>\n\n<ng-template #not_shared>\n <span>{{ 'APP.ACTIONS.SHARE' | translate }}</span>\n</ng-template>\n" }]
4616
+ args: [{ imports: [CommonModule, MatMenuModule, MatIconModule, TranslatePipe, MatButtonModule], selector: 'app-toggle-shared', encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"selectionState\">\n <ng-container *ngIf=\"!data.iconButton\">\n <button mat-menu-item data-automation-id=\"share-action-button\" (click)=\"editSharedNode(selectionState, '.adf-context-menu-source')\">\n <mat-icon>link</mat-icon>\n <span>{{ (isShared ? 'APP.ACTIONS.SHARE_EDIT' : 'APP.ACTIONS.SHARE') | translate }}</span>\n </button>\n </ng-container>\n\n <ng-container *ngIf=\"data.iconButton\">\n <button\n mat-icon-button\n data-automation-id=\"share-action-button\"\n (click)=\"editSharedNode(selectionState, '#share-action-button')\"\n [attr.aria-label]=\"selectionLabel | translate\"\n [attr.title]=\"selectionLabel | translate\"\n id=\"share-action-button\"\n >\n <mat-icon>link</mat-icon>\n </button>\n </ng-container>\n</ng-container>\n" }]
4575
4617
  }], ctorParameters: () => [{ type: i1.Store }], propDecorators: { data: [{
4576
4618
  type: Input
4619
+ }], menuItem: [{
4620
+ type: ViewChild,
4621
+ args: [MatMenuItem]
4577
4622
  }] } });
4578
4623
 
4579
4624
  /*!
@@ -5248,6 +5293,7 @@ class ToggleEditOfflineComponent {
5248
5293
  store;
5249
5294
  alfrescoApiService;
5250
5295
  extensions;
5296
+ menuItem;
5251
5297
  notificationService = inject(NotificationService);
5252
5298
  nodesApi;
5253
5299
  selection;
@@ -5321,7 +5367,7 @@ class ToggleEditOfflineComponent {
5321
5367
  }
5322
5368
  }
5323
5369
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToggleEditOfflineComponent, deps: [{ token: i1.Store }, { token: i3.AlfrescoApiService }, { token: i2.AppExtensionService }], target: i0.ɵɵFactoryTarget.Component });
5324
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ToggleEditOfflineComponent, isStandalone: true, selector: "app-toggle-edit-offline", host: { classAttribute: "app-toggle-edit-offline" }, ngImport: i0, template: `
5370
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ToggleEditOfflineComponent, isStandalone: true, selector: "app-toggle-edit-offline", host: { classAttribute: "app-toggle-edit-offline" }, viewQueries: [{ propertyName: "menuItem", first: true, predicate: MatMenuItem, descendants: true }], ngImport: i0, template: `
5325
5371
  <button mat-menu-item [attr.title]="nodeTitle | translate" (click)="onClick()">
5326
5372
  <mat-icon>{{ isNodeLocked ? 'cancel' : 'edit' }}</mat-icon>
5327
5373
  <span>{{ (isNodeLocked ? 'APP.ACTIONS.EDIT_OFFLINE_CANCEL' : 'APP.ACTIONS.EDIT_OFFLINE') | translate }}</span>
@@ -5342,7 +5388,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
5342
5388
  encapsulation: ViewEncapsulation.None,
5343
5389
  host: { class: 'app-toggle-edit-offline' }
5344
5390
  }]
5345
- }], ctorParameters: () => [{ type: i1.Store }, { type: i3.AlfrescoApiService }, { type: i2.AppExtensionService }] });
5391
+ }], ctorParameters: () => [{ type: i1.Store }, { type: i3.AlfrescoApiService }, { type: i2.AppExtensionService }], propDecorators: { menuItem: [{
5392
+ type: ViewChild,
5393
+ args: [MatMenuItem]
5394
+ }] } });
5346
5395
 
5347
5396
  /*!
5348
5397
  * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
@@ -5372,6 +5421,7 @@ class ToggleFavoriteLibraryComponent {
5372
5421
  appHookService;
5373
5422
  router;
5374
5423
  library;
5424
+ menuItem;
5375
5425
  destroyRef = inject(DestroyRef);
5376
5426
  constructor(store, appHookService, router) {
5377
5427
  this.store = store;
@@ -5395,18 +5445,17 @@ class ToggleFavoriteLibraryComponent {
5395
5445
  this.appHookService.favoriteLibraryToggle.next();
5396
5446
  }
5397
5447
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToggleFavoriteLibraryComponent, deps: [{ token: i1.Store }, { token: i2.AppHookService }, { token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Component });
5398
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ToggleFavoriteLibraryComponent, isStandalone: true, selector: "app-toggle-favorite-library", host: { classAttribute: "app-toggle-favorite-library" }, ngImport: i0, template: `
5448
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ToggleFavoriteLibraryComponent, isStandalone: true, selector: "app-toggle-favorite-library", host: { classAttribute: "app-toggle-favorite-library" }, viewQueries: [{ propertyName: "menuItem", first: true, predicate: MatMenuItem, descendants: true }], ngImport: i0, template: `
5399
5449
  <button
5400
5450
  mat-menu-item
5401
5451
  (toggle)="onToggleEvent()"
5402
5452
  [adf-favorite-library]="library"
5403
5453
  [attr.title]="library.isFavorite ? ('APP.ACTIONS.REMOVE_FAVORITE' | translate) : ('APP.ACTIONS.FAVORITE' | translate)"
5404
5454
  >
5405
- <mat-icon *ngIf="library.isFavorite">star</mat-icon>
5406
- <mat-icon *ngIf="!library.isFavorite">star_border</mat-icon>
5455
+ <mat-icon class="app-context-menu-item--icon">{{ library.isFavorite ? 'star' : 'star_border' }}</mat-icon>
5407
5456
  <span>{{ (library.isFavorite ? 'APP.ACTIONS.REMOVE_FAVORITE' : 'APP.ACTIONS.FAVORITE') | translate }}</span>
5408
5457
  </button>
5409
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: LibraryFavoriteDirective, selector: "[adf-favorite-library]", inputs: ["adf-favorite-library"], outputs: ["toggle", "error"], exportAs: ["favoriteLibrary"] }], encapsulation: i0.ViewEncapsulation.None });
5458
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: LibraryFavoriteDirective, selector: "[adf-favorite-library]", inputs: ["adf-favorite-library"], outputs: ["toggle", "error"], exportAs: ["favoriteLibrary"] }], encapsulation: i0.ViewEncapsulation.None });
5410
5459
  }
5411
5460
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToggleFavoriteLibraryComponent, decorators: [{
5412
5461
  type: Component,
@@ -5420,15 +5469,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
5420
5469
  [adf-favorite-library]="library"
5421
5470
  [attr.title]="library.isFavorite ? ('APP.ACTIONS.REMOVE_FAVORITE' | translate) : ('APP.ACTIONS.FAVORITE' | translate)"
5422
5471
  >
5423
- <mat-icon *ngIf="library.isFavorite">star</mat-icon>
5424
- <mat-icon *ngIf="!library.isFavorite">star_border</mat-icon>
5472
+ <mat-icon class="app-context-menu-item--icon">{{ library.isFavorite ? 'star' : 'star_border' }}</mat-icon>
5425
5473
  <span>{{ (library.isFavorite ? 'APP.ACTIONS.REMOVE_FAVORITE' : 'APP.ACTIONS.FAVORITE') | translate }}</span>
5426
5474
  </button>
5427
5475
  `,
5428
5476
  encapsulation: ViewEncapsulation.None,
5429
5477
  host: { class: 'app-toggle-favorite-library' }
5430
5478
  }]
5431
- }], ctorParameters: () => [{ type: i1.Store }, { type: i2.AppHookService }, { type: i1$2.Router }] });
5479
+ }], ctorParameters: () => [{ type: i1.Store }, { type: i2.AppHookService }, { type: i1$2.Router }], propDecorators: { menuItem: [{
5480
+ type: ViewChild,
5481
+ args: [MatMenuItem]
5482
+ }] } });
5432
5483
 
5433
5484
  /*!
5434
5485
  * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
@@ -5460,6 +5511,7 @@ class ToggleFavoriteComponent {
5460
5511
  data;
5461
5512
  selection$;
5462
5513
  reloadOnRoutes = [];
5514
+ menuItem;
5463
5515
  constructor(store, router) {
5464
5516
  this.store = store;
5465
5517
  this.router = router;
@@ -5476,13 +5528,12 @@ class ToggleFavoriteComponent {
5476
5528
  }
5477
5529
  }
5478
5530
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToggleFavoriteComponent, deps: [{ token: i1.Store }, { token: i1$2.Router }], target: i0.ɵɵFactoryTarget.Component });
5479
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ToggleFavoriteComponent, isStandalone: true, selector: "app-toggle-favorite", inputs: { data: "data" }, host: { classAttribute: "app-toggle-favorite" }, ngImport: i0, template: `
5531
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ToggleFavoriteComponent, isStandalone: true, selector: "app-toggle-favorite", inputs: { data: "data" }, host: { classAttribute: "app-toggle-favorite" }, viewQueries: [{ propertyName: "menuItem", first: true, predicate: MatMenuItem, descendants: true }], ngImport: i0, template: `
5480
5532
  <button mat-menu-item #favorites="adfFavorite" (toggle)="onToggleEvent()" [adf-node-favorite]="(selection$ | async).nodes">
5481
- <mat-icon *ngIf="favorites.hasFavorites()">star</mat-icon>
5482
- <mat-icon *ngIf="!favorites.hasFavorites()">star_border</mat-icon>
5533
+ <mat-icon class="app-context-menu-item--icon">{{ favorites.hasFavorites() ? 'star' : 'star_border' }}</mat-icon>
5483
5534
  <span>{{ (favorites.hasFavorites() ? 'APP.ACTIONS.REMOVE_FAVORITE' : 'APP.ACTIONS.FAVORITE') | translate }}</span>
5484
5535
  </button>
5485
- `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: NodeFavoriteDirective, selector: "[adf-node-favorite]", inputs: ["adf-node-favorite"], outputs: ["toggle", "error"], exportAs: ["adfFavorite"] }], encapsulation: i0.ViewEncapsulation.None });
5536
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: NodeFavoriteDirective, selector: "[adf-node-favorite]", inputs: ["adf-node-favorite"], outputs: ["toggle", "error"], exportAs: ["adfFavorite"] }], encapsulation: i0.ViewEncapsulation.None });
5486
5537
  }
5487
5538
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToggleFavoriteComponent, decorators: [{
5488
5539
  type: Component,
@@ -5491,8 +5542,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
5491
5542
  selector: 'app-toggle-favorite',
5492
5543
  template: `
5493
5544
  <button mat-menu-item #favorites="adfFavorite" (toggle)="onToggleEvent()" [adf-node-favorite]="(selection$ | async).nodes">
5494
- <mat-icon *ngIf="favorites.hasFavorites()">star</mat-icon>
5495
- <mat-icon *ngIf="!favorites.hasFavorites()">star_border</mat-icon>
5545
+ <mat-icon class="app-context-menu-item--icon">{{ favorites.hasFavorites() ? 'star' : 'star_border' }}</mat-icon>
5496
5546
  <span>{{ (favorites.hasFavorites() ? 'APP.ACTIONS.REMOVE_FAVORITE' : 'APP.ACTIONS.FAVORITE') | translate }}</span>
5497
5547
  </button>
5498
5548
  `,
@@ -5501,6 +5551,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
5501
5551
  }]
5502
5552
  }], ctorParameters: () => [{ type: i1.Store }, { type: i1$2.Router }], propDecorators: { data: [{
5503
5553
  type: Input
5554
+ }], menuItem: [{
5555
+ type: ViewChild,
5556
+ args: [MatMenuItem]
5504
5557
  }] } });
5505
5558
 
5506
5559
  /*!
@@ -5590,6 +5643,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
5590
5643
  * from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
5591
5644
  */
5592
5645
  class ToggleJoinLibraryButtonComponent {
5646
+ menuItem;
5593
5647
  userProfileService = inject(UserProfileService);
5594
5648
  notificationService = inject(NotificationService);
5595
5649
  appHookService = inject(AppHookService);
@@ -5615,7 +5669,7 @@ class ToggleJoinLibraryButtonComponent {
5615
5669
  this.notificationService.showError(event.i18nKey);
5616
5670
  }
5617
5671
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToggleJoinLibraryButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5618
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ToggleJoinLibraryButtonComponent, isStandalone: true, selector: "app-toggle-join-library-button", host: { classAttribute: "app-toggle-join-library" }, ngImport: i0, template: `
5672
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ToggleJoinLibraryButtonComponent, isStandalone: true, selector: "app-toggle-join-library-button", host: { classAttribute: "app-toggle-join-library" }, viewQueries: [{ propertyName: "menuItem", first: true, predicate: MatMenuItem, descendants: true }], ngImport: i0, template: `
5619
5673
  <button
5620
5674
  mat-icon-button
5621
5675
  color="primary"
@@ -5654,7 +5708,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
5654
5708
  encapsulation: ViewEncapsulation.None,
5655
5709
  host: { class: 'app-toggle-join-library' }
5656
5710
  }]
5657
- }], ctorParameters: () => [] });
5711
+ }], ctorParameters: () => [], propDecorators: { menuItem: [{
5712
+ type: ViewChild,
5713
+ args: [MatMenuItem]
5714
+ }] } });
5658
5715
 
5659
5716
  /*!
5660
5717
  * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
@@ -5750,6 +5807,7 @@ class ViewNodeComponent {
5750
5807
  activatedRoute;
5751
5808
  settings = inject(AppSettingsService);
5752
5809
  data;
5810
+ menuItem;
5753
5811
  constructor(store, router, autoDownloadService, activatedRoute) {
5754
5812
  this.store = store;
5755
5813
  this.router = router;
@@ -5780,7 +5838,7 @@ class ViewNodeComponent {
5780
5838
  });
5781
5839
  }
5782
5840
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ViewNodeComponent, deps: [{ token: i1.Store }, { token: i1$2.Router }, { token: i2.AutoDownloadService }, { token: i1$2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
5783
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ViewNodeComponent, isStandalone: true, selector: "app-view-node", inputs: { data: "data" }, host: { classAttribute: "app-view-node" }, ngImport: i0, template: `
5841
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ViewNodeComponent, isStandalone: true, selector: "app-view-node", inputs: { data: "data" }, host: { classAttribute: "app-view-node" }, viewQueries: [{ propertyName: "menuItem", first: true, predicate: MatMenuItem, descendants: true }], ngImport: i0, template: `
5784
5842
  <button
5785
5843
  *ngIf="data.iconButton"
5786
5844
  mat-icon-button
@@ -5823,6 +5881,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
5823
5881
  }]
5824
5882
  }], ctorParameters: () => [{ type: i1.Store }, { type: i1$2.Router }, { type: i2.AutoDownloadService }, { type: i1$2.ActivatedRoute }], propDecorators: { data: [{
5825
5883
  type: Input
5884
+ }], menuItem: [{
5885
+ type: ViewChild,
5886
+ args: [MatMenuItem]
5826
5887
  }] } });
5827
5888
 
5828
5889
  /*!