[AAE-7119] Fix circular dependencies (#7472)

* fix language item dependency

* fix public-api export

* dependency fixes

* fix circular deps

* fix circular deps

* fix circular deps

* fix circular deps

* fix circular dependency

* workaround for circular deps

* fix lint
This commit is contained in:
Denys Vuika
2022-01-28 14:14:42 +00:00
committed by GitHub
parent e8871e7867
commit 3aa629d4be
27 changed files with 144 additions and 56 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { FormModel } from './../components/widgets/core/index';
import { FormModel } from '../components/widgets/core/form.model';
import { FormEvent } from './form.event';
export class FormErrorEvent extends FormEvent {

View File

@@ -15,14 +15,14 @@
* limitations under the License.
*/
import { FormFieldModel, FormModel } from './../components/widgets/core/index';
import { FormFieldModel } from '../components/widgets/core/form-field.model';
import { FormEvent } from './form.event';
export class FormFieldEvent extends FormEvent {
readonly field: FormFieldModel;
constructor(form: FormModel, field: FormFieldModel) {
constructor(form: any, field: FormFieldModel) {
super(form);
this.field = field;
}

View File

@@ -15,15 +15,13 @@
* limitations under the License.
*/
import { FormModel } from './../components/widgets/core/index';
export class FormEvent {
private isDefaultPrevented: boolean = false;
readonly form: FormModel;
readonly form: any;
constructor(form: FormModel) {
constructor(form: any) {
this.form = form;
}

View File

@@ -15,10 +15,10 @@
* limitations under the License.
*/
import { FormFieldModel } from '../components/widgets/core/form-field.model';
import { FormModel } from '../components/widgets/core/form.model';
import { DynamicRowValidationSummary } from '../components/widgets/dynamic-table/dynamic-row-validation-summary.model';
import { DynamicTableRow } from '../components/widgets/dynamic-table/dynamic-table-row.model';
import { FormFieldModel, FormModel } from './../components/widgets/core/index';
import { FormFieldEvent } from './form-field.event';
export class ValidateDynamicTableRowEvent extends FormFieldEvent {

View File

@@ -15,14 +15,14 @@
* limitations under the License.
*/
import { FormFieldModel, FormModel } from './../components/widgets/core/index';
import { FormFieldModel } from '../components/widgets/core/form-field.model';
import { FormFieldEvent } from './form-field.event';
export class ValidateFormFieldEvent extends FormFieldEvent {
isValid = true;
constructor(form: FormModel, field: FormFieldModel) {
constructor(form: any, field: FormFieldModel) {
super(form, field);
}

View File

@@ -15,7 +15,6 @@
* limitations under the License.
*/
import { FormModel } from './../components/widgets/core/index';
import { FormEvent } from './form.event';
import { FormFieldModel } from '../components/widgets/core/form-field.model';
@@ -24,7 +23,7 @@ export class ValidateFormEvent extends FormEvent {
isValid = true;
errorsField: FormFieldModel[] = [];
constructor(form: FormModel) {
constructor(form: any) {
super(form);
}
}