@masterteam/delegations 0.0.26 → 0.0.28
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.
|
|
3
|
+
"version": "0.0.28",
|
|
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/components": "^0.0.179",
|
|
24
23
|
"@masterteam/forms": "^0.0.81",
|
|
25
|
-
"@masterteam/icons": "^0.0.15"
|
|
24
|
+
"@masterteam/icons": "^0.0.15",
|
|
25
|
+
"@masterteam/components": "^0.0.179"
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"exports": {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as _masterteam_components_entities from '@masterteam/components/entities';
|
|
1
2
|
import * as _masterteam_delegations from '@masterteam/delegations';
|
|
2
3
|
import * as _angular_core from '@angular/core';
|
|
3
4
|
import { OnInit, TemplateRef } from '@angular/core';
|
|
@@ -322,6 +323,7 @@ declare class TopbarDelegationMenu implements OnInit {
|
|
|
322
323
|
readonly managePath: _angular_core.InputSignal<string>;
|
|
323
324
|
readonly compact: _angular_core.InputSignal<boolean>;
|
|
324
325
|
readonly showManageLink: _angular_core.InputSignal<boolean>;
|
|
326
|
+
readonly promptOnCandidates: _angular_core.InputSignal<boolean>;
|
|
325
327
|
private readonly facade;
|
|
326
328
|
private readonly modal;
|
|
327
329
|
private readonly transloco;
|
|
@@ -331,16 +333,20 @@ declare class TopbarDelegationMenu implements OnInit {
|
|
|
331
333
|
protected readonly hasCandidates: _angular_core.Signal<boolean>;
|
|
332
334
|
protected readonly onBehalfOf: _angular_core.Signal<_masterteam_delegations.DelegationParty | null>;
|
|
333
335
|
protected readonly executedBy: _angular_core.Signal<_masterteam_delegations.DelegationParty | null>;
|
|
334
|
-
|
|
336
|
+
private readonly promptShown;
|
|
337
|
+
protected readonly mode: _angular_core.Signal<"hidden" | "candidates" | "active">;
|
|
338
|
+
constructor();
|
|
335
339
|
ngOnInit(): void;
|
|
336
340
|
protected formatScopeSummary(summary: DelegationRow['scopeSummary']): string;
|
|
341
|
+
protected userEntity(party: DelegationRow['delegator'] | null | undefined, showEmail?: boolean): _masterteam_components_entities.EntityData;
|
|
337
342
|
togglePopover(event: Event): void;
|
|
338
343
|
start(row: DelegationRow, event: MouseEvent): void;
|
|
339
344
|
switchTo(row: DelegationRow, event: MouseEvent): void;
|
|
340
345
|
endSession(event: MouseEvent): void;
|
|
341
346
|
private openConfirm;
|
|
347
|
+
private openCandidatesPrompt;
|
|
342
348
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TopbarDelegationMenu, never>;
|
|
343
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TopbarDelegationMenu, "mt-topbar-delegation-menu", never, { "managePath": { "alias": "managePath"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "showManageLink": { "alias": "showManageLink"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
349
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TopbarDelegationMenu, "mt-topbar-delegation-menu", never, { "managePath": { "alias": "managePath"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "showManageLink": { "alias": "showManageLink"; "required": false; "isSignal": true; }; "promptOnCandidates": { "alias": "promptOnCandidates"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
344
350
|
}
|
|
345
351
|
|
|
346
352
|
interface StatusVisual {
|
|
@@ -371,6 +377,7 @@ declare class StartSessionDialog {
|
|
|
371
377
|
protected readonly confirmLabelKey: _angular_core.Signal<"delegations.action.switchSession" | "delegations.action.startSession">;
|
|
372
378
|
protected readonly successMessageKey: _angular_core.Signal<"delegations.session.switched" | "delegations.session.started">;
|
|
373
379
|
protected formatScopeSummary(summary: DelegationRow['scopeSummary']): string;
|
|
380
|
+
protected userEntity(party: DelegationRow['delegator']): _masterteam_components_entities.EntityData;
|
|
374
381
|
confirm(): void;
|
|
375
382
|
cancel(): void;
|
|
376
383
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StartSessionDialog, never>;
|
|
@@ -392,6 +399,7 @@ declare class RejectDelegationDialog {
|
|
|
392
399
|
protected readonly isBusy: _angular_core.Signal<boolean>;
|
|
393
400
|
protected readonly isValid: _angular_core.Signal<boolean>;
|
|
394
401
|
protected onReasonInput(event: Event): void;
|
|
402
|
+
protected userEntity(party: DelegationRow['delegator']): _masterteam_components_entities.EntityData;
|
|
395
403
|
confirm(): void;
|
|
396
404
|
cancel(): void;
|
|
397
405
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RejectDelegationDialog, never>;
|
|
@@ -414,7 +422,7 @@ declare class Delegations implements OnInit {
|
|
|
414
422
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Delegations, "mt-delegations", never, {}, {}, never, never, true, never>;
|
|
415
423
|
}
|
|
416
424
|
|
|
417
|
-
type DelegationTab = 'my' | 'assigned';
|
|
425
|
+
type DelegationTab = 'my' | 'assigned' | 'approvals';
|
|
418
426
|
/**
|
|
419
427
|
* Delegations portal page (doc 02, 09): two lists — My Delegations (current user
|
|
420
428
|
* is delegator) and Delegated To Me (current user is delegate). Rows render only
|
|
@@ -445,6 +453,10 @@ declare class DelegationsList implements OnInit {
|
|
|
445
453
|
readonly assignedDecisionTab: _angular_core.InputSignal<boolean>;
|
|
446
454
|
readonly assignedEmptyStateKey: _angular_core.InputSignal<string>;
|
|
447
455
|
readonly assignedStatus: _angular_core.InputSignal<DelegationEffectiveStatus | null>;
|
|
456
|
+
readonly showApprovalTab: _angular_core.InputSignal<boolean>;
|
|
457
|
+
readonly approvalTabLabelKey: _angular_core.InputSignal<string>;
|
|
458
|
+
readonly approvalEmptyStateKey: _angular_core.InputSignal<string>;
|
|
459
|
+
readonly approvalStatus: _angular_core.InputSignal<DelegationEffectiveStatus>;
|
|
448
460
|
private readonly facade;
|
|
449
461
|
private readonly location;
|
|
450
462
|
private readonly modal;
|
|
@@ -469,17 +481,13 @@ declare class DelegationsList implements OnInit {
|
|
|
469
481
|
label: string;
|
|
470
482
|
}[]>;
|
|
471
483
|
protected readonly isLoading: _angular_core.Signal<boolean>;
|
|
472
|
-
protected readonly isLoadingScopeOptions: _angular_core.Signal<boolean>;
|
|
473
|
-
protected readonly scopeOptions: _angular_core.Signal<_masterteam_delegations.DelegationScopeOptions | null>;
|
|
474
484
|
protected readonly rows: _angular_core.Signal<DelegationRow[]>;
|
|
475
485
|
protected readonly emptyStateKey: _angular_core.Signal<string>;
|
|
476
486
|
statusCol: _angular_core.Signal<TemplateRef<unknown>>;
|
|
477
487
|
userCol: _angular_core.Signal<TemplateRef<unknown>>;
|
|
478
488
|
delegatorCol: _angular_core.Signal<TemplateRef<unknown>>;
|
|
479
489
|
delegatedUserCol: _angular_core.Signal<TemplateRef<unknown>>;
|
|
480
|
-
scopeCol: _angular_core.Signal<TemplateRef<unknown>>;
|
|
481
490
|
daysCol: _angular_core.Signal<TemplateRef<unknown>>;
|
|
482
|
-
protected readonly canCreate: _angular_core.Signal<boolean>;
|
|
483
491
|
protected readonly tableActions: _angular_core.Signal<TableAction[]>;
|
|
484
492
|
protected readonly rowActions: _angular_core.WritableSignal<TableAction[]>;
|
|
485
493
|
protected readonly tableColumns: _angular_core.WritableSignal<ColumnDef[]>;
|
|
@@ -492,8 +500,8 @@ declare class DelegationsList implements OnInit {
|
|
|
492
500
|
private reloadCurrentTab;
|
|
493
501
|
protected has(row: DelegationRow, action: DelegationAllowedAction): boolean;
|
|
494
502
|
protected formatDays(row: DelegationRow): string;
|
|
495
|
-
protected formatScopeSummary(value: DelegationRow['scopeSummary']): string;
|
|
496
503
|
protected getListedParty(row: DelegationRow): DelegationParty;
|
|
504
|
+
protected userEntity(party: DelegationParty | null | undefined): _masterteam_components_entities.EntityData;
|
|
497
505
|
private viewDetails;
|
|
498
506
|
private openForm;
|
|
499
507
|
private approve;
|
|
@@ -502,7 +510,7 @@ declare class DelegationsList implements OnInit {
|
|
|
502
510
|
private startSession;
|
|
503
511
|
private mark;
|
|
504
512
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DelegationsList, 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>;
|
|
513
|
+
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; }; "showApprovalTab": { "alias": "showApprovalTab"; "required": false; "isSignal": true; }; "approvalTabLabelKey": { "alias": "approvalTabLabelKey"; "required": false; "isSignal": true; }; "approvalEmptyStateKey": { "alias": "approvalEmptyStateKey"; "required": false; "isSignal": true; }; "approvalStatus": { "alias": "approvalStatus"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
506
514
|
}
|
|
507
515
|
|
|
508
516
|
interface DelegationFormUserValue {
|
|
@@ -589,6 +597,7 @@ declare class DelegationDetailDrawer implements OnInit {
|
|
|
589
597
|
protected getScopeTargetLabel(target: DelegationScopeTarget): string;
|
|
590
598
|
protected getScopeActionLabel(action: DelegationScopeAction): string;
|
|
591
599
|
protected formatScopeSummary(summary: DelegationDisplayValue | undefined): string;
|
|
600
|
+
protected userEntity(party: DelegationParty, label?: string): _masterteam_components_entities.EntityData;
|
|
592
601
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DelegationDetailDrawer, never>;
|
|
593
602
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DelegationDetailDrawer, "mt-delegation-detail-drawer", never, { "delegationId": { "alias": "delegationId"; "required": true; "isSignal": true; }; "adminMode": { "alias": "adminMode"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
594
603
|
}
|