diff --git a/projects/cdk/utils/focus/blur-native-focused.ts b/projects/cdk/utils/focus/blur-native-focused.ts index 00d57c59e5084..2d275a3cfe821 100644 --- a/projects/cdk/utils/focus/blur-native-focused.ts +++ b/projects/cdk/utils/focus/blur-native-focused.ts @@ -1,5 +1,4 @@ -import {setNativeFocused} from './set-native-focused'; -import {tuiGetNativeFocused} from './tui-get-native-focused'; +import {tuiGetNativeFocused} from './get-native-focused'; /** * @deprecated: use {@link tuiBlurNativeFocused} instead @@ -11,7 +10,7 @@ export function blurNativeFocused(documentRef: Document): void { // TODO: iframe warning if (activeElement instanceof HTMLElement) { - setNativeFocused(activeElement, false); + activeElement.blur(); } } diff --git a/projects/cdk/utils/focus/tui-get-native-focused.ts b/projects/cdk/utils/focus/get-native-focused.ts similarity index 100% rename from projects/cdk/utils/focus/tui-get-native-focused.ts rename to projects/cdk/utils/focus/get-native-focused.ts diff --git a/projects/cdk/utils/focus/index.ts b/projects/cdk/utils/focus/index.ts index a2622fa33b9e9..d307da501d20e 100644 --- a/projects/cdk/utils/focus/index.ts +++ b/projects/cdk/utils/focus/index.ts @@ -1,10 +1,10 @@ export * from './blur-native-focused'; export * from './get-closest-keyboard-focusable'; +export * from './get-native-focused'; +export * from './is-native-focused'; +export * from './is-native-focused-in'; export * from './is-native-keyboard-focusable'; export * from './is-native-mouse-focusable'; export * from './move-focus'; export * from './set-native-focused'; export * from './set-native-mouse-focused'; -export * from './tui-get-native-focused'; -export * from './tui-is-native-focused'; -export * from './tui-is-native-focused-in'; diff --git a/projects/cdk/utils/focus/tui-is-native-focused-in.ts b/projects/cdk/utils/focus/is-native-focused-in.ts similarity index 89% rename from projects/cdk/utils/focus/tui-is-native-focused-in.ts rename to projects/cdk/utils/focus/is-native-focused-in.ts index 55bb061ad88dc..fcb4b869c5ccd 100644 --- a/projects/cdk/utils/focus/tui-is-native-focused-in.ts +++ b/projects/cdk/utils/focus/is-native-focused-in.ts @@ -1,4 +1,4 @@ -import {tuiGetNativeFocused} from './tui-get-native-focused'; +import {tuiGetNativeFocused} from './get-native-focused'; /** * Checks if focused element is within given element. diff --git a/projects/cdk/utils/focus/tui-is-native-focused.ts b/projects/cdk/utils/focus/is-native-focused.ts similarity index 88% rename from projects/cdk/utils/focus/tui-is-native-focused.ts rename to projects/cdk/utils/focus/is-native-focused.ts index d320f277deee5..697f753515393 100644 --- a/projects/cdk/utils/focus/tui-is-native-focused.ts +++ b/projects/cdk/utils/focus/is-native-focused.ts @@ -1,4 +1,4 @@ -import {tuiGetNativeFocused} from './tui-get-native-focused'; +import {tuiGetNativeFocused} from './get-native-focused'; /** * Checks if element is focused. diff --git a/projects/cdk/utils/focus/move-focus.ts b/projects/cdk/utils/focus/move-focus.ts index 0ae9b3a4d1f8d..4301d9dd1906f 100644 --- a/projects/cdk/utils/focus/move-focus.ts +++ b/projects/cdk/utils/focus/move-focus.ts @@ -1,5 +1,5 @@ +import {tuiIsNativeFocused} from './is-native-focused'; import {setNativeFocused} from './set-native-focused'; -import {tuiIsNativeFocused} from './tui-is-native-focused'; /** * @deprecated: use {@link tuiMoveFocus} instead diff --git a/projects/cdk/utils/focus/tests/get-native-focused.spec.ts b/projects/cdk/utils/focus/tests/get-native-focused.spec.ts index df2904aad6409..dbdb27f6bdbee 100644 --- a/projects/cdk/utils/focus/tests/get-native-focused.spec.ts +++ b/projects/cdk/utils/focus/tests/get-native-focused.spec.ts @@ -1,4 +1,4 @@ -import {tuiGetNativeFocused} from '../tui-get-native-focused'; +import {tuiGetNativeFocused} from '../get-native-focused'; describe('getNativeFocused', () => { it('returns active focused element in document', () => { diff --git a/projects/cdk/utils/focus/tests/is-native-focused-in.spec.ts b/projects/cdk/utils/focus/tests/is-native-focused-in.spec.ts index 0913b029b2ae1..71b707852aca1 100644 --- a/projects/cdk/utils/focus/tests/is-native-focused-in.spec.ts +++ b/projects/cdk/utils/focus/tests/is-native-focused-in.spec.ts @@ -1,4 +1,4 @@ -import {tuiIsNativeFocusedIn} from '../tui-is-native-focused-in'; +import {tuiIsNativeFocusedIn} from '../is-native-focused-in'; describe('isNativeFocusedIn', () => { it('element is not focused in', () => { diff --git a/projects/kit/components/input-file/input-file.component.ts b/projects/kit/components/input-file/input-file.component.ts deleted file mode 100644 index e69de29bb2d1d..0000000000000