ngx-dynamic-entity-builder 1.11.0 → 1.12.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.12.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.12.0",
14
+ "ngx-dynamic-entity": "^1.12.0",
15
15
  "rxjs": "^7.0.0"
16
16
  },
17
17
  "keywords": [
@@ -393,6 +393,12 @@ 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;
396
402
  entityName: string;
397
403
  entityNamePlaceholder: string;
398
404
  editingLanguage: string;
@@ -614,6 +620,8 @@ declare class EntityBuilderComponent implements OnChanges {
614
620
  * copy of a config the moment it is edited — see `doSave`.
615
621
  */
616
622
  private readonly configSource;
623
+ /** Scopes the focus lookup below to this builder, not the first match in the document. */
624
+ private readonly hostRef;
617
625
  /** Existing config to edit. When omitted, the builder starts blank. */
618
626
  config?: EntityFormConfig;
619
627
  /** Languages available for label/placeholder editing. First entry is the default. */
@@ -641,6 +649,16 @@ declare class EntityBuilderComponent implements OnChanges {
641
649
  /** Emitted when the user clicks Save. Carries a clean, deep-cloned config. */
642
650
  save: EventEmitter<EntityFormConfig>;
643
651
  protected readonly rbacActions: readonly RbacAction[];
652
+ readonly leftSidebarOpen: _angular_core.ModelSignal<boolean>;
653
+ readonly rightSidebarOpen: _angular_core.ModelSignal<boolean>;
654
+ toggleLeftSidebar(): void;
655
+ toggleRightSidebar(): void;
656
+ protected collapseLeft(): void;
657
+ protected expandLeft(): void;
658
+ protected collapseRight(): void;
659
+ protected expandRight(): void;
660
+ /** The replacement control does not exist until the template has caught up with the signal. */
661
+ private focusAfterRender;
644
662
  /**
645
663
  * Select the field an issue is about, so reading the message and acting on it are one step.
646
664
  *
@@ -666,7 +684,7 @@ declare class EntityBuilderComponent implements OnChanges {
666
684
  /** Parse a comma-separated role string into a trimmed, de-duplicated array. */
667
685
  protected setRolesFromText(action: RbacAction, text: string): void;
668
686
  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>;
687
+ 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; }; }, { "configChange": "configChange"; "save": "save"; "leftSidebarOpen": "leftSidebarOpenChange"; "rightSidebarOpen": "rightSidebarOpenChange"; }, never, ["[ngxBuilderPreview]"], true, never>;
670
688
  }
671
689
 
672
690
  /**