@acorex/platform 20.2.4-next.8 → 20.3.0-next.0

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/common/index.d.ts CHANGED
@@ -461,7 +461,7 @@ interface AXPEntityQuery {
461
461
  execute: string | Function;
462
462
  type: AXPEntityQueryType;
463
463
  }
464
- type AXPCommandActionType = 'create' | 'update' | 'delete' | 'copy' | 'print' | 'confirm' | 'report' | 'info' | 'view' | 'archive' | 'design' | 'upload' | 'version-history' | 'sent' | 'review' | 'sign' | 'lock' | 'unlock' | 'compare' | 'comments';
464
+ type AXPCommandActionType = 'create' | 'update' | 'delete' | 'copy' | 'print' | 'confirm' | 'report' | 'info' | 'view' | 'archive' | 'design' | 'upload' | 'version-history' | 'sent' | 'review' | 'sign' | 'lock' | 'unlock' | 'compare' | 'comments' | 'assign' | 'setup' | 'send' | 'assign';
465
465
  interface AXPCommandActionLook {
466
466
  color: AXStyleColorType;
467
467
  icon: string;
package/core/index.d.ts CHANGED
@@ -19,8 +19,8 @@ declare class AXPContextChangeEvent {
19
19
  declare const AXPContextStore: i0.Type<{
20
20
  data: i0.Signal<AXPContextData>;
21
21
  state: i0.Signal<AXPContextState>;
22
- initialSnapshot: _ngrx_signals.DeepSignal<{}>;
23
- previousSnapshot: _ngrx_signals.DeepSignal<{}>;
22
+ initialSnapshot: i0.Signal<{}>;
23
+ previousSnapshot: i0.Signal<{}>;
24
24
  lastChange: _ngrx_signals.DeepSignal<AXPContextChangeEvent>;
25
25
  isChanged: i0.Signal<boolean>;
26
26
  isReset: i0.Signal<boolean>;
@@ -942,6 +942,7 @@ declare class AXPBroadcastEventService implements OnDestroy {
942
942
  private eventSubjects;
943
943
  private pendingRequests;
944
944
  private multiTabEventHistory;
945
+ private readonly instanceId;
945
946
  constructor();
946
947
  /**
947
948
  * Publish an event without expecting a response
@@ -547,7 +547,7 @@ class AXPSessionService {
547
547
  localStorage.removeItem(AXPSessionService.SESSION_KEY);
548
548
  }
549
549
  authorize(...keys) {
550
- return keys.every((k) => isEmpty(k) || this.permissions.indexOf(k) > -1);
550
+ return keys.every((k) => isEmpty(k) || this.permissions.indexOf(k) > -1 || this.user?.name == 'root');
551
551
  }
552
552
  isFeatureEnabled(...keys) {
553
553
  return keys.every((k) => isEmpty(k) || this.features.some((c) => c.name == k && c.value == true));