@praxisui/visual-builder 9.0.0-beta.9 → 9.0.0-beta.90
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 +6 -27
- package/ai/component-registry.json +1911 -0
- package/fesm2022/praxisui-visual-builder.mjs +652 -571
- package/package.json +10 -6
- package/types/praxisui-visual-builder.d.ts +13 -5
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.90",
|
|
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.90",
|
|
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.90",
|
|
14
|
+
"@praxisui/core": "^9.0.0-beta.90",
|
|
15
|
+
"@praxisui/metadata-editor": "^9.0.0-beta.90",
|
|
16
16
|
"rxjs": "~7.8.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"keywords": [
|
|
28
28
|
"angular",
|
|
29
29
|
"praxisui",
|
|
30
|
+
"praxis",
|
|
30
31
|
"visual-builder",
|
|
31
32
|
"rules",
|
|
32
33
|
"json-logic",
|
|
@@ -42,7 +43,10 @@
|
|
|
42
43
|
".": {
|
|
43
44
|
"types": "./types/praxisui-visual-builder.d.ts",
|
|
44
45
|
"default": "./fesm2022/praxisui-visual-builder.mjs"
|
|
46
|
+
},
|
|
47
|
+
"./ai/component-registry.json": {
|
|
48
|
+
"default": "./ai/component-registry.json"
|
|
45
49
|
}
|
|
46
50
|
},
|
|
47
51
|
"type": "module"
|
|
48
|
-
}
|
|
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
|
-
*
|
|
1276
|
-
* focando em
|
|
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;
|
|
@@ -1286,6 +1291,7 @@ declare class RuleBuilderService {
|
|
|
1286
1291
|
private validateFormRulesPayload;
|
|
1287
1292
|
private sanitizeRuleProperties;
|
|
1288
1293
|
private coerceRulePropertyValue;
|
|
1294
|
+
private sanitizeStructuredArray;
|
|
1289
1295
|
private sanitizeStructuredValue;
|
|
1290
1296
|
private formRulesToBuilderState;
|
|
1291
1297
|
private inferRuleTypeFromFormRule;
|
|
@@ -1297,6 +1303,7 @@ declare class RuleBuilderService {
|
|
|
1297
1303
|
private builderOperatorToJsonLogicOperator;
|
|
1298
1304
|
private jsonLogicOperatorToBuilderOperator;
|
|
1299
1305
|
private normalizeConditionValue;
|
|
1306
|
+
private buildConditionRightOperand;
|
|
1300
1307
|
private isJsonLogicExpressionCandidate;
|
|
1301
1308
|
private isVarExpression;
|
|
1302
1309
|
private extractVarPath;
|
|
@@ -2454,6 +2461,7 @@ declare class FieldConditionEditorComponent implements OnInit, OnChanges {
|
|
|
2454
2461
|
private normalizeFieldName;
|
|
2455
2462
|
private resolveFieldSchema;
|
|
2456
2463
|
private normalizeOperatorForForm;
|
|
2464
|
+
private normalizeValueTypeForVisualEditor;
|
|
2457
2465
|
getFieldIcon(type: string): string;
|
|
2458
2466
|
getOperatorLabel(operator: string): string;
|
|
2459
2467
|
getValuePlaceholder(): string;
|
|
@@ -2949,5 +2957,5 @@ declare class RuleListComponent {
|
|
|
2949
2957
|
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
2958
|
}
|
|
2951
2959
|
|
|
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 };
|
|
2960
|
+
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
2961
|
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 };
|