@praxisui/visual-builder 9.0.0-beta.11 → 9.0.0-beta.13
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,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Inject, ChangeDetectionStrategy, Component, EventEmitter, ViewChild, Output, Input, Optional, inject } from '@angular/core';
|
|
2
|
+
import { Injectable, Inject, ChangeDetectionStrategy, Component, EventEmitter, ViewChild, Output, Input, Optional, inject, ENVIRONMENT_INITIALIZER } from '@angular/core';
|
|
3
3
|
import * as i12$1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as i1$1 from '@angular/forms';
|
|
@@ -28,7 +28,7 @@ import * as i9 from '@angular/material/tooltip';
|
|
|
28
28
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
29
29
|
import { BehaviorSubject, Subject, from, takeUntil as takeUntil$1, interval, Observable, of, throwError, combineLatest } from 'rxjs';
|
|
30
30
|
import * as i1$2 from '@praxisui/core';
|
|
31
|
-
import { RULE_PROPERTY_SCHEMA, providePraxisI18n, PraxisI18nService, PraxisIconDirective } from '@praxisui/core';
|
|
31
|
+
import { RULE_PROPERTY_SCHEMA, providePraxisI18n, PraxisI18nService, ComponentMetadataRegistry, PraxisIconDirective } from '@praxisui/core';
|
|
32
32
|
import * as i3$1 from '@praxisui/ai';
|
|
33
33
|
import { AiRuleWizardDialogComponent } from '@praxisui/ai';
|
|
34
34
|
import { map, takeUntil, debounceTime, distinctUntilChanged, switchMap, catchError, startWith } from 'rxjs/operators';
|
|
@@ -14104,6 +14104,62 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
14104
14104
|
type: Output
|
|
14105
14105
|
}] } });
|
|
14106
14106
|
|
|
14107
|
+
/** Metadata for Praxis Visual Builder component */
|
|
14108
|
+
const PRAXIS_VISUAL_BUILDER_COMPONENT_METADATA = {
|
|
14109
|
+
id: 'praxis-visual-builder',
|
|
14110
|
+
selector: 'praxis-visual-builder',
|
|
14111
|
+
component: PraxisVisualBuilder,
|
|
14112
|
+
friendlyName: 'Praxis Visual Builder',
|
|
14113
|
+
description: 'Visual rule builder with JSON Logic authoring and governed compatibility for legacy payloads.',
|
|
14114
|
+
inputs: [
|
|
14115
|
+
{
|
|
14116
|
+
name: 'config',
|
|
14117
|
+
type: 'RuleBuilderConfig | null',
|
|
14118
|
+
label: 'Configuracao',
|
|
14119
|
+
description: 'Configuracao do builder (schemas, templates, UI e validacoes).',
|
|
14120
|
+
},
|
|
14121
|
+
{
|
|
14122
|
+
name: 'initialRules',
|
|
14123
|
+
type: 'any',
|
|
14124
|
+
label: 'Regras iniciais',
|
|
14125
|
+
description: 'Estado inicial de regras para carregar no editor.',
|
|
14126
|
+
},
|
|
14127
|
+
],
|
|
14128
|
+
outputs: [
|
|
14129
|
+
{
|
|
14130
|
+
name: 'rulesChanged',
|
|
14131
|
+
type: 'RuleBuilderState',
|
|
14132
|
+
label: 'Regras alteradas',
|
|
14133
|
+
description: 'Disparado quando o grafo/estado de regras e alterado.',
|
|
14134
|
+
},
|
|
14135
|
+
{
|
|
14136
|
+
name: 'exportRequested',
|
|
14137
|
+
type: 'ExportOptions',
|
|
14138
|
+
label: 'Exportacao solicitada',
|
|
14139
|
+
description: 'Disparado quando o usuario solicita exportacao.',
|
|
14140
|
+
},
|
|
14141
|
+
{
|
|
14142
|
+
name: 'importRequested',
|
|
14143
|
+
type: 'ImportOptions',
|
|
14144
|
+
label: 'Importacao solicitada',
|
|
14145
|
+
description: 'Disparado quando o usuario solicita importacao.',
|
|
14146
|
+
},
|
|
14147
|
+
],
|
|
14148
|
+
tags: ['widget', 'rules', 'configurable'],
|
|
14149
|
+
lib: '@praxisui/visual-builder',
|
|
14150
|
+
};
|
|
14151
|
+
/** Provider para auto-registrar metadados do componente Visual Builder. */
|
|
14152
|
+
function providePraxisVisualBuilderMetadata() {
|
|
14153
|
+
return {
|
|
14154
|
+
provide: ENVIRONMENT_INITIALIZER,
|
|
14155
|
+
multi: true,
|
|
14156
|
+
useFactory: (registry) => () => {
|
|
14157
|
+
registry.register(PRAXIS_VISUAL_BUILDER_COMPONENT_METADATA);
|
|
14158
|
+
},
|
|
14159
|
+
deps: [ComponentMetadataRegistry],
|
|
14160
|
+
};
|
|
14161
|
+
}
|
|
14162
|
+
|
|
14107
14163
|
const nodeAddSchema = {
|
|
14108
14164
|
type: 'object',
|
|
14109
14165
|
required: ['nodeId', 'nodeType'],
|
|
@@ -21702,4 +21758,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
21702
21758
|
* Generated bundle index. Do not edit.
|
|
21703
21759
|
*/
|
|
21704
21760
|
|
|
21705
|
-
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, 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 };
|
|
21761
|
+
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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/visual-builder",
|
|
3
|
-
"version": "9.0.0-beta.
|
|
3
|
+
"version": "9.0.0-beta.13",
|
|
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,11 +8,11 @@
|
|
|
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": "^9.0.0-beta.
|
|
11
|
+
"@praxisui/settings-panel": "^9.0.0-beta.13",
|
|
12
12
|
"@angular/platform-browser-dynamic": "^21.0.0",
|
|
13
|
-
"@praxisui/ai": "^9.0.0-beta.
|
|
14
|
-
"@praxisui/core": "^9.0.0-beta.
|
|
15
|
-
"@praxisui/metadata-editor": "^9.0.0-beta.
|
|
13
|
+
"@praxisui/ai": "^9.0.0-beta.13",
|
|
14
|
+
"@praxisui/core": "^9.0.0-beta.13",
|
|
15
|
+
"@praxisui/metadata-editor": "^9.0.0-beta.13",
|
|
16
16
|
"rxjs": "~7.8.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
@@ -42,7 +42,10 @@
|
|
|
42
42
|
".": {
|
|
43
43
|
"types": "./types/praxisui-visual-builder.d.ts",
|
|
44
44
|
"default": "./fesm2022/praxisui-visual-builder.mjs"
|
|
45
|
+
},
|
|
46
|
+
"./ai/component-registry.json": {
|
|
47
|
+
"default": "./ai/component-registry.json"
|
|
45
48
|
}
|
|
46
49
|
},
|
|
47
50
|
"type": "module"
|
|
48
|
-
}
|
|
51
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, OnInit, OnDestroy, OnChanges, AfterViewInit, ElementRef, ChangeDetectorRef, SimpleChanges } from '@angular/core';
|
|
3
|
-
import { JsonLogicExpression, ComponentAuthoringManifest, FormLayoutRule, RulePropertySchema, PraxisI18nService } from '@praxisui/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';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
6
6
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
@@ -639,6 +639,11 @@ declare class PraxisVisualBuilder {
|
|
|
639
639
|
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>;
|
|
640
640
|
}
|
|
641
641
|
|
|
642
|
+
/** Metadata for Praxis Visual Builder component */
|
|
643
|
+
declare const PRAXIS_VISUAL_BUILDER_COMPONENT_METADATA: ComponentDocMeta;
|
|
644
|
+
/** Provider para auto-registrar metadados do componente Visual Builder. */
|
|
645
|
+
declare function providePraxisVisualBuilderMetadata(): Provider;
|
|
646
|
+
|
|
642
647
|
declare const PRAXIS_VISUAL_BUILDER_AUTHORING_MANIFEST: ComponentAuthoringManifest;
|
|
643
648
|
|
|
644
649
|
/**
|
|
@@ -2951,5 +2956,5 @@ declare class RuleListComponent {
|
|
|
2951
2956
|
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>;
|
|
2952
2957
|
}
|
|
2953
2958
|
|
|
2954
|
-
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, 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 };
|
|
2959
|
+
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 };
|
|
2955
2960
|
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, 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 };
|