@masterteam/delegations 0.0.22 → 0.0.23
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.23",
|
|
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/components": "^0.0.175",
|
|
24
23
|
"@masterteam/forms": "^0.0.80",
|
|
24
|
+
"@masterteam/components": "^0.0.175",
|
|
25
25
|
"@masterteam/icons": "^0.0.15"
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false,
|
|
@@ -9,6 +9,7 @@ import { HttpContext, HttpInterceptorFn } from '@angular/common/http';
|
|
|
9
9
|
import { DynamicFormConfig } from '@masterteam/components';
|
|
10
10
|
import { ModalRef } from '@masterteam/components/dialog';
|
|
11
11
|
import { ModalService } from '@masterteam/components/modal';
|
|
12
|
+
import { TreeNode, TreeActionEvent } from '@masterteam/components/tree';
|
|
12
13
|
import * as rxjs from 'rxjs';
|
|
13
14
|
import { StateContext } from '@ngxs/store';
|
|
14
15
|
|
|
@@ -312,7 +313,7 @@ declare class TopbarDelegationMenu {
|
|
|
312
313
|
protected readonly hasCandidates: _angular_core.Signal<boolean>;
|
|
313
314
|
protected readonly onBehalfOf: _angular_core.Signal<_masterteam_delegations.DelegationParty | null>;
|
|
314
315
|
protected readonly executedBy: _angular_core.Signal<_masterteam_delegations.DelegationParty | null>;
|
|
315
|
-
protected readonly mode: _angular_core.Signal<"
|
|
316
|
+
protected readonly mode: _angular_core.Signal<"active" | "candidates" | "hidden">;
|
|
316
317
|
protected formatScopeSummary(summary: DelegationRow['scopeSummary']): string;
|
|
317
318
|
togglePopover(event: Event): void;
|
|
318
319
|
start(row: DelegationRow, event: MouseEvent): void;
|
|
@@ -419,6 +420,7 @@ declare class DelegationsList implements OnInit {
|
|
|
419
420
|
readonly assignedEmptyStateKey: _angular_core.InputSignal<string>;
|
|
420
421
|
readonly assignedStatus: _angular_core.InputSignal<DelegationEffectiveStatus | null>;
|
|
421
422
|
private readonly facade;
|
|
423
|
+
private readonly location;
|
|
422
424
|
private readonly modal;
|
|
423
425
|
private readonly transloco;
|
|
424
426
|
protected readonly breadcrumbItems: _angular_core.WritableSignal<({
|
|
@@ -441,6 +443,7 @@ declare class DelegationsList implements OnInit {
|
|
|
441
443
|
label: string;
|
|
442
444
|
}[]>;
|
|
443
445
|
protected readonly isLoading: _angular_core.Signal<boolean>;
|
|
446
|
+
protected readonly isLoadingScopeOptions: _angular_core.Signal<boolean>;
|
|
444
447
|
protected readonly scopeOptions: _angular_core.Signal<_masterteam_delegations.DelegationScopeOptions | null>;
|
|
445
448
|
protected readonly rows: _angular_core.Signal<DelegationRow[]>;
|
|
446
449
|
protected readonly emptyStateKey: _angular_core.Signal<string>;
|
|
@@ -458,6 +461,7 @@ declare class DelegationsList implements OnInit {
|
|
|
458
461
|
private readonly weekdayKeys;
|
|
459
462
|
ngOnInit(): void;
|
|
460
463
|
protected switchTab(tab: DelegationTab): void;
|
|
464
|
+
protected goBack(): void;
|
|
461
465
|
private loadCurrentTab;
|
|
462
466
|
private reloadCurrentTab;
|
|
463
467
|
protected has(row: DelegationRow, action: DelegationAllowedAction): boolean;
|
|
@@ -603,23 +607,22 @@ declare class ScopePicker {
|
|
|
603
607
|
protected readonly isPreviewing: _angular_core.Signal<boolean>;
|
|
604
608
|
protected readonly errorOptions: _angular_core.Signal<string | null>;
|
|
605
609
|
protected readonly groups: _angular_core.Signal<DelegationGrantableHierarchyGroup[]>;
|
|
610
|
+
protected readonly activeLang: _angular_core.Signal<string>;
|
|
606
611
|
/** Selected grant keys for O(1) checkbox state. */
|
|
607
612
|
protected readonly selectedKeys: _angular_core.Signal<Set<string>>;
|
|
608
|
-
|
|
613
|
+
protected readonly treeSelection: _angular_core.WritableSignal<TreeNode<any>[] | null>;
|
|
614
|
+
protected readonly treeNodes: _angular_core.Signal<TreeNode<any>[]>;
|
|
615
|
+
protected readonly grantIndex: _angular_core.Signal<Map<string, DelegationGrant>>;
|
|
609
616
|
constructor();
|
|
610
|
-
protected
|
|
611
|
-
protected toggleAccordion(group: DelegationGrantableHierarchyGroup): void;
|
|
612
|
-
protected isSelected(grant: DelegationGrant): boolean;
|
|
613
|
-
protected getGroupLabel(group: DelegationGrantableHierarchyGroup): string;
|
|
614
|
-
protected getTargetLabel(target: DelegationScopeTarget): string;
|
|
615
|
-
protected getActionLabel(grant: DelegationGrant): string;
|
|
616
|
-
protected getTargetActions(targetGroup: DelegationGrantableTargetGroup): DelegationGrant[];
|
|
617
|
+
protected onTreeAction(event: TreeActionEvent): void;
|
|
617
618
|
protected getPreviewSummary(summary: DelegationDisplayValue | undefined): string;
|
|
618
619
|
protected formatDeniedOperation(value?: string | null): string;
|
|
619
620
|
protected formatDeniedTarget(value?: string | null): string;
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
621
|
+
private buildTreeNodes;
|
|
622
|
+
private buildTargetNode;
|
|
623
|
+
private getGroupLabel;
|
|
624
|
+
private getTargetLabel;
|
|
625
|
+
private getActionLabel;
|
|
623
626
|
private currentLanguage;
|
|
624
627
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ScopePicker, never>;
|
|
625
628
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ScopePicker, "mt-scope-picker", never, { "scope": { "alias": "scope"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "delegatorUserId": { "alias": "delegatorUserId"; "required": false; "isSignal": true; }; }, { "scope": "scopeChange"; }, never, never, true, never>;
|