ngx-dynamic-entity-builder 1.11.0 → 1.13.0

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,17 +1,17 @@
1
1
  {
2
2
  "name": "ngx-dynamic-entity-builder",
3
- "version": "1.11.0",
3
+ "version": "1.13.0",
4
4
  "description": "Angular standalone visual builder for authoring dynamic-entity EntityConfig (fields, tabs, validators, RBAC).",
5
5
  "//typings": "Local workspace resolution only: ng-packagr 21 writes types/ngx-dynamic-entity-builder.d.ts into dist/package.json. Do NOT add a 'main' field here — ng-packagr does not generate one, so it would be copied verbatim and resolve wrongly in the published package.",
6
6
  "typings": "types/ngx-dynamic-entity-builder.d.ts",
7
7
  "peerDependencies": {
8
8
  "@angular/cdk": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
9
9
  "@angular/common": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
10
- "@angular/core": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
10
+ "@angular/core": "^17.2.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
11
11
  "@angular/forms": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
12
12
  "@angular/material": "^17.0.0 || ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0 || ^22.0.0",
13
- "@dynamic-entity/core": "^1.11.0",
14
- "ngx-dynamic-entity": "^1.11.0",
13
+ "@dynamic-entity/core": "^1.13.0",
14
+ "ngx-dynamic-entity": "^1.13.0",
15
15
  "rxjs": "^7.0.0"
16
16
  },
17
17
  "keywords": [
@@ -393,6 +393,19 @@ declare const DEFAULT_BUILDER_TEXT: {
393
393
  copyJson: string;
394
394
  save: string;
395
395
  saveBlockedTooltip: string;
396
+ collapsePalette: string;
397
+ expandPalette: string;
398
+ collapseInspector: string;
399
+ expandInspector: string;
400
+ paletteRailLabel: string;
401
+ inspectorRailLabel: string;
402
+ collapseFields: string;
403
+ expandFields: string;
404
+ fieldsRailLabel: string;
405
+ collapsePreview: string;
406
+ expandPreview: string;
407
+ previewRailLabel: string;
408
+ previewHeading: string;
396
409
  entityName: string;
397
410
  entityNamePlaceholder: string;
398
411
  editingLanguage: string;
@@ -614,6 +627,8 @@ declare class EntityBuilderComponent implements OnChanges {
614
627
  * copy of a config the moment it is edited — see `doSave`.
615
628
  */
616
629
  private readonly configSource;
630
+ /** Scopes the focus lookup below to this builder, not the first match in the document. */
631
+ private readonly hostRef;
617
632
  /** Existing config to edit. When omitted, the builder starts blank. */
618
633
  config?: EntityFormConfig;
619
634
  /** Languages available for label/placeholder editing. First entry is the default. */
@@ -641,6 +656,24 @@ declare class EntityBuilderComponent implements OnChanges {
641
656
  /** Emitted when the user clicks Save. Carries a clean, deep-cloned config. */
642
657
  save: EventEmitter<EntityFormConfig>;
643
658
  protected readonly rbacActions: readonly RbacAction[];
659
+ readonly leftSidebarOpen: _angular_core.ModelSignal<boolean>;
660
+ readonly rightSidebarOpen: _angular_core.ModelSignal<boolean>;
661
+ readonly fieldsOpen: _angular_core.ModelSignal<boolean>;
662
+ readonly previewOpen: _angular_core.ModelSignal<boolean>;
663
+ toggleLeftSidebar(): void;
664
+ toggleRightSidebar(): void;
665
+ toggleFields(): void;
666
+ togglePreview(): void;
667
+ protected collapseLeft(): void;
668
+ protected expandLeft(): void;
669
+ protected collapseRight(): void;
670
+ protected expandRight(): void;
671
+ protected collapseFields(): void;
672
+ protected expandFields(): void;
673
+ protected collapsePreview(): void;
674
+ protected expandPreview(): void;
675
+ /** The replacement control does not exist until the template has caught up with the signal. */
676
+ private focusAfterRender;
644
677
  /**
645
678
  * Select the field an issue is about, so reading the message and acting on it are one step.
646
679
  *
@@ -666,7 +699,7 @@ declare class EntityBuilderComponent implements OnChanges {
666
699
  /** Parse a comma-separated role string into a trimmed, de-duplicated array. */
667
700
  protected setRolesFromText(action: RbacAction, text: string): void;
668
701
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityBuilderComponent, never>;
669
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityBuilderComponent, "ngx-entity-builder", never, { "config": { "alias": "config"; "required": false; }; "languages": { "alias": "languages"; "required": false; }; "uiLanguage": { "alias": "uiLanguage"; "required": false; }; "availableRoles": { "alias": "availableRoles"; "required": false; }; "userRoles": { "alias": "userRoles"; "required": false; }; "commonModules": { "alias": "commonModules"; "required": false; }; }, { "configChange": "configChange"; "save": "save"; }, never, ["[ngxBuilderPreview]"], true, never>;
702
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityBuilderComponent, "ngx-entity-builder", never, { "config": { "alias": "config"; "required": false; }; "languages": { "alias": "languages"; "required": false; }; "uiLanguage": { "alias": "uiLanguage"; "required": false; }; "availableRoles": { "alias": "availableRoles"; "required": false; }; "userRoles": { "alias": "userRoles"; "required": false; }; "commonModules": { "alias": "commonModules"; "required": false; }; "leftSidebarOpen": { "alias": "leftSidebarOpen"; "required": false; "isSignal": true; }; "rightSidebarOpen": { "alias": "rightSidebarOpen"; "required": false; "isSignal": true; }; "fieldsOpen": { "alias": "fieldsOpen"; "required": false; "isSignal": true; }; "previewOpen": { "alias": "previewOpen"; "required": false; "isSignal": true; }; }, { "configChange": "configChange"; "save": "save"; "leftSidebarOpen": "leftSidebarOpenChange"; "rightSidebarOpen": "rightSidebarOpenChange"; "fieldsOpen": "fieldsOpenChange"; "previewOpen": "previewOpenChange"; }, never, ["[ngxBuilderPreview]"], true, never>;
670
703
  }
671
704
 
672
705
  /**
@@ -969,6 +1002,7 @@ declare class EntityReferenceConfigComponent {
969
1002
  }
970
1003
 
971
1004
  declare class EntityBuilderCanvasComponent {
1005
+ collapse: EventEmitter<void>;
972
1006
  /** Builder chrome, overridable via BUILDER_TEXT. */
973
1007
  protected readonly ui: BuilderTextService;
974
1008
  protected readonly store: BuilderStore;
@@ -980,7 +1014,7 @@ declare class EntityBuilderCanvasComponent {
980
1014
  protected groupLabel(group: BuilderFieldGroup): string;
981
1015
  protected onDrop(tabId: string, event: CdkDragDrop<unknown>): void;
982
1016
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityBuilderCanvasComponent, never>;
983
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityBuilderCanvasComponent, "ngx-entity-builder-canvas", never, {}, {}, never, never, true, never>;
1017
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityBuilderCanvasComponent, "ngx-entity-builder-canvas", never, {}, { "collapse": "collapse"; }, never, never, true, never>;
984
1018
  }
985
1019
 
986
1020
  declare class EntityBuilderTreeNodeComponent {