@praxisui/visual-builder 0.0.1 → 1.0.0-beta.10

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/index.d.ts CHANGED
@@ -2743,7 +2743,7 @@ declare const createError: {
2743
2743
  internal: (message: string, cause?: Error) => InternalError;
2744
2744
  };
2745
2745
 
2746
- declare class RuleEditorComponent implements OnInit, OnDestroy {
2746
+ declare class RuleEditorComponent implements OnInit, OnDestroy, OnChanges {
2747
2747
  private ruleBuilderService;
2748
2748
  private fieldSchemaService;
2749
2749
  private snackBar;
@@ -2757,6 +2757,7 @@ declare class RuleEditorComponent implements OnInit, OnDestroy {
2757
2757
  importRequested: EventEmitter<ImportOptions>;
2758
2758
  private destroy$;
2759
2759
  currentState: RuleBuilderState | null;
2760
+ builderStateJson: any;
2760
2761
  validationErrors: ValidationError$1[];
2761
2762
  selectedNode: RuleNode | null;
2762
2763
  fieldSchemas: Record<string, FieldSchema>;
@@ -2768,8 +2769,10 @@ declare class RuleEditorComponent implements OnInit, OnDestroy {
2768
2769
  constructor(ruleBuilderService: RuleBuilderService, fieldSchemaService: FieldSchemaService, snackBar: MatSnackBar, fb: FormBuilder, dialog: MatDialog);
2769
2770
  ngOnInit(): void;
2770
2771
  ngOnDestroy(): void;
2772
+ ngOnChanges(changes: SimpleChanges): void;
2771
2773
  private setupSubscriptions;
2772
2774
  private initializeBuilder;
2775
+ private updateBuilderStateJson;
2773
2776
  private importInitialRules;
2774
2777
  private updateSelectedNode;
2775
2778
  trackByNodeId(index: number, nodeId: string): string;
@@ -3133,6 +3136,7 @@ declare class MetadataEditorComponent implements OnInit, OnChanges {
3133
3136
 
3134
3137
  declare class DslViewerComponent implements OnInit, OnChanges {
3135
3138
  private snackBar;
3139
+ private cdr;
3136
3140
  dsl: string;
3137
3141
  editable: boolean;
3138
3142
  language: string;
@@ -3159,7 +3163,7 @@ declare class DslViewerComponent implements OnInit, OnChanges {
3159
3163
  showLineNumbers: boolean;
3160
3164
  wordWrap: boolean;
3161
3165
  showMinimap: boolean;
3162
- constructor(snackBar: MatSnackBar);
3166
+ constructor(snackBar: MatSnackBar, cdr: ChangeDetectorRef);
3163
3167
  ngOnInit(): void;
3164
3168
  ngOnChanges(changes: SimpleChanges): void;
3165
3169
  ngOnDestroy(): void;
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "@praxisui/visual-builder",
3
- "version": "0.0.1",
3
+ "version": "1.0.0-beta.10",
4
+ "description": "Visual rule and expression builder for Praxis UI with mini-DSL support, validation and context variables.",
4
5
  "peerDependencies": {
5
6
  "@angular/common": "^20.0.0",
6
7
  "@angular/core": "^20.0.0",
7
8
  "@angular/cdk": "^20.0.0",
8
9
  "@angular/material": "^20.0.0",
9
10
  "@angular/forms": "^20.0.0",
10
- "@praxisui/specification-core": "*",
11
- "@praxisui/specification": "*",
12
- "@praxisui/settings-panel": "*"
11
+ "@praxisui/specification-core": "^1.0.0-beta.10",
12
+ "@praxisui/specification": "^1.0.0-beta.10",
13
+ "@praxisui/settings-panel": "^1.0.0-beta.10"
13
14
  },
14
15
  "dependencies": {
15
16
  "tslib": "^2.3.0",
@@ -27,6 +28,14 @@
27
28
  "bugs": {
28
29
  "url": "https://github.com/codexrodrigues/praxis/issues"
29
30
  },
31
+ "keywords": [
32
+ "angular",
33
+ "praxisui",
34
+ "visual-builder",
35
+ "rules",
36
+ "dsl",
37
+ "editor"
38
+ ],
30
39
  "sideEffects": false,
31
40
  "module": "fesm2022/praxisui-visual-builder.mjs",
32
41
  "typings": "index.d.ts",