@masterteam/delegations 0.0.16 → 0.0.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/delegations",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/delegations",
6
6
  "linkDirectory": false,
@@ -20,8 +20,8 @@
20
20
  "tailwindcss": "^4.2.2",
21
21
  "tailwindcss-primeui": "^0.6.1",
22
22
  "@ngxs/store": "^20.1.0",
23
+ "@masterteam/components": "^0.0.175",
23
24
  "@masterteam/forms": "^0.0.80",
24
- "@masterteam/components": "^0.0.174",
25
25
  "@masterteam/icons": "^0.0.15"
26
26
  },
27
27
  "sideEffects": false,
@@ -77,6 +77,11 @@ interface DelegationScopeAction {
77
77
  applicationKey: string;
78
78
  operationKey: string;
79
79
  operationKind: string;
80
+ displayName?: string | null;
81
+ displayLabel?: string | null;
82
+ operationDisplayName?: string | null;
83
+ operationLabel?: string | null;
84
+ label?: string | null;
80
85
  permissionCommand?: string | null;
81
86
  businessActionCode?: string | null;
82
87
  isHighRisk?: boolean;
@@ -239,7 +244,7 @@ declare class TopbarDelegationMenu {
239
244
  protected readonly hasCandidates: _angular_core.Signal<boolean>;
240
245
  protected readonly onBehalfOf: _angular_core.Signal<_masterteam_delegations.DelegationParty | null>;
241
246
  protected readonly executedBy: _angular_core.Signal<_masterteam_delegations.DelegationParty | null>;
242
- protected readonly mode: _angular_core.Signal<"hidden" | "active" | "candidates">;
247
+ protected readonly mode: _angular_core.Signal<"active" | "candidates" | "hidden">;
243
248
  togglePopover(event: Event): void;
244
249
  start(row: DelegationRow, event: MouseEvent): void;
245
250
  switchTo(row: DelegationRow, event: MouseEvent): void;
@@ -270,6 +275,8 @@ declare class StartSessionDialog {
270
275
  readonly intent: _angular_core.InputSignal<"start" | "switch">;
271
276
  private readonly ref;
272
277
  private readonly facade;
278
+ private readonly toast;
279
+ private readonly transloco;
273
280
  protected readonly isBusy: _angular_core.Signal<boolean>;
274
281
  protected readonly bodyKey: _angular_core.Signal<"delegations.session.switchConfirmBody" | "delegations.session.startConfirmBody">;
275
282
  confirm(): void;
@@ -349,12 +356,14 @@ declare class DelegationsList implements OnInit {
349
356
  label: string;
350
357
  }[]>;
351
358
  protected readonly isLoading: _angular_core.Signal<boolean>;
359
+ protected readonly scopeOptions: _angular_core.Signal<_masterteam_delegations.DelegationScopeSelection | null>;
352
360
  protected readonly rows: _angular_core.Signal<DelegationRow[]>;
353
361
  statusCol: _angular_core.Signal<TemplateRef<unknown>>;
354
362
  userCol: _angular_core.Signal<TemplateRef<unknown>>;
355
363
  scopeCol: _angular_core.Signal<TemplateRef<unknown>>;
356
364
  daysCol: _angular_core.Signal<TemplateRef<unknown>>;
357
- protected readonly tableActions: _angular_core.WritableSignal<TableAction[]>;
365
+ protected readonly canCreate: _angular_core.Signal<boolean>;
366
+ protected readonly tableActions: _angular_core.Signal<TableAction[]>;
358
367
  protected readonly rowActions: _angular_core.WritableSignal<TableAction[]>;
359
368
  protected readonly tableColumns: _angular_core.WritableSignal<ColumnDef[]>;
360
369
  private readonly busyIds;
@@ -403,6 +412,8 @@ declare class DelegationForm implements OnInit {
403
412
  formValue: _angular_core.Signal<any>;
404
413
  detail: _angular_core.Signal<_masterteam_delegations.DelegationDetail | null>;
405
414
  isDetailLoading: _angular_core.Signal<boolean>;
415
+ scopePreview: _angular_core.Signal<_masterteam_delegations.DelegationScopePreview | null>;
416
+ isPreviewingScope: _angular_core.Signal<boolean>;
406
417
  isSaving: _angular_core.Signal<boolean>;
407
418
  context: HttpContext;
408
419
  protected readonly scope: _angular_core.WritableSignal<DelegationScopeSelection>;
@@ -443,6 +454,8 @@ declare class DelegationDetailDrawer implements OnInit {
443
454
  ngOnInit(): void;
444
455
  protected setTab(tab: DetailTab): void;
445
456
  protected approvalLabel(): string;
457
+ protected getScopeTargetLabel(target: DelegationScopeTarget): string;
458
+ protected getScopeActionLabel(action: DelegationScopeAction): string;
446
459
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DelegationDetailDrawer, never>;
447
460
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DelegationDetailDrawer, "mt-delegation-detail-drawer", never, { "delegationId": { "alias": "delegationId"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
448
461
  }
@@ -475,6 +488,7 @@ declare class ScopePicker {
475
488
  protected readonly preview: _angular_core.Signal<_masterteam_delegations.DelegationScopePreview | null>;
476
489
  protected readonly isLoadingOptions: _angular_core.Signal<boolean>;
477
490
  protected readonly isPreviewing: _angular_core.Signal<boolean>;
491
+ protected readonly errorOptions: _angular_core.Signal<string | null>;
478
492
  /** Grantable options grouped by target. */
479
493
  protected readonly groups: _angular_core.Signal<TargetGroup[]>;
480
494
  /** Selected grant keys for O(1) checkbox state. */
@@ -484,6 +498,10 @@ declare class ScopePicker {
484
498
  protected isExpanded(group: TargetGroup): boolean;
485
499
  protected toggleAccordion(group: TargetGroup): void;
486
500
  protected isSelected(grant: DelegationGrant): boolean;
501
+ protected getTargetLabel(target: DelegationScopeTarget): string;
502
+ protected getActionLabel(grant: DelegationGrant): string;
503
+ protected formatDeniedOperation(value?: string | null): string;
504
+ protected formatDeniedTarget(value?: string | null): string;
487
505
  protected toggleGrant(grant: DelegationGrant): void;
488
506
  protected selectedCount(group: TargetGroup): number;
489
507
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScopePicker, never>;
@@ -647,6 +665,7 @@ declare class DelegationsFacade {
647
665
  readonly errorMy: _angular_core.Signal<string | null>;
648
666
  readonly errorAssigned: _angular_core.Signal<string | null>;
649
667
  readonly errorDetail: _angular_core.Signal<string | null>;
668
+ readonly errorScopeOptions: _angular_core.Signal<string | null>;
650
669
  readonly errorSave: _angular_core.Signal<string | null>;
651
670
  getMy(query?: DelegationListQuery): rxjs.Observable<void>;
652
671
  getAssigned(query?: DelegationListQuery): rxjs.Observable<void>;