@praxisui/visual-builder 10.0.0-rc.5 → 10.0.0-rc.50
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/README.md +23 -0
- package/ai/component-registry.json +249 -14
- package/fesm2022/praxisui-visual-builder.mjs +5922 -2215
- package/package.json +5 -5
- package/types/praxisui-visual-builder.d.ts +254 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/visual-builder",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.50",
|
|
4
4
|
"description": "Visual rule and expression builder for Praxis UI with JSON Logic authoring, validation and context variables.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"@angular/cdk": "^21.0.0",
|
|
9
9
|
"@angular/material": "^21.0.0",
|
|
10
10
|
"@angular/forms": "^21.0.0",
|
|
11
|
-
"@praxisui/settings-panel": "^10.0.0-rc.
|
|
12
|
-
"@praxisui/ai": "^10.0.0-rc.
|
|
13
|
-
"@praxisui/core": "^10.0.0-rc.
|
|
14
|
-
"@praxisui/metadata-editor": "^10.0.0-rc.
|
|
11
|
+
"@praxisui/settings-panel": "^10.0.0-rc.50",
|
|
12
|
+
"@praxisui/ai": "^10.0.0-rc.50",
|
|
13
|
+
"@praxisui/core": "^10.0.0-rc.50",
|
|
14
|
+
"@praxisui/metadata-editor": "^10.0.0-rc.50",
|
|
15
15
|
"rxjs": "~7.8.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Provider, OnInit, OnDestroy, OnChanges, AfterViewInit, ElementRef, ChangeDetectorRef, SimpleChanges } from '@angular/core';
|
|
3
|
-
import
|
|
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, DomainCatalogRuleSlotItem, DecisionStageDescriptor, DomainCatalogRuleBindingItem, DecisionInspectorLensId, PraxisRuleViolationDiagnostic, DecisionResourceRuleCatalog, DecisionResourceCapabilitiesContext, ResourceCapabilitySnapshot, ApiEndpoint, ApiUrlEntry, ResolvedDomainRuleSetSummary, ResolvedDomainGovernanceItem, ResourceActionCatalogItem, ResourceSurfaceCatalogItem, 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
|
|
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>;
|
|
@@ -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,6 +1041,7 @@ declare class FieldSchemaService {
|
|
|
1002
1041
|
private mapJsonSchemaType;
|
|
1003
1042
|
private mapFormFieldType;
|
|
1004
1043
|
private extractFormatFromField;
|
|
1044
|
+
private inferOntologicalFactType;
|
|
1005
1045
|
static ɵfac: i0.ɵɵFactoryDeclaration<FieldSchemaService, never>;
|
|
1006
1046
|
static ɵprov: i0.ɵɵInjectableDeclaration<FieldSchemaService>;
|
|
1007
1047
|
}
|
|
@@ -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
|
|
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,6 +1374,8 @@ 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;
|
|
@@ -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,6 +1952,7 @@ 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;
|
|
@@ -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,8 +2340,15 @@ 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;
|
|
@@ -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
|
-
|
|
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
2505
|
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>;
|
|
2506
|
+
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; }; "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,7 +2569,7 @@ declare class FieldConditionEditorComponent implements OnInit, OnChanges {
|
|
|
2491
2569
|
getValidationErrors(): string[];
|
|
2492
2570
|
isValid(): boolean;
|
|
2493
2571
|
hasFieldOptions(): boolean;
|
|
2494
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FieldConditionEditorComponent,
|
|
2572
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FieldConditionEditorComponent, [null, { optional: true; }]>;
|
|
2495
2573
|
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>;
|
|
2496
2574
|
}
|
|
2497
2575
|
|
|
@@ -2604,8 +2682,9 @@ declare class CollectionValidatorEditorComponent implements OnInit, OnChanges {
|
|
|
2604
2682
|
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>;
|
|
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,7 +2734,7 @@ 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,
|
|
2737
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MetadataEditorComponent, [null, { optional: true; }]>;
|
|
2658
2738
|
static ɵcmp: i0.ɵɵComponentDeclaration<MetadataEditorComponent, "praxis-metadata-editor", never, { "selectedNode": { "alias": "selectedNode"; "required": false; }; }, { "metadataUpdated": "metadataUpdated"; }, never, never, true, never>;
|
|
2659
2739
|
}
|
|
2660
2740
|
|
|
@@ -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,162 @@ 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; }]>;
|
|
3047
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RuleListComponent, [{ optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
2964
3048
|
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>;
|
|
2965
3049
|
}
|
|
2966
3050
|
|
|
2967
|
-
|
|
2968
|
-
|
|
3051
|
+
interface DecisionDagSlotViewModel {
|
|
3052
|
+
readonly slot: DomainCatalogRuleSlotItem;
|
|
3053
|
+
readonly bindingsCount: number;
|
|
3054
|
+
readonly isViolated: boolean;
|
|
3055
|
+
readonly isSelected: boolean;
|
|
3056
|
+
readonly policyLabel: string;
|
|
3057
|
+
readonly policyTone: 'locked' | 'parameterizable' | 'extensible' | 'replaceable';
|
|
3058
|
+
}
|
|
3059
|
+
interface DecisionDagStageColumnViewModel {
|
|
3060
|
+
readonly stage: DecisionStageDescriptor;
|
|
3061
|
+
readonly title: string;
|
|
3062
|
+
readonly subtitle: string;
|
|
3063
|
+
readonly slots: readonly DecisionDagSlotViewModel[];
|
|
3064
|
+
readonly hasViolation: boolean;
|
|
3065
|
+
}
|
|
3066
|
+
declare class PraxisRuleDecisionDagComponent {
|
|
3067
|
+
private readonly i18n;
|
|
3068
|
+
readonly slots: i0.InputSignal<readonly DomainCatalogRuleSlotItem[]>;
|
|
3069
|
+
readonly bindings: i0.InputSignal<readonly DomainCatalogRuleBindingItem[]>;
|
|
3070
|
+
readonly selectedSlotKey: i0.InputSignal<string | null>;
|
|
3071
|
+
readonly violatedSlotKeys: i0.InputSignal<readonly string[]>;
|
|
3072
|
+
readonly slotSelected: i0.OutputEmitterRef<string>;
|
|
3073
|
+
readonly dagAriaLabel: i0.Signal<string>;
|
|
3074
|
+
readonly emptyStageLabel: i0.Signal<string>;
|
|
3075
|
+
readonly violatedBadgeLabel: i0.Signal<string>;
|
|
3076
|
+
readonly stageColumns: i0.Signal<readonly DecisionDagStageColumnViewModel[]>;
|
|
3077
|
+
formatBindingsCount(count: number): string;
|
|
3078
|
+
private resolvePolicyTone;
|
|
3079
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisRuleDecisionDagComponent, never>;
|
|
3080
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisRuleDecisionDagComponent, "praxis-rule-decision-dag", 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; }; }, { "slotSelected": "slotSelected"; }, never, never, true, never>;
|
|
3081
|
+
}
|
|
3082
|
+
|
|
3083
|
+
type InspectorLoadState = 'idle' | 'loading' | 'ready' | 'empty' | 'error';
|
|
3084
|
+
interface CanonicalOperationChip {
|
|
3085
|
+
readonly key: string;
|
|
3086
|
+
readonly label: string;
|
|
3087
|
+
readonly supported: boolean;
|
|
3088
|
+
readonly allowed: boolean;
|
|
3089
|
+
readonly reason?: string | null;
|
|
3090
|
+
}
|
|
3091
|
+
declare class PraxisDecisionInspectorSurfaceComponent implements OnInit {
|
|
3092
|
+
private readonly drawerData;
|
|
3093
|
+
private readonly inspectorService;
|
|
3094
|
+
private readonly i18n;
|
|
3095
|
+
readonly resourceKey: i0.InputSignal<string | null>;
|
|
3096
|
+
readonly resourcePath: i0.InputSignal<string | null>;
|
|
3097
|
+
readonly resourceId: i0.InputSignal<string | number | null>;
|
|
3098
|
+
readonly resourceTitle: i0.InputSignal<string | null>;
|
|
3099
|
+
readonly initialLens: i0.InputSignal<DecisionInspectorLensId | null>;
|
|
3100
|
+
readonly initialOperationKey: i0.InputSignal<string | null>;
|
|
3101
|
+
readonly initialRuleSetKey: i0.InputSignal<string | null>;
|
|
3102
|
+
readonly initialSlotKey: i0.InputSignal<string | null>;
|
|
3103
|
+
readonly initialBindingKey: i0.InputSignal<string | null>;
|
|
3104
|
+
readonly violations: i0.InputSignal<readonly PraxisRuleViolationDiagnostic[] | undefined>;
|
|
3105
|
+
readonly preloadedCatalog: i0.InputSignal<DecisionResourceRuleCatalog | null | undefined>;
|
|
3106
|
+
readonly preloadedCapabilities: i0.InputSignal<DecisionResourceCapabilitiesContext | ResourceCapabilitySnapshot | null | undefined>;
|
|
3107
|
+
readonly studioUrl: i0.InputSignal<string | null | undefined>;
|
|
3108
|
+
readonly endpointKey: i0.InputSignal<ApiEndpoint | undefined>;
|
|
3109
|
+
readonly apiUrlEntry: i0.InputSignal<ApiUrlEntry | null | undefined>;
|
|
3110
|
+
readonly loadState: i0.WritableSignal<InspectorLoadState>;
|
|
3111
|
+
readonly activeLens: i0.WritableSignal<DecisionInspectorLensId>;
|
|
3112
|
+
private userSelectedLens;
|
|
3113
|
+
readonly catalog: i0.WritableSignal<DecisionResourceRuleCatalog | null>;
|
|
3114
|
+
readonly capabilitiesContext: i0.WritableSignal<DecisionResourceCapabilitiesContext | null>;
|
|
3115
|
+
readonly selectedRuleSetNodeKey: i0.WritableSignal<string | null>;
|
|
3116
|
+
readonly selectedSlotKey: i0.WritableSignal<string | null>;
|
|
3117
|
+
readonly effectiveViolations: i0.Signal<readonly PraxisRuleViolationDiagnostic[]>;
|
|
3118
|
+
readonly violatedSlotKeys: i0.Signal<readonly string[]>;
|
|
3119
|
+
readonly ruleSets: i0.Signal<readonly ResolvedDomainRuleSetSummary[]>;
|
|
3120
|
+
readonly resourceFacts: i0.Signal<readonly _praxisui_core.ResolvedDomainRuleFactItem[]>;
|
|
3121
|
+
readonly governanceItems: i0.Signal<readonly ResolvedDomainGovernanceItem[]>;
|
|
3122
|
+
readonly sortedGovernanceItems: i0.Signal<readonly ResolvedDomainGovernanceItem[]>;
|
|
3123
|
+
readonly sensitiveGovernanceCount: i0.Signal<number>;
|
|
3124
|
+
readonly nonExportableGovernanceCount: i0.Signal<number>;
|
|
3125
|
+
readonly aiRestrictedGovernanceCount: i0.Signal<number>;
|
|
3126
|
+
readonly workflowActions: i0.Signal<readonly ResourceActionCatalogItem[]>;
|
|
3127
|
+
readonly semanticSurfaces: i0.Signal<readonly ResourceSurfaceCatalogItem[]>;
|
|
3128
|
+
readonly canonicalOperationChips: i0.Signal<readonly CanonicalOperationChip[]>;
|
|
3129
|
+
readonly totalCapabilitiesCount: i0.Signal<number>;
|
|
3130
|
+
readonly lensDescriptors: i0.Signal<({
|
|
3131
|
+
id: "business";
|
|
3132
|
+
icon: string;
|
|
3133
|
+
label: string;
|
|
3134
|
+
count: number;
|
|
3135
|
+
} | {
|
|
3136
|
+
id: "capabilities";
|
|
3137
|
+
icon: string;
|
|
3138
|
+
label: string;
|
|
3139
|
+
count: number;
|
|
3140
|
+
} | {
|
|
3141
|
+
id: "governance";
|
|
3142
|
+
icon: string;
|
|
3143
|
+
label: string;
|
|
3144
|
+
count: number;
|
|
3145
|
+
})[]>;
|
|
3146
|
+
readonly selectedRuleSet: i0.Signal<ResolvedDomainRuleSetSummary | null>;
|
|
3147
|
+
readonly selectedSlot: i0.Signal<DomainCatalogRuleSlotItem | null>;
|
|
3148
|
+
readonly selectedSlotBindings: i0.Signal<readonly DomainCatalogRuleBindingItem[]>;
|
|
3149
|
+
readonly activeRoots: i0.Signal<{
|
|
3150
|
+
rootKey: string;
|
|
3151
|
+
paths: readonly string[];
|
|
3152
|
+
}[]>;
|
|
3153
|
+
readonly effectiveStudioUrl: i0.Signal<string | null>;
|
|
3154
|
+
constructor();
|
|
3155
|
+
ngOnInit(): void;
|
|
3156
|
+
reload(forceRefresh?: boolean): Promise<void>;
|
|
3157
|
+
selectLens(lens: DecisionInspectorLensId): void;
|
|
3158
|
+
onLensTabKeydown(event: KeyboardEvent, currentIndex: number): void;
|
|
3159
|
+
selectRuleSet(ruleSet: ResolvedDomainRuleSetSummary): void;
|
|
3160
|
+
selectSlot(slotKey: string): void;
|
|
3161
|
+
focusViolation(violation: PraxisRuleViolationDiagnostic): void;
|
|
3162
|
+
onViolationKeydownSpace(event: Event, violation: PraxisRuleViolationDiagnostic): void;
|
|
3163
|
+
onRuleSetTabKeydown(event: KeyboardEvent, currentIndex: number): void;
|
|
3164
|
+
isBindingViolated(binding: DomainCatalogRuleBindingItem): boolean;
|
|
3165
|
+
hasActionExecutionBadges(action: ResourceActionCatalogItem): boolean;
|
|
3166
|
+
isSensitiveClassification(classification: string): boolean;
|
|
3167
|
+
tx(key: string, params?: Record<string, string | number>): string;
|
|
3168
|
+
formatStageLabel(stage: string): string;
|
|
3169
|
+
formatPolicyLabel(policy: string): string;
|
|
3170
|
+
formatSourceLabel(source: string): string;
|
|
3171
|
+
formatCapabilityOpLabel(opKey: string): string;
|
|
3172
|
+
formatRiskLabel(risk: string): string;
|
|
3173
|
+
formatSurfaceKindLabel(kind: string): string;
|
|
3174
|
+
formatGovernanceTargetKind(kind: ResolvedDomainGovernanceItem['targetKind']): string;
|
|
3175
|
+
formatClassificationLabel(classification: string): string;
|
|
3176
|
+
formatDataCategoryLabel(category: string): string;
|
|
3177
|
+
private applyCatalog;
|
|
3178
|
+
private loadCapabilitiesSilently;
|
|
3179
|
+
private syncPreferredInitialLens;
|
|
3180
|
+
private normalizeCapabilitiesInput;
|
|
3181
|
+
private governanceSeverityScore;
|
|
3182
|
+
private pickPreferredRuleSet;
|
|
3183
|
+
private pickPreferredSlotKey;
|
|
3184
|
+
private effectiveResourceKey;
|
|
3185
|
+
private effectiveResourcePath;
|
|
3186
|
+
private effectiveResourceId;
|
|
3187
|
+
private effectiveInitialLens;
|
|
3188
|
+
private effectiveInitialRuleSetKey;
|
|
3189
|
+
private effectiveInitialOperationKey;
|
|
3190
|
+
private effectiveInitialSlotKey;
|
|
3191
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisDecisionInspectorSurfaceComponent, never>;
|
|
3192
|
+
static ɵcmp: i0.ɵɵ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; }; }, {}, never, never, true, never>;
|
|
3193
|
+
}
|
|
3194
|
+
|
|
3195
|
+
/**
|
|
3196
|
+
* Registers the canonical contextual Business Rules Inspector (`PRAXIS_DECISION_INSPECTOR_SURFACE`),
|
|
3197
|
+
* its `pt-BR`/`en-US` i18n catalog, and optional deep-link handoff configuration to `praxis-policy-studio`.
|
|
3198
|
+
*
|
|
3199
|
+
* Requires `SURFACE_DRAWER_BRIDGE` (for example via `provideSettingsPanelAsSurfaceDrawerBridge()`).
|
|
3200
|
+
*/
|
|
3201
|
+
declare function providePraxisDecisionInspector(config?: PraxisDecisionInspectorConfig): EnvironmentProviders;
|
|
3202
|
+
|
|
3203
|
+
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, PraxisRuleDecisionDagComponent, 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 };
|
|
3204
|
+
export type { ArrayCollectionValidationRule, ArrayFieldSchema, ArrayValidationContext, ArrayValidationError, BooleanGroupConfig, CardinalityConfig, CircularReference, CleanupResult, CollectionValidationConfig, CollectionValidatorConfig, ConditionalValidatorConfig, ConditionalValidatorPreview, ContextEntry, ContextScope, ContextValue, ContextVariable, ContextualConfig, ContextualTemplateConfig, CustomConfig, CustomFunction, DecisionDagSlotViewModel, DecisionDagStageColumnViewModel, 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 };
|