@alfresco/aca-content 7.3.0-19706274330 → 7.3.0-19729447729
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.
- package/fesm2022/alfresco-aca-content.mjs +50 -16
- package/fesm2022/alfresco-aca-content.mjs.map +1 -1
- package/lib/components/context-menu/context-menu-outside-event.directive.d.ts +3 -1
- package/lib/components/search/search-save/directive/save-search.directive.d.ts +26 -1
- package/lib/components/search/search-save/list/saved-searches-list-ui.service.d.ts +1 -0
- package/lib/components/search/search-save/list/ui-list/saved-searches-list.ui-component.d.ts +4 -2
- package/package.json +1 -1
|
@@ -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,
|
|
3
|
+
import { inject, Injectable, DestroyRef, ViewEncapsulation, Component, SecurityContext, NgZone, RendererFactory2, Inject, InjectionToken, Input, EventEmitter, HostListener, Output, Directive, 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 i1$1 from '@alfresco/adf-content-services';
|
|
@@ -3707,12 +3707,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
3707
3707
|
*/
|
|
3708
3708
|
class OutsideEventDirective {
|
|
3709
3709
|
clickOutside = new EventEmitter();
|
|
3710
|
+
focusTargetSelector = '.adf-context-menu-source';
|
|
3710
3711
|
destroyRef = inject(DestroyRef);
|
|
3711
3712
|
ngOnInit() {
|
|
3712
3713
|
fromEvent(document.body, 'click')
|
|
3713
3714
|
.pipe(filter((event) => !this.findAncestor(event.target)), takeUntilDestroyed(this.destroyRef))
|
|
3714
3715
|
.subscribe(() => this.clickOutside.next());
|
|
3715
3716
|
}
|
|
3717
|
+
onEscapeKeydown() {
|
|
3718
|
+
document.querySelector(this.focusTargetSelector)?.focus();
|
|
3719
|
+
}
|
|
3716
3720
|
findAncestor(el) {
|
|
3717
3721
|
const className = 'aca-context-menu';
|
|
3718
3722
|
while (el && !el.classList.contains(className)) {
|
|
@@ -3721,7 +3725,7 @@ class OutsideEventDirective {
|
|
|
3721
3725
|
return !!el;
|
|
3722
3726
|
}
|
|
3723
3727
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: OutsideEventDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3724
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: OutsideEventDirective, isStandalone: true, selector: "[acaContextMenuOutsideEvent]", outputs: { clickOutside: "clickOutside" }, ngImport: i0 });
|
|
3728
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: OutsideEventDirective, isStandalone: true, selector: "[acaContextMenuOutsideEvent]", inputs: { focusTargetSelector: "focusTargetSelector" }, outputs: { clickOutside: "clickOutside" }, host: { listeners: { "document:keydown.escape": "onEscapeKeydown($event)" } }, ngImport: i0 });
|
|
3725
3729
|
}
|
|
3726
3730
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: OutsideEventDirective, decorators: [{
|
|
3727
3731
|
type: Directive,
|
|
@@ -3731,6 +3735,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
3731
3735
|
}]
|
|
3732
3736
|
}], propDecorators: { clickOutside: [{
|
|
3733
3737
|
type: Output
|
|
3738
|
+
}], focusTargetSelector: [{
|
|
3739
|
+
type: Input
|
|
3740
|
+
}], onEscapeKeydown: [{
|
|
3741
|
+
type: HostListener,
|
|
3742
|
+
args: ['document:keydown.escape', ['$event']]
|
|
3734
3743
|
}] } });
|
|
3735
3744
|
|
|
3736
3745
|
/*!
|
|
@@ -3875,7 +3884,7 @@ class ContextMenuComponent extends BaseContextMenuDirective {
|
|
|
3875
3884
|
return orderedItems;
|
|
3876
3885
|
}
|
|
3877
3886
|
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 });
|
|
3878
|
-
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$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$4.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3.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.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3.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 });
|
|
3887
|
+
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$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$4.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3.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.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3.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]", inputs: ["focusTargetSelector"], 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 });
|
|
3879
3888
|
}
|
|
3880
3889
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ContextMenuComponent, decorators: [{
|
|
3881
3890
|
type: Component,
|
|
@@ -3962,7 +3971,7 @@ class CustomContextMenuComponent extends BaseContextMenuDirective {
|
|
|
3962
3971
|
setTimeout(() => this.trigger.openMenu(), 0);
|
|
3963
3972
|
}
|
|
3964
3973
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CustomContextMenuComponent, deps: [{ token: ContextMenuOverlayRef }, { token: i2.AppExtensionService }, { token: CONTEXT_MENU_DIRECTION }, { token: CONTEXT_MENU_CUSTOM_ACTIONS }], target: i0.ɵɵFactoryTarget.Component });
|
|
3965
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: CustomContextMenuComponent, isStandalone: true, selector: "aca-custom-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$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$4.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3.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.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3.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 });
|
|
3974
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: CustomContextMenuComponent, isStandalone: true, selector: "aca-custom-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$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$4.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$4.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$4.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "ngmodule", type: MatMenuModule }, { kind: "component", type: i3.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.MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3.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]", inputs: ["focusTargetSelector"], 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 });
|
|
3966
3975
|
}
|
|
3967
3976
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: CustomContextMenuComponent, decorators: [{
|
|
3968
3977
|
type: Component,
|
|
@@ -7858,24 +7867,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
7858
7867
|
*/
|
|
7859
7868
|
class SaveSearchDirective {
|
|
7860
7869
|
dialogRef;
|
|
7870
|
+
elementRef;
|
|
7861
7871
|
/** Encoded search query */
|
|
7862
7872
|
acaSaveSearchQuery;
|
|
7863
|
-
constructor(dialogRef) {
|
|
7873
|
+
constructor(dialogRef, elementRef) {
|
|
7864
7874
|
this.dialogRef = dialogRef;
|
|
7875
|
+
this.elementRef = elementRef;
|
|
7865
7876
|
}
|
|
7866
7877
|
onClick(event) {
|
|
7867
7878
|
event.preventDefault();
|
|
7879
|
+
this.elementRef.nativeElement.focus();
|
|
7868
7880
|
this.openDialog();
|
|
7869
7881
|
}
|
|
7870
7882
|
openDialog() {
|
|
7871
|
-
this.dialogRef.open(SaveSearchDialogComponent, this.getDialogConfig());
|
|
7883
|
+
this.dialogRef.open(SaveSearchDialogComponent, { ...this.getDialogConfig(), restoreFocus: true });
|
|
7872
7884
|
}
|
|
7873
7885
|
getDialogConfig() {
|
|
7874
7886
|
return {
|
|
7875
7887
|
data: { searchUrl: this.acaSaveSearchQuery }
|
|
7876
7888
|
};
|
|
7877
7889
|
}
|
|
7878
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SaveSearchDirective, deps: [{ token: i1$2.MatDialog }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7890
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SaveSearchDirective, deps: [{ token: i1$2.MatDialog }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7879
7891
|
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: SaveSearchDirective, isStandalone: true, selector: "[acaSaveSearch]", inputs: { acaSaveSearchQuery: "acaSaveSearchQuery" }, host: { listeners: { "click": "onClick($event)" } }, ngImport: i0 });
|
|
7880
7892
|
}
|
|
7881
7893
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SaveSearchDirective, decorators: [{
|
|
@@ -7884,7 +7896,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
7884
7896
|
selector: '[acaSaveSearch]',
|
|
7885
7897
|
standalone: true
|
|
7886
7898
|
}]
|
|
7887
|
-
}], ctorParameters: () => [{ type: i1$2.MatDialog }], propDecorators: { acaSaveSearchQuery: [{
|
|
7899
|
+
}], ctorParameters: () => [{ type: i1$2.MatDialog }, { type: i0.ElementRef }], propDecorators: { acaSaveSearchQuery: [{
|
|
7888
7900
|
type: Input
|
|
7889
7901
|
}], onClick: [{
|
|
7890
7902
|
type: HostListener,
|
|
@@ -9446,16 +9458,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
9446
9458
|
class SavedSearchesListUiService {
|
|
9447
9459
|
dialog = inject(MatDialog);
|
|
9448
9460
|
openEditSavedSearch(savedSearch) {
|
|
9449
|
-
this.dialog
|
|
9461
|
+
this.dialog
|
|
9462
|
+
.open(SavedSearchEditDialogComponent, {
|
|
9450
9463
|
data: savedSearch,
|
|
9451
9464
|
width: '600px'
|
|
9452
|
-
})
|
|
9465
|
+
})
|
|
9466
|
+
.afterClosed()
|
|
9467
|
+
.subscribe(() => this.focusAfterClose(`.adf-datatable-cell--${savedSearch.name}`));
|
|
9453
9468
|
}
|
|
9454
9469
|
confirmDeleteSavedSearch(savedSearch) {
|
|
9455
|
-
this.dialog
|
|
9470
|
+
this.dialog
|
|
9471
|
+
.open(SavedSearchDeleteDialogComponent, {
|
|
9456
9472
|
data: savedSearch,
|
|
9457
9473
|
minWidth: '500px'
|
|
9458
|
-
})
|
|
9474
|
+
})
|
|
9475
|
+
.afterClosed()
|
|
9476
|
+
.subscribe(() => this.focusAfterClose(`.adf-datatable-cell--${savedSearch.name}`));
|
|
9477
|
+
}
|
|
9478
|
+
focusAfterClose(focusedElementSelector) {
|
|
9479
|
+
if (focusedElementSelector) {
|
|
9480
|
+
document.querySelector(focusedElementSelector)?.closest('adf-datatable-row').focus();
|
|
9481
|
+
}
|
|
9459
9482
|
}
|
|
9460
9483
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SavedSearchesListUiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9461
9484
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SavedSearchesListUiService, providedIn: 'root' });
|
|
@@ -9538,6 +9561,7 @@ class SavedSearchesListUiComponent extends DataTableSchema {
|
|
|
9538
9561
|
appConfig;
|
|
9539
9562
|
clipboard;
|
|
9540
9563
|
router;
|
|
9564
|
+
hostElement;
|
|
9541
9565
|
savedSearches = [];
|
|
9542
9566
|
savedSearchOrderChanged = new EventEmitter();
|
|
9543
9567
|
ShowHeaderMode = ShowHeaderMode;
|
|
@@ -9571,16 +9595,23 @@ class SavedSearchesListUiComponent extends DataTableSchema {
|
|
|
9571
9595
|
key: this.deleteSavedSearchOptionKey
|
|
9572
9596
|
}
|
|
9573
9597
|
];
|
|
9574
|
-
constructor(appConfig, clipboard, router) {
|
|
9598
|
+
constructor(appConfig, clipboard, router, hostElement) {
|
|
9575
9599
|
super(appConfig, '', savedSearchesListSchema);
|
|
9576
9600
|
this.appConfig = appConfig;
|
|
9577
9601
|
this.clipboard = clipboard;
|
|
9578
9602
|
this.router = router;
|
|
9603
|
+
this.hostElement = hostElement;
|
|
9579
9604
|
}
|
|
9580
9605
|
ngAfterContentInit() {
|
|
9581
9606
|
this.createDatatableSchema();
|
|
9582
9607
|
this.contextMenuAction$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe((action) => this.executeMenuOption(action.key, action.data));
|
|
9583
9608
|
}
|
|
9609
|
+
onEscapeKeydown() {
|
|
9610
|
+
const contextMenu = document.querySelector('.adf-context-menu');
|
|
9611
|
+
if (contextMenu) {
|
|
9612
|
+
this.hostElement.nativeElement.querySelector('.adf-context-menu-source')?.focus();
|
|
9613
|
+
}
|
|
9614
|
+
}
|
|
9584
9615
|
onShowRowActionsMenu(event) {
|
|
9585
9616
|
event.value.actions = this.menuOptions;
|
|
9586
9617
|
}
|
|
@@ -9634,16 +9665,19 @@ class SavedSearchesListUiComponent extends DataTableSchema {
|
|
|
9634
9665
|
const baseUrl = window.location.origin;
|
|
9635
9666
|
return `${baseUrl}/#/search?q=${path}`;
|
|
9636
9667
|
}
|
|
9637
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SavedSearchesListUiComponent, deps: [{ token: i2$1.AppConfigService }, { token: i2$2.Clipboard }, { token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
9638
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: SavedSearchesListUiComponent, isStandalone: true, selector: "aca-saved-searches-ui-list", inputs: { savedSearches: "savedSearches" }, outputs: { savedSearchOrderChanged: "savedSearchOrderChanged" }, host: { classAttribute: "aca-saved-searches-ui-list" }, usesInheritance: true, ngImport: i0, template: "<adf-datatable\n [rows]=\"savedSearches\"\n [columns]=\"columns\"\n [stickyHeader]=\"true\"\n [showHeader]=\"ShowHeaderMode.Always\"\n [enableDragRows]=\"true\"\n [actionsVisibleOnHover]=\"true\"\n [contextMenu]=\"true\"\n [actions]=\"true\"\n [isResizingEnabled]=\"false\"\n [blurOnResize]=\"false\"\n (showRowActionsMenu)=\"onShowRowActionsMenu($event)\"\n (dragDropped)=\"onSearchOrderChange($event)\"\n (executeRowAction)=\"executeMenuOption($event.value.action.key, $event.value.row.obj)\"\n (showRowContextMenu)=\"fillContextMenu($event)\" />\n", styles: [".aca-saved-searches-ui-list{height:100%;overflow-y:auto}.aca-saved-searches-ui-list .adf-datatable-list{border:0}.aca-saved-searches-ui-list .adf-datatable-list .adf-datatable-header{padding:0 20px}.aca-saved-searches-ui-list .adf-datatable-list .adf-datatable-header .adf-datatable-row{margin-right:15px;padding-right:0;border-bottom:1px solid var(--adf-theme-foreground-text-color-007)}.aca-saved-searches-ui-list .adf-datatable-list .adf-datatable-body .adf-datatable-row{border-top:0;margin:0 20px}.aca-saved-searches-ui-list .adf-datatable-list .adf-datatable-body .adf-datatable-row:last-child{border:0}.aca-saved-searches-ui-list .adf-datatable-list .adf-datatable-body .adf-datatable-row:nth-child(5)+adf-datatable-row{border-top:1px dashed var(--adf-theme-foreground-text-color-014)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: i2$1.DataTableComponent, selector: "adf-datatable", inputs: ["data", "rows", "sorting", "columns", "selectionMode", "multiselect", "mainTableAction", "actions", "showMainDatatableActions", "showProvidedActions", "actionsPosition", "actionsVisibleOnHover", "fallbackThumbnail", "contextMenu", "rowStyle", "rowStyleClass", "showHeader", "stickyHeader", "loading", "noPermission", "rowMenuCacheEnabled", "resolverFn", "allowFiltering", "isResizingEnabled", "blurOnResize", "displayCheckboxesOnHover", "enableDragRows"], outputs: ["rowClick", "rowDblClick", "showRowContextMenu", "showRowActionsMenu", "executeRowAction", "columnOrderChanged", "columnsWidthChanged", "selectedItemsCountChanged", "dragDropped"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
9668
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SavedSearchesListUiComponent, deps: [{ token: i2$1.AppConfigService }, { token: i2$2.Clipboard }, { token: i1$3.Router }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9669
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: SavedSearchesListUiComponent, isStandalone: true, selector: "aca-saved-searches-ui-list", inputs: { savedSearches: "savedSearches" }, outputs: { savedSearchOrderChanged: "savedSearchOrderChanged" }, host: { listeners: { "document:keydown.escape": "onEscapeKeydown($event)" }, classAttribute: "aca-saved-searches-ui-list" }, usesInheritance: true, ngImport: i0, template: "<adf-datatable\n [rows]=\"savedSearches\"\n [columns]=\"columns\"\n [stickyHeader]=\"true\"\n [showHeader]=\"ShowHeaderMode.Always\"\n [enableDragRows]=\"true\"\n [actionsVisibleOnHover]=\"true\"\n [contextMenu]=\"true\"\n [actions]=\"true\"\n [isResizingEnabled]=\"false\"\n [blurOnResize]=\"false\"\n (showRowActionsMenu)=\"onShowRowActionsMenu($event)\"\n (dragDropped)=\"onSearchOrderChange($event)\"\n (executeRowAction)=\"executeMenuOption($event.value.action.key, $event.value.row.obj)\"\n (showRowContextMenu)=\"fillContextMenu($event)\" />\n", styles: [".aca-saved-searches-ui-list{height:100%;overflow-y:auto}.aca-saved-searches-ui-list .adf-datatable-list{border:0}.aca-saved-searches-ui-list .adf-datatable-list .adf-datatable-header{padding:0 20px}.aca-saved-searches-ui-list .adf-datatable-list .adf-datatable-header .adf-datatable-row{margin-right:15px;padding-right:0;border-bottom:1px solid var(--adf-theme-foreground-text-color-007)}.aca-saved-searches-ui-list .adf-datatable-list .adf-datatable-body .adf-datatable-row{border-top:0;margin:0 20px}.aca-saved-searches-ui-list .adf-datatable-list .adf-datatable-body .adf-datatable-row:last-child{border:0}.aca-saved-searches-ui-list .adf-datatable-list .adf-datatable-body .adf-datatable-row:nth-child(5)+adf-datatable-row{border-top:1px dashed var(--adf-theme-foreground-text-color-014)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: i2$1.DataTableComponent, selector: "adf-datatable", inputs: ["data", "rows", "sorting", "columns", "selectionMode", "multiselect", "mainTableAction", "actions", "showMainDatatableActions", "showProvidedActions", "actionsPosition", "actionsVisibleOnHover", "fallbackThumbnail", "contextMenu", "rowStyle", "rowStyleClass", "showHeader", "stickyHeader", "loading", "noPermission", "rowMenuCacheEnabled", "resolverFn", "allowFiltering", "isResizingEnabled", "blurOnResize", "displayCheckboxesOnHover", "enableDragRows"], outputs: ["rowClick", "rowDblClick", "showRowContextMenu", "showRowActionsMenu", "executeRowAction", "columnOrderChanged", "columnsWidthChanged", "selectedItemsCountChanged", "dragDropped"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
9639
9670
|
}
|
|
9640
9671
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SavedSearchesListUiComponent, decorators: [{
|
|
9641
9672
|
type: Component,
|
|
9642
9673
|
args: [{ selector: 'aca-saved-searches-ui-list', imports: [CommonModule, DATATABLE_DIRECTIVES, TEMPLATE_DIRECTIVES, DataTableComponent], encapsulation: ViewEncapsulation.None, host: { class: 'aca-saved-searches-ui-list' }, template: "<adf-datatable\n [rows]=\"savedSearches\"\n [columns]=\"columns\"\n [stickyHeader]=\"true\"\n [showHeader]=\"ShowHeaderMode.Always\"\n [enableDragRows]=\"true\"\n [actionsVisibleOnHover]=\"true\"\n [contextMenu]=\"true\"\n [actions]=\"true\"\n [isResizingEnabled]=\"false\"\n [blurOnResize]=\"false\"\n (showRowActionsMenu)=\"onShowRowActionsMenu($event)\"\n (dragDropped)=\"onSearchOrderChange($event)\"\n (executeRowAction)=\"executeMenuOption($event.value.action.key, $event.value.row.obj)\"\n (showRowContextMenu)=\"fillContextMenu($event)\" />\n", styles: [".aca-saved-searches-ui-list{height:100%;overflow-y:auto}.aca-saved-searches-ui-list .adf-datatable-list{border:0}.aca-saved-searches-ui-list .adf-datatable-list .adf-datatable-header{padding:0 20px}.aca-saved-searches-ui-list .adf-datatable-list .adf-datatable-header .adf-datatable-row{margin-right:15px;padding-right:0;border-bottom:1px solid var(--adf-theme-foreground-text-color-007)}.aca-saved-searches-ui-list .adf-datatable-list .adf-datatable-body .adf-datatable-row{border-top:0;margin:0 20px}.aca-saved-searches-ui-list .adf-datatable-list .adf-datatable-body .adf-datatable-row:last-child{border:0}.aca-saved-searches-ui-list .adf-datatable-list .adf-datatable-body .adf-datatable-row:nth-child(5)+adf-datatable-row{border-top:1px dashed var(--adf-theme-foreground-text-color-014)}\n"] }]
|
|
9643
|
-
}], ctorParameters: () => [{ type: i2$1.AppConfigService }, { type: i2$2.Clipboard }, { type: i1$3.Router }], propDecorators: { savedSearches: [{
|
|
9674
|
+
}], ctorParameters: () => [{ type: i2$1.AppConfigService }, { type: i2$2.Clipboard }, { type: i1$3.Router }, { type: i0.ElementRef }], propDecorators: { savedSearches: [{
|
|
9644
9675
|
type: Input
|
|
9645
9676
|
}], savedSearchOrderChanged: [{
|
|
9646
9677
|
type: Output
|
|
9678
|
+
}], onEscapeKeydown: [{
|
|
9679
|
+
type: HostListener,
|
|
9680
|
+
args: ['document:keydown.escape', ['$event']]
|
|
9647
9681
|
}] } });
|
|
9648
9682
|
|
|
9649
9683
|
/*!
|