Validation: Fixes circular dependencies in the validation module (#18774)

* fixes circular dependencies in the validation module

* Update bind-to-validation.lit-directive.ts
This commit is contained in:
Mads Rasmussen
2025-03-24 14:39:18 +01:00
committed by GitHub
parent ee496d2730
commit 0b6fe91fd3
3 changed files with 6 additions and 6 deletions

View File

@@ -1,14 +1,14 @@
import type { UmbValidator } from '../interfaces/validator.interface.js';
import type { UmbValidationPathTranslator } from '../types.js';
import { UmbValidationPathTranslationController } from '../controllers/validation-path-translation/index.js';
import { UMB_VALIDATION_CONTEXT } from './validation.context-token.js';
import { UMB_SERVER_MODEL_VALIDATOR_CONTEXT } from './server-model-validator.context-token.js';
import type { UmbValidationMessage } from './validation-messages.manager.js';
import { UmbContextBase } from '@umbraco-cms/backoffice/class-api';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
import type { UmbDataSourceResponse } from '@umbraco-cms/backoffice/repository';
import type { UmbValidationMessage } from './validation-messages.manager.js';
import type { UmbValidationPathTranslator } from '../types.js';
import type { ClassConstructor } from '@umbraco-cms/backoffice/extension-api';
import { UmbId } from '@umbraco-cms/backoffice/id';
import { UmbValidationPathTranslationController } from '../index.js';
/** This should ideally be generated by the server, but we currently don't generate error-model-types. */
interface ValidateErrorResponseBodyModel {

View File

@@ -1,7 +1,7 @@
import type { UmbFormControlMixinInterface } from '../mixins/index.js';
import { UmbBindServerValidationToFormControl, UmbFormControlValidator } from '../controllers/index.js';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
import { AsyncDirective, directive, nothing, type ElementPart } from '@umbraco-cms/backoffice/external/lit';
import type { UmbFormControlMixinInterface } from '@umbraco-cms/backoffice/validation';
import { UmbBindServerValidationToFormControl, UmbFormControlValidator } from '@umbraco-cms/backoffice/validation';
/**
* The `bind to validation` directive connects the Form Control Element to closets Validation Context.

View File

@@ -1,4 +1,4 @@
import { UMB_VALIDATION_CONTEXT } from '../index.js';
import { UMB_VALIDATION_CONTEXT } from '../context/index.js';
import type { UmbValidationMessageTranslator } from './validation-message-path-translator.interface.js';
import type { UmbControllerAlias, UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';