@praxisui/visual-builder 0.0.1 → 1.0.0-beta.3
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
CHANGED
|
@@ -21,7 +21,7 @@ A comprehensive Angular library for building visual rule editors with support fo
|
|
|
21
21
|
## Installation
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
npm install @
|
|
24
|
+
npm install @praxisui/visual-builder
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## Quick Start
|
|
@@ -29,7 +29,7 @@ npm install @praxis/visual-builder
|
|
|
29
29
|
### Basic Expression Editor
|
|
30
30
|
|
|
31
31
|
```typescript
|
|
32
|
-
import { ExpressionEditorComponent } from "@
|
|
32
|
+
import { ExpressionEditorComponent } from "@praxisui/visual-builder";
|
|
33
33
|
|
|
34
34
|
@Component({
|
|
35
35
|
template: ` <praxis-expression-editor [fieldSchemas]="fieldSchemas" [contextVariables]="contextVariables" [(expression)]="expression" (validationChange)="onValidationChange($event)"> </praxis-expression-editor> `,
|
|
@@ -55,7 +55,7 @@ export class MyComponent {
|
|
|
55
55
|
### Context Variable Management
|
|
56
56
|
|
|
57
57
|
```typescript
|
|
58
|
-
import { ContextVariableManagerComponent } from "@
|
|
58
|
+
import { ContextVariableManagerComponent } from "@praxisui/visual-builder";
|
|
59
59
|
|
|
60
60
|
@Component({
|
|
61
61
|
template: ` <praxis-context-variable-manager [(contextVariables)]="contextVariables" [allowedScopes]="allowedScopes" (variableAdd)="onVariableAdd($event)" (variableUpdate)="onVariableUpdate($event)"> </praxis-context-variable-manager> `,
|
|
@@ -73,7 +73,7 @@ export class VariableManagementComponent {
|
|
|
73
73
|
### Visual Rule Editor in Embedded Mode
|
|
74
74
|
|
|
75
75
|
```typescript
|
|
76
|
-
import { RuleEditorComponent } from "@
|
|
76
|
+
import { RuleEditorComponent } from "@praxisui/visual-builder";
|
|
77
77
|
|
|
78
78
|
@Component({
|
|
79
79
|
template: ` <praxis-rule-editor [config]="builderConfig" [embedded]="true" (rulesChanged)="onRulesChanged($event)"> </praxis-rule-editor> `,
|
|
@@ -327,7 +327,7 @@ The DSL parser provides detailed error messages for syntax issues:
|
|
|
327
327
|
|
|
328
328
|
### Exports
|
|
329
329
|
|
|
330
|
-
Main exports available from `@
|
|
330
|
+
Main exports available from `@praxisui/visual-builder` (see `projects/praxis-visual-builder/src/public-api.ts`):
|
|
331
331
|
|
|
332
332
|
- Components: `RuleEditorComponent`, `RuleCanvasComponent`, `RuleNodeComponent`, `FieldConditionEditorComponent`, `ConditionalValidatorEditorComponent`, `CollectionValidatorEditorComponent`, `MetadataEditorComponent`, `DslViewerComponent`, `JsonViewerComponent`, `RoundTripTesterComponent`, `ExportDialogComponent`, `DslLinterComponent`, `VisualRuleBuilderComponent`, `TemplateGalleryComponent`, `TemplateEditorDialogComponent`, `TemplatePreviewDialogComponent`
|
|
333
333
|
- Services: `SpecificationBridgeService`, `RuleBuilderService`, `RoundTripValidatorService`, `ExportIntegrationService`, `WebhookIntegrationService`, `RuleTemplateService`, `RuleValidationService`, `RuleNodeRegistryService`, `ContextManagementService`, `FieldSchemaService`, `RuleConversionService`, `DslParsingService`
|
|
@@ -477,7 +477,7 @@ getContextProvider(): ContextProvider | undefined
|
|
|
477
477
|
### Custom Function Registry
|
|
478
478
|
|
|
479
479
|
```typescript
|
|
480
|
-
import { FunctionRegistry } from '@
|
|
480
|
+
import { FunctionRegistry } from '@praxisui/specification';
|
|
481
481
|
|
|
482
482
|
// Create custom function registry
|
|
483
483
|
const customRegistry = new FunctionRegistry();
|
|
@@ -509,7 +509,7 @@ customRegistry.register('dateAdd', {
|
|
|
509
509
|
### Custom Context Provider
|
|
510
510
|
|
|
511
511
|
```typescript
|
|
512
|
-
import { ContextProvider } from "@
|
|
512
|
+
import { ContextProvider } from "@praxisui/specification";
|
|
513
513
|
|
|
514
514
|
class DatabaseContextProvider implements ContextProvider {
|
|
515
515
|
private cache = new Map<string, any>();
|