From 4c3da97bd881b6edf505f99195bd7b65a61d78a3 Mon Sep 17 00:00:00 2001 From: ivanblinov2k17 Date: Fri, 4 Oct 2024 10:41:08 +0400 Subject: [PATCH] Core: fix imports for templates --- .../__internal/core/templates/m_bindable_template.ts | 10 +++++----- .../core/templates/m_child_default_template.ts | 2 +- .../js/__internal/core/templates/m_empty_template.ts | 4 ++-- .../__internal/core/templates/m_function_template.ts | 4 ++-- .../js/__internal/core/templates/m_template.ts | 8 ++++---- .../js/__internal/core/templates/m_template_base.ts | 12 ++++++------ .../core/templates/m_template_engine_registry.ts | 4 ++-- 7 files changed, 22 insertions(+), 22 deletions(-) diff --git a/packages/devextreme/js/__internal/core/templates/m_bindable_template.ts b/packages/devextreme/js/__internal/core/templates/m_bindable_template.ts index 6b7f12af5006..bd91bdb1a30e 100644 --- a/packages/devextreme/js/__internal/core/templates/m_bindable_template.ts +++ b/packages/devextreme/js/__internal/core/templates/m_bindable_template.ts @@ -1,8 +1,8 @@ -import eventsEngine from '../../events/core/events_engine'; -import { removeEvent } from '../../events/remove'; -import $ from '../renderer'; -import { isPrimitive } from '../utils/type'; -import { TemplateBase } from './template_base'; +import $ from '@js/core/renderer'; +import { TemplateBase } from '@js/core/templates/template_base'; +import { isPrimitive } from '@js/core/utils/type'; +import eventsEngine from '@js/events/core/events_engine'; +import { removeEvent } from '@js/events/remove'; const watchChanges = (function () { const globalWatch = (data, watchMethod, callback) => watchMethod(() => data, callback); diff --git a/packages/devextreme/js/__internal/core/templates/m_child_default_template.ts b/packages/devextreme/js/__internal/core/templates/m_child_default_template.ts index d87722001f5a..81e9037e14ad 100644 --- a/packages/devextreme/js/__internal/core/templates/m_child_default_template.ts +++ b/packages/devextreme/js/__internal/core/templates/m_child_default_template.ts @@ -1,4 +1,4 @@ -import { TemplateBase } from './template_base'; +import { TemplateBase } from '@js/core/templates/template_base'; export class ChildDefaultTemplate extends TemplateBase { constructor(name) { diff --git a/packages/devextreme/js/__internal/core/templates/m_empty_template.ts b/packages/devextreme/js/__internal/core/templates/m_empty_template.ts index c198207fd5d5..324cd5e7854a 100644 --- a/packages/devextreme/js/__internal/core/templates/m_empty_template.ts +++ b/packages/devextreme/js/__internal/core/templates/m_empty_template.ts @@ -1,5 +1,5 @@ -import $ from '../renderer'; -import { TemplateBase } from './template_base'; +import $ from '@js/core/renderer'; +import { TemplateBase } from '@js/core/templates/template_base'; export class EmptyTemplate extends TemplateBase { _renderCore() { diff --git a/packages/devextreme/js/__internal/core/templates/m_function_template.ts b/packages/devextreme/js/__internal/core/templates/m_function_template.ts index 508cf928a487..5aa6b2330142 100644 --- a/packages/devextreme/js/__internal/core/templates/m_function_template.ts +++ b/packages/devextreme/js/__internal/core/templates/m_function_template.ts @@ -1,5 +1,5 @@ -import { normalizeTemplateElement } from '../utils/dom'; -import { TemplateBase } from './template_base'; +import { TemplateBase } from '@js/core/templates/template_base'; +import { normalizeTemplateElement } from '@js/core/utils/dom'; export class FunctionTemplate extends TemplateBase { constructor(render) { diff --git a/packages/devextreme/js/__internal/core/templates/m_template.ts b/packages/devextreme/js/__internal/core/templates/m_template.ts index ad72b36a8e0b..1e3230bf940b 100644 --- a/packages/devextreme/js/__internal/core/templates/m_template.ts +++ b/packages/devextreme/js/__internal/core/templates/m_template.ts @@ -1,7 +1,7 @@ -import $ from '../renderer'; -import { normalizeTemplateElement } from '../utils/dom'; -import { TemplateBase } from './template_base'; -import { getCurrentTemplateEngine, registerTemplateEngine, setTemplateEngine } from './template_engine_registry'; +import $ from '@js/core/renderer'; +import { TemplateBase } from '@js/core/templates/template_base'; +import { getCurrentTemplateEngine, registerTemplateEngine, setTemplateEngine } from '@js/core/templates/template_engine_registry'; +import { normalizeTemplateElement } from '@js/core/utils/dom'; registerTemplateEngine('default', { compile: (element) => normalizeTemplateElement(element), diff --git a/packages/devextreme/js/__internal/core/templates/m_template_base.ts b/packages/devextreme/js/__internal/core/templates/m_template_base.ts index 92f6ce946fc8..ded10d1759c7 100644 --- a/packages/devextreme/js/__internal/core/templates/m_template_base.ts +++ b/packages/devextreme/js/__internal/core/templates/m_template_base.ts @@ -1,9 +1,9 @@ -import { triggerShownEvent } from '../../events/visibility_change'; -import domAdapter from '../dom_adapter'; -import errors from '../errors'; -import $ from '../renderer'; -import Callbacks from '../utils/callbacks'; -import { contains } from '../utils/dom'; +import domAdapter from '@js/core/dom_adapter'; +import errors from '@js/core/errors'; +import $ from '@js/core/renderer'; +import Callbacks from '@js/core/utils/callbacks'; +import { contains } from '@js/core/utils/dom'; +import { triggerShownEvent } from '@js/events/visibility_change'; export const renderedCallbacks = Callbacks({ syncStrategy: true }); diff --git a/packages/devextreme/js/__internal/core/templates/m_template_engine_registry.ts b/packages/devextreme/js/__internal/core/templates/m_template_engine_registry.ts index 8f9070ea9a2e..1500c021436e 100644 --- a/packages/devextreme/js/__internal/core/templates/m_template_engine_registry.ts +++ b/packages/devextreme/js/__internal/core/templates/m_template_engine_registry.ts @@ -1,5 +1,5 @@ -import errors from '../errors'; -import { isString } from '../utils/type'; +import errors from '@js/core/errors'; +import { isString } from '@js/core/utils/type'; const templateEngines = {}; let currentTemplateEngine;