@alfresco/aca-shared 8.0.0-16565348561 → 8.0.0-16569204669

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.
@@ -14,13 +14,13 @@ import { SetCurrentUrlAction, ResetSelectionAction, SetRepositoryInfoAction, Set
14
14
  import { NodesApi, TrashcanApi, SharedlinksApi, DiscoveryApi, FavoritesApi, ContentApi, SitesApi, SearchApi, PeopleApi, VersionsApi, RepositoryInfo } from '@alfresco/js-api';
15
15
  import * as i3$1 from '@alfresco/adf-extensions';
16
16
  import { sortByOrder, reduceEmptyMenus, mergeObjects, mergeArrays, ContentActionType, reduceSeparators, DynamicExtensionComponent, DynamicTabComponent } from '@alfresco/adf-extensions';
17
- import * as i1$2 from '@ngrx/store';
18
- import { Store, StoreModule } from '@ngrx/store';
17
+ import * as i2$1 from '@ngrx/store';
18
+ import { Store, provideStore } from '@ngrx/store';
19
19
  import * as i1$1 from '@angular/material/dialog';
20
20
  import { MAT_DIALOG_DATA, MatDialogModule, MatDialog } from '@angular/material/dialog';
21
21
  import * as i2 from '@angular/common';
22
22
  import { CommonModule } from '@angular/common';
23
- import * as i3$4 from '@ngx-translate/core';
23
+ import * as i1$2 from '@ngx-translate/core';
24
24
  import { TranslatePipe, TranslateModule, TranslateLoader } from '@ngx-translate/core';
25
25
  import * as i3$2 from '@angular/material/button';
26
26
  import { MatButtonModule } from '@angular/material/button';
@@ -33,7 +33,7 @@ import * as i3$3 from '@angular/material/menu';
33
33
  import { MatMenuModule, MatMenuItem, MatMenu } from '@angular/material/menu';
34
34
  import * as i4$2 from '@angular/material/divider';
35
35
  import { MatDividerModule } from '@angular/material/divider';
36
- import * as i2$1 from '@angular/material/toolbar';
36
+ import * as i2$2 from '@angular/material/toolbar';
37
37
  import { MatToolbarModule } from '@angular/material/toolbar';
38
38
  import * as i6$1 from '@angular/material/progress-bar';
39
39
  import { MatProgressBarModule } from '@angular/material/progress-bar';
@@ -42,8 +42,7 @@ import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
42
42
  import { NoopAnimationsModule } from '@angular/platform-browser/animations';
43
43
  import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
44
44
  import { RouterTestingModule } from '@angular/router/testing';
45
- import * as i2$2 from '@ngrx/effects';
46
- import { EffectsModule } from '@ngrx/effects';
45
+ import { provideEffects } from '@ngrx/effects';
47
46
  import { MatIconTestingModule } from '@angular/material/icon/testing';
48
47
 
49
48
  /*!
@@ -1419,7 +1418,7 @@ class AppService {
1419
1418
  this.acaMobileAppSwitcherService.clearSessionExpireTime();
1420
1419
  }
1421
1420
  }
1422
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AppService, deps: [{ token: i1.UserPreferencesService }, { token: i1.AuthenticationService }, { token: i1$2.Store }, { token: i3.Router }, { token: i3.ActivatedRoute }, { token: i1.AppConfigService }, { token: i1.PageTitleService }, { token: i4.AlfrescoApiService }, { token: i4.UploadService }, { token: RouterExtensionService }, { token: ContentApiService }, { token: i4.SharedLinksApiService }, { token: i7.OverlayContainer }, { token: i4.SearchQueryBuilderService }, { token: AcaMobileAppSwitcherService }, { token: AppSettingsService }, { token: UserProfileService }, { token: i1.StorageService }], target: i0.ɵɵFactoryTarget.Injectable });
1421
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AppService, deps: [{ token: i1.UserPreferencesService }, { token: i1.AuthenticationService }, { token: i2$1.Store }, { token: i3.Router }, { token: i3.ActivatedRoute }, { token: i1.AppConfigService }, { token: i1.PageTitleService }, { token: i4.AlfrescoApiService }, { token: i4.UploadService }, { token: RouterExtensionService }, { token: ContentApiService }, { token: i4.SharedLinksApiService }, { token: i7.OverlayContainer }, { token: i4.SearchQueryBuilderService }, { token: AcaMobileAppSwitcherService }, { token: AppSettingsService }, { token: UserProfileService }, { token: i1.StorageService }], target: i0.ɵɵFactoryTarget.Injectable });
1423
1422
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AppService, providedIn: 'root' });
1424
1423
  }
1425
1424
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AppService, decorators: [{
@@ -1427,7 +1426,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
1427
1426
  args: [{
1428
1427
  providedIn: 'root'
1429
1428
  }]
1430
- }], ctorParameters: () => [{ type: i1.UserPreferencesService }, { type: i1.AuthenticationService }, { type: i1$2.Store }, { type: i3.Router }, { type: i3.ActivatedRoute }, { type: i1.AppConfigService }, { type: i1.PageTitleService }, { type: i4.AlfrescoApiService }, { type: i4.UploadService }, { type: RouterExtensionService }, { type: ContentApiService }, { type: i4.SharedLinksApiService }, { type: i7.OverlayContainer }, { type: i4.SearchQueryBuilderService }, { type: AcaMobileAppSwitcherService }, { type: AppSettingsService }, { type: UserProfileService }, { type: i1.StorageService }] });
1429
+ }], ctorParameters: () => [{ type: i1.UserPreferencesService }, { type: i1.AuthenticationService }, { type: i2$1.Store }, { type: i3.Router }, { type: i3.ActivatedRoute }, { type: i1.AppConfigService }, { type: i1.PageTitleService }, { type: i4.AlfrescoApiService }, { type: i4.UploadService }, { type: RouterExtensionService }, { type: ContentApiService }, { type: i4.SharedLinksApiService }, { type: i7.OverlayContainer }, { type: i4.SearchQueryBuilderService }, { type: AcaMobileAppSwitcherService }, { type: AppSettingsService }, { type: UserProfileService }, { type: i1.StorageService }] });
1431
1430
 
1432
1431
  /*!
1433
1432
  * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
@@ -2140,7 +2139,7 @@ class AppExtensionService {
2140
2139
  bulkActionExecuted() {
2141
2140
  this.bulkActionExecuted$.next();
2142
2141
  }
2143
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AppExtensionService, deps: [{ token: i1.AuthenticationService }, { token: i1$2.Store }, { token: i3$1.ExtensionLoaderService }, { token: i3$1.ExtensionService }, { token: NodePermissionService }, { token: i1.AppConfigService }, { token: i4$1.MatIconRegistry }, { token: i6.DomSanitizer }, { token: i1.LogService }], target: i0.ɵɵFactoryTarget.Injectable });
2142
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AppExtensionService, deps: [{ token: i1.AuthenticationService }, { token: i2$1.Store }, { token: i3$1.ExtensionLoaderService }, { token: i3$1.ExtensionService }, { token: NodePermissionService }, { token: i1.AppConfigService }, { token: i4$1.MatIconRegistry }, { token: i6.DomSanitizer }, { token: i1.LogService }], target: i0.ɵɵFactoryTarget.Injectable });
2144
2143
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AppExtensionService, providedIn: 'root' });
2145
2144
  }
2146
2145
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: AppExtensionService, decorators: [{
@@ -2148,7 +2147,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
2148
2147
  args: [{
2149
2148
  providedIn: 'root'
2150
2149
  }]
2151
- }], ctorParameters: () => [{ type: i1.AuthenticationService }, { type: i1$2.Store }, { type: i3$1.ExtensionLoaderService }, { type: i3$1.ExtensionService }, { type: NodePermissionService }, { type: i1.AppConfigService }, { type: i4$1.MatIconRegistry }, { type: i6.DomSanitizer }, { type: i1.LogService }] });
2150
+ }], ctorParameters: () => [{ type: i1.AuthenticationService }, { type: i2$1.Store }, { type: i3$1.ExtensionLoaderService }, { type: i3$1.ExtensionService }, { type: NodePermissionService }, { type: i1.AppConfigService }, { type: i4$1.MatIconRegistry }, { type: i6.DomSanitizer }, { type: i1.LogService }] });
2152
2151
 
2153
2152
  /*!
2154
2153
  * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved.
@@ -2447,7 +2446,7 @@ class ToolbarComponent {
2447
2446
  return action.id;
2448
2447
  }
2449
2448
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2450
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ToolbarComponent, isStandalone: true, selector: "aca-toolbar", inputs: { items: "items" }, ngImport: i0, template: "<mat-toolbar class=\"aca-toolbar\">\n <ng-container *ngFor=\"let item of items; trackBy: trackByActionId\">\n <aca-toolbar-action [actionRef]=\"item\" />\n </ng-container>\n</mat-toolbar>\n", styles: ["aca-toolbar .aca-toolbar{min-height:48px;color:var(--adf-theme-foreground-text-color-054);background-color:inherit;border:none;padding:0;column-gap:5px}aca-toolbar .aca-toolbar-divider{height:24px;width:1px;background:var(--adf-theme-foreground-text-color-025);margin-left:5px;margin-right:5px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ToolbarActionComponent, selector: "aca-toolbar-action", inputs: ["data", "type", "color", "actionRef"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i2$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }], encapsulation: i0.ViewEncapsulation.None });
2449
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: ToolbarComponent, isStandalone: true, selector: "aca-toolbar", inputs: { items: "items" }, ngImport: i0, template: "<mat-toolbar class=\"aca-toolbar\">\n <ng-container *ngFor=\"let item of items; trackBy: trackByActionId\">\n <aca-toolbar-action [actionRef]=\"item\" />\n </ng-container>\n</mat-toolbar>\n", styles: ["aca-toolbar .aca-toolbar{min-height:48px;color:var(--adf-theme-foreground-text-color-054);background-color:inherit;border:none;padding:0;column-gap:5px}aca-toolbar .aca-toolbar-divider{height:24px;width:1px;background:var(--adf-theme-foreground-text-color-025);margin-left:5px;margin-right:5px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ToolbarActionComponent, selector: "aca-toolbar-action", inputs: ["data", "type", "color", "actionRef"] }, { kind: "ngmodule", type: MatToolbarModule }, { kind: "component", type: i2$2.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }], encapsulation: i0.ViewEncapsulation.None });
2451
2450
  }
2452
2451
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ToolbarComponent, decorators: [{
2453
2452
  type: Component,
@@ -2555,7 +2554,7 @@ class InfoDrawerComponent {
2555
2554
  this.displayNode = node;
2556
2555
  this.icon = this.contentService.getNodeIcon(node);
2557
2556
  }
2558
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: InfoDrawerComponent, deps: [{ token: i1$2.Store }, { token: ContentApiService }, { token: AppExtensionService }, { token: i4.NodesApiService }, { token: i4.ContentService }], target: i0.ɵɵFactoryTarget.Component });
2557
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: InfoDrawerComponent, deps: [{ token: i2$1.Store }, { token: ContentApiService }, { token: AppExtensionService }, { token: i4.NodesApiService }, { token: i4.ContentService }], target: i0.ɵɵFactoryTarget.Component });
2559
2558
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: InfoDrawerComponent, isStandalone: true, selector: "aca-info-drawer", inputs: { nodeId: "nodeId", node: "node" }, host: { listeners: { "keydown.escape": "onEscapeKeyboardEvent()" } }, providers: [
2560
2559
  {
2561
2560
  provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
@@ -2580,7 +2579,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
2580
2579
  useValue: { appearance: 'fill', floatLabel: 'always' }
2581
2580
  }
2582
2581
  ], template: "<div *ngIf=\"isLoading\">\n <mat-progress-bar mode=\"indeterminate\" [attr.aria-label]=\"'APP.INFO_DRAWER.DATA_LOADING' | translate\" />\n</div>\n<ng-container *ngIf=\"!isLoading && !!displayNode\">\n <adf-info-drawer class=\"aca-info-drawer\" [icon]=\"icon\" [title]=\"node?.entry?.name || 'APP.INFO_DRAWER.TITLE'\" cdkTrapFocusAutoCapture>\n <aca-toolbar [items]=\"actions\" info-drawer-buttons />\n\n <adf-info-drawer-tab *ngFor=\"let tab of tabs\" [icon]=\"tab.icon\" [label]=\"tab.title\">\n <adf-dynamic-tab [node]=\"$any(displayNode)\" [id]=\"tab.component\" [attr.data-automation-id]=\"tab.component\" />\n </adf-info-drawer-tab>\n </adf-info-drawer>\n</ng-container>\n", styles: ["aca-info-drawer .aca-info-drawer .adf-card-view-textitem .adf-property-value-not-editable{color:var(--adf-metadata-property-panel-title-color)}aca-info-drawer .aca-info-drawer .adf-card-view-selectitem .mat-mdc-form-field-infix{padding-left:0;padding-right:0}aca-info-drawer .aca-info-drawer .adf-property-list .adf-property-value .mat-mdc-select-trigger{background-color:var(--adf-metadata-buttons-background-color);border-radius:3px;padding:2%}aca-info-drawer .aca-info-drawer .adf-property-list .adf-property-value .mat-mdc-select-trigger .mat-mdc-select-arrow-wrapper{margin-top:16px}\n"] }]
2583
- }], ctorParameters: () => [{ type: i1$2.Store }, { type: ContentApiService }, { type: AppExtensionService }, { type: i4.NodesApiService }, { type: i4.ContentService }], propDecorators: { nodeId: [{
2582
+ }], ctorParameters: () => [{ type: i2$1.Store }, { type: ContentApiService }, { type: AppExtensionService }, { type: i4.NodesApiService }, { type: i4.ContentService }], propDecorators: { nodeId: [{
2584
2583
  type: Input
2585
2584
  }], node: [{
2586
2585
  type: Input,
@@ -3076,7 +3075,7 @@ class ContextActionsDirective {
3076
3075
  }
3077
3076
  return el;
3078
3077
  }
3079
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ContextActionsDirective, deps: [{ token: i1$2.Store }], target: i0.ɵɵFactoryTarget.Directive });
3078
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ContextActionsDirective, deps: [{ token: i2$1.Store }], target: i0.ɵɵFactoryTarget.Directive });
3080
3079
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: ContextActionsDirective, isStandalone: true, selector: "[acaContextActions]", inputs: { enabled: ["acaContextEnable", "enabled"], customActions: "customActions" }, host: { listeners: { "contextmenu": "onContextMenuEvent($event)" } }, exportAs: ["acaContextActions"], ngImport: i0 });
3081
3080
  }
3082
3081
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ContextActionsDirective, decorators: [{
@@ -3086,7 +3085,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
3086
3085
  selector: '[acaContextActions]',
3087
3086
  exportAs: 'acaContextActions'
3088
3087
  }]
3089
- }], ctorParameters: () => [{ type: i1$2.Store }], propDecorators: { enabled: [{
3088
+ }], ctorParameters: () => [{ type: i2$1.Store }], propDecorators: { enabled: [{
3090
3089
  type: Input,
3091
3090
  args: ['acaContextEnable']
3092
3091
  }], customActions: [{
@@ -3413,9 +3412,16 @@ class LibTestingModule {
3413
3412
  CommonModule,
3414
3413
  RouterTestingModule,
3415
3414
  MatIconTestingModule,
3416
- StoreModule,
3417
- OverlayModule, i1$2.StoreRootModule, i2$2.EffectsRootModule, i3$4.TranslateModule], exports: [TranslateModule] });
3415
+ OverlayModule, i1$2.TranslateModule], exports: [TranslateModule] });
3418
3416
  static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: LibTestingModule, providers: [
3417
+ provideStore({ app: null }, {
3418
+ initialState,
3419
+ runtimeChecks: {
3420
+ strictStateImmutability: false,
3421
+ strictActionImmutability: false
3422
+ }
3423
+ }),
3424
+ provideEffects([]),
3419
3425
  { provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
3420
3426
  { provide: TranslationService, useClass: TranslationMock },
3421
3427
  provideHttpClient(withInterceptorsFromDi())
@@ -3423,16 +3429,7 @@ class LibTestingModule {
3423
3429
  CommonModule,
3424
3430
  RouterTestingModule,
3425
3431
  MatIconTestingModule,
3426
- StoreModule,
3427
3432
  OverlayModule,
3428
- StoreModule.forRoot({ app: null }, {
3429
- initialState,
3430
- runtimeChecks: {
3431
- strictStateImmutability: false,
3432
- strictActionImmutability: false
3433
- }
3434
- }),
3435
- EffectsModule.forRoot([]),
3436
3433
  TranslateModule.forRoot({
3437
3434
  loader: {
3438
3435
  provide: TranslateLoader,
@@ -3449,16 +3446,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
3449
3446
  CommonModule,
3450
3447
  RouterTestingModule,
3451
3448
  MatIconTestingModule,
3452
- StoreModule,
3453
3449
  OverlayModule,
3454
- StoreModule.forRoot({ app: null }, {
3455
- initialState,
3456
- runtimeChecks: {
3457
- strictStateImmutability: false,
3458
- strictActionImmutability: false
3459
- }
3460
- }),
3461
- EffectsModule.forRoot([]),
3462
3450
  TranslateModule.forRoot({
3463
3451
  loader: {
3464
3452
  provide: TranslateLoader,
@@ -3467,6 +3455,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
3467
3455
  })
3468
3456
  ],
3469
3457
  providers: [
3458
+ provideStore({ app: null }, {
3459
+ initialState,
3460
+ runtimeChecks: {
3461
+ strictStateImmutability: false,
3462
+ strictActionImmutability: false
3463
+ }
3464
+ }),
3465
+ provideEffects([]),
3470
3466
  { provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
3471
3467
  { provide: TranslationService, useClass: TranslationMock },
3472
3468
  provideHttpClient(withInterceptorsFromDi())