From d8b7554409f206c6196eadf455933ea1e289bbac Mon Sep 17 00:00:00 2001 From: Eugen Neufeld Date: Tue, 13 Jul 2021 17:42:30 +0200 Subject: [PATCH] Add JsonFormsAbstractControl to exported classes The JsonFormsAbstractControl was not exported by the angular package. This lead to duplicate instances of the angular package when using the ArrayLayoutRenderer and thus to the ArrayLayoutRenderer not working. By not using a deep import in the ArrayLayoutRenderer only one instance of the angular package exists. Fix #1781 --- packages/angular-material/src/layouts/array-layout.renderer.ts | 3 +-- packages/angular/src/index.ts | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/angular-material/src/layouts/array-layout.renderer.ts b/packages/angular-material/src/layouts/array-layout.renderer.ts index d6feb028a..3b7cd8250 100644 --- a/packages/angular-material/src/layouts/array-layout.renderer.ts +++ b/packages/angular-material/src/layouts/array-layout.renderer.ts @@ -28,8 +28,7 @@ import { OnDestroy, OnInit } from '@angular/core'; -import { JsonFormsAngularService } from '@jsonforms/angular'; -import { JsonFormsAbstractControl } from '@jsonforms/angular/lib/abstract-control'; +import { JsonFormsAngularService, JsonFormsAbstractControl } from '@jsonforms/angular'; import { ArrayLayoutProps, createDefaultValue, diff --git a/packages/angular/src/index.ts b/packages/angular/src/index.ts index 24de9017d..c68de6b6b 100644 --- a/packages/angular/src/index.ts +++ b/packages/angular/src/index.ts @@ -30,3 +30,4 @@ export * from './jsonforms.module'; export * from './unknown.component'; export * from './jsonforms.service'; export * from './jsonforms-root.component'; +export * from './abstract-control';