@masterteam/delegations 0.0.27 → 0.0.29
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.29",
|
|
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/icons": "^0.0.15",
|
|
24
23
|
"@masterteam/forms": "^0.0.81",
|
|
24
|
+
"@masterteam/icons": "^0.0.15",
|
|
25
25
|
"@masterteam/components": "^0.0.179"
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import * as _masterteam_components_entities from '@masterteam/components/entities';
|
|
2
|
+
import { EntityUserValue } from '@masterteam/components/entities';
|
|
1
3
|
import * as _masterteam_delegations from '@masterteam/delegations';
|
|
2
4
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import { OnInit
|
|
5
|
+
import { OnInit } from '@angular/core';
|
|
4
6
|
import { Popover } from 'primeng/popover';
|
|
5
7
|
import { PageHeaderTab } from '@masterteam/components/page-header';
|
|
6
|
-
import { TableAction, ColumnDef } from '@masterteam/components/table';
|
|
8
|
+
import { TableAction, TableStatusMapValue, ColumnDef } from '@masterteam/components/table';
|
|
7
9
|
import { FormControl } from '@angular/forms';
|
|
8
10
|
import { HttpContext, HttpInterceptorFn } from '@angular/common/http';
|
|
9
11
|
import { DynamicFormConfig } from '@masterteam/components';
|
|
@@ -333,10 +335,11 @@ declare class TopbarDelegationMenu implements OnInit {
|
|
|
333
335
|
protected readonly onBehalfOf: _angular_core.Signal<_masterteam_delegations.DelegationParty | null>;
|
|
334
336
|
protected readonly executedBy: _angular_core.Signal<_masterteam_delegations.DelegationParty | null>;
|
|
335
337
|
private readonly promptShown;
|
|
336
|
-
protected readonly mode: _angular_core.Signal<"
|
|
338
|
+
protected readonly mode: _angular_core.Signal<"active" | "candidates" | "hidden">;
|
|
337
339
|
constructor();
|
|
338
340
|
ngOnInit(): void;
|
|
339
341
|
protected formatScopeSummary(summary: DelegationRow['scopeSummary']): string;
|
|
342
|
+
protected userEntity(party: DelegationRow['delegator'] | null | undefined, showEmail?: boolean): _masterteam_components_entities.EntityData;
|
|
340
343
|
togglePopover(event: Event): void;
|
|
341
344
|
start(row: DelegationRow, event: MouseEvent): void;
|
|
342
345
|
switchTo(row: DelegationRow, event: MouseEvent): void;
|
|
@@ -372,9 +375,10 @@ declare class StartSessionDialog {
|
|
|
372
375
|
private readonly transloco;
|
|
373
376
|
protected readonly isBusy: _angular_core.Signal<boolean>;
|
|
374
377
|
protected readonly bodyKey: _angular_core.Signal<"delegations.session.switchConfirmBody" | "delegations.session.startConfirmBody">;
|
|
375
|
-
protected readonly confirmLabelKey: _angular_core.Signal<"delegations.action.
|
|
378
|
+
protected readonly confirmLabelKey: _angular_core.Signal<"delegations.action.startSession" | "delegations.action.switchSession">;
|
|
376
379
|
protected readonly successMessageKey: _angular_core.Signal<"delegations.session.switched" | "delegations.session.started">;
|
|
377
380
|
protected formatScopeSummary(summary: DelegationRow['scopeSummary']): string;
|
|
381
|
+
protected userEntity(party: DelegationRow['delegator']): _masterteam_components_entities.EntityData;
|
|
378
382
|
confirm(): void;
|
|
379
383
|
cancel(): void;
|
|
380
384
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StartSessionDialog, never>;
|
|
@@ -396,6 +400,7 @@ declare class RejectDelegationDialog {
|
|
|
396
400
|
protected readonly isBusy: _angular_core.Signal<boolean>;
|
|
397
401
|
protected readonly isValid: _angular_core.Signal<boolean>;
|
|
398
402
|
protected onReasonInput(event: Event): void;
|
|
403
|
+
protected userEntity(party: DelegationRow['delegator']): _masterteam_components_entities.EntityData;
|
|
399
404
|
confirm(): void;
|
|
400
405
|
cancel(): void;
|
|
401
406
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RejectDelegationDialog, never>;
|
|
@@ -418,7 +423,15 @@ declare class Delegations implements OnInit {
|
|
|
418
423
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Delegations, "mt-delegations", never, {}, {}, never, never, true, never>;
|
|
419
424
|
}
|
|
420
425
|
|
|
426
|
+
declare function toDelegationUserValue(party: DelegationParty | null | undefined): EntityUserValue;
|
|
427
|
+
|
|
421
428
|
type DelegationTab = 'my' | 'assigned' | 'approvals';
|
|
429
|
+
type DelegationTableRow = DelegationRow & {
|
|
430
|
+
listedUser: ReturnType<typeof toDelegationUserValue>;
|
|
431
|
+
delegatorUser: ReturnType<typeof toDelegationUserValue>;
|
|
432
|
+
delegatedToUser: ReturnType<typeof toDelegationUserValue>;
|
|
433
|
+
daysText: string;
|
|
434
|
+
};
|
|
422
435
|
/**
|
|
423
436
|
* Delegations portal page (doc 02, 09): two lists — My Delegations (current user
|
|
424
437
|
* is delegator) and Delegated To Me (current user is delegate). Rows render only
|
|
@@ -478,14 +491,12 @@ declare class DelegationsList implements OnInit {
|
|
|
478
491
|
}[]>;
|
|
479
492
|
protected readonly isLoading: _angular_core.Signal<boolean>;
|
|
480
493
|
protected readonly rows: _angular_core.Signal<DelegationRow[]>;
|
|
494
|
+
protected readonly tableRows: _angular_core.Signal<DelegationTableRow[]>;
|
|
481
495
|
protected readonly emptyStateKey: _angular_core.Signal<string>;
|
|
482
|
-
statusCol: _angular_core.Signal<TemplateRef<unknown>>;
|
|
483
|
-
userCol: _angular_core.Signal<TemplateRef<unknown>>;
|
|
484
|
-
delegatorCol: _angular_core.Signal<TemplateRef<unknown>>;
|
|
485
|
-
delegatedUserCol: _angular_core.Signal<TemplateRef<unknown>>;
|
|
486
|
-
daysCol: _angular_core.Signal<TemplateRef<unknown>>;
|
|
487
496
|
protected readonly tableActions: _angular_core.Signal<TableAction[]>;
|
|
488
497
|
protected readonly rowActions: _angular_core.WritableSignal<TableAction[]>;
|
|
498
|
+
private readonly statusColors;
|
|
499
|
+
protected readonly statusMap: _angular_core.WritableSignal<Record<DelegationEffectiveStatus, TableStatusMapValue>>;
|
|
489
500
|
protected readonly tableColumns: _angular_core.WritableSignal<ColumnDef[]>;
|
|
490
501
|
private readonly busyIds;
|
|
491
502
|
private readonly weekdayKeys;
|
|
@@ -496,7 +507,7 @@ declare class DelegationsList implements OnInit {
|
|
|
496
507
|
private reloadCurrentTab;
|
|
497
508
|
protected has(row: DelegationRow, action: DelegationAllowedAction): boolean;
|
|
498
509
|
protected formatDays(row: DelegationRow): string;
|
|
499
|
-
protected getListedParty(row: DelegationRow): DelegationParty;
|
|
510
|
+
protected getListedParty(row: DelegationRow): _masterteam_delegations.DelegationParty;
|
|
500
511
|
private viewDetails;
|
|
501
512
|
private openForm;
|
|
502
513
|
private approve;
|
|
@@ -592,6 +603,7 @@ declare class DelegationDetailDrawer implements OnInit {
|
|
|
592
603
|
protected getScopeTargetLabel(target: DelegationScopeTarget): string;
|
|
593
604
|
protected getScopeActionLabel(action: DelegationScopeAction): string;
|
|
594
605
|
protected formatScopeSummary(summary: DelegationDisplayValue | undefined): string;
|
|
606
|
+
protected userEntity(party: DelegationParty, label?: string): _masterteam_components_entities.EntityData;
|
|
595
607
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DelegationDetailDrawer, never>;
|
|
596
608
|
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>;
|
|
597
609
|
}
|