@praxisui/visual-builder 10.0.0-rc.7 → 10.0.0-rc.70

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.
@@ -1,6 +1,7 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, Provider, OnInit, OnDestroy, OnChanges, AfterViewInit, ElementRef, ChangeDetectorRef, SimpleChanges } from '@angular/core';
3
- import { JsonLogicExpression, ComponentDocMeta, ComponentAuthoringManifest, FormLayoutRule, RulePropertySchema, PraxisI18nService } from '@praxisui/core';
1
+ import * as _angular_core from '@angular/core';
2
+ import { EventEmitter, Provider, OnInit, OnDestroy, OnChanges, AfterViewInit, ElementRef, ChangeDetectorRef, SimpleChanges, EnvironmentProviders } from '@angular/core';
3
+ import * as _praxisui_core from '@praxisui/core';
4
+ import { JsonLogicExpression, SemanticDomainCatalogResponse, ComponentDocMeta, ComponentAuthoringManifest, FormLayoutRule, RulePropertySchema, PraxisI18nService, DecisionStageDescriptor, DecisionStageId, DomainCatalogRuleSlotItem, DomainCatalogRuleBindingItem, DecisionInspectorLensId, PraxisRuleViolationDiagnostic, DecisionResourceRuleCatalog, DecisionResourceCapabilitiesContext, ResourceCapabilitySnapshot, ApiEndpoint, ApiUrlEntry, ResolvedDomainRuleSetSummary, ResolvedDomainGovernanceItem, ResourceActionCatalogItem, ResourceSurfaceCatalogItem, RuleLegalBasisDescriptor, PraxisDecisionInspectorConfig } from '@praxisui/core';
4
5
  import { Observable } from 'rxjs';
5
6
  import { MatDialog, MatDialogRef } from '@angular/material/dialog';
6
7
  import { MatSnackBar } from '@angular/material/snack-bar';
@@ -9,6 +10,7 @@ import { FormBuilder, FormGroup, FormControl, FormArray } from '@angular/forms';
9
10
  import { MatSelectChange } from '@angular/material/select';
10
11
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
11
12
  import { MatButtonToggleChange } from '@angular/material/button-toggle';
13
+ import { ErrorStateMatcher } from '@angular/material/core';
12
14
  import { MatChipInputEvent } from '@angular/material/chips';
13
15
 
14
16
  /**
@@ -513,7 +515,18 @@ interface ImportOptions {
513
515
  */
