@onecx/angular-accelerator 4.43.0 → 4.43.1

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.
@@ -109,7 +109,7 @@ export declare class DataViewComponent implements DoCheck, OnInit {
109
109
  */
110
110
  tableRelativeDateCellChildTemplate: TemplateRef<any> | undefined;
111
111
  relativeDateTableCellChildTemplate: TemplateRef<any> | undefined;
112
- get _tableRelativeDateCell(): TemplateRef<any> | undefined;
112
+ get _relativeDateTableCell(): TemplateRef<any> | undefined;
113
113
  additionalActions: DataAction[];
114
114
  filtered: EventEmitter<Filter[]>;
115
115
  sorted: EventEmitter<Sort>;
@@ -1,11 +1,20 @@
1
- import { ElementRef, OnInit, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { UserService } from '@onecx/angular-integration-interface';
1
+ import { ElementRef, InjectionToken, OnInit, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
3
2
  import * as i0 from "@angular/core";
3
+ export interface HasPermissionChecker {
4
+ hasPermission(permissionKey: string): boolean;
5
+ }
6
+ /**
7
+ * This checker always returns true, basically disabling the permission system on the UI side
8
+ */
9
+ export declare class AlwaysGrantPermissionChecker implements HasPermissionChecker {
10
+ hasPermission(_permissionKey: string): boolean;
11
+ }
12
+ export declare const HAS_PERMISSION_CHECKER: InjectionToken<HasPermissionChecker>;
4
13
  export declare class IfPermissionDirective implements OnInit {
5
14
  private renderer;
6
15
  private el;
7
16
  private viewContainer;
8
- private userService;
17
+ private permissionChecker;
9
18
  private templateRef?;
10
19
  permission: string | undefined;
11
20
  set notPermission(value: string | undefined);
@@ -13,7 +22,7 @@ export declare class IfPermissionDirective implements OnInit {
13
22
  ocxIfPermissionPermissions: string[] | undefined;
14
23
  set ocxIfNotPermissionPermissions(value: string[] | undefined);
15
24
  negate: boolean;
16
- constructor(renderer: Renderer2, el: ElementRef, viewContainer: ViewContainerRef, userService: UserService, templateRef?: TemplateRef<any> | undefined);
25
+ constructor(renderer: Renderer2, el: ElementRef, viewContainer: ViewContainerRef, permissionChecker: HasPermissionChecker, templateRef?: TemplateRef<any> | undefined);
17
26
  ngOnInit(): void;
18
27
  hasPermission(permission: string): boolean;
19
28
  static ɵfac: i0.ɵɵFactoryDeclaration<IfPermissionDirective, [null, null, null, null, { optional: true; }]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onecx/angular-accelerator",
3
- "version": "4.43.0",
3
+ "version": "4.43.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.7",
6
6
  "@angular/core": "^15.2.7",