@masterteam/delegations 0.0.41 → 0.0.42
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.42",
|
|
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.
|
|
24
|
-
"@masterteam/
|
|
25
|
-
"@masterteam/
|
|
23
|
+
"@masterteam/components": "^0.0.184",
|
|
24
|
+
"@masterteam/forms": "^0.0.87",
|
|
25
|
+
"@masterteam/icons": "^0.0.15"
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"exports": {
|
|
@@ -406,7 +406,7 @@ declare class TopbarDelegationMenu implements OnInit {
|
|
|
406
406
|
protected readonly executedBy: _angular_core.Signal<_masterteam_delegations.DelegationParty | null>;
|
|
407
407
|
/** Per-instance guard; the persisted `facade.prompted()` guards across refresh. */
|
|
408
408
|
private localPrompted;
|
|
409
|
-
protected readonly mode: _angular_core.Signal<"
|
|
409
|
+
protected readonly mode: _angular_core.Signal<"active" | "candidates" | "hidden">;
|
|
410
410
|
constructor();
|
|
411
411
|
ngOnInit(): void;
|
|
412
412
|
/** Two-letter initials for a delegator avatar (matches the user-menu pattern). */
|
|
@@ -442,7 +442,7 @@ declare class DelegationMenuPanel {
|
|
|
442
442
|
protected readonly hasCandidates: _angular_core.Signal<boolean>;
|
|
443
443
|
protected readonly onBehalfOf: _angular_core.Signal<_masterteam_delegations.DelegationParty | null>;
|
|
444
444
|
protected readonly executedBy: _angular_core.Signal<_masterteam_delegations.DelegationParty | null>;
|
|
445
|
-
protected readonly mode: _angular_core.Signal<"
|
|
445
|
+
protected readonly mode: _angular_core.Signal<"active" | "candidates" | "hidden">;
|
|
446
446
|
/** Two-letter initials for a delegator avatar (matches the user-menu pattern). */
|
|
447
447
|
protected initials(party: DelegationRow['delegator'] | null | undefined): string;
|
|
448
448
|
protected start(row: DelegationRow, event: MouseEvent): void;
|
|
@@ -479,7 +479,7 @@ declare class StartSessionDialog {
|
|
|
479
479
|
private readonly transloco;
|
|
480
480
|
protected readonly isBusy: _angular_core.Signal<boolean>;
|
|
481
481
|
protected readonly bodyKey: _angular_core.Signal<"delegations.session.switchConfirmBody" | "delegations.session.startConfirmBody">;
|
|
482
|
-
protected readonly confirmLabelKey: _angular_core.Signal<"delegations.action.
|
|
482
|
+
protected readonly confirmLabelKey: _angular_core.Signal<"delegations.action.startSession" | "delegations.action.switchSession">;
|
|
483
483
|
protected readonly successMessageKey: _angular_core.Signal<"delegations.session.switched" | "delegations.session.started">;
|
|
484
484
|
protected formatScopeSummary(summary: DelegationRow['scopeSummary']): string;
|
|
485
485
|
protected userEntity(party: DelegationRow['delegator']): _masterteam_components_entities.EntityData;
|
|
@@ -570,10 +570,25 @@ declare class DelegationsList implements OnInit {
|
|
|
570
570
|
readonly approvalTabLabelKey: _angular_core.InputSignalWithTransform<string, unknown>;
|
|
571
571
|
readonly approvalEmptyStateKey: _angular_core.InputSignalWithTransform<string, unknown>;
|
|
572
572
|
readonly approvalStatus: _angular_core.InputSignalWithTransform<DelegationEffectiveStatus, unknown>;
|
|
573
|
+
/**
|
|
574
|
+
* Route-driven mode (client self-service): the active tab is the `:tab` route
|
|
575
|
+
* segment and the open drawer is a `?view=`/`?edit=` query param, so tabs and
|
|
576
|
+
* drawers are deep-linkable + back-button aware. When false (admin/default),
|
|
577
|
+
* tabs and drawers are managed internally exactly as before.
|
|
578
|
+
*/
|
|
579
|
+
readonly routed: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
580
|
+
/** Bound from the `:tab` route param via `withComponentInputBinding()`. */
|
|
581
|
+
readonly tab: _angular_core.InputSignalWithTransform<DelegationTab | null, unknown>;
|
|
582
|
+
/** Bound from the `?view=<id>` query param (detail drawer). */
|
|
583
|
+
readonly view: _angular_core.InputSignalWithTransform<number | null, unknown>;
|
|
584
|
+
/** Bound from the `?edit=<id>` query param (edit drawer). */
|
|
585
|
+
readonly edit: _angular_core.InputSignalWithTransform<number | null, unknown>;
|
|
573
586
|
private readonly facade;
|
|
574
587
|
private readonly location;
|
|
575
588
|
private readonly modal;
|
|
576
589
|
private readonly transloco;
|
|
590
|
+
private readonly router;
|
|
591
|
+
private readonly route;
|
|
577
592
|
protected readonly breadcrumbItems: _angular_core.WritableSignal<({
|
|
578
593
|
label: string;
|
|
579
594
|
icon: string;
|
|
@@ -605,6 +620,11 @@ declare class DelegationsList implements OnInit {
|
|
|
605
620
|
protected readonly tableColumns: _angular_core.WritableSignal<ColumnDef[]>;
|
|
606
621
|
private readonly busyIds;
|
|
607
622
|
private readonly weekdayKeys;
|
|
623
|
+
private detailRef;
|
|
624
|
+
private detailOpenId;
|
|
625
|
+
private editRef;
|
|
626
|
+
private editOpenId;
|
|
627
|
+
constructor();
|
|
608
628
|
ngOnInit(): void;
|
|
609
629
|
protected switchTab(tab: DelegationTab): void;
|
|
610
630
|
protected goBack(): void;
|
|
@@ -613,15 +633,22 @@ declare class DelegationsList implements OnInit {
|
|
|
613
633
|
protected has(row: DelegationRow, action: DelegationAllowedAction): boolean;
|
|
614
634
|
protected formatDays(row: DelegationRow): string;
|
|
615
635
|
protected getListedParty(row: DelegationRow): _masterteam_delegations.DelegationParty;
|
|
616
|
-
private
|
|
636
|
+
private onView;
|
|
637
|
+
private onEdit;
|
|
638
|
+
private openDetailById;
|
|
617
639
|
private openForm;
|
|
640
|
+
private syncDetailDrawer;
|
|
641
|
+
private syncEditDrawer;
|
|
642
|
+
private closeDetail;
|
|
643
|
+
private closeEdit;
|
|
644
|
+
private clearQuery;
|
|
618
645
|
private approve;
|
|
619
646
|
private reject;
|
|
620
647
|
private cancel;
|
|
621
648
|
private startSession;
|
|
622
649
|
private mark;
|
|
623
650
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DelegationsList, never>;
|
|
624
|
-
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>;
|
|
651
|
+
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; }; "routed": { "alias": "routed"; "required": false; "isSignal": true; }; "tab": { "alias": "tab"; "required": false; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "edit": { "alias": "edit"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
625
652
|
}
|
|
626
653
|
|
|
627
654
|
interface DelegationFormUserValue {
|