@masterteam/governance 0.0.17 → 0.0.19
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/governance",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/governance",
|
|
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.169",
|
|
24
23
|
"@masterteam/icons": "^0.0.15",
|
|
25
|
-
"@masterteam/
|
|
24
|
+
"@masterteam/components": "^0.0.171",
|
|
25
|
+
"@masterteam/forms": "^0.0.78"
|
|
26
26
|
},
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"exports": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { OnInit,
|
|
2
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
3
3
|
import { TableAction, ColumnDef, CellChangeEvent } from '@masterteam/components/table';
|
|
4
4
|
import { ModalService } from '@masterteam/components/modal';
|
|
5
5
|
import * as _masterteam_governance from '@masterteam/governance';
|
|
@@ -122,7 +122,7 @@ interface GovernanceViolationError {
|
|
|
122
122
|
violations: GovernanceViolation[];
|
|
123
123
|
}
|
|
124
124
|
interface GovernanceModule {
|
|
125
|
-
id: string;
|
|
125
|
+
id: number | string;
|
|
126
126
|
key: string;
|
|
127
127
|
name: Translatable;
|
|
128
128
|
isActive: boolean;
|
|
@@ -147,6 +147,7 @@ interface GovernanceRequestSchema {
|
|
|
147
147
|
interface GovernanceProperty {
|
|
148
148
|
id: number;
|
|
149
149
|
key: string;
|
|
150
|
+
normalizedKey?: string;
|
|
150
151
|
name: Translatable;
|
|
151
152
|
}
|
|
152
153
|
interface GovernanceStateModel extends LoadingStateShape<GovernanceActionKey> {
|
|
@@ -303,6 +304,16 @@ interface Response<T> {
|
|
|
303
304
|
cacheSession?: string;
|
|
304
305
|
}
|
|
305
306
|
|
|
307
|
+
interface GovernanceCatalogPropertyDto {
|
|
308
|
+
id: number;
|
|
309
|
+
key?: string | null;
|
|
310
|
+
normalizedKey?: string | null;
|
|
311
|
+
label?: string | null;
|
|
312
|
+
name?: Translatable | string | null;
|
|
313
|
+
}
|
|
314
|
+
interface GovernancePropertyCatalogResponse {
|
|
315
|
+
properties?: GovernanceCatalogPropertyDto[] | null;
|
|
316
|
+
}
|
|
306
317
|
declare class GovernanceState extends CrudStateBase<GovernanceRule, GovernanceStateModel, GovernanceActionKey> {
|
|
307
318
|
private http;
|
|
308
319
|
static getLevelId(state: GovernanceStateModel): number | null;
|
|
@@ -326,14 +337,14 @@ declare class GovernanceState extends CrudStateBase<GovernanceRule, GovernanceSt
|
|
|
326
337
|
getModules(ctx: StateContext<GovernanceStateModel>): rxjs.Observable<Response<GovernanceModule[]>> | undefined;
|
|
327
338
|
clearSelectedRule(ctx: StateContext<GovernanceStateModel>): void;
|
|
328
339
|
getRequestSchemas(ctx: StateContext<GovernanceStateModel>, { targetScope, targetModuleKey }: GetRequestSchemas): rxjs.Observable<Response<GovernanceRequestSchema[]>> | undefined;
|
|
329
|
-
getProperties(ctx: StateContext<GovernanceStateModel>, { targetScope, targetModuleKey }: GetProperties): rxjs.Observable<Response<
|
|
340
|
+
getProperties(ctx: StateContext<GovernanceStateModel>, { targetScope, targetModuleKey }: GetProperties): rxjs.Observable<Response<GovernancePropertyCatalogResponse>> | undefined;
|
|
330
341
|
clearRequestSchemas(ctx: StateContext<GovernanceStateModel>): void;
|
|
331
342
|
clearProperties(ctx: StateContext<GovernanceStateModel>): void;
|
|
332
343
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GovernanceState, never>;
|
|
333
344
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<GovernanceState>;
|
|
334
345
|
}
|
|
335
346
|
|
|
336
|
-
declare class GovernanceRulesList implements OnInit
|
|
347
|
+
declare class GovernanceRulesList implements OnInit {
|
|
337
348
|
typeCol: _angular_core.Signal<TemplateRef<any>>;
|
|
338
349
|
scopeCol: _angular_core.Signal<TemplateRef<any>>;
|
|
339
350
|
whenCol: _angular_core.Signal<TemplateRef<any>>;
|
|
@@ -374,7 +385,6 @@ declare class GovernanceRulesList implements OnInit, OnDestroy {
|
|
|
374
385
|
private activeRules;
|
|
375
386
|
private inactiveRules;
|
|
376
387
|
ngOnInit(): void;
|
|
377
|
-
ngOnDestroy(): void;
|
|
378
388
|
openRuleDialog(rule?: GovernanceRule | null): void;
|
|
379
389
|
onCellChange(event: CellChangeEvent): void;
|
|
380
390
|
getRuleTypeLabel(ruleTypeKey: string): string;
|
|
@@ -457,7 +467,7 @@ declare class GovernanceRuleForm implements OnInit {
|
|
|
457
467
|
readonly isLoadingRuleTypes: _angular_core.Signal<boolean>;
|
|
458
468
|
readonly isAddingRule: _angular_core.Signal<boolean>;
|
|
459
469
|
readonly isUpdatingRule: _angular_core.Signal<boolean>;
|
|
460
|
-
readonly modules: _angular_core.Signal<
|
|
470
|
+
readonly modules: _angular_core.Signal<GovernanceModule[]>;
|
|
461
471
|
readonly requestSchemas: _angular_core.Signal<_masterteam_governance.GovernanceRequestSchema[]>;
|
|
462
472
|
readonly properties: _angular_core.Signal<_masterteam_governance.GovernanceProperty[]>;
|
|
463
473
|
readonly wizardFormControl: FormControl<GovernanceRuleWizardFormState>;
|
|
@@ -516,6 +526,7 @@ declare class GovernanceRuleForm implements OnInit {
|
|
|
516
526
|
private setWizardState;
|
|
517
527
|
private resetWizardForm;
|
|
518
528
|
private clearReferenceData;
|
|
529
|
+
private hasModuleOption;
|
|
519
530
|
private saveCreate;
|
|
520
531
|
private saveUpdate;
|
|
521
532
|
private submitLegacyForm;
|