@masterteam/governance 0.0.11 → 0.0.12

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.11",
3
+ "version": "0.0.12",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/governance",
6
6
  "linkDirectory": false,
@@ -20,8 +20,8 @@
20
20
  "tailwindcss": "^4.1.17",
21
21
  "tailwindcss-primeui": "^0.6.1",
22
22
  "@ngxs/store": "^20.1.0",
23
- "@masterteam/forms": "^0.0.62",
24
- "@masterteam/components": "^0.0.131",
23
+ "@masterteam/components": "^0.0.134",
24
+ "@masterteam/forms": "^0.0.63",
25
25
  "@masterteam/icons": "^0.0.14"
26
26
  },
27
27
  "sideEffects": false,
@@ -1,5 +1,5 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { OnDestroy, TemplateRef, OnInit } from '@angular/core';
2
+ import { OnInit, OnDestroy, 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';
@@ -330,13 +330,15 @@ declare class GovernanceState extends CrudStateBase<GovernanceRule, GovernanceSt
330
330
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<GovernanceState>;
331
331
  }
332
332
 
333
- declare class GovernanceRulesList implements OnDestroy {
333
+ declare class GovernanceRulesList implements OnInit, OnDestroy {
334
334
  typeCol: _angular_core.Signal<TemplateRef<any>>;
335
335
  scopeCol: _angular_core.Signal<TemplateRef<any>>;
336
+ whenCol: _angular_core.Signal<TemplateRef<any>>;
336
337
  priorityCol: _angular_core.Signal<TemplateRef<any>>;
337
338
  private readonly facade;
338
339
  readonly modal: ModalService;
339
340
  private readonly translocoService;
341
+ private readonly ruleTypes;
340
342
  breadcrumbItems: _angular_core.WritableSignal<({
341
343
  label: string;
342
344
  icon: string;
@@ -351,6 +353,10 @@ declare class GovernanceRulesList implements OnDestroy {
351
353
  routerLink?: undefined;
352
354
  })[]>;
353
355
  rules: _angular_core.Signal<GovernanceRule[]>;
356
+ readonly ruleTypeOptions: _angular_core.Signal<{
357
+ label: string;
358
+ value: string;
359
+ }[]>;
354
360
  tabs: _angular_core.WritableSignal<{
355
361
  label: string;
356
362
  value: string;
@@ -364,19 +370,24 @@ declare class GovernanceRulesList implements OnDestroy {
364
370
  private allRules;
365
371
  private activeRules;
366
372
  private inactiveRules;
373
+ ngOnInit(): void;
367
374
  ngOnDestroy(): void;
368
375
  openRuleDialog(rule?: GovernanceRule | null): void;
369
376
  onCellChange(event: CellChangeEvent): void;
370
- private getRuleTypeOptions;
377
+ getRuleTypeLabel(ruleTypeKey: string): string;
371
378
  getRuleTypeChipClass(ruleTypeKey: string): string;
372
- getScopeIcon(scope: string): string;
379
+ getAppliesToLabel(rule: GovernanceRule): string;
380
+ getAppliesToIcon(rule: GovernanceRule): string;
381
+ getWhenLabel(rule: GovernanceRule): string;
382
+ private isPhaseGateRule;
383
+ private readRuleTypeKey;
373
384
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<GovernanceRulesList, never>;
374
385
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<GovernanceRulesList, "mt-governance-rules-list", never, {}, {}, never, never, true, never>;
375
386
  }
376
387
 
377
388
  type GovernanceRuleAppliesTo = 'level' | 'any-module' | 'specific-module' | 'phase-gate';
378
- type GovernanceRuleActionKey = 'create' | 'update' | 'delete';
379
- type GovernanceRuleRecipeKey = 'require-module' | 'prevent-module' | 'module-max-count' | 'module-min-count' | 'phase-gate-completed' | 'phase-gate-module-required' | 'no-active-request' | 'property-value';
389
+ type GovernanceRuleActionKey = 'create' | 'update' | 'delete' | 'manage-phase-gate' | 'move-phase-gate';
390
+ type GovernanceRuleRecipeKey = 'require-module' | 'prevent-module' | 'module-max-count' | 'module-min-count' | 'phase-gate-completed' | 'phase-gate-module-required' | 'no-active-request' | 'property-value' | 'property-has-value' | 'mandatory-gate-items-completed';
380
391
  interface GovernanceRuleWizardFormValue {
381
392
  key: string;
382
393
  name: Translatable;