514
516
  interface RuleBuilderConfig {
515
517
  /** Available field schemas */
516
- fieldSchemas: Record<string, unknown>;
518
+ fieldSchemas?: Record<string, unknown>;
519
+ /** Optional semantic domain catalog (/schemas/domain) to materialize 5-root ontological schemas automatically */
520
+ domainCatalog?: SemanticDomainCatalogResponse;
521
+ /** Options when materializing schemas from `domainCatalog` */
522
+ domainCatalogOptions?: {
523
+ resourceKey?: string;
524
+ includeDraft?: boolean;
525
+ includeCurrent?: boolean;
526
+ includeReferencedFactPaths?: boolean;
527
+ };
528
+ /** Allowed ontological root prefixes (e.g. ['draft', 'current', 'vaga', 'neighborhood', 'context']) */
529
+ allowedOntologicalRoots?: string[];
517
530
  /** Optional map of available targets by type (fields, sections, actions) */
518
531
  targetSchemas?: {
519
532
  fields?: Record<string, unknown>;
@@ -640,8 +653,8 @@ declare class PraxisVisualBuilder {
640
653
  onConditionChanged(condition: JsonLogicExpression | null): void;
641
654
  onExportRequested(options: any): void;
642
655
  onImportRequested(options: any): void;
643
- static ɵfac: i0.ɵɵFactoryDeclaration<PraxisVisualBuilder, never>;
644
- static ɵcmp: i0.ɵɵComponentDeclaration<PraxisVisualBuilder, "praxis-visual-builder", never, { "mode": { "alias": "mode"; "required": false; }; "config": { "alias": "config"; "required": false; }; "initialRules": { "alias": "initialRules"; "required": false; }; "initialCondition": { "alias": "initialCondition"; "required": false; }; }, { "rulesChanged": "rulesChanged"; "conditionChanged": "conditionChanged"; "exportRequested": "exportRequested"; "importRequested": "importRequested"; }, never, never, true, never>;
656
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisVisualBuilder, never>;
657
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisVisualBuilder, "praxis-visual-builder", never, { "mode": { "alias": "mode"; "required": false; }; "config": { "alias": "config"; "required": false; }; "initialRules": { "alias": "initialRules"; "required": false; }; "initialCondition": { "alias": "initialCondition"; "required": false; }; }, { "rulesChanged": "rulesChanged"; "conditionChanged": "conditionChanged"; "exportRequested": "exportRequested"; "importRequested": "importRequested"; }, never, never, true, never>;
645
658
  }
646
659
 
647
660
  /** Metadata for Praxis Visual Builder component */
@@ -926,6 +939,16 @@ interface ArrayCollectionValidationRule {
926
939
  message: string;
927
940
  }
928
941
 
942
+ interface SemanticDomainFieldSchemaOptions {
943
+ /** Filtra nós pelo resourceKey quando o catálogo é agrupado */
944
+ resourceKey?: string;
945
+ /** Quando true (default: true), inclui os campos da raiz `draft.<fieldName>` */
946
+ includeDraft?: boolean;
947
+ /** Quando true (default: true), inclui os campos espelhados na raiz `current.<fieldName>` */
948
+ includeCurrent?: boolean;
949
+ /** Quando true (default: true), inclui caminhos referenciados das raízes `<conceito>`, `neighborhood` e `context` */
950
+ includeReferencedFactPaths?: boolean;
951
+ }
929
952
  declare class FieldSchemaService {
930
953
  private readonly _fieldSchemas;
931
954
  private readonly _context;
@@ -984,6 +1007,22 @@ declare class FieldSchemaService {
984
1007
  * Create field schema from form metadata
985
1008
  */
986
1009
  createFromFormMetadata(formFields: any[]): Record<string, FieldSchema>;
1010
+ /**
1011
+ * Materializa `FieldSchema`s categorizados pelas 5 raízes ontológicas canônicas
1012
+ * (`draft`, `current`, `<conceito>` 1-hop, `neighborhood`, `context`) diretamente a partir
1013
+ * do catálogo semântico `/schemas/domain`.
1014
+ */
1015
+ createFromSemanticDomainCatalog(catalog: SemanticDomainCatalogResponse | null | undefined, options?: SemanticDomainFieldSchemaOptions): Record<string, FieldSchema>;
1016
+ /**
1017
+ * Converte o catálogo semântico `/schemas/domain` em `ContextVariable[]` prontos para o
1018
+ * `FieldSchemaContext` do Visual Builder.
1019
+ */
1020
+ createContextVariablesFromSemanticDomainCatalog(catalog: SemanticDomainCatalogResponse | null | undefined, options?: SemanticDomainFieldSchemaOptions): ContextVariable[];
1021
+ /**
1022
+ * Extrai as raízes ontológicas permitidas (`ontologicalFactRoots`) do conceito ou dos
1023
+ * `policy_hint`s publicados no catálogo `/schemas/domain`.
1024
+ */
1025
+ extractAllowedOntologicalRoots(catalog: SemanticDomainCatalogResponse | null | undefined, resourceKey?: string): string[];
987
1026
  /**
988
1027
  * Get context variables
989
1028
  */
@@ -1002,8 +1041,9 @@ declare class FieldSchemaService {
1002
1041
  private mapJsonSchemaType;
1003
1042
  private mapFormFieldType;
1004
1043
  private extractFormatFromField;
1005
- static ɵfac: i0.ɵɵFactoryDeclaration<FieldSchemaService, never>;
1006
- static ɵprov: i0.ɵɵInjectableDeclaration<FieldSchemaService>;
1044
+ private inferOntologicalFactType;
1045
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FieldSchemaService, never>;
1046
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<FieldSchemaService>;
1007
1047
  }
1008
1048
  interface EnhancedFieldSchema extends FieldSchema {
1009
1049
  operators: string[];
@@ -1146,8 +1186,8 @@ declare class RuleNodeRegistryService {
1146
1186
  */
1147
1187
  getChildren$(nodeId: string): Observable<RuleNode[]>;
1148
1188
  private notifyChange;
1149
- static ɵfac: i0.ɵɵFactoryDeclaration<RuleNodeRegistryService, never>;
1150
- static ɵprov: i0.ɵɵInjectableDeclaration<RuleNodeRegistryService>;
1189
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RuleNodeRegistryService, never>;
1190
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<RuleNodeRegistryService>;
1151
1191
  }
1152
1192
  /**
1153
1193
  * Tree structure for representing node hierarchies
@@ -1219,6 +1259,10 @@ declare class RuleBuilderService {
1219
1259
  * Initialize the rule builder with configuration
1220
1260
  */
1221
1261
  initialize(config: RuleBuilderConfig): void;
1262
+ /**
1263
+ * Update the rule builder configuration without resetting the rule graph
1264
+ */
1265
+ updateConfig(config: Partial<RuleBuilderConfig>): void;
1222
1266
  /**
1223
1267
  * Get current state
1224
1268
  */
@@ -1242,7 +1286,12 @@ declare class RuleBuilderService {
1242
1286
  /**
1243
1287
  * Update an existing rule node
1244
1288
  */
1245
- updateNode(nodeId: string, updates: Partial<RuleNode>): void;
1289
+ updateNode(nodeId: string, updates: Partial<RuleNode>, conditionState?: RuleBuilderState): void;
1290
+ private reachableConditionNodes;
1291
+ /** A condition can be referenced by another rule; never delete that rule's graph. */
1292
+ private ownedConditionNodes;
1293
+ /** Atomically replaces this property's condition graph; shared conditions remain available to their remaining owners. */
1294
+ private projectConditionGraph;
1246
1295
  /**
1247
1296
  * Remove a rule node (and its descendants)
1248
1297
  */
@@ -1251,6 +1300,7 @@ declare class RuleBuilderService {
1251
1300
  * Select a rule node
1252
1301
  */
1253
1302
  selectNode(nodeId?: string): void;
1303
+ private resolveSnapshotSelection;
1254
1304
  /**
1255
1305
  * Undo last change
1256
1306
  */
@@ -1278,6 +1328,7 @@ declare class RuleBuilderService {
1278
1328
  buildConditionExpressionFromGraph(nodes: Record<string, RuleNode>, rootNodes: string[]): JsonLogicExpression | null;
1279
1329
  private saveSnapshot;
1280
1330
  private generateNodeLabel;
1331
+ private createDefaultNodeConfig;
1281
1332
  private withRuleTimestamps;
1282
1333
  private isPropertyRuleNode;
1283
1334
  private containsPropertyRule;
@@ -1323,14 +1374,16 @@ declare class RuleBuilderService {
1323
1374
  private validateFieldConditionNode;
1324
1375
  private validateBooleanGroupNode;
1325
1376
  private validatePropertyRuleNode;
1377
+ private validateOntologicalFieldPath;
1378
+ private extractConditionVarPaths;
1326
1379
  private validateExpressionNode;
1327
1380
  private addValidationError;
1328
1381
  private exportToTypeScript;
1329
1382
  private exportToFormConfig;
1330
1383
  private normalizeSpecJson;
1331
1384
  private isBuilderState;
1332
- static ɵfac: i0.ɵɵFactoryDeclaration<RuleBuilderService, never>;
1333
- static ɵprov: i0.ɵɵInjectableDeclaration<RuleBuilderService>;
1385
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RuleBuilderService, never>;
1386
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<RuleBuilderService>;
1334
1387
  }
1335
1388
 
1336
1389
  interface ExportFormat {
@@ -1490,8 +1543,8 @@ declare class ExportIntegrationService {
1490
1543
  private nodeToXml;
1491
1544
  private escapeXml;
1492
1545
  private generateOpenApiSchemas;
1493
- static ɵfac: i0.ɵɵFactoryDeclaration<ExportIntegrationService, never>;
1494
- static ɵprov: i0.ɵɵInjectableDeclaration<ExportIntegrationService>;
1546
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ExportIntegrationService, never>;
1547
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ExportIntegrationService>;
1495
1548
  }
1496
1549
 
1497
1550
  interface WebhookConfig {
@@ -1632,8 +1685,8 @@ declare class WebhookIntegrationService {
1632
1685
  private processRetries;
1633
1686
  private updateStats;
1634
1687
  private generateDeliveryId;
1635
- static ɵfac: i0.ɵɵFactoryDeclaration<WebhookIntegrationService, never>;
1636
- static ɵprov: i0.ɵɵInjectableDeclaration<WebhookIntegrationService>;
1688
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<WebhookIntegrationService, never>;
1689
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<WebhookIntegrationService>;
1637
1690
  }
1638
1691
 
1639
1692
  /**
@@ -1776,8 +1829,8 @@ declare class RuleTemplateService {
1776
1829
  private getCategoryDescription;
1777
1830
  private getDefaultIconForCategory;
1778
1831
  private incrementVersion;
1779
- static ɵfac: i0.ɵɵFactoryDeclaration<RuleTemplateService, never>;
1780
- static ɵprov: i0.ɵɵInjectableDeclaration<RuleTemplateService>;
1832
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RuleTemplateService, never>;
1833
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<RuleTemplateService>;
1781
1834
  }
1782
1835
 
1783
1836
  /**
@@ -1847,6 +1900,8 @@ interface ValidationConfig {
1847
1900
  maxComplexity?: number;
1848
1901
  /** Enable performance warnings */
1849
1902
  enablePerformanceWarnings?: boolean;
1903
+ /** Allowed ontological roots from /schemas/domain (e.g. ['draft', 'current', 'vinculo', 'neighborhood', 'context']) */
1904
+ allowedOntologicalRoots?: string[];
1850
1905
  /** Custom validation rules */
1851
1906
  customRules?: ValidationRule[];
1852
1907
  }
@@ -1897,14 +1952,15 @@ declare class RuleValidationService {
1897
1952
  private validatePerformance;
1898
1953
  private validateNodeByType;
1899
1954
  private validateFieldCondition;
1955
+ private validateOntologicalSemantics;
1900
1956
  private validateBooleanGroup;
1901
1957
  private validateCardinality;
1902
1958
  private getRequiredChildrenCount;
1903
1959
  private collectAllNodes;
1904
1960
  private calculateMetrics;
1905
1961
  private getNodeComplexity;
1906
- static ɵfac: i0.ɵɵFactoryDeclaration<RuleValidationService, never>;
1907
- static ɵprov: i0.ɵɵInjectableDeclaration<RuleValidationService>;
1962
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RuleValidationService, never>;
1963
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<RuleValidationService>;
1908
1964
  }
1909
1965
 
1910
1966
  /**
@@ -2007,8 +2063,8 @@ declare class ContextManagementService {
2007
2063
  private isValidPath;
2008
2064
  private inferType;
2009
2065
  private estimateSize;
2010
- static ɵfac: i0.ɵɵFactoryDeclaration<ContextManagementService, never>;
2011
- static ɵprov: i0.ɵɵInjectableDeclaration<ContextManagementService>;
2066
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ContextManagementService, never>;
2067
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<ContextManagementService>;
2012
2068
  }
2013
2069
 
2014
2070
  /**
@@ -2236,6 +2292,7 @@ declare class RuleEditorComponent implements OnInit, OnDestroy, OnChanges, After
2236
2292
  fileInput: ElementRef<HTMLInputElement>;
2237
2293
  private destroy$;
2238
2294
  private initialized;
2295
+ private synchronizingInput;
2239
2296
  private lastInitialConditionSignature;
2240
2297
  currentState: RuleBuilderState | null;
2241
2298
  fieldSchemas: Record<string, FieldSchema>;
@@ -2274,7 +2331,7 @@ declare class RuleEditorComponent implements OnInit, OnDestroy, OnChanges, After
2274
2331
  }): void;
2275
2332
  removeConditionNode(nodeId: string): void;
2276
2333
  duplicateNode(nodeId: string): void;
2277
- onRuleUpdated(config: RuleNodeConfigExtended): void;
2334
+ onRuleUpdated(config: RuleNodeConfigExtended, conditionState?: RuleBuilderState): void;
2278
2335
  removeNode(nodeId: string): void;
2279
2336
  isPropertyRule(node: RuleNode | null): boolean;
2280
2337
  openExportDialog(): void;
@@ -2283,13 +2340,20 @@ declare class RuleEditorComponent implements OnInit, OnDestroy, OnChanges, After
2283
2340
  getRuleCount(): number;
2284
2341
  t(key: string, fallback: string): string;
2285
2342
  private setupSubscriptions;
2343
+ private emitCurrentState;
2344
+ /** Input replacement uses the existing importer/history owner; echoes never reset its history. */
2345
+ private loadInitialRulesIfNeeded;
2346
+ private clearInputImportError;
2347
+ private stableInputSignature;
2286
2348
  private loadInitialConditionIfNeeded;
2287
2349
  private validateAiResponse;
2350
+ private resolveConfigFieldSchemas;
2351
+ private resolveAllowedOntologicalRoots;
2288
2352
  private buildPropertyRuleLabel;
2289
2353
  private stripTargetPrefix;
2290
2354
  private normalizeRuleConfig;
2291
- static ɵfac: i0.ɵɵFactoryDeclaration<RuleEditorComponent, [null, null, null, null, null, null, { optional: true; }]>;
2292
- static ɵcmp: i0.ɵɵComponentDeclaration<RuleEditorComponent, "praxis-rule-editor", never, { "embedded": { "alias": "embedded"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "config": { "alias": "config"; "required": false; }; "initialRules": { "alias": "initialRules"; "required": false; }; "initialCondition": { "alias": "initialCondition"; "required": false; }; }, { "stateChanged": "stateChanged"; "save": "save"; "rulesChanged": "rulesChanged"; "conditionChanged": "conditionChanged"; "exportRequested": "exportRequested"; "importRequested": "importRequested"; }, never, never, true, never>;
2355
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RuleEditorComponent, [null, null, null, null, null, null, { optional: true; }]>;
2356
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<RuleEditorComponent, "praxis-rule-editor", never, { "embedded": { "alias": "embedded"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "config": { "alias": "config"; "required": false; }; "initialRules": { "alias": "initialRules"; "required": false; }; "initialCondition": { "alias": "initialCondition"; "required": false; }; }, { "stateChanged": "stateChanged"; "save": "save"; "rulesChanged": "rulesChanged"; "conditionChanged": "conditionChanged"; "exportRequested": "exportRequested"; "importRequested": "importRequested"; }, never, never, true, never>;
2293
2357
  }
2294
2358
 
2295
2359
  declare class RuleCanvasComponent implements OnInit, OnDestroy {
@@ -2356,8 +2420,8 @@ declare class RuleCanvasComponent implements OnInit, OnDestroy {
2356
2420
  private isAllowedConditionType;
2357
2421
  private isDescendantOf;
2358
2422
  private t;
2359
- static ɵfac: i0.ɵɵFactoryDeclaration<RuleCanvasComponent, [{ optional: true; }]>;
2360
- static ɵcmp: i0.ɵɵComponentDeclaration<RuleCanvasComponent, "praxis-rule-canvas", never, { "conditionOnly": { "alias": "conditionOnly"; "required": false; }; "state": { "alias": "state"; "required": false; }; "fieldSchemas": { "alias": "fieldSchemas"; "required": false; }; "validationErrors": { "alias": "validationErrors"; "required": false; }; }, { "nodeSelected": "nodeSelected"; "nodeAdded": "nodeAdded"; "nodeUpdated": "nodeUpdated"; "nodeRemoved": "nodeRemoved"; }, never, never, true, never>;
2423
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RuleCanvasComponent, [{ optional: true; }]>;
2424
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<RuleCanvasComponent, "praxis-rule-canvas", never, { "conditionOnly": { "alias": "conditionOnly"; "required": false; }; "state": { "alias": "state"; "required": false; }; "fieldSchemas": { "alias": "fieldSchemas"; "required": false; }; "validationErrors": { "alias": "validationErrors"; "required": false; }; }, { "nodeSelected": "nodeSelected"; "nodeAdded": "nodeAdded"; "nodeUpdated": "nodeUpdated"; "nodeRemoved": "nodeRemoved"; }, never, never, true, never>;
2361
2425
  }
2362
2426
 
2363
2427
  declare class RuleNodeComponent {
@@ -2366,15 +2430,22 @@ declare class RuleNodeComponent {
2366
2430
  nodes: Record<string, RuleNode>;
2367
2431
  fieldSchemas: Record<string, FieldSchema>;
2368
2432
  level: number;
2433
+ conditionOnly: boolean;
2369
2434
  isSelected: boolean;
2370
2435
  validationErrors: ValidationError$1[];
2371
2436
  nodeClicked: EventEmitter<void>;
2437
+ nodeSelectedById: EventEmitter<string>;
2372
2438
  nodeUpdated: EventEmitter<{
2373
2439
  nodeId: string;
2374
2440
  updates: Partial<RuleNode>;
2375
2441
  }>;
2376
2442
  nodeDeleted: EventEmitter<void>;
2443
+ nodeDeletedById: EventEmitter<string>;
2377
2444
  childAdded: EventEmitter<RuleNodeType>;
2445
+ childAddedToNode: EventEmitter<{
2446
+ parentId: string;
2447
+ type: RuleNodeType;
2448
+ }>;
2378
2449
  childMoved: EventEmitter<CdkDragDrop<string[], string[], any>>;
2379
2450
  get hasValidationErrors(): boolean;
2380
2451
  get ownValidationErrors(): ValidationError$1[];
@@ -2416,21 +2487,28 @@ declare class RuleNodeComponent {
2416
2487
  onConditionalValidatorChanged(config: ConditionalValidatorConfig): void;
2417
2488
  onCollectionValidationChanged(config: CollectionValidatorConfig): void;
2418
2489
  onChildClicked(childId: string): void;
2490
+ onChildSelectedById(nodeId: string): void;
2419
2491
  onChildUpdated(event: {
2420
2492
  nodeId: string;
2421
2493
  updates: Partial<RuleNode>;
2422
2494
  }): void;
2423
2495
  onChildDeleted(childId: string): void;
2424
- onChildAdded(event: RuleNodeType): void;
2496
+ onChildDeletedById(nodeId: string): void;
2497
+ onChildAdded(parentId: string, type: RuleNodeType): void;
2498
+ onChildAddedToNode(event: {
2499
+ parentId: string;
2500
+ type: RuleNodeType;
2501
+ }): void;
2425
2502
  onChildMoved(event: CdkDragDrop<string[]>): void;
2426
2503
  onChildDrop(event: CdkDragDrop<string[]>): void;
2427
2504
  private formatNodeType;
2428
- static ɵfac: i0.ɵɵFactoryDeclaration<RuleNodeComponent, never>;
2429
- static ɵcmp: i0.ɵɵComponentDeclaration<RuleNodeComponent, "praxis-rule-node", never, { "node": { "alias": "node"; "required": false; }; "nodes": { "alias": "nodes"; "required": false; }; "fieldSchemas": { "alias": "fieldSchemas"; "required": false; }; "level": { "alias": "level"; "required": false; }; "isSelected": { "alias": "isSelected"; "required": false; }; "validationErrors": { "alias": "validationErrors"; "required": false; }; }, { "nodeClicked": "nodeClicked"; "nodeUpdated": "nodeUpdated"; "nodeDeleted": "nodeDeleted"; "childAdded": "childAdded"; "childMoved": "childMoved"; }, never, never, true, never>;
2505
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RuleNodeComponent, never>;
2506
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<RuleNodeComponent, "praxis-rule-node", never, { "node": { "alias": "node"; "required": false; }; "nodes": { "alias": "nodes"; "required": false; }; "fieldSchemas": { "alias": "fieldSchemas"; "required": false; }; "level": { "alias": "level"; "required": false; }; "conditionOnly": { "alias": "conditionOnly"; "required": false; }; "isSelected": { "alias": "isSelected"; "required": false; }; "validationErrors": { "alias": "validationErrors"; "required": false; }; }, { "nodeClicked": "nodeClicked"; "nodeSelectedById": "nodeSelectedById"; "nodeUpdated": "nodeUpdated"; "nodeDeleted": "nodeDeleted"; "nodeDeletedById": "nodeDeletedById"; "childAdded": "childAdded"; "childAddedToNode": "childAddedToNode"; "childMoved": "childMoved"; }, never, never, true, never>;
2430
2507
  }
2431
2508
 
2432
2509
  declare class FieldConditionEditorComponent implements OnInit, OnChanges {
2433
2510
  private fb;
2511
+ private readonly i18n?;
2434
2512
  config: FieldConditionConfig | null;
2435
2513
  fieldSchemas: Record<string, FieldSchema>;
2436
2514
  configChanged: EventEmitter<FieldConditionConfig>;
@@ -2452,7 +2530,7 @@ declare class FieldConditionEditorComponent implements OnInit, OnChanges {
2452
2530
  selectedOperator: string | null;
2453
2531
  valueType: string;
2454
2532
  availableOperators: string[];
2455
- constructor(fb: FormBuilder);
2533
+ constructor(fb: FormBuilder, i18n?: PraxisI18nService | undefined);
2456
2534
  focusSearchInput(): void;
2457
2535
  clearSearch(event: Event): void;
2458
2536
  ngOnInit(): void;
@@ -2491,8 +2569,8 @@ declare class FieldConditionEditorComponent implements OnInit, OnChanges {
2491
2569
  getValidationErrors(): string[];
2492
2570
  isValid(): boolean;
2493
2571
  hasFieldOptions(): boolean;
2494
- static ɵfac: i0.ɵɵFactoryDeclaration<FieldConditionEditorComponent, never>;
2495
- static ɵcmp: i0.ɵɵComponentDeclaration<FieldConditionEditorComponent, "praxis-field-condition-editor", never, { "config": { "alias": "config"; "required": false; }; "fieldSchemas": { "alias": "fieldSchemas"; "required": false; }; }, { "configChanged": "configChanged"; }, never, never, true, never>;
2572
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FieldConditionEditorComponent, [null, { optional: true; }]>;
2573
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FieldConditionEditorComponent, "praxis-field-condition-editor", never, { "config": { "alias": "config"; "required": false; }; "fieldSchemas": { "alias": "fieldSchemas"; "required": false; }; }, { "configChanged": "configChanged"; }, never, never, true, never>;
2496
2574
  }
2497
2575
 
2498
2576
  declare class ConditionalValidatorEditorComponent implements OnInit, OnChanges, OnDestroy {
@@ -2548,8 +2626,8 @@ declare class ConditionalValidatorEditorComponent implements OnInit, OnChanges,
2548
2626
  private mapValidatorTypeToRuleType;
2549
2627
  private refreshValidatorTypeLabels;
2550
2628
  t(key: string, fallback: string): string;
2551
- static ɵfac: i0.ɵɵFactoryDeclaration<ConditionalValidatorEditorComponent, [null, { optional: true; }]>;
2552
- static ɵcmp: i0.ɵɵComponentDeclaration<ConditionalValidatorEditorComponent, "praxis-conditional-validator-editor", never, { "config": { "alias": "config"; "required": false; }; "fieldSchemas": { "alias": "fieldSchemas"; "required": false; }; }, { "configChanged": "configChanged"; }, never, never, true, never>;
2629
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConditionalValidatorEditorComponent, [null, { optional: true; }]>;
2630
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ConditionalValidatorEditorComponent, "praxis-conditional-validator-editor", never, { "config": { "alias": "config"; "required": false; }; "fieldSchemas": { "alias": "fieldSchemas"; "required": false; }; }, { "configChanged": "configChanged"; }, never, never, true, never>;
2553
2631
  }
2554
2632
 
2555
2633
  declare class CollectionValidatorEditorComponent implements OnInit, OnChanges {
@@ -2600,12 +2678,13 @@ declare class CollectionValidatorEditorComponent implements OnInit, OnChanges {
2600
2678
  isValid(): boolean;
2601
2679
  private mapRuleTypeToValidatorType;
2602
2680
  private mapValidatorTypeToRuleType;
2603
- static ɵfac: i0.ɵɵFactoryDeclaration<CollectionValidatorEditorComponent, never>;
2604
- static ɵcmp: i0.ɵɵComponentDeclaration<CollectionValidatorEditorComponent, "praxis-collection-validator-editor", never, { "config": { "alias": "config"; "required": false; }; "fieldSchemas": { "alias": "fieldSchemas"; "required": false; }; }, { "configChanged": "configChanged"; }, never, never, true, never>;
2681
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<CollectionValidatorEditorComponent, never>;
2682
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<CollectionValidatorEditorComponent, "praxis-collection-validator-editor", never, { "config": { "alias": "config"; "required": false; }; "fieldSchemas": { "alias": "fieldSchemas"; "required": false; }; }, { "configChanged": "configChanged"; }, never, never, true, never>;
2605
2683
  }
2606
2684
 
2607
- declare class MetadataEditorComponent implements OnInit, OnChanges {
2685
+ declare class MetadataEditorComponent implements OnInit, OnChanges, OnDestroy {
2608
2686
  private fb;
2687
+ private cdr?;
2609
2688
  selectedNode: RuleNode | null;
2610
2689
  metadataUpdated: EventEmitter<SpecificationMetadata>;
2611
2690
  private destroy$;
@@ -2613,6 +2692,7 @@ declare class MetadataEditorComponent implements OnInit, OnChanges {
2613
2692
  metadataForm: FormGroup;
2614
2693
  activeTabIndex: number;
2615
2694
  hasUnsavedChanges: boolean;
2695
+ readonly jsonControlErrorMatcher: ErrorStateMatcher;
2616
2696
  availableTags: string[];
2617
2697
  filteredTags: Observable<string[]>;
2618
2698
  availableIcons: {
@@ -2622,7 +2702,7 @@ declare class MetadataEditorComponent implements OnInit, OnChanges {
2622
2702
  get customProperties(): FormArray;
2623
2703
  get documentationLinks(): FormArray;
2624
2704
  get enableConditionalMetadata(): boolean;
2625
- constructor(fb: FormBuilder);
2705
+ constructor(fb: FormBuilder, cdr?: ChangeDetectorRef | undefined);
2626
2706
  ngOnInit(): void;
2627
2707
  ngOnChanges(changes: SimpleChanges): void;
2628
2708
  ngOnDestroy(): void;
@@ -2654,8 +2734,8 @@ declare class MetadataEditorComponent implements OnInit, OnChanges {
2654
2734
  private stringifyJsonEditorValue;
2655
2735
  private parseJsonEditorObject;
2656
2736
  private static readonly invalidJsonEditorValue;
2657
- static ɵfac: i0.ɵɵFactoryDeclaration<MetadataEditorComponent, never>;
2658
- static ɵcmp: i0.ɵɵComponentDeclaration<MetadataEditorComponent, "praxis-metadata-editor", never, { "selectedNode": { "alias": "selectedNode"; "required": false; }; }, { "metadataUpdated": "metadataUpdated"; }, never, never, true, never>;
2737
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<MetadataEditorComponent, [null, { optional: true; }]>;
2738
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<MetadataEditorComponent, "praxis-metadata-editor", never, { "selectedNode": { "alias": "selectedNode"; "required": false; }; }, { "metadataUpdated": "metadataUpdated"; }, never, never, true, never>;
2659
2739
  }
2660
2740
 
2661
2741
  declare class JsonViewerComponent implements OnInit, OnChanges {
@@ -2688,8 +2768,8 @@ declare class JsonViewerComponent implements OnInit, OnChanges {
2688
2768
  toggleLineNumbers(): void;
2689
2769
  toggleWordWrap(): void;
2690
2770
  private syncWordWrapWithMode;
2691
- static ɵfac: i0.ɵɵFactoryDeclaration<JsonViewerComponent, never>;
2692
- static ɵcmp: i0.ɵɵComponentDeclaration<JsonViewerComponent, "praxis-json-viewer", never, { "json": { "alias": "json"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; }, { "jsonChanged": "jsonChanged"; }, never, never, true, never>;
2771
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<JsonViewerComponent, never>;
2772
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<JsonViewerComponent, "praxis-json-viewer", never, { "json": { "alias": "json"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; }, { "jsonChanged": "jsonChanged"; }, never, never, true, never>;
2693
2773
  }
2694
2774
 
2695
2775
  interface ExportDialogData {
@@ -2744,8 +2824,8 @@ declare class ExportDialogComponent implements OnInit {
2744
2824
  copyShareUrl(): void;
2745
2825
  formatFileSize(bytes: number): string;
2746
2826
  onCancel(): void;
2747
- static ɵfac: i0.ɵɵFactoryDeclaration<ExportDialogComponent, never>;
2748
- static ɵcmp: i0.ɵɵComponentDeclaration<ExportDialogComponent, "praxis-export-dialog", never, {}, {}, never, never, true, never>;
2827
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ExportDialogComponent, never>;
2828
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ExportDialogComponent, "praxis-export-dialog", never, {}, {}, never, never, true, never>;
2749
2829
  }
2750
2830
 
2751
2831
  /**
@@ -2762,8 +2842,8 @@ declare class VisualRuleBuilderComponent {
2762
2842
  get nodeCount(): number;
2763
2843
  addSampleNode(): void;
2764
2844
  clearNodes(): void;
2765
- static ɵfac: i0.ɵɵFactoryDeclaration<VisualRuleBuilderComponent, never>;
2766
- static ɵcmp: i0.ɵɵComponentDeclaration<VisualRuleBuilderComponent, "praxis-visual-rule-builder", never, { "fieldSchemas": { "alias": "fieldSchemas"; "required": false; }; "builderState": { "alias": "builderState"; "required": false; }; }, { "stateChanged": "stateChanged"; "selectionChanged": "selectionChanged"; }, never, never, true, never>;
2845
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<VisualRuleBuilderComponent, never>;
2846
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<VisualRuleBuilderComponent, "praxis-visual-rule-builder", never, { "fieldSchemas": { "alias": "fieldSchemas"; "required": false; }; "builderState": { "alias": "builderState"; "required": false; }; }, { "stateChanged": "stateChanged"; "selectionChanged": "selectionChanged"; }, never, never, true, never>;
2767
2847
  }
2768
2848
 
2769
2849
  /**
@@ -2826,8 +2906,8 @@ declare class TemplateGalleryComponent implements OnInit, OnDestroy {
2826
2906
  exportTemplate(template: RuleTemplate): void;
2827
2907
  deleteTemplate(template: RuleTemplate): void;
2828
2908
  private downloadFile;
2829
- static ɵfac: i0.ɵɵFactoryDeclaration<TemplateGalleryComponent, never>;
2830
- static ɵcmp: i0.ɵɵComponentDeclaration<TemplateGalleryComponent, "praxis-template-gallery", never, { "availableFields": { "alias": "availableFields"; "required": false; }; }, { "templateApplied": "templateApplied"; "templateCreated": "templateCreated"; "templateDeleted": "templateDeleted"; }, never, never, true, never>;
2909
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TemplateGalleryComponent, never>;
2910
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TemplateGalleryComponent, "praxis-template-gallery", never, { "availableFields": { "alias": "availableFields"; "required": false; }; }, { "templateApplied": "templateApplied"; "templateCreated": "templateCreated"; "templateDeleted": "templateDeleted"; }, never, never, true, never>;
2831
2911
  }
2832
2912
 
2833
2913
  interface TemplateEditorDialogData {
@@ -2885,8 +2965,8 @@ declare class TemplateEditorDialogComponent implements OnInit {
2885
2965
  deleteTemplate(): void;
2886
2966
  cancel(): void;
2887
2967
  private calculateComplexity;
2888
- static ɵfac: i0.ɵɵFactoryDeclaration<TemplateEditorDialogComponent, never>;
2889
- static ɵcmp: i0.ɵɵComponentDeclaration<TemplateEditorDialogComponent, "praxis-template-editor-dialog", never, {}, {}, never, never, true, never>;
2968
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TemplateEditorDialogComponent, never>;
2969
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TemplateEditorDialogComponent, "praxis-template-editor-dialog", never, {}, {}, never, never, true, never>;
2890
2970
  }
2891
2971
 
2892
2972
  interface TemplatePreviewDialogData {
@@ -2908,8 +2988,8 @@ declare class TemplatePreviewDialogComponent {
2908
2988
  applyTemplate(): void;
2909
2989
  exportTemplate(): void;
2910
2990
  cancel(): void;
2911
- static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePreviewDialogComponent, never>;
2912
- static ɵcmp: i0.ɵɵComponentDeclaration<TemplatePreviewDialogComponent, "praxis-template-preview-dialog", never, {}, {}, never, never, true, never>;
2991
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TemplatePreviewDialogComponent, never>;
2992
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TemplatePreviewDialogComponent, "praxis-template-preview-dialog", never, {}, {}, never, never, true, never>;
2913
2993
  }
2914
2994
 
2915
2995
  type RuleListItem = string | RuleNode;
@@ -2917,6 +2997,9 @@ type RuleCardStatus = 'draft' | 'incomplete' | 'error' | 'valid';
2917
2997
  type StatusFilter = 'all' | RuleCardStatus;
2918
2998
  declare class RuleListComponent {
2919
2999
  private readonly i18n?;
3000
+ private readonly fieldSchemaService?;
3001
+ private readonly ruleBuilderService?;
3002
+ private readonly summaryConfig?;
2920
3003
  rules: RuleListItem[];
2921
3004
  selectedRuleId: string;
2922
3005
  nodeMap: Record<string, RuleNode>;
@@ -2928,7 +3011,7 @@ declare class RuleListComponent {
2928
3011
  aiRequested: EventEmitter<void>;
2929
3012
  searchTerm: string;
2930
3013
  statusFilter: StatusFilter;
2931
- constructor(i18n?: PraxisI18nService | undefined);
3014
+ constructor(i18n?: PraxisI18nService | undefined, fieldSchemaService?: FieldSchemaService | undefined, ruleBuilderService?: RuleBuilderService | undefined, summaryConfig?: (() => RuleBuilderConfig | undefined) | undefined);
2932
3015
  get filteredRules(): RuleListItem[];
2933
3016
  trackById: (_index: number, item: RuleListItem) => string;
2934
3017
  isSelected(item: RuleListItem): boolean;
@@ -2941,6 +3024,9 @@ declare class RuleListComponent {
2941
3024
  getConditionDetail(item: RuleListItem): string;
2942
3025
  getPrimaryTargetLabel(item: RuleListItem): string;
2943
3026
  getMainTargetName(item: RuleListItem): string;
3027
+ private summaryContext;
3028
+ private conditionFor;
3029
+ private relatedNodeIds;
2944
3030
  getPrimaryEffectLabel(item: RuleListItem): string;
2945
3031
  getEffectDetail(item: RuleListItem): string;
2946
3032
  getSummary(item: RuleListItem): string;
@@ -2957,12 +3043,251 @@ declare class RuleListComponent {
2957
3043
  private getNode;
2958
3044
  private getItemId;
2959
3045
  private getTargetTypeLabel;
2960
- private describeProperty;
2961
- private stripTargetPrefix;
2962
3046
  private parseTimestamp;
2963
- static ɵfac: i0.ɵɵFactoryDeclaration<RuleListComponent, [{ optional: true; }]>;
2964
- static ɵcmp: i0.ɵɵComponentDeclaration<RuleListComponent, "praxis-rule-list", never, { "rules": { "alias": "rules"; "required": false; }; "selectedRuleId": { "alias": "selectedRuleId"; "required": false; }; "nodeMap": { "alias": "nodeMap"; "required": false; }; "validationErrors": { "alias": "validationErrors"; "required": false; }; }, { "ruleSelected": "ruleSelected"; "ruleDeleted": "ruleDeleted"; "ruleDuplicated": "ruleDuplicated"; "ruleAdded": "ruleAdded"; "aiRequested": "aiRequested"; }, never, never, true, never>;
3047
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<RuleListComponent, [{ optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
3048
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<RuleListComponent, "praxis-rule-list", never, { "rules": { "alias": "rules"; "required": false; }; "selectedRuleId": { "alias": "selectedRuleId"; "required": false; }; "nodeMap": { "alias": "nodeMap"; "required": false; }; "validationErrors": { "alias": "validationErrors"; "required": false; }; }, { "ruleSelected": "ruleSelected"; "ruleDeleted": "ruleDeleted"; "ruleDuplicated": "ruleDuplicated"; "ruleAdded": "ruleAdded"; "aiRequested": "aiRequested"; }, never, never, true, never>;
3049
+ }
3050
+
3051
+ type DecisionInspectorViewMode = 'business' | 'technical';
3052
+ interface DecisionStageSlotViewModel {
3053
+ readonly slotKey: string;
3054
+ readonly humanTitle: string;
3055
+ readonly stage: DecisionStageId;
3056
+ readonly policyAttr: string;
3057
+ readonly overridePolicyLabel: string;
3058
+ readonly bindingCount: number;
3059
+ readonly ruleCountLabel: string;
3060
+ readonly selected: boolean;
3061
+ readonly violated: boolean;
3062
+ }
3063
+ interface DecisionStageColumnViewModel {
3064
+ readonly descriptor: DecisionStageDescriptor;
3065
+ readonly title: string;
3066
+ readonly subtitle: string;
3067
+ readonly slots: readonly DecisionStageSlotViewModel[];
3068
+ readonly totalBindings: number;
3069
+ readonly violated: boolean;
3070
+ readonly populated: boolean;
3071
+ }
3072
+ declare class PraxisRuleDecisionStagesComponent {
3073
+ readonly slots: _angular_core.InputSignal<readonly DomainCatalogRuleSlotItem[]>;
3074
+ readonly bindings: _angular_core.InputSignal<readonly DomainCatalogRuleBindingItem[]>;
3075
+ readonly selectedSlotKey: _angular_core.InputSignal<string | null>;
3076
+ readonly violatedSlotKeys: _angular_core.InputSignal<readonly string[]>;
3077
+ readonly viewMode: _angular_core.InputSignal<DecisionInspectorViewMode>;
3078
+ readonly slotSelected: _angular_core.OutputEmitterRef<string>;
3079
+ private readonly i18n;
3080
+ private readonly hostElement;
3081
+ private readonly focusedSlotKeyState;
3082
+ readonly isTechnicalMode: _angular_core.Signal<boolean>;
3083
+ readonly ariaLabel: _angular_core.Signal<string>;
3084
+ readonly violatedBadgeLabel: _angular_core.Signal<string>;
3085
+ readonly emptyStagesCollapsedLabel: _angular_core.Signal<string>;
3086
+ readonly stageColumns: _angular_core.Signal<readonly DecisionStageColumnViewModel[]>;
3087
+ readonly populatedColumns: _angular_core.Signal<readonly DecisionStageColumnViewModel[]>;
3088
+ readonly emptyColumns: _angular_core.Signal<readonly DecisionStageColumnViewModel[]>;
3089
+ readonly activeTabStopSlotKey: _angular_core.Signal<string | null>;
3090
+ isSlotTabStop(slotKey: string): boolean;
3091
+ selectSlot(slotKey: string): void;
3092
+ handleSlotKeydown(event: KeyboardEvent, colIdx: number, slotIdx: number): void;
3093
+ private formatPolicyLabel;
3094
+ private formatRuleCount;
3095
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisRuleDecisionStagesComponent, never>;
3096
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisRuleDecisionStagesComponent, "praxis-rule-decision-stages", never, { "slots": { "alias": "slots"; "required": false; "isSignal": true; }; "bindings": { "alias": "bindings"; "required": false; "isSignal": true; }; "selectedSlotKey": { "alias": "selectedSlotKey"; "required": false; "isSignal": true; }; "violatedSlotKeys": { "alias": "violatedSlotKeys"; "required": false; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": false; "isSignal": true; }; }, { "slotSelected": "slotSelected"; }, never, never, true, never>;
2965
3097
  }
2966
3098
 
2967
- export { ArrayFieldAnalyzer, CollectionValidatorEditorComponent, ConditionalValidatorEditorComponent, ConditionalValidatorType, ConfigurationError, ContextError, ContextManagementService, ConversionError, ErrorCategory, ErrorHandler, ErrorSeverity, ExportDialogComponent, ExportIntegrationService, ExpressionError, FIELD_TYPE_OPERATORS, FieldConditionEditorComponent, FieldSchemaService, FieldType, InternalError, JsonViewerComponent, MetadataEditorComponent, OPERATOR_LABELS, PRAXIS_VISUAL_BUILDER_AUTHORING_MANIFEST, PRAXIS_VISUAL_BUILDER_COMPONENT_METADATA, PraxisVisualBuilder, RegistryError, RuleBuilderService, RuleCanvasComponent, RuleEditorComponent, RuleListComponent, RuleNodeComponent, RuleNodeRegistryService, RuleNodeType, RuleTemplateService, RuleValidationService, TemplateEditorDialogComponent, TemplateGalleryComponent, TemplatePreviewDialogComponent, ValidationError as VBValidationError, ValidationCategory, ValidationSeverity, VisualBuilderError, VisualRuleBuilderComponent, WebhookIntegrationService, createError, getArrayItemFieldPaths, globalErrorHandler, isArrayFieldSchema, providePraxisVisualBuilderMetadata };
2968
- export type { ArrayCollectionValidationRule, ArrayFieldSchema, ArrayValidationContext, ArrayValidationError, BooleanGroupConfig, CardinalityConfig, CircularReference, CleanupResult, CollectionValidationConfig, CollectionValidatorConfig, ConditionalValidatorConfig, ConditionalValidatorPreview, ContextEntry, ContextScope, ContextValue, ContextVariable, ContextualConfig, ContextualTemplateConfig, CustomConfig, CustomFunction, DocumentationLink, EnhancedFieldSchema, ErrorInfo, ErrorStatistics, ExportDialogData, ExportFormat, ExportOptions, ExportResult, ExpressionConfig, ExternalSystemConfig, FieldConditionConfig, FieldFormat, FieldOperandTransform, FieldOption, FieldSchema, FieldSchemaContext, FieldToFieldConfig, FieldUIConfig, FunctionCallConfig, FunctionParameter, ImportOptions, IntegrationEndpoint, IntegrationResult, MemoryStats, OptionalFieldConfig, PropertyRuleConfig, RegistryIntegrityResult, RegistryValidationResult, RuleBuilderConfig, RuleBuilderSnapshot, RuleBuilderState, RuleContextProvider, RuleFunctionRegistry, RuleNode, RuleNodeConfig, RuleNodeTree, RuleNodeTypeString, RuleTemplate, RuleValidationResult, SpecificationMetadata, TemplateApplicationResult, TemplateCategory, TemplateDisplayMode, TemplateEditorDialogData, TemplateEditorResult, TemplateMetadata, TemplatePreviewDialogData, TemplateSearchCriteria, TemplateSortOption, TemplateStats, TemplateValidationResult, ValidComparisonOperator, ValidationConfig, ValidationContext, ValidationError$1 as ValidationError, ValidationIssue, ValidationResult, ValidationRule, ValueType, VisualBuilderMode, WebhookConfig, WebhookDelivery, WebhookEvent, WebhookStats };
3099
+ type InspectorLoadState = 'idle' | 'loading' | 'ready' | 'empty' | 'error';
3100
+ interface CanonicalOperationChip {
3101
+ readonly key: string;
3102
+ readonly label: string;
3103
+ readonly supported: boolean;
3104
+ readonly allowed: boolean;
3105
+ readonly reason?: string | null;
3106
+ }
3107
+ interface InvolvedFieldChipViewModel {
3108
+ readonly rawPath: string;
3109
+ readonly rawPaths: readonly string[];
3110
+ readonly label: string;
3111
+ }
3112
+ interface RuleParameterViewModel {
3113
+ readonly name: string;
3114
+ readonly label: string;
3115
+ readonly formattedValue: string;
3116
+ readonly formattedDefault: string | null;
3117
+ readonly customized: boolean;
3118
+ readonly description: string | null;
3119
+ readonly legalBasis: string | null;
3120
+ readonly boundsText: string | null;
3121
+ readonly readOnly: boolean;
3122
+ }
3123
+ interface RuleParameterInvariantViewModel {
3124
+ readonly code: string | null;
3125
+ readonly message: string;
3126
+ }
3127
+ interface RuleDetailCardViewModel {
3128
+ readonly key: string;
3129
+ readonly title: string;
3130
+ readonly violated: boolean;
3131
+ readonly usesFallback: boolean;
3132
+ readonly sourceLabel: string | null;
3133
+ readonly whatItChecks: string;
3134
+ readonly whenApplies: string;
3135
+ readonly rationale: string;
3136
+ readonly legalBasis: readonly RuleLegalBasisDescriptor[];
3137
+ readonly involvedFields: readonly InvolvedFieldChipViewModel[];
3138
+ readonly parameters: readonly RuleParameterViewModel[];
3139
+ readonly invariants: readonly RuleParameterInvariantViewModel[];
3140
+ readonly operatorMessage: string;
3141
+ readonly policyGuidance: string;
3142
+ readonly customizationGuidance: string | null;
3143
+ readonly studioHref: string | null;
3144
+ readonly bindingKey: string | null;
3145
+ readonly reasonCode: string | null;
3146
+ readonly falseDecision: string | null;
3147
+ readonly lineage: string | null;
3148
+ readonly origin: string | null;
3149
+ readonly referencedFactPaths: readonly string[];
3150
+ }
3151
+ declare class PraxisDecisionInspectorSurfaceComponent implements OnInit {
3152
+ private readonly drawerData;
3153
+ private readonly inspectorService;
3154
+ private readonly i18n;
3155
+ readonly resourceKey: _angular_core.InputSignal<string | null>;
3156
+ readonly resourcePath: _angular_core.InputSignal<string | null>;
3157
+ readonly resourceId: _angular_core.InputSignal<string | number | null>;
3158
+ readonly resourceTitle: _angular_core.InputSignal<string | null>;
3159
+ readonly initialLens: _angular_core.InputSignal<DecisionInspectorLensId | null>;
3160
+ readonly initialOperationKey: _angular_core.InputSignal<string | null>;
3161
+ readonly initialRuleSetKey: _angular_core.InputSignal<string | null>;
3162
+ readonly initialSlotKey: _angular_core.InputSignal<string | null>;
3163
+ readonly initialBindingKey: _angular_core.InputSignal<string | null>;
3164
+ readonly violations: _angular_core.InputSignal<readonly PraxisRuleViolationDiagnostic[] | undefined>;
3165
+ readonly preloadedCatalog: _angular_core.InputSignal<DecisionResourceRuleCatalog | null | undefined>;
3166
+ readonly preloadedCapabilities: _angular_core.InputSignal<DecisionResourceCapabilitiesContext | ResourceCapabilitySnapshot | null | undefined>;
3167
+ readonly studioUrl: _angular_core.InputSignal<string | null | undefined>;
3168
+ readonly endpointKey: _angular_core.InputSignal<ApiEndpoint | undefined>;
3169
+ readonly apiUrlEntry: _angular_core.InputSignal<ApiUrlEntry | null | undefined>;
3170
+ readonly context: _angular_core.InputSignal<Record<string, unknown> | null | undefined>;
3171
+ readonly loadState: _angular_core.WritableSignal<InspectorLoadState>;
3172
+ readonly activeLens: _angular_core.WritableSignal<DecisionInspectorLensId>;
3173
+ readonly viewMode: _angular_core.WritableSignal<DecisionInspectorViewMode>;
3174
+ readonly isTechnicalMode: _angular_core.Signal<boolean>;
3175
+ private userSelectedLens;
3176
+ readonly catalog: _angular_core.WritableSignal<DecisionResourceRuleCatalog | null>;
3177
+ readonly capabilitiesContext: _angular_core.WritableSignal<DecisionResourceCapabilitiesContext | null>;
3178
+ readonly selectedRuleSetNodeKey: _angular_core.WritableSignal<string | null>;
3179
+ readonly selectedSlotKey: _angular_core.WritableSignal<string | null>;
3180
+ readonly effectiveViolations: _angular_core.Signal<readonly PraxisRuleViolationDiagnostic[]>;
3181
+ readonly violatedSlotKeys: _angular_core.Signal<readonly string[]>;
3182
+ readonly ruleSets: _angular_core.Signal<readonly ResolvedDomainRuleSetSummary[]>;
3183
+ readonly resourceFacts: _angular_core.Signal<readonly _praxisui_core.ResolvedDomainRuleFactItem[]>;
3184
+ readonly factLabelByPath: _angular_core.Signal<ReadonlyMap<string, string>>;
3185
+ readonly governanceItems: _angular_core.Signal<readonly ResolvedDomainGovernanceItem[]>;
3186
+ readonly sortedGovernanceItems: _angular_core.Signal<readonly ResolvedDomainGovernanceItem[]>;
3187
+ readonly sensitiveGovernanceCount: _angular_core.Signal<number>;
3188
+ readonly nonExportableGovernanceCount: _angular_core.Signal<number>;
3189
+ readonly aiRestrictedGovernanceCount: _angular_core.Signal<number>;
3190
+ readonly workflowActions: _angular_core.Signal<readonly ResourceActionCatalogItem[]>;
3191
+ readonly semanticSurfaces: _angular_core.Signal<readonly ResourceSurfaceCatalogItem[]>;
3192
+ readonly canonicalOperationChips: _angular_core.Signal<readonly CanonicalOperationChip[]>;
3193
+ readonly totalCapabilitiesCount: _angular_core.Signal<number>;
3194
+ readonly lensDescriptors: _angular_core.Signal<({
3195
+ id: "business";
3196
+ icon: string;
3197
+ label: string;
3198
+ count: number;
3199
+ } | {
3200
+ id: "capabilities";
3201
+ icon: string;
3202
+ label: string;
3203
+ count: number;
3204
+ } | {
3205
+ id: "governance";
3206
+ icon: string;
3207
+ label: string;
3208
+ count: number;
3209
+ })[]>;
3210
+ readonly selectedRuleSet: _angular_core.Signal<ResolvedDomainRuleSetSummary | null>;
3211
+ readonly selectedSlot: _angular_core.Signal<DomainCatalogRuleSlotItem | null>;
3212
+ readonly selectedSlotBindings: _angular_core.Signal<readonly DomainCatalogRuleBindingItem[]>;
3213
+ readonly selectedSlotHumanTitle: _angular_core.Signal<string>;
3214
+ readonly selectedDetailCards: _angular_core.Signal<readonly RuleDetailCardViewModel[]>;
3215
+ readonly activeRoots: _angular_core.Signal<{
3216
+ rootKey: string;
3217
+ paths: readonly string[];
3218
+ }[]>;
3219
+ readonly effectiveStudioUrl: _angular_core.Signal<string | null>;
3220
+ constructor();
3221
+ ngOnInit(): void;
3222
+ toggleViewMode(): void;
3223
+ reload(forceRefresh?: boolean): Promise<void>;
3224
+ selectLens(lens: DecisionInspectorLensId): void;
3225
+ onLensTabKeydown(event: KeyboardEvent, currentIndex: number): void;
3226
+ selectRuleSet(ruleSet: ResolvedDomainRuleSetSummary): void;
3227
+ selectSlot(slotKey: string): void;
3228
+ focusViolation(violation: PraxisRuleViolationDiagnostic): void;
3229
+ onViolationKeydownSpace(event: Event, violation: PraxisRuleViolationDiagnostic): void;
3230
+ onRuleSetTabKeydown(event: KeyboardEvent, currentIndex: number): void;
3231
+ isBindingViolated(binding: DomainCatalogRuleBindingItem): boolean;
3232
+ hasActionExecutionBadges(action: ResourceActionCatalogItem): boolean;
3233
+ isSensitiveClassification(classification: string): boolean;
3234
+ isSafeLegalUrl(url: string | null | undefined): boolean;
3235
+ formatLegalBasisMeta(basis: RuleLegalBasisDescriptor): string;
3236
+ resolveViolationTargetLabel(targetField: string): string;
3237
+ tx(key: string, params?: Record<string, string | number>): string;
3238
+ formatStageLabel(stage: string): string;
3239
+ formatPolicyLabel(policy: string): string;
3240
+ formatPolicyGuidance(policy: string | undefined): string;
3241
+ formatSourceLabel(source: string): string;
3242
+ formatFailPolicyLabel(failPolicy: string): string;
3243
+ formatOperationLabel(operationKey: string | undefined): string;
3244
+ formatCapabilityOpLabel(opKey: string): string;
3245
+ formatBulkModeLabel(mode: string | undefined): string;
3246
+ formatRiskLabel(risk: string): string;
3247
+ formatSurfaceKindLabel(kind: string): string;
3248
+ formatGovernanceTargetKind(kind: ResolvedDomainGovernanceItem['targetKind']): string;
3249
+ formatClassificationLabel(classification: string): string;
3250
+ formatDataCategoryLabel(category: string): string;
3251
+ formatAiVisibilityLabel(visibility: string): string;
3252
+ visibleComplianceTags(gov: ResolvedDomainGovernanceItem): readonly string[];
3253
+ visibleAiRestrictions(gov: ResolvedDomainGovernanceItem): readonly string[];
3254
+ private formatOperationPhrase;
3255
+ private resolveEffectiveLegalBasis;
3256
+ private buildInvolvedFields;
3257
+ private resolveContextualStudioUrl;
3258
+ private applyCatalog;
3259
+ private loadCapabilitiesSilently;
3260
+ private syncPreferredInitialLens;
3261
+ private normalizeCapabilitiesInput;
3262
+ private governanceSeverityScore;
3263
+ private hasActiveViolationTarget;
3264
+ private pickPreferredRuleSet;
3265
+ private ruleSetMatchesViolation;
3266
+ private pickPreferredSlotKey;
3267
+ private buildParameterViewModels;
3268
+ private buildParameterInvariantViewModels;
3269
+ private formatParameterBounds;
3270
+ private formatParameterValue;
3271
+ private formatParameterScalar;
3272
+ private effectiveResourceKey;
3273
+ private effectiveResourcePath;
3274
+ private effectiveResourceId;
3275
+ private effectiveInitialLens;
3276
+ private effectiveInitialRuleSetKey;
3277
+ private effectiveInitialOperationKey;
3278
+ private effectiveInitialSlotKey;
3279
+ private effectiveInitialBindingKey;
3280
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisDecisionInspectorSurfaceComponent, never>;
3281
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisDecisionInspectorSurfaceComponent, "praxis-decision-inspector-surface", never, { "resourceKey": { "alias": "resourceKey"; "required": false; "isSignal": true; }; "resourcePath": { "alias": "resourcePath"; "required": false; "isSignal": true; }; "resourceId": { "alias": "resourceId"; "required": false; "isSignal": true; }; "resourceTitle": { "alias": "resourceTitle"; "required": false; "isSignal": true; }; "initialLens": { "alias": "initialLens"; "required": false; "isSignal": true; }; "initialOperationKey": { "alias": "initialOperationKey"; "required": false; "isSignal": true; }; "initialRuleSetKey": { "alias": "initialRuleSetKey"; "required": false; "isSignal": true; }; "initialSlotKey": { "alias": "initialSlotKey"; "required": false; "isSignal": true; }; "initialBindingKey": { "alias": "initialBindingKey"; "required": false; "isSignal": true; }; "violations": { "alias": "violations"; "required": false; "isSignal": true; }; "preloadedCatalog": { "alias": "preloadedCatalog"; "required": false; "isSignal": true; }; "preloadedCapabilities": { "alias": "preloadedCapabilities"; "required": false; "isSignal": true; }; "studioUrl": { "alias": "studioUrl"; "required": false; "isSignal": true; }; "endpointKey": { "alias": "endpointKey"; "required": false; "isSignal": true; }; "apiUrlEntry": { "alias": "apiUrlEntry"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3282
+ }
3283
+
3284
+ /**
3285
+ * Registers the canonical contextual Business Rules Inspector (`PRAXIS_DECISION_INSPECTOR_SURFACE`),
3286
+ * its `pt-BR`/`en-US` i18n catalog, and optional deep-link handoff configuration to `praxis-policy-studio`.
3287
+ *
3288
+ * Requires `SURFACE_DRAWER_BRIDGE` (for example via `provideSettingsPanelAsSurfaceDrawerBridge()`).
3289
+ */
3290
+ declare function providePraxisDecisionInspector(config?: PraxisDecisionInspectorConfig): EnvironmentProviders;
3291
+
3292
+ export { ArrayFieldAnalyzer, CollectionValidatorEditorComponent, ConditionalValidatorEditorComponent, ConditionalValidatorType, ConfigurationError, ContextError, ContextManagementService, ConversionError, ErrorCategory, ErrorHandler, ErrorSeverity, ExportDialogComponent, ExportIntegrationService, ExpressionError, FIELD_TYPE_OPERATORS, FieldConditionEditorComponent, FieldSchemaService, FieldType, InternalError, JsonViewerComponent, MetadataEditorComponent, OPERATOR_LABELS, PRAXIS_VISUAL_BUILDER_AUTHORING_MANIFEST, PRAXIS_VISUAL_BUILDER_COMPONENT_METADATA, PraxisDecisionInspectorSurfaceComponent, PraxisRuleDecisionStagesComponent, PraxisVisualBuilder, RegistryError, RuleBuilderService, RuleCanvasComponent, RuleEditorComponent, RuleListComponent, RuleNodeComponent, RuleNodeRegistryService, RuleNodeType, RuleTemplateService, RuleValidationService, TemplateEditorDialogComponent, TemplateGalleryComponent, TemplatePreviewDialogComponent, ValidationError as VBValidationError, ValidationCategory, ValidationSeverity, VisualBuilderError, VisualRuleBuilderComponent, WebhookIntegrationService, createError, getArrayItemFieldPaths, globalErrorHandler, isArrayFieldSchema, providePraxisDecisionInspector, providePraxisVisualBuilderMetadata };
3293
+ export type { ArrayCollectionValidationRule, ArrayFieldSchema, ArrayValidationContext, ArrayValidationError, BooleanGroupConfig, CardinalityConfig, CircularReference, CleanupResult, CollectionValidationConfig, CollectionValidatorConfig, ConditionalValidatorConfig, ConditionalValidatorPreview, ContextEntry, ContextScope, ContextValue, ContextVariable, ContextualConfig, ContextualTemplateConfig, CustomConfig, CustomFunction, DecisionInspectorViewMode, DecisionStageColumnViewModel, DecisionStageSlotViewModel, DocumentationLink, EnhancedFieldSchema, ErrorInfo, ErrorStatistics, ExportDialogData, ExportFormat, ExportOptions, ExportResult, ExpressionConfig, ExternalSystemConfig, FieldConditionConfig, FieldFormat, FieldOperandTransform, FieldOption, FieldSchema, FieldSchemaContext, FieldToFieldConfig, FieldUIConfig, FunctionCallConfig, FunctionParameter, ImportOptions, IntegrationEndpoint, IntegrationResult, MemoryStats, OptionalFieldConfig, PropertyRuleConfig, RegistryIntegrityResult, RegistryValidationResult, RuleBuilderConfig, RuleBuilderSnapshot, RuleBuilderState, RuleContextProvider, RuleFunctionRegistry, RuleNode, RuleNodeConfig, RuleNodeTree, RuleNodeTypeString, RuleTemplate, RuleValidationResult, SemanticDomainFieldSchemaOptions, SpecificationMetadata, TemplateApplicationResult, TemplateCategory, TemplateDisplayMode, TemplateEditorDialogData, TemplateEditorResult, TemplateMetadata, TemplatePreviewDialogData, TemplateSearchCriteria, TemplateSortOption, TemplateStats, TemplateValidationResult, ValidComparisonOperator, ValidationConfig, ValidationContext, ValidationError$1 as ValidationError, ValidationIssue, ValidationResult, ValidationRule, ValueType, VisualBuilderMode, WebhookConfig, WebhookDelivery, WebhookEvent, WebhookStats };