@praxisui/visual-builder 9.0.0-beta.2 → 9.0.0-beta.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praxisui/visual-builder",
3
- "version": "9.0.0-beta.2",
3
+ "version": "9.0.0-beta.20",
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.2",
11
+ "@praxisui/settings-panel": "^9.0.0-beta.20",
12
12
  "@angular/platform-browser-dynamic": "^21.0.0",
13
- "@praxisui/ai": "^9.0.0-beta.2",
14
- "@praxisui/core": "^9.0.0-beta.2",
15
- "@praxisui/metadata-editor": "^9.0.0-beta.2",
13
+ "@praxisui/ai": "^9.0.0-beta.20",
14
+ "@praxisui/core": "^9.0.0-beta.20",
15
+ "@praxisui/metadata-editor": "^9.0.0-beta.20",
16
16
  "rxjs": "~7.8.0"
17
17
  },
18
18
  "dependencies": {
@@ -23,17 +23,11 @@
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "repository": {
27
- "type": "git",
28
- "url": "git+https://github.com/codexrodrigues/praxis-ui-angular.git"
29
- },
30
- "homepage": "https://praxisui.dev",
31
- "bugs": {
32
- "url": "https://github.com/codexrodrigues/praxis-ui-angular/issues"
33
- },
26
+ "homepage": "https://praxisui.dev/docs/components",
34
27
  "keywords": [
35
28
  "angular",
36
29
  "praxisui",
30
+ "praxis",
37
31
  "visual-builder",
38
32
  "rules",
39
33
  "json-logic",
@@ -49,7 +43,10 @@
49
43
  ".": {
50
44
  "types": "./types/praxisui-visual-builder.d.ts",
51
45
  "default": "./fesm2022/praxisui-visual-builder.mjs"
46
+ },
47
+ "./ai/component-registry.json": {
48
+ "default": "./ai/component-registry.json"
52
49
  }
53
50
  },
54
51
  "type": "module"
55
- }
52
+ }
@@ -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
  /**
@@ -1272,8 +1277,8 @@ declare class RuleBuilderService {
1272
1277
  private isPropertyRuleNode;
1273
1278
  private containsPropertyRule;
1274
1279
  /**
1275
- * Constrói um array de FormLayoutRule a partir do estado atual do builder,
1276
- * focando em nós propertyRule ou nós com propriedades/targets definidos.
1280
+ * Constrói um array de FormLayoutRule a partir do estado atual do builder,
1281
+ * focando em nós propertyRule ou nós com propriedades/targets definidos.
1277
1282
  */
1278
1283
  private exportFormRulesFromState;
1279
1284
  private toFormLayoutRule;
@@ -1297,6 +1302,7 @@ declare class RuleBuilderService {
1297
1302
  private builderOperatorToJsonLogicOperator;
1298
1303
  private jsonLogicOperatorToBuilderOperator;
1299
1304
  private normalizeConditionValue;
1305
+ private buildConditionRightOperand;
1300
1306
  private isJsonLogicExpressionCandidate;
1301
1307
  private isVarExpression;
1302
1308
  private extractVarPath;
@@ -2454,6 +2460,7 @@ declare class FieldConditionEditorComponent implements OnInit, OnChanges {
2454
2460
  private normalizeFieldName;
2455
2461
  private resolveFieldSchema;
2456
2462
  private normalizeOperatorForForm;
2463
+ private normalizeValueTypeForVisualEditor;
2457
2464
  getFieldIcon(type: string): string;
2458
2465
  getOperatorLabel(operator: string): string;
2459
2466
  getValuePlaceholder(): string;
@@ -2949,5 +2956,5 @@ declare class RuleListComponent {
2949
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>;
2950
2957
  }
2951
2958
 
2952
- 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 };
2953
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 };