@masterteam/delegations 0.0.14 → 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.14",
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",
23
+ "@masterteam/components": "^0.0.174",
24
24
  "@masterteam/forms": "^0.0.80",
25
- "@masterteam/components": "^0.0.174"
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;
@@ -709,5 +732,5 @@ declare class DelegationSessionFacade {
709
732
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<DelegationSessionFacade>;
710
733
  }
711
734
 
712
- 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 };
713
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 };