@masterteam/delegations 0.0.13 → 0.0.15

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.13",
3
+ "version": "0.0.15",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/delegations",
6
6
  "linkDirectory": false,
@@ -20,9 +20,9 @@
20
20
  "tailwindcss": "^4.2.2",
21
21
  "tailwindcss-primeui": "^0.6.1",
22
22
  "@ngxs/store": "^20.1.0",
23
- "@masterteam/icons": "^0.0.15",
24
23
  "@masterteam/components": "^0.0.174",
25
- "@masterteam/forms": "^0.0.80"
24
+ "@masterteam/forms": "^0.0.80",
25
+ "@masterteam/icons": "^0.0.15"
26
26
  },
27
27
  "sideEffects": false,
28
28
  "exports": {
@@ -83,6 +83,8 @@ interface DelegationScopeAction {
83
83
  isDelegableSnapshot?: boolean;
84
84
  }
85
85
  interface DelegationGrant {
86
+ /** Optional backend-provided stable grant identity; preferred for de-dup when present. */
87
+ key?: string;
86
88
  applicationKey: string;
87
89
  target: DelegationScopeTarget;
88
90
  action: DelegationScopeAction;
@@ -276,6 +278,27 @@ declare class StartSessionDialog {
276
278
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<StartSessionDialog, "mt-start-session-dialog", never, { "delegation": { "alias": "delegation"; "required": true; "isSignal": true; }; "intent": { "alias": "intent"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
277
279
  }
278
280
 
281
+ /**
282
+ * Collects a required rejection reason before calling
283
+ * POST identity/delegations/{id}/reject (doc 04 — reject requires a non-empty
284
+ * reason for audit/governance). Closes with `true` on success so the caller
285
+ * can reload the row.
286
+ */
287
+ declare class RejectDelegationDialog {
288
+ readonly delegation: _angular_core.InputSignal<DelegationRow>;
289
+ private readonly ref;
290
+ private readonly facade;
291
+ protected readonly reason: _angular_core.WritableSignal<string>;
292
+ protected readonly submitted: _angular_core.WritableSignal<boolean>;
293
+ protected readonly isBusy: _angular_core.Signal<boolean>;
294
+ protected readonly isValid: _angular_core.Signal<boolean>;
295
+ protected onReasonInput(event: Event): void;
296
+ confirm(): void;
297
+ cancel(): void;
298
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RejectDelegationDialog, never>;
299
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<RejectDelegationDialog, "mt-reject-delegation-dialog", never, { "delegation": { "alias": "delegation"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
300
+ }
301
+
279
302
  declare class Delegations {
280
303
  private readonly router;
281
304
  goBack(): void;
@@ -290,6 +313,13 @@ type DelegationTab = 'my' | 'assigned';
290
313
  * the BE-returned `allowedActions`; status comes from `effectiveStatus`.
291
314
  */
292
315
  declare class DelegationsList implements OnInit {
316
+ /**
317
+ * Admin/control-panel breadcrumb. Hidden on the client self-service surface
318
+ * (its links point at /control-panel/*). Bound from route data via
319
+ * `withComponentInputBinding()` — admin leaves it default; client passes
320
+ * `data: { showBreadcrumb: false }`.
321
+ */
322
+ readonly showBreadcrumb: _angular_core.InputSignal<boolean>;
293
323
  private readonly facade;
294
324
  private readonly modal;
295
325
  private readonly transloco;
@@ -336,7 +366,7 @@ declare class DelegationsList implements OnInit {
336
366
  private startSession;
337
367
  private mark;
338
368
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DelegationsList, never>;
339
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DelegationsList, "mt-delegations-list", never, {}, {}, never, never, true, never>;
369
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DelegationsList, "mt-delegations-list", never, { "showBreadcrumb": { "alias": "showBreadcrumb"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
340
370
  }
341
371
 
342
372
  /**
@@ -702,5 +732,5 @@ declare class DelegationSessionFacade {
702
732
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<DelegationSessionFacade>;
703
733
  }
704
734
 
705
- export { ApproveDelegation, CancelDelegation, ClearDelegationDetail, ClearScopePreview, CreateDelegationLegacy, CreateDelegationV2, DelegationDetailDrawer, DelegationForm, DelegationSessionActionKey, DelegationSessionFacade, DelegationSessionState, DelegationStatusChip, Delegations, DelegationsActionKey, DelegationsFacade, DelegationsList, DelegationsState, EndDelegationSession, GetActiveAssignedDelegations, GetAssignedDelegations, GetDelegationDetail, GetMyDelegations, GetScopeOptions, LoadDelegationCandidates, PreviewScope, RejectDelegation, ScopePicker, StartDelegationSession, StartSessionDialog, SwitchDelegationSession, TopbarDelegationMenu, UpdateDelegationLegacy, UpdateDelegationV2, appDelegationInterceptor };
735
+ export { ApproveDelegation, CancelDelegation, ClearDelegationDetail, ClearScopePreview, CreateDelegationLegacy, CreateDelegationV2, DelegationDetailDrawer, DelegationForm, DelegationSessionActionKey, DelegationSessionFacade, DelegationSessionState, DelegationStatusChip, Delegations, DelegationsActionKey, DelegationsFacade, DelegationsList, DelegationsState, EndDelegationSession, GetActiveAssignedDelegations, GetAssignedDelegations, GetDelegationDetail, GetMyDelegations, GetScopeOptions, LoadDelegationCandidates, PreviewScope, RejectDelegation, RejectDelegationDialog, ScopePicker, StartDelegationSession, StartSessionDialog, SwitchDelegationSession, TopbarDelegationMenu, UpdateDelegationLegacy, UpdateDelegationV2, appDelegationInterceptor };
706
736
  export type { ActiveDelegationSession, ApproveDelegationRequest, CreateDelegationLegacyRequest, CreateDelegationV2Request, DelegationAllowedAction, DelegationApprovalInfo, DelegationApprovalStatus, DelegationCancellationInfo, DelegationDayRuleMode, DelegationDetail, DelegationDto, DelegationEffectiveStatus, DelegationGrant, DelegationListQuery, DelegationPage, DelegationParty, DelegationRow, DelegationScopeAction, DelegationScopeDeniedItem, DelegationScopeOptions, DelegationScopePreview, DelegationScopeSelection, DelegationScopeTarget, DelegationScopeWarning, DelegationSessionInvalidationReason, DelegationSessionStateModel, DelegationSortDirection, DelegationStatusInfo, DelegationsStateModel, RejectDelegationRequest, UpdateDelegationLegacyRequest, UpdateDelegationV2Request };