any
diff --git a/projects/cdk/utils/miscellaneous/nullable-same.ts b/projects/cdk/utils/miscellaneous/nullable-same.ts
index 247c6e37c17c..98167082c154 100644
--- a/projects/cdk/utils/miscellaneous/nullable-same.ts
+++ b/projects/cdk/utils/miscellaneous/nullable-same.ts
@@ -1,7 +1,6 @@
import {TuiIdentityMatcher} from '@taiga-ui/cdk/types';
/**
- * @deprecated: use {@link tuiNullableSame} instead
* Checks identity for nullable elements.
*
* @param a element a
@@ -9,8 +8,7 @@ import {TuiIdentityMatcher} from '@taiga-ui/cdk/types';
* @param handler called if both elements are not null
* @return true if either both are null or they pass identity handler
*/
-// eslint-disable-next-line @typescript-eslint/naming-convention
-export function nullableSame
(
+export function tuiNullableSame(
a: T | null,
b: T | null,
handler: TuiIdentityMatcher,
@@ -25,5 +23,3 @@ export function nullableSame(
return handler(a, b);
}
-
-export const tuiNullableSame = nullableSame;
diff --git a/projects/cdk/utils/miscellaneous/test/nullable-same.spec.ts b/projects/cdk/utils/miscellaneous/test/nullable-same.spec.ts
index 86291bbd1b6c..1b967a7e8ec0 100644
--- a/projects/cdk/utils/miscellaneous/test/nullable-same.spec.ts
+++ b/projects/cdk/utils/miscellaneous/test/nullable-same.spec.ts
@@ -1,6 +1,6 @@
-import {nullableSame} from '../nullable-same';
+import {tuiNullableSame} from '../nullable-same';
-describe(`nullableSame`, () => {
+describe('nullableSame', () => {
interface Test {
readonly id: number;
}
@@ -12,27 +12,27 @@ describe(`nullableSame`, () => {
const value1: Test = {id: 1};
const value2: Test = {id: 2};
- describe(`returns true if`, () => {
- it(`a = null, b = null`, () => {
- expect(nullableSame(null, null, testMather)).toBe(true);
+ describe('returns true if', () => {
+ it('a = null, b = null', () => {
+ expect(tuiNullableSame(null, null, testMather)).toBe(true);
});
- it(`a = {id: 1}, b = {id: 1}`, () => {
- expect(nullableSame(value1, value1, testMather)).toBe(true);
+ it('a = {id: 1}, b = {id: 1}', () => {
+ expect(tuiNullableSame(value1, value1, testMather)).toBe(true);
});
});
- describe(`returns false if`, () => {
- it(`a = {id: 1}, b = null`, () => {
- expect(nullableSame(value1, null, testMather)).toBe(false);
+ describe('returns false if', () => {
+ it('a = {id: 1}, b = null', () => {
+ expect(tuiNullableSame(value1, null, testMather)).toBe(false);
});
- it(`a = null, b = {id: 1}`, () => {
- expect(nullableSame(null, value1, testMather)).toBe(false);
+ it('a = null, b = {id: 1}', () => {
+ expect(tuiNullableSame(null, value1, testMather)).toBe(false);
});
- it(`a = {id: 1}, b = {id: 2}`, () => {
- expect(nullableSame(value1, value2, testMather)).toBe(false);
+ it('a = {id: 1}, b = {id: 2}', () => {
+ expect(tuiNullableSame(value1, value2, testMather)).toBe(false);
});
});
});
diff --git a/projects/core/components/button/button.template.html b/projects/core/components/button/button.template.html
index c7de77289ebd..6649ce7a25b1 100644
--- a/projects/core/components/button/button.template.html
+++ b/projects/core/components/button/button.template.html
@@ -1,9 +1,10 @@
-
@@ -42,4 +43,4 @@
[size]="loaderSize"
[inheritColor]="true"
>
-
+
diff --git a/projects/core/components/calendar/calendar.component.ts b/projects/core/components/calendar/calendar.component.ts
index a94150d04053..8a912ddc9bcb 100644
--- a/projects/core/components/calendar/calendar.component.ts
+++ b/projects/core/components/calendar/calendar.component.ts
@@ -7,7 +7,6 @@ import {
} from '@angular/core';
import {
ALWAYS_FALSE_HANDLER,
- nullableSame,
TUI_FIRST_DAY,
TUI_LAST_DAY,
TuiBooleanHandler,
@@ -16,6 +15,7 @@ import {
tuiDefaultProp,
TuiMapper,
TuiMonth,
+ tuiNullableSame,
TuiYear,
} from '@taiga-ui/cdk';
import {TUI_DEFAULT_MARKER_HANDLER} from '@taiga-ui/core/constants';
@@ -130,7 +130,7 @@ export class TuiCalendarComponent implements TuiWithOptionalMinMax