@masterteam/delegations 0.0.25 → 0.0.26

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.25",
3
+ "version": "0.0.26",
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",
24
- "@masterteam/forms": "^0.0.80",
23
+ "@masterteam/components": "^0.0.179",
24
+ "@masterteam/forms": "^0.0.81",
25
25
  "@masterteam/icons": "^0.0.15"
26
26
  },
27
27
  "sideEffects": false,
@@ -317,7 +317,7 @@ interface DelegationsStateModel extends LoadingStateShape<DelegationsActionKey>
317
317
  * State C — active delegated session: shows "Acting on behalf of {delegator}" +
318
318
  * "Executed by {actual user}", plus Back / Switch.
319
319
  */
320
- declare class TopbarDelegationMenu {
320
+ declare class TopbarDelegationMenu implements OnInit {
321
321
  /** Path to the management page, e.g. `/control-panel/delegations` or `/delegations`. */
322
322
  readonly managePath: _angular_core.InputSignal<string>;
323
323
  readonly compact: _angular_core.InputSignal<boolean>;
@@ -332,6 +332,7 @@ declare class TopbarDelegationMenu {
332
332
  protected readonly onBehalfOf: _angular_core.Signal<_masterteam_delegations.DelegationParty | null>;
333
333
  protected readonly executedBy: _angular_core.Signal<_masterteam_delegations.DelegationParty | null>;
334
334
  protected readonly mode: _angular_core.Signal<"active" | "candidates" | "hidden">;
335
+ ngOnInit(): void;
335
336
  protected formatScopeSummary(summary: DelegationRow['scopeSummary']): string;
336
337
  togglePopover(event: Event): void;
337
338
  start(row: DelegationRow, event: MouseEvent): void;
@@ -367,6 +368,8 @@ declare class StartSessionDialog {
367
368
  private readonly transloco;
368
369
  protected readonly isBusy: _angular_core.Signal<boolean>;
369
370
  protected readonly bodyKey: _angular_core.Signal<"delegations.session.switchConfirmBody" | "delegations.session.startConfirmBody">;
371
+ protected readonly confirmLabelKey: _angular_core.Signal<"delegations.action.switchSession" | "delegations.action.startSession">;
372
+ protected readonly successMessageKey: _angular_core.Signal<"delegations.session.switched" | "delegations.session.started">;
370
373
  protected formatScopeSummary(summary: DelegationRow['scopeSummary']): string;
371
374
  confirm(): void;
372
375
  cancel(): void;
@@ -425,6 +428,11 @@ declare class DelegationsList implements OnInit {
425
428
  * `data: { showBreadcrumb: false }`.
426
429
  */
427
430
  readonly showBreadcrumb: _angular_core.InputSignal<boolean>;
431
+ /**
432
+ * Admin routes can embed the list under `mt-delegations`, which already owns
433
+ * the page title, back button, and route tabs.
434
+ */
435
+ readonly showPageShell: _angular_core.InputSignal<boolean>;
428
436
  /**
429
437
  * Admin-managed surface: the create/edit form also collects the Delegator /
430
438
  * From user (admin creates a delegation between two users). Client
@@ -494,7 +502,7 @@ declare class DelegationsList implements OnInit {
494
502
  private startSession;
495
503
  private mark;
496
504
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DelegationsList, never>;
497
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DelegationsList, "mt-delegations-list", never, { "showBreadcrumb": { "alias": "showBreadcrumb"; "required": false; "isSignal": true; }; "adminMode": { "alias": "adminMode"; "required": false; "isSignal": true; }; "surfaceTitleKey": { "alias": "surfaceTitleKey"; "required": false; "isSignal": true; }; "assignedTabLabelKey": { "alias": "assignedTabLabelKey"; "required": false; "isSignal": true; }; "assignedDecisionTab": { "alias": "assignedDecisionTab"; "required": false; "isSignal": true; }; "assignedEmptyStateKey": { "alias": "assignedEmptyStateKey"; "required": false; "isSignal": true; }; "assignedStatus": { "alias": "assignedStatus"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
505
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DelegationsList, "mt-delegations-list", never, { "showBreadcrumb": { "alias": "showBreadcrumb"; "required": false; "isSignal": true; }; "showPageShell": { "alias": "showPageShell"; "required": false; "isSignal": true; }; "adminMode": { "alias": "adminMode"; "required": false; "isSignal": true; }; "surfaceTitleKey": { "alias": "surfaceTitleKey"; "required": false; "isSignal": true; }; "assignedTabLabelKey": { "alias": "assignedTabLabelKey"; "required": false; "isSignal": true; }; "assignedDecisionTab": { "alias": "assignedDecisionTab"; "required": false; "isSignal": true; }; "assignedEmptyStateKey": { "alias": "assignedEmptyStateKey"; "required": false; "isSignal": true; }; "assignedStatus": { "alias": "assignedStatus"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
498
506
  }
499
507
 
500
508
  interface DelegationFormUserValue {
@@ -862,7 +870,7 @@ interface ActiveDelegationSession {
862
870
  token: string;
863
871
  delegation: DelegationRow;
864
872
  }
865
- type DelegationSessionInvalidationReason = 'TokenInvalid' | 'SessionMismatch' | 'ScopeChanged' | 'Forbidden' | 'Logout' | 'UserSwitch' | 'Manual';
873
+ type DelegationSessionInvalidationReason = 'TokenInvalid' | 'SessionMismatch' | 'ScopeChanged' | 'Forbidden' | 'Logout' | 'UserSwitch' | 'TenantSwitch' | 'AppSwitch' | 'Manual';
866
874
  declare enum DelegationSessionActionKey {
867
875
  LoadCandidates = "loadCandidates",
868
876
  StartSession = "startSession"
@@ -907,7 +915,7 @@ declare class DelegationSessionState {
907
915
  static getErrors(state: DelegationSessionStateModel): Record<string, string | null | undefined>;
908
916
  loadCandidates(ctx: StateContext<DelegationSessionStateModel>): rxjs.Observable<Response<DelegationPage<DelegationRow>>>;
909
917
  start(ctx: StateContext<DelegationSessionStateModel>, { delegation }: StartDelegationSession): rxjs.Observable<Response<string>>;
910
- end(ctx: StateContext<DelegationSessionStateModel>): rxjs.Observable<never>;
918
+ end(ctx: StateContext<DelegationSessionStateModel>, { reason }: EndDelegationSession): rxjs.Observable<never>;
911
919
  switch(ctx: StateContext<DelegationSessionStateModel>, { delegation }: SwitchDelegationSession): rxjs.Observable<void>;
912
920
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DelegationSessionState, never>;
913
921
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<DelegationSessionState>;