diff --git a/package-lock.json b/package-lock.json index 13c2c27e9703..3a6c276fb1fe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "@taiga-ui/browserslist-config": "0.6.0", "@taiga-ui/commitlint-config": "0.7.1", "@taiga-ui/cspell-config": "0.36.0", - "@taiga-ui/eslint-plugin-experience": "0.64.0", + "@taiga-ui/eslint-plugin-experience": "0.65.0", "@taiga-ui/prettier-config": "0.10.0", "@taiga-ui/stylelint-config": "0.20.0", "@taiga-ui/tsconfig": "0.17.0", @@ -9970,9 +9970,9 @@ "link": true }, "node_modules/@taiga-ui/eslint-plugin-experience": { - "version": "0.64.0", - "resolved": "https://registry.npmjs.org/@taiga-ui/eslint-plugin-experience/-/eslint-plugin-experience-0.64.0.tgz", - "integrity": "sha512-D3LK0pH7qL0iy3QNyjw3Yohh3NKPvDD5ed4L/R3dTf9f6JAf53k0OSYKgdZbDQSElFqH8eXmvFIO9FoMguAaOg==", + "version": "0.65.0", + "resolved": "https://registry.npmjs.org/@taiga-ui/eslint-plugin-experience/-/eslint-plugin-experience-0.65.0.tgz", + "integrity": "sha512-UW+k8AzRT4gFYgI6pdZR2EZ2K3ZgFWHDUQHVv6d362/ghAZSS0l5E7vYs797Ozy4cN+Lz+b+uqAF3TYE0+yHlQ==", "dev": true, "peerDependencies": { "@angular-eslint/eslint-plugin": "^17.2.1", @@ -19152,9 +19152,6 @@ "integrity": "sha512-LtOB9myIX1O7HHqg9vtvBLjvXq1MXKuXIcD1nS+qZiMUJV6s9HBdilURAr9pIFc9kEelbVF54hOJ8pMxHvJP7g==", "dev": true, "peer": true, - "workspaces": [ - "examples" - ], "dependencies": { "globals": "^13.23.0" }, diff --git a/package.json b/package.json index 60cf3f0d32f7..fa7298d8ab29 100644 --- a/package.json +++ b/package.json @@ -116,7 +116,7 @@ "@taiga-ui/browserslist-config": "0.6.0", "@taiga-ui/commitlint-config": "0.7.1", "@taiga-ui/cspell-config": "0.36.0", - "@taiga-ui/eslint-plugin-experience": "0.64.0", + "@taiga-ui/eslint-plugin-experience": "0.65.0", "@taiga-ui/prettier-config": "0.10.0", "@taiga-ui/stylelint-config": "0.20.0", "@taiga-ui/tsconfig": "0.17.0", diff --git a/projects/addon-charts/components/arc-chart/arc-chart.component.ts b/projects/addon-charts/components/arc-chart/arc-chart.component.ts index dcf581b3246d..9e16d3c4ef3d 100644 --- a/projects/addon-charts/components/arc-chart/arc-chart.component.ts +++ b/projects/addon-charts/components/arc-chart/arc-chart.component.ts @@ -1,22 +1,22 @@ +import type {ElementRef, QueryList} from '@angular/core'; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, - type ElementRef, HostBinding, inject, Input, Output, - type QueryList, ViewChildren, } from '@angular/core'; -import {DomSanitizer, type SafeValue} from '@angular/platform-browser'; +import type {SafeValue} from '@angular/platform-browser'; +import {DomSanitizer} from '@angular/platform-browser'; import {TuiDestroyService, tuiTypedFromEvent, tuiWatch} from '@taiga-ui/cdk'; -import {type TuiSizeXL} from '@taiga-ui/core'; +import type {TuiSizeXL} from '@taiga-ui/core'; +import type {Observable} from 'rxjs'; import { map, merge, - type Observable, ReplaySubject, startWith, switchMap, diff --git a/projects/addon-charts/components/axes/axes.component.ts b/projects/addon-charts/components/axes/axes.component.ts index a835dca9bfe2..41e1a44d6448 100644 --- a/projects/addon-charts/components/axes/axes.component.ts +++ b/projects/addon-charts/components/axes/axes.component.ts @@ -6,7 +6,7 @@ import { Input, } from '@angular/core'; import {TUI_ALWAYS_DASHED, TUI_ALWAYS_SOLID} from '@taiga-ui/addon-charts/constants'; -import {type TuiLineHandler, type TuiLineType} from '@taiga-ui/addon-charts/types'; +import type {TuiLineHandler, TuiLineType} from '@taiga-ui/addon-charts/types'; import {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk'; import {MODE_PROVIDER, TUI_MODE} from '@taiga-ui/core'; diff --git a/projects/addon-charts/components/axes/test/axes.component.spec.ts b/projects/addon-charts/components/axes/test/axes.component.spec.ts index bfec54fba157..c2269b75bead 100644 --- a/projects/addon-charts/components/axes/test/axes.component.spec.ts +++ b/projects/addon-charts/components/axes/test/axes.component.spec.ts @@ -1,6 +1,8 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; -import {type TuiAxesComponent, TuiAxesModule} from '@taiga-ui/addon-charts'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; +import type {TuiAxesComponent} from '@taiga-ui/addon-charts'; +import {TuiAxesModule} from '@taiga-ui/addon-charts'; import {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk'; describe('Axes', () => { diff --git a/projects/addon-charts/components/bar-chart/bar-chart.component.ts b/projects/addon-charts/components/bar-chart/bar-chart.component.ts index 72a8a5a5381b..087036037b16 100644 --- a/projects/addon-charts/components/bar-chart/bar-chart.component.ts +++ b/projects/addon-charts/components/bar-chart/bar-chart.component.ts @@ -1,28 +1,21 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, inject, Input, - type QueryList, ViewChildren, } from '@angular/core'; -import { - EMPTY_QUERY, - type TuiContext, - TuiIdService, - tuiPure, - tuiSum, - type TuiTypedMapper, -} from '@taiga-ui/cdk'; +import type {TuiContext, TuiTypedMapper} from '@taiga-ui/cdk'; +import {EMPTY_QUERY, TuiIdService, tuiPure, tuiSum} from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import { TuiHintHoverDirective, TuiHintOptionsDirective, tuiHintOptionsProvider, - type TuiSizeL, - type TuiSizeS, } from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {type Observable} from 'rxjs'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; @Component({ selector: 'tui-bar-chart', diff --git a/projects/addon-charts/components/bar-chart/test/bar-chart.component.spec.ts b/projects/addon-charts/components/bar-chart/test/bar-chart.component.spec.ts index 2b955a03f56a..87e09e3ebd2f 100644 --- a/projects/addon-charts/components/bar-chart/test/bar-chart.component.spec.ts +++ b/projects/addon-charts/components/bar-chart/test/bar-chart.component.spec.ts @@ -1,5 +1,6 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {TuiBarChartComponent, TuiBarChartModule} from '@taiga-ui/addon-charts'; describe('BarChart', () => { diff --git a/projects/addon-charts/components/bar-set/bar-set.component.ts b/projects/addon-charts/components/bar-set/bar-set.component.ts index 1a0a05a339a0..cc696bb809b6 100644 --- a/projects/addon-charts/components/bar-set/bar-set.component.ts +++ b/projects/addon-charts/components/bar-set/bar-set.component.ts @@ -1,7 +1,7 @@ import {ChangeDetectionStrategy, Component, Input} from '@angular/core'; -import {type SafeValue} from '@angular/platform-browser'; +import type {SafeValue} from '@angular/platform-browser'; import {tuiPure} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; const PERCENT = 100; const EMPTY_ARRAY: readonly number[] = []; diff --git a/projects/addon-charts/components/bar-set/test/bar-set.component.spec.ts b/projects/addon-charts/components/bar-set/test/bar-set.component.spec.ts index fc7ec2acfc2c..a521525eec19 100644 --- a/projects/addon-charts/components/bar-set/test/bar-set.component.spec.ts +++ b/projects/addon-charts/components/bar-set/test/bar-set.component.spec.ts @@ -1,5 +1,6 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import {TuiBarSetComponent, TuiBarSetModule} from '@taiga-ui/addon-charts'; diff --git a/projects/addon-charts/components/bar/bar.component.ts b/projects/addon-charts/components/bar/bar.component.ts index afd91740db42..b3e317622dbc 100644 --- a/projects/addon-charts/components/bar/bar.component.ts +++ b/projects/addon-charts/components/bar/bar.component.ts @@ -1,7 +1,7 @@ import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core'; -import {type SafeValue} from '@angular/platform-browser'; +import type {SafeValue} from '@angular/platform-browser'; import {tuiPure, tuiSum} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'tui-bar', diff --git a/projects/addon-charts/components/legend-item/legend-item.component.ts b/projects/addon-charts/components/legend-item/legend-item.component.ts index 86b96de2f322..f8f5f788bf89 100644 --- a/projects/addon-charts/components/legend-item/legend-item.component.ts +++ b/projects/addon-charts/components/legend-item/legend-item.component.ts @@ -1,5 +1,5 @@ import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core'; -import {type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'tui-legend-item', diff --git a/projects/addon-charts/components/line-chart/line-chart-hint.directive.ts b/projects/addon-charts/components/line-chart/line-chart-hint.directive.ts index 8da237ac7342..fce8bdc530d8 100644 --- a/projects/addon-charts/components/line-chart/line-chart-hint.directive.ts +++ b/projects/addon-charts/components/line-chart/line-chart-hint.directive.ts @@ -1,5 +1,5 @@ +import type {AfterViewInit, QueryList} from '@angular/core'; import { - type AfterViewInit, ContentChildren, Directive, ElementRef, @@ -7,26 +7,25 @@ import { inject, Input, NgZone, - type QueryList, Renderer2, } from '@angular/core'; +import type {TuiContext} from '@taiga-ui/cdk'; import { EMPTY_QUERY, - type TuiContext, TuiDestroyService, TuiHoveredService, tuiPure, tuiQueryListChanges, tuiZonefree, } from '@taiga-ui/cdk'; -import {type TuiPoint} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiPoint} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; import { combineLatest, distinctUntilChanged, filter, map, - type Observable, startWith, switchMap, takeUntil, diff --git a/projects/addon-charts/components/line-chart/line-chart.component.ts b/projects/addon-charts/components/line-chart/line-chart.component.ts index 009498e2e182..7fab018ce464 100644 --- a/projects/addon-charts/components/line-chart/line-chart.component.ts +++ b/projects/addon-charts/components/line-chart/line-chart.component.ts @@ -1,3 +1,4 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, @@ -5,27 +6,27 @@ import { inject, Input, NgZone, - type QueryList, ViewChildren, } from '@angular/core'; -import {type TuiLineChartHintContext} from '@taiga-ui/addon-charts/interfaces'; +import type {TuiLineChartHintContext} from '@taiga-ui/addon-charts/interfaces'; import {tuiDraw} from '@taiga-ui/addon-charts/utils'; +import type {TuiStringHandler} from '@taiga-ui/cdk'; import { EMPTY_QUERY, TuiIdService, tuiIsPresent, tuiPure, - type TuiStringHandler, tuiZoneOptimized, } from '@taiga-ui/cdk'; +import type {TuiPoint} from '@taiga-ui/core'; import { TuiHintHoverDirective, TuiHintOptionsDirective, tuiHintOptionsProvider, - type TuiPoint, } from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {distinctUntilChanged, type Observable, Subject} from 'rxjs'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; +import {distinctUntilChanged, Subject} from 'rxjs'; import {TUI_LINE_CHART_OPTIONS} from './line-chart.options'; import {TuiLineChartHintDirective} from './line-chart-hint.directive'; diff --git a/projects/addon-charts/components/line-chart/line-chart.options.ts b/projects/addon-charts/components/line-chart/line-chart.options.ts index f1c43484e2b6..6cc0cc703215 100644 --- a/projects/addon-charts/components/line-chart/line-chart.options.ts +++ b/projects/addon-charts/components/line-chart/line-chart.options.ts @@ -1,4 +1,4 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiLineChartOptions { diff --git a/projects/addon-charts/components/line-days-chart/line-days-chart-hint.directive.ts b/projects/addon-charts/components/line-days-chart/line-days-chart-hint.directive.ts index 1e88a45cc8ad..c8518d41396a 100644 --- a/projects/addon-charts/components/line-days-chart/line-days-chart-hint.directive.ts +++ b/projects/addon-charts/components/line-days-chart/line-days-chart-hint.directive.ts @@ -1,25 +1,23 @@ +import type {AfterContentInit, QueryList} from '@angular/core'; import { - type AfterContentInit, ContentChildren, Directive, forwardRef, inject, Input, NgZone, - type QueryList, } from '@angular/core'; import {tuiLineChartDrivers} from '@taiga-ui/addon-charts/components/line-chart'; +import type {TuiContext, TuiDay} from '@taiga-ui/cdk'; import { EMPTY_QUERY, - type TuiContext, - type TuiDay, TuiDestroyService, TuiHoveredService, tuiPure, tuiZonefree, } from '@taiga-ui/cdk'; -import {type TuiPoint} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiPoint} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {combineLatest, filter, takeUntil} from 'rxjs'; import {TuiLineDaysChartComponent} from './line-days-chart.component'; diff --git a/projects/addon-charts/components/line-days-chart/line-days-chart.component.ts b/projects/addon-charts/components/line-days-chart/line-days-chart.component.ts index 2d0c421c0302..26c5ed39d3ae 100644 --- a/projects/addon-charts/components/line-days-chart/line-days-chart.component.ts +++ b/projects/addon-charts/components/line-days-chart/line-days-chart.component.ts @@ -1,12 +1,11 @@ +import type {AfterViewInit, QueryList} from '@angular/core'; import { - type AfterViewInit, ChangeDetectionStrategy, Component, HostBinding, inject, Input, NgZone, - type QueryList, ViewChildren, } from '@angular/core'; import { @@ -15,10 +14,10 @@ import { tuiLineChartDrivers, TuiLineChartHintDirective, } from '@taiga-ui/addon-charts/components/line-chart'; +import type {TuiContext, TuiStringHandler} from '@taiga-ui/cdk'; import { EMPTY_ARRAY, EMPTY_QUERY, - type TuiContext, TuiDay, TuiDestroyService, TuiHoveredService, @@ -26,11 +25,10 @@ import { tuiIsPresent, TuiMonth, tuiPure, - type TuiStringHandler, tuiZonefree, } from '@taiga-ui/cdk'; -import {type TuiPoint} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiPoint} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {combineLatest, filter, takeUntil} from 'rxjs'; import {TuiLineDaysChartHintDirective} from './line-days-chart-hint.directive'; diff --git a/projects/addon-charts/components/pie-chart/pie-chart.component.ts b/projects/addon-charts/components/pie-chart/pie-chart.component.ts index 83981557a1d3..6cc1d5df1c1c 100644 --- a/projects/addon-charts/components/pie-chart/pie-chart.component.ts +++ b/projects/addon-charts/components/pie-chart/pie-chart.component.ts @@ -7,15 +7,12 @@ import { Input, Output, } from '@angular/core'; -import {type SafeValue} from '@angular/platform-browser'; -import {type TuiContext, TuiIdService, tuiPure, tuiSum} from '@taiga-ui/cdk'; -import { - TuiHintOptionsDirective, - tuiHintOptionsProvider, - type TuiSizeXL, - type TuiSizeXS, -} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {SafeValue} from '@angular/platform-browser'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {TuiIdService, tuiPure, tuiSum} from '@taiga-ui/cdk'; +import type {TuiSizeXL, TuiSizeXS} from '@taiga-ui/core'; +import {TuiHintOptionsDirective, tuiHintOptionsProvider} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; const RADII = { xs: '50', diff --git a/projects/addon-charts/components/pie-chart/test/pie-chart.component.spec.ts b/projects/addon-charts/components/pie-chart/test/pie-chart.component.spec.ts index 5a7ac0335ff5..4f2996bdc063 100644 --- a/projects/addon-charts/components/pie-chart/test/pie-chart.component.spec.ts +++ b/projects/addon-charts/components/pie-chart/test/pie-chart.component.spec.ts @@ -1,6 +1,7 @@ import {Location} from '@angular/common'; import {Component} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {TuiPieChartModule} from '@taiga-ui/addon-charts'; import {TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/addon-charts/components/ring-chart/ring-chart.component.ts b/projects/addon-charts/components/ring-chart/ring-chart.component.ts index 149c89e1392c..c7f1d759bfc2 100644 --- a/projects/addon-charts/components/ring-chart/ring-chart.component.ts +++ b/projects/addon-charts/components/ring-chart/ring-chart.component.ts @@ -6,7 +6,7 @@ import { Input, Output, } from '@angular/core'; -import {type TuiSizeS, type TuiSizeXL} from '@taiga-ui/core'; +import type {TuiSizeS, TuiSizeXL} from '@taiga-ui/core'; @Component({ selector: 'tui-ring-chart', diff --git a/projects/addon-charts/constants/line-handlers.ts b/projects/addon-charts/constants/line-handlers.ts index 45c0cb1db323..5f5040406a08 100644 --- a/projects/addon-charts/constants/line-handlers.ts +++ b/projects/addon-charts/constants/line-handlers.ts @@ -1,4 +1,4 @@ -import {type TuiLineHandler} from '@taiga-ui/addon-charts/types'; +import type {TuiLineHandler} from '@taiga-ui/addon-charts/types'; export const TUI_ALWAYS_DASHED: TuiLineHandler = () => 'dashed'; export const TUI_ALWAYS_DOTTED: TuiLineHandler = () => 'dotted'; diff --git a/projects/addon-charts/interfaces/line-chart-hint-context.ts b/projects/addon-charts/interfaces/line-chart-hint-context.ts index 9ad368eb9425..d02b5fe186c4 100644 --- a/projects/addon-charts/interfaces/line-chart-hint-context.ts +++ b/projects/addon-charts/interfaces/line-chart-hint-context.ts @@ -1,4 +1,4 @@ -import {type TuiContext} from '@taiga-ui/cdk'; +import type {TuiContext} from '@taiga-ui/cdk'; export interface TuiLineChartHintContext extends TuiContext { readonly index?: number; diff --git a/projects/addon-charts/types/line-handler.ts b/projects/addon-charts/types/line-handler.ts index 871c9da5b578..c0ccdbd1a557 100644 --- a/projects/addon-charts/types/line-handler.ts +++ b/projects/addon-charts/types/line-handler.ts @@ -1,3 +1,3 @@ -import {type TuiLineType} from './line-type'; +import type {TuiLineType} from './line-type'; export type TuiLineHandler = (index: number, total: number) => TuiLineType; diff --git a/projects/addon-charts/utils/control-point.ts b/projects/addon-charts/utils/control-point.ts index d744dd0d4e82..48c3c1c3b729 100644 --- a/projects/addon-charts/utils/control-point.ts +++ b/projects/addon-charts/utils/control-point.ts @@ -1,4 +1,4 @@ -import {type TuiPoint} from '@taiga-ui/core'; +import type {TuiPoint} from '@taiga-ui/core'; import {tuiLineAngle} from './line-angle'; import {tuiLineLength} from './line-length'; diff --git a/projects/addon-charts/utils/draw-curve.ts b/projects/addon-charts/utils/draw-curve.ts index b5f791a0a5b0..96a8c7613b77 100644 --- a/projects/addon-charts/utils/draw-curve.ts +++ b/projects/addon-charts/utils/draw-curve.ts @@ -1,4 +1,4 @@ -import {type TuiPoint} from '@taiga-ui/core'; +import type {TuiPoint} from '@taiga-ui/core'; import {tuiControlPoint} from './control-point'; diff --git a/projects/addon-charts/utils/draw.ts b/projects/addon-charts/utils/draw.ts index 179046d9b887..30626ade93dd 100644 --- a/projects/addon-charts/utils/draw.ts +++ b/projects/addon-charts/utils/draw.ts @@ -1,4 +1,4 @@ -import {type TuiPoint} from '@taiga-ui/core'; +import type {TuiPoint} from '@taiga-ui/core'; import {tuiDrawCurve} from './draw-curve'; import {tuiDrawLine} from './draw-line'; diff --git a/projects/addon-charts/utils/line-angle.ts b/projects/addon-charts/utils/line-angle.ts index cb053ee2bb80..3412be26d9a4 100644 --- a/projects/addon-charts/utils/line-angle.ts +++ b/projects/addon-charts/utils/line-angle.ts @@ -1,4 +1,4 @@ -import {type TuiPoint} from '@taiga-ui/core'; +import type {TuiPoint} from '@taiga-ui/core'; export function tuiLineAngle(a: TuiPoint, b: TuiPoint): number { const x = b[0] - a[0]; diff --git a/projects/addon-charts/utils/line-length.ts b/projects/addon-charts/utils/line-length.ts index 0a1e9c410daa..25bf41385d16 100644 --- a/projects/addon-charts/utils/line-length.ts +++ b/projects/addon-charts/utils/line-length.ts @@ -1,4 +1,4 @@ -import {type TuiPoint} from '@taiga-ui/core'; +import type {TuiPoint} from '@taiga-ui/core'; export function tuiLineLength(a: TuiPoint, b: TuiPoint): number { const x = b[0] - a[0]; diff --git a/projects/addon-charts/utils/prepare-external-url.ts b/projects/addon-charts/utils/prepare-external-url.ts index ac6241352ba6..aef8794b1664 100644 --- a/projects/addon-charts/utils/prepare-external-url.ts +++ b/projects/addon-charts/utils/prepare-external-url.ts @@ -1,4 +1,4 @@ -import {type Location as NgLocation} from '@angular/common'; +import type {Location as NgLocation} from '@angular/common'; /** @deprecated */ export function tuiPrepareExternalUrl( diff --git a/projects/addon-commerce/components/input-card-grouped/input-card-grouped.component.ts b/projects/addon-commerce/components/input-card-grouped/input-card-grouped.component.ts index 5cf20b58593f..f7ad3961776a 100644 --- a/projects/addon-commerce/components/input-card-grouped/input-card-grouped.component.ts +++ b/projects/addon-commerce/components/input-card-grouped/input-card-grouped.component.ts @@ -11,24 +11,24 @@ import { TemplateRef, ViewChild, } from '@angular/core'; -import {type MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {maskitoDateOptionsGenerator} from '@maskito/kit'; import {AbstractTuiInputCard} from '@taiga-ui/addon-commerce/components/input-card'; import {TUI_CARD_MASK} from '@taiga-ui/addon-commerce/constants'; -import {type TuiCard} from '@taiga-ui/addon-commerce/interfaces'; -import {type TuiCodeCVCLength} from '@taiga-ui/addon-commerce/types'; +import type {TuiCard} from '@taiga-ui/addon-commerce/interfaces'; +import type {TuiCodeCVCLength} from '@taiga-ui/addon-commerce/types'; +import type {TuiAutofillFieldName, TuiFocusableElementAccessor} from '@taiga-ui/cdk'; import { tuiAsControl, tuiAsFocusableItemAccessor, - type TuiAutofillFieldName, TuiAutoFocusDirective, - type TuiFocusableElementAccessor, tuiIsElement, tuiIsInput, tuiIsNativeFocused, tuiIsNativeFocusedIn, tuiPure, } from '@taiga-ui/cdk'; +import type {TuiDataListHost} from '@taiga-ui/core'; import { MODE_PROVIDER, TEXTFIELD_CONTROLLER_PROVIDER, @@ -40,15 +40,12 @@ import { tuiAsDataListHost, TuiDataListComponent, TuiDataListDirective, - type TuiDataListHost, } from '@taiga-ui/core'; import {TUI_ARROW_OPTIONS} from '@taiga-ui/kit'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import { - TUI_INPUT_CARD_GROUPED_OPTIONS, - type TuiInputCardGroupedOptions, -} from './input-card-grouped.options'; +import type {TuiInputCardGroupedOptions} from './input-card-grouped.options'; +import {TUI_INPUT_CARD_GROUPED_OPTIONS} from './input-card-grouped.options'; import {TUI_INPUT_CARD_GROUPED_TEXTS} from './input-card-grouped.providers'; const EXPIRE_COMPLETE_LENGTH = 5; // MM/YY diff --git a/projects/addon-commerce/components/input-card-grouped/input-card-grouped.options.ts b/projects/addon-commerce/components/input-card-grouped/input-card-grouped.options.ts index c2f41f8804ed..405e3c3a7b8d 100644 --- a/projects/addon-commerce/components/input-card-grouped/input-card-grouped.options.ts +++ b/projects/addon-commerce/components/input-card-grouped/input-card-grouped.options.ts @@ -1,10 +1,9 @@ -import {type Provider} from '@angular/core'; -import { - TUI_INPUT_CARD_DEFAULT_OPTIONS, - type TuiInputCardOptions, -} from '@taiga-ui/addon-commerce/components/input-card'; +import type {Provider} from '@angular/core'; +import type {TuiInputCardOptions} from '@taiga-ui/addon-commerce/components/input-card'; +import {TUI_INPUT_CARD_DEFAULT_OPTIONS} from '@taiga-ui/addon-commerce/components/input-card'; import {tuiDefaultCardValidator} from '@taiga-ui/addon-commerce/constants'; -import {type TuiBooleanHandler, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiInputCardGroupedOptions extends TuiInputCardOptions { readonly cardValidator: TuiBooleanHandler; diff --git a/projects/addon-commerce/components/input-card-grouped/input-card-grouped.providers.ts b/projects/addon-commerce/components/input-card-grouped/input-card-grouped.providers.ts index a81d43b84ab2..3d82fdcf2481 100644 --- a/projects/addon-commerce/components/input-card-grouped/input-card-grouped.providers.ts +++ b/projects/addon-commerce/components/input-card-grouped/input-card-grouped.providers.ts @@ -7,7 +7,8 @@ import { } from '@taiga-ui/addon-commerce/tokens'; import {tuiCreateTokenFromFactory, tuiTypedFromEvent} from '@taiga-ui/cdk'; import {TUI_MEDIA} from '@taiga-ui/core'; -import {combineLatest, map, type Observable, of, startWith, switchMap} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {combineLatest, map, of, startWith, switchMap} from 'rxjs'; export interface TuiCardGroupedTexts { readonly cardNumberText: string; diff --git a/projects/addon-commerce/components/input-card-grouped/test/input-card-grouped.component.spec.ts b/projects/addon-commerce/components/input-card-grouped/test/input-card-grouped.component.spec.ts index fed7d8d940cf..e9f492186118 100644 --- a/projects/addon-commerce/components/input-card-grouped/test/input-card-grouped.component.spec.ts +++ b/projects/addon-commerce/components/input-card-grouped/test/input-card-grouped.component.spec.ts @@ -6,22 +6,23 @@ import { TemplateRef, ViewChild, } from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; +import type {TuiCard} from '@taiga-ui/addon-commerce'; import { - type TuiCard, TuiInputCardGroupedComponent, TuiInputCardGroupedModule, } from '@taiga-ui/addon-commerce'; +import type {TuiFocusableElementAccessor} from '@taiga-ui/cdk'; import { TUI_AUTOFOCUS_HANDLER, TUI_FOCUSABLE_ITEM_ACCESSOR, - type TuiFocusableElementAccessor, TuiSynchronousAutofocusHandler, } from '@taiga-ui/cdk'; import {TuiSvgModule} from '@taiga-ui/core'; import {TuiNativeInputPO} from '@taiga-ui/testing'; -import {type Mock} from 'jest-mock'; +import type {Mock} from 'jest-mock'; describe('InputCardGrouped', () => { @Component({ diff --git a/projects/addon-commerce/components/input-card/abstract-input-card.ts b/projects/addon-commerce/components/input-card/abstract-input-card.ts index fa183bccc57b..5912b0b10b7f 100644 --- a/projects/addon-commerce/components/input-card/abstract-input-card.ts +++ b/projects/addon-commerce/components/input-card/abstract-input-card.ts @@ -1,15 +1,14 @@ import {Directive, EventEmitter, Input, Output} from '@angular/core'; -import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; -import { - AbstractTuiNullableControl, - type TuiAutofillFieldName, - type TuiFocusableElementAccessor, - type TuiNativeFocusableElement, - tuiPure, +import type {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; +import type { + TuiAutofillFieldName, + TuiFocusableElementAccessor, + TuiNativeFocusableElement, } from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {AbstractTuiNullableControl, tuiPure} from '@taiga-ui/cdk'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {type TuiInputCardOptions} from './input-card.options'; +import type {TuiInputCardOptions} from './input-card.options'; @Directive() export abstract class AbstractTuiInputCard< diff --git a/projects/addon-commerce/components/input-card/input-card.component.ts b/projects/addon-commerce/components/input-card/input-card.component.ts index 391e1f7a7716..6731e5569897 100644 --- a/projects/addon-commerce/components/input-card/input-card.component.ts +++ b/projects/addon-commerce/components/input-card/input-card.component.ts @@ -5,15 +5,11 @@ import { inject, ViewChild, } from '@angular/core'; -import {type MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {TUI_CARD_MASK} from '@taiga-ui/addon-commerce/constants'; import {tuiAsControl, tuiAsFocusableItemAccessor} from '@taiga-ui/cdk'; -import { - TUI_TEXTFIELD_SIZE, - TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeS, -} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent} from '@taiga-ui/core'; import {AbstractTuiInputCard} from './abstract-input-card'; import {TUI_INPUT_CARD_OPTIONS} from './input-card.options'; diff --git a/projects/addon-commerce/components/input-card/input-card.directive.ts b/projects/addon-commerce/components/input-card/input-card.directive.ts index c81242d7b7da..f9b691ac3744 100644 --- a/projects/addon-commerce/components/input-card/input-card.directive.ts +++ b/projects/addon-commerce/components/input-card/input-card.directive.ts @@ -1,7 +1,8 @@ -import {type AfterViewInit, Directive} from '@angular/core'; +import type {AfterViewInit} from '@angular/core'; +import {Directive} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {type TuiInputCardComponent} from './input-card.component'; +import type {TuiInputCardComponent} from './input-card.component'; @Directive({ selector: 'tui-input-card', diff --git a/projects/addon-commerce/components/input-card/input-card.options.ts b/projects/addon-commerce/components/input-card/input-card.options.ts index f8897371d756..c43661ebd079 100644 --- a/projects/addon-commerce/components/input-card/input-card.options.ts +++ b/projects/addon-commerce/components/input-card/input-card.options.ts @@ -1,11 +1,12 @@ -import {type Provider} from '@angular/core'; -import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; +import type {Provider} from '@angular/core'; +import type {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; import { TUI_PAYMENT_SYSTEM_ICONS, tuiGetPaymentSystem, } from '@taiga-ui/addon-commerce/utils'; -import {tuiCreateToken, type TuiHandler, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiHandler} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiInputCardOptions { readonly autocompleteEnabled: boolean; diff --git a/projects/addon-commerce/components/input-card/test/input-card.component.spec.ts b/projects/addon-commerce/components/input-card/test/input-card.component.spec.ts index a38bcbc39986..f1a8ce2285f2 100644 --- a/projects/addon-commerce/components/input-card/test/input-card.component.spec.ts +++ b/projects/addon-commerce/components/input-card/test/input-card.component.spec.ts @@ -1,8 +1,9 @@ import {Component, TemplateRef, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {TuiInputCardComponent, TuiInputCardModule} from '@taiga-ui/addon-commerce'; -import {type Mock} from 'jest-mock'; +import type {Mock} from 'jest-mock'; describe('InputCard', () => { @Component({ diff --git a/projects/addon-commerce/components/input-cvc/input-cvc.component.ts b/projects/addon-commerce/components/input-cvc/input-cvc.component.ts index 8afcb05de479..fe232554eaef 100644 --- a/projects/addon-commerce/components/input-cvc/input-cvc.component.ts +++ b/projects/addon-commerce/components/input-cvc/input-cvc.component.ts @@ -6,23 +6,24 @@ import { Input, ViewChild, } from '@angular/core'; -import {type MaskitoOptions} from '@maskito/core'; -import {type TuiCodeCVCLength} from '@taiga-ui/addon-commerce/types'; +import type {MaskitoOptions} from '@maskito/core'; +import type {TuiCodeCVCLength} from '@taiga-ui/addon-commerce/types'; +import type { + TuiAutofillFieldName, + TuiFocusableElementAccessor, + TuiNativeFocusableElement, +} from '@taiga-ui/cdk'; import { AbstractTuiControl, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiAutofillFieldName, - type TuiFocusableElementAccessor, - type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import { TUI_DIGIT_REGEXP, TUI_TEXTFIELD_LABEL_OUTSIDE, TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeS, } from '@taiga-ui/core'; @Component({ diff --git a/projects/addon-commerce/components/input-cvc/test/input-cvc.component.spec.ts b/projects/addon-commerce/components/input-cvc/test/input-cvc.component.spec.ts index 9a96c1cc4556..4069484f42a1 100644 --- a/projects/addon-commerce/components/input-cvc/test/input-cvc.component.spec.ts +++ b/projects/addon-commerce/components/input-cvc/test/input-cvc.component.spec.ts @@ -1,7 +1,9 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; -import {type TuiInputCVCComponent, TuiInputCVCModule} from '@taiga-ui/addon-commerce'; +import type {TuiInputCVCComponent} from '@taiga-ui/addon-commerce'; +import {TuiInputCVCModule} from '@taiga-ui/addon-commerce'; import {TUI_DIGIT_REGEXP} from '@taiga-ui/core'; describe('InputCVC', () => { diff --git a/projects/addon-commerce/components/input-expire/input-expire.component.ts b/projects/addon-commerce/components/input-expire/input-expire.component.ts index f84714e09558..02813a0b0735 100644 --- a/projects/addon-commerce/components/input-expire/input-expire.component.ts +++ b/projects/addon-commerce/components/input-expire/input-expire.component.ts @@ -7,19 +7,14 @@ import { ViewChild, } from '@angular/core'; import {maskitoDateOptionsGenerator} from '@maskito/kit'; +import type {TuiAutofillFieldName, TuiFocusableElementAccessor} from '@taiga-ui/cdk'; import { AbstractTuiControl, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiAutofillFieldName, - type TuiFocusableElementAccessor, } from '@taiga-ui/cdk'; -import { - TUI_TEXTFIELD_SIZE, - TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeS, -} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent} from '@taiga-ui/core'; @Component({ selector: 'tui-input-expire', diff --git a/projects/addon-commerce/components/input-expire/test/input-expire.component.spec.ts b/projects/addon-commerce/components/input-expire/test/input-expire.component.spec.ts index cd69e8d7d22d..c24b1b3739a2 100644 --- a/projects/addon-commerce/components/input-expire/test/input-expire.component.spec.ts +++ b/projects/addon-commerce/components/input-expire/test/input-expire.component.spec.ts @@ -1,5 +1,6 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormsModule} from '@angular/forms'; import {By} from '@angular/platform-browser'; diff --git a/projects/addon-commerce/components/thumbnail-card/test/thumbnail-card.component.spec.ts b/projects/addon-commerce/components/thumbnail-card/test/thumbnail-card.component.spec.ts index d34e3ab4b80a..d7ddb9107696 100644 --- a/projects/addon-commerce/components/thumbnail-card/test/thumbnail-card.component.spec.ts +++ b/projects/addon-commerce/components/thumbnail-card/test/thumbnail-card.component.spec.ts @@ -1,12 +1,13 @@ -import {type HarnessLoader} from '@angular/cdk/testing'; +import type {HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import { TuiThumbnailCardComponent, TuiThumbnailCardModule, } from '@taiga-ui/addon-commerce'; -import {type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeS} from '@taiga-ui/core'; import {TuiThumbnailCardHarness} from '@taiga-ui/testing'; describe('TuiThumbnailCard', () => { diff --git a/projects/addon-commerce/components/thumbnail-card/thumbnail-card.component.ts b/projects/addon-commerce/components/thumbnail-card/thumbnail-card.component.ts index 8a9cf6391dd3..a25fa32f49ac 100644 --- a/projects/addon-commerce/components/thumbnail-card/thumbnail-card.component.ts +++ b/projects/addon-commerce/components/thumbnail-card/thumbnail-card.component.ts @@ -6,8 +6,8 @@ import { Input, } from '@angular/core'; import {TUI_INPUT_CARD_OPTIONS} from '@taiga-ui/addon-commerce/components/input-card'; -import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; -import {type TuiSizeS} from '@taiga-ui/core'; +import type {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; +import type {TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'tui-thumbnail-card', diff --git a/projects/addon-commerce/constants/card-holder-mask.ts b/projects/addon-commerce/constants/card-holder-mask.ts index 089d28033ff2..ae01abfcf2f0 100644 --- a/projects/addon-commerce/constants/card-holder-mask.ts +++ b/projects/addon-commerce/constants/card-holder-mask.ts @@ -1,4 +1,4 @@ -import {type MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; const MAP: Record = { А: 'F', diff --git a/projects/addon-commerce/constants/default-card-validator.ts b/projects/addon-commerce/constants/default-card-validator.ts index 6349af92341a..adb9f0436e7c 100644 --- a/projects/addon-commerce/constants/default-card-validator.ts +++ b/projects/addon-commerce/constants/default-card-validator.ts @@ -1,5 +1,5 @@ import {tuiIsCardLengthValid, tuiIsCardNumberValid} from '@taiga-ui/addon-commerce/utils'; -import {type TuiBooleanHandler} from '@taiga-ui/cdk'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; export const tuiDefaultCardValidator: TuiBooleanHandler = card => card.length > 11 && tuiIsCardLengthValid(card) && tuiIsCardNumberValid(card); diff --git a/projects/addon-commerce/pipes/amount/amount.options.ts b/projects/addon-commerce/pipes/amount/amount.options.ts index 0d038de23a83..cf702e5a28df 100644 --- a/projects/addon-commerce/pipes/amount/amount.options.ts +++ b/projects/addon-commerce/pipes/amount/amount.options.ts @@ -1,10 +1,7 @@ -import {type Provider} from '@angular/core'; -import { - type TuiCurrencyVariants, - type TuiMoneySign, -} from '@taiga-ui/addon-commerce/types'; +import type {Provider} from '@angular/core'; +import type {TuiCurrencyVariants, TuiMoneySign} from '@taiga-ui/addon-commerce/types'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiHorizontalDirection} from '@taiga-ui/core'; +import type {TuiHorizontalDirection} from '@taiga-ui/core'; export interface TuiAmountOptions { readonly currency: TuiCurrencyVariants; diff --git a/projects/addon-commerce/pipes/amount/amount.pipe.ts b/projects/addon-commerce/pipes/amount/amount.pipe.ts index 14b87521cff3..529d1e7a16ae 100644 --- a/projects/addon-commerce/pipes/amount/amount.pipe.ts +++ b/projects/addon-commerce/pipes/amount/amount.pipe.ts @@ -1,14 +1,12 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; -import {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; +import type {TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types'; import {tuiFormatCurrency, tuiFormatSignSymbol} from '@taiga-ui/addon-commerce/utils'; import {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk'; -import { - TUI_NUMBER_FORMAT, - type TuiDecimal, - tuiFormatNumber, - type TuiHorizontalDirection, -} from '@taiga-ui/core'; -import {map, type Observable} from 'rxjs'; +import type {TuiDecimal, TuiHorizontalDirection} from '@taiga-ui/core'; +import {TUI_NUMBER_FORMAT, tuiFormatNumber} from '@taiga-ui/core'; +import type {Observable} from 'rxjs'; +import {map} from 'rxjs'; import {TUI_AMOUNT_OPTIONS} from './amount.options'; diff --git a/projects/addon-commerce/pipes/currency/currency.pipe.ts b/projects/addon-commerce/pipes/currency/currency.pipe.ts index 42743275e281..47a60d6426c9 100644 --- a/projects/addon-commerce/pipes/currency/currency.pipe.ts +++ b/projects/addon-commerce/pipes/currency/currency.pipe.ts @@ -1,5 +1,6 @@ -import {Pipe, type PipeTransform} from '@angular/core'; -import {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; +import type {TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types'; import {tuiFormatCurrency} from '@taiga-ui/addon-commerce/utils'; @Pipe({ diff --git a/projects/addon-commerce/pipes/format-card/format-card.pipe.ts b/projects/addon-commerce/pipes/format-card/format-card.pipe.ts index 03de9a559fbe..050ca14e186e 100644 --- a/projects/addon-commerce/pipes/format-card/format-card.pipe.ts +++ b/projects/addon-commerce/pipes/format-card/format-card.pipe.ts @@ -1,4 +1,5 @@ -import {Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; @Pipe({name: 'tuiFormatCard'}) export class TuiFormatCardPipe implements PipeTransform { diff --git a/projects/addon-commerce/tokens/i18n.ts b/projects/addon-commerce/tokens/i18n.ts index 85078dbe26bb..fe8d8624b019 100644 --- a/projects/addon-commerce/tokens/i18n.ts +++ b/projects/addon-commerce/tokens/i18n.ts @@ -1,6 +1,7 @@ import {tuiCreateToken, tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; import {tuiExtractI18n} from '@taiga-ui/i18n'; -import {type Observable, of} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {of} from 'rxjs'; /** * Number and card number i18n diff --git a/projects/addon-commerce/types/currency-variants.ts b/projects/addon-commerce/types/currency-variants.ts index 65b44835543f..fc046f962958 100644 --- a/projects/addon-commerce/types/currency-variants.ts +++ b/projects/addon-commerce/types/currency-variants.ts @@ -1,4 +1,4 @@ -import {type TuiCurrency, type TuiCurrencyCode} from '@taiga-ui/addon-commerce/enums'; +import type {TuiCurrency, TuiCurrencyCode} from '@taiga-ui/addon-commerce/enums'; export type TuiCurrencyAutocompletion = | keyof Record diff --git a/projects/addon-commerce/types/money-sign.ts b/projects/addon-commerce/types/money-sign.ts index d7f7c047231e..b64bd3a4a3c9 100644 --- a/projects/addon-commerce/types/money-sign.ts +++ b/projects/addon-commerce/types/money-sign.ts @@ -1,4 +1,4 @@ -import {type CHAR_MINUS, type CHAR_PLUS} from '@taiga-ui/cdk'; +import type {CHAR_MINUS, CHAR_PLUS} from '@taiga-ui/cdk'; export type TuiMoneySign = | 'always' diff --git a/projects/addon-commerce/utils/format-currency.ts b/projects/addon-commerce/utils/format-currency.ts index db0369a915bf..60a1996cadfe 100644 --- a/projects/addon-commerce/utils/format-currency.ts +++ b/projects/addon-commerce/utils/format-currency.ts @@ -1,4 +1,4 @@ -import {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types'; +import type {TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types'; import {tuiIsString} from '@taiga-ui/cdk'; import {tuiGetCurrencySymbol} from './get-currency-symbol'; diff --git a/projects/addon-commerce/utils/format-sign-symbol.ts b/projects/addon-commerce/utils/format-sign-symbol.ts index e83df1cce113..1b8e7194f691 100644 --- a/projects/addon-commerce/utils/format-sign-symbol.ts +++ b/projects/addon-commerce/utils/format-sign-symbol.ts @@ -1,4 +1,4 @@ -import {type TuiMoneySign, type TuiMoneySignSymbol} from '@taiga-ui/addon-commerce/types'; +import type {TuiMoneySign, TuiMoneySignSymbol} from '@taiga-ui/addon-commerce/types'; import {CHAR_MINUS, CHAR_PLUS} from '@taiga-ui/cdk'; export function tuiFormatSignSymbol( diff --git a/projects/addon-commerce/utils/get-currency-symbol.ts b/projects/addon-commerce/utils/get-currency-symbol.ts index 33564ee24501..68d5bc717bb1 100644 --- a/projects/addon-commerce/utils/get-currency-symbol.ts +++ b/projects/addon-commerce/utils/get-currency-symbol.ts @@ -1,5 +1,5 @@ import {TuiCurrency, TuiCurrencyCode} from '@taiga-ui/addon-commerce/enums'; -import {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types'; +import type {TuiCurrencyVariants} from '@taiga-ui/addon-commerce/types'; export function tuiGetCurrencySymbol(currency: TuiCurrencyVariants): string | null { switch (currency) { diff --git a/projects/addon-commerce/utils/get-payment-system.ts b/projects/addon-commerce/utils/get-payment-system.ts index 8055f3f8b1fa..4db31de6b57d 100644 --- a/projects/addon-commerce/utils/get-payment-system.ts +++ b/projects/addon-commerce/utils/get-payment-system.ts @@ -1,4 +1,4 @@ -import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; +import type {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; // https://en.wikipedia.org/wiki/Payment_card_number#Issuer_identification_number_(IIN) export const TUI_BIN_TABLE: ReadonlyArray< diff --git a/projects/addon-commerce/utils/payment-system-icons.ts b/projects/addon-commerce/utils/payment-system-icons.ts index b4c66eba0600..3af14309beaf 100644 --- a/projects/addon-commerce/utils/payment-system-icons.ts +++ b/projects/addon-commerce/utils/payment-system-icons.ts @@ -1,4 +1,4 @@ -import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; +import type {TuiPaymentSystem} from '@taiga-ui/addon-commerce/types'; // TODO: Make it a token in 4.0, think about mono icons for card component export const TUI_PAYMENT_SYSTEM_ICONS: Record = { diff --git a/projects/addon-commerce/validators/card-expire.validator.ts b/projects/addon-commerce/validators/card-expire.validator.ts index 4816403d84fa..ac96a8491a81 100644 --- a/projects/addon-commerce/validators/card-expire.validator.ts +++ b/projects/addon-commerce/validators/card-expire.validator.ts @@ -1,4 +1,4 @@ -import {type AbstractControl, type ValidationErrors} from '@angular/forms'; +import type {AbstractControl, ValidationErrors} from '@angular/forms'; import {tuiIsExpireValid} from '@taiga-ui/addon-commerce/utils'; import {TuiValidationError} from '@taiga-ui/cdk'; diff --git a/projects/addon-commerce/validators/card-number.validator.ts b/projects/addon-commerce/validators/card-number.validator.ts index 5dff6a779920..6bb877e5a921 100644 --- a/projects/addon-commerce/validators/card-number.validator.ts +++ b/projects/addon-commerce/validators/card-number.validator.ts @@ -1,4 +1,4 @@ -import {type AbstractControl, type ValidationErrors} from '@angular/forms'; +import type {AbstractControl, ValidationErrors} from '@angular/forms'; import {tuiIsCardNumberValid} from '@taiga-ui/addon-commerce/utils'; import {TuiValidationError} from '@taiga-ui/cdk'; diff --git a/projects/addon-commerce/validators/luhn.validator.ts b/projects/addon-commerce/validators/luhn.validator.ts index 1cfb8c70a53d..b7caf0fa1636 100644 --- a/projects/addon-commerce/validators/luhn.validator.ts +++ b/projects/addon-commerce/validators/luhn.validator.ts @@ -1,7 +1,7 @@ -import {type AbstractControl, type ValidatorFn} from '@angular/forms'; +import type {AbstractControl, ValidatorFn} from '@angular/forms'; import {tuiIsCardNumberValid} from '@taiga-ui/addon-commerce/utils'; import {TuiValidationError} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export function tuiCreateLuhnValidator(message: PolymorpheusContent): ValidatorFn { return ({value}: AbstractControl) => diff --git a/projects/addon-commerce/validators/test/card-expire.validator.spec.ts b/projects/addon-commerce/validators/test/card-expire.validator.spec.ts index 879c9f16d796..f087679bc735 100644 --- a/projects/addon-commerce/validators/test/card-expire.validator.spec.ts +++ b/projects/addon-commerce/validators/test/card-expire.validator.spec.ts @@ -1,5 +1,6 @@ import {FormControl} from '@angular/forms'; -import {type TuiCard, tuiCardExpireValidator} from '@taiga-ui/addon-commerce'; +import type {TuiCard} from '@taiga-ui/addon-commerce'; +import {tuiCardExpireValidator} from '@taiga-ui/addon-commerce'; describe('tuiCardExpireValidator', () => { let control: FormControl | null = null; diff --git a/projects/addon-commerce/validators/test/card-number.validator.spec.ts b/projects/addon-commerce/validators/test/card-number.validator.spec.ts index 00107dccb883..bf626ad4371f 100644 --- a/projects/addon-commerce/validators/test/card-number.validator.spec.ts +++ b/projects/addon-commerce/validators/test/card-number.validator.spec.ts @@ -1,5 +1,6 @@ import {FormControl} from '@angular/forms'; -import {type TuiCard, tuiCardNumberValidator} from '@taiga-ui/addon-commerce'; +import type {TuiCard} from '@taiga-ui/addon-commerce'; +import {tuiCardNumberValidator} from '@taiga-ui/addon-commerce'; describe('tuiCardNumberValidator', () => { let control: FormControl | null = null; diff --git a/projects/addon-doc/addon-doc.module.ts b/projects/addon-doc/addon-doc.module.ts index c8b3d5bcdce2..0e34a7259623 100644 --- a/projects/addon-doc/addon-doc.module.ts +++ b/projects/addon-doc/addon-doc.module.ts @@ -1,4 +1,5 @@ -import {type ModuleWithProviders, NgModule, type Type} from '@angular/core'; +import type {ModuleWithProviders, Type} from '@angular/core'; +import {NgModule} from '@angular/core'; import {RouterModule} from '@angular/router'; import { TuiDocCodeModule, diff --git a/projects/addon-doc/components/code/code.component.ts b/projects/addon-doc/components/code/code.component.ts index 5c23522985a4..b8c699279af6 100644 --- a/projects/addon-doc/components/code/code.component.ts +++ b/projects/addon-doc/components/code/code.component.ts @@ -5,7 +5,7 @@ import { inject, Input, } from '@angular/core'; -import {type TuiRawLoaderContent} from '@taiga-ui/addon-doc/interfaces'; +import type {TuiRawLoaderContent} from '@taiga-ui/addon-doc/interfaces'; import {TUI_DOC_EXAMPLE_MARKDOWN_CODE_PROCESSOR} from '@taiga-ui/addon-doc/tokens'; import {tuiRawLoad} from '@taiga-ui/addon-doc/utils'; import type {TuiHandler} from '@taiga-ui/cdk'; diff --git a/projects/addon-doc/components/code/tests/code.component.spec.ts b/projects/addon-doc/components/code/tests/code.component.spec.ts index e96428717640..f1f4e49c5964 100644 --- a/projects/addon-doc/components/code/tests/code.component.spec.ts +++ b/projects/addon-doc/components/code/tests/code.component.spec.ts @@ -1,4 +1,5 @@ -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {TuiDocCodeComponent} from '@taiga-ui/addon-doc'; import {HIGHLIGHT_OPTIONS, HighlightModule} from 'ngx-highlightjs'; diff --git a/projects/addon-doc/components/code/tests/highlight.spec.ts b/projects/addon-doc/components/code/tests/highlight.spec.ts index 32cb42daeb6b..cf3aad90184b 100644 --- a/projects/addon-doc/components/code/tests/highlight.spec.ts +++ b/projects/addon-doc/components/code/tests/highlight.spec.ts @@ -1,14 +1,11 @@ -import {Component, type DebugElement, Input} from '@angular/core'; -import { - type ComponentFixture, - fakeAsync, - TestBed, - tick, - waitForAsync, -} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component, Input} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {fakeAsync, TestBed, tick, waitForAsync} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import hljs from 'highlight.js'; -import {Highlight, type HighlightLibrary, HighlightLoader} from 'ngx-highlightjs'; +import type {HighlightLibrary} from 'ngx-highlightjs'; +import {Highlight, HighlightLoader} from 'ngx-highlightjs'; import {BehaviorSubject} from 'rxjs'; describe('Highlight Directive', () => { diff --git a/projects/addon-doc/components/copy/copy.component.ts b/projects/addon-doc/components/copy/copy.component.ts index 9074d6bfda47..137829c33c65 100644 --- a/projects/addon-doc/components/copy/copy.component.ts +++ b/projects/addon-doc/components/copy/copy.component.ts @@ -1,7 +1,8 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {ALWAYS_FALSE_HANDLER, TuiDestroyService, tuiPure} from '@taiga-ui/cdk'; import {TUI_COPY_TEXTS} from '@taiga-ui/kit'; -import {map, type Observable, startWith, Subject, switchMap, timer} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map, startWith, Subject, switchMap, timer} from 'rxjs'; const COPIED_TIMEOUT = 1500; diff --git a/projects/addon-doc/components/demo/demo.component.ts b/projects/addon-doc/components/demo/demo.component.ts index 88a9def2ef4c..f1da9b56f5e6 100644 --- a/projects/addon-doc/components/demo/demo.component.ts +++ b/projects/addon-doc/components/demo/demo.component.ts @@ -1,4 +1,5 @@ import {Location} from '@angular/common'; +import type {OnInit} from '@angular/core'; import { ChangeDetectionStrategy, Component, @@ -9,13 +10,14 @@ import { HostListener, inject, Input, - type OnInit, TemplateRef, ViewChild, } from '@angular/core'; -import {type AbstractControl, FormGroup} from '@angular/forms'; -import {type Params, UrlSerializer, type UrlTree} from '@angular/router'; -import {type TuiDemoParams} from '@taiga-ui/addon-doc/interfaces'; +import type {AbstractControl} from '@angular/forms'; +import {FormGroup} from '@angular/forms'; +import type {Params, UrlTree} from '@angular/router'; +import {UrlSerializer} from '@angular/router'; +import type {TuiDemoParams} from '@taiga-ui/addon-doc/interfaces'; import {TUI_DOC_DEMO_TEXTS, TUI_DOC_URL_STATE_HANDLER} from '@taiga-ui/addon-doc/tokens'; import {tuiCoerceValueIsTrue} from '@taiga-ui/addon-doc/utils'; import { @@ -28,7 +30,8 @@ import { TuiResizeableDirective, tuiToInteger, } from '@taiga-ui/cdk'; -import {type TuiBrightness, TuiModeDirective} from '@taiga-ui/core'; +import type {TuiBrightness} from '@taiga-ui/core'; +import {TuiModeDirective} from '@taiga-ui/core'; import {TUI_ARROW_OPTIONS} from '@taiga-ui/kit'; import {Subject} from 'rxjs'; diff --git a/projects/addon-doc/components/documentation/documentation-property-connector.directive.ts b/projects/addon-doc/components/documentation/documentation-property-connector.directive.ts index 4e5c1f570553..035d037664fb 100644 --- a/projects/addon-doc/components/documentation/documentation-property-connector.directive.ts +++ b/projects/addon-doc/components/documentation/documentation-property-connector.directive.ts @@ -1,15 +1,8 @@ import {Location} from '@angular/common'; -import { - Directive, - EventEmitter, - inject, - Input, - type OnChanges, - type OnInit, - Output, - TemplateRef, -} from '@angular/core'; -import {ActivatedRoute, type Params, UrlSerializer} from '@angular/router'; +import type {OnChanges, OnInit} from '@angular/core'; +import {Directive, EventEmitter, inject, Input, Output, TemplateRef} from '@angular/core'; +import type {Params} from '@angular/router'; +import {ActivatedRoute, UrlSerializer} from '@angular/router'; import {TUI_DOC_URL_STATE_HANDLER} from '@taiga-ui/addon-doc/tokens'; import {tuiCoerceValue, tuiInspectAny} from '@taiga-ui/addon-doc/utils'; import {tuiIsNumber} from '@taiga-ui/cdk'; diff --git a/projects/addon-doc/components/documentation/documentation.component.ts b/projects/addon-doc/components/documentation/documentation.component.ts index e06096e61e20..2e8b086aa56e 100644 --- a/projects/addon-doc/components/documentation/documentation.component.ts +++ b/projects/addon-doc/components/documentation/documentation.component.ts @@ -1,24 +1,23 @@ import {animate, style, transition, trigger} from '@angular/animations'; +import type {AfterContentInit, QueryList} from '@angular/core'; import { - type AfterContentInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChildren, inject, Input, - type QueryList, } from '@angular/core'; import { TUI_DOC_DOCUMENTATION_TEXTS, TUI_DOC_EXCLUDED_PROPERTIES, } from '@taiga-ui/addon-doc/tokens'; +import type {TuiTypedMatcher} from '@taiga-ui/cdk'; import { EMPTY_QUERY, TuiDestroyService, tuiHexToRgb, tuiQueryListChanges, - type TuiTypedMatcher, tuiWatch, } from '@taiga-ui/cdk'; import {merge, switchMap, takeUntil} from 'rxjs'; diff --git a/projects/addon-doc/components/documentation/pipes/cleaner.pipe.ts b/projects/addon-doc/components/documentation/pipes/cleaner.pipe.ts index 534ba2167bd5..22380ea79086 100644 --- a/projects/addon-doc/components/documentation/pipes/cleaner.pipe.ts +++ b/projects/addon-doc/components/documentation/pipes/cleaner.pipe.ts @@ -1,4 +1,5 @@ -import {Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; @Pipe({name: 'tuiShowCleanerPipe'}) export class TuiShowCleanerPipe implements PipeTransform { diff --git a/projects/addon-doc/components/documentation/pipes/color.pipe.ts b/projects/addon-doc/components/documentation/pipes/color.pipe.ts index c495899350c4..20cf7be27a48 100644 --- a/projects/addon-doc/components/documentation/pipes/color.pipe.ts +++ b/projects/addon-doc/components/documentation/pipes/color.pipe.ts @@ -1,4 +1,5 @@ -import {Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; import {tuiRgbToHex} from '@taiga-ui/cdk'; @Pipe({name: 'tuiGetColorPipe'}) diff --git a/projects/addon-doc/components/documentation/pipes/inspect.pipe.ts b/projects/addon-doc/components/documentation/pipes/inspect.pipe.ts index 6a3caecf2cfa..63391629b330 100644 --- a/projects/addon-doc/components/documentation/pipes/inspect.pipe.ts +++ b/projects/addon-doc/components/documentation/pipes/inspect.pipe.ts @@ -1,4 +1,5 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; import {tuiInspectAny} from '@taiga-ui/addon-doc/utils'; import {TUI_IS_E2E} from '@taiga-ui/cdk'; diff --git a/projects/addon-doc/components/documentation/pipes/opacity.pipe.ts b/projects/addon-doc/components/documentation/pipes/opacity.pipe.ts index 78ef256f5bf0..0594c51f3114 100644 --- a/projects/addon-doc/components/documentation/pipes/opacity.pipe.ts +++ b/projects/addon-doc/components/documentation/pipes/opacity.pipe.ts @@ -1,4 +1,5 @@ -import {Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; @Pipe({name: 'tuiGetOpacity'}) export class TuiGetOpacityPipe implements PipeTransform { diff --git a/projects/addon-doc/components/documentation/pipes/optional.pipe.ts b/projects/addon-doc/components/documentation/pipes/optional.pipe.ts index e6a79ad73f02..0307672334d0 100644 --- a/projects/addon-doc/components/documentation/pipes/optional.pipe.ts +++ b/projects/addon-doc/components/documentation/pipes/optional.pipe.ts @@ -1,4 +1,5 @@ -import {Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; @Pipe({name: 'tuiIsOptionalPipe'}) export class TuiIsOptionalPipe implements PipeTransform { diff --git a/projects/addon-doc/components/documentation/pipes/primitive-polymorpheus-content.pipe.ts b/projects/addon-doc/components/documentation/pipes/primitive-polymorpheus-content.pipe.ts index a6b617c3a73a..b44ff6542e55 100644 --- a/projects/addon-doc/components/documentation/pipes/primitive-polymorpheus-content.pipe.ts +++ b/projects/addon-doc/components/documentation/pipes/primitive-polymorpheus-content.pipe.ts @@ -1,4 +1,5 @@ -import {Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; import {tuiIsNumber, tuiIsString} from '@taiga-ui/cdk'; @Pipe({name: 'tuiIsPrimitivePolymorpheusContentPipe'}) diff --git a/projects/addon-doc/components/documentation/pipes/strip-optional.pipe.ts b/projects/addon-doc/components/documentation/pipes/strip-optional.pipe.ts index 8e14ffcb312f..98238c47d478 100644 --- a/projects/addon-doc/components/documentation/pipes/strip-optional.pipe.ts +++ b/projects/addon-doc/components/documentation/pipes/strip-optional.pipe.ts @@ -1,4 +1,5 @@ -import {Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; @Pipe({name: 'tuiStripOptionalPipe'}) export class TuiStripOptionalPipe implements PipeTransform { diff --git a/projects/addon-doc/components/documentation/pipes/type-reference.pipe.ts b/projects/addon-doc/components/documentation/pipes/type-reference.pipe.ts index ccc3209bb1f3..34cda71c89dd 100644 --- a/projects/addon-doc/components/documentation/pipes/type-reference.pipe.ts +++ b/projects/addon-doc/components/documentation/pipes/type-reference.pipe.ts @@ -1,4 +1,5 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; import { TUI_DOC_TYPE_REFERENCE_HANDLER, TUI_DOC_TYPE_REFERENCE_PARSER, diff --git a/projects/addon-doc/components/example/example-get-tabs.pipe.ts b/projects/addon-doc/components/example/example-get-tabs.pipe.ts index 00c337189f75..23e15bf5c471 100644 --- a/projects/addon-doc/components/example/example-get-tabs.pipe.ts +++ b/projects/addon-doc/components/example/example-get-tabs.pipe.ts @@ -1,4 +1,5 @@ -import {Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; @Pipe({name: 'tuiDocExampleGetTabs'}) export class TuiDocExampleGetTabsPipe implements PipeTransform { diff --git a/projects/addon-doc/components/example/example.component.ts b/projects/addon-doc/components/example/example.component.ts index af3c13577e41..0cbbbc30c781 100644 --- a/projects/addon-doc/components/example/example.component.ts +++ b/projects/addon-doc/components/example/example.component.ts @@ -7,7 +7,7 @@ import { Input, } from '@angular/core'; import {LOCATION} from '@ng-web-apis/common'; -import {type TuiDocExample} from '@taiga-ui/addon-doc/interfaces'; +import type {TuiDocExample} from '@taiga-ui/addon-doc/interfaces'; import { TUI_DOC_CODE_ACTIONS, TUI_DOC_CODE_EDITOR, @@ -15,11 +15,13 @@ import { TUI_DOC_EXAMPLE_TEXTS, } from '@taiga-ui/addon-doc/tokens'; import {tuiRawLoadRecord} from '@taiga-ui/addon-doc/utils'; -import {TUI_IS_E2E, type TuiContext} from '@taiga-ui/cdk'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {TUI_IS_E2E} from '@taiga-ui/cdk'; import {TuiAlertService} from '@taiga-ui/core'; import {TUI_COPY_TEXTS} from '@taiga-ui/kit'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {BehaviorSubject, map, type Observable, Subject, switchMap} from 'rxjs'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; +import {BehaviorSubject, map, Subject, switchMap} from 'rxjs'; import {TUI_DOC_EXAMPLE_OPTIONS} from './example.options'; diff --git a/projects/addon-doc/components/example/example.options.ts b/projects/addon-doc/components/example/example.options.ts index 8a7ec0cab38a..9eb0d775bfed 100644 --- a/projects/addon-doc/components/example/example.options.ts +++ b/projects/addon-doc/components/example/example.options.ts @@ -1,7 +1,8 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {TUI_EXAMPLE_PRIMARY_FILE_NAME} from '@taiga-ui/addon-doc/interfaces'; -import {type TuiBooleanHandler, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiDocExampleOptions { codeEditorVisibilityHandler: TuiBooleanHandler>; diff --git a/projects/addon-doc/components/internal/source-code/source-code.component.ts b/projects/addon-doc/components/internal/source-code/source-code.component.ts index be159ac5ccb7..33e422300425 100644 --- a/projects/addon-doc/components/internal/source-code/source-code.component.ts +++ b/projects/addon-doc/components/internal/source-code/source-code.component.ts @@ -1,5 +1,5 @@ import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core'; -import {type TuiDocSourceCodePathOptions} from '@taiga-ui/addon-doc/interfaces'; +import type {TuiDocSourceCodePathOptions} from '@taiga-ui/addon-doc/interfaces'; import { TUI_DOC_ICONS, TUI_DOC_SOURCE_CODE, diff --git a/projects/addon-doc/components/language-switcher/language-switcher.component.ts b/projects/addon-doc/components/language-switcher/language-switcher.component.ts index 4e3393d7e4e3..74e49a3bb2cb 100644 --- a/projects/addon-doc/components/language-switcher/language-switcher.component.ts +++ b/projects/addon-doc/components/language-switcher/language-switcher.component.ts @@ -7,11 +7,8 @@ import { TuiFlagPipe, TuiFlagPipeModule, } from '@taiga-ui/core'; -import { - TuiCountryIsoCode, - type TuiLanguageName, - TuiLanguageSwitcher, -} from '@taiga-ui/i18n'; +import type {TuiLanguageName} from '@taiga-ui/i18n'; +import {TuiCountryIsoCode, TuiLanguageSwitcher} from '@taiga-ui/i18n'; import {TuiSelectModule} from '@taiga-ui/kit'; @Component({ diff --git a/projects/addon-doc/components/language-switcher/tests/language-switcher.component.spec.ts b/projects/addon-doc/components/language-switcher/tests/language-switcher.component.spec.ts index 765812f7c38a..25f39251bbe8 100644 --- a/projects/addon-doc/components/language-switcher/tests/language-switcher.component.spec.ts +++ b/projects/addon-doc/components/language-switcher/tests/language-switcher.component.spec.ts @@ -1,4 +1,5 @@ -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {ReactiveFormsModule} from '@angular/forms'; import {TuiLanguageSwitcherComponent} from '@taiga-ui/addon-doc'; import {TuiDataListModule} from '@taiga-ui/core'; diff --git a/projects/addon-doc/components/main/main.component.ts b/projects/addon-doc/components/main/main.component.ts index a11ce7c32678..c45976e97561 100644 --- a/projects/addon-doc/components/main/main.component.ts +++ b/projects/addon-doc/components/main/main.component.ts @@ -9,7 +9,8 @@ import { import {TuiThemeNightService, TuiThemeService} from '@taiga-ui/addon-doc/services'; import {TUI_DOC_ICONS} from '@taiga-ui/addon-doc/tokens'; import {TuiSwipeService} from '@taiga-ui/cdk'; -import {type TuiBrightness, TuiModeDirective} from '@taiga-ui/core'; +import type {TuiBrightness} from '@taiga-ui/core'; +import {TuiModeDirective} from '@taiga-ui/core'; import {distinctUntilChanged, map, share, startWith} from 'rxjs'; @Component({ diff --git a/projects/addon-doc/components/navigation/navigation.component.ts b/projects/addon-doc/components/navigation/navigation.component.ts index 7b84c9ace1c8..ba3c0e7191cf 100644 --- a/projects/addon-doc/components/navigation/navigation.component.ts +++ b/projects/addon-doc/components/navigation/navigation.component.ts @@ -9,13 +9,13 @@ import { import {FormControl} from '@angular/forms'; import {Title} from '@angular/platform-browser'; import {ActivatedRoute, Router, Scroll} from '@angular/router'; -import {type TuiDocPage} from '@taiga-ui/addon-doc/interfaces'; +import type {TuiDocPage} from '@taiga-ui/addon-doc/interfaces'; import { TUI_DOC_ICONS, TUI_DOC_PAGE_LOADED, TUI_DOC_SEARCH_TEXT, } from '@taiga-ui/addon-doc/tokens'; -import {type TuiDocPages} from '@taiga-ui/addon-doc/types'; +import type {TuiDocPages} from '@taiga-ui/addon-doc/types'; import {tuiTransliterateKeyboardLayout} from '@taiga-ui/addon-doc/utils'; import {TuiSidebarDirective} from '@taiga-ui/addon-mobile'; import { @@ -25,18 +25,11 @@ import { tuiUniqBy, tuiWatch, } from '@taiga-ui/cdk'; -import {TUI_COMMON_ICONS, type TuiBrightness, TuiModeDirective} from '@taiga-ui/core'; -import {type TuiInputComponent} from '@taiga-ui/kit'; -import { - combineLatest, - filter, - map, - type Observable, - startWith, - switchMap, - take, - takeUntil, -} from 'rxjs'; +import type {TuiBrightness} from '@taiga-ui/core'; +import {TUI_COMMON_ICONS, TuiModeDirective} from '@taiga-ui/core'; +import type {TuiInputComponent} from '@taiga-ui/kit'; +import type {Observable} from 'rxjs'; +import {combineLatest, filter, map, startWith, switchMap, take, takeUntil} from 'rxjs'; import { NAVIGATION_ITEMS, diff --git a/projects/addon-doc/components/navigation/navigation.providers.ts b/projects/addon-doc/components/navigation/navigation.providers.ts index 54a597094cea..ef95a9af6cf3 100644 --- a/projects/addon-doc/components/navigation/navigation.providers.ts +++ b/projects/addon-doc/components/navigation/navigation.providers.ts @@ -1,9 +1,11 @@ -import {InjectionToken, type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {InjectionToken} from '@angular/core'; import {ActivatedRoute, NavigationEnd, Router} from '@angular/router'; import {TUI_DOC_PAGES, TUI_DOC_TITLE} from '@taiga-ui/addon-doc/tokens'; -import {type TuiDocPages} from '@taiga-ui/addon-doc/types'; +import type {TuiDocPages} from '@taiga-ui/addon-doc/types'; import {TuiDestroyService, tuiIsPresent} from '@taiga-ui/cdk'; -import {filter, map, mergeMap, type Observable, takeUntil} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {filter, map, mergeMap, takeUntil} from 'rxjs'; function labelsProviderFactory(pages: TuiDocPages): readonly string[] { return pages diff --git a/projects/addon-doc/components/page/page.component.ts b/projects/addon-doc/components/page/page.component.ts index 8a50f8475c82..e6684496efb1 100644 --- a/projects/addon-doc/components/page/page.component.ts +++ b/projects/addon-doc/components/page/page.component.ts @@ -1,10 +1,10 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, ContentChildren, inject, Input, - type QueryList, } from '@angular/core'; import {TUI_DOC_DEFAULT_TABS} from '@taiga-ui/addon-doc/tokens'; import {EMPTY_QUERY} from '@taiga-ui/cdk'; diff --git a/projects/addon-doc/components/page/page.providers.ts b/projects/addon-doc/components/page/page.providers.ts index 8be484f20e08..a11a6b385cee 100644 --- a/projects/addon-doc/components/page/page.providers.ts +++ b/projects/addon-doc/components/page/page.providers.ts @@ -1,4 +1,5 @@ -import {ElementRef, InjectionToken, type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {ElementRef, InjectionToken} from '@angular/core'; import {TUI_DOC_SEE_ALSO} from '@taiga-ui/addon-doc/tokens'; /** diff --git a/projects/addon-doc/components/page/tests/page.component.spec.ts b/projects/addon-doc/components/page/tests/page.component.spec.ts index de28d4bdbf0b..946a2556b0ed 100644 --- a/projects/addon-doc/components/page/tests/page.component.spec.ts +++ b/projects/addon-doc/components/page/tests/page.component.spec.ts @@ -1,4 +1,5 @@ -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {PAGE_SEE_ALSO, TuiDocPageComponent} from '@taiga-ui/addon-doc'; import {TUI_DOC_DEFAULT_TABS} from '@taiga-ui/addon-doc/tokens'; import {EMPTY_QUERY} from '@taiga-ui/cdk'; diff --git a/projects/addon-doc/interfaces/code-editor.ts b/projects/addon-doc/interfaces/code-editor.ts index 279a8cc33a71..24762dbfede6 100644 --- a/projects/addon-doc/interfaces/code-editor.ts +++ b/projects/addon-doc/interfaces/code-editor.ts @@ -1,4 +1,4 @@ -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiCodeEditor { readonly content?: PolymorpheusContent; diff --git a/projects/addon-doc/interfaces/page.ts b/projects/addon-doc/interfaces/page.ts index bb39727d2533..20d918980a52 100644 --- a/projects/addon-doc/interfaces/page.ts +++ b/projects/addon-doc/interfaces/page.ts @@ -1,4 +1,4 @@ -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiDocPageBase { readonly section?: string; diff --git a/projects/addon-doc/pipes/markdown/markdown.pipe.ts b/projects/addon-doc/pipes/markdown/markdown.pipe.ts index 8177089204b4..8ad40eab233a 100644 --- a/projects/addon-doc/pipes/markdown/markdown.pipe.ts +++ b/projects/addon-doc/pipes/markdown/markdown.pipe.ts @@ -1,11 +1,13 @@ -import {inject, Pipe, type PipeTransform, SecurityContext} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe, SecurityContext} from '@angular/core'; import {DomSanitizer} from '@angular/platform-browser'; -import {type TuiRawLoaderContent} from '@taiga-ui/addon-doc/interfaces'; +import type {TuiRawLoaderContent} from '@taiga-ui/addon-doc/interfaces'; import {tuiRawLoad} from '@taiga-ui/addon-doc/utils'; -import {type TuiSafeHtml, type TuiStringHandler} from '@taiga-ui/cdk'; +import type {TuiSafeHtml, TuiStringHandler} from '@taiga-ui/cdk'; import {TUI_SANITIZER} from '@taiga-ui/core'; import {marked, Renderer} from 'marked'; -import {identity, map, type Observable, of, switchMap} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {identity, map, of, switchMap} from 'rxjs'; @Pipe({ standalone: true, diff --git a/projects/addon-doc/tokens/code-actions.ts b/projects/addon-doc/tokens/code-actions.ts index 3ddeb2bbe46f..0053c0764f45 100644 --- a/projects/addon-doc/tokens/code-actions.ts +++ b/projects/addon-doc/tokens/code-actions.ts @@ -1,5 +1,6 @@ -import {type TuiContext, tuiCreateToken} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {tuiCreateToken} from '@taiga-ui/cdk'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; /** * Code actions for the opened tab with code example diff --git a/projects/addon-doc/tokens/code-editor.ts b/projects/addon-doc/tokens/code-editor.ts index 298b57be4895..7afecca1e782 100644 --- a/projects/addon-doc/tokens/code-editor.ts +++ b/projects/addon-doc/tokens/code-editor.ts @@ -1,5 +1,5 @@ import {InjectionToken} from '@angular/core'; -import {type TuiCodeEditor} from '@taiga-ui/addon-doc/interfaces'; +import type {TuiCodeEditor} from '@taiga-ui/addon-doc/interfaces'; /** * Service for opening online IDE e.g. Stackblitz diff --git a/projects/addon-doc/tokens/doc-icons.ts b/projects/addon-doc/tokens/doc-icons.ts index ab229098362f..77ca2491a77d 100644 --- a/projects/addon-doc/tokens/doc-icons.ts +++ b/projects/addon-doc/tokens/doc-icons.ts @@ -1,4 +1,4 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiDocIcons { diff --git a/projects/addon-doc/tokens/example-content-processor.ts b/projects/addon-doc/tokens/example-content-processor.ts index 99b96edacc57..b0b85f9f98b6 100644 --- a/projects/addon-doc/tokens/example-content-processor.ts +++ b/projects/addon-doc/tokens/example-content-processor.ts @@ -1,5 +1,6 @@ import {tuiTryParseMarkdownCodeBlock} from '@taiga-ui/addon-doc/utils'; -import {tuiCreateToken, type TuiHandler} from '@taiga-ui/cdk'; +import type {TuiHandler} from '@taiga-ui/cdk'; +import {tuiCreateToken} from '@taiga-ui/cdk'; import {identity} from 'rxjs'; /** diff --git a/projects/addon-doc/tokens/excluded-properties.ts b/projects/addon-doc/tokens/excluded-properties.ts index b462e63a66ca..540f90450425 100644 --- a/projects/addon-doc/tokens/excluded-properties.ts +++ b/projects/addon-doc/tokens/excluded-properties.ts @@ -1,4 +1,4 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken} from '@taiga-ui/cdk'; /** diff --git a/projects/addon-doc/tokens/logo.ts b/projects/addon-doc/tokens/logo.ts index 0353a3a5bc57..b7c4f6942c68 100644 --- a/projects/addon-doc/tokens/logo.ts +++ b/projects/addon-doc/tokens/logo.ts @@ -1,5 +1,5 @@ import {tuiCreateToken} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; /** * Main logo diff --git a/projects/addon-doc/tokens/pages.ts b/projects/addon-doc/tokens/pages.ts index ea8bb28cc02c..0e607106d5e3 100644 --- a/projects/addon-doc/tokens/pages.ts +++ b/projects/addon-doc/tokens/pages.ts @@ -1,5 +1,6 @@ -import {inject, type InjectionToken} from '@angular/core'; -import {type TuiDocPage} from '@taiga-ui/addon-doc/interfaces'; +import type {InjectionToken} from '@angular/core'; +import {inject} from '@angular/core'; +import type {TuiDocPage} from '@taiga-ui/addon-doc/interfaces'; import type {TuiDocPages} from '@taiga-ui/addon-doc/types'; import {tuiToFlatMapPages} from '@taiga-ui/addon-doc/utils'; import {tuiCreateToken, tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; diff --git a/projects/addon-doc/tokens/source-code.ts b/projects/addon-doc/tokens/source-code.ts index f2d46ab98898..3d75acee7d48 100644 --- a/projects/addon-doc/tokens/source-code.ts +++ b/projects/addon-doc/tokens/source-code.ts @@ -1,6 +1,6 @@ -import {type TuiDocSourceCodePathOptions} from '@taiga-ui/addon-doc/interfaces'; +import type {TuiDocSourceCodePathOptions} from '@taiga-ui/addon-doc/interfaces'; import {tuiCreateToken} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; /** * Source code link diff --git a/projects/addon-doc/tokens/type-reference-handler.ts b/projects/addon-doc/tokens/type-reference-handler.ts index 1ea238324465..9b31d7e37ba7 100644 --- a/projects/addon-doc/tokens/type-reference-handler.ts +++ b/projects/addon-doc/tokens/type-reference-handler.ts @@ -1,8 +1,7 @@ -import { - type TuiDocTypeReferenceParsed, - tuiTypeReferenceParser, -} from '@taiga-ui/addon-doc/utils'; -import {tuiCreateToken, type TuiHandler, type TuiStringHandler} from '@taiga-ui/cdk'; +import type {TuiDocTypeReferenceParsed} from '@taiga-ui/addon-doc/utils'; +import {tuiTypeReferenceParser} from '@taiga-ui/addon-doc/utils'; +import type {TuiHandler, TuiStringHandler} from '@taiga-ui/cdk'; +import {tuiCreateToken} from '@taiga-ui/cdk'; export const TUI_DOC_TYPE_REFERENCE_HANDLER = tuiCreateToken): Routes { return [ diff --git a/projects/addon-doc/utils/is-page-group.ts b/projects/addon-doc/utils/is-page-group.ts index 5aaece6140f1..e4cda5d0e7ab 100644 --- a/projects/addon-doc/utils/is-page-group.ts +++ b/projects/addon-doc/utils/is-page-group.ts @@ -1,4 +1,4 @@ -import {type TuiDocPage, type TuiDocPageGroup} from '@taiga-ui/addon-doc/interfaces'; +import type {TuiDocPage, TuiDocPageGroup} from '@taiga-ui/addon-doc/interfaces'; export function tuiIsPageGroup( page: TuiDocPage | TuiDocPageGroup, diff --git a/projects/addon-doc/utils/provide-route-page-tab.ts b/projects/addon-doc/utils/provide-route-page-tab.ts index 3bdd491ae114..2f0fc9b9173f 100644 --- a/projects/addon-doc/utils/provide-route-page-tab.ts +++ b/projects/addon-doc/utils/provide-route-page-tab.ts @@ -1,6 +1,6 @@ -import {type Type} from '@angular/core'; -import {type DefaultExport, LoadChildren, type Route} from '@angular/router'; -import {type Observable} from 'rxjs'; +import type {Type} from '@angular/core'; +import type {DefaultExport, LoadChildren, Route} from '@angular/router'; +import type {Observable} from 'rxjs'; interface Options { path?: string; diff --git a/projects/addon-doc/utils/raw-load.ts b/projects/addon-doc/utils/raw-load.ts index 01e2ab5a02d4..62febdc23e77 100644 --- a/projects/addon-doc/utils/raw-load.ts +++ b/projects/addon-doc/utils/raw-load.ts @@ -1,4 +1,4 @@ -import {type TuiRawLoaderContent} from '@taiga-ui/addon-doc/interfaces'; +import type {TuiRawLoaderContent} from '@taiga-ui/addon-doc/interfaces'; export async function tuiRawLoad(content: TuiRawLoaderContent): Promise { return content instanceof Promise ? (await content).default : content; diff --git a/projects/addon-doc/utils/sort-pages.ts b/projects/addon-doc/utils/sort-pages.ts index 698b4001bff1..9adfa8e0bac0 100644 --- a/projects/addon-doc/utils/sort-pages.ts +++ b/projects/addon-doc/utils/sort-pages.ts @@ -1,4 +1,4 @@ -import {type TuiDocPage, type TuiDocPageGroup} from '@taiga-ui/addon-doc/interfaces'; +import type {TuiDocPage, TuiDocPageGroup} from '@taiga-ui/addon-doc/interfaces'; import {tuiIsPageGroup} from './is-page-group'; diff --git a/projects/addon-mobile/components/app-bar/app-bar.component.ts b/projects/addon-mobile/components/app-bar/app-bar.component.ts index d82b382e903a..42ac5ea393c7 100644 --- a/projects/addon-mobile/components/app-bar/app-bar.component.ts +++ b/projects/addon-mobile/components/app-bar/app-bar.component.ts @@ -1,11 +1,5 @@ -import { - ChangeDetectionStrategy, - Component, - type ElementRef, - inject, - type QueryList, - ViewChildren, -} from '@angular/core'; +import type {ElementRef, QueryList} from '@angular/core'; +import {ChangeDetectionStrategy, Component, inject, ViewChildren} from '@angular/core'; import {MutationObserverService} from '@ng-web-apis/mutation-observer'; import {ResizeObserverService} from '@ng-web-apis/resize-observer'; import {EMPTY_QUERY} from '@taiga-ui/cdk'; diff --git a/projects/addon-mobile/components/app-bar/app-bar.providers.ts b/projects/addon-mobile/components/app-bar/app-bar.providers.ts index f51cf3f75755..f9609892f0a6 100644 --- a/projects/addon-mobile/components/app-bar/app-bar.providers.ts +++ b/projects/addon-mobile/components/app-bar/app-bar.providers.ts @@ -1,4 +1,4 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import { MUTATION_OBSERVER_INIT, MutationObserverService, diff --git a/projects/addon-mobile/components/mobile-calendar-dialog/mobile-calendar-dialog.component.ts b/projects/addon-mobile/components/mobile-calendar-dialog/mobile-calendar-dialog.component.ts index b9e31477c7ba..70a7d1c5e099 100644 --- a/projects/addon-mobile/components/mobile-calendar-dialog/mobile-calendar-dialog.component.ts +++ b/projects/addon-mobile/components/mobile-calendar-dialog/mobile-calendar-dialog.component.ts @@ -1,14 +1,8 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; -import { - ALWAYS_FALSE_HANDLER, - TUI_FIRST_DAY, - TUI_LAST_DAY, - type TuiBooleanHandler, - type TuiDay, - type TuiDayRange, -} from '@taiga-ui/cdk'; -import {type TuiDialogContext} from '@taiga-ui/core'; -import {type TuiMobileCalendarData} from '@taiga-ui/kit'; +import type {TuiBooleanHandler, TuiDay, TuiDayRange} from '@taiga-ui/cdk'; +import {ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY} from '@taiga-ui/cdk'; +import type {TuiDialogContext} from '@taiga-ui/core'; +import type {TuiMobileCalendarData} from '@taiga-ui/kit'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; @Component({ diff --git a/projects/addon-mobile/components/mobile-calendar/mobile-calendar.component.ts b/projects/addon-mobile/components/mobile-calendar/mobile-calendar.component.ts index daeab052d5af..1ee61217ee68 100644 --- a/projects/addon-mobile/components/mobile-calendar/mobile-calendar.component.ts +++ b/projects/addon-mobile/components/mobile-calendar/mobile-calendar.component.ts @@ -1,7 +1,7 @@ -import {type CdkVirtualScrollViewport} from '@angular/cdk/scrolling'; +import type {CdkVirtualScrollViewport} from '@angular/cdk/scrolling'; import {DOCUMENT} from '@angular/common'; +import type {AfterViewInit} from '@angular/core'; import { - type AfterViewInit, ChangeDetectionStrategy, Component, EventEmitter, @@ -11,6 +11,7 @@ import { Output, ViewChild, } from '@angular/core'; +import type {TuiBooleanHandler, TuiTypedMapper} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, MONTHS_IN_YEAR, @@ -18,13 +19,11 @@ import { TUI_IS_E2E, TUI_IS_IOS, TUI_LAST_DAY, - type TuiBooleanHandler, TuiDay, TuiDayRange, TuiDestroyService, TuiMonth, tuiTypedFromEvent, - type TuiTypedMapper, tuiZonefree, } from '@taiga-ui/cdk'; import { @@ -40,6 +39,7 @@ import { TUI_DONE_WORD, tuiImmutableUpdateInputDateMulti, } from '@taiga-ui/kit'; +import type {MonoTypeOperatorFunction} from 'rxjs'; import { debounceTime, delay, @@ -47,7 +47,6 @@ import { identity, map, mergeMap, - type MonoTypeOperatorFunction, race, switchMap, take, diff --git a/projects/addon-mobile/components/mobile-calendar/mobile-calendar.providers.ts b/projects/addon-mobile/components/mobile-calendar/mobile-calendar.providers.ts index 595fee59096c..e2bbcee3709b 100644 --- a/projects/addon-mobile/components/mobile-calendar/mobile-calendar.providers.ts +++ b/projects/addon-mobile/components/mobile-calendar/mobile-calendar.providers.ts @@ -1,14 +1,11 @@ import {VIRTUAL_SCROLL_STRATEGY} from '@angular/cdk/scrolling'; -import {ChangeDetectorRef, InjectionToken, Optional, type Provider} from '@angular/core'; -import { - TUI_IS_IOS, - type TuiDayRange, - TuiDestroyService, - TuiScrollService, - tuiWatch, -} from '@taiga-ui/cdk'; +import type {Provider} from '@angular/core'; +import {ChangeDetectorRef, InjectionToken, Optional} from '@angular/core'; +import type {TuiDayRange} from '@taiga-ui/cdk'; +import {TUI_IS_IOS, TuiDestroyService, TuiScrollService, tuiWatch} from '@taiga-ui/cdk'; import {TUI_CALENDAR_DATE_STREAM} from '@taiga-ui/kit'; -import {EMPTY, type Observable, takeUntil} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {EMPTY, takeUntil} from 'rxjs'; import {TuiMobileCalendarStrategy} from './mobile-calendar.strategy'; diff --git a/projects/addon-mobile/components/mobile-calendar/mobile-calendar.strategy.ts b/projects/addon-mobile/components/mobile-calendar/mobile-calendar.strategy.ts index b8033036416e..a3d53bc2ccda 100644 --- a/projects/addon-mobile/components/mobile-calendar/mobile-calendar.strategy.ts +++ b/projects/addon-mobile/components/mobile-calendar/mobile-calendar.strategy.ts @@ -1,9 +1,11 @@ -import { - type CdkVirtualScrollViewport, - type VirtualScrollStrategy, +import type { + CdkVirtualScrollViewport, + VirtualScrollStrategy, } from '@angular/cdk/scrolling'; -import {MONTHS_IN_YEAR, tuiPure, type TuiScrollService} from '@taiga-ui/cdk'; -import {distinctUntilChanged, type Observable, Subject, takeUntil} from 'rxjs'; +import type {TuiScrollService} from '@taiga-ui/cdk'; +import {MONTHS_IN_YEAR, tuiPure} from '@taiga-ui/cdk'; +import type {Observable} from 'rxjs'; +import {distinctUntilChanged, Subject, takeUntil} from 'rxjs'; import { ANDROID_CYCLE, diff --git a/projects/addon-mobile/components/mobile-dialog/mobile-dialog.component.ts b/projects/addon-mobile/components/mobile-dialog/mobile-dialog.component.ts index d165b030c89b..5ce58bc0a6b7 100644 --- a/projects/addon-mobile/components/mobile-dialog/mobile-dialog.component.ts +++ b/projects/addon-mobile/components/mobile-dialog/mobile-dialog.component.ts @@ -1,8 +1,9 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; -import {TUI_IS_IOS, type TuiPopover} from '@taiga-ui/cdk'; +import type {TuiPopover} from '@taiga-ui/cdk'; +import {TUI_IS_IOS} from '@taiga-ui/cdk'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; -import {type TuiMobileDialogOptions} from './mobile-dialog.options'; +import type {TuiMobileDialogOptions} from './mobile-dialog.options'; @Component({ selector: 'tui-mobile-dialog', diff --git a/projects/addon-mobile/components/mobile-dialog/mobile-dialog.options.ts b/projects/addon-mobile/components/mobile-dialog/mobile-dialog.options.ts index 765f5ddd61ac..982c9e7382ee 100644 --- a/projects/addon-mobile/components/mobile-dialog/mobile-dialog.options.ts +++ b/projects/addon-mobile/components/mobile-dialog/mobile-dialog.options.ts @@ -1,4 +1,4 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiMobileDialogOptions { diff --git a/projects/addon-mobile/components/mobile-dialog/mobile-dialog.service.ts b/projects/addon-mobile/components/mobile-dialog/mobile-dialog.service.ts index 32488cb1ddc6..ab9b79186d30 100644 --- a/projects/addon-mobile/components/mobile-dialog/mobile-dialog.service.ts +++ b/projects/addon-mobile/components/mobile-dialog/mobile-dialog.service.ts @@ -1,14 +1,13 @@ import {inject, Injectable} from '@angular/core'; -import {type TuiPopoverContext, TuiPopoverService} from '@taiga-ui/cdk'; +import type {TuiPopoverContext} from '@taiga-ui/cdk'; +import {TuiPopoverService} from '@taiga-ui/cdk'; import {TUI_DIALOGS} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {type Observable} from 'rxjs'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; import {TuiMobileDialogComponent} from './mobile-dialog.component'; -import { - TUI_MOBILE_DIALOG_OPTIONS, - type TuiMobileDialogOptions, -} from './mobile-dialog.options'; +import type {TuiMobileDialogOptions} from './mobile-dialog.options'; +import {TUI_MOBILE_DIALOG_OPTIONS} from './mobile-dialog.options'; @Injectable({ providedIn: 'root', diff --git a/projects/addon-mobile/components/mobile-dialog/test/mobile-dialog.component.spec.ts b/projects/addon-mobile/components/mobile-dialog/test/mobile-dialog.component.spec.ts index b0b66c8eaf3d..8b3fb71a1c04 100644 --- a/projects/addon-mobile/components/mobile-dialog/test/mobile-dialog.component.spec.ts +++ b/projects/addon-mobile/components/mobile-dialog/test/mobile-dialog.component.spec.ts @@ -1,5 +1,7 @@ -import {Component, type DebugElement} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiRootModule} from '@taiga-ui/core'; import {TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/addon-mobile/components/pull-to-refresh/loader-android/loader-android.component.ts b/projects/addon-mobile/components/pull-to-refresh/loader-android/loader-android.component.ts index 3906960e2a7f..282dd36be695 100644 --- a/projects/addon-mobile/components/pull-to-refresh/loader-android/loader-android.component.ts +++ b/projects/addon-mobile/components/pull-to-refresh/loader-android/loader-android.component.ts @@ -1,6 +1,6 @@ import {NgIf} from '@angular/common'; import {ChangeDetectionStrategy, Component, HostBinding, inject} from '@angular/core'; -import {type TuiContext} from '@taiga-ui/cdk'; +import type {TuiContext} from '@taiga-ui/cdk'; import {TuiLoaderModule} from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT, PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; diff --git a/projects/addon-mobile/components/pull-to-refresh/loader-ios/loader-ios.component.ts b/projects/addon-mobile/components/pull-to-refresh/loader-ios/loader-ios.component.ts index 557e6eb0195f..0a0d36e80c4e 100644 --- a/projects/addon-mobile/components/pull-to-refresh/loader-ios/loader-ios.component.ts +++ b/projects/addon-mobile/components/pull-to-refresh/loader-ios/loader-ios.component.ts @@ -1,5 +1,5 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; -import {type TuiContext} from '@taiga-ui/cdk'; +import type {TuiContext} from '@taiga-ui/cdk'; import {POLYMORPHEUS_CONTEXT, PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; import {TUI_PULL_TO_REFRESH_THRESHOLD} from '../pull-to-refresh.providers'; diff --git a/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.component.ts b/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.component.ts index 6160ed70d2f9..01d44f5abdfa 100644 --- a/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.component.ts +++ b/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.component.ts @@ -6,25 +6,18 @@ import { NgZone, Output, } from '@angular/core'; +import type {TuiContext, TuiHandler} from '@taiga-ui/cdk'; import { TUI_IS_IOS, - type TuiContext, TuiDestroyService, - type TuiHandler, tuiPx, tuiScrollFrom, tuiZonefree, } from '@taiga-ui/cdk'; import {TUI_SCROLL_REF} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import { - distinctUntilChanged, - filter, - map, - type Observable, - startWith, - takeUntil, -} from 'rxjs'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; +import {distinctUntilChanged, filter, map, startWith, takeUntil} from 'rxjs'; import { TUI_PULL_TO_REFRESH_COMPONENT, diff --git a/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.providers.ts b/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.providers.ts index f5ef046765d2..5f6419426bb1 100644 --- a/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.providers.ts +++ b/projects/addon-mobile/components/pull-to-refresh/pull-to-refresh.providers.ts @@ -1,12 +1,9 @@ import {inject} from '@angular/core'; -import { - TUI_IS_IOS, - type TuiContext, - tuiCreateToken, - tuiCreateTokenFromFactory, -} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {EMPTY, type Observable} from 'rxjs'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {TUI_IS_IOS, tuiCreateToken, tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; +import {EMPTY} from 'rxjs'; import {TUI_ANDROID_LOADER} from './loader-android/loader-android.component'; import {TUI_IOS_LOADER} from './loader-ios/loader-ios.component'; diff --git a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.component.ts b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.component.ts index 48c129ff3977..4108142cd003 100644 --- a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.component.ts +++ b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.component.ts @@ -1,16 +1,16 @@ +import type {AfterViewInit, QueryList} from '@angular/core'; import { - type AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, HostBinding, HostListener, inject, - type QueryList, ViewChild, ViewChildren, } from '@angular/core'; -import {EMPTY_QUERY, type TuiPopover, tuiPure} from '@taiga-ui/cdk'; +import type {TuiPopover} from '@taiga-ui/cdk'; +import {EMPTY_QUERY, tuiPure} from '@taiga-ui/cdk'; import { TUI_ANIMATIONS_SPEED, TUI_CLOSE_WORD, @@ -22,7 +22,7 @@ import {shouldCall} from '@tinkoff/ng-event-plugins'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; import {BehaviorSubject} from 'rxjs'; -import {type TuiSheetDialogOptions} from './sheet-dialog.options'; +import type {TuiSheetDialogOptions} from './sheet-dialog.options'; // So we re-enter ngZone and trigger change detection function isCloseable(this: TuiSheetDialogComponent): boolean { diff --git a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.directive.ts b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.directive.ts index fe9f4e027aaa..27f04d7124fd 100644 --- a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.directive.ts +++ b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {tuiAsPopover, TuiPopoverDirective} from '@taiga-ui/cdk'; -import {type TuiSheetDialogOptions} from './sheet-dialog.options'; +import type {TuiSheetDialogOptions} from './sheet-dialog.options'; import {TuiSheetDialogService} from './sheet-dialog.service'; @Directive({ diff --git a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.options.ts b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.options.ts index 4a96b2d38e80..ab92b4f54f42 100644 --- a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.options.ts +++ b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.options.ts @@ -1,6 +1,6 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiSheetDialogOptions { readonly closeable: boolean; diff --git a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.service.ts b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.service.ts index 2b1a389601e4..3b2f42b86ff2 100644 --- a/projects/addon-mobile/components/sheet-dialog/sheet-dialog.service.ts +++ b/projects/addon-mobile/components/sheet-dialog/sheet-dialog.service.ts @@ -3,10 +3,8 @@ import {TuiPopoverService} from '@taiga-ui/cdk'; import {TUI_DIALOGS} from '@taiga-ui/core'; import {TuiSheetDialogComponent} from './sheet-dialog.component'; -import { - TUI_SHEET_DIALOG_OPTIONS, - type TuiSheetDialogOptions, -} from './sheet-dialog.options'; +import type {TuiSheetDialogOptions} from './sheet-dialog.options'; +import {TUI_SHEET_DIALOG_OPTIONS} from './sheet-dialog.options'; @Injectable({ providedIn: 'root', diff --git a/projects/addon-mobile/components/sheet/components/sheet-heading/sheet-heading.component.ts b/projects/addon-mobile/components/sheet/components/sheet-heading/sheet-heading.component.ts index 15ef79f84223..a023a2660eee 100644 --- a/projects/addon-mobile/components/sheet/components/sheet-heading/sheet-heading.component.ts +++ b/projects/addon-mobile/components/sheet/components/sheet-heading/sheet-heading.component.ts @@ -1,10 +1,5 @@ -import { - type AfterViewInit, - ChangeDetectionStrategy, - Component, - ElementRef, - inject, -} from '@angular/core'; +import type {AfterViewInit} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ElementRef, inject} from '@angular/core'; import {TuiIdService} from '@taiga-ui/cdk'; import {TUI_CLOSE_WORD, TUI_COMMON_ICONS} from '@taiga-ui/core'; diff --git a/projects/addon-mobile/components/sheet/components/sheet/sheet.component.ts b/projects/addon-mobile/components/sheet/components/sheet/sheet.component.ts index 04bc3c6f04c5..949451ab5315 100644 --- a/projects/addon-mobile/components/sheet/components/sheet/sheet.component.ts +++ b/projects/addon-mobile/components/sheet/components/sheet/sheet.component.ts @@ -1,5 +1,5 @@ +import type {AfterViewInit, QueryList} from '@angular/core'; import { - type AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, @@ -7,7 +7,6 @@ import { inject, Input, NgZone, - type QueryList, ViewChild, ViewChildren, } from '@angular/core'; @@ -22,7 +21,7 @@ import {tuiSlideInTop} from '@taiga-ui/core'; import {TUI_MORE_WORD} from '@taiga-ui/kit'; import {map, takeUntil, timer} from 'rxjs'; -import {type TuiSheet, type TuiSheetRequiredProps} from '../../sheet'; +import type {TuiSheet, TuiSheetRequiredProps} from '../../sheet'; import {TUI_SHEET_SCROLL} from '../../sheet-tokens'; import {TUI_SHEET_ID} from '../sheet-heading/sheet-heading.component'; import {TUI_SHEET_PROVIDERS} from './sheet.providers'; diff --git a/projects/addon-mobile/components/sheet/components/sheet/sheet.providers.ts b/projects/addon-mobile/components/sheet/components/sheet/sheet.providers.ts index 604ed7b8a54b..e2b6c16df97e 100644 --- a/projects/addon-mobile/components/sheet/components/sheet/sheet.providers.ts +++ b/projects/addon-mobile/components/sheet/components/sheet/sheet.providers.ts @@ -1,5 +1,6 @@ import {DOCUMENT} from '@angular/common'; -import {ElementRef, forwardRef, NgZone, type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {ElementRef, forwardRef, NgZone} from '@angular/core'; import { ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER, @@ -8,7 +9,8 @@ import { tuiZonefree, } from '@taiga-ui/cdk'; import {TUI_SCROLL_REF} from '@taiga-ui/core'; -import {map, merge, type Observable, share} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map, merge, share} from 'rxjs'; import {iosScrollFactory} from '../../ios.hacks'; import {TUI_SHEET, TUI_SHEET_DRAGGED, TUI_SHEET_SCROLL} from '../../sheet-tokens'; diff --git a/projects/addon-mobile/components/sheet/components/sheets-host/sheets-host.component.ts b/projects/addon-mobile/components/sheet/components/sheets-host/sheets-host.component.ts index 05e279b81132..a143df69d911 100644 --- a/projects/addon-mobile/components/sheet/components/sheets-host/sheets-host.component.ts +++ b/projects/addon-mobile/components/sheet/components/sheets-host/sheets-host.component.ts @@ -1,9 +1,9 @@ +import type {OnInit} from '@angular/core'; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, - type OnInit, } from '@angular/core'; import {TUI_WINDOW_HEIGHT, TuiDestroyService} from '@taiga-ui/cdk'; import { @@ -14,7 +14,7 @@ import { } from '@taiga-ui/core'; import {takeUntil} from 'rxjs'; -import {type TuiSheet} from '../../sheet'; +import type {TuiSheet} from '../../sheet'; import {TuiSheetService} from '../../sheet.service'; @Component({ diff --git a/projects/addon-mobile/components/sheet/directives/sheet-close/sheet-close.directive.ts b/projects/addon-mobile/components/sheet/directives/sheet-close/sheet-close.directive.ts index f12e61b1bc08..f6119d36402e 100644 --- a/projects/addon-mobile/components/sheet/directives/sheet-close/sheet-close.directive.ts +++ b/projects/addon-mobile/components/sheet/directives/sheet-close/sheet-close.directive.ts @@ -1,7 +1,8 @@ import {Directive, ElementRef, inject, NgZone, Output} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; import {tuiIfMap, tuiIsFalsy, tuiTypedFromEvent, tuiZonefull} from '@taiga-ui/cdk'; -import {distinctUntilChanged, filter, merge, type Observable, startWith} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {distinctUntilChanged, filter, merge, startWith} from 'rxjs'; import {TuiSheetComponent} from '../../components/sheet/sheet.component'; import {TUI_SHEET_CLOSE} from '../../components/sheet-heading/sheet-heading.component'; diff --git a/projects/addon-mobile/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.ts b/projects/addon-mobile/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.ts index 1efbc8845b52..407368583a8c 100644 --- a/projects/addon-mobile/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.ts +++ b/projects/addon-mobile/components/sheet/directives/sheet-wrapper/sheet-wrapper.directive.ts @@ -7,12 +7,12 @@ import { tuiPure, tuiZonefull, } from '@taiga-ui/cdk'; +import type {Observable} from 'rxjs'; import { debounceTime, distinctUntilChanged, filter, map, - type Observable, race, startWith, switchMap, diff --git a/projects/addon-mobile/components/sheet/ios.hacks.ts b/projects/addon-mobile/components/sheet/ios.hacks.ts index 4b8c5dcbd3f7..d396c745b3c3 100644 --- a/projects/addon-mobile/components/sheet/ios.hacks.ts +++ b/projects/addon-mobile/components/sheet/ios.hacks.ts @@ -1,17 +1,7 @@ -import {type NgZone} from '@angular/core'; +import type {NgZone} from '@angular/core'; import {tuiTypedFromEvent, tuiZonefree} from '@taiga-ui/cdk'; -import { - concat, - delay, - map, - merge, - type Observable, - share, - switchMap, - take, - takeUntil, - zip, -} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {concat, delay, map, merge, share, switchMap, take, takeUntil, zip} from 'rxjs'; // eslint-disable-next-line @typescript-eslint/naming-convention export function iosScrollFactory( diff --git a/projects/addon-mobile/components/sheet/sheet-options.ts b/projects/addon-mobile/components/sheet/sheet-options.ts index 74dd09b03235..b6d5cbdc2fe2 100644 --- a/projects/addon-mobile/components/sheet/sheet-options.ts +++ b/projects/addon-mobile/components/sheet/sheet-options.ts @@ -1,7 +1,7 @@ import {tuiCreateToken} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {type TuiSheet} from './sheet'; +import type {TuiSheet} from './sheet'; /** * @deprecated: drop in v4.0 diff --git a/projects/addon-mobile/components/sheet/sheet-tokens.ts b/projects/addon-mobile/components/sheet/sheet-tokens.ts index 66e6badd514e..8afbcb875429 100644 --- a/projects/addon-mobile/components/sheet/sheet-tokens.ts +++ b/projects/addon-mobile/components/sheet/sheet-tokens.ts @@ -1,7 +1,7 @@ import {InjectionToken} from '@angular/core'; -import {type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; -import {type TuiSheetRequiredProps} from './sheet'; +import type {TuiSheetRequiredProps} from './sheet'; /** * Sheet main component diff --git a/projects/addon-mobile/components/sheet/sheet.directive.ts b/projects/addon-mobile/components/sheet/sheet.directive.ts index cbe7cabfec35..ab663be31c1e 100644 --- a/projects/addon-mobile/components/sheet/sheet.directive.ts +++ b/projects/addon-mobile/components/sheet/sheet.directive.ts @@ -3,9 +3,9 @@ import {tuiIfMap} from '@taiga-ui/cdk'; import {PolymorpheusTemplate} from '@tinkoff/ng-polymorpheus'; import {endWith, ignoreElements, share, Subject} from 'rxjs'; -import {type TuiSheet} from './sheet'; +import type {TuiSheet} from './sheet'; import {TuiSheetService} from './sheet.service'; -import {type TuiSheetOptions} from './sheet-options'; +import type {TuiSheetOptions} from './sheet-options'; /** * @deprecated: use {@link TuiSheetDialogDirective} diff --git a/projects/addon-mobile/components/sheet/sheet.service.ts b/projects/addon-mobile/components/sheet/sheet.service.ts index 1ac8af98e2f8..9954f8f0b780 100644 --- a/projects/addon-mobile/components/sheet/sheet.service.ts +++ b/projects/addon-mobile/components/sheet/sheet.service.ts @@ -1,11 +1,12 @@ import {DOCUMENT} from '@angular/common'; import {inject, Injectable} from '@angular/core'; import {tuiGetNativeFocused, tuiIsHTMLElement} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {BehaviorSubject, EMPTY, Observable} from 'rxjs'; -import {type TuiSheet} from './sheet'; -import {TUI_SHEET_OPTIONS, type TuiSheetOptions} from './sheet-options'; +import type {TuiSheet} from './sheet'; +import type {TuiSheetOptions} from './sheet-options'; +import {TUI_SHEET_OPTIONS} from './sheet-options'; /** * @deprecated: use {@link TuiSheetDialogService} diff --git a/projects/addon-mobile/components/sheet/sheet.ts b/projects/addon-mobile/components/sheet/sheet.ts index f98701f13037..7ca0aca4ed87 100644 --- a/projects/addon-mobile/components/sheet/sheet.ts +++ b/projects/addon-mobile/components/sheet/sheet.ts @@ -1,6 +1,6 @@ -import {type TuiContext} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {type Observable, type Observer} from 'rxjs'; +import type {TuiContext} from '@taiga-ui/cdk'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable, Observer} from 'rxjs'; import type {TuiSheetOptions} from './sheet-options'; diff --git a/projects/addon-mobile/components/tab-bar/tab-bar-item.directive.ts b/projects/addon-mobile/components/tab-bar/tab-bar-item.directive.ts index e96adf56fb15..cda9c9801cf1 100644 --- a/projects/addon-mobile/components/tab-bar/tab-bar-item.directive.ts +++ b/projects/addon-mobile/components/tab-bar/tab-bar-item.directive.ts @@ -1,7 +1,8 @@ import {ChangeDetectorRef, Directive, ElementRef, inject} from '@angular/core'; import {RouterLinkActive} from '@angular/router'; import {TuiDestroyService, tuiWatch} from '@taiga-ui/cdk'; -import {EMPTY, filter, type Observable, takeUntil} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {EMPTY, filter, takeUntil} from 'rxjs'; import {TuiTabBarComponent} from './tab-bar.component'; diff --git a/projects/addon-mobile/components/tab-bar/tab-bar.component.ts b/projects/addon-mobile/components/tab-bar/tab-bar.component.ts index 9055c10c2eff..21bb7b9525b4 100644 --- a/projects/addon-mobile/components/tab-bar/tab-bar.component.ts +++ b/projects/addon-mobile/components/tab-bar/tab-bar.component.ts @@ -1,3 +1,4 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, @@ -9,7 +10,6 @@ import { HostListener, Input, Output, - type QueryList, } from '@angular/core'; import {EMPTY_QUERY, tuiIsElement} from '@taiga-ui/cdk'; diff --git a/projects/addon-mobile/const/mobile-alert-options.ts b/projects/addon-mobile/const/mobile-alert-options.ts index 33dff64c59a7..798a8042a041 100644 --- a/projects/addon-mobile/const/mobile-alert-options.ts +++ b/projects/addon-mobile/const/mobile-alert-options.ts @@ -1,4 +1,4 @@ -import {type TuiDialogOptions} from '@taiga-ui/core'; +import type {TuiDialogOptions} from '@taiga-ui/core'; const MOBILE_ALERT_OPTIONS: TuiMobileAlertOptions = { size: 'fullscreen', diff --git a/projects/addon-mobile/directives/mobile-tabs/mobile-tabs.directive.ts b/projects/addon-mobile/directives/mobile-tabs/mobile-tabs.directive.ts index 9ce1a397e7c1..aef5366c8220 100644 --- a/projects/addon-mobile/directives/mobile-tabs/mobile-tabs.directive.ts +++ b/projects/addon-mobile/directives/mobile-tabs/mobile-tabs.directive.ts @@ -1,5 +1,6 @@ import {Directive, HostBinding, inject} from '@angular/core'; -import {TUI_IS_ANDROID, TUI_IS_IOS, type TuiPlatform, tuiWithStyles} from '@taiga-ui/cdk'; +import type {TuiPlatform} from '@taiga-ui/cdk'; +import {TUI_IS_ANDROID, TUI_IS_IOS, tuiWithStyles} from '@taiga-ui/cdk'; import {TUI_TAB_MARGIN} from '@taiga-ui/kit'; import {TuiMobileTabsComponent} from './mobile-tabs.component'; diff --git a/projects/addon-mobile/directives/ripple/ripple.providers.ts b/projects/addon-mobile/directives/ripple/ripple.providers.ts index c1987c0c5f98..e97760475667 100644 --- a/projects/addon-mobile/directives/ripple/ripple.providers.ts +++ b/projects/addon-mobile/directives/ripple/ripple.providers.ts @@ -1,4 +1,5 @@ -import {ElementRef, InjectionToken, type Provider, Renderer2} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {ElementRef, InjectionToken, Renderer2} from '@angular/core'; import { TUI_IS_IOS, TUI_TOUCH_SUPPORTED, @@ -7,7 +8,8 @@ import { tuiPx, tuiTypedFromEvent, } from '@taiga-ui/cdk'; -import {EMPTY, filter, map, type Observable, takeUntil} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {EMPTY, filter, map, takeUntil} from 'rxjs'; export const RIPPLE_ON = 'tuiRippleOn'; export const RIPPLE_OFF = 'tuiRippleOff'; diff --git a/projects/addon-mobile/directives/sidebar/sidebar.component.ts b/projects/addon-mobile/directives/sidebar/sidebar.component.ts index 0e92158d8805..cfce9b0f68a3 100644 --- a/projects/addon-mobile/directives/sidebar/sidebar.component.ts +++ b/projects/addon-mobile/directives/sidebar/sidebar.component.ts @@ -1,18 +1,9 @@ -import {type AnimationOptions} from '@angular/animations'; -import { - ChangeDetectionStrategy, - Component, - type DoCheck, - HostBinding, - inject, -} from '@angular/core'; -import { - TUI_ANIMATIONS_SPEED, - type TuiHorizontalDirection, - tuiSlideIn, - tuiToAnimationOptions, -} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {AnimationOptions} from '@angular/animations'; +import type {DoCheck} from '@angular/core'; +import {ChangeDetectionStrategy, Component, HostBinding, inject} from '@angular/core'; +import type {TuiHorizontalDirection} from '@taiga-ui/core'; +import {TUI_ANIMATIONS_SPEED, tuiSlideIn, tuiToAnimationOptions} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TuiSidebarDirective} from './sidebar.directive'; diff --git a/projects/addon-mobile/directives/sidebar/sidebar.directive.ts b/projects/addon-mobile/directives/sidebar/sidebar.directive.ts index a16f8ac0bd37..516c66c5069a 100644 --- a/projects/addon-mobile/directives/sidebar/sidebar.directive.ts +++ b/projects/addon-mobile/directives/sidebar/sidebar.directive.ts @@ -1,13 +1,7 @@ -import { - type ComponentRef, - Directive, - inject, - INJECTOR, - Input, - type OnDestroy, - TemplateRef, -} from '@angular/core'; -import {TuiDropdownService, type TuiHorizontalDirection} from '@taiga-ui/core'; +import type {ComponentRef, OnDestroy} from '@angular/core'; +import {Directive, inject, INJECTOR, Input, TemplateRef} from '@angular/core'; +import type {TuiHorizontalDirection} from '@taiga-ui/core'; +import {TuiDropdownService} from '@taiga-ui/core'; import {PolymorpheusComponent, PolymorpheusTemplate} from '@tinkoff/ng-polymorpheus'; import {TuiSidebarComponent} from './sidebar.component'; diff --git a/projects/addon-mobile/directives/touchable/touchable.directive.ts b/projects/addon-mobile/directives/touchable/touchable.directive.ts index 862aad580755..4856fe6e7b96 100644 --- a/projects/addon-mobile/directives/touchable/touchable.directive.ts +++ b/projects/addon-mobile/directives/touchable/touchable.directive.ts @@ -1,5 +1,5 @@ import {Directive, ElementRef, inject, Input, Renderer2} from '@angular/core'; -import {type TuiTouchMode} from '@taiga-ui/addon-mobile/types'; +import type {TuiTouchMode} from '@taiga-ui/addon-mobile/types'; import {tuiFindTouchIndex} from '@taiga-ui/addon-mobile/utils'; import {TUI_IS_IOS, TuiDestroyService, tuiTypedFromEvent} from '@taiga-ui/cdk'; import {TUI_ELEMENT_REF} from '@taiga-ui/core'; diff --git a/projects/addon-mobile/interfaces/mobile-alert-data.ts b/projects/addon-mobile/interfaces/mobile-alert-data.ts index 83811c2476af..837bbb23de02 100644 --- a/projects/addon-mobile/interfaces/mobile-alert-data.ts +++ b/projects/addon-mobile/interfaces/mobile-alert-data.ts @@ -1,4 +1,4 @@ -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiMobileAlertData { readonly confirmText?: string; diff --git a/projects/addon-preview/components/preview-dialog/preview-dialog.component.ts b/projects/addon-preview/components/preview-dialog/preview-dialog.component.ts index 1ec7cfb3ac6c..4bad5d535a79 100644 --- a/projects/addon-preview/components/preview-dialog/preview-dialog.component.ts +++ b/projects/addon-preview/components/preview-dialog/preview-dialog.component.ts @@ -5,7 +5,7 @@ import { inject, ViewEncapsulation, } from '@angular/core'; -import {type TuiPopover} from '@taiga-ui/cdk'; +import type {TuiPopover} from '@taiga-ui/cdk'; import {tuiSlideInTop} from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; diff --git a/projects/addon-preview/components/preview/pagination/test/preview-pagination.spec.ts b/projects/addon-preview/components/preview/pagination/test/preview-pagination.spec.ts index 4340c65d91d6..d39ddab3f530 100644 --- a/projects/addon-preview/components/preview/pagination/test/preview-pagination.spec.ts +++ b/projects/addon-preview/components/preview/pagination/test/preview-pagination.spec.ts @@ -1,5 +1,6 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import {TuiPreviewModule, TuiPreviewPaginationComponent} from '@taiga-ui/addon-preview'; diff --git a/projects/addon-preview/components/preview/preview.component.ts b/projects/addon-preview/components/preview/preview.component.ts index de254e10b0f8..62ae4226de3c 100644 --- a/projects/addon-preview/components/preview/preview.component.ts +++ b/projects/addon-preview/components/preview/preview.component.ts @@ -6,6 +6,7 @@ import { Input, } from '@angular/core'; import {TUI_PREVIEW_ICONS, TUI_PREVIEW_TEXTS} from '@taiga-ui/addon-preview/tokens'; +import type {TuiZoom} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, tuiClamp, @@ -14,7 +15,6 @@ import { tuiPx, tuiRound, tuiTypedFromEvent, - type TuiZoom, } from '@taiga-ui/cdk'; import {tuiSlideInTop} from '@taiga-ui/core'; import {BehaviorSubject, combineLatest, map, merge, startWith} from 'rxjs'; diff --git a/projects/addon-preview/tokens/preview-icons.ts b/projects/addon-preview/tokens/preview-icons.ts index 27d16c9ecdca..9b965535b3f1 100644 --- a/projects/addon-preview/tokens/preview-icons.ts +++ b/projects/addon-preview/tokens/preview-icons.ts @@ -1,4 +1,4 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiPreviewIcons { diff --git a/projects/addon-table/components/reorder/reorder.options.ts b/projects/addon-table/components/reorder/reorder.options.ts index f9fa845a59d6..4a2be26a0dbe 100644 --- a/projects/addon-table/components/reorder/reorder.options.ts +++ b/projects/addon-table/components/reorder/reorder.options.ts @@ -1,4 +1,4 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiReorderOptions { diff --git a/projects/addon-table/components/table-pagination/table-pagination.component.ts b/projects/addon-table/components/table-pagination/table-pagination.component.ts index 36806a2b7b4e..c47dbcbf5412 100644 --- a/projects/addon-table/components/table-pagination/table-pagination.component.ts +++ b/projects/addon-table/components/table-pagination/table-pagination.component.ts @@ -9,10 +9,8 @@ import { import {TUI_TABLE_PAGINATION_TEXTS} from '@taiga-ui/addon-table/tokens'; import {TUI_COMMON_ICONS, TUI_SPIN_ICONS, TUI_SPIN_TEXTS} from '@taiga-ui/core'; -import { - TUI_TABLE_PAGINATION_OPTIONS, - type TuiTablePaginationOptions, -} from './table-pagination.options'; +import type {TuiTablePaginationOptions} from './table-pagination.options'; +import {TUI_TABLE_PAGINATION_OPTIONS} from './table-pagination.options'; export interface TuiTablePagination { readonly page: number; diff --git a/projects/addon-table/components/table-pagination/table-pagination.options.ts b/projects/addon-table/components/table-pagination/table-pagination.options.ts index e0fbbc453f72..5349cc5aec7d 100644 --- a/projects/addon-table/components/table-pagination/table-pagination.options.ts +++ b/projects/addon-table/components/table-pagination/table-pagination.options.ts @@ -1,6 +1,7 @@ -import {type Provider} from '@angular/core'; -import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Provider} from '@angular/core'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; function defaultSizeOptionContent({$implicit}: TuiContext): string { return `${$implicit}`; diff --git a/projects/addon-table/components/table-pagination/test/table-pagination.component.spec.ts b/projects/addon-table/components/table-pagination/test/table-pagination.component.spec.ts index adb35d8e56fa..06457cde9f7d 100644 --- a/projects/addon-table/components/table-pagination/test/table-pagination.component.spec.ts +++ b/projects/addon-table/components/table-pagination/test/table-pagination.component.spec.ts @@ -1,5 +1,6 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import { TuiTablePaginationComponent, TuiTablePaginationModule, diff --git a/projects/addon-table/components/table/directives/row.directive.ts b/projects/addon-table/components/table/directives/row.directive.ts index 68502d5cac96..ff7b1edc450b 100644 --- a/projects/addon-table/components/table/directives/row.directive.ts +++ b/projects/addon-table/components/table/directives/row.directive.ts @@ -1,5 +1,5 @@ import {Directive, inject, Input, TemplateRef} from '@angular/core'; -import {type TuiRowContext} from '@taiga-ui/addon-table/interfaces'; +import type {TuiRowContext} from '@taiga-ui/addon-table/interfaces'; /** * @deprecated use `*ngFor` + `tuiTableSort`-pipe instead. diff --git a/projects/addon-table/components/table/directives/sort-by.directive.ts b/projects/addon-table/components/table/directives/sort-by.directive.ts index cad707f536d7..6df94efd0795 100644 --- a/projects/addon-table/components/table/directives/sort-by.directive.ts +++ b/projects/addon-table/components/table/directives/sort-by.directive.ts @@ -1,12 +1,6 @@ -import { - ContentChildren, - Directive, - inject, - Input, - Output, - type QueryList, -} from '@angular/core'; -import {type TuiComparator} from '@taiga-ui/addon-table/types'; +import type {QueryList} from '@angular/core'; +import {ContentChildren, Directive, inject, Input, Output} from '@angular/core'; +import type {TuiComparator} from '@taiga-ui/addon-table/types'; import {EMPTY_QUERY} from '@taiga-ui/cdk'; import {delay, filter, map} from 'rxjs'; diff --git a/projects/addon-table/components/table/directives/sortable.directive.ts b/projects/addon-table/components/table/directives/sortable.directive.ts index daf4ad86cc87..017851252c6f 100644 --- a/projects/addon-table/components/table/directives/sortable.directive.ts +++ b/projects/addon-table/components/table/directives/sortable.directive.ts @@ -1,5 +1,6 @@ -import {Directive, forwardRef, inject, type OnInit} from '@angular/core'; -import {type TuiComparator} from '@taiga-ui/addon-table/types'; +import type {OnInit} from '@angular/core'; +import {Directive, forwardRef, inject} from '@angular/core'; +import type {TuiComparator} from '@taiga-ui/addon-table/types'; import {TuiThComponent} from '../th/th.component'; import {TuiSortByDirective} from './sort-by.directive'; diff --git a/projects/addon-table/components/table/directives/table.directive.ts b/projects/addon-table/components/table/directives/table.directive.ts index 4f0e102e2a99..71f63339145f 100644 --- a/projects/addon-table/components/table/directives/table.directive.ts +++ b/projects/addon-table/components/table/directives/table.directive.ts @@ -1,5 +1,5 @@ +import type {AfterViewInit} from '@angular/core'; import { - type AfterViewInit, ChangeDetectorRef, Directive, EventEmitter, @@ -9,10 +9,10 @@ import { Output, } from '@angular/core'; import {IntersectionObserverService} from '@ng-web-apis/intersection-observer'; -import {type TuiComparator} from '@taiga-ui/addon-table/types'; +import type {TuiComparator} from '@taiga-ui/addon-table/types'; import {AbstractTuiController} from '@taiga-ui/cdk'; import {TUI_MODE} from '@taiga-ui/core'; -import {type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; import {TUI_STUCK} from '../providers/stuck.provider'; import {TUI_TABLE_PROVIDERS} from '../providers/table.providers'; diff --git a/projects/addon-table/components/table/directives/test/direction-order.directive.spec.ts b/projects/addon-table/components/table/directives/test/direction-order.directive.spec.ts index c038564eefb1..80b8655d9208 100644 --- a/projects/addon-table/components/table/directives/test/direction-order.directive.spec.ts +++ b/projects/addon-table/components/table/directives/test/direction-order.directive.spec.ts @@ -1,5 +1,6 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {TuiTableDirective, TuiTableModule} from '@taiga-ui/addon-table'; describe('TuiDirectionOrder directive', () => { diff --git a/projects/addon-table/components/table/pipes/table-sort.pipe.ts b/projects/addon-table/components/table/pipes/table-sort.pipe.ts index 60a1a1354bd7..58baccb38410 100644 --- a/projects/addon-table/components/table/pipes/table-sort.pipe.ts +++ b/projects/addon-table/components/table/pipes/table-sort.pipe.ts @@ -1,5 +1,6 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; -import {type TuiComparator} from '@taiga-ui/addon-table/types'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; +import type {TuiComparator} from '@taiga-ui/addon-table/types'; import {tuiPure} from '@taiga-ui/cdk'; import {TuiTableDirective} from '../directives/table.directive'; diff --git a/projects/addon-table/components/table/providers/stuck.provider.ts b/projects/addon-table/components/table/providers/stuck.provider.ts index 79833a87d3da..52588be2942f 100644 --- a/projects/addon-table/components/table/providers/stuck.provider.ts +++ b/projects/addon-table/components/table/providers/stuck.provider.ts @@ -1,6 +1,8 @@ -import {ElementRef, InjectionToken, type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {ElementRef, InjectionToken} from '@angular/core'; import {IntersectionObserverService} from '@ng-web-apis/intersection-observer'; -import {map, type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map} from 'rxjs'; /** * Stream of sticky stuck events */ diff --git a/projects/addon-table/components/table/providers/table.provider.ts b/projects/addon-table/components/table/providers/table.provider.ts index 48ae1a91a9a3..cdc3577ab289 100644 --- a/projects/addon-table/components/table/providers/table.provider.ts +++ b/projects/addon-table/components/table/providers/table.provider.ts @@ -1,4 +1,5 @@ -import {ChangeDetectorRef, type Provider, SkipSelf} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {ChangeDetectorRef, SkipSelf} from '@angular/core'; import {TuiDestroyService} from '@taiga-ui/cdk'; import {tuiWatchedControllerFactory} from '@taiga-ui/core'; diff --git a/projects/addon-table/components/table/table.options.ts b/projects/addon-table/components/table/table.options.ts index 112a7e4d8cd6..5d029adc7a98 100644 --- a/projects/addon-table/components/table/table.options.ts +++ b/projects/addon-table/components/table/table.options.ts @@ -1,6 +1,6 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; export interface TuiTableOptions { readonly direction: -1 | 1; diff --git a/projects/addon-table/components/table/tbody/tbody.component.ts b/projects/addon-table/components/table/tbody/tbody.component.ts index 3a28e303c29d..c1132979ee6d 100644 --- a/projects/addon-table/components/table/tbody/tbody.component.ts +++ b/projects/addon-table/components/table/tbody/tbody.component.ts @@ -1,3 +1,4 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, @@ -8,11 +9,10 @@ import { inject, Input, Output, - type QueryList, } from '@angular/core'; import {EMPTY_QUERY} from '@taiga-ui/cdk'; import {TUI_ARROW_OPTIONS} from '@taiga-ui/kit'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TuiRowDirective} from '../directives/row.directive'; import {TuiTableDirective} from '../directives/table.directive'; diff --git a/projects/addon-table/components/table/th-group/th-group.component.ts b/projects/addon-table/components/table/th-group/th-group.component.ts index a2b471440fdf..5d5f49d5e52c 100644 --- a/projects/addon-table/components/table/th-group/th-group.component.ts +++ b/projects/addon-table/components/table/th-group/th-group.component.ts @@ -1,15 +1,15 @@ +import type {AfterContentInit, QueryList} from '@angular/core'; import { - type AfterContentInit, ChangeDetectionStrategy, Component, ContentChild, ContentChildren, forwardRef, inject, - type QueryList, } from '@angular/core'; import {EMPTY_QUERY} from '@taiga-ui/cdk'; -import {map, type Observable, startWith} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map, startWith} from 'rxjs'; import {TuiHeadDirective} from '../directives/head.directive'; import {TuiTableDirective} from '../directives/table.directive'; diff --git a/projects/addon-table/components/table/th/th.component.ts b/projects/addon-table/components/table/th/th.component.ts index 4651fca81082..3375ce7217ff 100644 --- a/projects/addon-table/components/table/th/th.component.ts +++ b/projects/addon-table/components/table/th/th.component.ts @@ -7,7 +7,7 @@ import { inject, Input, } from '@angular/core'; -import {type TuiComparator} from '@taiga-ui/addon-table/types'; +import type {TuiComparator} from '@taiga-ui/addon-table/types'; import {tuiDefaultSort, TuiTableSortKeyException} from '@taiga-ui/cdk'; import {TUI_ELEMENT_REF} from '@taiga-ui/core'; diff --git a/projects/addon-table/components/table/tr/tr.component.ts b/projects/addon-table/components/table/tr/tr.component.ts index 7db6cf738897..f209fc4f2fcb 100644 --- a/projects/addon-table/components/table/tr/tr.component.ts +++ b/projects/addon-table/components/table/tr/tr.component.ts @@ -1,11 +1,10 @@ +import type {AfterContentInit, QueryList} from '@angular/core'; import { - type AfterContentInit, ChangeDetectionStrategy, Component, ContentChildren, forwardRef, inject, - type QueryList, } from '@angular/core'; import {EMPTY_QUERY, tuiQueryListChanges} from '@taiga-ui/cdk'; import {map, ReplaySubject, switchMap} from 'rxjs'; diff --git a/projects/addon-table/directives/table-filters/table-filter.directive.ts b/projects/addon-table/directives/table-filters/table-filter.directive.ts index 7bc5f4662949..bce3c866007d 100644 --- a/projects/addon-table/directives/table-filters/table-filter.directive.ts +++ b/projects/addon-table/directives/table-filters/table-filter.directive.ts @@ -1,11 +1,12 @@ -import {Directive, inject, Input, type OnDestroy, type OnInit} from '@angular/core'; +import type {OnDestroy, OnInit} from '@angular/core'; +import {Directive, inject, Input} from '@angular/core'; import {NgControl} from '@angular/forms'; import {TuiHeadDirective} from '@taiga-ui/addon-table/components'; -import {type TuiValuesOf} from '@taiga-ui/cdk'; +import type {TuiValuesOf} from '@taiga-ui/cdk'; import {defer, distinctUntilChanged, EMPTY, merge} from 'rxjs'; import {AbstractTuiTableFilter} from './abstract-table-filter'; -import {type TuiTableFilter} from './table-filter'; +import type {TuiTableFilter} from './table-filter'; import {TuiTableFiltersDirective} from './table-filters.directive'; @Directive({ diff --git a/projects/addon-table/directives/table-filters/table-filter.ts b/projects/addon-table/directives/table-filters/table-filter.ts index c477a3ab6206..6df72a94923a 100644 --- a/projects/addon-table/directives/table-filters/table-filter.ts +++ b/projects/addon-table/directives/table-filters/table-filter.ts @@ -1,4 +1,4 @@ -import {type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; export interface TuiTableFilter { filter(item: T): boolean; diff --git a/projects/addon-table/directives/table-filters/table-filters.directive.ts b/projects/addon-table/directives/table-filters/table-filters.directive.ts index 8cae320605bf..ec00b0dfdea6 100644 --- a/projects/addon-table/directives/table-filters/table-filters.directive.ts +++ b/projects/addon-table/directives/table-filters/table-filters.directive.ts @@ -1,15 +1,8 @@ import {Directive} from '@angular/core'; -import { - identity, - map, - merge, - type Observable, - ReplaySubject, - startWith, - switchMap, -} from 'rxjs'; - -import {type TuiTableFilter} from './table-filter'; +import type {Observable} from 'rxjs'; +import {identity, map, merge, ReplaySubject, startWith, switchMap} from 'rxjs'; + +import type {TuiTableFilter} from './table-filter'; @Directive({ selector: '[tuiTableFilters]', diff --git a/projects/addon-table/directives/table-filters/table-filters.pipe.ts b/projects/addon-table/directives/table-filters/table-filters.pipe.ts index 031be41f23d5..58f1edd29a9c 100644 --- a/projects/addon-table/directives/table-filters/table-filters.pipe.ts +++ b/projects/addon-table/directives/table-filters/table-filters.pipe.ts @@ -1,5 +1,6 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; -import {type Observable} from 'rxjs'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; +import type {Observable} from 'rxjs'; import {TuiTableFiltersDirective} from './table-filters.directive'; diff --git a/projects/addon-table/interfaces/row-context.ts b/projects/addon-table/interfaces/row-context.ts index 4a87d8b57f4b..73d1afc62a27 100644 --- a/projects/addon-table/interfaces/row-context.ts +++ b/projects/addon-table/interfaces/row-context.ts @@ -1,4 +1,4 @@ -import {type TuiContext} from '@taiga-ui/cdk'; +import type {TuiContext} from '@taiga-ui/cdk'; export interface TuiRowContext extends TuiContext { readonly index: number; diff --git a/projects/addon-tablebars/classes/table-bar.ts b/projects/addon-tablebars/classes/table-bar.ts index 2ed196ad4741..f0dff312abf2 100644 --- a/projects/addon-tablebars/classes/table-bar.ts +++ b/projects/addon-tablebars/classes/table-bar.ts @@ -1,8 +1,8 @@ -import {type TuiBrightness} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {type Observer} from 'rxjs'; +import type {TuiBrightness} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observer} from 'rxjs'; -import {type TuiTableBarOptions} from '../interfaces/table-bar-options'; +import type {TuiTableBarOptions} from '../interfaces/table-bar-options'; export class TuiTableBar { public readonly adaptive: boolean; diff --git a/projects/addon-tablebars/components/table-bars-host/table-bars-host.component.ts b/projects/addon-tablebars/components/table-bars-host/table-bars-host.component.ts index 61fb5e205b4f..3f86e5262203 100644 --- a/projects/addon-tablebars/components/table-bars-host/table-bars-host.component.ts +++ b/projects/addon-tablebars/components/table-bars-host/table-bars-host.component.ts @@ -1,19 +1,19 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; -import {type TuiContext} from '@taiga-ui/cdk'; +import type {TuiContext} from '@taiga-ui/cdk'; +import type {TuiBrightness} from '@taiga-ui/core'; import { TUI_ANIMATIONS_SPEED, TUI_CLOSE_WORD, TUI_COMMON_ICONS, TUI_MEDIA, TUI_PARENT_ANIMATION, - type TuiBrightness, tuiIsMobile, tuiSlideInTop, tuiToAnimationOptions, } from '@taiga-ui/core'; -import {type TuiTableBar} from '../../classes/table-bar'; +import type {TuiTableBar} from '../../classes/table-bar'; import {TuiTableBarsService} from '../../services/table-bars.service'; // TODO: Accessibility diff --git a/projects/addon-tablebars/components/table-bars-host/test/table-bars-host.component.spec.ts b/projects/addon-tablebars/components/table-bars-host/test/table-bars-host.component.spec.ts index d34a3e158252..78e4eb6995bc 100644 --- a/projects/addon-tablebars/components/table-bars-host/test/table-bars-host.component.spec.ts +++ b/projects/addon-tablebars/components/table-bars-host/test/table-bars-host.component.spec.ts @@ -1,5 +1,7 @@ -import {Component, type DebugElement, ViewChild} from '@angular/core'; -import {type ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {fakeAsync, TestBed, tick} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { TuiTableBarsHostComponent, @@ -7,7 +9,8 @@ import { TuiTableBarsService, } from '@taiga-ui/addon-tablebars'; import {TuiPageObject} from '@taiga-ui/testing'; -import {skip, type Subscription, take, takeUntil, timer} from 'rxjs'; +import type {Subscription} from 'rxjs'; +import {skip, take, takeUntil, timer} from 'rxjs'; describe('TableBarsHost', () => { @Component({ diff --git a/projects/addon-tablebars/interfaces/table-bar-options.ts b/projects/addon-tablebars/interfaces/table-bar-options.ts index e4076ccf475c..78dfffa1ef28 100644 --- a/projects/addon-tablebars/interfaces/table-bar-options.ts +++ b/projects/addon-tablebars/interfaces/table-bar-options.ts @@ -1,4 +1,4 @@ -import {type TuiBrightness} from '@taiga-ui/core'; +import type {TuiBrightness} from '@taiga-ui/core'; export interface TuiTableBarOptions { readonly adaptive?: boolean; diff --git a/projects/addon-tablebars/services/table-bars.service.ts b/projects/addon-tablebars/services/table-bars.service.ts index 24a9721e6981..3c360785104c 100644 --- a/projects/addon-tablebars/services/table-bars.service.ts +++ b/projects/addon-tablebars/services/table-bars.service.ts @@ -1,11 +1,11 @@ /// import {Injectable} from '@angular/core'; import {tuiAssert, tuiIsObserved} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {Observable, ReplaySubject} from 'rxjs'; import {TuiTableBar} from '../classes/table-bar'; -import {type TuiTableBarOptions} from '../interfaces/table-bar-options'; +import type {TuiTableBarOptions} from '../interfaces/table-bar-options'; const NO_HOST = 'Table bars are disabled, enable support by adding TuiTableBarsHostModule to your main app module ' + diff --git a/projects/cdk/abstract/control.ts b/projects/cdk/abstract/control.ts index 3c02b3512065..c324701d15b6 100644 --- a/projects/cdk/abstract/control.ts +++ b/projects/cdk/abstract/control.ts @@ -1,24 +1,11 @@ /// -import { - ChangeDetectorRef, - Directive, - HostBinding, - inject, - Input, - type OnDestroy, - type OnInit, - type Provider, - type Type, -} from '@angular/core'; -import { - type AbstractControl, - type ControlValueAccessor, - NgControl, - NgModel, -} from '@angular/forms'; +import type {OnDestroy, OnInit, Provider, Type} from '@angular/core'; +import {ChangeDetectorRef, Directive, HostBinding, inject, Input} from '@angular/core'; +import type {AbstractControl, ControlValueAccessor} from '@angular/forms'; +import {NgControl, NgModel} from '@angular/forms'; import {tuiAssert} from '@taiga-ui/cdk/classes'; import {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants'; -import {type TuiControlValueTransformer} from '@taiga-ui/cdk/interfaces'; +import type {TuiControlValueTransformer} from '@taiga-ui/cdk/interfaces'; import {tuiIsPresent} from '@taiga-ui/cdk/utils'; import { delay, diff --git a/projects/cdk/abstract/controller.ts b/projects/cdk/abstract/controller.ts index 0a921f256230..fde7157b8188 100644 --- a/projects/cdk/abstract/controller.ts +++ b/projects/cdk/abstract/controller.ts @@ -1,4 +1,5 @@ -import {Directive, type OnChanges} from '@angular/core'; +import type {OnChanges} from '@angular/core'; +import {Directive} from '@angular/core'; import {Subject} from 'rxjs'; @Directive() diff --git a/projects/cdk/abstract/portals.ts b/projects/cdk/abstract/portals.ts index 2e56f365626c..8d7f8f0888f9 100644 --- a/projects/cdk/abstract/portals.ts +++ b/projects/cdk/abstract/portals.ts @@ -1,17 +1,14 @@ +import type {ComponentRef, EmbeddedViewRef, Provider, TemplateRef} from '@angular/core'; import { - type ComponentRef, Directive, - type EmbeddedViewRef, inject, Injectable, INJECTOR, - type Provider, - type TemplateRef, ViewChild, ViewContainerRef, } from '@angular/core'; import {TuiNoHostException} from '@taiga-ui/cdk/exceptions'; -import {type PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; /** * Abstract class for host element for dynamically created portals. diff --git a/projects/cdk/abstract/tests/abstract-control-no-control.spec.ts b/projects/cdk/abstract/tests/abstract-control-no-control.spec.ts index edbe236981d8..529c62e82774 100644 --- a/projects/cdk/abstract/tests/abstract-control-no-control.spec.ts +++ b/projects/cdk/abstract/tests/abstract-control-no-control.spec.ts @@ -1,17 +1,9 @@ -import { - ChangeDetectorRef, - Component, - inject, - type OnDestroy, - type OnInit, - ViewChild, -} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; -import { - AbstractTuiControl, - tuiAsControl, - type TuiControlValueTransformer, -} from '@taiga-ui/cdk'; +import type {OnDestroy, OnInit} from '@angular/core'; +import {ChangeDetectorRef, Component, inject, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; +import type {TuiControlValueTransformer} from '@taiga-ui/cdk'; +import {AbstractTuiControl, tuiAsControl} from '@taiga-ui/cdk'; describe('AbstractTuiControl and NgControl not injected in MyControlComponent', () => { @Component({ diff --git a/projects/cdk/abstract/tests/abstract-control-with-control.spec.ts b/projects/cdk/abstract/tests/abstract-control-with-control.spec.ts index f15ec7a59f9e..cc1b662e923d 100644 --- a/projects/cdk/abstract/tests/abstract-control-with-control.spec.ts +++ b/projects/cdk/abstract/tests/abstract-control-with-control.spec.ts @@ -1,18 +1,10 @@ -import { - ChangeDetectorRef, - Component, - inject, - type OnDestroy, - type OnInit, - ViewChild, -} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {OnDestroy, OnInit} from '@angular/core'; +import {ChangeDetectorRef, Component, inject, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, FormsModule, ReactiveFormsModule} from '@angular/forms'; -import { - AbstractTuiControl, - tuiAsControl, - type TuiControlValueTransformer, -} from '@taiga-ui/cdk'; +import type {TuiControlValueTransformer} from '@taiga-ui/cdk'; +import {AbstractTuiControl, tuiAsControl} from '@taiga-ui/cdk'; describe('AbstractTuiControl and FormControl', () => { @Component({ diff --git a/projects/cdk/abstract/tests/abstract-tui-controller.spec.ts b/projects/cdk/abstract/tests/abstract-tui-controller.spec.ts index 3a90da1e4ac8..5142575d5a41 100644 --- a/projects/cdk/abstract/tests/abstract-tui-controller.spec.ts +++ b/projects/cdk/abstract/tests/abstract-tui-controller.spec.ts @@ -1,5 +1,6 @@ import {Component, Input, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {AbstractTuiController} from '@taiga-ui/cdk'; describe('AbstractTuiController', () => { diff --git a/projects/cdk/abstract/theme-switcher.ts b/projects/cdk/abstract/theme-switcher.ts index 466be4b1c3d4..fe2a426ddd6f 100644 --- a/projects/cdk/abstract/theme-switcher.ts +++ b/projects/cdk/abstract/theme-switcher.ts @@ -1,5 +1,6 @@ import {DOCUMENT} from '@angular/common'; -import {Directive, inject, type OnDestroy} from '@angular/core'; +import type {OnDestroy} from '@angular/core'; +import {Directive, inject} from '@angular/core'; /** * Use this abstract class to create your own toggleable themes. diff --git a/projects/cdk/classes/validation-error.ts b/projects/cdk/classes/validation-error.ts index 77a3efb18cb7..fd5d8ea38962 100644 --- a/projects/cdk/classes/validation-error.ts +++ b/projects/cdk/classes/validation-error.ts @@ -1,4 +1,4 @@ -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export class TuiValidationError = Record> { constructor( diff --git a/projects/cdk/constants/matcher.ts b/projects/cdk/constants/matcher.ts index 414af3f3d120..0d5206f6b30f 100644 --- a/projects/cdk/constants/matcher.ts +++ b/projects/cdk/constants/matcher.ts @@ -1,4 +1,4 @@ -import {type TuiHandler, type TuiIdentityMatcher} from '@taiga-ui/cdk/types'; +import type {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk/types'; import {TUI_DEFAULT_STRINGIFY} from './stringify'; diff --git a/projects/cdk/constants/stringify.ts b/projects/cdk/constants/stringify.ts index d93d69ad0dc0..0a63be1da066 100644 --- a/projects/cdk/constants/stringify.ts +++ b/projects/cdk/constants/stringify.ts @@ -1,4 +1,4 @@ -import {type TuiStringHandler} from '@taiga-ui/cdk/types'; +import type {TuiStringHandler} from '@taiga-ui/cdk/types'; /** * Default method to turn arbitrary object into string diff --git a/projects/cdk/constants/test/matcher.spec.ts b/projects/cdk/constants/test/matcher.spec.ts index c2614ea9fdce..42e168d2f5b2 100644 --- a/projects/cdk/constants/test/matcher.spec.ts +++ b/projects/cdk/constants/test/matcher.spec.ts @@ -1,9 +1,9 @@ +import type {TuiStringHandler} from '@taiga-ui/cdk'; import { TUI_DEFAULT_IDENTITY_MATCHER, TUI_DEFAULT_MATCHER, TUI_DEFAULT_STRINGIFY, TUI_STRICT_MATCHER, - type TuiStringHandler, } from '@taiga-ui/cdk'; class Item { diff --git a/projects/cdk/date-time/date-format.ts b/projects/cdk/date-time/date-format.ts index 17c654e5d34c..39bae9531c35 100644 --- a/projects/cdk/date-time/date-format.ts +++ b/projects/cdk/date-time/date-format.ts @@ -1,4 +1,4 @@ -import {type TuiDateMode} from '@taiga-ui/cdk/types'; +import type {TuiDateMode} from '@taiga-ui/cdk/types'; import {tuiCreateToken} from '@taiga-ui/cdk/utils'; /** diff --git a/projects/cdk/date-time/day-range.ts b/projects/cdk/date-time/day-range.ts index 41aaa3ad09bb..e642418ea230 100644 --- a/projects/cdk/date-time/day-range.ts +++ b/projects/cdk/date-time/day-range.ts @@ -1,6 +1,6 @@ /// import {tuiAssert} from '@taiga-ui/cdk/classes'; -import {type TuiDateMode} from '@taiga-ui/cdk/types'; +import type {TuiDateMode} from '@taiga-ui/cdk/types'; import {DATE_FILLER_LENGTH, DATE_RANGE_FILLER_LENGTH} from './date-fillers'; import {RANGE_SEPARATOR_CHAR} from './date-time'; diff --git a/projects/cdk/date-time/day.ts b/projects/cdk/date-time/day.ts index 53e7466ad703..068658df2e5d 100644 --- a/projects/cdk/date-time/day.ts +++ b/projects/cdk/date-time/day.ts @@ -6,8 +6,8 @@ import { TuiInvalidMonthException, TuiInvalidYearException, } from '@taiga-ui/cdk/exceptions'; -import {type TuiDayLike} from '@taiga-ui/cdk/interfaces'; -import {type TuiDateMode} from '@taiga-ui/cdk/types'; +import type {TuiDayLike} from '@taiga-ui/cdk/interfaces'; +import type {TuiDateMode} from '@taiga-ui/cdk/types'; import {tuiInRange, tuiNormalizeToIntNumber} from '@taiga-ui/cdk/utils/math'; import {DATE_FILLER_LENGTH} from './date-fillers'; diff --git a/projects/cdk/date-time/month-range.ts b/projects/cdk/date-time/month-range.ts index c539e6981026..9da88aa6254e 100644 --- a/projects/cdk/date-time/month-range.ts +++ b/projects/cdk/date-time/month-range.ts @@ -2,7 +2,7 @@ import {tuiAssert} from '@taiga-ui/cdk/classes'; import {RANGE_SEPARATOR_CHAR} from './date-time'; -import {type TuiMonth} from './month'; +import type {TuiMonth} from './month'; /** * An immutable range of two {@link TuiMonth} objects diff --git a/projects/cdk/date-time/month.ts b/projects/cdk/date-time/month.ts index 9f9cb149e680..a6aa01ac6056 100644 --- a/projects/cdk/date-time/month.ts +++ b/projects/cdk/date-time/month.ts @@ -1,7 +1,7 @@ /// import {tuiAssert} from '@taiga-ui/cdk/classes'; import {TuiMonthNumber} from '@taiga-ui/cdk/enums'; -import {type TuiMonthLike} from '@taiga-ui/cdk/interfaces'; +import type {TuiMonthLike} from '@taiga-ui/cdk/interfaces'; import {tuiInRange, tuiNormalizeToIntNumber} from '@taiga-ui/cdk/utils/math'; import {MAX_MONTH, MIN_MONTH, MONTHS_IN_YEAR} from './date-time'; diff --git a/projects/cdk/date-time/time.ts b/projects/cdk/date-time/time.ts index a24a7e49e2a3..62f0cedfa7ac 100644 --- a/projects/cdk/date-time/time.ts +++ b/projects/cdk/date-time/time.ts @@ -1,7 +1,7 @@ /// import {tuiAssert} from '@taiga-ui/cdk/classes'; -import {type TuiTimeLike} from '@taiga-ui/cdk/interfaces'; -import {type TuiTimeMode} from '@taiga-ui/cdk/types'; +import type {TuiTimeLike} from '@taiga-ui/cdk/interfaces'; +import type {TuiTimeMode} from '@taiga-ui/cdk/types'; import {tuiInRange} from '@taiga-ui/cdk/utils/math'; import { diff --git a/projects/cdk/date-time/year.ts b/projects/cdk/date-time/year.ts index 8731259aee2d..b812bec9c079 100644 --- a/projects/cdk/date-time/year.ts +++ b/projects/cdk/date-time/year.ts @@ -1,6 +1,6 @@ /// import {tuiAssert} from '@taiga-ui/cdk/classes'; -import {type TuiYearLike} from '@taiga-ui/cdk/interfaces'; +import type {TuiYearLike} from '@taiga-ui/cdk/interfaces'; import {tuiInRange, tuiNormalizeToIntNumber} from '@taiga-ui/cdk/utils/math'; import {MAX_YEAR, MIN_YEAR} from './date-time'; diff --git a/projects/cdk/directives/active-zone/active-zone.directive.ts b/projects/cdk/directives/active-zone/active-zone.directive.ts index a91c7a6698e7..57924b275659 100644 --- a/projects/cdk/directives/active-zone/active-zone.directive.ts +++ b/projects/cdk/directives/active-zone/active-zone.directive.ts @@ -1,17 +1,11 @@ -import { - Directive, - ElementRef, - inject, - Input, - NgZone, - type OnDestroy, - Output, -} from '@angular/core'; +import type {OnDestroy} from '@angular/core'; +import {Directive, ElementRef, inject, Input, NgZone, Output} from '@angular/core'; import {tuiPure} from '@taiga-ui/cdk/decorators'; import {tuiZoneOptimized} from '@taiga-ui/cdk/observables'; import {TUI_ACTIVE_ELEMENT} from '@taiga-ui/cdk/tokens'; import {tuiArrayRemove} from '@taiga-ui/cdk/utils'; -import {distinctUntilChanged, map, type Observable, skip, startWith} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {distinctUntilChanged, map, skip, startWith} from 'rxjs'; @Directive({ standalone: true, diff --git a/projects/cdk/directives/active-zone/tests/active-zone.directive.spec.ts b/projects/cdk/directives/active-zone/tests/active-zone.directive.spec.ts index 1a106521dde5..24781c2668a3 100644 --- a/projects/cdk/directives/active-zone/tests/active-zone.directive.spec.ts +++ b/projects/cdk/directives/active-zone/tests/active-zone.directive.spec.ts @@ -1,6 +1,7 @@ import {CommonModule} from '@angular/common'; import {Component} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {TuiActiveZoneModule} from '@taiga-ui/cdk'; diff --git a/projects/cdk/directives/auto-focus/autofocus.directive.ts b/projects/cdk/directives/auto-focus/autofocus.directive.ts index 0b478ceca515..a1c22084821d 100644 --- a/projects/cdk/directives/auto-focus/autofocus.directive.ts +++ b/projects/cdk/directives/auto-focus/autofocus.directive.ts @@ -1,4 +1,5 @@ -import {type AfterViewInit, Directive, inject, Input} from '@angular/core'; +import type {AfterViewInit} from '@angular/core'; +import {Directive, inject, Input} from '@angular/core'; import {tuiCoerceBooleanProperty} from '@taiga-ui/cdk/coercion'; import {TuiDestroyService} from '@taiga-ui/cdk/services'; import {takeUntil, timer} from 'rxjs'; diff --git a/projects/cdk/directives/auto-focus/autofocus.options.ts b/projects/cdk/directives/auto-focus/autofocus.options.ts index ec887cd11f34..b3ddda8708ec 100644 --- a/projects/cdk/directives/auto-focus/autofocus.options.ts +++ b/projects/cdk/directives/auto-focus/autofocus.options.ts @@ -1,18 +1,18 @@ +import type {Provider} from '@angular/core'; import { ElementRef, InjectionToken, NgZone, Optional, - type Provider, Renderer2, Self, } from '@angular/core'; import {ANIMATION_FRAME, WINDOW} from '@ng-web-apis/common'; -import {type TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces'; +import type {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces'; import {TuiDestroyService} from '@taiga-ui/cdk/services'; import {TUI_FOCUSABLE_ITEM_ACCESSOR, TUI_IS_IOS} from '@taiga-ui/cdk/tokens'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous'; -import {type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; import {TuiDefaultAutofocusHandler} from './handlers/default.handler'; import {TuiIosAutofocusHandler} from './handlers/ios.handler'; diff --git a/projects/cdk/directives/auto-focus/handlers/abstract.handler.ts b/projects/cdk/directives/auto-focus/handlers/abstract.handler.ts index 951903d6da1e..334ccb8623bb 100644 --- a/projects/cdk/directives/auto-focus/handlers/abstract.handler.ts +++ b/projects/cdk/directives/auto-focus/handlers/abstract.handler.ts @@ -1,7 +1,7 @@ -import {type ElementRef} from '@angular/core'; -import { - type TuiFocusableElementAccessor, - type TuiNativeFocusableElement, +import type {ElementRef} from '@angular/core'; +import type { + TuiFocusableElementAccessor, + TuiNativeFocusableElement, } from '@taiga-ui/cdk/interfaces'; import type {TuiAutofocusHandler} from '../autofocus.options'; diff --git a/projects/cdk/directives/auto-focus/handlers/default.handler.ts b/projects/cdk/directives/auto-focus/handlers/default.handler.ts index bf97dc565be7..86d8ef74032b 100644 --- a/projects/cdk/directives/auto-focus/handlers/default.handler.ts +++ b/projects/cdk/directives/auto-focus/handlers/default.handler.ts @@ -1,7 +1,8 @@ -import {type ElementRef} from '@angular/core'; +import type {ElementRef} from '@angular/core'; import {POLLING_TIME} from '@taiga-ui/cdk/constants'; -import {type TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces'; -import {map, type Observable, race, skipWhile, take, throttleTime, timer} from 'rxjs'; +import type {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces'; +import type {Observable} from 'rxjs'; +import {map, race, skipWhile, take, throttleTime, timer} from 'rxjs'; import {AbstractTuiAutofocusHandler} from './abstract.handler'; diff --git a/projects/cdk/directives/auto-focus/handlers/ios.handler.ts b/projects/cdk/directives/auto-focus/handlers/ios.handler.ts index 651ff021daab..060c85f2eebe 100644 --- a/projects/cdk/directives/auto-focus/handlers/ios.handler.ts +++ b/projects/cdk/directives/auto-focus/handlers/ios.handler.ts @@ -1,5 +1,5 @@ -import {type ElementRef, type NgZone, type Renderer2} from '@angular/core'; -import {type TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces'; +import type {ElementRef, NgZone, Renderer2} from '@angular/core'; +import type {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces'; import {tuiIsPresent, tuiPx} from '@taiga-ui/cdk/utils'; import {AbstractTuiAutofocusHandler} from './abstract.handler'; diff --git a/projects/cdk/directives/auto-focus/test/auto-focus.directive.spec.ts b/projects/cdk/directives/auto-focus/test/auto-focus.directive.spec.ts index ba689fb4c0d7..1883fcb10be6 100644 --- a/projects/cdk/directives/auto-focus/test/auto-focus.directive.spec.ts +++ b/projects/cdk/directives/auto-focus/test/auto-focus.directive.spec.ts @@ -8,15 +8,16 @@ import { Self, ViewChild, } from '@angular/core'; -import {type ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {fakeAsync, TestBed, tick} from '@angular/core/testing'; import {WINDOW} from '@ng-web-apis/common'; +import type {TuiFocusableElementAccessor} from '@taiga-ui/cdk'; import { TUI_AUTOFOCUS_HANDLER, TUI_FOCUSABLE_ITEM_ACCESSOR, tuiAsFocusableItemAccessor, TuiAutoFocusDirective, TuiAutoFocusModule, - type TuiFocusableElementAccessor, TuiIosAutofocusHandler, tuiIsNativeFocused, } from '@taiga-ui/cdk'; diff --git a/projects/cdk/directives/click-outside/click-outside.directive.ts b/projects/cdk/directives/click-outside/click-outside.directive.ts index 7ba6f38c95fa..d6ab82256558 100644 --- a/projects/cdk/directives/click-outside/click-outside.directive.ts +++ b/projects/cdk/directives/click-outside/click-outside.directive.ts @@ -2,7 +2,8 @@ import {DOCUMENT} from '@angular/common'; import {Directive, ElementRef, inject, NgZone, Output} from '@angular/core'; import {tuiZoneOptimized} from '@taiga-ui/cdk/observables'; import {tuiContainsOrAfter, tuiGetActualTarget} from '@taiga-ui/cdk/utils'; -import {filter, fromEvent, map, type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {filter, fromEvent, map} from 'rxjs'; @Directive({ selector: '[tuiClickOutside]', diff --git a/projects/cdk/directives/control/control.directive.ts b/projects/cdk/directives/control/control.directive.ts index 0b933eba084c..e430acdc78d2 100644 --- a/projects/cdk/directives/control/control.directive.ts +++ b/projects/cdk/directives/control/control.directive.ts @@ -1,5 +1,6 @@ import {Directive, inject} from '@angular/core'; -import {type AbstractControl, NgControl} from '@angular/forms'; +import type {AbstractControl} from '@angular/forms'; +import {NgControl} from '@angular/forms'; @Directive({ selector: '[tuiControl]', diff --git a/projects/cdk/directives/control/test/control.directive.spec.ts b/projects/cdk/directives/control/test/control.directive.spec.ts index 7d8e77a9197d..e0ac7637241c 100644 --- a/projects/cdk/directives/control/test/control.directive.spec.ts +++ b/projects/cdk/directives/control/test/control.directive.spec.ts @@ -1,5 +1,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms'; import {By} from '@angular/platform-browser'; import {TuiControlModule} from '@taiga-ui/cdk'; diff --git a/projects/cdk/directives/copy-processor/copy-processor.directive.ts b/projects/cdk/directives/copy-processor/copy-processor.directive.ts index 45aedafb37b3..a3d311be57b7 100644 --- a/projects/cdk/directives/copy-processor/copy-processor.directive.ts +++ b/projects/cdk/directives/copy-processor/copy-processor.directive.ts @@ -1,6 +1,6 @@ import {Directive, HostListener, inject, Input} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; -import {type TuiStringHandler} from '@taiga-ui/cdk/types'; +import type {TuiStringHandler} from '@taiga-ui/cdk/types'; import {tuiGetSelectedText} from '@taiga-ui/cdk/utils'; import {identity} from 'rxjs'; diff --git a/projects/cdk/directives/drag/drag.directive.ts b/projects/cdk/directives/drag/drag.directive.ts index 6268d8300fd6..9806d86d6b0f 100644 --- a/projects/cdk/directives/drag/drag.directive.ts +++ b/projects/cdk/directives/drag/drag.directive.ts @@ -1,6 +1,7 @@ import {Directive, ElementRef, inject, Output} from '@angular/core'; import {tuiDragAndDropFrom, TuiDragStage} from '@taiga-ui/cdk/observables'; -import {filter, map, type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {filter, map} from 'rxjs'; /** * @deprecated not used anywhere diff --git a/projects/cdk/directives/droppable/test/droppable.directive.spec.ts b/projects/cdk/directives/droppable/test/droppable.directive.spec.ts index 82f32572f50f..74ba0341236c 100644 --- a/projects/cdk/directives/droppable/test/droppable.directive.spec.ts +++ b/projects/cdk/directives/droppable/test/droppable.directive.spec.ts @@ -1,5 +1,6 @@ import {Component} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import {TuiDroppableDirective} from '@taiga-ui/cdk'; import {TuiMockEvent} from '@taiga-ui/testing'; diff --git a/projects/cdk/directives/focus-trap/focus-trap.directive.ts b/projects/cdk/directives/focus-trap/focus-trap.directive.ts index 8114f5e92824..8a9f14dd5dbd 100644 --- a/projects/cdk/directives/focus-trap/focus-trap.directive.ts +++ b/projects/cdk/directives/focus-trap/focus-trap.directive.ts @@ -1,12 +1,6 @@ import {DOCUMENT} from '@angular/common'; -import { - Directive, - ElementRef, - HostListener, - inject, - type OnDestroy, - Renderer2, -} from '@angular/core'; +import type {OnDestroy} from '@angular/core'; +import {Directive, ElementRef, HostListener, inject, Renderer2} from '@angular/core'; import {tuiContainsOrAfter, tuiIsHTMLElement} from '@taiga-ui/cdk/utils/dom'; import { tuiBlurNativeFocused, diff --git a/projects/cdk/directives/focusable/test/focusable.directive.spec.ts b/projects/cdk/directives/focusable/test/focusable.directive.spec.ts index deef5c09dea3..5e7b93ecc1e9 100644 --- a/projects/cdk/directives/focusable/test/focusable.directive.spec.ts +++ b/projects/cdk/directives/focusable/test/focusable.directive.spec.ts @@ -1,5 +1,7 @@ -import {Component, type DebugElement} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import {TuiFocusableDirective, TuiFocusableModule} from '@taiga-ui/cdk'; diff --git a/projects/cdk/directives/focused/focused.directive.ts b/projects/cdk/directives/focused/focused.directive.ts index 4ae720d88dee..00c891323363 100644 --- a/projects/cdk/directives/focused/focused.directive.ts +++ b/projects/cdk/directives/focused/focused.directive.ts @@ -1,7 +1,8 @@ import {Directive, ElementRef, inject, NgZone, Output} from '@angular/core'; import {tuiTypedFromEvent, tuiZoneOptimized} from '@taiga-ui/cdk/observables'; import {tuiIsNativeFocused} from '@taiga-ui/cdk/utils/focus'; -import {distinctUntilChanged, map, merge, type Observable, skip, startWith} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {distinctUntilChanged, map, merge, skip, startWith} from 'rxjs'; /** * Directive to monitor focus/blur status, works with focusIn/focus-out diff --git a/projects/cdk/directives/focused/test/focused.directive.spec.ts b/projects/cdk/directives/focused/test/focused.directive.spec.ts index bb6a638644db..5332fbf66831 100644 --- a/projects/cdk/directives/focused/test/focused.directive.spec.ts +++ b/projects/cdk/directives/focused/test/focused.directive.spec.ts @@ -1,5 +1,7 @@ -import {Component, type DebugElement} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import {TuiFocusedModule} from '@taiga-ui/cdk'; diff --git a/projects/cdk/directives/for/for.directive.ts b/projects/cdk/directives/for/for.directive.ts index a295cd25a594..b0706f83c06f 100644 --- a/projects/cdk/directives/for/for.directive.ts +++ b/projects/cdk/directives/for/for.directive.ts @@ -1,12 +1,5 @@ -import { - Directive, - type EmbeddedViewRef, - inject, - Input, - type OnChanges, - type TemplateRef, - ViewContainerRef, -} from '@angular/core'; +import type {EmbeddedViewRef, OnChanges, TemplateRef} from '@angular/core'; +import {Directive, inject, Input, ViewContainerRef} from '@angular/core'; @Directive({ selector: '[ngFor][ngForOf][ngForElse],[ngFor][ngForOf][ngForEmpty]', diff --git a/projects/cdk/directives/for/test/for.directive.spec.ts b/projects/cdk/directives/for/test/for.directive.spec.ts index 501a08dd8ceb..45f6441f60e2 100644 --- a/projects/cdk/directives/for/test/for.directive.spec.ts +++ b/projects/cdk/directives/for/test/for.directive.spec.ts @@ -1,5 +1,6 @@ import {Component, ElementRef, inject} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {TuiForModule} from '@taiga-ui/cdk'; import {Subject} from 'rxjs'; diff --git a/projects/cdk/directives/let/let-context.ts b/projects/cdk/directives/let/let-context.ts index 702e7f0feb02..1aef46685281 100644 --- a/projects/cdk/directives/let/let-context.ts +++ b/projects/cdk/directives/let/let-context.ts @@ -1,4 +1,4 @@ -import {type TuiContext} from '@taiga-ui/cdk/interfaces'; +import type {TuiContext} from '@taiga-ui/cdk/interfaces'; import type {TuiLetDirective} from './let.directive'; diff --git a/projects/cdk/directives/let/test/let.directive.spec.ts b/projects/cdk/directives/let/test/let.directive.spec.ts index 48683066e8e9..2a60ec532395 100644 --- a/projects/cdk/directives/let/test/let.directive.spec.ts +++ b/projects/cdk/directives/let/test/let.directive.spec.ts @@ -1,10 +1,7 @@ -import { - ChangeDetectionStrategy, - Component, - type ElementRef, - ViewChild, -} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ElementRef} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {TuiLetModule} from '@taiga-ui/cdk'; describe('Let', () => { diff --git a/projects/cdk/directives/native-validator/native-validator.directive.ts b/projects/cdk/directives/native-validator/native-validator.directive.ts index 1161a019aef5..b8274808bca5 100644 --- a/projects/cdk/directives/native-validator/native-validator.directive.ts +++ b/projects/cdk/directives/native-validator/native-validator.directive.ts @@ -1,5 +1,6 @@ import {Directive, ElementRef, HostListener, inject, Input, NgZone} from '@angular/core'; -import {type AbstractControl, NG_VALIDATORS, type Validator} from '@angular/forms'; +import type {AbstractControl, Validator} from '@angular/forms'; +import {NG_VALIDATORS} from '@angular/forms'; import {tuiZonefree} from '@taiga-ui/cdk/observables'; import {TuiDestroyService} from '@taiga-ui/cdk/services'; import {takeUntil, timer} from 'rxjs'; diff --git a/projects/cdk/directives/overscroll/overscroll.directive.ts b/projects/cdk/directives/overscroll/overscroll.directive.ts index ccc8fb2b23ea..af9a8c050a77 100644 --- a/projects/cdk/directives/overscroll/overscroll.directive.ts +++ b/projects/cdk/directives/overscroll/overscroll.directive.ts @@ -1,7 +1,7 @@ import {Directive, ElementRef, HostBinding, inject, Input, NgZone} from '@angular/core'; import {tuiTypedFromEvent, tuiZonefree} from '@taiga-ui/cdk/observables'; import {TuiDestroyService} from '@taiga-ui/cdk/services'; -import {type TuiEventWith, type TuiOverscrollMode} from '@taiga-ui/cdk/types'; +import type {TuiEventWith, TuiOverscrollMode} from '@taiga-ui/cdk/types'; import {tuiCanScroll, tuiGetScrollParent, tuiIsElement} from '@taiga-ui/cdk/utils/dom'; import {filter, switchMap, takeUntil, tap} from 'rxjs'; diff --git a/projects/cdk/directives/platform/platform.directive.ts b/projects/cdk/directives/platform/platform.directive.ts index 15b91308e53c..de9a4d550b10 100644 --- a/projects/cdk/directives/platform/platform.directive.ts +++ b/projects/cdk/directives/platform/platform.directive.ts @@ -1,6 +1,6 @@ import {Directive, HostBinding, inject, Input} from '@angular/core'; import {TUI_PLATFORM} from '@taiga-ui/cdk/tokens'; -import {type TuiPlatform} from '@taiga-ui/cdk/types'; +import type {TuiPlatform} from '@taiga-ui/cdk/types'; @Directive({ selector: '[tuiPlatform]', diff --git a/projects/cdk/directives/popover/popover.directive.ts b/projects/cdk/directives/popover/popover.directive.ts index 2c599addf1b7..cb2ee17f3828 100644 --- a/projects/cdk/directives/popover/popover.directive.ts +++ b/projects/cdk/directives/popover/popover.directive.ts @@ -1,6 +1,8 @@ -import {Directive, inject, type OnChanges} from '@angular/core'; +import type {OnChanges} from '@angular/core'; +import {Directive, inject} from '@angular/core'; import {tuiIfMap} from '@taiga-ui/cdk/observables'; -import {type TuiPopover, TuiPopoverService} from '@taiga-ui/cdk/services'; +import type {TuiPopover} from '@taiga-ui/cdk/services'; +import {TuiPopoverService} from '@taiga-ui/cdk/services'; import {PolymorpheusTemplate} from '@tinkoff/ng-polymorpheus'; import {distinctUntilChanged, endWith, ignoreElements, share, Subject} from 'rxjs'; diff --git a/projects/cdk/directives/pressed/test/pressed.directive.spec.ts b/projects/cdk/directives/pressed/test/pressed.directive.spec.ts index f5a2ad67ea69..39a6a9568c35 100644 --- a/projects/cdk/directives/pressed/test/pressed.directive.spec.ts +++ b/projects/cdk/directives/pressed/test/pressed.directive.spec.ts @@ -1,5 +1,7 @@ -import {Component, type DebugElement} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import {TuiPressedModule} from '@taiga-ui/cdk'; import {TUI_TAKE_ONLY_TRUSTED_EVENTS} from '@taiga-ui/cdk/tokens'; diff --git a/projects/cdk/directives/repeat-times/repeat-times.directive.ts b/projects/cdk/directives/repeat-times/repeat-times.directive.ts index 4d452062b05e..015a5ca4f832 100644 --- a/projects/cdk/directives/repeat-times/repeat-times.directive.ts +++ b/projects/cdk/directives/repeat-times/repeat-times.directive.ts @@ -1,5 +1,5 @@ import {Directive, inject, Input, TemplateRef, ViewContainerRef} from '@angular/core'; -import {type TuiContext} from '@taiga-ui/cdk/interfaces'; +import type {TuiContext} from '@taiga-ui/cdk/interfaces'; import {tuiClamp} from '@taiga-ui/cdk/utils/math'; const MAX_VALUE = 0x10000; diff --git a/projects/cdk/directives/repeat-times/test/repeat-times.directive.spec.ts b/projects/cdk/directives/repeat-times/test/repeat-times.directive.spec.ts index 2ec92d29ecd4..b15b7c07ee63 100644 --- a/projects/cdk/directives/repeat-times/test/repeat-times.directive.spec.ts +++ b/projects/cdk/directives/repeat-times/test/repeat-times.directive.spec.ts @@ -1,5 +1,7 @@ -import {Component, type DebugElement} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import {TuiRepeatTimesModule} from '@taiga-ui/cdk'; diff --git a/projects/cdk/directives/resizer/resizer.directive.ts b/projects/cdk/directives/resizer/resizer.directive.ts index e8e751633792..3320bd3192ca 100644 --- a/projects/cdk/directives/resizer/resizer.directive.ts +++ b/projects/cdk/directives/resizer/resizer.directive.ts @@ -1,6 +1,6 @@ +import type {ElementRef} from '@angular/core'; import { Directive, - type ElementRef, EventEmitter, HostBinding, HostListener, diff --git a/projects/cdk/directives/validator/test/validator.directive.spec.ts b/projects/cdk/directives/validator/test/validator.directive.spec.ts index 2e59e5646838..977a9579628a 100644 --- a/projects/cdk/directives/validator/test/validator.directive.spec.ts +++ b/projects/cdk/directives/validator/test/validator.directive.spec.ts @@ -1,6 +1,7 @@ import {CommonModule} from '@angular/common'; import {Component} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule, Validators} from '@angular/forms'; import {TuiValidatorDirective} from '@taiga-ui/cdk'; diff --git a/projects/cdk/directives/validator/validator.directive.ts b/projects/cdk/directives/validator/validator.directive.ts index aab5dec05391..758d9531b2fa 100644 --- a/projects/cdk/directives/validator/validator.directive.ts +++ b/projects/cdk/directives/validator/validator.directive.ts @@ -1,18 +1,12 @@ -import { - Directive, - forwardRef, - Input, - type OnChanges, - type OnDestroy, -} from '@angular/core'; -import { - type AbstractControl, - NG_VALIDATORS, - type ValidationErrors, - type Validator, - type ValidatorFn, - Validators, +import type {OnChanges, OnDestroy} from '@angular/core'; +import {Directive, forwardRef, Input} from '@angular/core'; +import type { + AbstractControl, + ValidationErrors, + Validator, + ValidatorFn, } from '@angular/forms'; +import {NG_VALIDATORS, Validators} from '@angular/forms'; import {EMPTY_FUNCTION} from '@taiga-ui/cdk/constants'; @Directive({ diff --git a/projects/cdk/directives/value-changes/test/value-changes.directive.spec.ts b/projects/cdk/directives/value-changes/test/value-changes.directive.spec.ts index 7d1663eaec7f..19f5a908788c 100644 --- a/projects/cdk/directives/value-changes/test/value-changes.directive.spec.ts +++ b/projects/cdk/directives/value-changes/test/value-changes.directive.spec.ts @@ -1,5 +1,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms'; import {By} from '@angular/platform-browser'; import {TuiValueChangesModule} from '@taiga-ui/cdk'; diff --git a/projects/cdk/directives/value-changes/value-changes.directive.ts b/projects/cdk/directives/value-changes/value-changes.directive.ts index 9b3608476287..e38d15446ad1 100644 --- a/projects/cdk/directives/value-changes/value-changes.directive.ts +++ b/projects/cdk/directives/value-changes/value-changes.directive.ts @@ -1,6 +1,8 @@ -import {Directive, type DoCheck, inject, Output} from '@angular/core'; +import type {DoCheck} from '@angular/core'; +import {Directive, inject, Output} from '@angular/core'; import {ControlContainer, NgControl} from '@angular/forms'; -import {distinctUntilChanged, EMPTY, type Observable, Subject, switchAll} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {distinctUntilChanged, EMPTY, Subject, switchAll} from 'rxjs'; @Directive({ selector: '[tuiValueChanges]', diff --git a/projects/cdk/interfaces/day-like.ts b/projects/cdk/interfaces/day-like.ts index 3929990e0526..235b1694bce1 100644 --- a/projects/cdk/interfaces/day-like.ts +++ b/projects/cdk/interfaces/day-like.ts @@ -1,4 +1,4 @@ -import {type TuiMonthLike} from './month-like'; +import type {TuiMonthLike} from './month-like'; /** * Optionally has year and/or month and/or day diff --git a/projects/cdk/interfaces/focusable-element-accessor.ts b/projects/cdk/interfaces/focusable-element-accessor.ts index 453ae4c9cbd9..1a7902fa44fe 100644 --- a/projects/cdk/interfaces/focusable-element-accessor.ts +++ b/projects/cdk/interfaces/focusable-element-accessor.ts @@ -1,4 +1,4 @@ -import {type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; export interface TuiNativeFocusableElement extends Element, HTMLOrSVGElement {} diff --git a/projects/cdk/interfaces/month-like.ts b/projects/cdk/interfaces/month-like.ts index 80324fcf62c9..e05907a01bdb 100644 --- a/projects/cdk/interfaces/month-like.ts +++ b/projects/cdk/interfaces/month-like.ts @@ -1,4 +1,4 @@ -import {type TuiYearLike} from './year-like'; +import type {TuiYearLike} from './year-like'; /** * Optionally has year and/or month diff --git a/projects/cdk/interfaces/safe-html.ts b/projects/cdk/interfaces/safe-html.ts index b0d41e9a93ff..867338505c4c 100644 --- a/projects/cdk/interfaces/safe-html.ts +++ b/projects/cdk/interfaces/safe-html.ts @@ -1,3 +1,3 @@ -import {type SafeHtml} from '@angular/platform-browser'; +import type {SafeHtml} from '@angular/platform-browser'; export type TuiSafeHtml = SafeHtml | string; diff --git a/projects/cdk/observables/control-value.ts b/projects/cdk/observables/control-value.ts index d0de26340b82..f03ab5e93db1 100644 --- a/projects/cdk/observables/control-value.ts +++ b/projects/cdk/observables/control-value.ts @@ -1,4 +1,4 @@ -import {type AbstractControl, type AbstractControlDirective} from '@angular/forms'; +import type {AbstractControl, AbstractControlDirective} from '@angular/forms'; import {TuiValueChangesException} from '@taiga-ui/cdk/exceptions'; import {Observable, startWith} from 'rxjs'; diff --git a/projects/cdk/observables/drag-and-drop-from.ts b/projects/cdk/observables/drag-and-drop-from.ts index 2fefe5634b6f..bbd92e0a59f1 100644 --- a/projects/cdk/observables/drag-and-drop-from.ts +++ b/projects/cdk/observables/drag-and-drop-from.ts @@ -1,15 +1,7 @@ import {TuiOwnerDocumentException} from '@taiga-ui/cdk/exceptions'; import {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous'; -import { - concat, - endWith, - map, - merge, - type Observable, - repeat, - take, - takeWhile, -} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {concat, endWith, map, merge, repeat, take, takeWhile} from 'rxjs'; import {tuiMouseDragFinishFrom} from './mouse-drag-finish-from'; import {tuiTypedFromEvent} from './typed-from-event'; diff --git a/projects/cdk/observables/focus-visible-observable.ts b/projects/cdk/observables/focus-visible-observable.ts index c4e7a346b681..35c3e04b701b 100644 --- a/projects/cdk/observables/focus-visible-observable.ts +++ b/projects/cdk/observables/focus-visible-observable.ts @@ -2,6 +2,7 @@ import {ALWAYS_FALSE_HANDLER} from '@taiga-ui/cdk/constants'; import {TuiOwnerDocumentException} from '@taiga-ui/cdk/exceptions'; import {tuiIsFalsy} from '@taiga-ui/cdk/utils'; import {tuiIsNativeFocused} from '@taiga-ui/cdk/utils/focus'; +import type {Observable} from 'rxjs'; import { concat, distinctUntilChanged, @@ -9,7 +10,6 @@ import { ignoreElements, map, merge, - type Observable, repeat, shareReplay, startWith, diff --git a/projects/cdk/observables/if-map.ts b/projects/cdk/observables/if-map.ts index 1fe663d648d3..a4d3494d928a 100644 --- a/projects/cdk/observables/if-map.ts +++ b/projects/cdk/observables/if-map.ts @@ -1,5 +1,6 @@ -import {type TuiBooleanHandler} from '@taiga-ui/cdk/types'; -import {EMPTY, type Observable, type OperatorFunction, pipe, switchMap} from 'rxjs'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk/types'; +import type {Observable, OperatorFunction} from 'rxjs'; +import {EMPTY, pipe, switchMap} from 'rxjs'; export function tuiIfMap( project: (value: T) => Observable, diff --git a/projects/cdk/observables/is-alive.ts b/projects/cdk/observables/is-alive.ts index 27e9b1c4834e..06552a0ecd90 100644 --- a/projects/cdk/observables/is-alive.ts +++ b/projects/cdk/observables/is-alive.ts @@ -1,13 +1,6 @@ import {ALWAYS_FALSE_HANDLER} from '@taiga-ui/cdk/constants'; -import { - distinctUntilChanged, - map, - type OperatorFunction, - pipe, - startWith, - switchMap, - timer, -} from 'rxjs'; +import type {OperatorFunction} from 'rxjs'; +import {distinctUntilChanged, map, pipe, startWith, switchMap, timer} from 'rxjs'; /** * Operator to set lifespan after which current value is considered obsolete diff --git a/projects/cdk/observables/is-observed.ts b/projects/cdk/observables/is-observed.ts index c2ac4fd9883e..10a5a1f5be1b 100644 --- a/projects/cdk/observables/is-observed.ts +++ b/projects/cdk/observables/is-observed.ts @@ -1,4 +1,4 @@ -import {type Observer, type Subject} from 'rxjs'; +import type {Observer, Subject} from 'rxjs'; /* In RxJS 7 All subjects now have an observed property */ type SubjectRxJS7plus = Subject & {observed: boolean}; diff --git a/projects/cdk/observables/items-query-list-observable.ts b/projects/cdk/observables/items-query-list-observable.ts index 706fb9fa2572..5753b03aff33 100644 --- a/projects/cdk/observables/items-query-list-observable.ts +++ b/projects/cdk/observables/items-query-list-observable.ts @@ -1,6 +1,7 @@ -import {type QueryList} from '@angular/core'; +import type {QueryList} from '@angular/core'; import {tuiGetOriginalArrayFromQueryList} from '@taiga-ui/cdk/utils/miscellaneous'; -import {map, type Observable, startWith} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map, startWith} from 'rxjs'; /** * Converts changes observable of a QueryList to an Observable of arrays diff --git a/projects/cdk/observables/mouse-drag-finish-from.ts b/projects/cdk/observables/mouse-drag-finish-from.ts index 8329c30e4d6f..f7ff01a69704 100644 --- a/projects/cdk/observables/mouse-drag-finish-from.ts +++ b/projects/cdk/observables/mouse-drag-finish-from.ts @@ -1,5 +1,6 @@ -import {type TuiEventWith, type TuiTypedEventTarget} from '@taiga-ui/cdk/types'; -import {merge, type Observable} from 'rxjs'; +import type {TuiEventWith, TuiTypedEventTarget} from '@taiga-ui/cdk/types'; +import type {Observable} from 'rxjs'; +import {merge} from 'rxjs'; import {tuiTypedFromEvent} from './typed-from-event'; diff --git a/projects/cdk/observables/must-be-present.ts b/projects/cdk/observables/must-be-present.ts index 9bc38ada2df3..e29e1b5501e0 100644 --- a/projects/cdk/observables/must-be-present.ts +++ b/projects/cdk/observables/must-be-present.ts @@ -1,6 +1,7 @@ import {TuiValuePresentException} from '@taiga-ui/cdk/exceptions'; import {tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous'; -import {map, type OperatorFunction} from 'rxjs'; +import type {OperatorFunction} from 'rxjs'; +import {map} from 'rxjs'; export function tuiMustBePresent(): OperatorFunction { return map(value => { diff --git a/projects/cdk/observables/pressed-observable.ts b/projects/cdk/observables/pressed-observable.ts index 6f6ccf14ceb5..edcb0a9ce25a 100644 --- a/projects/cdk/observables/pressed-observable.ts +++ b/projects/cdk/observables/pressed-observable.ts @@ -1,6 +1,7 @@ import {ALWAYS_FALSE_HANDLER} from '@taiga-ui/cdk/constants'; import {TuiOwnerDocumentException} from '@taiga-ui/cdk/exceptions'; -import {filter, map, type Observable, startWith, switchMap, take} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {filter, map, startWith, switchMap, take} from 'rxjs'; import {tuiMouseDragFinishFrom} from './mouse-drag-finish-from'; import {tuiTypedFromEvent} from './typed-from-event'; diff --git a/projects/cdk/observables/prevent-default.ts b/projects/cdk/observables/prevent-default.ts index 5889a8b7475c..4b32b848f052 100644 --- a/projects/cdk/observables/prevent-default.ts +++ b/projects/cdk/observables/prevent-default.ts @@ -1,4 +1,5 @@ -import {type MonoTypeOperatorFunction, tap} from 'rxjs'; +import type {MonoTypeOperatorFunction} from 'rxjs'; +import {tap} from 'rxjs'; export function tuiPreventDefault(): MonoTypeOperatorFunction { return tap(event => event.preventDefault()); diff --git a/projects/cdk/observables/scroll-from.ts b/projects/cdk/observables/scroll-from.ts index b7ea59ef7f47..487ab2033d7e 100644 --- a/projects/cdk/observables/scroll-from.ts +++ b/projects/cdk/observables/scroll-from.ts @@ -1,4 +1,4 @@ -import {type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; import {tuiTypedFromEvent} from './typed-from-event'; diff --git a/projects/cdk/observables/stop-propagation.ts b/projects/cdk/observables/stop-propagation.ts index 789a3e719370..96a60082a71c 100644 --- a/projects/cdk/observables/stop-propagation.ts +++ b/projects/cdk/observables/stop-propagation.ts @@ -1,4 +1,5 @@ -import {type MonoTypeOperatorFunction, tap} from 'rxjs'; +import type {MonoTypeOperatorFunction} from 'rxjs'; +import {tap} from 'rxjs'; export function tuiStopPropagation(): MonoTypeOperatorFunction { return tap(e => { diff --git a/projects/cdk/observables/test/control-value.spec.ts b/projects/cdk/observables/test/control-value.spec.ts index b939b445749d..f99acc5401f4 100644 --- a/projects/cdk/observables/test/control-value.spec.ts +++ b/projects/cdk/observables/test/control-value.spec.ts @@ -1,5 +1,6 @@ import {fakeAsync} from '@angular/core/testing'; -import {type AbstractControl, FormControl} from '@angular/forms'; +import type {AbstractControl} from '@angular/forms'; +import {FormControl} from '@angular/forms'; import {tuiControlValue} from '@taiga-ui/cdk'; import {tuiSwitchNgDevMode} from '@taiga-ui/testing'; import {skip} from 'rxjs'; diff --git a/projects/cdk/observables/test/watch.spec.ts b/projects/cdk/observables/test/watch.spec.ts index 61eb1bd0c6d8..56f5e0f62830 100644 --- a/projects/cdk/observables/test/watch.spec.ts +++ b/projects/cdk/observables/test/watch.spec.ts @@ -1,4 +1,4 @@ -import {type ChangeDetectorRef} from '@angular/core'; +import type {ChangeDetectorRef} from '@angular/core'; import {fakeAsync, tick} from '@angular/core/testing'; import {tuiWatch} from '@taiga-ui/cdk'; import {Subject} from 'rxjs'; diff --git a/projects/cdk/observables/typed-from-event.ts b/projects/cdk/observables/typed-from-event.ts index cf48825417cc..0cfc4d5cdf92 100644 --- a/projects/cdk/observables/typed-from-event.ts +++ b/projects/cdk/observables/typed-from-event.ts @@ -1,5 +1,6 @@ -import {type TuiEventWith, type TuiTypedEventTarget} from '@taiga-ui/cdk/types'; -import {fromEvent, type Observable} from 'rxjs'; +import type {TuiEventWith, TuiTypedEventTarget} from '@taiga-ui/cdk/types'; +import type {Observable} from 'rxjs'; +import {fromEvent} from 'rxjs'; export function tuiTypedFromEvent( target: Window, diff --git a/projects/cdk/observables/watch.ts b/projects/cdk/observables/watch.ts index 7674b51e49d2..9265028c2288 100644 --- a/projects/cdk/observables/watch.ts +++ b/projects/cdk/observables/watch.ts @@ -1,5 +1,6 @@ -import {type ChangeDetectorRef} from '@angular/core'; -import {type MonoTypeOperatorFunction, tap} from 'rxjs'; +import type {ChangeDetectorRef} from '@angular/core'; +import type {MonoTypeOperatorFunction} from 'rxjs'; +import {tap} from 'rxjs'; export function tuiWatch(cdr: ChangeDetectorRef): MonoTypeOperatorFunction { return tap(() => { diff --git a/projects/cdk/observables/zone-free.ts b/projects/cdk/observables/zone-free.ts index e59c9d80715a..3c6624f3d296 100644 --- a/projects/cdk/observables/zone-free.ts +++ b/projects/cdk/observables/zone-free.ts @@ -1,5 +1,6 @@ -import {type NgZone} from '@angular/core'; -import {type MonoTypeOperatorFunction, Observable, pipe} from 'rxjs'; +import type {NgZone} from '@angular/core'; +import type {MonoTypeOperatorFunction} from 'rxjs'; +import {Observable, pipe} from 'rxjs'; export function tuiZonefull(zone: NgZone): MonoTypeOperatorFunction { return source => diff --git a/projects/cdk/pipes/filter/filter.pipe.ts b/projects/cdk/pipes/filter/filter.pipe.ts index 8d59e94f2f13..5caed41cfe68 100644 --- a/projects/cdk/pipes/filter/filter.pipe.ts +++ b/projects/cdk/pipes/filter/filter.pipe.ts @@ -1,5 +1,6 @@ -import {Pipe, type PipeTransform} from '@angular/core'; -import {type TuiMatcher, type TuiTypedMatcher} from '@taiga-ui/cdk/types'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; +import type {TuiMatcher, TuiTypedMatcher} from '@taiga-ui/cdk/types'; @Pipe({name: 'tuiFilter'}) export class TuiFilterPipe implements PipeTransform { diff --git a/projects/cdk/pipes/filter/test/filter.pipe.spec.ts b/projects/cdk/pipes/filter/test/filter.pipe.spec.ts index db1c670590bd..52b87fa89c94 100644 --- a/projects/cdk/pipes/filter/test/filter.pipe.spec.ts +++ b/projects/cdk/pipes/filter/test/filter.pipe.spec.ts @@ -1,4 +1,5 @@ -import {TuiFilterPipe, type TuiTypedMatcher} from '@taiga-ui/cdk'; +import type {TuiTypedMatcher} from '@taiga-ui/cdk'; +import {TuiFilterPipe} from '@taiga-ui/cdk'; describe('TuiFilter pipe', () => { let pipe: TuiFilterPipe; diff --git a/projects/cdk/pipes/is-present/is-present.pipe.ts b/projects/cdk/pipes/is-present/is-present.pipe.ts index d2d7e933c9aa..29537e59e22c 100644 --- a/projects/cdk/pipes/is-present/is-present.pipe.ts +++ b/projects/cdk/pipes/is-present/is-present.pipe.ts @@ -1,4 +1,5 @@ -import {Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; import {tuiIsPresent} from '@taiga-ui/cdk/utils'; @Pipe({name: 'tuiIsPresent'}) diff --git a/projects/cdk/pipes/keys/keys.pipe.ts b/projects/cdk/pipes/keys/keys.pipe.ts index eaa0de2487d4..c5cb2a9281b0 100644 --- a/projects/cdk/pipes/keys/keys.pipe.ts +++ b/projects/cdk/pipes/keys/keys.pipe.ts @@ -1,4 +1,5 @@ -import {Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; @Pipe({name: 'tuiKeys'}) export class TuiKeysPipe implements PipeTransform { diff --git a/projects/cdk/pipes/mapper/mapper.pipe.ts b/projects/cdk/pipes/mapper/mapper.pipe.ts index ccd3133f1ead..7223c303b640 100644 --- a/projects/cdk/pipes/mapper/mapper.pipe.ts +++ b/projects/cdk/pipes/mapper/mapper.pipe.ts @@ -1,5 +1,6 @@ -import {Pipe, type PipeTransform} from '@angular/core'; -import {type TuiMapper, type TuiTypedMapper} from '@taiga-ui/cdk/types'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; +import type {TuiMapper, TuiTypedMapper} from '@taiga-ui/cdk/types'; @Pipe({name: 'tuiMapper'}) export class TuiMapperPipe implements PipeTransform { diff --git a/projects/cdk/pipes/mapper/test/mapper.pipe.spec.ts b/projects/cdk/pipes/mapper/test/mapper.pipe.spec.ts index 1258c360730f..b4e1d96815ec 100644 --- a/projects/cdk/pipes/mapper/test/mapper.pipe.spec.ts +++ b/projects/cdk/pipes/mapper/test/mapper.pipe.spec.ts @@ -1,4 +1,5 @@ -import {TuiMapperPipe, type TuiTypedMapper} from '@taiga-ui/cdk'; +import type {TuiTypedMapper} from '@taiga-ui/cdk'; +import {TuiMapperPipe} from '@taiga-ui/cdk'; describe('TuiMapper pipe', () => { let pipe: TuiMapperPipe; diff --git a/projects/cdk/pipes/replace/replace.pipe.ts b/projects/cdk/pipes/replace/replace.pipe.ts index 4c045987194f..19bf4179a235 100644 --- a/projects/cdk/pipes/replace/replace.pipe.ts +++ b/projects/cdk/pipes/replace/replace.pipe.ts @@ -1,4 +1,5 @@ -import {Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; @Pipe({name: 'tuiReplace'}) export class TuiReplacePipe implements PipeTransform { diff --git a/projects/cdk/schematics/constants/file-globs.ts b/projects/cdk/schematics/constants/file-globs.ts index 26d4f6f5727a..6561bf5affd3 100644 --- a/projects/cdk/schematics/constants/file-globs.ts +++ b/projects/cdk/schematics/constants/file-globs.ts @@ -1,4 +1,4 @@ -import {type Pattern} from 'ng-morph'; +import type {Pattern} from 'ng-morph'; const EXCLUDE_DIRECTORIES = [ 'e2e', diff --git a/projects/cdk/schematics/ng-add/index.ts b/projects/cdk/schematics/ng-add/index.ts index a15dbb41562c..786fd35e5f1a 100644 --- a/projects/cdk/schematics/ng-add/index.ts +++ b/projects/cdk/schematics/ng-add/index.ts @@ -1,4 +1,4 @@ -import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; +import type {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; import {NodePackageInstallTask, RunSchematicTask} from '@angular-devkit/schematics/tasks'; import { addPackageJsonDependency, @@ -14,7 +14,7 @@ import { NG_DOMPURIFY_VERSION, TAIGA_VERSION, } from './constants/versions'; -import {type TuiSchema} from './schema'; +import type {TuiSchema} from './schema'; function addDependencies(tree: Tree, options: TuiSchema): void { const packages = [...MAIN_PACKAGES, ...options.addons]; diff --git a/projects/cdk/schematics/ng-add/setup-project.ts b/projects/cdk/schematics/ng-add/setup-project.ts index b2c8bcf1c5f5..57bd5b411f2a 100644 --- a/projects/cdk/schematics/ng-add/setup-project.ts +++ b/projects/cdk/schematics/ng-add/setup-project.ts @@ -1,6 +1,7 @@ -import {chain, type Rule} from '@angular-devkit/schematics'; +import type {Rule} from '@angular-devkit/schematics'; +import {chain} from '@angular-devkit/schematics'; -import {type TuiSchema} from './schema'; +import type {TuiSchema} from './schema'; import {addTaigaIcons} from './steps/add-taiga-icons'; import {addTaigaModules} from './steps/add-taiga-modules'; import {addTaigaStyles} from './steps/add-taiga-styles'; diff --git a/projects/cdk/schematics/ng-add/steps/add-taiga-icons.ts b/projects/cdk/schematics/ng-add/steps/add-taiga-icons.ts index 033585c73a47..79772eee4fc6 100644 --- a/projects/cdk/schematics/ng-add/steps/add-taiga-icons.ts +++ b/projects/cdk/schematics/ng-add/steps/add-taiga-icons.ts @@ -1,10 +1,10 @@ -import {type JsonArray} from '@angular-devkit/core'; -import {type Rule, type Tree} from '@angular-devkit/schematics'; +import type {JsonArray} from '@angular-devkit/core'; +import type {Rule, Tree} from '@angular-devkit/schematics'; import {updateWorkspace} from '@schematics/angular/utility/workspace'; import {getProjectTargetOptions} from '../../utils/get-project-target-options'; import {getProjects} from '../../utils/get-projects'; -import {type TuiSchema} from '../schema'; +import type {TuiSchema} from '../schema'; const ICON_ASSETS = { glob: '**/*', diff --git a/projects/cdk/schematics/ng-add/steps/add-taiga-modules.ts b/projects/cdk/schematics/ng-add/steps/add-taiga-modules.ts index 1f54384bab50..7dfdf08a24f9 100644 --- a/projects/cdk/schematics/ng-add/steps/add-taiga-modules.ts +++ b/projects/cdk/schematics/ng-add/steps/add-taiga-modules.ts @@ -1,18 +1,20 @@ -import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; +import type {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; import {getWorkspace} from '@schematics/angular/utility/workspace'; +import type { + ArrayLiteralExpression, + CallExpression, + ClassDeclaration, + Identifier, + ObjectLiteralExpression, + PropertyAssignment, +} from 'ng-morph'; import { addImportToNgModule, addProviderToComponent, addProviderToNgModule, - type ArrayLiteralExpression, - type CallExpression, - type ClassDeclaration, createProject, getMainModule, - type Identifier, Node, - type ObjectLiteralExpression, - type PropertyAssignment, saveActiveProject, setActiveProject, SyntaxKind, @@ -26,15 +28,15 @@ import {getProjectTargetOptions} from '../../utils/get-project-target-options'; import {getProjects} from '../../utils/get-projects'; import {getStandaloneBootstrapFunction} from '../../utils/get-standalone-bootstrap-function'; import {pushToObjectArrayProperty} from '../../utils/push-to-array-property'; +import type {ImportingModule} from '../constants/modules'; import { ALERT_MODULES, BROWSER_ANIMATION_MODULE, DIALOG_MODULES, - type ImportingModule, MAIN_MODULE, SANITIZER_MODULES, } from '../constants/modules'; -import {type TuiSchema} from '../schema'; +import type {TuiSchema} from '../schema'; function addTuiModules({ mainClass, diff --git a/projects/cdk/schematics/ng-add/steps/add-taiga-styles.ts b/projects/cdk/schematics/ng-add/steps/add-taiga-styles.ts index 1074c59b6290..e4b94bf38697 100644 --- a/projects/cdk/schematics/ng-add/steps/add-taiga-styles.ts +++ b/projects/cdk/schematics/ng-add/steps/add-taiga-styles.ts @@ -1,4 +1,4 @@ -import {type Rule, type Tree} from '@angular-devkit/schematics'; +import type {Rule, Tree} from '@angular-devkit/schematics'; import { TAIGA_GLOBAL_NEW_STYLE, @@ -6,7 +6,7 @@ import { TAIGA_THEME_STYLE, } from '../../constants/taiga-styles'; import {addStylesToAngularJson} from '../../utils/angular-json-manipulations'; -import {type TuiSchema} from '../schema'; +import type {TuiSchema} from '../schema'; export function addTaigaStyles(options: TuiSchema): Rule { return (_: Tree, context) => { diff --git a/projects/cdk/schematics/ng-add/steps/wrap-with-tui-root.ts b/projects/cdk/schematics/ng-add/steps/wrap-with-tui-root.ts index 30595f588e9e..3bcacd1f5099 100644 --- a/projects/cdk/schematics/ng-add/steps/wrap-with-tui-root.ts +++ b/projects/cdk/schematics/ng-add/steps/wrap-with-tui-root.ts @@ -1,11 +1,9 @@ -import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; +import type {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; import {getWorkspace} from '@schematics/angular/utility/workspace'; +import type {ClassDeclaration, Expression, Identifier} from 'ng-morph'; import { - type ClassDeclaration, createProject, - type Expression, getMainModule, - type Identifier, Node, saveActiveProject, setActiveProject, @@ -16,7 +14,7 @@ import {getComponentFromIdentifier} from '../../utils/get-component-from-identif import {getProjectTargetOptions} from '../../utils/get-project-target-options'; import {getProjects} from '../../utils/get-projects'; import {getStandaloneBootstrapFunction} from '../../utils/get-standalone-bootstrap-function'; -import {type TuiSchema} from '../schema'; +import type {TuiSchema} from '../schema'; function addTuiRootComponent( filePath: string, diff --git a/projects/cdk/schematics/ng-add/tests/schematic-ng-add-standalone.spec.ts b/projects/cdk/schematics/ng-add/tests/schematic-ng-add-standalone.spec.ts index 8e7b2388b94c..f7f68512532f 100644 --- a/projects/cdk/schematics/ng-add/tests/schematic-ng-add-standalone.spec.ts +++ b/projects/cdk/schematics/ng-add/tests/schematic-ng-add-standalone.spec.ts @@ -16,7 +16,7 @@ import { NG_DOMPURIFY_VERSION, TAIGA_VERSION, } from '../constants/versions'; -import {type TuiSchema} from '../schema'; +import type {TuiSchema} from '../schema'; const collectionPath = join(__dirname, '../../collection.json'); diff --git a/projects/cdk/schematics/ng-add/tests/schematic-ng-add.spec.ts b/projects/cdk/schematics/ng-add/tests/schematic-ng-add.spec.ts index c80e2bc783a7..e36448083d98 100644 --- a/projects/cdk/schematics/ng-add/tests/schematic-ng-add.spec.ts +++ b/projects/cdk/schematics/ng-add/tests/schematic-ng-add.spec.ts @@ -16,7 +16,7 @@ import { NG_DOMPURIFY_VERSION, TAIGA_VERSION, } from '../constants/versions'; -import {type TuiSchema} from '../schema'; +import type {TuiSchema} from '../schema'; const collectionPath = join(__dirname, '../../collection.json'); diff --git a/projects/cdk/schematics/ng-update/interfaces/replacement-attribute-to-directive.ts b/projects/cdk/schematics/ng-update/interfaces/replacement-attribute-to-directive.ts index 680dd5bfb2eb..205a57dc1732 100644 --- a/projects/cdk/schematics/ng-update/interfaces/replacement-attribute-to-directive.ts +++ b/projects/cdk/schematics/ng-update/interfaces/replacement-attribute-to-directive.ts @@ -1,4 +1,4 @@ -import {type Element} from 'parse5'; +import type {Element} from 'parse5'; export interface ReplacementAttributeToDirective { readonly componentSelector: string[] | string; diff --git a/projects/cdk/schematics/ng-update/interfaces/replacement-attribute.ts b/projects/cdk/schematics/ng-update/interfaces/replacement-attribute.ts index 6f4da05d9e73..d44efd788e53 100644 --- a/projects/cdk/schematics/ng-update/interfaces/replacement-attribute.ts +++ b/projects/cdk/schematics/ng-update/interfaces/replacement-attribute.ts @@ -1,4 +1,4 @@ -import {type Element} from 'parse5'; +import type {Element} from 'parse5'; export interface ReplacementAttribute { readonly from: { diff --git a/projects/cdk/schematics/ng-update/interfaces/replacement-service.ts b/projects/cdk/schematics/ng-update/interfaces/replacement-service.ts index 44ff7b5f4b3d..53022fd003c3 100644 --- a/projects/cdk/schematics/ng-update/interfaces/replacement-service.ts +++ b/projects/cdk/schematics/ng-update/interfaces/replacement-service.ts @@ -1,4 +1,4 @@ -import {type ReplacementIdentifier} from './replacement-identifier'; +import type {ReplacementIdentifier} from './replacement-identifier'; export interface ReplacementService extends ReplacementIdentifier { readonly replaceMethods?: Array<{ diff --git a/projects/cdk/schematics/ng-update/interfaces/replacement-tag.ts b/projects/cdk/schematics/ng-update/interfaces/replacement-tag.ts index bb909e174dba..64555da6a22a 100644 --- a/projects/cdk/schematics/ng-update/interfaces/replacement-tag.ts +++ b/projects/cdk/schematics/ng-update/interfaces/replacement-tag.ts @@ -1,4 +1,4 @@ -import {type Element} from 'parse5'; +import type {Element} from 'parse5'; export interface ReplacementTag { readonly addAttributes?: string[]; diff --git a/projects/cdk/schematics/ng-update/steps/icons/replace-imports.ts b/projects/cdk/schematics/ng-update/steps/icons/replace-imports.ts index 063fe1f1b5e0..e44512df3cfa 100644 --- a/projects/cdk/schematics/ng-update/steps/icons/replace-imports.ts +++ b/projects/cdk/schematics/ng-update/steps/icons/replace-imports.ts @@ -1,12 +1,12 @@ import {getImports, Node} from 'ng-morph'; import {ALL_TS_FILES} from '../../../constants'; -import {type TuiSchema} from '../../../ng-add/schema'; +import type {TuiSchema} from '../../../ng-add/schema'; import {addUniqueImport} from '../../../utils/add-unique-import'; import {SMALL_TAB_SYMBOL, SUCCESS_SYMBOL, successLog} from '../../../utils/colored-log'; import {removeImport} from '../../../utils/import-manipulations'; import {setupProgressLogger} from '../../../utils/progress'; -import {type ReplacementIdentifier} from '../../interfaces/replacement-identifier'; +import type {ReplacementIdentifier} from '../../interfaces/replacement-identifier'; export function replaceImports( replaceable: ReplacementIdentifier[], diff --git a/projects/cdk/schematics/ng-update/steps/remove-module.ts b/projects/cdk/schematics/ng-update/steps/remove-module.ts index c2cc3c76dcd4..a395358e6bdc 100644 --- a/projects/cdk/schematics/ng-update/steps/remove-module.ts +++ b/projects/cdk/schematics/ng-update/steps/remove-module.ts @@ -1,6 +1,6 @@ import {Node} from 'ng-morph'; -import {type TuiSchema} from '../../ng-add/schema'; +import type {TuiSchema} from '../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, @@ -10,7 +10,7 @@ import { } from '../../utils/colored-log'; import {getNamedImportReferences} from '../../utils/get-named-import-references'; import {removeImport} from '../../utils/import-manipulations'; -import {type RemovedModule} from '../interfaces/removed-module'; +import type {RemovedModule} from '../interfaces/removed-module'; export function removeModules( options: TuiSchema, diff --git a/projects/cdk/schematics/ng-update/steps/rename-types.ts b/projects/cdk/schematics/ng-update/steps/rename-types.ts index 1d5ae50931d8..7dd0f9856555 100644 --- a/projects/cdk/schematics/ng-update/steps/rename-types.ts +++ b/projects/cdk/schematics/ng-update/steps/rename-types.ts @@ -1,7 +1,8 @@ -import {getImports, type ImportSpecifier, Node} from 'ng-morph'; -import {type TypeNode} from 'ts-morph'; +import type {ImportSpecifier} from 'ng-morph'; +import {getImports, Node} from 'ng-morph'; +import type {TypeNode} from 'ts-morph'; -import {type TuiSchema} from '../../ng-add/schema'; +import type {TuiSchema} from '../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, @@ -11,7 +12,7 @@ import { } from '../../utils/colored-log'; import {getNamedImportReferences} from '../../utils/get-named-import-references'; import {removeImport, renameImport} from '../../utils/import-manipulations'; -import {type ReplacementType} from '../interfaces/replacement-type'; +import type {ReplacementType} from '../interfaces/replacement-type'; function renameType( from: string, diff --git a/projects/cdk/schematics/ng-update/steps/replace-deep-import.ts b/projects/cdk/schematics/ng-update/steps/replace-deep-import.ts index a6b607cd99a9..772e4e125b80 100644 --- a/projects/cdk/schematics/ng-update/steps/replace-deep-import.ts +++ b/projects/cdk/schematics/ng-update/steps/replace-deep-import.ts @@ -1,7 +1,7 @@ import {editImports, getImports} from 'ng-morph'; import {ALL_TS_FILES} from '../../constants'; -import {type TuiSchema} from '../../ng-add/schema'; +import type {TuiSchema} from '../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, diff --git a/projects/cdk/schematics/ng-update/steps/replace-enums.ts b/projects/cdk/schematics/ng-update/steps/replace-enums.ts index 35f78ba894cf..26f1ddd82ca2 100644 --- a/projects/cdk/schematics/ng-update/steps/replace-enums.ts +++ b/projects/cdk/schematics/ng-update/steps/replace-enums.ts @@ -1,6 +1,7 @@ -import {type ImportSpecifier, Node, type VariableDeclaration} from 'ng-morph'; +import type {ImportSpecifier, VariableDeclaration} from 'ng-morph'; +import {Node} from 'ng-morph'; -import {type TuiSchema} from '../../ng-add/schema'; +import type {TuiSchema} from '../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, @@ -10,7 +11,7 @@ import { } from '../../utils/colored-log'; import {getNamedImportReferences} from '../../utils/get-named-import-references'; import {removeImport} from '../../utils/import-manipulations'; -import {type ReplacementEnum} from '../interfaces/replacement-enum'; +import type {ReplacementEnum} from '../interfaces/replacement-enum'; function replaceEnumWithString( enumName: string, diff --git a/projects/cdk/schematics/ng-update/steps/replace-identifier.ts b/projects/cdk/schematics/ng-update/steps/replace-identifier.ts index 33b5cbed40f1..5d1b61ea63a8 100644 --- a/projects/cdk/schematics/ng-update/steps/replace-identifier.ts +++ b/projects/cdk/schematics/ng-update/steps/replace-identifier.ts @@ -1,6 +1,6 @@ import {Node} from 'ng-morph'; -import {type TuiSchema} from '../../ng-add/schema'; +import type {TuiSchema} from '../../ng-add/schema'; import {addUniqueImport} from '../../utils/add-unique-import'; import { infoLog, @@ -11,7 +11,7 @@ import { } from '../../utils/colored-log'; import {getNamedImportReferences} from '../../utils/get-named-import-references'; import {removeImport} from '../../utils/import-manipulations'; -import {type ReplacementIdentifier} from '../interfaces/replacement-identifier'; +import type {ReplacementIdentifier} from '../interfaces/replacement-identifier'; export function replaceIdentifiers( options: TuiSchema, diff --git a/projects/cdk/schematics/ng-update/steps/replace-services.ts b/projects/cdk/schematics/ng-update/steps/replace-services.ts index 816877faffda..429a26e2c1ca 100644 --- a/projects/cdk/schematics/ng-update/steps/replace-services.ts +++ b/projects/cdk/schematics/ng-update/steps/replace-services.ts @@ -1,11 +1,7 @@ -import { - Node, - type PropertyAccessExpression, - SyntaxKind, - type TypeReferenceNode, -} from 'ng-morph'; +import type {PropertyAccessExpression, TypeReferenceNode} from 'ng-morph'; +import {Node, SyntaxKind} from 'ng-morph'; -import {type TuiSchema} from '../../ng-add/schema'; +import type {TuiSchema} from '../../ng-add/schema'; import {addUniqueImport} from '../../utils/add-unique-import'; import { infoLog, @@ -18,7 +14,7 @@ import { } from '../../utils/colored-log'; import {getNamedImportReferences} from '../../utils/get-named-import-references'; import {removeImport} from '../../utils/import-manipulations'; -import {type ReplacementService} from '../interfaces/replacement-service'; +import type {ReplacementService} from '../interfaces/replacement-service'; function replaceService( {from, to, replaceMethods}: ReplacementService, diff --git a/projects/cdk/schematics/ng-update/steps/show-warnings.ts b/projects/cdk/schematics/ng-update/steps/show-warnings.ts index 67a5d67f9a63..e23a0e8e0d8c 100644 --- a/projects/cdk/schematics/ng-update/steps/show-warnings.ts +++ b/projects/cdk/schematics/ng-update/steps/show-warnings.ts @@ -1,8 +1,8 @@ -import {type SchematicContext} from '@angular-devkit/schematics'; +import type {SchematicContext} from '@angular-devkit/schematics'; import {getImports} from 'ng-morph'; import {ALL_TS_FILES} from '../../constants'; -import {type MigrationWarning} from '../interfaces/migration-warning'; +import type {MigrationWarning} from '../interfaces/migration-warning'; function showWarning( {name, message, moduleSpecifier = '**/**'}: MigrationWarning, diff --git a/projects/cdk/schematics/ng-update/utils/get-file-system.ts b/projects/cdk/schematics/ng-update/utils/get-file-system.ts index d98d89b087bb..214701d6d0bf 100644 --- a/projects/cdk/schematics/ng-update/utils/get-file-system.ts +++ b/projects/cdk/schematics/ng-update/utils/get-file-system.ts @@ -1,6 +1,6 @@ -import {type Tree} from '@angular-devkit/schematics'; +import type {Tree} from '@angular-devkit/schematics'; import {createProject, setActiveProject} from 'ng-morph'; -import {type DevkitFileSystem} from 'ng-morph/project/classes/devkit-file-system'; +import type {DevkitFileSystem} from 'ng-morph/project/classes/devkit-file-system'; import {ALL_FILES} from '../../constants'; import {projectRoot} from '../../utils/project-root'; diff --git a/projects/cdk/schematics/ng-update/utils/templates/remove-inputs.ts b/projects/cdk/schematics/ng-update/utils/templates/remove-inputs.ts index 39ed6d00c02d..cf7922ec7c50 100644 --- a/projects/cdk/schematics/ng-update/utils/templates/remove-inputs.ts +++ b/projects/cdk/schematics/ng-update/utils/templates/remove-inputs.ts @@ -1,13 +1,13 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {type DevkitFileSystem} from 'ng-morph'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {DevkitFileSystem} from 'ng-morph'; import {getInputPropertyOffsets} from '../../../utils/templates/ng-component-input-manipulations'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {type RemovableInput} from '../../interfaces/removable-input'; -import {type TemplateResource} from '../../interfaces/template-resource'; +import type {RemovableInput} from '../../interfaces/removable-input'; +import type {TemplateResource} from '../../interfaces/template-resource'; export function removeInputs({ resource, diff --git a/projects/cdk/schematics/ng-update/utils/templates/replace-attr-values.ts b/projects/cdk/schematics/ng-update/utils/templates/replace-attr-values.ts index b55847883774..d9e3a7b5e79d 100644 --- a/projects/cdk/schematics/ng-update/utils/templates/replace-attr-values.ts +++ b/projects/cdk/schematics/ng-update/utils/templates/replace-attr-values.ts @@ -1,13 +1,13 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {type DevkitFileSystem} from 'ng-morph'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {DevkitFileSystem} from 'ng-morph'; import {findElementsWithAttributeOnTag} from '../../../utils/templates/elements'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {type ReplacementAttributeValue} from '../../interfaces/replacement-attribute-value'; -import {type TemplateResource} from '../../interfaces/template-resource'; +import type {ReplacementAttributeValue} from '../../interfaces/replacement-attribute-value'; +import type {TemplateResource} from '../../interfaces/template-resource'; export function replaceAttrValues({ resource, diff --git a/projects/cdk/schematics/ng-update/utils/templates/replace-attrs-by-directives.ts b/projects/cdk/schematics/ng-update/utils/templates/replace-attrs-by-directives.ts index 8eae9e193557..3b3adc624ed9 100644 --- a/projects/cdk/schematics/ng-update/utils/templates/replace-attrs-by-directives.ts +++ b/projects/cdk/schematics/ng-update/utils/templates/replace-attrs-by-directives.ts @@ -1,10 +1,7 @@ -import {type DevkitFileSystem} from 'ng-morph'; +import type {DevkitFileSystem} from 'ng-morph'; import {replaceInputPropertyByDirective} from '../../../utils/templates/ng-component-input-manipulations'; -import { - type ReplacementAttributeToDirective, - type TemplateResource, -} from '../../interfaces'; +import type {ReplacementAttributeToDirective, TemplateResource} from '../../interfaces'; export function replaceAttrsByDirective({ resource, diff --git a/projects/cdk/schematics/ng-update/utils/templates/replace-attrs.ts b/projects/cdk/schematics/ng-update/utils/templates/replace-attrs.ts index 6d36f75cb74e..bfc140359679 100644 --- a/projects/cdk/schematics/ng-update/utils/templates/replace-attrs.ts +++ b/projects/cdk/schematics/ng-update/utils/templates/replace-attrs.ts @@ -1,5 +1,5 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {type DevkitFileSystem} from 'ng-morph'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {DevkitFileSystem} from 'ng-morph'; import { findAttributeOnElementWithAttrs, @@ -9,8 +9,8 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {type ReplacementAttribute} from '../../interfaces/replacement-attribute'; -import {type TemplateResource} from '../../interfaces/template-resource'; +import type {ReplacementAttribute} from '../../interfaces/replacement-attribute'; +import type {TemplateResource} from '../../interfaces/template-resource'; export function replaceAttrs({ resource, diff --git a/projects/cdk/schematics/ng-update/utils/templates/replace-tag.ts b/projects/cdk/schematics/ng-update/utils/templates/replace-tag.ts index 9c8afe2b3a17..e2c8220850b4 100644 --- a/projects/cdk/schematics/ng-update/utils/templates/replace-tag.ts +++ b/projects/cdk/schematics/ng-update/utils/templates/replace-tag.ts @@ -1,5 +1,5 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {type ElementLocation} from 'parse5'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {ElementLocation} from 'parse5'; const START_TAG_OFFSET = 1; const END_TAG_OFFSET = 2; diff --git a/projects/cdk/schematics/ng-update/utils/templates/replace-tags.ts b/projects/cdk/schematics/ng-update/utils/templates/replace-tags.ts index 482311521fd9..aa5ea5357521 100644 --- a/projects/cdk/schematics/ng-update/utils/templates/replace-tags.ts +++ b/projects/cdk/schematics/ng-update/utils/templates/replace-tags.ts @@ -1,13 +1,13 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {type DevkitFileSystem} from 'ng-morph'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {DevkitFileSystem} from 'ng-morph'; import {findElementsByTagName} from '../../../utils/templates/elements'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {type ReplacementTag} from '../../interfaces/replacement-tag'; -import {type TemplateResource} from '../../interfaces/template-resource'; +import type {ReplacementTag} from '../../interfaces/replacement-tag'; +import type {TemplateResource} from '../../interfaces/template-resource'; import {replaceTag} from './replace-tag'; export function replaceTags({ diff --git a/projects/cdk/schematics/ng-update/utils/templates/template-comments.ts b/projects/cdk/schematics/ng-update/utils/templates/template-comments.ts index 850a7875d734..9edc97e8aeaf 100644 --- a/projects/cdk/schematics/ng-update/utils/templates/template-comments.ts +++ b/projects/cdk/schematics/ng-update/utils/templates/template-comments.ts @@ -1,5 +1,5 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {type DevkitFileSystem} from 'ng-morph'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {DevkitFileSystem} from 'ng-morph'; import {TODO_MARK} from '../../../utils/insert-todo'; import {findElementsWithAttributeOnTag} from '../../../utils/templates/elements'; @@ -7,7 +7,7 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {type HtmlComment, type TemplateResource} from '../../interfaces'; +import type {HtmlComment, TemplateResource} from '../../interfaces'; export function addHTMLCommentTags({ resource, diff --git a/projects/cdk/schematics/ng-update/v3-30/constants/constants.ts b/projects/cdk/schematics/ng-update/v3-30/constants/constants.ts index 0b8f55a2a3db..7bbc2e7bf1ba 100644 --- a/projects/cdk/schematics/ng-update/v3-30/constants/constants.ts +++ b/projects/cdk/schematics/ng-update/v3-30/constants/constants.ts @@ -1,4 +1,4 @@ -import {type ReplacementIdentifier} from '../../interfaces/replacement-identifier'; +import type {ReplacementIdentifier} from '../../interfaces/replacement-identifier'; import {ICONS} from './icons'; export const ICONS_TS: ReplacementIdentifier[] = ICONS.map(({from, to}) => ({ diff --git a/projects/cdk/schematics/ng-update/v3-30/index.ts b/projects/cdk/schematics/ng-update/v3-30/index.ts index 9f25f5887494..358619d0f041 100644 --- a/projects/cdk/schematics/ng-update/v3-30/index.ts +++ b/projects/cdk/schematics/ng-update/v3-30/index.ts @@ -1,7 +1,7 @@ -import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; +import type {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; import {getPackageJsonDependency, saveActiveProject} from 'ng-morph'; -import {type TuiSchema} from '../../ng-add/schema'; +import type {TuiSchema} from '../../ng-add/schema'; import { FINISH_SYMBOL, infoLog, diff --git a/projects/cdk/schematics/ng-update/v3-30/tests/schematic-migrate-icons.spec.ts b/projects/cdk/schematics/ng-update/v3-30/tests/schematic-migrate-icons.spec.ts index 72f16c5c3ea7..23e3a2f6500c 100644 --- a/projects/cdk/schematics/ng-update/v3-30/tests/schematic-migrate-icons.spec.ts +++ b/projects/cdk/schematics/ng-update/v3-30/tests/schematic-migrate-icons.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3-35/constants/constants.ts b/projects/cdk/schematics/ng-update/v3-35/constants/constants.ts index 0b8f55a2a3db..7bbc2e7bf1ba 100644 --- a/projects/cdk/schematics/ng-update/v3-35/constants/constants.ts +++ b/projects/cdk/schematics/ng-update/v3-35/constants/constants.ts @@ -1,4 +1,4 @@ -import {type ReplacementIdentifier} from '../../interfaces/replacement-identifier'; +import type {ReplacementIdentifier} from '../../interfaces/replacement-identifier'; import {ICONS} from './icons'; export const ICONS_TS: ReplacementIdentifier[] = ICONS.map(({from, to}) => ({ diff --git a/projects/cdk/schematics/ng-update/v3-35/index.ts b/projects/cdk/schematics/ng-update/v3-35/index.ts index 3d3253344f5b..708a7420b0ae 100644 --- a/projects/cdk/schematics/ng-update/v3-35/index.ts +++ b/projects/cdk/schematics/ng-update/v3-35/index.ts @@ -1,7 +1,7 @@ -import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; +import type {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; import {getPackageJsonDependency, saveActiveProject} from 'ng-morph'; -import {type TuiSchema} from '../../ng-add/schema'; +import type {TuiSchema} from '../../ng-add/schema'; import { FINISH_SYMBOL, infoLog, diff --git a/projects/cdk/schematics/ng-update/v3-35/tests/schematic-migrate-icons.spec.ts b/projects/cdk/schematics/ng-update/v3-35/tests/schematic-migrate-icons.spec.ts index 7c5e8cafca38..4ce440616e5d 100644 --- a/projects/cdk/schematics/ng-update/v3-35/tests/schematic-migrate-icons.spec.ts +++ b/projects/cdk/schematics/ng-update/v3-35/tests/schematic-migrate-icons.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3-36/index.ts b/projects/cdk/schematics/ng-update/v3-36/index.ts index 25ebab83907b..62e4965f9a6e 100644 --- a/projects/cdk/schematics/ng-update/v3-36/index.ts +++ b/projects/cdk/schematics/ng-update/v3-36/index.ts @@ -1,4 +1,4 @@ -import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; +import type {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; import {NodePackageInstallTask} from '@angular-devkit/schematics/tasks'; import { addPackageJsonDependency, @@ -8,7 +8,7 @@ import { } from 'ng-morph'; import {ALL_TS_FILES} from '../../constants'; -import {type TuiSchema} from '../../ng-add/schema'; +import type {TuiSchema} from '../../ng-add/schema'; import { FINISH_SYMBOL, infoLog, diff --git a/projects/cdk/schematics/ng-update/v3-36/tests/schematic-migrate-editor.spec.ts b/projects/cdk/schematics/ng-update/v3-36/tests/schematic-migrate-editor.spec.ts index 3bd2045931da..838278e32c5e 100644 --- a/projects/cdk/schematics/ng-update/v3-36/tests/schematic-migrate-editor.spec.ts +++ b/projects/cdk/schematics/ng-update/v3-36/tests/schematic-migrate-editor.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3-40/index.ts b/projects/cdk/schematics/ng-update/v3-40/index.ts index 80f2dff7290e..2befbbb0e4f2 100644 --- a/projects/cdk/schematics/ng-update/v3-40/index.ts +++ b/projects/cdk/schematics/ng-update/v3-40/index.ts @@ -1,13 +1,9 @@ -import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; -import { - createProject, - type DevkitFileSystem, - saveActiveProject, - setActiveProject, -} from 'ng-morph'; +import type {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; +import type {DevkitFileSystem} from 'ng-morph'; +import {createProject, saveActiveProject, setActiveProject} from 'ng-morph'; import {ALL_FILES, ALL_TS_FILES} from '../../constants'; -import {type TuiSchema} from '../../ng-add/schema'; +import type {TuiSchema} from '../../ng-add/schema'; import { FINISH_SYMBOL, infoLog, diff --git a/projects/cdk/schematics/ng-update/v3-40/tests/schematic-migrate-textarea.spec.ts b/projects/cdk/schematics/ng-update/v3-40/tests/schematic-migrate-textarea.spec.ts index 752836973535..bfdfd9577481 100644 --- a/projects/cdk/schematics/ng-update/v3-40/tests/schematic-migrate-textarea.spec.ts +++ b/projects/cdk/schematics/ng-update/v3-40/tests/schematic-migrate-textarea.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3-5/index.ts b/projects/cdk/schematics/ng-update/v3-5/index.ts index 74435df3b770..5f8cb4ea47ca 100644 --- a/projects/cdk/schematics/ng-update/v3-5/index.ts +++ b/projects/cdk/schematics/ng-update/v3-5/index.ts @@ -1,8 +1,8 @@ -import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; +import type {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; import {saveActiveProject} from 'ng-morph'; import {TAIGA_VERSION} from '../../ng-add/constants/versions'; -import {type TuiSchema} from '../../ng-add/schema'; +import type {TuiSchema} from '../../ng-add/schema'; import {FINISH_SYMBOL, titleLog} from '../../utils/colored-log'; import {getFileSystem} from '../utils/get-file-system'; import {migrateExpandTemplates} from './steps/migrate-expand-templates'; diff --git a/projects/cdk/schematics/ng-update/v3-5/steps/migrate-expand-templates.ts b/projects/cdk/schematics/ng-update/v3-5/steps/migrate-expand-templates.ts index 574da4072ba4..fe25226e27f6 100644 --- a/projects/cdk/schematics/ng-update/v3-5/steps/migrate-expand-templates.ts +++ b/projects/cdk/schematics/ng-update/v3-5/steps/migrate-expand-templates.ts @@ -1,8 +1,8 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {type DevkitFileSystem} from 'ng-morph'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {DevkitFileSystem} from 'ng-morph'; import {ALL_TS_FILES} from '../../../constants'; -import {type TuiSchema} from '../../../ng-add/schema'; +import type {TuiSchema} from '../../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, @@ -18,7 +18,7 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {type TemplateResource} from '../../interfaces/template-resource'; +import type {TemplateResource} from '../../interfaces/template-resource'; function migrateExpand({ resource, diff --git a/projects/cdk/schematics/ng-update/v3-5/tests/schematic-migrate-templates.spec.ts b/projects/cdk/schematics/ng-update/v3-5/tests/schematic-migrate-templates.spec.ts index 968d8379c637..6c5d5c0c60e7 100644 --- a/projects/cdk/schematics/ng-update/v3-5/tests/schematic-migrate-templates.spec.ts +++ b/projects/cdk/schematics/ng-update/v3-5/tests/schematic-migrate-templates.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/constants/constants.ts b/projects/cdk/schematics/ng-update/v3/constants/constants.ts index 0b24910ff1fb..7e0c69bff87c 100644 --- a/projects/cdk/schematics/ng-update/v3/constants/constants.ts +++ b/projects/cdk/schematics/ng-update/v3/constants/constants.ts @@ -1,4 +1,4 @@ -import {type ReplacementIdentifier} from '../../interfaces/replacement-identifier'; +import type {ReplacementIdentifier} from '../../interfaces/replacement-identifier'; export const CONSTANTS_TO_REPLACE: ReplacementIdentifier[] = [ { diff --git a/projects/cdk/schematics/ng-update/v3/constants/deprecated-functions.ts b/projects/cdk/schematics/ng-update/v3/constants/deprecated-functions.ts index ebb567360037..454e58c436c6 100644 --- a/projects/cdk/schematics/ng-update/v3/constants/deprecated-functions.ts +++ b/projects/cdk/schematics/ng-update/v3/constants/deprecated-functions.ts @@ -1,4 +1,4 @@ -import {type ReplacementType} from '../../interfaces/replacement-type'; +import type {ReplacementType} from '../../interfaces/replacement-type'; export const DEPRECATED_FUNCTIONS: readonly ReplacementType[] = [ { diff --git a/projects/cdk/schematics/ng-update/v3/constants/enums.ts b/projects/cdk/schematics/ng-update/v3/constants/enums.ts index 55024963b155..6878bd405dbe 100644 --- a/projects/cdk/schematics/ng-update/v3/constants/enums.ts +++ b/projects/cdk/schematics/ng-update/v3/constants/enums.ts @@ -1,4 +1,4 @@ -import {type ReplacementEnum} from '../../interfaces/replacement-enum'; +import type {ReplacementEnum} from '../../interfaces/replacement-enum'; export const ENUMS_TO_REPLACE: ReplacementEnum[] = [ { diff --git a/projects/cdk/schematics/ng-update/v3/constants/modules.ts b/projects/cdk/schematics/ng-update/v3/constants/modules.ts index 70efb4ea5573..e753a40d2584 100644 --- a/projects/cdk/schematics/ng-update/v3/constants/modules.ts +++ b/projects/cdk/schematics/ng-update/v3/constants/modules.ts @@ -1,4 +1,4 @@ -import {type RemovedModule} from '../../interfaces/removed-module'; +import type {RemovedModule} from '../../interfaces/removed-module'; export const REMOVED_MODULES: readonly RemovedModule[] = [ {name: 'TuiResizableColumnModule', moduleSpecifier: '@taiga-ui/addon-table'}, diff --git a/projects/cdk/schematics/ng-update/v3/constants/services.ts b/projects/cdk/schematics/ng-update/v3/constants/services.ts index c295f50a8122..d0610f1058a1 100644 --- a/projects/cdk/schematics/ng-update/v3/constants/services.ts +++ b/projects/cdk/schematics/ng-update/v3/constants/services.ts @@ -1,4 +1,4 @@ -import {type ReplacementService} from '../../interfaces/replacement-service'; +import type {ReplacementService} from '../../interfaces/replacement-service'; export const SERVICES_TO_REPLACE: ReplacementService[] = [ { diff --git a/projects/cdk/schematics/ng-update/v3/constants/templates.ts b/projects/cdk/schematics/ng-update/v3/constants/templates.ts index 2565a598e450..e62002ffed3a 100644 --- a/projects/cdk/schematics/ng-update/v3/constants/templates.ts +++ b/projects/cdk/schematics/ng-update/v3/constants/templates.ts @@ -1,9 +1,9 @@ import {hasElementAttribute} from '../../../utils/templates/elements'; -import {type ReplacementAttributeToDirective} from '../../interfaces'; -import {type RemovableInput} from '../../interfaces/removable-input'; -import {type ReplacementAttribute} from '../../interfaces/replacement-attribute'; -import {type ReplacementAttributeValue} from '../../interfaces/replacement-attribute-value'; -import {type ReplacementTag} from '../../interfaces/replacement-tag'; +import type {ReplacementAttributeToDirective} from '../../interfaces'; +import type {RemovableInput} from '../../interfaces/removable-input'; +import type {ReplacementAttribute} from '../../interfaces/replacement-attribute'; +import type {ReplacementAttributeValue} from '../../interfaces/replacement-attribute-value'; +import type {ReplacementTag} from '../../interfaces/replacement-tag'; import {TUI_INTERACTIVE_SELECTORS} from './tui-interactive-selectors'; export const ATTRS_TO_REPLACE: ReplacementAttribute[] = [ diff --git a/projects/cdk/schematics/ng-update/v3/constants/types.ts b/projects/cdk/schematics/ng-update/v3/constants/types.ts index 86570dd18c07..4ee6259d72b4 100644 --- a/projects/cdk/schematics/ng-update/v3/constants/types.ts +++ b/projects/cdk/schematics/ng-update/v3/constants/types.ts @@ -1,4 +1,4 @@ -import {type ReplacementType} from '../../interfaces/replacement-type'; +import type {ReplacementType} from '../../interfaces/replacement-type'; export const TYPES_TO_RENAME: readonly ReplacementType[] = [ { diff --git a/projects/cdk/schematics/ng-update/v3/constants/warnings.ts b/projects/cdk/schematics/ng-update/v3/constants/warnings.ts index c2bb948e3af0..0c3874716c0d 100644 --- a/projects/cdk/schematics/ng-update/v3/constants/warnings.ts +++ b/projects/cdk/schematics/ng-update/v3/constants/warnings.ts @@ -1,4 +1,4 @@ -import {type MigrationWarning} from '../../interfaces/migration-warning'; +import type {MigrationWarning} from '../../interfaces/migration-warning'; export const MIGRATION_WARNINGS: readonly MigrationWarning[] = [ { diff --git a/projects/cdk/schematics/ng-update/v3/index.ts b/projects/cdk/schematics/ng-update/v3/index.ts index 816871291017..bb76e22c9c2b 100644 --- a/projects/cdk/schematics/ng-update/v3/index.ts +++ b/projects/cdk/schematics/ng-update/v3/index.ts @@ -1,9 +1,5 @@ -import { - chain, - type Rule, - type SchematicContext, - type Tree, -} from '@angular-devkit/schematics'; +import type {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; +import {chain} from '@angular-devkit/schematics'; import {getPackageJsonDependency, saveActiveProject} from 'ng-morph'; import {performance} from 'perf_hooks'; @@ -13,7 +9,7 @@ import { TAIGA_THEME_FONTS, } from '../../constants/taiga-styles'; import {TAIGA_VERSION} from '../../ng-add/constants/versions'; -import {type TuiSchema} from '../../ng-add/schema'; +import type {TuiSchema} from '../../ng-add/schema'; import { addStylesToAngularJson, isInvalidAngularJson, diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-date-time.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-date-time.ts index bec148b37561..a54971e5ebf0 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-date-time.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-date-time.ts @@ -1,7 +1,8 @@ -import {type CallExpression, type Identifier, Node, SyntaxKind} from 'ng-morph'; +import type {CallExpression, Identifier} from 'ng-morph'; +import {Node, SyntaxKind} from 'ng-morph'; import {performance} from 'perf_hooks'; -import {type TuiSchema} from '../../../ng-add/schema'; +import type {TuiSchema} from '../../../ng-add/schema'; import { infoLog, PROCESSING_SYMBOL, diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-polymorpheus.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-polymorpheus.ts index 8a179a55e8a4..d3f9f283f989 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-polymorpheus.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-polymorpheus.ts @@ -1,6 +1,6 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {type DevkitFileSystem} from 'ng-morph/project/classes/devkit-file-system'; -import {type Element} from 'parse5'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {DevkitFileSystem} from 'ng-morph/project/classes/devkit-file-system'; +import type {Element} from 'parse5'; import { findElementsByFn, @@ -12,7 +12,7 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {type TemplateResource} from '../../interfaces/template-resource'; +import type {TemplateResource} from '../../interfaces/template-resource'; import {replaceTag} from '../../utils/templates/replace-tag'; function insertPolymorpheus({ diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-progress.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-progress.ts index c0c6ff2de10d..08ed362d5432 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-progress.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-progress.ts @@ -1,13 +1,9 @@ -import { - createProject, - type DevkitFileSystem, - saveActiveProject, - setActiveProject, -} from 'ng-morph'; -import {type Element} from 'parse5'; +import type {DevkitFileSystem} from 'ng-morph'; +import {createProject, saveActiveProject, setActiveProject} from 'ng-morph'; +import type {Element} from 'parse5'; import {ALL_FILES, ALL_TS_FILES} from '../../../constants'; -import {type TuiSchema} from '../../../ng-add/schema'; +import type {TuiSchema} from '../../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, @@ -23,7 +19,7 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {type TemplateResource} from '../../interfaces/template-resource'; +import type {TemplateResource} from '../../interfaces/template-resource'; const PROPERTY_FOR_DEPRECATED_PIPES = '[color]'; diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/index.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/index.ts index ccacba38ed2c..16eede4203ab 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/index.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/index.ts @@ -1,6 +1,6 @@ -import {type DevkitFileSystem} from 'ng-morph'; +import type {DevkitFileSystem} from 'ng-morph'; -import {type TuiSchema} from '../../../../ng-add/schema'; +import type {TuiSchema} from '../../../../ng-add/schema'; import { infoLog, PROCESSING_SYMBOL, diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.ts index 40ffac73c75f..3d3975942f0e 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-range.ts @@ -1,20 +1,15 @@ -import { - addMethods, - createProject, - type DevkitFileSystem, - saveActiveProject, - setActiveProject, -} from 'ng-morph'; +import type {DevkitFileSystem} from 'ng-morph'; +import {addMethods, createProject, saveActiveProject, setActiveProject} from 'ng-morph'; import {ALL_FILES, ALL_TS_FILES} from '../../../../constants'; -import {type TuiSchema} from '../../../../ng-add/schema'; +import type {TuiSchema} from '../../../../ng-add/schema'; import {addUniqueImport} from '../../../../utils/add-unique-import'; import {getNgComponents} from '../../../../utils/angular/ng-component'; import {setupProgressLogger} from '../../../../utils/progress'; import {projectRoot} from '../../../../utils/project-root'; import {getComponentTemplates} from '../../../../utils/templates/get-component-templates'; import {replaceInputProperty} from '../../../../utils/templates/ng-component-input-manipulations'; -import {type TemplateResource} from '../../../interfaces/template-resource'; +import type {TemplateResource} from '../../../interfaces/template-resource'; const MIN_LABELS_MIGRATION_METHOD_NAME = 'tuiMigrationInputRangeMinLabel'; const MAX_LABELS_MIGRATION_METHOD_NAME = 'tuiMigrationInputRangeMaxLabel'; diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.ts index 9c78eefccf8b..d77f7a19936d 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-sliders/migrate-input-slider.ts @@ -1,13 +1,8 @@ -import { - addMethods, - createProject, - type DevkitFileSystem, - saveActiveProject, - setActiveProject, -} from 'ng-morph'; +import type {DevkitFileSystem} from 'ng-morph'; +import {addMethods, createProject, saveActiveProject, setActiveProject} from 'ng-morph'; import {ALL_FILES, ALL_TS_FILES} from '../../../../constants'; -import {type TuiSchema} from '../../../../ng-add/schema'; +import type {TuiSchema} from '../../../../ng-add/schema'; import {addUniqueImport} from '../../../../utils/add-unique-import'; import {getNgComponents} from '../../../../utils/angular/ng-component'; import {setupProgressLogger} from '../../../../utils/progress'; @@ -18,7 +13,7 @@ import { removeInputProperty, replaceInputProperty, } from '../../../../utils/templates/ng-component-input-manipulations'; -import {type TemplateResource} from '../../../interfaces/template-resource'; +import type {TemplateResource} from '../../../interfaces/template-resource'; const MIN_MAX_LABELS_MIGRATION_METHOD_NAME = 'tuiMigrationMinMaxLabel'; diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.ts index 4c5c185066c9..ad086db5ab43 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-taiga-proprietary-icons.ts @@ -1,13 +1,13 @@ -import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; +import type {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; import {updateWorkspace} from '@schematics/angular/utility/workspace'; import {getPackageJsonDependency, getSourceFiles} from 'ng-morph'; import {tuiIsString} from '../../../../utils/miscellaneous/is-string'; -import {type TuiSchema} from '../../../ng-add/schema'; +import type {TuiSchema} from '../../../ng-add/schema'; import {isInvalidAngularJson} from '../../../utils/angular-json-manipulations'; import {getProjectTargetOptions} from '../../../utils/get-project-target-options'; import {getProjects} from '../../../utils/get-projects'; -import {type Asset} from '../../interfaces/asset'; +import type {Asset} from '../../interfaces/asset'; const PROPRIETARY_TDS_ICON_ASSETS = { glob: '**/*', diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-templates.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-templates.ts index 0b7ab1cd86be..8d22e4cfaf59 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-templates.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-templates.ts @@ -1,8 +1,9 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {addProviderToComponent, type DevkitFileSystem} from 'ng-morph'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {DevkitFileSystem} from 'ng-morph'; +import {addProviderToComponent} from 'ng-morph'; import {ALL_TS_FILES} from '../../../constants'; -import {type TuiSchema} from '../../../ng-add/schema'; +import type {TuiSchema} from '../../../ng-add/schema'; import {addImportToClosestModule} from '../../../utils/add-import-to-closest-module'; import {addUniqueImport} from '../../../utils/add-unique-import'; import {getNgComponents} from '../../../utils/angular/ng-component'; @@ -28,7 +29,7 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {type TemplateResource} from '../../interfaces/template-resource'; +import type {TemplateResource} from '../../interfaces/template-resource'; import {removeInputs} from '../../utils/templates/remove-inputs'; import {replaceAttrValues} from '../../utils/templates/replace-attr-values'; import {replaceAttrs} from '../../utils/templates/replace-attrs'; diff --git a/projects/cdk/schematics/ng-update/v3/steps/migrate-textfield-controller.ts b/projects/cdk/schematics/ng-update/v3/steps/migrate-textfield-controller.ts index 9f12958fda8b..61fa580467b9 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/migrate-textfield-controller.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/migrate-textfield-controller.ts @@ -1,7 +1,7 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; import {arrayFlat} from 'ng-morph'; -import {type DevkitFileSystem} from 'ng-morph/project/classes/devkit-file-system'; -import {type Attribute, type Element} from 'parse5'; +import type {DevkitFileSystem} from 'ng-morph/project/classes/devkit-file-system'; +import type {Attribute, Element} from 'parse5'; import { findElementsByFn, @@ -13,7 +13,7 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../utils/templates/template-resource'; -import {type TemplateResource} from '../../interfaces/template-resource'; +import type {TemplateResource} from '../../interfaces/template-resource'; const TEXTFIELDS = [ 'tui-input', diff --git a/projects/cdk/schematics/ng-update/v3/steps/miscellaneous.ts b/projects/cdk/schematics/ng-update/v3/steps/miscellaneous.ts index 7db31919be53..c1cd64471445 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/miscellaneous.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/miscellaneous.ts @@ -1,6 +1,7 @@ -import {Node, SyntaxKind, type TypeReferenceNode} from 'ng-morph'; +import type {TypeReferenceNode} from 'ng-morph'; +import {Node, SyntaxKind} from 'ng-morph'; -import {type TuiSchema} from '../../../ng-add/schema'; +import type {TuiSchema} from '../../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, diff --git a/projects/cdk/schematics/ng-update/v3/steps/replace-functions.ts b/projects/cdk/schematics/ng-update/v3/steps/replace-functions.ts index e29292bdd233..b2eb9e19b696 100644 --- a/projects/cdk/schematics/ng-update/v3/steps/replace-functions.ts +++ b/projects/cdk/schematics/ng-update/v3/steps/replace-functions.ts @@ -1,6 +1,6 @@ import {Node} from 'ng-morph'; -import {type TuiSchema} from '../../../ng-add/schema'; +import type {TuiSchema} from '../../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-date-time.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-date-time.spec.ts index 96c6949bf33f..4da8e22b4a21 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-date-time.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-date-time.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-hints.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-hints.spec.ts index 95e00da5ee6e..4079ad4b7009 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-hints.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-hints.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-polymorpheus.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-polymorpheus.spec.ts index 51ba6d029bed..efc43d0eb23b 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-polymorpheus.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-polymorpheus.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-progress.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-progress.spec.ts index afbef751ba63..6448aa9c9fb6 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-progress.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-progress.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-sliders.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-sliders.spec.ts index 489371c96b3a..b17dbd25e1cb 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-sliders.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-sliders.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-tds.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-tds.spec.ts index 947bb9a65228..697c8c7a3c08 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-tds.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-tds.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-textfields.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-textfields.spec.ts index cc43064a6521..600fe10c8abf 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-textfields.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-migrate-textfields.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-miscellaneous.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-miscellaneous.spec.ts index 10773875bd3a..b5c0e13a76cf 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-miscellaneous.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-miscellaneous.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-rename-types.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-rename-types.spec.ts index f4732ba42982..04a1fc525205 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-rename-types.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-rename-types.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-consts.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-consts.spec.ts index 4b77012a1f64..bf4aa0399de1 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-consts.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-consts.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-deep-imports.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-deep-imports.spec.ts index 98d0e7f029ec..a95689bcf070 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-deep-imports.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-deep-imports.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-deprecated-functions.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-deprecated-functions.spec.ts index 9ba4e5c8d89d..62082759ae12 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-deprecated-functions.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-deprecated-functions.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-enums.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-enums.spec.ts index 607a4fe072e5..f5c9dda84f4d 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-enums.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-enums.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-functions.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-functions.spec.ts index c9ffc3eb673f..b35c3e2d2d19 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-functions.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-functions.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-html.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-html.spec.ts index 1d322c558e0c..7edf88807689 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-html.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-html.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-proprietary-consts.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-proprietary-consts.spec.ts index 7984307fcdcf..6bfeb95b90ff 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-proprietary-consts.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-proprietary-consts.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-services.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-services.spec.ts index e3529fef03a5..dee04410372c 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-services.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-services.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-styles.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-styles.spec.ts index bc4e4dc40b41..75ac02e0f0e8 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-styles.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-replace-styles.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-textfield-icon.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-textfield-icon.spec.ts index 0201dd843943..ac134addedbc 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-textfield-icon.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-textfield-icon.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v3/tests/schematic-warnings.spec.ts b/projects/cdk/schematics/ng-update/v3/tests/schematic-warnings.spec.ts index c49a13592592..9334a5a346ef 100644 --- a/projects/cdk/schematics/ng-update/v3/tests/schematic-warnings.spec.ts +++ b/projects/cdk/schematics/ng-update/v3/tests/schematic-warnings.spec.ts @@ -1,7 +1,7 @@ -import {type LogEntry} from '@angular-devkit/core/src/logger/logger'; +import type {LogEntry} from '@angular-devkit/core/src/logger/logger'; import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, @@ -10,7 +10,7 @@ import { setActiveProject, } from 'ng-morph'; import {join} from 'path'; -import {type Subscription} from 'rxjs'; +import type {Subscription} from 'rxjs'; import {createAngularJsonWithAssets} from '../../../utils/create-angular-json'; import {MIGRATION_WARNINGS} from '../constants/warnings'; diff --git a/projects/cdk/schematics/ng-update/v4/index.ts b/projects/cdk/schematics/ng-update/v4/index.ts index 8e2e7129bc4a..09ff1cb02ef1 100644 --- a/projects/cdk/schematics/ng-update/v4/index.ts +++ b/projects/cdk/schematics/ng-update/v4/index.ts @@ -1,15 +1,11 @@ -import { - chain, - type Rule, - type SchematicContext, - type Tree, -} from '@angular-devkit/schematics'; +import type {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; +import {chain} from '@angular-devkit/schematics'; import {createProject, saveActiveProject} from 'ng-morph'; import {performance} from 'perf_hooks'; import {ALL_FILES} from '../../constants'; import {TAIGA_VERSION} from '../../ng-add/constants/versions'; -import {type TuiSchema} from '../../ng-add/schema'; +import type {TuiSchema} from '../../ng-add/schema'; import {FINISH_SYMBOL, START_SYMBOL, titleLog} from '../../utils/colored-log'; import {getExecutionTime} from '../../utils/get-execution-time'; import {projectRoot} from '../../utils/project-root'; diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.ts index 4b7ed7c8af33..4354e367aef4 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/attr-to-directive-replace.ts @@ -1,4 +1,4 @@ -import {type ReplacementAttributeToDirective} from '../../../interfaces'; +import type {ReplacementAttributeToDirective} from '../../../interfaces'; export const ATTRS_TO_DIRECTIVE_REPLACE: ReplacementAttributeToDirective[] = [ { diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/attrs-to-replace.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/attrs-to-replace.ts index 62970fce55a9..1a11888091ec 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/attrs-to-replace.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/attrs-to-replace.ts @@ -1,4 +1,4 @@ -import {type ReplacementAttribute} from '../../../interfaces'; +import type {ReplacementAttribute} from '../../../interfaces'; export const ATTRS_TO_REPLACE: ReplacementAttribute[] = [ { diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/html-comments.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/html-comments.ts index f3e0ef5264ee..4e582302b901 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/html-comments.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/html-comments.ts @@ -1,4 +1,4 @@ -import {type HtmlComment} from '../../../interfaces'; +import type {HtmlComment} from '../../../interfaces'; export const HTML_COMMENTS: HtmlComment[] = [ { diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/identifiers-to-replace.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/identifiers-to-replace.ts index 0dbb887aad94..1cf199aa414a 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/identifiers-to-replace.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/identifiers-to-replace.ts @@ -1,4 +1,4 @@ -import {type ReplacementIdentifier} from '../../../interfaces'; +import type {ReplacementIdentifier} from '../../../interfaces'; export const IDENTIFIERS_TO_REPLACE: ReplacementIdentifier[] = [ { diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/inputs-to-remove.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/inputs-to-remove.ts index 63c5ea66876e..cf4fe84048d7 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/inputs-to-remove.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/inputs-to-remove.ts @@ -1,4 +1,4 @@ -import {type RemovableInput} from '../../../interfaces'; +import type {RemovableInput} from '../../../interfaces'; export const INPUTS_TO_REMOVE: RemovableInput[] = [ {inputName: 'active', tags: ['tui-card', 'tui-thumbnail-card']}, diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/migration-warnings.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/migration-warnings.ts index e3c757c728b4..f2f9cddbfdd5 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/migration-warnings.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/migration-warnings.ts @@ -1,4 +1,4 @@ -import {type MigrationWarning} from '../../../interfaces'; +import type {MigrationWarning} from '../../../interfaces'; export const MIGRATION_WARNINGS: MigrationWarning[] = [ { diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/modules-to-remove.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/modules-to-remove.ts index c17541f2e94b..0c8bb6e25a47 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/modules-to-remove.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/modules-to-remove.ts @@ -1,4 +1,4 @@ -import {type RemovedModule} from '../../../interfaces'; +import type {RemovedModule} from '../../../interfaces'; export const MODULES_TO_REMOVE: RemovedModule[] = [ { diff --git a/projects/cdk/schematics/ng-update/v4/steps/constants/tags-to-replace.ts b/projects/cdk/schematics/ng-update/v4/steps/constants/tags-to-replace.ts index 6e478787fd2d..c599d253b936 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/constants/tags-to-replace.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/constants/tags-to-replace.ts @@ -1,4 +1,4 @@ -import {type ReplacementTag} from '../../../interfaces'; +import type {ReplacementTag} from '../../../interfaces'; export const TAGS_TO_REPLACE: ReplacementTag[] = [ {from: 'tui-card', to: 'tui-thumbnail-card'}, diff --git a/projects/cdk/schematics/ng-update/v4/steps/migrate-legacy-mask.ts b/projects/cdk/schematics/ng-update/v4/steps/migrate-legacy-mask.ts index 1da2e6693502..e90481ac0c1f 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/migrate-legacy-mask.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/migrate-legacy-mask.ts @@ -10,7 +10,7 @@ import { } from '@taiga-ui/cdk/schematics'; import {Node} from 'ng-morph'; -import {type TuiSchema} from '../../../ng-add/schema'; +import type {TuiSchema} from '../../../ng-add/schema'; export function migrateLegacyMask(options: TuiSchema): void { !options['skip-logs'] && diff --git a/projects/cdk/schematics/ng-update/v4/steps/migrate-templates.ts b/projects/cdk/schematics/ng-update/v4/steps/migrate-templates.ts index d5569a8bf708..68b28e20854d 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/migrate-templates.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/migrate-templates.ts @@ -1,7 +1,7 @@ -import {type DevkitFileSystem, type UpdateRecorder} from 'ng-morph'; +import type {DevkitFileSystem, UpdateRecorder} from 'ng-morph'; import {ALL_TS_FILES} from '../../../constants'; -import {type TuiSchema} from '../../../ng-add/schema'; +import type {TuiSchema} from '../../../ng-add/schema'; import { infoLog, REPLACE_SYMBOL, @@ -12,7 +12,7 @@ import { import {setupProgressLogger} from '../../../utils/progress'; import {getComponentTemplates} from '../../../utils/templates/get-component-templates'; import {getPathFromTemplateResource} from '../../../utils/templates/template-resource'; -import {type TemplateResource} from '../../interfaces/template-resource'; +import type {TemplateResource} from '../../interfaces/template-resource'; import { addHTMLCommentTags, removeInputs, diff --git a/projects/cdk/schematics/ng-update/v4/steps/restore-tui-mapper.ts b/projects/cdk/schematics/ng-update/v4/steps/restore-tui-mapper.ts index 0ab6e143dcc4..eea92f9b872b 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/restore-tui-mapper.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/restore-tui-mapper.ts @@ -1,6 +1,6 @@ import {Node} from 'ng-morph'; -import {type TuiSchema} from '../../../ng-add/schema'; +import type {TuiSchema} from '../../../ng-add/schema'; import { FINISH_SYMBOL, infoLog, diff --git a/projects/cdk/schematics/ng-update/v4/steps/restore-tui-matcher.ts b/projects/cdk/schematics/ng-update/v4/steps/restore-tui-matcher.ts index bbdf58a443ca..07bc4fd7865a 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/restore-tui-matcher.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/restore-tui-matcher.ts @@ -1,6 +1,6 @@ import {Node} from 'ng-morph'; -import {type TuiSchema} from '../../../ng-add/schema'; +import type {TuiSchema} from '../../../ng-add/schema'; import { FINISH_SYMBOL, infoLog, diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-avatar.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-avatar.ts index c58859411725..2b6e672de230 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-avatar.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-avatar.ts @@ -1,6 +1,6 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {type DevkitFileSystem} from 'ng-morph'; -import {type Attribute} from 'parse5'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {DevkitFileSystem} from 'ng-morph'; +import type {Attribute} from 'parse5'; import {addImportToClosestModule} from '../../../../utils/add-import-to-closest-module'; import {findElementsByTagName} from '../../../../utils/templates/elements'; @@ -8,7 +8,7 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../../utils/templates/template-resource'; -import {type TemplateResource} from '../../../interfaces'; +import type {TemplateResource} from '../../../interfaces'; import {removeAttrs} from '../utils/remove-attrs'; function addModules( diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-badge.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-badge.ts index 65b7b5ec7580..b208d104cae1 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-badge.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-badge.ts @@ -1,13 +1,13 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {type DevkitFileSystem} from 'ng-morph'; -import {type Attribute, type Element, type ElementLocation} from 'parse5'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {DevkitFileSystem} from 'ng-morph'; +import type {Attribute, Element, ElementLocation} from 'parse5'; import {findElementsByTagName} from '../../../../utils/templates/elements'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../../utils/templates/template-resource'; -import {type TemplateResource} from '../../../interfaces'; +import type {TemplateResource} from '../../../interfaces'; export function migrateBadge({ resource, diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-badged-content.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-badged-content.ts index eed2903ace27..39c127fa34dd 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-badged-content.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-badged-content.ts @@ -1,14 +1,14 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; import {findAttr} from '@taiga-ui/cdk/schematics/utils/templates/inputs'; -import {type DevkitFileSystem} from 'ng-morph'; -import {type Attribute, type ElementLocation} from 'parse5'; +import type {DevkitFileSystem} from 'ng-morph'; +import type {Attribute, ElementLocation} from 'parse5'; import {findElementsByTagName} from '../../../../utils/templates/elements'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../../utils/templates/template-resource'; -import {type TemplateResource} from '../../../interfaces'; +import type {TemplateResource} from '../../../interfaces'; import {removeAttrs} from '../utils/remove-attrs'; export function migrateBadgedContent({ diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-expandable.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-expandable.ts index c2eee15d1c0e..4d534e8089a1 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-expandable.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-expandable.ts @@ -1,12 +1,12 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {type DevkitFileSystem} from 'ng-morph'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {DevkitFileSystem} from 'ng-morph'; import {findElementsWithAttributeOnTag} from '../../../../utils/templates/elements'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../../utils/templates/template-resource'; -import {type TemplateResource} from '../../../interfaces'; +import type {TemplateResource} from '../../../interfaces'; export function migrateExpandable({ resource, diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-money.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-money.ts index f4e3f381892a..0dda9117a1d7 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-money.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-money.ts @@ -1,7 +1,7 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; import {tuiCleanObject} from '@taiga-ui/cdk'; import {addImportToClosestModule} from '@taiga-ui/cdk/schematics'; -import {type TemplateResource} from '@taiga-ui/cdk/schematics/ng-update/interfaces'; +import type {TemplateResource} from '@taiga-ui/cdk/schematics/ng-update/interfaces'; import {removeAttrs} from '@taiga-ui/cdk/schematics/ng-update/v4/steps/utils/remove-attrs'; import {findElementsByTagName} from '@taiga-ui/cdk/schematics/utils/templates/elements'; import {findAttr, isBinding} from '@taiga-ui/cdk/schematics/utils/templates/inputs'; @@ -9,8 +9,8 @@ import { getTemplateFromTemplateResource, getTemplateOffset, } from '@taiga-ui/cdk/schematics/utils/templates/template-resource'; -import {type DevkitFileSystem} from 'ng-morph'; -import {type Attribute} from 'parse5'; +import type {DevkitFileSystem} from 'ng-morph'; +import type {Attribute} from 'parse5'; export function migrateMoney({ resource, diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-prevent-default.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-prevent-default.ts index 26ae464ad966..665e32baf362 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-prevent-default.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/migrate-prevent-default.ts @@ -1,12 +1,12 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {type TemplateResource} from '@taiga-ui/cdk/schematics/ng-update/interfaces'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {TemplateResource} from '@taiga-ui/cdk/schematics/ng-update/interfaces'; import {findElementsWithAttribute} from '@taiga-ui/cdk/schematics/utils/templates/elements'; import {findAttr} from '@taiga-ui/cdk/schematics/utils/templates/inputs'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '@taiga-ui/cdk/schematics/utils/templates/template-resource'; -import {type DevkitFileSystem} from 'ng-morph'; +import type {DevkitFileSystem} from 'ng-morph'; export function migratePreventDefault({ resource, diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/common.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/common.ts index 99ab8c49a666..84359031d9f9 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/common.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/common.ts @@ -1,5 +1,5 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {type Attribute, type ElementLocation} from 'parse5'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {Attribute, ElementLocation} from 'parse5'; const sizeMap: Record = { l: 'm', diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.ts index b45a7b970d5b..7e34c7319d64 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-checkbox.ts @@ -1,12 +1,12 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {type DevkitFileSystem} from 'ng-morph'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {DevkitFileSystem} from 'ng-morph'; import {findElementsByTagName} from '../../../../../utils/templates/elements'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../../../utils/templates/template-resource'; -import {type TemplateResource} from '../../../../interfaces'; +import type {TemplateResource} from '../../../../interfaces'; import {closeStartTag, removeClosingTag, replaceOpenTag, replaceSizeAttr} from './common'; export function migrateCheckbox({ diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.ts index 00c6d90d57ba..9f6c9a444347 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-radio.ts @@ -1,12 +1,12 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {type DevkitFileSystem} from 'ng-morph'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {DevkitFileSystem} from 'ng-morph'; import {findElementsByTagName} from '../../../../../utils/templates/elements'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../../../utils/templates/template-resource'; -import {type TemplateResource} from '../../../../interfaces'; +import type {TemplateResource} from '../../../../interfaces'; import {closeStartTag, removeClosingTag, replaceOpenTag, replaceSizeAttr} from './common'; export function migrateRadio({ diff --git a/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.ts b/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.ts index 08e02d57d025..236e47074781 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/templates/toggles/migrate-toggle.ts @@ -1,12 +1,12 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {type DevkitFileSystem} from 'ng-morph'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {DevkitFileSystem} from 'ng-morph'; import {findElementsByTagName} from '../../../../../utils/templates/elements'; import { getTemplateFromTemplateResource, getTemplateOffset, } from '../../../../../utils/templates/template-resource'; -import {type TemplateResource} from '../../../../interfaces'; +import type {TemplateResource} from '../../../../interfaces'; import {closeStartTag, removeClosingTag, replaceOpenTag, replaceSizeAttr} from './common'; export function migrateToggle({ diff --git a/projects/cdk/schematics/ng-update/v4/steps/utils/remove-attrs.ts b/projects/cdk/schematics/ng-update/v4/steps/utils/remove-attrs.ts index f31304f5d6a8..3d03990e219e 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/utils/remove-attrs.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/utils/remove-attrs.ts @@ -1,5 +1,5 @@ -import {type UpdateRecorder} from '@angular-devkit/schematics'; -import {type Attribute, type ElementLocation} from 'parse5'; +import type {UpdateRecorder} from '@angular-devkit/schematics'; +import type {Attribute, ElementLocation} from 'parse5'; export function removeAttrs( attrs: Attribute[], diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-avatar.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-avatar.spec.ts index edeb33cf8013..ef13dda4c239 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-avatar.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-avatar.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-badge.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-badge.spec.ts index 11786ab49d62..fa74b2641bc1 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-badge.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-badge.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-badged-content.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-badged-content.spec.ts index 128233907034..1f1c455b136d 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-badged-content.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-badged-content.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-checkbox.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-checkbox.spec.ts index 0eff0caf4e27..fa2c14ad6d4d 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-checkbox.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-checkbox.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-expandable.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-expandable.spec.ts index dc9d9aea9319..485a16a32f93 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-expandable.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-expandable.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-input-count.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-input-count.spec.ts index b0ebefa5fb21..a05e28f2f442 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-input-count.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-input-count.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-legacy-mask.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-legacy-mask.spec.ts index fd49d5b82292..40da4ab8806c 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-legacy-mask.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-legacy-mask.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-money.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-money.spec.ts index 417965915493..b73611c71d0d 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-money.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-money.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-prevent-default.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-prevent-default.spec.ts index 8377c96bbea2..c13710f4ccb2 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-prevent-default.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-prevent-default.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-radio.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-radio.spec.ts index 56ce9fc1ad16..4343789967b8 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-radio.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-radio.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-restore-tui-mapper.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-restore-tui-mapper.spec.ts index 75a462948119..520950d83103 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-restore-tui-mapper.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-restore-tui-mapper.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-restore-tui-matcher.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-restore-tui-matcher.spec.ts index 6b1db6eb8c4b..6b1692975a2a 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-restore-tui-matcher.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-restore-tui-matcher.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-thumbnail-card.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-thumbnail-card.spec.ts index 0951f6a73f70..e07947801e81 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-thumbnail-card.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-thumbnail-card.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-toggle.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-toggle.spec.ts index ce07f25860d3..7531acac1e6d 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-toggle.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-migrate-toggle.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/ng-update/v4/tests/schematic-textfield-controller.spec.ts b/projects/cdk/schematics/ng-update/v4/tests/schematic-textfield-controller.spec.ts index c259fbc62093..decb7abe7f82 100644 --- a/projects/cdk/schematics/ng-update/v4/tests/schematic-textfield-controller.spec.ts +++ b/projects/cdk/schematics/ng-update/v4/tests/schematic-textfield-controller.spec.ts @@ -1,6 +1,6 @@ import {HostTree} from '@angular-devkit/schematics'; import {SchematicTestRunner, UnitTestTree} from '@angular-devkit/schematics/testing'; -import {type TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; +import type {TuiSchema} from '@taiga-ui/cdk/schematics/ng-add/schema'; import { createProject, createSourceFile, diff --git a/projects/cdk/schematics/utils/angular-json-manipulations.ts b/projects/cdk/schematics/utils/angular-json-manipulations.ts index 330d6ef004be..3fbdca5baa8c 100644 --- a/projects/cdk/schematics/utils/angular-json-manipulations.ts +++ b/projects/cdk/schematics/utils/angular-json-manipulations.ts @@ -1,13 +1,13 @@ -import {type JsonArray} from '@angular-devkit/core'; -import {type Rule, type SchematicContext, type Tree} from '@angular-devkit/schematics'; +import type {JsonArray} from '@angular-devkit/core'; +import type {Rule, SchematicContext, Tree} from '@angular-devkit/schematics'; import {NodePackageInstallTask} from '@angular-devkit/schematics/tasks'; import {getWorkspace, updateWorkspace} from '@schematics/angular/utility/workspace'; import {addPackageJsonDependency} from 'ng-morph'; import {tuiIsString} from '../../utils/miscellaneous/is-string'; import {TAIGA_VERSION} from '../ng-add/constants/versions'; -import {type TuiSchema} from '../ng-add/schema'; -import {type Asset} from '../ng-update/interfaces/asset'; +import type {TuiSchema} from '../ng-add/schema'; +import type {Asset} from '../ng-update/interfaces/asset'; import {getProjectTargetOptions} from './get-project-target-options'; import {getProjects} from './get-projects'; diff --git a/projects/cdk/schematics/utils/angular/is-standalone-component.ts b/projects/cdk/schematics/utils/angular/is-standalone-component.ts index a1b2e87babe4..26e6d7caa9a7 100644 --- a/projects/cdk/schematics/utils/angular/is-standalone-component.ts +++ b/projects/cdk/schematics/utils/angular/is-standalone-component.ts @@ -1,4 +1,5 @@ -import {type ClassDeclaration, Node} from 'ng-morph'; +import type {ClassDeclaration} from 'ng-morph'; +import {Node} from 'ng-morph'; // TODO: add to ng-morph export function isStandaloneComponent(component: ClassDeclaration): boolean { diff --git a/projects/cdk/schematics/utils/angular/ng-component.ts b/projects/cdk/schematics/utils/angular/ng-component.ts index 76dae91297e0..3d94b8bd4d6c 100644 --- a/projects/cdk/schematics/utils/angular/ng-component.ts +++ b/projects/cdk/schematics/utils/angular/ng-component.ts @@ -1,10 +1,5 @@ -import { - type ClassDeclaration, - getClasses, - type Pattern, - type Query, - type StructureType, -} from 'ng-morph'; +import type {ClassDeclaration, Pattern, Query, StructureType} from 'ng-morph'; +import {getClasses} from 'ng-morph'; export function getNgComponents( pattern: Pattern, diff --git a/projects/cdk/schematics/utils/angular/ng-module.ts b/projects/cdk/schematics/utils/angular/ng-module.ts index cb7416286116..29681819ea21 100644 --- a/projects/cdk/schematics/utils/angular/ng-module.ts +++ b/projects/cdk/schematics/utils/angular/ng-module.ts @@ -1,11 +1,5 @@ -import { - type ClassDeclaration, - getClasses, - getImports, - type Pattern, - type Query, - type StructureType, -} from 'ng-morph'; +import type {ClassDeclaration, Pattern, Query, StructureType} from 'ng-morph'; +import {getClasses, getImports} from 'ng-morph'; import {ALL_TS_FILES} from '../../constants'; diff --git a/projects/cdk/schematics/utils/get-component-from-identifier.ts b/projects/cdk/schematics/utils/get-component-from-identifier.ts index abc1fa1bd79c..b4603319bd4f 100644 --- a/projects/cdk/schematics/utils/get-component-from-identifier.ts +++ b/projects/cdk/schematics/utils/get-component-from-identifier.ts @@ -1,4 +1,5 @@ -import {type ClassDeclaration, getImports, type Node} from 'ng-morph'; +import type {ClassDeclaration, Node} from 'ng-morph'; +import {getImports} from 'ng-morph'; import {getNgComponents} from './angular/ng-component'; diff --git a/projects/cdk/schematics/utils/get-named-import-references.ts b/projects/cdk/schematics/utils/get-named-import-references.ts index 9ddf376f5f41..9dbfcbbb8cc9 100644 --- a/projects/cdk/schematics/utils/get-named-import-references.ts +++ b/projects/cdk/schematics/utils/get-named-import-references.ts @@ -1,4 +1,5 @@ -import {arrayFlat, getImports, type Node} from 'ng-morph'; +import type {Node} from 'ng-morph'; +import {arrayFlat, getImports} from 'ng-morph'; import {ALL_TS_FILES} from '../constants'; diff --git a/projects/cdk/schematics/utils/get-project-target-options.ts b/projects/cdk/schematics/utils/get-project-target-options.ts index 961095eb6467..1a258967b53f 100644 --- a/projects/cdk/schematics/utils/get-project-target-options.ts +++ b/projects/cdk/schematics/utils/get-project-target-options.ts @@ -1,4 +1,4 @@ -import {type JsonArray, type JsonObject, type workspaces} from '@angular-devkit/core'; +import type {JsonArray, JsonObject, workspaces} from '@angular-devkit/core'; import {SchematicsException} from '@angular-devkit/schematics'; export function getProjectTargetOptions( diff --git a/projects/cdk/schematics/utils/get-projects.ts b/projects/cdk/schematics/utils/get-projects.ts index 3ee799149c56..94fa13884f58 100644 --- a/projects/cdk/schematics/utils/get-projects.ts +++ b/projects/cdk/schematics/utils/get-projects.ts @@ -1,6 +1,6 @@ -import {type workspaces} from '@angular-devkit/core'; +import type {workspaces} from '@angular-devkit/core'; -import {type TuiSchema} from '../ng-add/schema'; +import type {TuiSchema} from '../ng-add/schema'; export function getProjects( options: TuiSchema, diff --git a/projects/cdk/schematics/utils/get-standalone-bootstrap-function.ts b/projects/cdk/schematics/utils/get-standalone-bootstrap-function.ts index 7b0fbbec484f..0213c679d3ff 100644 --- a/projects/cdk/schematics/utils/get-standalone-bootstrap-function.ts +++ b/projects/cdk/schematics/utils/get-standalone-bootstrap-function.ts @@ -1,4 +1,5 @@ -import {type CallExpression, Node} from 'ng-morph'; +import type {CallExpression} from 'ng-morph'; +import {Node} from 'ng-morph'; import {getNamedImportReferences} from './get-named-import-references'; diff --git a/projects/cdk/schematics/utils/import-manipulations.ts b/projects/cdk/schematics/utils/import-manipulations.ts index 219bbcd75ae5..9876f33b096c 100644 --- a/projects/cdk/schematics/utils/import-manipulations.ts +++ b/projects/cdk/schematics/utils/import-manipulations.ts @@ -1,4 +1,4 @@ -import {type ImportSpecifier} from 'ng-morph'; +import type {ImportSpecifier} from 'ng-morph'; export function removeImport(specifier: ImportSpecifier): void { if (specifier.getImportDeclaration().getNamedImports().length === 1) { diff --git a/projects/cdk/schematics/utils/insert-todo.ts b/projects/cdk/schematics/utils/insert-todo.ts index 1332b461b91e..f7a803eaf4ea 100644 --- a/projects/cdk/schematics/utils/insert-todo.ts +++ b/projects/cdk/schematics/utils/insert-todo.ts @@ -1,4 +1,4 @@ -import {type Identifier} from 'ng-morph'; +import type {Identifier} from 'ng-morph'; export const TODO_MARK = 'TODO: (Taiga UI migration)'; diff --git a/projects/cdk/schematics/utils/push-to-array-property.ts b/projects/cdk/schematics/utils/push-to-array-property.ts index 5a78925a4242..ca9a86745a46 100644 --- a/projects/cdk/schematics/utils/push-to-array-property.ts +++ b/projects/cdk/schematics/utils/push-to-array-property.ts @@ -1,4 +1,5 @@ -import {Node, type ObjectLiteralExpression} from 'ng-morph'; +import type {ObjectLiteralExpression} from 'ng-morph'; +import {Node} from 'ng-morph'; export function pushToObjectArrayProperty( objectExpression: ObjectLiteralExpression, diff --git a/projects/cdk/schematics/utils/templates/elements.ts b/projects/cdk/schematics/utils/templates/elements.ts index 8127871557f5..bfd47109d8bd 100644 --- a/projects/cdk/schematics/utils/templates/elements.ts +++ b/projects/cdk/schematics/utils/templates/elements.ts @@ -1,5 +1,6 @@ import {ALWAYS_TRUE_HANDLER} from '@taiga-ui/cdk'; -import {type ChildNode, type Element, parseFragment} from 'parse5'; +import type {ChildNode, Element} from 'parse5'; +import {parseFragment} from 'parse5'; export function findElementsByFn( nodes: ChildNode[], diff --git a/projects/cdk/schematics/utils/templates/get-component-templates.ts b/projects/cdk/schematics/utils/templates/get-component-templates.ts index ae83da287f22..610f4e36023a 100644 --- a/projects/cdk/schematics/utils/templates/get-component-templates.ts +++ b/projects/cdk/schematics/utils/templates/get-component-templates.ts @@ -1,16 +1,16 @@ -import { - type ClassDeclaration, - type Decorator, - getClasses, - type ObjectLiteralExpression, - type Pattern, - type PropertyAssignment, - type Query, - type StructureType, +import type { + ClassDeclaration, + Decorator, + ObjectLiteralExpression, + Pattern, + PropertyAssignment, + Query, + StructureType, } from 'ng-morph'; +import {getClasses} from 'ng-morph'; import * as path from 'path'; -import {type TemplateResource} from '../../ng-update/interfaces/template-resource'; +import type {TemplateResource} from '../../ng-update/interfaces/template-resource'; function decoratorToTemplateResource(decorator: Decorator): TemplateResource | null { const [metadata] = decorator.getArguments() as ObjectLiteralExpression[]; diff --git a/projects/cdk/schematics/utils/templates/inputs.ts b/projects/cdk/schematics/utils/templates/inputs.ts index 3c8a27f329a1..0f6cbacccc4e 100644 --- a/projects/cdk/schematics/utils/templates/inputs.ts +++ b/projects/cdk/schematics/utils/templates/inputs.ts @@ -1,4 +1,4 @@ -import {type Attribute} from 'parse5'; +import type {Attribute} from 'parse5'; export function findAttr(attrs: Attribute[], name: string): Attribute | undefined { return attrs.find(attr => attr.name === name || attr.name === `[${name}]`); diff --git a/projects/cdk/schematics/utils/templates/ng-component-input-manipulations.ts b/projects/cdk/schematics/utils/templates/ng-component-input-manipulations.ts index da64e1b79839..5ddfbfe9b98c 100644 --- a/projects/cdk/schematics/utils/templates/ng-component-input-manipulations.ts +++ b/projects/cdk/schematics/utils/templates/ng-component-input-manipulations.ts @@ -1,7 +1,7 @@ -import {type DevkitFileSystem} from 'ng-morph/project/classes/devkit-file-system'; -import {type Element} from 'parse5'; +import type {DevkitFileSystem} from 'ng-morph/project/classes/devkit-file-system'; +import type {Element} from 'parse5'; -import {type TemplateResource} from '../../ng-update/interfaces/template-resource'; +import type {TemplateResource} from '../../ng-update/interfaces/template-resource'; import {addImportToClosestModule} from '../add-import-to-closest-module'; import { findAttributeOnElementWithAttrs, diff --git a/projects/cdk/schematics/utils/templates/template-resource.ts b/projects/cdk/schematics/utils/templates/template-resource.ts index a2f26f638020..96d7792f4c0f 100644 --- a/projects/cdk/schematics/utils/templates/template-resource.ts +++ b/projects/cdk/schematics/utils/templates/template-resource.ts @@ -1,6 +1,6 @@ -import {type DevkitFileSystem} from 'ng-morph'; +import type {DevkitFileSystem} from 'ng-morph'; -import {type TemplateResource} from '../../ng-update/interfaces/template-resource'; +import type {TemplateResource} from '../../ng-update/interfaces/template-resource'; export function getTemplateFromTemplateResource( templateRes: TemplateResource, diff --git a/projects/cdk/services/destroy.service.ts b/projects/cdk/services/destroy.service.ts index da864ee9ecaf..0279a7ff2cc6 100644 --- a/projects/cdk/services/destroy.service.ts +++ b/projects/cdk/services/destroy.service.ts @@ -1,4 +1,5 @@ -import {Injectable, type OnDestroy} from '@angular/core'; +import type {OnDestroy} from '@angular/core'; +import {Injectable} from '@angular/core'; import {ReplaySubject} from 'rxjs'; /** diff --git a/projects/cdk/services/directive-styles.service.ts b/projects/cdk/services/directive-styles.service.ts index 175cd1a59aa8..c250e9add53b 100644 --- a/projects/cdk/services/directive-styles.service.ts +++ b/projects/cdk/services/directive-styles.service.ts @@ -1,3 +1,4 @@ +import type {OnDestroy, Type} from '@angular/core'; import { ComponentFactoryResolver, createComponent, @@ -5,8 +6,6 @@ import { inject, Injectable, INJECTOR, - type OnDestroy, - type Type, } from '@angular/core'; // TODO: Add cleanup with DestroyRef in Angular 16+ and replace service with just a map from a token diff --git a/projects/cdk/services/popover.service.ts b/projects/cdk/services/popover.service.ts index 0ee75e89427e..2b03cf648ecc 100644 --- a/projects/cdk/services/popover.service.ts +++ b/projects/cdk/services/popover.service.ts @@ -1,13 +1,10 @@ -import { - inject, - Injectable, - type Provider, - type ProviderToken, - type Type, -} from '@angular/core'; -import {type TuiContext} from '@taiga-ui/cdk/interfaces'; -import {PolymorpheusComponent, type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {type BehaviorSubject, Observable, type Observer} from 'rxjs'; +import type {Provider, ProviderToken, Type} from '@angular/core'; +import {inject, Injectable} from '@angular/core'; +import type {TuiContext} from '@taiga-ui/cdk/interfaces'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; +import type {BehaviorSubject, Observer} from 'rxjs'; +import {Observable} from 'rxjs'; import {TuiIdService} from './id.service'; diff --git a/projects/cdk/services/scroll.service.ts b/projects/cdk/services/scroll.service.ts index 57e23635ef53..bfee7160f119 100644 --- a/projects/cdk/services/scroll.service.ts +++ b/projects/cdk/services/scroll.service.ts @@ -4,17 +4,8 @@ import {ANIMATION_FRAME, PERFORMANCE} from '@ng-web-apis/common'; import {tuiAssert} from '@taiga-ui/cdk/classes'; import {tuiClamp} from '@taiga-ui/cdk/utils/math'; import {tuiEaseInOutQuad} from '@taiga-ui/cdk/utils/miscellaneous'; -import { - defer, - endWith, - map, - type Observable, - of, - switchMap, - takeUntil, - tap, - timer, -} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {defer, endWith, map, of, switchMap, takeUntil, tap, timer} from 'rxjs'; const SCROLL_TIME = 300; diff --git a/projects/cdk/services/static-request.service.ts b/projects/cdk/services/static-request.service.ts index 8a20ef25216b..a05c360ea509 100644 --- a/projects/cdk/services/static-request.service.ts +++ b/projects/cdk/services/static-request.service.ts @@ -1,7 +1,8 @@ import {isPlatformServer} from '@angular/common'; import {inject, Injectable, PLATFORM_ID} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; -import {defer, from, type Observable, shareReplay, switchMap} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {defer, from, shareReplay, switchMap} from 'rxjs'; import {fromFetch} from 'rxjs/fetch'; @Injectable({ diff --git a/projects/cdk/services/swipe.service.ts b/projects/cdk/services/swipe.service.ts index 8ef2a2bf1f4e..2bd532e10397 100644 --- a/projects/cdk/services/swipe.service.ts +++ b/projects/cdk/services/swipe.service.ts @@ -1,6 +1,6 @@ import {DOCUMENT} from '@angular/common'; import {ElementRef, inject, Injectable} from '@angular/core'; -import {type TuiSwipe} from '@taiga-ui/cdk/interfaces'; +import type {TuiSwipe} from '@taiga-ui/cdk/interfaces'; import {tuiTypedFromEvent} from '@taiga-ui/cdk/observables'; import {TUI_SWIPE_OPTIONS} from '@taiga-ui/cdk/tokens'; import {tuiGetSwipeDirection, tuiIsPresent} from '@taiga-ui/cdk/utils/miscellaneous'; diff --git a/projects/cdk/services/test/destroy.service.spec.ts b/projects/cdk/services/test/destroy.service.spec.ts index 8808b7ca9c1c..bb4eb6b3eba9 100644 --- a/projects/cdk/services/test/destroy.service.spec.ts +++ b/projects/cdk/services/test/destroy.service.spec.ts @@ -1,5 +1,6 @@ import {TuiDestroyService} from '@taiga-ui/cdk'; -import {finalize, type Observable, of, takeUntil, timer} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {finalize, of, takeUntil, timer} from 'rxjs'; describe('TuiDestroy service', () => { let service: TuiDestroyService; diff --git a/projects/cdk/services/zoom.service.ts b/projects/cdk/services/zoom.service.ts index e343aa1b2fc5..e81b91343062 100644 --- a/projects/cdk/services/zoom.service.ts +++ b/projects/cdk/services/zoom.service.ts @@ -1,5 +1,5 @@ import {ElementRef, inject, Injectable} from '@angular/core'; -import {type TuiZoom} from '@taiga-ui/cdk/interfaces'; +import type {TuiZoom} from '@taiga-ui/cdk/interfaces'; import {tuiPreventDefault, tuiTypedFromEvent} from '@taiga-ui/cdk/observables'; import {TUI_ZOOM_OPTIONS} from '@taiga-ui/cdk/tokens'; import {tuiDistanceBetweenTouches} from '@taiga-ui/cdk/utils'; diff --git a/projects/cdk/tokens/active-element.ts b/projects/cdk/tokens/active-element.ts index 18c90dee95a4..b785108bd6d8 100644 --- a/projects/cdk/tokens/active-element.ts +++ b/projects/cdk/tokens/active-element.ts @@ -7,12 +7,12 @@ import { tuiGetActualTarget, tuiGetDocumentOrShadowRoot, } from '@taiga-ui/cdk/utils'; +import type {Observable} from 'rxjs'; import { distinctUntilChanged, filter, map, merge, - type Observable, of, repeatWhen, share, diff --git a/projects/cdk/tokens/default-renderer.ts b/projects/cdk/tokens/default-renderer.ts index 67b633f82943..b38b373d53a3 100644 --- a/projects/cdk/tokens/default-renderer.ts +++ b/projects/cdk/tokens/default-renderer.ts @@ -1,4 +1,5 @@ -import {inject, type Renderer2, RendererFactory2} from '@angular/core'; +import type {Renderer2} from '@angular/core'; +import {inject, RendererFactory2} from '@angular/core'; import {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils'; /** diff --git a/projects/cdk/tokens/focusable-item-accessor.ts b/projects/cdk/tokens/focusable-item-accessor.ts index 59a096053ac3..f35873e52fad 100644 --- a/projects/cdk/tokens/focusable-item-accessor.ts +++ b/projects/cdk/tokens/focusable-item-accessor.ts @@ -1,5 +1,6 @@ -import {InjectionToken, type Provider, type Type} from '@angular/core'; -import {type TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces'; +import type {Provider, Type} from '@angular/core'; +import {InjectionToken} from '@angular/core'; +import type {TuiFocusableElementAccessor} from '@taiga-ui/cdk/interfaces'; /** * A component that can be focused diff --git a/projects/cdk/tokens/fonts-ready.ts b/projects/cdk/tokens/fonts-ready.ts index 1dd78842e9a2..e2c2f8b9294e 100644 --- a/projects/cdk/tokens/fonts-ready.ts +++ b/projects/cdk/tokens/fonts-ready.ts @@ -1,6 +1,7 @@ import {DOCUMENT} from '@angular/common'; import {inject, InjectionToken} from '@angular/core'; -import {EMPTY, from, type Observable, shareReplay} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {EMPTY, from, shareReplay} from 'rxjs'; export const TUI_FONTS_READY = new InjectionToken>( '[TUI_FONTS_READY]', diff --git a/projects/cdk/tokens/platform.ts b/projects/cdk/tokens/platform.ts index 8dca4c13d9a9..30b8dc6c1d68 100644 --- a/projects/cdk/tokens/platform.ts +++ b/projects/cdk/tokens/platform.ts @@ -1,5 +1,5 @@ import {inject} from '@angular/core'; -import {type TuiPlatform} from '@taiga-ui/cdk/types'; +import type {TuiPlatform} from '@taiga-ui/cdk/types'; import {tuiCreateTokenFromFactory} from '@taiga-ui/cdk/utils'; import {TUI_IS_ANDROID} from './is-android'; diff --git a/projects/cdk/tokens/swipe-options.ts b/projects/cdk/tokens/swipe-options.ts index c376c2c91f29..ac0f2cc044fd 100644 --- a/projects/cdk/tokens/swipe-options.ts +++ b/projects/cdk/tokens/swipe-options.ts @@ -1,4 +1,4 @@ -import {type TuiSwipeOptions} from '@taiga-ui/cdk/interfaces'; +import type {TuiSwipeOptions} from '@taiga-ui/cdk/interfaces'; import {tuiCreateToken} from '@taiga-ui/cdk/utils'; /** diff --git a/projects/cdk/tokens/window-size.ts b/projects/cdk/tokens/window-size.ts index c117a441bf65..befe8de0f978 100644 --- a/projects/cdk/tokens/window-size.ts +++ b/projects/cdk/tokens/window-size.ts @@ -1,7 +1,8 @@ import {inject, InjectionToken} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; import {tuiTypedFromEvent} from '@taiga-ui/cdk/observables'; -import {map, type Observable, shareReplay, startWith} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map, shareReplay, startWith} from 'rxjs'; export const TUI_WINDOW_SIZE = new InjectionToken>( '[TUI_WINDOW_SIZE]', diff --git a/projects/cdk/tokens/zoom-options.ts b/projects/cdk/tokens/zoom-options.ts index 24ce410f4d3a..aeb7018c2664 100644 --- a/projects/cdk/tokens/zoom-options.ts +++ b/projects/cdk/tokens/zoom-options.ts @@ -1,4 +1,4 @@ -import {type TuiZoomOptions} from '@taiga-ui/cdk/interfaces'; +import type {TuiZoomOptions} from '@taiga-ui/cdk/interfaces'; import {tuiCreateToken} from '@taiga-ui/cdk/utils'; /** diff --git a/projects/cdk/types/matcher.ts b/projects/cdk/types/matcher.ts index 812b67a1bc55..23763e92cf2c 100644 --- a/projects/cdk/types/matcher.ts +++ b/projects/cdk/types/matcher.ts @@ -1,5 +1,5 @@ -import {type TuiStringHandler} from './handler'; -import {type TuiMapper, type TuiTypedMapper} from './mapper'; +import type {TuiStringHandler} from './handler'; +import type {TuiMapper, TuiTypedMapper} from './mapper'; /** * A matcher function to test items against with extra arguments. diff --git a/projects/cdk/utils/math/round-with.ts b/projects/cdk/utils/math/round-with.ts index 1fa413c35544..5b5e66573d54 100644 --- a/projects/cdk/utils/math/round-with.ts +++ b/projects/cdk/utils/math/round-with.ts @@ -1,4 +1,4 @@ -import {type TuiRounding} from '@taiga-ui/cdk/types'; +import type {TuiRounding} from '@taiga-ui/cdk/types'; import {tuiCeil, tuiFloor, tuiRound, tuiTrunc} from './round'; diff --git a/projects/cdk/utils/miscellaneous/clean-object.ts b/projects/cdk/utils/miscellaneous/clean-object.ts index dfe61e39bbc4..7b3b7e81a7f4 100644 --- a/projects/cdk/utils/miscellaneous/clean-object.ts +++ b/projects/cdk/utils/miscellaneous/clean-object.ts @@ -1,4 +1,4 @@ -import {type TuiDeepPartial} from '@taiga-ui/cdk/types'; +import type {TuiDeepPartial} from '@taiga-ui/cdk/types'; import {tuiIsString} from './is-string'; diff --git a/projects/cdk/utils/miscellaneous/create-options.ts b/projects/cdk/utils/miscellaneous/create-options.ts index b983e52023e6..619970aa7dd2 100644 --- a/projects/cdk/utils/miscellaneous/create-options.ts +++ b/projects/cdk/utils/miscellaneous/create-options.ts @@ -1,4 +1,4 @@ -import {type InjectionToken} from '@angular/core'; +import type {InjectionToken} from '@angular/core'; import {tuiCreateTokenFromFactory} from './create-token'; diff --git a/projects/cdk/utils/miscellaneous/get-original-array-from-query-list.ts b/projects/cdk/utils/miscellaneous/get-original-array-from-query-list.ts index 89c2f84f0f0a..4232124d726e 100644 --- a/projects/cdk/utils/miscellaneous/get-original-array-from-query-list.ts +++ b/projects/cdk/utils/miscellaneous/get-original-array-from-query-list.ts @@ -1,4 +1,4 @@ -import {type QueryList} from '@angular/core'; +import type {QueryList} from '@angular/core'; /** * Extracts original array from {@link QueryList} rather than diff --git a/projects/cdk/utils/miscellaneous/get-swipe-direction.ts b/projects/cdk/utils/miscellaneous/get-swipe-direction.ts index 271cc455df25..414882aab988 100644 --- a/projects/cdk/utils/miscellaneous/get-swipe-direction.ts +++ b/projects/cdk/utils/miscellaneous/get-swipe-direction.ts @@ -1,4 +1,4 @@ -import {type TuiSwipeDirection} from '@taiga-ui/cdk/interfaces'; +import type {TuiSwipeDirection} from '@taiga-ui/cdk/interfaces'; export function tuiGetSwipeDirection(deltaX: number, deltaY: number): TuiSwipeDirection { if (Math.abs(deltaY) > Math.abs(deltaX)) { diff --git a/projects/cdk/utils/miscellaneous/mark-control-as-touched-and-validate.ts b/projects/cdk/utils/miscellaneous/mark-control-as-touched-and-validate.ts index 9571b861760e..deb738b515b2 100644 --- a/projects/cdk/utils/miscellaneous/mark-control-as-touched-and-validate.ts +++ b/projects/cdk/utils/miscellaneous/mark-control-as-touched-and-validate.ts @@ -1,4 +1,5 @@ -import {type AbstractControl, FormArray, FormGroup} from '@angular/forms'; +import type {AbstractControl} from '@angular/forms'; +import {FormArray, FormGroup} from '@angular/forms'; export function tuiMarkControlAsTouchedAndValidate(control: AbstractControl): void { if (control instanceof FormArray) { diff --git a/projects/cdk/utils/miscellaneous/nullable-same.ts b/projects/cdk/utils/miscellaneous/nullable-same.ts index 9dc26b359fbb..06f68d403272 100644 --- a/projects/cdk/utils/miscellaneous/nullable-same.ts +++ b/projects/cdk/utils/miscellaneous/nullable-same.ts @@ -1,4 +1,4 @@ -import {type TuiIdentityMatcher} from '@taiga-ui/cdk/types'; +import type {TuiIdentityMatcher} from '@taiga-ui/cdk/types'; /** * Checks identity for nullable elements. diff --git a/projects/cdk/utils/miscellaneous/provide-options.ts b/projects/cdk/utils/miscellaneous/provide-options.ts index a4b8c66fa31f..4fa3e5ae715e 100644 --- a/projects/cdk/utils/miscellaneous/provide-options.ts +++ b/projects/cdk/utils/miscellaneous/provide-options.ts @@ -1,9 +1,5 @@ -import { - type FactoryProvider, - type InjectionToken, - Optional, - SkipSelf, -} from '@angular/core'; +import type {FactoryProvider, InjectionToken} from '@angular/core'; +import {Optional, SkipSelf} from '@angular/core'; export function tuiProvideOptions( provide: InjectionToken, diff --git a/projects/cdk/utils/miscellaneous/uniq-by.ts b/projects/cdk/utils/miscellaneous/uniq-by.ts index 6155a87f9529..2b55d3e87b64 100644 --- a/projects/cdk/utils/miscellaneous/uniq-by.ts +++ b/projects/cdk/utils/miscellaneous/uniq-by.ts @@ -1,4 +1,4 @@ -import {type TuiValuesOf} from '@taiga-ui/cdk/types'; +import type {TuiValuesOf} from '@taiga-ui/cdk/types'; export function tuiUniqBy>( array: readonly T[], diff --git a/projects/cdk/utils/svg/svg-linear-gradient-processor.ts b/projects/cdk/utils/svg/svg-linear-gradient-processor.ts index 0c3ba1c1dccd..e4c10c4a73c3 100644 --- a/projects/cdk/utils/svg/svg-linear-gradient-processor.ts +++ b/projects/cdk/utils/svg/svg-linear-gradient-processor.ts @@ -1,4 +1,4 @@ -import {type TuiSafeHtml} from '@taiga-ui/cdk/interfaces'; +import type {TuiSafeHtml} from '@taiga-ui/cdk/interfaces'; import {tuiIsString} from '@taiga-ui/cdk/utils/miscellaneous'; function makeRandomSalt(): number { diff --git a/projects/core/abstract/abstract-driver.directive.ts b/projects/core/abstract/abstract-driver.directive.ts index 171d2bb73a46..c48695bddcc2 100644 --- a/projects/core/abstract/abstract-driver.directive.ts +++ b/projects/core/abstract/abstract-driver.directive.ts @@ -1,4 +1,5 @@ -import {Directive, inject, type OnInit} from '@angular/core'; +import type {OnInit} from '@angular/core'; +import {Directive, inject} from '@angular/core'; import {TuiDestroyService} from '@taiga-ui/cdk'; import {distinctUntilChanged, merge, takeUntil} from 'rxjs'; diff --git a/projects/core/abstract/abstract-textfield-host.ts b/projects/core/abstract/abstract-textfield-host.ts index eb421b106218..87a062b6ec92 100644 --- a/projects/core/abstract/abstract-textfield-host.ts +++ b/projects/core/abstract/abstract-textfield-host.ts @@ -1,6 +1,6 @@ import {Directive, inject} from '@angular/core'; import {AbstractTuiControl} from '@taiga-ui/cdk'; -import {type TuiTextfieldHost} from '@taiga-ui/core/interfaces'; +import type {TuiTextfieldHost} from '@taiga-ui/core/interfaces'; @Directive() export abstract class AbstractTuiTextfieldHost> diff --git a/projects/core/abstract/driver.ts b/projects/core/abstract/driver.ts index 1423d003785b..d5a6b8d13a26 100644 --- a/projects/core/abstract/driver.ts +++ b/projects/core/abstract/driver.ts @@ -1,4 +1,4 @@ -import {type ExistingProvider, type Type} from '@angular/core'; +import type {ExistingProvider, Type} from '@angular/core'; import {Observable} from 'rxjs'; export abstract class TuiDriver extends Observable { diff --git a/projects/core/abstract/position-accessor.ts b/projects/core/abstract/position-accessor.ts index 7cf975f0ac9b..8a9214d61fb1 100644 --- a/projects/core/abstract/position-accessor.ts +++ b/projects/core/abstract/position-accessor.ts @@ -1,11 +1,6 @@ -import { - type ExistingProvider, - type FactoryProvider, - Optional, - SkipSelf, - type Type, -} from '@angular/core'; -import {type TuiPoint} from '@taiga-ui/core/types'; +import type {ExistingProvider, FactoryProvider, Type} from '@angular/core'; +import {Optional, SkipSelf} from '@angular/core'; +import type {TuiPoint} from '@taiga-ui/core/types'; export abstract class TuiPositionAccessor { public abstract readonly type: string; diff --git a/projects/core/abstract/rect-accessor.ts b/projects/core/abstract/rect-accessor.ts index 8bb341b26f3e..90bba50f7da6 100644 --- a/projects/core/abstract/rect-accessor.ts +++ b/projects/core/abstract/rect-accessor.ts @@ -1,9 +1,5 @@ -import { - type ExistingProvider, - type FactoryProvider, - SkipSelf, - type Type, -} from '@angular/core'; +import type {ExistingProvider, FactoryProvider, Type} from '@angular/core'; +import {SkipSelf} from '@angular/core'; // TODO: Rename to getBoundingClientRect to match the DOM API export abstract class TuiRectAccessor { diff --git a/projects/core/abstract/vehicle.ts b/projects/core/abstract/vehicle.ts index 9d32668b6ccc..7b0bb9d68888 100644 --- a/projects/core/abstract/vehicle.ts +++ b/projects/core/abstract/vehicle.ts @@ -1,4 +1,4 @@ -import {type ExistingProvider, type Type} from '@angular/core'; +import type {ExistingProvider, Type} from '@angular/core'; export abstract class TuiVehicle { public abstract readonly type: string; diff --git a/projects/core/components/alert/alert.component.ts b/projects/core/components/alert/alert.component.ts index 1976509d8981..4a3e851f0165 100644 --- a/projects/core/components/alert/alert.component.ts +++ b/projects/core/components/alert/alert.component.ts @@ -1,18 +1,14 @@ -import { - ChangeDetectionStrategy, - Component, - ElementRef, - inject, - type OnInit, -} from '@angular/core'; -import {TuiDestroyService, type TuiPopover} from '@taiga-ui/cdk'; +import type {OnInit} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ElementRef, inject} from '@angular/core'; +import type {TuiPopover} from '@taiga-ui/cdk'; +import {TuiDestroyService} from '@taiga-ui/cdk'; import {tuiFadeIn, tuiHeightCollapse, tuiSlideIn} from '@taiga-ui/core/animations'; import {TUI_ANIMATIONS_SPEED} from '@taiga-ui/core/tokens'; import {tuiToAnimationOptions} from '@taiga-ui/core/utils'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; import {fromEvent, repeat, takeUntil, timer} from 'rxjs'; -import {type TuiAlertOptions} from './alert.interfaces'; +import type {TuiAlertOptions} from './alert.interfaces'; import {TUI_ALERT_POSITION} from './alert.tokens'; // TODO: get rid of $any in template diff --git a/projects/core/components/alert/alert.directive.ts b/projects/core/components/alert/alert.directive.ts index 0cb1b3e73f75..f8d1be0f45c4 100644 --- a/projects/core/components/alert/alert.directive.ts +++ b/projects/core/components/alert/alert.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {tuiAsPopover, TuiPopoverDirective} from '@taiga-ui/cdk'; -import {type TuiAlertOptions} from './alert.interfaces'; +import type {TuiAlertOptions} from './alert.interfaces'; import {TuiAlertService} from './alert.service'; @Directive({ diff --git a/projects/core/components/alert/alert.interfaces.ts b/projects/core/components/alert/alert.interfaces.ts index 0848dab2774c..367fdbfb59e6 100644 --- a/projects/core/components/alert/alert.interfaces.ts +++ b/projects/core/components/alert/alert.interfaces.ts @@ -1,9 +1,9 @@ -import {type TuiHandler, type TuiPopoverContext} from '@taiga-ui/cdk'; -import { - type TuiNotification, - type TuiNotificationOptions, +import type {TuiHandler, TuiPopoverContext} from '@taiga-ui/cdk'; +import type { + TuiNotification, + TuiNotificationOptions, } from '@taiga-ui/core/components/notification'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export type TuiAlertAutoClose = TuiHandler | number; diff --git a/projects/core/components/alert/alert.service.ts b/projects/core/components/alert/alert.service.ts index 374d7b464101..2eb1265a696a 100644 --- a/projects/core/components/alert/alert.service.ts +++ b/projects/core/components/alert/alert.service.ts @@ -2,7 +2,7 @@ import {inject, Injectable} from '@angular/core'; import {TuiPopoverService} from '@taiga-ui/cdk'; import {TuiAlertComponent} from './alert.component'; -import {type TuiAlertOptions} from './alert.interfaces'; +import type {TuiAlertOptions} from './alert.interfaces'; import {TUI_ALERT_OPTIONS, TUI_ALERTS} from './alert.tokens'; @Injectable({ diff --git a/projects/core/components/alert/alert.tokens.ts b/projects/core/components/alert/alert.tokens.ts index aa293390a83e..f6e32aac7169 100644 --- a/projects/core/components/alert/alert.tokens.ts +++ b/projects/core/components/alert/alert.tokens.ts @@ -1,14 +1,11 @@ -import {inject, type Type} from '@angular/core'; -import { - TUI_IS_MOBILE, - tuiCreateToken, - tuiCreateTokenFromFactory, - type TuiPopover, -} from '@taiga-ui/cdk'; +import type {Type} from '@angular/core'; +import {inject} from '@angular/core'; +import type {TuiPopover} from '@taiga-ui/cdk'; +import {TUI_IS_MOBILE, tuiCreateToken, tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; import {TUI_NOTIFICATION_OPTIONS} from '@taiga-ui/core/components/notification'; import {BehaviorSubject, combineLatest, map, of} from 'rxjs'; -import {type TuiAlertOptions} from './alert.interfaces'; +import type {TuiAlertOptions} from './alert.interfaces'; export const TUI_ALERT_DEFAULT_OPTIONS: Omit = { autoClose: 3000, diff --git a/projects/core/components/alert/alerts.component.ts b/projects/core/components/alert/alerts.component.ts index f7e838342cbc..5d1df6ac7c26 100644 --- a/projects/core/components/alert/alerts.component.ts +++ b/projects/core/components/alert/alerts.component.ts @@ -1,14 +1,15 @@ import {CommonModule} from '@angular/common'; +import type {Type} from '@angular/core'; import { ChangeDetectionStrategy, Component, inject, INJECTOR, Injector, - type Type, ViewEncapsulation, } from '@angular/core'; -import {TuiMapperPipeModule, type TuiTypedMapper} from '@taiga-ui/cdk'; +import type {TuiTypedMapper} from '@taiga-ui/cdk'; +import {TuiMapperPipeModule} from '@taiga-ui/cdk'; import {TUI_PARENT_ANIMATION} from '@taiga-ui/core/animations'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; import {identity} from 'rxjs'; diff --git a/projects/core/components/button/button.component.ts b/projects/core/components/button/button.component.ts index 47a3e9feba8c..407842eaaa91 100644 --- a/projects/core/components/button/button.component.ts +++ b/projects/core/components/button/button.component.ts @@ -7,19 +7,21 @@ import { inject, Input, } from '@angular/core'; +import type {TuiFocusableElementAccessor} from '@taiga-ui/cdk'; import { AbstractTuiInteractive, tuiAsFocusableItemAccessor, TuiDestroyService, - type TuiFocusableElementAccessor, tuiIsNativeFocused, } from '@taiga-ui/cdk'; import {TuiModeDirective} from '@taiga-ui/core/directives'; -import {type TuiSizeS} from '@taiga-ui/core/types'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {distinctUntilChanged, EMPTY, map, type Observable, startWith} from 'rxjs'; +import type {TuiSizeS} from '@taiga-ui/core/types'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; +import {distinctUntilChanged, EMPTY, map, startWith} from 'rxjs'; -import {TUI_BUTTON_OPTIONS, type TuiButtonOptions} from './button.options'; +import type {TuiButtonOptions} from './button.options'; +import {TUI_BUTTON_OPTIONS} from './button.options'; @Component({ selector: 'button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]', diff --git a/projects/core/components/button/button.options.ts b/projects/core/components/button/button.options.ts index d028322f0e13..682db25f6c2a 100644 --- a/projects/core/components/button/button.options.ts +++ b/projects/core/components/button/button.options.ts @@ -1,7 +1,7 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; import {TuiAppearance} from '@taiga-ui/core/enums'; -import {type TuiSizeXL, type TuiSizeXS} from '@taiga-ui/core/types'; +import type {TuiSizeXL, TuiSizeXS} from '@taiga-ui/core/types'; export interface TuiButtonOptions { readonly appearance: TuiAppearance | string | null; diff --git a/projects/core/components/button/test/button.component.spec.ts b/projects/core/components/button/test/button.component.spec.ts index 50fc6676cdf5..a11e9813946f 100644 --- a/projects/core/components/button/test/button.component.spec.ts +++ b/projects/core/components/button/test/button.component.spec.ts @@ -1,7 +1,8 @@ -import {type HarnessLoader} from '@angular/cdk/testing'; +import type {HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {TuiButtonHarness, TuiLoaderHarness} from '@taiga-ui/testing'; import {TuiButtonModule} from '../button.module'; diff --git a/projects/core/components/calendar/calendar.component.ts b/projects/core/components/calendar/calendar.component.ts index 6856a3db7d33..da225b1f5446 100644 --- a/projects/core/components/calendar/calendar.component.ts +++ b/projects/core/components/calendar/calendar.component.ts @@ -5,21 +5,23 @@ import { Input, Output, } from '@angular/core'; +import type { + TuiBooleanHandler, + TuiDayRange, + TuiTypedMapper, + TuiYear, +} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - type TuiBooleanHandler, TuiDay, - type TuiDayRange, TuiMonth, tuiNullableSame, - type TuiTypedMapper, - type TuiYear, } from '@taiga-ui/cdk'; import {TUI_DEFAULT_MARKER_HANDLER} from '@taiga-ui/core/constants'; -import {type TuiWithOptionalMinMax} from '@taiga-ui/core/interfaces'; -import {type TuiCalendarView, type TuiMarkerHandler} from '@taiga-ui/core/types'; +import type {TuiWithOptionalMinMax} from '@taiga-ui/core/interfaces'; +import type {TuiCalendarView, TuiMarkerHandler} from '@taiga-ui/core/types'; @Component({ selector: 'tui-calendar', diff --git a/projects/core/components/calendar/test/calendar.component.spec.ts b/projects/core/components/calendar/test/calendar.component.spec.ts index a2e31f2d3911..c09fad86d861 100644 --- a/projects/core/components/calendar/test/calendar.component.spec.ts +++ b/projects/core/components/calendar/test/calendar.component.spec.ts @@ -1,7 +1,8 @@ -import {type HarnessLoader} from '@angular/cdk/testing'; +import type {HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {TuiDay, TuiMonth} from '@taiga-ui/cdk'; import {TuiCalendarComponent, TuiCalendarModule} from '@taiga-ui/core'; import {TuiCalendarHarness} from '@taiga-ui/testing'; diff --git a/projects/core/components/data-list/data-list.component.ts b/projects/core/components/data-list/data-list.component.ts index fbb97e856feb..a614caa0b634 100644 --- a/projects/core/components/data-list/data-list.component.ts +++ b/projects/core/components/data-list/data-list.component.ts @@ -1,3 +1,4 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, @@ -8,7 +9,6 @@ import { HostListener, inject, Input, - type QueryList, ViewEncapsulation, } from '@angular/core'; import { @@ -25,11 +25,12 @@ import { TEXTFIELD_CONTROLLER_PROVIDER, TUI_TEXTFIELD_WATCHED_CONTROLLER, } from '@taiga-ui/core/directives'; -import {type TuiDataListAccessor} from '@taiga-ui/core/interfaces'; +import type {TuiDataListAccessor} from '@taiga-ui/core/interfaces'; import {TUI_NOTHING_FOUND_MESSAGE, tuiAsDataListAccessor} from '@taiga-ui/core/tokens'; -import {type TuiDataListRole} from '@taiga-ui/core/types'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {map, type Observable} from 'rxjs'; +import type {TuiDataListRole} from '@taiga-ui/core/types'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; +import {map} from 'rxjs'; import {TuiOptionComponent} from './option/option.component'; diff --git a/projects/core/components/data-list/data-list.directive.ts b/projects/core/components/data-list/data-list.directive.ts index aee92ddd7507..50ba2374c9b7 100644 --- a/projects/core/components/data-list/data-list.directive.ts +++ b/projects/core/components/data-list/data-list.directive.ts @@ -1,4 +1,5 @@ -import {Directive, type Provider, type Type} from '@angular/core'; +import type {Provider, Type} from '@angular/core'; +import {Directive} from '@angular/core'; @Directive({ selector: 'ng-template[tuiDataList]', diff --git a/projects/core/components/data-list/option/option.component.ts b/projects/core/components/data-list/option/option.component.ts index 3b7ce635c379..b51d6076297a 100644 --- a/projects/core/components/data-list/option/option.component.ts +++ b/projects/core/components/data-list/option/option.component.ts @@ -1,3 +1,4 @@ +import type {OnDestroy} from '@angular/core'; import { ChangeDetectionStrategy, Component, @@ -7,17 +8,17 @@ import { HostListener, inject, Input, - type OnDestroy, } from '@angular/core'; -import {type TuiEventWith, tuiIsNativeFocused} from '@taiga-ui/cdk'; +import type {TuiEventWith} from '@taiga-ui/cdk'; +import {tuiIsNativeFocused} from '@taiga-ui/cdk'; import {TuiDropdownDirective} from '@taiga-ui/core/directives/dropdown'; -import {type TuiDataListHost} from '@taiga-ui/core/interfaces'; +import type {TuiDataListHost} from '@taiga-ui/core/interfaces'; import { TUI_COMMON_ICONS, TUI_DATA_LIST_HOST, TUI_OPTION_CONTENT, } from '@taiga-ui/core/tokens'; -import {type TuiOptionRole, type TuiSizeL, type TuiSizeXS} from '@taiga-ui/core/types'; +import type {TuiOptionRole, TuiSizeL, TuiSizeXS} from '@taiga-ui/core/types'; import {shouldCall} from '@tinkoff/ng-event-plugins'; import {TuiDataListComponent} from '../data-list.component'; diff --git a/projects/core/components/dialog/dialog.component.ts b/projects/core/components/dialog/dialog.component.ts index 0e8189d455ff..add755257266 100644 --- a/projects/core/components/dialog/dialog.component.ts +++ b/projects/core/components/dialog/dialog.component.ts @@ -1,11 +1,7 @@ -import {type AnimationOptions} from '@angular/animations'; +import type {AnimationOptions} from '@angular/animations'; import {ChangeDetectionStrategy, Component, HostBinding, inject} from '@angular/core'; -import { - ALWAYS_TRUE_HANDLER, - TUI_IS_MOBILE, - TuiDestroyService, - type TuiPopover, -} from '@taiga-ui/cdk'; +import type {TuiPopover} from '@taiga-ui/cdk'; +import {ALWAYS_TRUE_HANDLER, TUI_IS_MOBILE, TuiDestroyService} from '@taiga-ui/cdk'; import {tuiFadeIn, tuiSlideInTop} from '@taiga-ui/core/animations'; import { TUI_ANIMATIONS_SPEED, @@ -13,20 +9,12 @@ import { TUI_COMMON_ICONS, } from '@taiga-ui/core/tokens'; import {tuiGetDuration} from '@taiga-ui/core/utils'; -import {POLYMORPHEUS_CONTEXT, type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import { - filter, - isObservable, - map, - merge, - type Observable, - of, - Subject, - switchMap, - takeUntil, -} from 'rxjs'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; +import {filter, isObservable, map, merge, of, Subject, switchMap, takeUntil} from 'rxjs'; -import {type TuiDialogOptions, type TuiDialogSize} from './dialog.interfaces'; +import type {TuiDialogOptions, TuiDialogSize} from './dialog.interfaces'; import {TUI_DIALOGS_CLOSE} from './dialog.tokens'; import {TuiDialogCloseService} from './dialog-close.service'; diff --git a/projects/core/components/dialog/dialog.directive.ts b/projects/core/components/dialog/dialog.directive.ts index 123b062ab160..9c1518a28a2c 100644 --- a/projects/core/components/dialog/dialog.directive.ts +++ b/projects/core/components/dialog/dialog.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {tuiAsPopover, TuiPopoverDirective} from '@taiga-ui/cdk'; -import {type TuiDialogOptions} from './dialog.interfaces'; +import type {TuiDialogOptions} from './dialog.interfaces'; import {TuiDialogService} from './dialog.service'; @Directive({ diff --git a/projects/core/components/dialog/dialog.interfaces.ts b/projects/core/components/dialog/dialog.interfaces.ts index 90fbfc60f165..5b3ce8d133c3 100644 --- a/projects/core/components/dialog/dialog.interfaces.ts +++ b/projects/core/components/dialog/dialog.interfaces.ts @@ -1,7 +1,7 @@ -import {type TuiPopover, type TuiPopoverContext} from '@taiga-ui/cdk'; +import type {TuiPopover, TuiPopoverContext} from '@taiga-ui/cdk'; import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {type Observable} from 'rxjs'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; export type TuiDialogSize = TuiSizeL | TuiSizeS | 'auto' | 'fullscreen' | 'page'; diff --git a/projects/core/components/dialog/dialog.service.ts b/projects/core/components/dialog/dialog.service.ts index 7363601e2cfd..16f35cb87b32 100644 --- a/projects/core/components/dialog/dialog.service.ts +++ b/projects/core/components/dialog/dialog.service.ts @@ -2,7 +2,7 @@ import {inject, Injectable} from '@angular/core'; import {TuiPopoverService} from '@taiga-ui/cdk'; import {TuiDialogComponent} from './dialog.component'; -import {type TuiDialogOptions} from './dialog.interfaces'; +import type {TuiDialogOptions} from './dialog.interfaces'; import {TUI_DIALOG_OPTIONS, TUI_DIALOGS} from './dialog.tokens'; @Injectable({ diff --git a/projects/core/components/dialog/dialog.tokens.ts b/projects/core/components/dialog/dialog.tokens.ts index 0c1edfe7488e..d80503f48d96 100644 --- a/projects/core/components/dialog/dialog.tokens.ts +++ b/projects/core/components/dialog/dialog.tokens.ts @@ -1,8 +1,10 @@ -import {type Provider} from '@angular/core'; -import {tuiCreateToken, type TuiPopover, tuiProvideOptions} from '@taiga-ui/cdk'; -import {BehaviorSubject, EMPTY, type Observable} from 'rxjs'; +import type {Provider} from '@angular/core'; +import type {TuiPopover} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {Observable} from 'rxjs'; +import {BehaviorSubject, EMPTY} from 'rxjs'; -import {type TuiDialogOptions} from './dialog.interfaces'; +import type {TuiDialogOptions} from './dialog.interfaces'; export const TUI_DIALOGS = tuiCreateToken( new BehaviorSubject>>([]), diff --git a/projects/core/components/dialog/dialogs.component.ts b/projects/core/components/dialog/dialogs.component.ts index 3387d4700b37..8383d71e21b7 100644 --- a/projects/core/components/dialog/dialogs.component.ts +++ b/projects/core/components/dialog/dialogs.component.ts @@ -1,10 +1,12 @@ import {CommonModule, DOCUMENT} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; -import {TuiFocusTrapModule, TuiOverscrollModule, type TuiPopover} from '@taiga-ui/cdk'; +import type {TuiPopover} from '@taiga-ui/cdk'; +import {TuiFocusTrapModule, TuiOverscrollModule} from '@taiga-ui/cdk'; import {tuiHost} from '@taiga-ui/core/animations'; import {TuiScrollControlsComponent} from '@taiga-ui/core/components/scroll-controls'; import {PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; -import {type Observable, tap} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {tap} from 'rxjs'; import {TUI_DIALOGS} from './dialog.tokens'; diff --git a/projects/core/components/dialog/test/dialog.component.spec.ts b/projects/core/components/dialog/test/dialog.component.spec.ts index c850ca942b1e..bd17fafdeccd 100644 --- a/projects/core/components/dialog/test/dialog.component.spec.ts +++ b/projects/core/components/dialog/test/dialog.component.spec.ts @@ -1,7 +1,8 @@ -import {type HarnessLoader} from '@angular/cdk/testing'; +import type {HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiDialogHarness} from '@taiga-ui/testing'; diff --git a/projects/core/components/error/error.component.ts b/projects/core/components/error/error.component.ts index 04af0b59db0b..5341a460ae91 100644 --- a/projects/core/components/error/error.component.ts +++ b/projects/core/components/error/error.component.ts @@ -13,9 +13,9 @@ import { TUI_DEFAULT_ERROR_MESSAGE, TUI_MODE, } from '@taiga-ui/core/tokens'; -import {type TuiBrightness} from '@taiga-ui/core/types'; +import type {TuiBrightness} from '@taiga-ui/core/types'; import {tuiToAnimationOptions} from '@taiga-ui/core/utils'; -import {type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; @Component({ selector: 'tui-error', diff --git a/projects/core/components/expand/expand.component.ts b/projects/core/components/expand/expand.component.ts index 3de52798d2d6..98c349775814 100644 --- a/projects/core/components/expand/expand.component.ts +++ b/projects/core/components/expand/expand.component.ts @@ -1,10 +1,10 @@ -import {type NgIfContext} from '@angular/common'; +import type {NgIfContext} from '@angular/common'; +import type {ElementRef} from '@angular/core'; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, - type ElementRef, HostBinding, HostListener, inject, @@ -12,7 +12,8 @@ import { TemplateRef, ViewChild, } from '@angular/core'; -import {TuiDestroyService, type TuiValuesOf} from '@taiga-ui/cdk'; +import type {TuiValuesOf} from '@taiga-ui/cdk'; +import {TuiDestroyService} from '@taiga-ui/cdk'; import {TUI_PARENT_ANIMATION} from '@taiga-ui/core/animations'; import {TUI_EXPAND_LOADED} from '@taiga-ui/core/constants'; import {takeUntil, timer} from 'rxjs'; diff --git a/projects/core/components/expand/test/expand.component.spec.ts b/projects/core/components/expand/test/expand.component.spec.ts index cf2ae262e410..52c91d897ba1 100644 --- a/projects/core/components/expand/test/expand.component.spec.ts +++ b/projects/core/components/expand/test/expand.component.spec.ts @@ -1,11 +1,9 @@ import {Component, ElementRef, ViewChild} from '@angular/core'; -import {type ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {fakeAsync, TestBed, tick} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; -import { - TUI_EXPAND_LOADED, - type TuiExpandComponent, - TuiExpandModule, -} from '@taiga-ui/core'; +import type {TuiExpandComponent} from '@taiga-ui/core'; +import {TUI_EXPAND_LOADED, TuiExpandModule} from '@taiga-ui/core'; import {TuiPageObject} from '@taiga-ui/testing'; const ANIMATION_DELAY = 900; diff --git a/projects/core/components/group/group.directive.ts b/projects/core/components/group/group.directive.ts index cd2bb617a07d..15f076b6d0e7 100644 --- a/projects/core/components/group/group.directive.ts +++ b/projects/core/components/group/group.directive.ts @@ -1,6 +1,6 @@ import {Directive, HostBinding, inject, Input} from '@angular/core'; import {tuiWithStyles} from '@taiga-ui/cdk'; -import {type TuiOrientation, type TuiSizeL} from '@taiga-ui/core/types'; +import type {TuiOrientation, TuiSizeL} from '@taiga-ui/core/types'; import {TuiGroupComponent} from './group.component'; import {TUI_GROUP_OPTIONS} from './group.options'; diff --git a/projects/core/components/group/group.options.ts b/projects/core/components/group/group.options.ts index 0f6a5ae14f67..9c0a6f5439b6 100644 --- a/projects/core/components/group/group.options.ts +++ b/projects/core/components/group/group.options.ts @@ -1,6 +1,6 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiOrientation, type TuiSizeL} from '@taiga-ui/core/types'; +import type {TuiOrientation, TuiSizeL} from '@taiga-ui/core/types'; export interface TuiGroupOptions { readonly size: TuiSizeL; diff --git a/projects/core/components/hints-host/hints-host.component.ts b/projects/core/components/hints-host/hints-host.component.ts index 9edc0ab0413d..8f70f8cfda00 100644 --- a/projects/core/components/hints-host/hints-host.component.ts +++ b/projects/core/components/hints-host/hints-host.component.ts @@ -1,13 +1,13 @@ +import type {OnInit} from '@angular/core'; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, - type OnInit, } from '@angular/core'; import {TuiDestroyService} from '@taiga-ui/cdk'; import {TUI_PARENT_ANIMATION} from '@taiga-ui/core/animations'; -import {type TuiPortalItem} from '@taiga-ui/core/interfaces'; +import type {TuiPortalItem} from '@taiga-ui/core/interfaces'; import {TuiHintService} from '@taiga-ui/core/services'; import {takeUntil} from 'rxjs'; diff --git a/projects/core/components/hosted-dropdown/accessor-proxy.directive.ts b/projects/core/components/hosted-dropdown/accessor-proxy.directive.ts index 8e1f7c1819bd..b696aebe5004 100644 --- a/projects/core/components/hosted-dropdown/accessor-proxy.directive.ts +++ b/projects/core/components/hosted-dropdown/accessor-proxy.directive.ts @@ -1,6 +1,6 @@ import {Directive, Optional, SkipSelf} from '@angular/core'; import {TuiPositionAccessor} from '@taiga-ui/core/abstract'; -import {type TuiPoint} from '@taiga-ui/core/types'; +import type {TuiPoint} from '@taiga-ui/core/types'; @Directive({ selector: '[tuiAccessorProxy]', diff --git a/projects/core/components/hosted-dropdown/hosted-dropdown.component.ts b/projects/core/components/hosted-dropdown/hosted-dropdown.component.ts index c3bb5b6028fd..28e89b5b1a64 100644 --- a/projects/core/components/hosted-dropdown/hosted-dropdown.component.ts +++ b/projects/core/components/hosted-dropdown/hosted-dropdown.component.ts @@ -12,11 +12,14 @@ import { Self, ViewChild, } from '@angular/core'; +import type { + TuiContext, + TuiFocusableElementAccessor, + TuiNativeFocusableElement, +} from '@taiga-ui/cdk'; import { TuiActiveZoneDirective, tuiAsFocusableItemAccessor, - type TuiContext, - type TuiFocusableElementAccessor, tuiGetActualTarget, tuiGetClosestFocusable, tuiIsElement, @@ -25,7 +28,6 @@ import { tuiIsNativeFocusedIn, tuiIsNativeKeyboardFocusable, tuiIsPresent, - type TuiNativeFocusableElement, tuiTypedFromEvent, } from '@taiga-ui/cdk'; import {TuiPositionAccessor} from '@taiga-ui/core/abstract'; @@ -35,7 +37,8 @@ import { } from '@taiga-ui/core/directives/dropdown'; import {tuiIsEditingKey} from '@taiga-ui/core/utils/miscellaneous'; import {shouldCall} from '@tinkoff/ng-event-plugins'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; import { BehaviorSubject, combineLatestWith, @@ -45,7 +48,6 @@ import { filter, map, merge, - type Observable, of, share, skip, diff --git a/projects/core/components/hosted-dropdown/test/hosted-dropdown.component.spec.ts b/projects/core/components/hosted-dropdown/test/hosted-dropdown.component.spec.ts index 4763cc5878e0..24a5a9d92329 100644 --- a/projects/core/components/hosted-dropdown/test/hosted-dropdown.component.spec.ts +++ b/projects/core/components/hosted-dropdown/test/hosted-dropdown.component.spec.ts @@ -1,5 +1,7 @@ -import {Component, type DebugElement, ElementRef, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component, ElementRef, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiElementModule} from '@taiga-ui/cdk'; import { diff --git a/projects/core/components/label/label.component.ts b/projects/core/components/label/label.component.ts index a77d373fc5c7..ba185e93fdc3 100644 --- a/projects/core/components/label/label.component.ts +++ b/projects/core/components/label/label.component.ts @@ -7,12 +7,12 @@ import { Input, } from '@angular/core'; import {NgControl} from '@angular/forms'; -import {type TuiContext} from '@taiga-ui/cdk'; +import type {TuiContext} from '@taiga-ui/cdk'; import {MODE_PROVIDER} from '@taiga-ui/core/providers'; import {TUI_MODE} from '@taiga-ui/core/tokens'; -import {type TuiBrightness} from '@taiga-ui/core/types'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {type Observable} from 'rxjs'; +import type {TuiBrightness} from '@taiga-ui/core/types'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; @Component({ selector: 'label[tuiLabel]', diff --git a/projects/core/components/link/link.component.ts b/projects/core/components/link/link.component.ts index b0e35db1f49f..b76f68f921e0 100644 --- a/projects/core/components/link/link.component.ts +++ b/projects/core/components/link/link.component.ts @@ -6,20 +6,19 @@ import { inject, Input, } from '@angular/core'; +import type {TuiFocusableElementAccessor, TuiNativeFocusableElement} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER, tuiAsFocusableItemAccessor, TuiDestroyService, - type TuiFocusableElementAccessor, TuiFocusVisibleService, tuiIsNativeFocused, - type TuiNativeFocusableElement, tuiTypedFromEvent, } from '@taiga-ui/cdk'; import {MODE_PROVIDER} from '@taiga-ui/core/providers'; import {TUI_MODE} from '@taiga-ui/core/tokens'; -import {type TuiHorizontalDirection} from '@taiga-ui/core/types'; +import type {TuiHorizontalDirection} from '@taiga-ui/core/types'; import {map, merge} from 'rxjs'; // @bad TODO: Think about extending Interactive diff --git a/projects/core/components/loader/loader.component.ts b/projects/core/components/loader/loader.component.ts index 6688a242cccb..01921ef25215 100644 --- a/projects/core/components/loader/loader.component.ts +++ b/projects/core/components/loader/loader.component.ts @@ -14,7 +14,7 @@ import { tuiIsSafari, } from '@taiga-ui/cdk'; import {tuiSizeBigger} from '@taiga-ui/core/utils/miscellaneous'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TUI_LOADER_OPTIONS} from './loader.options'; diff --git a/projects/core/components/loader/loader.options.ts b/projects/core/components/loader/loader.options.ts index ee1f84c3f03e..5388110018c1 100644 --- a/projects/core/components/loader/loader.options.ts +++ b/projects/core/components/loader/loader.options.ts @@ -1,6 +1,6 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiSizeXS, type TuiSizeXXL} from '@taiga-ui/core/types'; +import type {TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core/types'; export interface TuiLoaderOptions { readonly inheritColor: boolean; diff --git a/projects/core/components/loader/test/loader-options.spec.ts b/projects/core/components/loader/test/loader-options.spec.ts index c1b0c1b3b822..ec1973352250 100644 --- a/projects/core/components/loader/test/loader-options.spec.ts +++ b/projects/core/components/loader/test/loader-options.spec.ts @@ -1,5 +1,6 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import { TuiLoaderComponent, TuiLoaderModule, diff --git a/projects/core/components/loader/test/loader.component.spec.ts b/projects/core/components/loader/test/loader.component.spec.ts index 188ab5b70d0d..80c64fd4245b 100644 --- a/projects/core/components/loader/test/loader.component.spec.ts +++ b/projects/core/components/loader/test/loader.component.spec.ts @@ -1,9 +1,10 @@ -import {type HarnessLoader} from '@angular/cdk/testing'; +import type {HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {TuiLoaderHarness} from '@taiga-ui/testing'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TuiLoaderComponent} from '../loader.component'; import {TuiLoaderModule} from '../loader.module'; diff --git a/projects/core/components/notification/notification.options.ts b/projects/core/components/notification/notification.options.ts index 0d6f4f4d2fcf..a16c91580633 100644 --- a/projects/core/components/notification/notification.options.ts +++ b/projects/core/components/notification/notification.options.ts @@ -1,7 +1,8 @@ -import {type Provider} from '@angular/core'; -import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Provider} from '@angular/core'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export type TuiNotification = 'error' | 'info' | 'neutral' | 'success' | 'warning'; diff --git a/projects/core/components/notification/test/notification.component.spec.ts b/projects/core/components/notification/test/notification.component.spec.ts index a31b106ff208..c61e6fe6eb46 100644 --- a/projects/core/components/notification/test/notification.component.spec.ts +++ b/projects/core/components/notification/test/notification.component.spec.ts @@ -1,10 +1,12 @@ -import {Component, type DebugElement, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; +import type {TuiNotification} from '@taiga-ui/core'; import { TUI_NOTIFICATION_DEFAULT_OPTIONS, TUI_NOTIFICATION_OPTIONS, - type TuiNotification, TuiNotificationComponent, TuiNotificationModule, TuiSvgService, diff --git a/projects/core/components/primitive-calendar/primitive-calendar.component.ts b/projects/core/components/primitive-calendar/primitive-calendar.component.ts index e4596cd800dd..75fd3a336238 100644 --- a/projects/core/components/primitive-calendar/primitive-calendar.component.ts +++ b/projects/core/components/primitive-calendar/primitive-calendar.component.ts @@ -7,18 +7,19 @@ import { Input, Output, } from '@angular/core'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, - type TuiBooleanHandler, TuiDay, TuiDayRange, TuiMonth, tuiNullableSame, } from '@taiga-ui/cdk'; import {TUI_DEFAULT_MARKER_HANDLER} from '@taiga-ui/core/constants'; -import {TuiInteractiveState, type TuiRangeState} from '@taiga-ui/core/enums'; +import type {TuiRangeState} from '@taiga-ui/core/enums'; +import {TuiInteractiveState} from '@taiga-ui/core/enums'; import {TUI_DAY_TYPE_HANDLER, TUI_SHORT_WEEK_DAYS} from '@taiga-ui/core/tokens'; -import {type TuiMarkerHandler} from '@taiga-ui/core/types'; +import type {TuiMarkerHandler} from '@taiga-ui/core/types'; @Component({ selector: 'tui-primitive-calendar', diff --git a/projects/core/components/primitive-calendar/test/primitive-calendar.component.spec.ts b/projects/core/components/primitive-calendar/test/primitive-calendar.component.spec.ts index 31cdca49f262..14e342c27f3e 100644 --- a/projects/core/components/primitive-calendar/test/primitive-calendar.component.spec.ts +++ b/projects/core/components/primitive-calendar/test/primitive-calendar.component.spec.ts @@ -1,9 +1,11 @@ -import {Component, type DebugElement, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, - type TuiBooleanHandler, TuiDay, TuiDayOfWeek, TuiDayRange, diff --git a/projects/core/components/primitive-checkbox/checkbox.options.ts b/projects/core/components/primitive-checkbox/checkbox.options.ts index 3df3f54dcc11..5311ecb0e55b 100644 --- a/projects/core/components/primitive-checkbox/checkbox.options.ts +++ b/projects/core/components/primitive-checkbox/checkbox.options.ts @@ -1,8 +1,9 @@ -import {type Provider} from '@angular/core'; -import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {Provider} from '@angular/core'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; import {TuiAppearance} from '@taiga-ui/core/enums'; -import {type TuiSizeL} from '@taiga-ui/core/types'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiSizeL} from '@taiga-ui/core/types'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiCheckboxOptions { readonly appearances: Readonly<{ diff --git a/projects/core/components/primitive-checkbox/primitive-checkbox.component.ts b/projects/core/components/primitive-checkbox/primitive-checkbox.component.ts index f6e4688998c6..fd133896e609 100644 --- a/projects/core/components/primitive-checkbox/primitive-checkbox.component.ts +++ b/projects/core/components/primitive-checkbox/primitive-checkbox.component.ts @@ -5,9 +5,9 @@ import { inject, Input, } from '@angular/core'; -import {type TuiContext} from '@taiga-ui/cdk'; -import {type TuiSizeL} from '@taiga-ui/core/types'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiContext} from '@taiga-ui/cdk'; +import type {TuiSizeL} from '@taiga-ui/core/types'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TUI_CHECKBOX_OPTIONS} from './checkbox.options'; diff --git a/projects/core/components/primitive-spin-button/test/primitive-spin-button.component.spec.ts b/projects/core/components/primitive-spin-button/test/primitive-spin-button.component.spec.ts index 07e7d845a2a8..fb435947b60e 100644 --- a/projects/core/components/primitive-spin-button/test/primitive-spin-button.component.spec.ts +++ b/projects/core/components/primitive-spin-button/test/primitive-spin-button.component.spec.ts @@ -1,5 +1,6 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import { TuiPrimitiveSpinButtonComponent, TuiPrimitiveSpinButtonModule, diff --git a/projects/core/components/primitive-textfield/primitive-textfield-options.ts b/projects/core/components/primitive-textfield/primitive-textfield-options.ts index f3a8fcf5a04f..c26a2b260f4f 100644 --- a/projects/core/components/primitive-textfield/primitive-textfield-options.ts +++ b/projects/core/components/primitive-textfield/primitive-textfield-options.ts @@ -1,7 +1,7 @@ +import type {TuiTextfieldOptions} from '@taiga-ui/core/directives'; import { TUI_TEXTFIELD_DEFAULT_OPTIONS, TUI_TEXTFIELD_OPTIONS, - type TuiTextfieldOptions, tuiTextfieldOptionsProvider, } from '@taiga-ui/core/directives'; diff --git a/projects/core/components/primitive-textfield/primitive-textfield-types.ts b/projects/core/components/primitive-textfield/primitive-textfield-types.ts index 947b20c803f7..924c2def4214 100644 --- a/projects/core/components/primitive-textfield/primitive-textfield-types.ts +++ b/projects/core/components/primitive-textfield/primitive-textfield-types.ts @@ -1,7 +1,4 @@ -import { - type AbstractTuiInteractive, - type TuiFocusableElementAccessor, -} from '@taiga-ui/cdk'; +import type {AbstractTuiInteractive, TuiFocusableElementAccessor} from '@taiga-ui/cdk'; export type TuiPrimitiveTextfield = AbstractTuiInteractive & TuiFocusableElementAccessor & { diff --git a/projects/core/components/primitive-textfield/primitive-textfield.component.ts b/projects/core/components/primitive-textfield/primitive-textfield.component.ts index d9227c13f4a7..ed71760e988d 100644 --- a/projects/core/components/primitive-textfield/primitive-textfield.component.ts +++ b/projects/core/components/primitive-textfield/primitive-textfield.component.ts @@ -1,3 +1,4 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, @@ -9,13 +10,12 @@ import { inject, Input, Output, - type QueryList, ViewChild, } from '@angular/core'; +import type {TuiContext} from '@taiga-ui/cdk'; import { AbstractTuiInteractive, tuiAsFocusableItemAccessor, - type TuiContext, tuiIsNativeFocusedIn, tuiPure, tuiRetargetedBoundaryCrossing, @@ -26,15 +26,14 @@ import { TUI_TEXTFIELD_OPTIONS, TUI_TEXTFIELD_WATCHED_CONTROLLER, } from '@taiga-ui/core/directives/textfield-controller'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; import {tuiGetBorder} from '@taiga-ui/core/utils/miscellaneous'; -import { - type PolymorpheusContent, - PolymorpheusOutletDirective, -} from '@tinkoff/ng-polymorpheus'; -import {fromEvent, map, type Observable} from 'rxjs'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {PolymorpheusOutletDirective} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; +import {fromEvent, map} from 'rxjs'; -import {type TuiPrimitiveTextfield} from './primitive-textfield-types'; +import type {TuiPrimitiveTextfield} from './primitive-textfield-types'; export const TUI_ICON_PADDINGS: Record = { s: 1.25, diff --git a/projects/core/components/primitive-textfield/test/primitive-textfield.component.spec.ts b/projects/core/components/primitive-textfield/test/primitive-textfield.component.spec.ts index 73ed362feb67..16cc301991a0 100644 --- a/projects/core/components/primitive-textfield/test/primitive-textfield.component.spec.ts +++ b/projects/core/components/primitive-textfield/test/primitive-textfield.component.spec.ts @@ -1,7 +1,8 @@ -import {type HarnessLoader} from '@angular/cdk/testing'; +import type {HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { TuiHintModule, diff --git a/projects/core/components/primitive-textfield/test/textfield.component.spec.ts b/projects/core/components/primitive-textfield/test/textfield.component.spec.ts index 4bf1a79ac821..79bc4b02aff6 100644 --- a/projects/core/components/primitive-textfield/test/textfield.component.spec.ts +++ b/projects/core/components/primitive-textfield/test/textfield.component.spec.ts @@ -1,5 +1,6 @@ import {Component, ElementRef, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {TUI_TEXTFIELD_HOST} from '@taiga-ui/core/tokens'; import {TuiPrimitiveTextfieldModule} from '../primitive-textfield.module'; diff --git a/projects/core/components/primitive-textfield/textfield/textfield.component.ts b/projects/core/components/primitive-textfield/textfield/textfield.component.ts index 4dd0807debf9..0f0a5ce1c5c9 100644 --- a/projects/core/components/primitive-textfield/textfield/textfield.component.ts +++ b/projects/core/components/primitive-textfield/textfield/textfield.component.ts @@ -4,7 +4,7 @@ import { TEXTFIELD_CONTROLLER_PROVIDER, TUI_TEXTFIELD_WATCHED_CONTROLLER, } from '@taiga-ui/core/directives'; -import {type TuiTextfieldHost} from '@taiga-ui/core/interfaces'; +import type {TuiTextfieldHost} from '@taiga-ui/core/interfaces'; import {TUI_TEXTFIELD_HOST} from '@taiga-ui/core/tokens'; @Component({ diff --git a/projects/core/components/primitive-textfield/value-decoration/value-decoration.component.ts b/projects/core/components/primitive-textfield/value-decoration/value-decoration.component.ts index 568cb387fd8a..c14b0809f2eb 100644 --- a/projects/core/components/primitive-textfield/value-decoration/value-decoration.component.ts +++ b/projects/core/components/primitive-textfield/value-decoration/value-decoration.component.ts @@ -1,7 +1,7 @@ +import type {DoCheck} from '@angular/core'; import { ChangeDetectionStrategy, Component, - type DoCheck, ElementRef, HostBinding, HostListener, @@ -12,7 +12,7 @@ import {TUI_FOCUSABLE_ITEM_ACCESSOR, TUI_FONTS_READY} from '@taiga-ui/cdk'; import {TuiAppearance} from '@taiga-ui/core/enums'; import {BehaviorSubject, delay, distinctUntilChanged, filter, map, merge} from 'rxjs'; -import {type TuiPrimitiveTextfield} from '../primitive-textfield-types'; +import type {TuiPrimitiveTextfield} from '../primitive-textfield-types'; @Component({ selector: 'tui-value-decoration', diff --git a/projects/core/components/primitive-year-picker/primitive-year-picker.component.ts b/projects/core/components/primitive-year-picker/primitive-year-picker.component.ts index a896fb86f46c..eb7cf8d4db15 100644 --- a/projects/core/components/primitive-year-picker/primitive-year-picker.component.ts +++ b/projects/core/components/primitive-year-picker/primitive-year-picker.component.ts @@ -6,19 +6,18 @@ import { Input, Output, } from '@angular/core'; +import type {TuiBooleanHandler, TuiDay, TuiDayRange} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - type TuiBooleanHandler, - type TuiDay, - type TuiDayRange, tuiInRange, TuiMonth, TuiMonthRange, TuiYear, } from '@taiga-ui/cdk'; -import {TuiInteractiveState, type TuiRangeState} from '@taiga-ui/core/enums'; +import type {TuiRangeState} from '@taiga-ui/core/enums'; +import {TuiInteractiveState} from '@taiga-ui/core/enums'; const LIMIT = 100; const ITEMS_IN_ROW = 4; diff --git a/projects/core/components/primitive-year-picker/test/primitive-year-picker.component.spec.ts b/projects/core/components/primitive-year-picker/test/primitive-year-picker.component.spec.ts index 867cfb8e1deb..5c6ffdd0ced3 100644 --- a/projects/core/components/primitive-year-picker/test/primitive-year-picker.component.spec.ts +++ b/projects/core/components/primitive-year-picker/test/primitive-year-picker.component.spec.ts @@ -1,5 +1,6 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {TUI_FIRST_DAY, TuiDay, TuiDayRange, TuiYear} from '@taiga-ui/cdk'; import { TuiInteractiveState, diff --git a/projects/core/components/root/root.component.ts b/projects/core/components/root/root.component.ts index 22afcee6a72e..72aa45c527b3 100644 --- a/projects/core/components/root/root.component.ts +++ b/projects/core/components/root/root.component.ts @@ -10,7 +10,8 @@ import {TUI_DIALOGS} from '@taiga-ui/core/components/dialog'; import {TuiBreakpointService} from '@taiga-ui/core/services'; import {TUI_ANIMATIONS_SPEED, TUI_REDUCED_MOTION, TUI_THEME} from '@taiga-ui/core/tokens'; import {tuiGetDuration} from '@taiga-ui/core/utils'; -import {debounceTime, map, type Observable, of} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {debounceTime, map, of} from 'rxjs'; @Component({ selector: 'tui-root', diff --git a/projects/core/components/root/test/root.component.spec.ts b/projects/core/components/root/test/root.component.spec.ts index cd52d5274db9..8ed845e1edc7 100644 --- a/projects/core/components/root/test/root.component.spec.ts +++ b/projects/core/components/root/test/root.component.spec.ts @@ -1,4 +1,5 @@ -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiRootComponent} from '../root.component'; diff --git a/projects/core/components/scrollbar/scrollable.directive.ts b/projects/core/components/scrollbar/scrollable.directive.ts index ea0306ad9976..9d1b3485f33c 100644 --- a/projects/core/components/scrollbar/scrollable.directive.ts +++ b/projects/core/components/scrollbar/scrollable.directive.ts @@ -1,4 +1,5 @@ -import {Directive, ElementRef, inject, type OnInit} from '@angular/core'; +import type {OnInit} from '@angular/core'; +import {Directive, ElementRef, inject} from '@angular/core'; import {TUI_SCROLLABLE} from '@taiga-ui/core/constants'; @Directive({ diff --git a/projects/core/components/svg/svg-options.ts b/projects/core/components/svg/svg-options.ts index 2c5f2693a638..7f5e29830d03 100644 --- a/projects/core/components/svg/svg-options.ts +++ b/projects/core/components/svg/svg-options.ts @@ -1,17 +1,9 @@ -import { - type FactoryProvider, - inject, - InjectionToken, - Optional, - type Provider, - SkipSelf, -} from '@angular/core'; +import type {FactoryProvider, Provider} from '@angular/core'; +import {inject, InjectionToken, Optional, SkipSelf} from '@angular/core'; +import type {TuiHandler, TuiSafeHtml, TuiStringHandler} from '@taiga-ui/cdk'; import { tuiCreateTokenFromFactory, - type TuiHandler, tuiIsString, - type TuiSafeHtml, - type TuiStringHandler, tuiSvgLinearGradientProcessor, } from '@taiga-ui/cdk'; import { diff --git a/projects/core/components/svg/svg.component.ts b/projects/core/components/svg/svg.component.ts index 920e0ccce329..6ca6e37b7e30 100644 --- a/projects/core/components/svg/svg.component.ts +++ b/projects/core/components/svg/svg.component.ts @@ -8,38 +8,28 @@ import { Input, SecurityContext, } from '@angular/core'; -import {DomSanitizer, type SafeHtml} from '@angular/platform-browser'; +import type {SafeHtml} from '@angular/platform-browser'; +import {DomSanitizer} from '@angular/platform-browser'; import {WINDOW} from '@ng-web-apis/common'; +import type {TuiSafeHtml} from '@taiga-ui/cdk'; import { TUI_BASE_HREF, tuiAssert, tuiGetDocumentOrShadowRoot, tuiIsString, tuiPure, - type TuiSafeHtml, TuiStaticRequestService, } from '@taiga-ui/cdk'; import {TUI_CACHE_BUSTING_PAYLOAD, TUI_ICON_ERROR} from '@taiga-ui/core/constants'; -import {type TuiIconError} from '@taiga-ui/core/interfaces'; +import type {TuiIconError} from '@taiga-ui/core/interfaces'; import {TuiSvgService} from '@taiga-ui/core/services'; import {TUI_SANITIZER} from '@taiga-ui/core/tokens'; import {tuiIsPresumedHTMLString} from '@taiga-ui/core/utils/miscellaneous'; -import { - catchError, - map, - type Observable, - of, - ReplaySubject, - startWith, - switchMap, -} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {catchError, map, of, ReplaySubject, startWith, switchMap} from 'rxjs'; -import { - TUI_SVG_OPTIONS, - TUI_SVG_SRC_INTERCEPTORS, - type TuiSvgInterceptorHandler, - type TuiSvgOptions, -} from './svg-options'; +import type {TuiSvgInterceptorHandler, TuiSvgOptions} from './svg-options'; +import {TUI_SVG_OPTIONS, TUI_SVG_SRC_INTERCEPTORS} from './svg-options'; const UNDEFINED_NAMED_ICON = 'Attempted to use undefined named icon'; const MISSING_EXTERNAL_ICON = 'External icon is missing on the given URL'; diff --git a/projects/core/components/svg/test/svg-options.component.spec.ts b/projects/core/components/svg/test/svg-options.component.spec.ts index e5507e0077d0..82fea8140ad3 100644 --- a/projects/core/components/svg/test/svg-options.component.spec.ts +++ b/projects/core/components/svg/test/svg-options.component.spec.ts @@ -1,12 +1,8 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; -import { - TUI_BASE_HREF, - TUI_VERSION, - tuiIsString, - type TuiSafeHtml, - type TuiStringHandler, -} from '@taiga-ui/cdk'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; +import type {TuiSafeHtml, TuiStringHandler} from '@taiga-ui/cdk'; +import {TUI_BASE_HREF, TUI_VERSION, tuiIsString} from '@taiga-ui/cdk'; import { TUI_ICONS_PATH, TUI_ICONS_PLACE, diff --git a/projects/core/components/svg/test/svg.component.spec.ts b/projects/core/components/svg/test/svg.component.spec.ts index e6099b6d7622..a85952ed2623 100644 --- a/projects/core/components/svg/test/svg.component.spec.ts +++ b/projects/core/components/svg/test/svg.component.spec.ts @@ -1,7 +1,8 @@ -import {type HarnessLoader} from '@angular/cdk/testing'; +import type {HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component, inject, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {TuiStaticRequestService} from '@taiga-ui/cdk'; import {TuiSvgComponent, TuiSvgModule, TuiSvgService} from '@taiga-ui/core'; import {TUI_SANITIZER_MOCK, TuiSvgHarness} from '@taiga-ui/testing'; diff --git a/projects/core/components/tooltip/tooltip.component.ts b/projects/core/components/tooltip/tooltip.component.ts index cda4170538bc..4dc9574dde8d 100644 --- a/projects/core/components/tooltip/tooltip.component.ts +++ b/projects/core/components/tooltip/tooltip.component.ts @@ -11,7 +11,7 @@ import {TUI_IS_MOBILE, TuiDestroyService} from '@taiga-ui/cdk'; import {TuiHintHoverDirective, TuiHintOptionsDirective} from '@taiga-ui/core/directives'; import {MODE_PROVIDER} from '@taiga-ui/core/providers'; import {TUI_MODE} from '@taiga-ui/core/tokens'; -import {type TuiBrightness} from '@taiga-ui/core/types'; +import type {TuiBrightness} from '@taiga-ui/core/types'; import {takeUntil} from 'rxjs'; @Component({ diff --git a/projects/core/constants/default-icons-path.ts b/projects/core/constants/default-icons-path.ts index 12a061406098..a38c8f6aa448 100644 --- a/projects/core/constants/default-icons-path.ts +++ b/projects/core/constants/default-icons-path.ts @@ -1,4 +1,4 @@ -import {type TuiStringHandler} from '@taiga-ui/cdk'; +import type {TuiStringHandler} from '@taiga-ui/cdk'; export const DEFAULT_ICONS_PATH: TuiStringHandler = name => name.includes('.svg#') ? name : `#${name}`; diff --git a/projects/core/constants/default-marker-handler.ts b/projects/core/constants/default-marker-handler.ts index aa452447a619..c2f6b1006a5d 100644 --- a/projects/core/constants/default-marker-handler.ts +++ b/projects/core/constants/default-marker-handler.ts @@ -1,4 +1,4 @@ import {EMPTY_ARRAY} from '@taiga-ui/cdk'; -import {type TuiMarkerHandler} from '@taiga-ui/core/types'; +import type {TuiMarkerHandler} from '@taiga-ui/core/types'; export const TUI_DEFAULT_MARKER_HANDLER: TuiMarkerHandler = () => EMPTY_ARRAY; diff --git a/projects/core/constants/default-number-format.ts b/projects/core/constants/default-number-format.ts index eac8ba960e5a..c4ceb97ee183 100644 --- a/projects/core/constants/default-number-format.ts +++ b/projects/core/constants/default-number-format.ts @@ -1,5 +1,5 @@ import {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk'; -import {type TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; +import type {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; export const TUI_DEFAULT_NUMBER_FORMAT: TuiNumberFormatSettings = { decimalLimit: NaN, diff --git a/projects/core/constants/hint-directions.ts b/projects/core/constants/hint-directions.ts index 92e3a2a0965b..ee18e92dfae9 100644 --- a/projects/core/constants/hint-directions.ts +++ b/projects/core/constants/hint-directions.ts @@ -1,4 +1,4 @@ -import {type TuiHintDirection} from '@taiga-ui/core/types'; +import type {TuiHintDirection} from '@taiga-ui/core/types'; export const TUI_HINT_DIRECTIONS: readonly TuiHintDirection[] = [ 'bottom-left', diff --git a/projects/core/directives/appearance/appearance.directive.ts b/projects/core/directives/appearance/appearance.directive.ts index 2b54065b1757..b12270096480 100644 --- a/projects/core/directives/appearance/appearance.directive.ts +++ b/projects/core/directives/appearance/appearance.directive.ts @@ -1,5 +1,5 @@ import {Directive, inject, Input} from '@angular/core'; -import {type TuiInteractiveStateT} from '@taiga-ui/core/enums'; +import type {TuiInteractiveStateT} from '@taiga-ui/core/enums'; import {TUI_APPEARANCE_OPTIONS} from './appearance.options'; diff --git a/projects/core/directives/appearance/appearance.options.ts b/projects/core/directives/appearance/appearance.options.ts index edde85d8cead..2404113975d3 100644 --- a/projects/core/directives/appearance/appearance.options.ts +++ b/projects/core/directives/appearance/appearance.options.ts @@ -1,4 +1,4 @@ -import {type Provider, type ProviderToken} from '@angular/core'; +import type {Provider, ProviderToken} from '@angular/core'; import {tuiCreateToken} from '@taiga-ui/cdk'; export interface TuiAppearanceOptions { diff --git a/projects/core/directives/dropdown/dropdown-hover.options.ts b/projects/core/directives/dropdown/dropdown-hover.options.ts index 80b000825356..2a16bf274eac 100644 --- a/projects/core/directives/dropdown/dropdown-hover.options.ts +++ b/projects/core/directives/dropdown/dropdown-hover.options.ts @@ -1,4 +1,4 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiDropdownHoverOptions { diff --git a/projects/core/directives/dropdown/dropdown-manual.directive.ts b/projects/core/directives/dropdown/dropdown-manual.directive.ts index 1a6569e81729..6ec71f5b9d80 100644 --- a/projects/core/directives/dropdown/dropdown-manual.directive.ts +++ b/projects/core/directives/dropdown/dropdown-manual.directive.ts @@ -1,4 +1,5 @@ -import {Directive, inject, Input, type OnChanges} from '@angular/core'; +import type {OnChanges} from '@angular/core'; +import {Directive, inject, Input} from '@angular/core'; import {tuiAsDriver} from '@taiga-ui/core/abstract'; import {TuiDropdownDriver} from './dropdown.driver'; diff --git a/projects/core/directives/dropdown/dropdown-open.directive.ts b/projects/core/directives/dropdown/dropdown-open.directive.ts index 3e471cf9cf38..a34a87059efd 100644 --- a/projects/core/directives/dropdown/dropdown-open.directive.ts +++ b/projects/core/directives/dropdown/dropdown-open.directive.ts @@ -1,3 +1,4 @@ +import type {OnChanges} from '@angular/core'; import { ContentChild, Directive, @@ -6,7 +7,6 @@ import { HostListener, inject, Input, - type OnChanges, Output, } from '@angular/core'; import { diff --git a/projects/core/directives/dropdown/dropdown-options.directive.ts b/projects/core/directives/dropdown/dropdown-options.directive.ts index 56e22e7461cb..5aeb8be3ed77 100644 --- a/projects/core/directives/dropdown/dropdown-options.directive.ts +++ b/projects/core/directives/dropdown/dropdown-options.directive.ts @@ -1,17 +1,10 @@ -import { - Directive, - type FactoryProvider, - forwardRef, - inject, - Input, - Optional, - SkipSelf, -} from '@angular/core'; +import type {FactoryProvider} from '@angular/core'; +import {Directive, forwardRef, inject, Input, Optional, SkipSelf} from '@angular/core'; import {tuiCreateToken} from '@taiga-ui/cdk'; -import { - type TuiDropdownAlign, - type TuiDropdownWidth, - type TuiVerticalDirection, +import type { + TuiDropdownAlign, + TuiDropdownWidth, + TuiVerticalDirection, } from '@taiga-ui/core/types'; import {tuiOverrideOptions} from '@taiga-ui/core/utils'; diff --git a/projects/core/directives/dropdown/dropdown-portal.directive.ts b/projects/core/directives/dropdown/dropdown-portal.directive.ts index 849b223eeedc..d95f7604e770 100644 --- a/projects/core/directives/dropdown/dropdown-portal.directive.ts +++ b/projects/core/directives/dropdown/dropdown-portal.directive.ts @@ -1,11 +1,5 @@ -import { - Directive, - type EmbeddedViewRef, - inject, - Input, - type OnDestroy, - TemplateRef, -} from '@angular/core'; +import type {EmbeddedViewRef, OnDestroy} from '@angular/core'; +import {Directive, inject, Input, TemplateRef} from '@angular/core'; import {TuiDropdownService} from './dropdown.service'; diff --git a/projects/core/directives/dropdown/dropdown-position-sided.directive.ts b/projects/core/directives/dropdown/dropdown-position-sided.directive.ts index a6a193a5c579..e0944c2d796f 100644 --- a/projects/core/directives/dropdown/dropdown-position-sided.directive.ts +++ b/projects/core/directives/dropdown/dropdown-position-sided.directive.ts @@ -2,7 +2,7 @@ import {Directive, inject, Input} from '@angular/core'; import {EMPTY_CLIENT_RECT} from '@taiga-ui/cdk'; import {tuiAsPositionAccessor, TuiPositionAccessor} from '@taiga-ui/core/abstract'; import {TUI_VIEWPORT} from '@taiga-ui/core/tokens'; -import {type TuiPoint} from '@taiga-ui/core/types'; +import type {TuiPoint} from '@taiga-ui/core/types'; import {TUI_DROPDOWN_OPTIONS} from './dropdown-options.directive'; import {TuiDropdownPositionDirective} from './dropdown-position.directive'; diff --git a/projects/core/directives/dropdown/dropdown-position.directive.ts b/projects/core/directives/dropdown/dropdown-position.directive.ts index 0d8ead2413b7..b99f05d1275b 100644 --- a/projects/core/directives/dropdown/dropdown-position.directive.ts +++ b/projects/core/directives/dropdown/dropdown-position.directive.ts @@ -6,7 +6,7 @@ import { TuiRectAccessor, } from '@taiga-ui/core/abstract'; import {TUI_VIEWPORT} from '@taiga-ui/core/tokens'; -import {type TuiPoint, type TuiVerticalDirection} from '@taiga-ui/core/types'; +import type {TuiPoint, TuiVerticalDirection} from '@taiga-ui/core/types'; import {TuiDropdownDirective} from './dropdown.directive'; import {TUI_DROPDOWN_OPTIONS} from './dropdown-options.directive'; diff --git a/projects/core/directives/dropdown/dropdown-selection.directive.ts b/projects/core/directives/dropdown/dropdown-selection.directive.ts index dc61d96cf412..44d852837aae 100644 --- a/projects/core/directives/dropdown/dropdown-selection.directive.ts +++ b/projects/core/directives/dropdown/dropdown-selection.directive.ts @@ -1,19 +1,13 @@ import {DOCUMENT} from '@angular/common'; -import { - Directive, - ElementRef, - inject, - Input, - type OnDestroy, - ViewContainerRef, -} from '@angular/core'; +import type {OnDestroy} from '@angular/core'; +import {Directive, ElementRef, inject, Input, ViewContainerRef} from '@angular/core'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; import { ALWAYS_TRUE_HANDLER, CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_SPACE, EMPTY_CLIENT_RECT, TUI_RANGE, - type TuiBooleanHandler, tuiGetNativeFocused, tuiIsElement, tuiIsString, @@ -21,12 +15,8 @@ import { tuiIsTextNode, tuiPx, } from '@taiga-ui/cdk'; -import { - tuiAsDriver, - tuiAsRectAccessor, - TuiDriver, - type TuiRectAccessor, -} from '@taiga-ui/core/abstract'; +import type {TuiRectAccessor} from '@taiga-ui/core/abstract'; +import {tuiAsDriver, tuiAsRectAccessor, TuiDriver} from '@taiga-ui/core/abstract'; import {TUI_SELECTION_STREAM} from '@taiga-ui/core/tokens'; import {tuiGetWordRange} from '@taiga-ui/core/utils'; import {BehaviorSubject, combineLatest, distinctUntilChanged, map} from 'rxjs'; diff --git a/projects/core/directives/dropdown/dropdown.component.ts b/projects/core/directives/dropdown/dropdown.component.ts index ab8853af0f43..61044c68e251 100644 --- a/projects/core/directives/dropdown/dropdown.component.ts +++ b/projects/core/directives/dropdown/dropdown.component.ts @@ -1,10 +1,5 @@ -import { - ChangeDetectionStrategy, - Component, - ElementRef, - inject, - type OnInit, -} from '@angular/core'; +import type {OnInit} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ElementRef, inject} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; import { TuiActiveZoneModule, @@ -24,10 +19,11 @@ import {TuiScrollbarComponent} from '@taiga-ui/core/components/scrollbar'; import {MODE_PROVIDER} from '@taiga-ui/core/providers'; import {TuiPositionService, TuiVisualViewportService} from '@taiga-ui/core/services'; import {TUI_ANIMATIONS_SPEED, TUI_MODE} from '@taiga-ui/core/tokens'; -import {type TuiBrightness} from '@taiga-ui/core/types'; +import type {TuiBrightness} from '@taiga-ui/core/types'; import {tuiToAnimationOptions} from '@taiga-ui/core/utils'; import {PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; -import {map, type Observable, takeUntil} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map, takeUntil} from 'rxjs'; import {TuiDropdownDirective} from './dropdown.directive'; import {TUI_DROPDOWN_CONTEXT} from './dropdown.providers'; diff --git a/projects/core/directives/dropdown/dropdown.directive.ts b/projects/core/directives/dropdown/dropdown.directive.ts index 4f8f9cf7aa6b..9abf50c906a1 100644 --- a/projects/core/directives/dropdown/dropdown.directive.ts +++ b/projects/core/directives/dropdown/dropdown.directive.ts @@ -1,35 +1,21 @@ +import type {AfterViewChecked, ComponentRef, OnChanges, OnDestroy} from '@angular/core'; import { - type AfterViewChecked, ChangeDetectorRef, - type ComponentRef, Directive, ElementRef, inject, INJECTOR, Input, - type OnChanges, - type OnDestroy, TemplateRef, } from '@angular/core'; -import { - type TuiActiveZoneDirective, - type TuiContext, - TuiDestroyService, - tuiPure, -} from '@taiga-ui/cdk'; -import { - tuiAsRectAccessor, - tuiAsVehicle, - type TuiRectAccessor, - type TuiVehicle, -} from '@taiga-ui/core/abstract'; -import {type TuiPortalItem} from '@taiga-ui/core/interfaces'; +import type {TuiActiveZoneDirective, TuiContext} from '@taiga-ui/cdk'; +import {TuiDestroyService, tuiPure} from '@taiga-ui/cdk'; +import type {TuiRectAccessor, TuiVehicle} from '@taiga-ui/core/abstract'; +import {tuiAsRectAccessor, tuiAsVehicle} from '@taiga-ui/core/abstract'; +import type {TuiPortalItem} from '@taiga-ui/core/interfaces'; import {tuiCheckFixedPosition} from '@taiga-ui/core/utils'; -import { - PolymorpheusComponent, - type PolymorpheusContent, - PolymorpheusTemplate, -} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {PolymorpheusComponent, PolymorpheusTemplate} from '@tinkoff/ng-polymorpheus'; import {Subject, takeUntil, throttleTime} from 'rxjs'; import {TuiDropdownDriverDirective} from './dropdown.driver'; diff --git a/projects/core/directives/dropdown/dropdown.driver.ts b/projects/core/directives/dropdown/dropdown.driver.ts index 223b390d3615..e13a30c99d5d 100644 --- a/projects/core/directives/dropdown/dropdown.driver.ts +++ b/projects/core/directives/dropdown/dropdown.driver.ts @@ -1,6 +1,7 @@ import {Directive, Injectable} from '@angular/core'; import {TuiDestroyService} from '@taiga-ui/cdk'; -import {AbstractTuiDriverDirective, type TuiDriver} from '@taiga-ui/core/abstract'; +import type {TuiDriver} from '@taiga-ui/core/abstract'; +import {AbstractTuiDriverDirective} from '@taiga-ui/core/abstract'; import {Subject} from 'rxjs'; @Injectable() diff --git a/projects/core/directives/dropdown/dropdown.providers.ts b/projects/core/directives/dropdown/dropdown.providers.ts index 844838cddea8..c00242c6988d 100644 --- a/projects/core/directives/dropdown/dropdown.providers.ts +++ b/projects/core/directives/dropdown/dropdown.providers.ts @@ -1,4 +1,5 @@ -import {InjectionToken, type Type} from '@angular/core'; +import type {Type} from '@angular/core'; +import {InjectionToken} from '@angular/core'; import {tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; import {TuiDropdownComponent} from './dropdown.component'; diff --git a/projects/core/directives/dropdown/test/dropdown.directive.spec.ts b/projects/core/directives/dropdown/test/dropdown.directive.spec.ts index a047de829df3..b81e929801c1 100644 --- a/projects/core/directives/dropdown/test/dropdown.directive.spec.ts +++ b/projects/core/directives/dropdown/test/dropdown.directive.spec.ts @@ -1,5 +1,7 @@ -import {Component, type ElementRef} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ElementRef} from '@angular/core'; +import {Component} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiPageObject} from '@taiga-ui/testing'; import {PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; diff --git a/projects/core/directives/hint/hint-describe.directive.ts b/projects/core/directives/hint/hint-describe.directive.ts index d2784e5e1ffd..d471688259eb 100644 --- a/projects/core/directives/hint/hint-describe.directive.ts +++ b/projects/core/directives/hint/hint-describe.directive.ts @@ -1,12 +1,6 @@ import {DOCUMENT} from '@angular/common'; -import { - Directive, - ElementRef, - inject, - Input, - NgZone, - type OnChanges, -} from '@angular/core'; +import type {OnChanges} from '@angular/core'; +import {Directive, ElementRef, inject, Input, NgZone} from '@angular/core'; import { tuiIfMap, tuiIsNativeFocused, diff --git a/projects/core/directives/hint/hint-hover.directive.ts b/projects/core/directives/hint/hint-hover.directive.ts index 42e011e10d4c..017def24904e 100644 --- a/projects/core/directives/hint/hint-hover.directive.ts +++ b/projects/core/directives/hint/hint-hover.directive.ts @@ -16,7 +16,8 @@ import { tap, } from 'rxjs'; -import {TUI_HINT_OPTIONS, type TuiHintOptions} from './hint-options.directive'; +import type {TuiHintOptions} from './hint-options.directive'; +import {TUI_HINT_OPTIONS} from './hint-options.directive'; @Directive({ selector: '[tuiHint]:not(ng-container):not(ng-template)', diff --git a/projects/core/directives/hint/hint-manual.directive.ts b/projects/core/directives/hint/hint-manual.directive.ts index b29039300e8f..c771ad6e6842 100644 --- a/projects/core/directives/hint/hint-manual.directive.ts +++ b/projects/core/directives/hint/hint-manual.directive.ts @@ -1,4 +1,5 @@ -import {Directive, inject, Input, type OnChanges} from '@angular/core'; +import type {OnChanges} from '@angular/core'; +import {Directive, inject, Input} from '@angular/core'; import {tuiAsDriver, TuiDriver} from '@taiga-ui/core/abstract'; import {BehaviorSubject} from 'rxjs'; diff --git a/projects/core/directives/hint/hint-options.directive.ts b/projects/core/directives/hint/hint-options.directive.ts index 101682090e4b..c015806c903f 100644 --- a/projects/core/directives/hint/hint-options.directive.ts +++ b/projects/core/directives/hint/hint-options.directive.ts @@ -1,16 +1,9 @@ -import { - Directive, - type FactoryProvider, - forwardRef, - inject, - Input, - Optional, - SkipSelf, -} from '@angular/core'; +import type {FactoryProvider} from '@angular/core'; +import {Directive, forwardRef, inject, Input, Optional, SkipSelf} from '@angular/core'; import {AbstractTuiController, tuiCreateToken} from '@taiga-ui/cdk'; -import {type TuiHintDirection} from '@taiga-ui/core/types'; +import type {TuiHintDirection} from '@taiga-ui/core/types'; import {tuiOverrideOptions} from '@taiga-ui/core/utils'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiHintOptions { readonly appearance: string; diff --git a/projects/core/directives/hint/hint-pointer.directive.ts b/projects/core/directives/hint/hint-pointer.directive.ts index 453ab4dcf9be..4b08d9236a8c 100644 --- a/projects/core/directives/hint/hint-pointer.directive.ts +++ b/projects/core/directives/hint/hint-pointer.directive.ts @@ -1,10 +1,7 @@ import {Directive, HostListener} from '@angular/core'; import {EMPTY_CLIENT_RECT, tuiPointToClientRect} from '@taiga-ui/cdk'; -import { - tuiAsDriver, - tuiAsRectAccessor, - type TuiRectAccessor, -} from '@taiga-ui/core/abstract'; +import type {TuiRectAccessor} from '@taiga-ui/core/abstract'; +import {tuiAsDriver, tuiAsRectAccessor} from '@taiga-ui/core/abstract'; import {TuiHintHoverDirective} from './hint-hover.directive'; diff --git a/projects/core/directives/hint/hint-position.directive.ts b/projects/core/directives/hint/hint-position.directive.ts index 5bb9f5effd6f..2a0e396b4592 100644 --- a/projects/core/directives/hint/hint-position.directive.ts +++ b/projects/core/directives/hint/hint-position.directive.ts @@ -7,10 +7,11 @@ import { } from '@taiga-ui/core/abstract'; import {TUI_HINT_DIRECTIONS} from '@taiga-ui/core/constants'; import {TUI_VIEWPORT} from '@taiga-ui/core/tokens'; -import {type TuiHintDirection, type TuiPoint} from '@taiga-ui/core/types'; +import type {TuiHintDirection, TuiPoint} from '@taiga-ui/core/types'; import {TuiHintDirective} from './hint.directive'; -import {TUI_HINT_OPTIONS, type TuiHintOptions} from './hint-options.directive'; +import type {TuiHintOptions} from './hint-options.directive'; +import {TUI_HINT_OPTIONS} from './hint-options.directive'; const OFFSET = 8; const ARROW_OFFSET = 22; diff --git a/projects/core/directives/hint/hint-unstyled.component.ts b/projects/core/directives/hint/hint-unstyled.component.ts index 11a1ceb374cb..e662b34dc235 100644 --- a/projects/core/directives/hint/hint-unstyled.component.ts +++ b/projects/core/directives/hint/hint-unstyled.component.ts @@ -5,9 +5,9 @@ import { inject, TemplateRef, } from '@angular/core'; -import {type TuiContext} from '@taiga-ui/cdk'; +import type {TuiContext} from '@taiga-ui/cdk'; import {TUI_PARENT_ANIMATION} from '@taiga-ui/core/animations'; -import {type TuiPortalItem} from '@taiga-ui/core/interfaces'; +import type {TuiPortalItem} from '@taiga-ui/core/interfaces'; import {POLYMORPHEUS_CONTEXT, PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; import {TuiHintDirective} from './hint.directive'; diff --git a/projects/core/directives/hint/hint.component.ts b/projects/core/directives/hint/hint.component.ts index 9ac029c7c5fc..e6ebaff04774 100644 --- a/projects/core/directives/hint/hint.component.ts +++ b/projects/core/directives/hint/hint.component.ts @@ -6,10 +6,10 @@ import { HostListener, inject, } from '@angular/core'; +import type {TuiContext} from '@taiga-ui/cdk'; import { EMPTY_CLIENT_RECT, tuiClamp, - type TuiContext, TuiDestroyService, TuiHoveredService, tuiPure, @@ -22,11 +22,12 @@ import { } from '@taiga-ui/core/abstract'; import {tuiFadeIn} from '@taiga-ui/core/animations'; import {TuiModeDirective} from '@taiga-ui/core/directives/mode'; -import {type TuiPortalItem} from '@taiga-ui/core/interfaces'; +import type {TuiPortalItem} from '@taiga-ui/core/interfaces'; import {TuiPositionService, TuiVisualViewportService} from '@taiga-ui/core/services'; import {TUI_ANIMATIONS_SPEED, TUI_VIEWPORT} from '@taiga-ui/core/tokens'; import {tuiIsObscured, tuiToAnimationOptions} from '@taiga-ui/core/utils'; -import {POLYMORPHEUS_CONTEXT, type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; import {map, takeUntil} from 'rxjs'; import {TuiHintDirective} from './hint.directive'; diff --git a/projects/core/directives/hint/hint.directive.ts b/projects/core/directives/hint/hint.directive.ts index cfa75d873ba8..e5ef5ce55e01 100644 --- a/projects/core/directives/hint/hint.directive.ts +++ b/projects/core/directives/hint/hint.directive.ts @@ -1,22 +1,12 @@ -import { - Directive, - ElementRef, - inject, - INJECTOR, - Input, - type OnChanges, - type OnDestroy, -} from '@angular/core'; +import type {OnChanges, OnDestroy} from '@angular/core'; +import {Directive, ElementRef, inject, INJECTOR, Input} from '@angular/core'; import {TuiActiveZoneDirective} from '@taiga-ui/cdk'; -import { - tuiAsRectAccessor, - tuiAsVehicle, - type TuiRectAccessor, - type TuiVehicle, -} from '@taiga-ui/core/abstract'; -import {type TuiPortalItem} from '@taiga-ui/core/interfaces'; +import type {TuiRectAccessor, TuiVehicle} from '@taiga-ui/core/abstract'; +import {tuiAsRectAccessor, tuiAsVehicle} from '@taiga-ui/core/abstract'; +import type {TuiPortalItem} from '@taiga-ui/core/interfaces'; import {TuiHintService} from '@taiga-ui/core/services'; -import {PolymorpheusComponent, type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; import {TUI_HINT_COMPONENT} from './hint.providers'; import {TUI_HINT_OPTIONS} from './hint-options.directive'; diff --git a/projects/core/directives/hint/hint.providers.ts b/projects/core/directives/hint/hint.providers.ts index 4f8c2eb86b90..40686348b42e 100644 --- a/projects/core/directives/hint/hint.providers.ts +++ b/projects/core/directives/hint/hint.providers.ts @@ -1,4 +1,4 @@ -import {type Type} from '@angular/core'; +import type {Type} from '@angular/core'; import {tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; import {TuiHintComponent} from './hint.component'; diff --git a/projects/core/directives/hint/test/hint.directive.spec.ts b/projects/core/directives/hint/test/hint.directive.spec.ts index 8269df597315..d8b74d82c128 100644 --- a/projects/core/directives/hint/test/hint.directive.spec.ts +++ b/projects/core/directives/hint/test/hint.directive.spec.ts @@ -1,11 +1,7 @@ -import {Component, type TemplateRef} from '@angular/core'; -import { - type ComponentFixture, - discardPeriodicTasks, - fakeAsync, - TestBed, - tick, -} from '@angular/core/testing'; +import type {TemplateRef} from '@angular/core'; +import {Component} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {discardPeriodicTasks, fakeAsync, TestBed, tick} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiHintModule, TuiRootModule} from '@taiga-ui/core'; diff --git a/projects/core/directives/icons/icons.directive.ts b/projects/core/directives/icons/icons.directive.ts index 847f848f72e2..b29bd3c00be8 100644 --- a/projects/core/directives/icons/icons.directive.ts +++ b/projects/core/directives/icons/icons.directive.ts @@ -1,5 +1,6 @@ import {Directive, inject, Input} from '@angular/core'; -import {type TuiStringHandler, tuiWithStyles} from '@taiga-ui/cdk'; +import type {TuiStringHandler} from '@taiga-ui/cdk'; +import {tuiWithStyles} from '@taiga-ui/cdk'; import {TUI_ICON_RESOLVER} from '@taiga-ui/core/tokens'; import {TuiIconsComponent} from './icons.component'; diff --git a/projects/core/directives/mask-accessor/mask-accessor.directive.ts b/projects/core/directives/mask-accessor/mask-accessor.directive.ts index 3f59827198b6..8bd01c2ca190 100644 --- a/projects/core/directives/mask-accessor/mask-accessor.directive.ts +++ b/projects/core/directives/mask-accessor/mask-accessor.directive.ts @@ -1,9 +1,6 @@ import {Directive, Optional} from '@angular/core'; -import { - type ControlValueAccessor, - DefaultValueAccessor, - NG_VALUE_ACCESSOR, -} from '@angular/forms'; +import type {ControlValueAccessor} from '@angular/forms'; +import {DefaultValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms'; import {TUI_VALUE_ACCESSOR} from '@taiga-ui/core/tokens'; @Directive({ diff --git a/projects/core/directives/mode/mode.directive.ts b/projects/core/directives/mode/mode.directive.ts index ec3956edeaa9..2d7c2645f95b 100644 --- a/projects/core/directives/mode/mode.directive.ts +++ b/projects/core/directives/mode/mode.directive.ts @@ -1,6 +1,6 @@ import {Directive, Input} from '@angular/core'; import {AbstractTuiController} from '@taiga-ui/cdk'; -import {type TuiBrightness} from '@taiga-ui/core/types'; +import type {TuiBrightness} from '@taiga-ui/core/types'; @Directive({ selector: '[tuiMode]', diff --git a/projects/core/directives/number-format/number-format.directive.ts b/projects/core/directives/number-format/number-format.directive.ts index 5baaa789b8ea..365d6b2743b9 100644 --- a/projects/core/directives/number-format/number-format.directive.ts +++ b/projects/core/directives/number-format/number-format.directive.ts @@ -1,5 +1,5 @@ import {Directive, forwardRef, inject, Input} from '@angular/core'; -import {type TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; +import type {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; import {TUI_NUMBER_FORMAT} from '@taiga-ui/core/tokens'; import {combineLatest, map, Observable, ReplaySubject} from 'rxjs'; diff --git a/projects/core/directives/textfield-controller/textfield-controller.provider.ts b/projects/core/directives/textfield-controller/textfield-controller.provider.ts index 5f2e8e428c26..688216ca7647 100644 --- a/projects/core/directives/textfield-controller/textfield-controller.provider.ts +++ b/projects/core/directives/textfield-controller/textfield-controller.provider.ts @@ -1,50 +1,33 @@ -import {ChangeDetectorRef, InjectionToken, type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {ChangeDetectorRef, InjectionToken} from '@angular/core'; import {TuiDestroyService, tuiWatch} from '@taiga-ui/cdk'; import {TUI_TEXTFIELD_APPEARANCE} from '@taiga-ui/core/tokens'; -import {merge, NEVER, type Observable, takeUntil} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {merge, NEVER, takeUntil} from 'rxjs'; import {TuiTextfieldController} from './textfield.controller'; -import {TUI_TEXTFIELD_OPTIONS, type TuiTextfieldOptions} from './textfield.options'; -import { - TUI_TEXTFIELD_APPEARANCE_DIRECTIVE, - type TuiTextfieldAppearanceDirective, -} from './textfield-appearance.directive'; -import { - TUI_TEXTFIELD_CLEANER, - type TuiTextfieldCleanerDirective, -} from './textfield-cleaner.directive'; -import { - TUI_TEXTFIELD_CUSTOM_CONTENT, - type TuiTextfieldCustomContentDirective, -} from './textfield-custom-content.directive'; -import { - TUI_TEXTFIELD_FILLER, - type TuiTextfieldFillerDirective, -} from './textfield-filler.directive'; -import { - TUI_TEXTFIELD_ICON, - type TuiTextfieldIconDirective, -} from './textfield-icon.directive'; -import { - TUI_TEXTFIELD_ICON_LEFT, - type TuiTextfieldIconLeftDirective, -} from './textfield-icon-left.directive'; -import { - TUI_TEXTFIELD_LABEL_OUTSIDE, - type TuiTextfieldLabelOutsideDirective, -} from './textfield-label-outside.directive'; -import { - TUI_TEXTFIELD_POSTFIX, - type TuiTextfieldPostfixDirective, -} from './textfield-postfix.directive'; -import { - TUI_TEXTFIELD_PREFIX, - type TuiTextfieldPrefixDirective, -} from './textfield-prefix.directive'; -import { - TUI_TEXTFIELD_SIZE, - type TuiTextfieldSizeDirective, -} from './textfield-size.directive'; +import type {TuiTextfieldOptions} from './textfield.options'; +import {TUI_TEXTFIELD_OPTIONS} from './textfield.options'; +import type {TuiTextfieldAppearanceDirective} from './textfield-appearance.directive'; +import {TUI_TEXTFIELD_APPEARANCE_DIRECTIVE} from './textfield-appearance.directive'; +import type {TuiTextfieldCleanerDirective} from './textfield-cleaner.directive'; +import {TUI_TEXTFIELD_CLEANER} from './textfield-cleaner.directive'; +import type {TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive'; +import {TUI_TEXTFIELD_CUSTOM_CONTENT} from './textfield-custom-content.directive'; +import type {TuiTextfieldFillerDirective} from './textfield-filler.directive'; +import {TUI_TEXTFIELD_FILLER} from './textfield-filler.directive'; +import type {TuiTextfieldIconDirective} from './textfield-icon.directive'; +import {TUI_TEXTFIELD_ICON} from './textfield-icon.directive'; +import type {TuiTextfieldIconLeftDirective} from './textfield-icon-left.directive'; +import {TUI_TEXTFIELD_ICON_LEFT} from './textfield-icon-left.directive'; +import type {TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive'; +import {TUI_TEXTFIELD_LABEL_OUTSIDE} from './textfield-label-outside.directive'; +import type {TuiTextfieldPostfixDirective} from './textfield-postfix.directive'; +import {TUI_TEXTFIELD_POSTFIX} from './textfield-postfix.directive'; +import type {TuiTextfieldPrefixDirective} from './textfield-prefix.directive'; +import {TUI_TEXTFIELD_PREFIX} from './textfield-prefix.directive'; +import type {TuiTextfieldSizeDirective} from './textfield-size.directive'; +import {TUI_TEXTFIELD_SIZE} from './textfield-size.directive'; export const TUI_TEXTFIELD_WATCHED_CONTROLLER = new InjectionToken('[TUI_TEXTFIELD_WATCHED_CONTROLLER]'); diff --git a/projects/core/directives/textfield-controller/textfield-custom-content.directive.ts b/projects/core/directives/textfield-controller/textfield-custom-content.directive.ts index 491170582c24..977c248395d3 100644 --- a/projects/core/directives/textfield-controller/textfield-custom-content.directive.ts +++ b/projects/core/directives/textfield-controller/textfield-custom-content.directive.ts @@ -1,6 +1,6 @@ import {Directive, forwardRef, Input} from '@angular/core'; import {AbstractTuiController, tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export const TUI_TEXTFIELD_CUSTOM_CONTENT = tuiCreateTokenFromFactory( () => new TuiTextfieldCustomContentDirective(), diff --git a/projects/core/directives/textfield-controller/textfield-icon-left.directive.ts b/projects/core/directives/textfield-controller/textfield-icon-left.directive.ts index bf4e89e69cab..23ab076d219b 100644 --- a/projects/core/directives/textfield-controller/textfield-icon-left.directive.ts +++ b/projects/core/directives/textfield-controller/textfield-icon-left.directive.ts @@ -1,11 +1,8 @@ import {Directive, forwardRef, Input} from '@angular/core'; -import { - AbstractTuiController, - type TuiContext, - tuiCreateTokenFromFactory, -} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {AbstractTuiController, tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export const TUI_TEXTFIELD_ICON_LEFT = tuiCreateTokenFromFactory( () => new TuiTextfieldIconLeftDirective(), diff --git a/projects/core/directives/textfield-controller/textfield-icon.directive.ts b/projects/core/directives/textfield-controller/textfield-icon.directive.ts index c2b7a43001f0..dd37ecb2e9be 100644 --- a/projects/core/directives/textfield-controller/textfield-icon.directive.ts +++ b/projects/core/directives/textfield-controller/textfield-icon.directive.ts @@ -1,11 +1,8 @@ import {Directive, forwardRef, Input} from '@angular/core'; -import { - AbstractTuiController, - type TuiContext, - tuiCreateTokenFromFactory, -} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {AbstractTuiController, tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export const TUI_TEXTFIELD_ICON = tuiCreateTokenFromFactory( () => new TuiTextfieldIconDirective(), diff --git a/projects/core/directives/textfield-controller/textfield-size.directive.ts b/projects/core/directives/textfield-controller/textfield-size.directive.ts index 92a01c70028f..80434330d54f 100644 --- a/projects/core/directives/textfield-controller/textfield-size.directive.ts +++ b/projects/core/directives/textfield-controller/textfield-size.directive.ts @@ -1,6 +1,6 @@ import {Directive, forwardRef, Input} from '@angular/core'; import {AbstractTuiController, tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; export const TUI_TEXTFIELD_SIZE = tuiCreateTokenFromFactory( () => new TuiTextfieldSizeDirective(), diff --git a/projects/core/directives/textfield-controller/textfield.controller.ts b/projects/core/directives/textfield-controller/textfield.controller.ts index 6182054472f6..62b21ff94f9e 100644 --- a/projects/core/directives/textfield-controller/textfield.controller.ts +++ b/projects/core/directives/textfield-controller/textfield.controller.ts @@ -1,19 +1,19 @@ -import {type TuiContext} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {type Observable} from 'rxjs'; +import type {TuiContext} from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; -import {type TuiTextfieldOptions} from './textfield.options'; -import {type TuiTextfieldAppearanceDirective} from './textfield-appearance.directive'; -import {type TuiTextfieldCleanerDirective} from './textfield-cleaner.directive'; -import {type TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive'; -import {type TuiTextfieldFillerDirective} from './textfield-filler.directive'; -import {type TuiTextfieldIconDirective} from './textfield-icon.directive'; -import {type TuiTextfieldIconLeftDirective} from './textfield-icon-left.directive'; -import {type TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive'; -import {type TuiTextfieldPostfixDirective} from './textfield-postfix.directive'; -import {type TuiTextfieldPrefixDirective} from './textfield-prefix.directive'; -import {type TuiTextfieldSizeDirective} from './textfield-size.directive'; +import type {TuiTextfieldOptions} from './textfield.options'; +import type {TuiTextfieldAppearanceDirective} from './textfield-appearance.directive'; +import type {TuiTextfieldCleanerDirective} from './textfield-cleaner.directive'; +import type {TuiTextfieldCustomContentDirective} from './textfield-custom-content.directive'; +import type {TuiTextfieldFillerDirective} from './textfield-filler.directive'; +import type {TuiTextfieldIconDirective} from './textfield-icon.directive'; +import type {TuiTextfieldIconLeftDirective} from './textfield-icon-left.directive'; +import type {TuiTextfieldLabelOutsideDirective} from './textfield-label-outside.directive'; +import type {TuiTextfieldPostfixDirective} from './textfield-postfix.directive'; +import type {TuiTextfieldPrefixDirective} from './textfield-prefix.directive'; +import type {TuiTextfieldSizeDirective} from './textfield-size.directive'; export class TuiTextfieldController { constructor( diff --git a/projects/core/directives/textfield-controller/textfield.options.ts b/projects/core/directives/textfield-controller/textfield.options.ts index 0dc1b1035870..9a205a7785c3 100644 --- a/projects/core/directives/textfield-controller/textfield.options.ts +++ b/projects/core/directives/textfield-controller/textfield.options.ts @@ -1,7 +1,8 @@ -import {type Provider} from '@angular/core'; -import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Provider} from '@angular/core'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; /** * TODO: replace with TUI_COMMON_ICONS and drop hintOnDisabled, switching it to true in v.4 diff --git a/projects/core/directives/wrapper/wrapper.directive.ts b/projects/core/directives/wrapper/wrapper.directive.ts index 1c547b1d4a58..9df38a375f2b 100644 --- a/projects/core/directives/wrapper/wrapper.directive.ts +++ b/projects/core/directives/wrapper/wrapper.directive.ts @@ -2,8 +2,8 @@ import {Directive, HostBinding, inject, Input} from '@angular/core'; import {TuiInteractiveState} from '@taiga-ui/core/enums'; import {MODE_PROVIDER} from '@taiga-ui/core/providers'; import {TUI_MODE} from '@taiga-ui/core/tokens'; -import {type TuiBrightness} from '@taiga-ui/core/types'; -import {type Observable} from 'rxjs'; +import type {TuiBrightness} from '@taiga-ui/core/types'; +import type {Observable} from 'rxjs'; @Directive({ selector: '[tuiWrapper]', diff --git a/projects/core/interfaces/data-list-host.ts b/projects/core/interfaces/data-list-host.ts index f5b5db8fcc9f..459572ddac0f 100644 --- a/projects/core/interfaces/data-list-host.ts +++ b/projects/core/interfaces/data-list-host.ts @@ -1,4 +1,4 @@ -import {type TuiIdentityMatcher, type TuiStringHandler} from '@taiga-ui/cdk'; +import type {TuiIdentityMatcher, TuiStringHandler} from '@taiga-ui/cdk'; // TODO: Consider refactoring checkOption, it is only needed in ComboBox export interface TuiDataListHost { diff --git a/projects/core/interfaces/number-format-settings.ts b/projects/core/interfaces/number-format-settings.ts index b258eab53251..d01e0585cb2c 100644 --- a/projects/core/interfaces/number-format-settings.ts +++ b/projects/core/interfaces/number-format-settings.ts @@ -1,5 +1,5 @@ -import {type TuiRounding} from '@taiga-ui/cdk'; -import {type TuiDecimal, type TuiDecimalSymbol} from '@taiga-ui/core/types'; +import type {TuiRounding} from '@taiga-ui/cdk'; +import type {TuiDecimal, TuiDecimalSymbol} from '@taiga-ui/core/types'; /** * Formatting configuration for displayed numbers diff --git a/projects/core/interfaces/portal-item.ts b/projects/core/interfaces/portal-item.ts index 8093532aa721..ae1b5722e34a 100644 --- a/projects/core/interfaces/portal-item.ts +++ b/projects/core/interfaces/portal-item.ts @@ -1,8 +1,5 @@ -import {type TuiActiveZoneDirective} from '@taiga-ui/cdk'; -import { - type PolymorpheusComponent, - type PolymorpheusContent, -} from '@tinkoff/ng-polymorpheus'; +import type {TuiActiveZoneDirective} from '@taiga-ui/cdk'; +import type {PolymorpheusComponent, PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiPortalItem { readonly activeZone?: TuiActiveZoneDirective | null; diff --git a/projects/core/interfaces/value-content-context.ts b/projects/core/interfaces/value-content-context.ts index 6cd91cb47ca1..cc66ca2789d7 100644 --- a/projects/core/interfaces/value-content-context.ts +++ b/projects/core/interfaces/value-content-context.ts @@ -1,4 +1,4 @@ -import {type TuiContext} from '@taiga-ui/cdk'; +import type {TuiContext} from '@taiga-ui/cdk'; export interface TuiValueContentContext extends TuiContext { active: boolean; diff --git a/projects/core/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.ts b/projects/core/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.ts index b974f72f974c..fd806a5fa77a 100644 --- a/projects/core/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.ts +++ b/projects/core/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.ts @@ -5,14 +5,9 @@ import { Input, Output, } from '@angular/core'; -import { - TUI_FIRST_DAY, - TUI_LAST_DAY, - TuiMonth, - type TuiMonthLike, - type TuiYear, -} from '@taiga-ui/cdk'; -import {type TuiWithOptionalMinMax} from '@taiga-ui/core/interfaces'; +import type {TuiMonthLike, TuiYear} from '@taiga-ui/cdk'; +import {TUI_FIRST_DAY, TUI_LAST_DAY, TuiMonth} from '@taiga-ui/cdk'; +import type {TuiWithOptionalMinMax} from '@taiga-ui/core/interfaces'; @Component({ selector: 'tui-primitive-year-month-pagination', diff --git a/projects/core/internal/primitive-year-month-pagination/test/primitive-year-month-pagination.component.spec.ts b/projects/core/internal/primitive-year-month-pagination/test/primitive-year-month-pagination.component.spec.ts index d877e26ae729..c66d4bf967b0 100644 --- a/projects/core/internal/primitive-year-month-pagination/test/primitive-year-month-pagination.component.spec.ts +++ b/projects/core/internal/primitive-year-month-pagination/test/primitive-year-month-pagination.component.spec.ts @@ -1,6 +1,9 @@ -import {Component, type DebugElement, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; -import {TuiMonth, type TuiYear} from '@taiga-ui/cdk'; +import type {DebugElement} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; +import type {TuiYear} from '@taiga-ui/cdk'; +import {TuiMonth} from '@taiga-ui/cdk'; import {TuiPageObject} from '@taiga-ui/testing'; import {TuiPrimitiveYearMonthPaginationComponent} from '../primitive-year-month-pagination.component'; diff --git a/projects/core/internal/svg-defs-host/svg-defs-host.component.ts b/projects/core/internal/svg-defs-host/svg-defs-host.component.ts index f94cc6e3f8e2..1ce9045df189 100644 --- a/projects/core/internal/svg-defs-host/svg-defs-host.component.ts +++ b/projects/core/internal/svg-defs-host/svg-defs-host.component.ts @@ -1,13 +1,13 @@ import {isPlatformBrowser} from '@angular/common'; +import type {OnInit} from '@angular/core'; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, - type OnInit, PLATFORM_ID, } from '@angular/core'; -import {type SafeHtml} from '@angular/platform-browser'; +import type {SafeHtml} from '@angular/platform-browser'; import {TuiDestroyService} from '@taiga-ui/cdk'; import {TuiSvgService} from '@taiga-ui/core/services'; import {takeUntil} from 'rxjs'; diff --git a/projects/core/observables/smart-search.ts b/projects/core/observables/smart-search.ts index d71494be65af..3aa2dc5ef843 100644 --- a/projects/core/observables/smart-search.ts +++ b/projects/core/observables/smart-search.ts @@ -1,13 +1,6 @@ import {EMPTY_ARRAY} from '@taiga-ui/cdk'; -import { - debounceTime, - distinctUntilChanged, - type Observable, - type OperatorFunction, - scan, - startWith, - switchMap, -} from 'rxjs'; +import type {Observable, OperatorFunction} from 'rxjs'; +import {debounceTime, distinctUntilChanged, scan, startWith, switchMap} from 'rxjs'; export function tuiSmartSearch( getSearchFunction: (search: string) => Observable, diff --git a/projects/core/observables/test/smart-search.spec.ts b/projects/core/observables/test/smart-search.spec.ts index 9eb969c133f3..731386fc211a 100644 --- a/projects/core/observables/test/smart-search.spec.ts +++ b/projects/core/observables/test/smart-search.spec.ts @@ -1,5 +1,6 @@ import {tuiSmartSearch} from '@taiga-ui/core'; -import {from, type Observable, of, skip, take} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {from, of, skip, take} from 'rxjs'; describe('tuiSmartSearch', () => { let source: Observable; diff --git a/projects/core/observables/zoneful-map.ts b/projects/core/observables/zoneful-map.ts index 77da80ac06d1..85650191c639 100644 --- a/projects/core/observables/zoneful-map.ts +++ b/projects/core/observables/zoneful-map.ts @@ -1,6 +1,7 @@ -import {type NgZone} from '@angular/core'; +import type {NgZone} from '@angular/core'; import {tuiZonefull} from '@taiga-ui/cdk'; -import {distinctUntilChanged, map, type OperatorFunction, pipe} from 'rxjs'; +import type {OperatorFunction} from 'rxjs'; +import {distinctUntilChanged, map, pipe} from 'rxjs'; /** * Works like regular map + distinctUntilChanged diff --git a/projects/core/pipes/calendar-sheet/calendar-sheet.pipe.ts b/projects/core/pipes/calendar-sheet/calendar-sheet.pipe.ts index 56426cff7f67..adf4695fb5e6 100644 --- a/projects/core/pipes/calendar-sheet/calendar-sheet.pipe.ts +++ b/projects/core/pipes/calendar-sheet/calendar-sheet.pipe.ts @@ -1,5 +1,7 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; -import {DAYS_IN_WEEK, type TuiDay, type TuiMonth} from '@taiga-ui/cdk'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; +import type {TuiDay, TuiMonth} from '@taiga-ui/cdk'; +import {DAYS_IN_WEEK} from '@taiga-ui/cdk'; import {TUI_FIRST_DAY_OF_WEEK} from '@taiga-ui/core/tokens'; import {getDayFromMonthRowCol} from './utils'; diff --git a/projects/core/pipes/calendar-sheet/utils.ts b/projects/core/pipes/calendar-sheet/utils.ts index 75e3da568390..1a7182d45e44 100644 --- a/projects/core/pipes/calendar-sheet/utils.ts +++ b/projects/core/pipes/calendar-sheet/utils.ts @@ -1,12 +1,6 @@ /// -import { - DAYS_IN_WEEK, - tuiAssert, - TuiDay, - type TuiDayOfWeek, - tuiInRange, - type TuiMonth, -} from '@taiga-ui/cdk'; +import type {TuiDayOfWeek, TuiMonth} from '@taiga-ui/cdk'; +import {DAYS_IN_WEEK, tuiAssert, TuiDay, tuiInRange} from '@taiga-ui/cdk'; /** * Computes day of week offset of the beginning of the month diff --git a/projects/core/pipes/flag/flag.pipe.ts b/projects/core/pipes/flag/flag.pipe.ts index dbd83a74593d..f7875d33009c 100644 --- a/projects/core/pipes/flag/flag.pipe.ts +++ b/projects/core/pipes/flag/flag.pipe.ts @@ -1,4 +1,5 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; import {TUI_SVG_OPTIONS} from '@taiga-ui/core/components/svg'; import {TUI_CACHE_BUSTING_PAYLOAD} from '@taiga-ui/core/constants'; import {TuiCountryIsoCode} from '@taiga-ui/i18n'; diff --git a/projects/core/pipes/format-date/format-date.pipe.ts b/projects/core/pipes/format-date/format-date.pipe.ts index 3640d36bec4e..bf99be006fe0 100644 --- a/projects/core/pipes/format-date/format-date.pipe.ts +++ b/projects/core/pipes/format-date/format-date.pipe.ts @@ -1,6 +1,7 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; import {TuiFormatDateService} from '@taiga-ui/core/services'; -import {type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; @Pipe({ name: 'tuiFormatDate', diff --git a/projects/core/pipes/format-number/format-number.pipe.ts b/projects/core/pipes/format-number/format-number.pipe.ts index a2c8cb09bdc1..f3b63349d792 100644 --- a/projects/core/pipes/format-number/format-number.pipe.ts +++ b/projects/core/pipes/format-number/format-number.pipe.ts @@ -1,8 +1,10 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; -import {type TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; +import type {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; import {TUI_NUMBER_FORMAT} from '@taiga-ui/core/tokens'; import {tuiFormatNumber} from '@taiga-ui/core/utils/format'; -import {map, type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map} from 'rxjs'; @Pipe({name: 'tuiFormatNumber'}) export class TuiFormatNumberPipe implements PipeTransform { diff --git a/projects/core/pipes/format-phone/format-phone.pipe.ts b/projects/core/pipes/format-phone/format-phone.pipe.ts index 5bd4917335bb..4e47e6ec3121 100644 --- a/projects/core/pipes/format-phone/format-phone.pipe.ts +++ b/projects/core/pipes/format-phone/format-phone.pipe.ts @@ -1,5 +1,6 @@ /// -import {Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; import {CHAR_PLUS, tuiAssert} from '@taiga-ui/cdk'; import {tuiFormatPhone} from '@taiga-ui/core/utils/format'; diff --git a/projects/core/pipes/month/month.pipe.ts b/projects/core/pipes/month/month.pipe.ts index 6993808dddd3..030f7c0c5ba6 100644 --- a/projects/core/pipes/month/month.pipe.ts +++ b/projects/core/pipes/month/month.pipe.ts @@ -1,7 +1,9 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; -import {type TuiMonth} from '@taiga-ui/cdk'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; +import type {TuiMonth} from '@taiga-ui/cdk'; import {TUI_MONTHS} from '@taiga-ui/core/tokens'; -import {map, type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map} from 'rxjs'; @Pipe({name: 'tuiMonth'}) export class TuiMonthPipe implements PipeTransform { diff --git a/projects/core/pipes/order-week-days/order-week-days.pipe.ts b/projects/core/pipes/order-week-days/order-week-days.pipe.ts index 06e42bec7661..ce682527becd 100644 --- a/projects/core/pipes/order-week-days/order-week-days.pipe.ts +++ b/projects/core/pipes/order-week-days/order-week-days.pipe.ts @@ -1,6 +1,8 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; import {TUI_FIRST_DAY_OF_WEEK} from '@taiga-ui/core/tokens'; -import {map, type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map} from 'rxjs'; type WeekDays = [T, T, T, T, T, T, T]; diff --git a/projects/core/providers/is-mobile-resolution.provider.ts b/projects/core/providers/is-mobile-resolution.provider.ts index 0baf3ece222b..ed3b06db7e8c 100644 --- a/projects/core/providers/is-mobile-resolution.provider.ts +++ b/projects/core/providers/is-mobile-resolution.provider.ts @@ -1,6 +1,7 @@ -import {ElementRef, type Provider, SkipSelf} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {ElementRef, SkipSelf} from '@angular/core'; import {TUI_IS_MOBILE_RES} from '@taiga-ui/core/tokens'; -import {type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; /** * @deprecated: drop in v4.0 diff --git a/projects/core/providers/mode.provider.ts b/projects/core/providers/mode.provider.ts index fd16bd32e6fa..bd4ec3ed2a43 100644 --- a/projects/core/providers/mode.provider.ts +++ b/projects/core/providers/mode.provider.ts @@ -1,8 +1,10 @@ -import {ElementRef, Optional, type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {ElementRef, Optional} from '@angular/core'; import {TuiModeDirective} from '@taiga-ui/core/directives/mode'; import {TUI_MODE} from '@taiga-ui/core/tokens'; -import {type TuiBrightness} from '@taiga-ui/core/types'; -import {map, type Observable, of, startWith} from 'rxjs'; +import type {TuiBrightness} from '@taiga-ui/core/types'; +import type {Observable} from 'rxjs'; +import {map, of, startWith} from 'rxjs'; export const MODE_PROVIDER: Provider = { provide: TUI_MODE, diff --git a/projects/core/providers/watched-controller-provider-factory.ts b/projects/core/providers/watched-controller-provider-factory.ts index 221d012eee05..d4f714d82053 100644 --- a/projects/core/providers/watched-controller-provider-factory.ts +++ b/projects/core/providers/watched-controller-provider-factory.ts @@ -1,6 +1,8 @@ -import {type ChangeDetectorRef} from '@angular/core'; -import {type AbstractTuiController, tuiWatch} from '@taiga-ui/cdk'; -import {type Observable, takeUntil} from 'rxjs'; +import type {ChangeDetectorRef} from '@angular/core'; +import type {AbstractTuiController} from '@taiga-ui/cdk'; +import {tuiWatch} from '@taiga-ui/cdk'; +import type {Observable} from 'rxjs'; +import {takeUntil} from 'rxjs'; export function tuiWatchedControllerFactory( controller: AbstractTuiController, diff --git a/projects/core/services/breakpoint.service.ts b/projects/core/services/breakpoint.service.ts index cb91d7df23ee..ae370565c08b 100644 --- a/projects/core/services/breakpoint.service.ts +++ b/projects/core/services/breakpoint.service.ts @@ -1,6 +1,6 @@ import {inject, Injectable, NgZone} from '@angular/core'; import {TUI_WINDOW_SIZE, tuiZoneOptimized} from '@taiga-ui/cdk'; -import {type TuiMedia} from '@taiga-ui/core/interfaces'; +import type {TuiMedia} from '@taiga-ui/core/interfaces'; import {TUI_MEDIA} from '@taiga-ui/core/tokens'; import {distinctUntilChanged, map, Observable, shareReplay} from 'rxjs'; diff --git a/projects/core/services/format-date.service.ts b/projects/core/services/format-date.service.ts index 035575dec22d..cfca7de5aca6 100644 --- a/projects/core/services/format-date.service.ts +++ b/projects/core/services/format-date.service.ts @@ -1,5 +1,6 @@ import {inject, Injectable, LOCALE_ID} from '@angular/core'; -import {type Observable, of} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {of} from 'rxjs'; @Injectable({ providedIn: 'root', diff --git a/projects/core/services/hint.service.ts b/projects/core/services/hint.service.ts index eb96853d821d..91237d6b3384 100644 --- a/projects/core/services/hint.service.ts +++ b/projects/core/services/hint.service.ts @@ -1,5 +1,5 @@ import {Injectable} from '@angular/core'; -import {type TuiPortalItem} from '@taiga-ui/core/interfaces'; +import type {TuiPortalItem} from '@taiga-ui/core/interfaces'; import {BehaviorSubject} from 'rxjs'; /** diff --git a/projects/core/services/position.service.ts b/projects/core/services/position.service.ts index e8a50b3b0678..8ff6feca9183 100644 --- a/projects/core/services/position.service.ts +++ b/projects/core/services/position.service.ts @@ -2,7 +2,7 @@ import {ElementRef, inject, Injectable, NgZone} from '@angular/core'; import {ANIMATION_FRAME} from '@ng-web-apis/common'; import {EMPTY_CLIENT_RECT, tuiZonefree} from '@taiga-ui/cdk'; import {TuiPositionAccessor} from '@taiga-ui/core/abstract'; -import {type TuiPoint} from '@taiga-ui/core/types'; +import type {TuiPoint} from '@taiga-ui/core/types'; import {finalize, map, Observable} from 'rxjs'; @Injectable() diff --git a/projects/core/services/svg.service.ts b/projects/core/services/svg.service.ts index d85846ce301a..008f693d6d19 100644 --- a/projects/core/services/svg.service.ts +++ b/projects/core/services/svg.service.ts @@ -1,6 +1,7 @@ /// import {inject, Injectable, SecurityContext} from '@angular/core'; -import {DomSanitizer, type SafeHtml} from '@angular/platform-browser'; +import type {SafeHtml} from '@angular/platform-browser'; +import {DomSanitizer} from '@angular/platform-browser'; import {tuiAssert} from '@taiga-ui/cdk'; import {TUI_ICONS, TUI_SANITIZER} from '@taiga-ui/core/tokens'; import {tuiProcessIcon} from '@taiga-ui/core/utils/dom'; diff --git a/projects/core/services/visual-viewport.service.ts b/projects/core/services/visual-viewport.service.ts index 72d960608e4e..22f9010e0a5b 100644 --- a/projects/core/services/visual-viewport.service.ts +++ b/projects/core/services/visual-viewport.service.ts @@ -1,7 +1,7 @@ import {inject, Injectable} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; import {TUI_IS_WEBKIT} from '@taiga-ui/cdk'; -import {type TuiPoint} from '@taiga-ui/core/types'; +import type {TuiPoint} from '@taiga-ui/core/types'; @Injectable({ providedIn: 'root', diff --git a/projects/core/tokens/common-icon.ts b/projects/core/tokens/common-icon.ts index bdf6fd024502..3f1d994cea11 100644 --- a/projects/core/tokens/common-icon.ts +++ b/projects/core/tokens/common-icon.ts @@ -1,4 +1,4 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; const COMMON_ICONS: TuiCommonIcons = { diff --git a/projects/core/tokens/data-list-accessor.ts b/projects/core/tokens/data-list-accessor.ts index b59de5459390..6e088578772a 100644 --- a/projects/core/tokens/data-list-accessor.ts +++ b/projects/core/tokens/data-list-accessor.ts @@ -1,5 +1,6 @@ -import {InjectionToken, type Provider, type Type} from '@angular/core'; -import {type TuiDataListAccessor} from '@taiga-ui/core/interfaces'; +import type {Provider, Type} from '@angular/core'; +import {InjectionToken} from '@angular/core'; +import type {TuiDataListAccessor} from '@taiga-ui/core/interfaces'; /** * Accessor for data-list options diff --git a/projects/core/tokens/data-list-host.ts b/projects/core/tokens/data-list-host.ts index e8c7723895fb..6daa5dc164f4 100644 --- a/projects/core/tokens/data-list-host.ts +++ b/projects/core/tokens/data-list-host.ts @@ -1,5 +1,6 @@ -import {InjectionToken, type Provider, type Type} from '@angular/core'; -import {type TuiDataListHost} from '@taiga-ui/core/interfaces'; +import type {Provider, Type} from '@angular/core'; +import {InjectionToken} from '@angular/core'; +import type {TuiDataListHost} from '@taiga-ui/core/interfaces'; /** * DataList controller diff --git a/projects/core/tokens/day-type-handler.ts b/projects/core/tokens/day-type-handler.ts index 73e03afac021..2af667e5919d 100644 --- a/projects/core/tokens/day-type-handler.ts +++ b/projects/core/tokens/day-type-handler.ts @@ -1,4 +1,5 @@ -import {tuiCreateToken, type TuiDay, type TuiHandler} from '@taiga-ui/cdk'; +import type {TuiDay, TuiHandler} from '@taiga-ui/cdk'; +import {tuiCreateToken} from '@taiga-ui/cdk'; /** * Token for adding data-type attribute to calendar cell diff --git a/projects/core/tokens/element-ref.ts b/projects/core/tokens/element-ref.ts index e7555f7d51b9..e0dd8c822bb7 100644 --- a/projects/core/tokens/element-ref.ts +++ b/projects/core/tokens/element-ref.ts @@ -1,4 +1,5 @@ -import {type ElementRef, InjectionToken} from '@angular/core'; +import type {ElementRef} from '@angular/core'; +import {InjectionToken} from '@angular/core'; /** * ElementRef when you cannot use @Input for single time injection diff --git a/projects/core/tokens/icon-place.ts b/projects/core/tokens/icon-place.ts index bd875952c44d..e8fb60d1b0fb 100644 --- a/projects/core/tokens/icon-place.ts +++ b/projects/core/tokens/icon-place.ts @@ -1,4 +1,4 @@ -import {type InjectionToken} from '@angular/core'; +import type {InjectionToken} from '@angular/core'; import {tuiCreateToken} from '@taiga-ui/cdk'; export const TUI_DEFAULT_ICONS_PLACE = 'assets/taiga-ui/icons' as const; diff --git a/projects/core/tokens/icon-resolver.ts b/projects/core/tokens/icon-resolver.ts index 6a7a918ae1d2..93852b35028f 100644 --- a/projects/core/tokens/icon-resolver.ts +++ b/projects/core/tokens/icon-resolver.ts @@ -1,5 +1,6 @@ -import {type Provider} from '@angular/core'; -import {tuiCreateTokenFromFactory, type TuiStringHandler} from '@taiga-ui/cdk'; +import type {Provider} from '@angular/core'; +import type {TuiStringHandler} from '@taiga-ui/cdk'; +import {tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; export const TUI_ICON_RESOLVER = tuiCreateTokenFromFactory>( // TODO: Remove backwards compatibility in 4.0 diff --git a/projects/core/tokens/media.ts b/projects/core/tokens/media.ts index 8038de687b9c..c5fc23f9f8d0 100644 --- a/projects/core/tokens/media.ts +++ b/projects/core/tokens/media.ts @@ -1,5 +1,5 @@ import {tuiCreateToken} from '@taiga-ui/cdk'; -import {type TuiMedia} from '@taiga-ui/core/interfaces'; +import type {TuiMedia} from '@taiga-ui/core/interfaces'; /** * Token for media constant diff --git a/projects/core/tokens/mode.ts b/projects/core/tokens/mode.ts index 5942f3be0a28..69f62a423d15 100644 --- a/projects/core/tokens/mode.ts +++ b/projects/core/tokens/mode.ts @@ -1,6 +1,6 @@ import {InjectionToken} from '@angular/core'; -import {type TuiBrightness} from '@taiga-ui/core/types'; -import {type Observable} from 'rxjs'; +import type {TuiBrightness} from '@taiga-ui/core/types'; +import type {Observable} from 'rxjs'; /** * Mode stream for private providers diff --git a/projects/core/tokens/number-format.ts b/projects/core/tokens/number-format.ts index 20005f5e5848..4406e83e2997 100644 --- a/projects/core/tokens/number-format.ts +++ b/projects/core/tokens/number-format.ts @@ -1,8 +1,10 @@ -import {type InjectionToken, Optional, type Provider, SkipSelf} from '@angular/core'; +import type {InjectionToken, Provider} from '@angular/core'; +import {Optional, SkipSelf} from '@angular/core'; import {tuiCreateToken} from '@taiga-ui/cdk'; import {TUI_DEFAULT_NUMBER_FORMAT} from '@taiga-ui/core/constants'; -import {type TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; -import {map, type Observable, of} from 'rxjs'; +import type {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; +import type {Observable} from 'rxjs'; +import {map, of} from 'rxjs'; /** * Formatting configuration for displayed numbers diff --git a/projects/core/tokens/option-content.ts b/projects/core/tokens/option-content.ts index ff54e7d6caa3..9e25653775fe 100644 --- a/projects/core/tokens/option-content.ts +++ b/projects/core/tokens/option-content.ts @@ -1,6 +1,7 @@ -import {InjectionToken, type Provider, type TemplateRef} from '@angular/core'; -import {type TuiContext} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Provider, TemplateRef} from '@angular/core'; +import {InjectionToken} from '@angular/core'; +import type {TuiContext} from '@taiga-ui/cdk'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; /** * Content for tuiOption component diff --git a/projects/core/tokens/sanitizer.ts b/projects/core/tokens/sanitizer.ts index 84aa18a586f5..aea44bdd2c98 100644 --- a/projects/core/tokens/sanitizer.ts +++ b/projects/core/tokens/sanitizer.ts @@ -1,4 +1,5 @@ -import {InjectionToken, type Sanitizer} from '@angular/core'; +import type {Sanitizer} from '@angular/core'; +import {InjectionToken} from '@angular/core'; /** * A custom Sanitizer to sanitize source before inlining diff --git a/projects/core/tokens/selection-stream.ts b/projects/core/tokens/selection-stream.ts index ae82d91ed89e..a235d7887a42 100644 --- a/projects/core/tokens/selection-stream.ts +++ b/projects/core/tokens/selection-stream.ts @@ -1,7 +1,8 @@ import {DOCUMENT} from '@angular/common'; import {inject} from '@angular/core'; import {tuiCreateTokenFromFactory, tuiTypedFromEvent} from '@taiga-ui/cdk'; -import {merge, type Observable, share, switchMap, takeUntil} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {merge, share, switchMap, takeUntil} from 'rxjs'; /** * A stream of possible selection changes */ diff --git a/projects/core/tokens/spin-icons.ts b/projects/core/tokens/spin-icons.ts index 0f4d0e4fb658..392ab9f56593 100644 --- a/projects/core/tokens/spin-icons.ts +++ b/projects/core/tokens/spin-icons.ts @@ -1,5 +1,5 @@ import {tuiCreateToken} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiSpinIcons { readonly decrement: PolymorpheusContent; diff --git a/projects/core/tokens/svg-content-processor.ts b/projects/core/tokens/svg-content-processor.ts index 275c569a2b76..53e86c214de7 100644 --- a/projects/core/tokens/svg-content-processor.ts +++ b/projects/core/tokens/svg-content-processor.ts @@ -1,9 +1,5 @@ -import { - tuiCreateToken, - type TuiHandler, - type TuiSafeHtml, - tuiSvgLinearGradientProcessor, -} from '@taiga-ui/cdk'; +import type {TuiHandler, TuiSafeHtml} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiSvgLinearGradientProcessor} from '@taiga-ui/cdk'; /** * Transform function the contents of the loaded svg file diff --git a/projects/core/tokens/svg-src-processor.ts b/projects/core/tokens/svg-src-processor.ts index d3d80f009746..afbff85d3f55 100644 --- a/projects/core/tokens/svg-src-processor.ts +++ b/projects/core/tokens/svg-src-processor.ts @@ -1,4 +1,5 @@ -import {tuiCreateToken, type TuiHandler, type TuiSafeHtml} from '@taiga-ui/cdk'; +import type {TuiHandler, TuiSafeHtml} from '@taiga-ui/cdk'; +import {tuiCreateToken} from '@taiga-ui/cdk'; import {identity} from 'rxjs'; /** diff --git a/projects/core/tokens/textfield-host.ts b/projects/core/tokens/textfield-host.ts index 80e081acd911..2b2e9887c25f 100644 --- a/projects/core/tokens/textfield-host.ts +++ b/projects/core/tokens/textfield-host.ts @@ -1,5 +1,6 @@ -import {InjectionToken, type Provider, type Type} from '@angular/core'; -import {type TuiTextfieldHost} from '@taiga-ui/core/interfaces'; +import type {Provider, Type} from '@angular/core'; +import {InjectionToken} from '@angular/core'; +import type {TuiTextfieldHost} from '@taiga-ui/core/interfaces'; /** * An interface to communicate with textfield based controls diff --git a/projects/core/tokens/value-accessor.ts b/projects/core/tokens/value-accessor.ts index 774f62475b8b..9d1f2dfdd868 100644 --- a/projects/core/tokens/value-accessor.ts +++ b/projects/core/tokens/value-accessor.ts @@ -1,5 +1,5 @@ import {InjectionToken} from '@angular/core'; -import {type ControlValueAccessor} from '@angular/forms'; +import type {ControlValueAccessor} from '@angular/forms'; /** * Buffer token to pass NG_VALUE_ACCESSOR to a different Injector diff --git a/projects/core/tokens/viewport.ts b/projects/core/tokens/viewport.ts index 22e320e34d28..6fb79c32b54a 100644 --- a/projects/core/tokens/viewport.ts +++ b/projects/core/tokens/viewport.ts @@ -1,7 +1,8 @@ -import {inject, type Provider, type Type} from '@angular/core'; +import type {Provider, Type} from '@angular/core'; +import {inject} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; import {tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; -import {type TuiRectAccessor} from '@taiga-ui/core/abstract'; +import type {TuiRectAccessor} from '@taiga-ui/core/abstract'; /** * Viewport accessor diff --git a/projects/core/types/marker-handler.ts b/projects/core/types/marker-handler.ts index 34704fb294af..89e99e30263d 100644 --- a/projects/core/types/marker-handler.ts +++ b/projects/core/types/marker-handler.ts @@ -1,3 +1,3 @@ -import {type TuiDay, type TuiHandler} from '@taiga-ui/cdk'; +import type {TuiDay, TuiHandler} from '@taiga-ui/cdk'; export type TuiMarkerHandler = TuiHandler; diff --git a/projects/core/utils/dom/tests/get-viewport.spec.ts b/projects/core/utils/dom/tests/get-viewport.spec.ts index 2b4e2e97931f..d3fe09905854 100644 --- a/projects/core/utils/dom/tests/get-viewport.spec.ts +++ b/projects/core/utils/dom/tests/get-viewport.spec.ts @@ -1,9 +1,5 @@ -import { - tuiGetViewportHeight, - tuiGetViewportWidth, - tuiIsMobile, - type TuiMedia, -} from '@taiga-ui/core'; +import type {TuiMedia} from '@taiga-ui/core'; +import {tuiGetViewportHeight, tuiGetViewportWidth, tuiIsMobile} from '@taiga-ui/core'; import {tuiTestingViewport} from '@taiga-ui/testing'; describe('viewport', () => { diff --git a/projects/core/utils/format/format-number.ts b/projects/core/utils/format/format-number.ts index 56626c9a84e6..ea6972306cd7 100644 --- a/projects/core/utils/format/format-number.ts +++ b/projects/core/utils/format/format-number.ts @@ -1,6 +1,6 @@ import {CHAR_HYPHEN, tuiRoundWith} from '@taiga-ui/cdk'; import {TUI_DEFAULT_NUMBER_FORMAT} from '@taiga-ui/core/constants'; -import {type TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; +import type {TuiNumberFormatSettings} from '@taiga-ui/core/interfaces'; import {tuiGetFractionPartPadded} from './get-fractional-part-padded'; diff --git a/projects/core/utils/format/other-decimal-symbol.ts b/projects/core/utils/format/other-decimal-symbol.ts index 566b87656937..5dd78d67fd54 100644 --- a/projects/core/utils/format/other-decimal-symbol.ts +++ b/projects/core/utils/format/other-decimal-symbol.ts @@ -1,4 +1,4 @@ -import {type TuiDecimalSymbol} from '@taiga-ui/core/types'; +import type {TuiDecimalSymbol} from '@taiga-ui/core/types'; export function tuiOtherDecimalSymbol(symbol: TuiDecimalSymbol): TuiDecimalSymbol { return symbol === '.' ? ',' : '.'; diff --git a/projects/core/utils/miscellaneous/get-border.ts b/projects/core/utils/miscellaneous/get-border.ts index de5e456816d4..954c9543c19b 100644 --- a/projects/core/utils/miscellaneous/get-border.ts +++ b/projects/core/utils/miscellaneous/get-border.ts @@ -1,4 +1,4 @@ -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; const ITEM_SIZE = 1.5; const CONTENT_SIZE = 2.5; diff --git a/projects/core/utils/miscellaneous/icons-path-factory.ts b/projects/core/utils/miscellaneous/icons-path-factory.ts index 4f2029d66d6a..1ee85d34f5d5 100644 --- a/projects/core/utils/miscellaneous/icons-path-factory.ts +++ b/projects/core/utils/miscellaneous/icons-path-factory.ts @@ -1,4 +1,4 @@ -import {type TuiStringHandler} from '@taiga-ui/cdk'; +import type {TuiStringHandler} from '@taiga-ui/cdk'; import {DEFAULT_ICONS_PATH, TUI_CACHE_BUSTING_PAYLOAD} from '@taiga-ui/core/constants'; export function tuiIconsPathFactory(staticPath: string): TuiStringHandler { diff --git a/projects/core/utils/miscellaneous/size-bigger.ts b/projects/core/utils/miscellaneous/size-bigger.ts index 2a1a08bb30c2..eb5014e5db30 100644 --- a/projects/core/utils/miscellaneous/size-bigger.ts +++ b/projects/core/utils/miscellaneous/size-bigger.ts @@ -1,4 +1,4 @@ -import {type TuiSizeXXL, type TuiSizeXXS} from '@taiga-ui/core/types'; +import type {TuiSizeXXL, TuiSizeXXS} from '@taiga-ui/core/types'; const SIZES: Record = { xxs: 0, diff --git a/projects/core/utils/miscellaneous/to-animation-options.ts b/projects/core/utils/miscellaneous/to-animation-options.ts index f58fdba369ea..d10a72871b5b 100644 --- a/projects/core/utils/miscellaneous/to-animation-options.ts +++ b/projects/core/utils/miscellaneous/to-animation-options.ts @@ -1,4 +1,4 @@ -import {type AnimationOptions} from '@angular/animations'; +import type {AnimationOptions} from '@angular/animations'; export const TUI_ANIMATIONS_DEFAULT_DURATION = 300; diff --git a/projects/core/utils/mobile/is-mobile.ts b/projects/core/utils/mobile/is-mobile.ts index 7edfaed28bec..805c0a1f4aeb 100644 --- a/projects/core/utils/mobile/is-mobile.ts +++ b/projects/core/utils/mobile/is-mobile.ts @@ -1,4 +1,4 @@ -import {type TuiMedia} from '@taiga-ui/core/interfaces'; +import type {TuiMedia} from '@taiga-ui/core/interfaces'; import {tuiGetViewportWidth} from '@taiga-ui/core/utils/dom'; export function tuiIsMobile(win: Window, {mobile}: TuiMedia): boolean { diff --git a/projects/demo-cypress/src/tests/range.cy.ts b/projects/demo-cypress/src/tests/range.cy.ts index 97e125c7f645..e242c78227f7 100644 --- a/projects/demo-cypress/src/tests/range.cy.ts +++ b/projects/demo-cypress/src/tests/range.cy.ts @@ -1,8 +1,9 @@ import {Component, ElementRef, ViewChild} from '@angular/core'; -import {type ComponentFixture} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {TuiRootModule} from '@taiga-ui/core'; -import {type TuiKeySteps, TuiRangeComponent, TuiRangeModule} from '@taiga-ui/kit'; +import type {TuiKeySteps} from '@taiga-ui/kit'; +import {TuiRangeComponent, TuiRangeModule} from '@taiga-ui/kit'; describe('TuiRange', () => { let component: TestComponent; diff --git a/projects/demo-cypress/src/tests/swipe.cy.ts b/projects/demo-cypress/src/tests/swipe.cy.ts index 571348c7f6e9..fde333b6c4e7 100644 --- a/projects/demo-cypress/src/tests/swipe.cy.ts +++ b/projects/demo-cypress/src/tests/swipe.cy.ts @@ -1,5 +1,6 @@ import {Component} from '@angular/core'; -import {type TuiSwipe, TuiSwipeModule} from '@taiga-ui/cdk'; +import type {TuiSwipe} from '@taiga-ui/cdk'; +import {TuiSwipeModule} from '@taiga-ui/cdk'; import {TuiRootModule} from '@taiga-ui/core'; describe('TuiSwipe', () => { diff --git a/projects/demo-cypress/src/tests/zoom.cy.ts b/projects/demo-cypress/src/tests/zoom.cy.ts index 6a1ec5f119d7..f3fbe76bced6 100644 --- a/projects/demo-cypress/src/tests/zoom.cy.ts +++ b/projects/demo-cypress/src/tests/zoom.cy.ts @@ -1,5 +1,6 @@ import {Component} from '@angular/core'; -import {tuiFloor, type TuiZoom, TuiZoomModule} from '@taiga-ui/cdk'; +import type {TuiZoom} from '@taiga-ui/cdk'; +import {tuiFloor, TuiZoomModule} from '@taiga-ui/cdk'; import {TuiRootModule} from '@taiga-ui/core'; describe('TuiZoom', () => { diff --git a/projects/demo-playwright/playwright.config.ts b/projects/demo-playwright/playwright.config.ts index 2faaf7a650ef..52e159e3f6ae 100644 --- a/projects/demo-playwright/playwright.config.ts +++ b/projects/demo-playwright/playwright.config.ts @@ -1,5 +1,5 @@ import {defineConfig, devices} from '@playwright/test'; -import {type ViewportSize} from 'playwright-core'; +import type {ViewportSize} from 'playwright-core'; import {pages as PUBLIC_PAGES} from '../demo/src/modules/app/pages'; import {tuiGetDemoPathsForE2E} from './tests/demo/get-demo-paths'; diff --git a/projects/demo-playwright/tests/addon-commerce/input-card-grouped.spec.ts b/projects/demo-playwright/tests/addon-commerce/input-card-grouped.spec.ts index 2cd7bf742720..44e6228b6e9f 100644 --- a/projects/demo-playwright/tests/addon-commerce/input-card-grouped.spec.ts +++ b/projects/demo-playwright/tests/addon-commerce/input-card-grouped.spec.ts @@ -3,7 +3,8 @@ import { tuiGoto, TuiInputCardGroupedPO, } from '@demo-playwright/utils'; -import {expect, type Locator, test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; test.describe('InputCardGrouped', () => { let documentationPage: TuiDocumentationPagePO; diff --git a/projects/demo-playwright/tests/addon-commerce/input-expire.spec.ts b/projects/demo-playwright/tests/addon-commerce/input-expire.spec.ts index ce24bdca5274..21a7316edb2b 100644 --- a/projects/demo-playwright/tests/addon-commerce/input-expire.spec.ts +++ b/projects/demo-playwright/tests/addon-commerce/input-expire.spec.ts @@ -1,5 +1,6 @@ import {TuiDocumentationPagePO, tuiGoto, TuiInputCardPO} from '@demo-playwright/utils'; -import {expect, type Locator, test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; test.describe('InputExpire', () => { let expiryTextfield: Locator; diff --git a/projects/demo-playwright/tests/core/hint/hint.spec.ts b/projects/demo-playwright/tests/core/hint/hint.spec.ts index d5a384da04e5..de8bf2c89eb3 100644 --- a/projects/demo-playwright/tests/core/hint/hint.spec.ts +++ b/projects/demo-playwright/tests/core/hint/hint.spec.ts @@ -1,6 +1,6 @@ import {TuiDocumentationPagePO, tuiGoto} from '@demo-playwright/utils'; import {expect, test} from '@playwright/test'; -import {type TuiHintDirection} from '@taiga-ui/core'; +import type {TuiHintDirection} from '@taiga-ui/core'; test.describe('TuiHint', () => { test('TuiHint works', async ({page}) => { diff --git a/projects/demo-playwright/tests/demo/get-demo-paths.ts b/projects/demo-playwright/tests/demo/get-demo-paths.ts index 330e458be0ca..f0ea1083bac8 100644 --- a/projects/demo-playwright/tests/demo/get-demo-paths.ts +++ b/projects/demo-playwright/tests/demo/get-demo-paths.ts @@ -1,4 +1,4 @@ -import {type TuiDocPage, type TuiDocPages} from '@taiga-ui/addon-doc'; +import type {TuiDocPage, TuiDocPages} from '@taiga-ui/addon-doc'; function flatPages(pages: TuiDocPages): readonly TuiDocPage[] { return pages.reduce( diff --git a/projects/demo-playwright/tests/kit/input-date-range/input-date-range.spec.ts b/projects/demo-playwright/tests/kit/input-date-range/input-date-range.spec.ts index b08603c41efd..d7bab2479013 100644 --- a/projects/demo-playwright/tests/kit/input-date-range/input-date-range.spec.ts +++ b/projects/demo-playwright/tests/kit/input-date-range/input-date-range.spec.ts @@ -1,4 +1,5 @@ -import {expect, type Locator, test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; import { CHAR_NO_BREAK_SPACE, diff --git a/projects/demo-playwright/tests/kit/input-date-time/input-date-time.spec.ts b/projects/demo-playwright/tests/kit/input-date-time/input-date-time.spec.ts index 4aeb7d984d28..d9b5873410e6 100644 --- a/projects/demo-playwright/tests/kit/input-date-time/input-date-time.spec.ts +++ b/projects/demo-playwright/tests/kit/input-date-time/input-date-time.spec.ts @@ -4,7 +4,8 @@ import { TuiInputDateTimePO, TuiSelectPO, } from '@demo-playwright/utils'; -import {expect, type Locator, test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; test.describe('InputDateTime', () => { test.describe('API page', () => { diff --git a/projects/demo-playwright/tests/kit/input-date/input-date.spec.ts b/projects/demo-playwright/tests/kit/input-date/input-date.spec.ts index 069ae9af0fed..f6b276eee975 100644 --- a/projects/demo-playwright/tests/kit/input-date/input-date.spec.ts +++ b/projects/demo-playwright/tests/kit/input-date/input-date.spec.ts @@ -1,5 +1,6 @@ import {TuiDocumentationPagePO, tuiGoto} from '@demo-playwright/utils'; -import {expect, type Locator, test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; import {TUI_PLAYWRIGHT_MOBILE_USER_AGENT} from '../../../playwright.options'; diff --git a/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts b/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts index 96f3ef2b4955..3d49c4db27b0 100644 --- a/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts +++ b/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts @@ -1,5 +1,6 @@ import {TuiDocumentationApiPagePO, tuiGoto} from '@demo-playwright/utils'; -import {expect, type Locator, test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; import {join} from 'path'; test.describe('InputFiles', () => { diff --git a/projects/demo-playwright/tests/kit/input-month-range/input-month-range.spec.ts b/projects/demo-playwright/tests/kit/input-month-range/input-month-range.spec.ts index 9adfc0882921..1339c48aab1e 100644 --- a/projects/demo-playwright/tests/kit/input-month-range/input-month-range.spec.ts +++ b/projects/demo-playwright/tests/kit/input-month-range/input-month-range.spec.ts @@ -3,7 +3,8 @@ import { tuiGoto, TuiInputMonthRangePO, } from '@demo-playwright/utils'; -import {expect, type Locator, test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; test.describe('InputMonthRange', () => { test.describe('API', () => { diff --git a/projects/demo-playwright/tests/kit/input-month/input-month.spec.ts b/projects/demo-playwright/tests/kit/input-month/input-month.spec.ts index f01cc1952dca..2972a69b0fac 100644 --- a/projects/demo-playwright/tests/kit/input-month/input-month.spec.ts +++ b/projects/demo-playwright/tests/kit/input-month/input-month.spec.ts @@ -1,5 +1,6 @@ import {TuiDocumentationPagePO, tuiGoto, TuiInputMonthPO} from '@demo-playwright/utils'; -import {expect, type Locator, test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; test.describe('InputMonth', () => { test.describe('API', () => { diff --git a/projects/demo-playwright/tests/kit/input-number/input-number.spec.ts b/projects/demo-playwright/tests/kit/input-number/input-number.spec.ts index 154ecb2260eb..c95571347893 100644 --- a/projects/demo-playwright/tests/kit/input-number/input-number.spec.ts +++ b/projects/demo-playwright/tests/kit/input-number/input-number.spec.ts @@ -7,7 +7,8 @@ import { TuiDocumentationPagePO, tuiGoto, } from '@demo-playwright/utils'; -import {expect, type Locator, test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; test.describe('InputNumber', () => { let example: Locator; diff --git a/projects/demo-playwright/tests/kit/input-phone/input-phone.spec.ts b/projects/demo-playwright/tests/kit/input-phone/input-phone.spec.ts index b63534836695..3f2c45bc21f2 100644 --- a/projects/demo-playwright/tests/kit/input-phone/input-phone.spec.ts +++ b/projects/demo-playwright/tests/kit/input-phone/input-phone.spec.ts @@ -5,7 +5,8 @@ import { tuiGoto, TuiInputPhonePO, } from '@demo-playwright/utils'; -import {expect, type Locator, test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; test.describe('InputPhone', () => { test.describe('API page', () => { diff --git a/projects/demo-playwright/tests/kit/input-range/input-range.spec.ts b/projects/demo-playwright/tests/kit/input-range/input-range.spec.ts index 5374467f8656..e5ce01817727 100644 --- a/projects/demo-playwright/tests/kit/input-range/input-range.spec.ts +++ b/projects/demo-playwright/tests/kit/input-range/input-range.spec.ts @@ -3,7 +3,8 @@ import { tuiGoto, TuiInputRangePO, } from '@demo-playwright/utils'; -import {expect, type Locator, test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; import {TUI_PLAYWRIGHT_MOBILE_USER_AGENT} from '../../../playwright.options'; import {CHAR_MINUS} from '../../../utils/common'; diff --git a/projects/demo-playwright/tests/kit/input-time/input-time.spec.ts b/projects/demo-playwright/tests/kit/input-time/input-time.spec.ts index 252fff6a0b09..a58ee301f32f 100644 --- a/projects/demo-playwright/tests/kit/input-time/input-time.spec.ts +++ b/projects/demo-playwright/tests/kit/input-time/input-time.spec.ts @@ -1,5 +1,6 @@ import {TuiDocumentationPagePO, tuiGoto, TuiInputTimePO} from '@demo-playwright/utils'; -import {expect, type Locator, test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; const MOCK_DATE = new Date(2021, 10, 10, 15, 30, 42, 300); diff --git a/projects/demo-playwright/tests/kit/input-year/input-year.spec.ts b/projects/demo-playwright/tests/kit/input-year/input-year.spec.ts index b517d122a94e..404efc9db8dc 100644 --- a/projects/demo-playwright/tests/kit/input-year/input-year.spec.ts +++ b/projects/demo-playwright/tests/kit/input-year/input-year.spec.ts @@ -1,5 +1,6 @@ import {TuiDocumentationPagePO, tuiGoto} from '@demo-playwright/utils'; -import {expect, type Locator, test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; test.describe('InputYear', () => { let input: Locator; diff --git a/projects/demo-playwright/tests/kit/multi-select/multi-select.spec.ts b/projects/demo-playwright/tests/kit/multi-select/multi-select.spec.ts index 064ba8242b75..0afffa4b783f 100644 --- a/projects/demo-playwright/tests/kit/multi-select/multi-select.spec.ts +++ b/projects/demo-playwright/tests/kit/multi-select/multi-select.spec.ts @@ -1,5 +1,6 @@ import {TuiDocumentationPagePO, tuiGoto, TuiMultiSelectPO} from '@demo-playwright/utils'; -import {expect, type Locator, test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; test.describe('MultiSelect', () => { test.describe('Examples', () => { diff --git a/projects/demo-playwright/tests/kit/notification/notification.spec.ts b/projects/demo-playwright/tests/kit/notification/notification.spec.ts index 46e74a51c894..7006968f72b4 100644 --- a/projects/demo-playwright/tests/kit/notification/notification.spec.ts +++ b/projects/demo-playwright/tests/kit/notification/notification.spec.ts @@ -1,5 +1,6 @@ import {TuiDocumentationPagePO, tuiGoto} from '@demo-playwright/utils'; -import {expect, type Locator, test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; test.describe('Notification', () => { const viewports = generateDimensions(180, 320, 10); diff --git a/projects/demo-playwright/tests/kit/range/range.spec.ts b/projects/demo-playwright/tests/kit/range/range.spec.ts index 9b82bafcdffc..45f9333cb7d8 100644 --- a/projects/demo-playwright/tests/kit/range/range.spec.ts +++ b/projects/demo-playwright/tests/kit/range/range.spec.ts @@ -1,5 +1,6 @@ import {TuiDocumentationPagePO, tuiGoto, TuiRangePO} from '@demo-playwright/utils'; -import {expect, type Locator, test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; test.describe('TuiRange', () => { test.beforeEach(async ({page}) => tuiGoto(page, '/components/range')); diff --git a/projects/demo-playwright/tests/kit/slider/slider.spec.ts b/projects/demo-playwright/tests/kit/slider/slider.spec.ts index f176b286fb1a..e0b4f6a1601a 100644 --- a/projects/demo-playwright/tests/kit/slider/slider.spec.ts +++ b/projects/demo-playwright/tests/kit/slider/slider.spec.ts @@ -1,5 +1,6 @@ import {TuiDocumentationPagePO, tuiGoto, TuiSliderPO} from '@demo-playwright/utils'; -import {expect, type Locator, test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; test.describe('Slider', () => { test.use({viewport: {width: 500, height: 500}}); diff --git a/projects/demo-playwright/utils/goto.ts b/projects/demo-playwright/utils/goto.ts index 193b40606800..cd58762b0869 100644 --- a/projects/demo-playwright/utils/goto.ts +++ b/projects/demo-playwright/utils/goto.ts @@ -1,4 +1,5 @@ -import {expect, type Page} from '@playwright/test'; +import type {Page} from '@playwright/test'; +import {expect} from '@playwright/test'; import {tuiRemoveElement} from './hide-element'; import {tuiMockDate} from './mock-date'; diff --git a/projects/demo-playwright/utils/hide-element.ts b/projects/demo-playwright/utils/hide-element.ts index d7dbaa65b951..bfaa74d1055c 100644 --- a/projects/demo-playwright/utils/hide-element.ts +++ b/projects/demo-playwright/utils/hide-element.ts @@ -1,4 +1,4 @@ -import {type Locator} from '@playwright/test'; +import type {Locator} from '@playwright/test'; export async function tuiHideElement(element: Locator): Promise { return element.evaluate(el => { diff --git a/projects/demo-playwright/utils/mock-date.ts b/projects/demo-playwright/utils/mock-date.ts index f83c8bebf7e6..160cc77a7ab9 100644 --- a/projects/demo-playwright/utils/mock-date.ts +++ b/projects/demo-playwright/utils/mock-date.ts @@ -1,4 +1,4 @@ -import {type Page} from '@playwright/test'; +import type {Page} from '@playwright/test'; export async function tuiMockDate(page: Page, date: Date): Promise { await page.addInitScript(fakeNow => { diff --git a/projects/demo-playwright/utils/mock-images.ts b/projects/demo-playwright/utils/mock-images.ts index d8e8904a4d84..5ed3e71b0148 100644 --- a/projects/demo-playwright/utils/mock-images.ts +++ b/projects/demo-playwright/utils/mock-images.ts @@ -1,4 +1,4 @@ -import {type Page} from '@playwright/test'; +import type {Page} from '@playwright/test'; const DEFAULT_MOCKS = [ { diff --git a/projects/demo-playwright/utils/page-objects/calendar.po.ts b/projects/demo-playwright/utils/page-objects/calendar.po.ts index 32a8040bd482..1fd5ebe973d1 100644 --- a/projects/demo-playwright/utils/page-objects/calendar.po.ts +++ b/projects/demo-playwright/utils/page-objects/calendar.po.ts @@ -1,4 +1,4 @@ -import {type Locator} from '@playwright/test'; +import type {Locator} from '@playwright/test'; export class TuiCalendarPO { constructor(private readonly host: Locator) {} diff --git a/projects/demo-playwright/utils/page-objects/documentation-api-page.po.ts b/projects/demo-playwright/utils/page-objects/documentation-api-page.po.ts index c76205634f0b..d0d4f0419ca6 100644 --- a/projects/demo-playwright/utils/page-objects/documentation-api-page.po.ts +++ b/projects/demo-playwright/utils/page-objects/documentation-api-page.po.ts @@ -1,4 +1,5 @@ -import {expect, type Locator, type Page, type Request} from '@playwright/test'; +import type {Locator, Page, Request} from '@playwright/test'; +import {expect} from '@playwright/test'; import {tuiHideElement} from '../hide-element'; import {waitStableState} from '../wait-stable-state'; diff --git a/projects/demo-playwright/utils/page-objects/documentation-page.po.ts b/projects/demo-playwright/utils/page-objects/documentation-page.po.ts index 207b3a3fc124..ad1cd80b9130 100644 --- a/projects/demo-playwright/utils/page-objects/documentation-page.po.ts +++ b/projects/demo-playwright/utils/page-objects/documentation-page.po.ts @@ -1,4 +1,4 @@ -import {type Locator} from '@playwright/test'; +import type {Locator} from '@playwright/test'; import {TuiDocumentationApiPagePO} from './documentation-api-page.po'; diff --git a/projects/demo-playwright/utils/page-objects/input-card-grouped.po.ts b/projects/demo-playwright/utils/page-objects/input-card-grouped.po.ts index 367e920b3bbb..6346faba60a4 100644 --- a/projects/demo-playwright/utils/page-objects/input-card-grouped.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-card-grouped.po.ts @@ -1,4 +1,4 @@ -import {type Locator} from '@playwright/test'; +import type {Locator} from '@playwright/test'; export class TuiInputCardGroupedPO { public readonly numberTextfield = this.host.locator( diff --git a/projects/demo-playwright/utils/page-objects/input-card.po.ts b/projects/demo-playwright/utils/page-objects/input-card.po.ts index 3410d14d0d52..9115ba669c65 100644 --- a/projects/demo-playwright/utils/page-objects/input-card.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-card.po.ts @@ -1,4 +1,4 @@ -import {type Locator} from '@playwright/test'; +import type {Locator} from '@playwright/test'; export class TuiInputCardPO { public readonly expiryTextfield = this.host diff --git a/projects/demo-playwright/utils/page-objects/input-date-range.po.ts b/projects/demo-playwright/utils/page-objects/input-date-range.po.ts index 67df24daaaf2..4f61e66b227d 100644 --- a/projects/demo-playwright/utils/page-objects/input-date-range.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-date-range.po.ts @@ -1,4 +1,5 @@ -import {expect, type Locator} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect} from '@playwright/test'; export class TuiInputDateRangePO { public readonly textfield: Locator = this.host.getByRole('textbox'); diff --git a/projects/demo-playwright/utils/page-objects/input-date-time.po.ts b/projects/demo-playwright/utils/page-objects/input-date-time.po.ts index 076aa103d0aa..c4fe2cca1649 100644 --- a/projects/demo-playwright/utils/page-objects/input-date-time.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-date-time.po.ts @@ -1,4 +1,4 @@ -import {type Locator} from '@playwright/test'; +import type {Locator} from '@playwright/test'; export class TuiInputDateTimePO { public readonly textfield: Locator = this.host.getByRole('textbox'); diff --git a/projects/demo-playwright/utils/page-objects/input-month-range.po.ts b/projects/demo-playwright/utils/page-objects/input-month-range.po.ts index 8101a2bcf7e4..2836bb495ea5 100644 --- a/projects/demo-playwright/utils/page-objects/input-month-range.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-month-range.po.ts @@ -1,4 +1,4 @@ -import {type Locator} from '@playwright/test'; +import type {Locator} from '@playwright/test'; export class TuiInputMonthRangePO { public readonly textfield: Locator = this.host.getByRole('textbox'); diff --git a/projects/demo-playwright/utils/page-objects/input-month.po.ts b/projects/demo-playwright/utils/page-objects/input-month.po.ts index b3efab89fd1a..e048778d9c7a 100644 --- a/projects/demo-playwright/utils/page-objects/input-month.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-month.po.ts @@ -1,4 +1,4 @@ -import {type Locator} from '@playwright/test'; +import type {Locator} from '@playwright/test'; export class TuiInputMonthPO { public readonly textfield: Locator = this.host.getByRole('textbox'); diff --git a/projects/demo-playwright/utils/page-objects/input-phone.po.ts b/projects/demo-playwright/utils/page-objects/input-phone.po.ts index b5dcaeeafa97..11c91409e719 100644 --- a/projects/demo-playwright/utils/page-objects/input-phone.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-phone.po.ts @@ -1,4 +1,4 @@ -import {type Locator} from '@playwright/test'; +import type {Locator} from '@playwright/test'; export class TuiInputPhonePO { public readonly textfield = this.host.getByRole('textbox'); diff --git a/projects/demo-playwright/utils/page-objects/input-range.po.ts b/projects/demo-playwright/utils/page-objects/input-range.po.ts index e539a5e1f8ba..d65eb338b1e0 100644 --- a/projects/demo-playwright/utils/page-objects/input-range.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-range.po.ts @@ -1,4 +1,4 @@ -import {type Locator} from '@playwright/test'; +import type {Locator} from '@playwright/test'; import {TuiRangePO} from './range.po'; diff --git a/projects/demo-playwright/utils/page-objects/input-slider.po.ts b/projects/demo-playwright/utils/page-objects/input-slider.po.ts index 84f0cfc977ce..463d6e59e301 100644 --- a/projects/demo-playwright/utils/page-objects/input-slider.po.ts +++ b/projects/demo-playwright/utils/page-objects/input-slider.po.ts @@ -1,4 +1,4 @@ -import {type Locator} from '@playwright/test'; +import type {Locator} from '@playwright/test'; export class TuiInputSliderPO { public readonly textfield = this.host.getByRole('textbox'); diff --git a/projects/demo-playwright/utils/page-objects/range.po.ts b/projects/demo-playwright/utils/page-objects/range.po.ts index b50f7e09d213..2608709bd6aa 100644 --- a/projects/demo-playwright/utils/page-objects/range.po.ts +++ b/projects/demo-playwright/utils/page-objects/range.po.ts @@ -1,4 +1,4 @@ -import {type Locator} from '@playwright/test'; +import type {Locator} from '@playwright/test'; export class TuiRangePO { public readonly left = this.host.locator('input[type=range]:first-child'); diff --git a/projects/demo-playwright/utils/page-objects/slider.po.ts b/projects/demo-playwright/utils/page-objects/slider.po.ts index 9f618e9d0fe5..448425c09b75 100644 --- a/projects/demo-playwright/utils/page-objects/slider.po.ts +++ b/projects/demo-playwright/utils/page-objects/slider.po.ts @@ -1,4 +1,5 @@ -import {expect, type Locator} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect} from '@playwright/test'; export class TuiSliderPO { constructor(private readonly host: Locator) {} diff --git a/projects/demo-playwright/utils/page-objects/table-pagination-page.po.ts b/projects/demo-playwright/utils/page-objects/table-pagination-page.po.ts index ae7ccedeae22..d4bdd5fc8ad1 100644 --- a/projects/demo-playwright/utils/page-objects/table-pagination-page.po.ts +++ b/projects/demo-playwright/utils/page-objects/table-pagination-page.po.ts @@ -1,4 +1,4 @@ -import {type Locator} from '@playwright/test'; +import type {Locator} from '@playwright/test'; export class TuiTablePaginationPO { public readonly linesPerPageButton = this.host.locator( diff --git a/projects/demo-playwright/utils/page-objects/textfield-with-data-list.po.ts b/projects/demo-playwright/utils/page-objects/textfield-with-data-list.po.ts index a12623d5febe..031fd1ebb81e 100644 --- a/projects/demo-playwright/utils/page-objects/textfield-with-data-list.po.ts +++ b/projects/demo-playwright/utils/page-objects/textfield-with-data-list.po.ts @@ -1,4 +1,5 @@ -import {expect, type Locator} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect} from '@playwright/test'; export class TuiTextfieldWithDataListPO { public readonly textfield: Locator = this.host.getByRole('textbox'); diff --git a/projects/demo-playwright/utils/wait-for-fonts.ts b/projects/demo-playwright/utils/wait-for-fonts.ts index ce9df16f5d30..fe0e6a268a9d 100644 --- a/projects/demo-playwright/utils/wait-for-fonts.ts +++ b/projects/demo-playwright/utils/wait-for-fonts.ts @@ -1,4 +1,5 @@ -import {expect, type Page} from '@playwright/test'; +import type {Page} from '@playwright/test'; +import {expect} from '@playwright/test'; export async function tuiWaitForFonts(page: Page): Promise { await expect(async () => { diff --git a/projects/demo-playwright/utils/wait-stable-state.ts b/projects/demo-playwright/utils/wait-stable-state.ts index 26e9e1765f62..67392805ee17 100644 --- a/projects/demo-playwright/utils/wait-stable-state.ts +++ b/projects/demo-playwright/utils/wait-stable-state.ts @@ -1,4 +1,4 @@ -import {type Locator} from '@playwright/test'; +import type {Locator} from '@playwright/test'; export async function waitStableState(locator: Locator): Promise { try { diff --git a/projects/demo/server.ts b/projects/demo/server.ts index 731fced95a47..c89184a7a434 100644 --- a/projects/demo/server.ts +++ b/projects/demo/server.ts @@ -4,7 +4,8 @@ import 'zone.js/node'; import {APP_BASE_HREF} from '@angular/common'; import {provideLocation, provideUserAgent} from '@ng-web-apis/universal'; import {ngExpressEngine} from '@nguniversal/express-engine'; -import express, {type Express} from 'express'; +import type {Express} from 'express'; +import express from 'express'; import {existsSync} from 'fs'; import {join} from 'path'; diff --git a/projects/demo/src/modules/animations/animations.component.ts b/projects/demo/src/modules/animations/animations.component.ts index aa739e6d3f68..995b22e40230 100644 --- a/projects/demo/src/modules/animations/animations.component.ts +++ b/projects/demo/src/modules/animations/animations.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-animations', diff --git a/projects/demo/src/modules/animations/examples/dropdown/index.ts b/projects/demo/src/modules/animations/examples/dropdown/index.ts index 08b7eaf55f7b..a9de88882886 100644 --- a/projects/demo/src/modules/animations/examples/dropdown/index.ts +++ b/projects/demo/src/modules/animations/examples/dropdown/index.ts @@ -2,7 +2,8 @@ import {Component, Input} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiPure} from '@taiga-ui/cdk'; -import {tuiDropdownAnimation, type TuiDurationOptions} from '@taiga-ui/core'; +import type {TuiDurationOptions} from '@taiga-ui/core'; +import {tuiDropdownAnimation} from '@taiga-ui/core'; @Component({ selector: 'tui-dropdown-example', diff --git a/projects/demo/src/modules/animations/examples/fade-in/index.ts b/projects/demo/src/modules/animations/examples/fade-in/index.ts index e37c9b608d9c..afa3badb5121 100644 --- a/projects/demo/src/modules/animations/examples/fade-in/index.ts +++ b/projects/demo/src/modules/animations/examples/fade-in/index.ts @@ -2,7 +2,8 @@ import {Component, Input} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiPure} from '@taiga-ui/cdk'; -import {type TuiDurationOptions, tuiFadeIn} from '@taiga-ui/core'; +import type {TuiDurationOptions} from '@taiga-ui/core'; +import {tuiFadeIn} from '@taiga-ui/core'; import {concatMap, delay, from, of, repeat, startWith} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/animations/examples/height-collapse/index.ts b/projects/demo/src/modules/animations/examples/height-collapse/index.ts index 7ef070ce52bb..4b800bc412d0 100644 --- a/projects/demo/src/modules/animations/examples/height-collapse/index.ts +++ b/projects/demo/src/modules/animations/examples/height-collapse/index.ts @@ -2,7 +2,8 @@ import {Component, Input} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiPure} from '@taiga-ui/cdk'; -import {type TuiDurationOptions, tuiHeightCollapse} from '@taiga-ui/core'; +import type {TuiDurationOptions} from '@taiga-ui/core'; +import {tuiHeightCollapse} from '@taiga-ui/core'; @Component({ selector: 'tui-height-collapse-example', diff --git a/projects/demo/src/modules/animations/examples/scale-in/index.ts b/projects/demo/src/modules/animations/examples/scale-in/index.ts index 0c2100a29264..213ed4586782 100644 --- a/projects/demo/src/modules/animations/examples/scale-in/index.ts +++ b/projects/demo/src/modules/animations/examples/scale-in/index.ts @@ -2,7 +2,8 @@ import {Component, Input} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiPure} from '@taiga-ui/cdk'; -import {type TuiDurationOptions, tuiScaleIn} from '@taiga-ui/core'; +import type {TuiDurationOptions} from '@taiga-ui/core'; +import {tuiScaleIn} from '@taiga-ui/core'; @Component({ selector: 'tui-scale-in-example', diff --git a/projects/demo/src/modules/animations/examples/slide-in/index.ts b/projects/demo/src/modules/animations/examples/slide-in/index.ts index 2f69c1ce3088..dc7d0c490e3b 100644 --- a/projects/demo/src/modules/animations/examples/slide-in/index.ts +++ b/projects/demo/src/modules/animations/examples/slide-in/index.ts @@ -2,8 +2,8 @@ import {Component, Input} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiPure} from '@taiga-ui/cdk'; +import type {TuiDurationOptions} from '@taiga-ui/core'; import { - type TuiDurationOptions, tuiSlideInBottom, tuiSlideInLeft, tuiSlideInRight, diff --git a/projects/demo/src/modules/animations/examples/width-collapse/index.ts b/projects/demo/src/modules/animations/examples/width-collapse/index.ts index 16d7f7d337ea..58a7f10ffc94 100644 --- a/projects/demo/src/modules/animations/examples/width-collapse/index.ts +++ b/projects/demo/src/modules/animations/examples/width-collapse/index.ts @@ -2,7 +2,8 @@ import {Component, Input} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiPure} from '@taiga-ui/cdk'; -import {type TuiDurationOptions, tuiWidthCollapse} from '@taiga-ui/core'; +import type {TuiDurationOptions} from '@taiga-ui/core'; +import {tuiWidthCollapse} from '@taiga-ui/core'; @Component({ selector: 'tui-width-collapse-example', diff --git a/projects/demo/src/modules/app/abstract.app.ts b/projects/demo/src/modules/app/abstract.app.ts index d405c6b67627..a47a03ac3a80 100644 --- a/projects/demo/src/modules/app/abstract.app.ts +++ b/projects/demo/src/modules/app/abstract.app.ts @@ -1,5 +1,6 @@ -import {Directive, ElementRef, HostBinding, inject, type OnInit} from '@angular/core'; -import {type Router} from '@angular/router'; +import type {OnInit} from '@angular/core'; +import {Directive, ElementRef, HostBinding, inject} from '@angular/core'; +import type {Router} from '@angular/router'; import {ResizeObserverService} from '@ng-web-apis/resize-observer'; import {TUI_DOC_PAGE_LOADED} from '@taiga-ui/addon-doc'; import {TuiDestroyService, tuiPure} from '@taiga-ui/cdk'; diff --git a/projects/demo/src/modules/app/app.component.ts b/projects/demo/src/modules/app/app.component.ts index f10450c35fbb..12917c8cf3bc 100644 --- a/projects/demo/src/modules/app/app.component.ts +++ b/projects/demo/src/modules/app/app.component.ts @@ -1,5 +1,6 @@ import {APP_BASE_HREF, DOCUMENT} from '@angular/common'; -import {Component, inject, type OnInit, ViewEncapsulation} from '@angular/core'; +import type {OnInit} from '@angular/core'; +import {Component, inject, ViewEncapsulation} from '@angular/core'; import {NavigationEnd, Router} from '@angular/router'; import {changeDetection} from '@demo/emulate/change-detection'; import {LOCAL_STORAGE} from '@ng-web-apis/common'; diff --git a/projects/demo/src/modules/app/app.providers.ts b/projects/demo/src/modules/app/app.providers.ts index dfe4d6561d7d..c977bcb2d063 100644 --- a/projects/demo/src/modules/app/app.providers.ts +++ b/projects/demo/src/modules/app/app.providers.ts @@ -5,11 +5,13 @@ import { LocationStrategy, PathLocationStrategy, } from '@angular/common'; -import {inject, PLATFORM_ID, type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {inject, PLATFORM_ID} from '@angular/core'; import {Title} from '@angular/platform-browser'; -import {type UrlTree} from '@angular/router'; +import type {UrlTree} from '@angular/router'; import {environment} from '@demo/environments/environment'; import {SESSION_STORAGE} from '@ng-web-apis/common'; +import type {TuiDocSourceCodePathOptions} from '@taiga-ui/addon-doc'; import { TUI_DOC_CODE_EDITOR, TUI_DOC_DEFAULT_TABS, @@ -22,7 +24,6 @@ import { TUI_DOC_TYPE_REFERENCE_HANDLER, TUI_DOC_URL_STATE_HANDLER, tuiDocExampleOptionsProvider, - type TuiDocSourceCodePathOptions, tuiSortPages, } from '@taiga-ui/addon-doc'; import { @@ -39,7 +40,8 @@ import { TUI_HINT_OPTIONS, TUI_SANITIZER, } from '@taiga-ui/core'; -import {type TuiLanguageName, tuiLanguageSwitcher} from '@taiga-ui/i18n'; +import type {TuiLanguageName} from '@taiga-ui/i18n'; +import {tuiLanguageSwitcher} from '@taiga-ui/i18n'; import {NgDompurifySanitizer} from '@tinkoff/ng-dompurify'; import {HIGHLIGHT_OPTIONS} from 'ngx-highlightjs'; diff --git a/projects/demo/src/modules/app/app.routes.ts b/projects/demo/src/modules/app/app.routes.ts index 88f50de96e12..d2733f61dd4d 100644 --- a/projects/demo/src/modules/app/app.routes.ts +++ b/projects/demo/src/modules/app/app.routes.ts @@ -1,5 +1,6 @@ import {NgModule} from '@angular/core'; -import {RouterModule, type Routes} from '@angular/router'; +import type {Routes} from '@angular/router'; +import {RouterModule} from '@angular/router'; import {tuiProvideRoutePageTab as route} from '@taiga-ui/addon-doc'; export const ROUTES: Routes = [ diff --git a/projects/demo/src/modules/app/customization/customization.component.ts b/projects/demo/src/modules/app/customization/customization.component.ts index 020319d6d5bf..62f93971d600 100644 --- a/projects/demo/src/modules/app/customization/customization.component.ts +++ b/projects/demo/src/modules/app/customization/customization.component.ts @@ -1,9 +1,11 @@ -import {type AfterViewInit, Component, inject, ViewChild} from '@angular/core'; -import {DomSanitizer, type SafeStyle} from '@angular/platform-browser'; +import type {AfterViewInit} from '@angular/core'; +import {Component, inject, ViewChild} from '@angular/core'; +import type {SafeStyle} from '@angular/platform-browser'; +import {DomSanitizer} from '@angular/platform-browser'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocDemoComponent} from '@taiga-ui/addon-doc'; +import type {TuiDocDemoComponent} from '@taiga-ui/addon-doc'; import {TuiDestroyService, tuiIsString, tuiPure, tuiPx} from '@taiga-ui/cdk'; -import {type TuiBrightness} from '@taiga-ui/core'; +import type {TuiBrightness} from '@taiga-ui/core'; import {Subject, takeUntil} from 'rxjs'; import { diff --git a/projects/demo/src/modules/app/customization/customization.providers.ts b/projects/demo/src/modules/app/customization/customization.providers.ts index 55f66097bcf6..6b84001d7a32 100644 --- a/projects/demo/src/modules/app/customization/customization.providers.ts +++ b/projects/demo/src/modules/app/customization/customization.providers.ts @@ -1,4 +1,5 @@ -import {forwardRef, InjectionToken, type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {forwardRef, InjectionToken} from '@angular/core'; import {WINDOW} from '@ng-web-apis/common'; import {TuiDestroyService} from '@taiga-ui/cdk'; import {TuiModeDirective} from '@taiga-ui/core'; diff --git a/projects/demo/src/modules/app/landing/landing.component.ts b/projects/demo/src/modules/app/landing/landing.component.ts index a78ec90319f7..9699e3881c8f 100644 --- a/projects/demo/src/modules/app/landing/landing.component.ts +++ b/projects/demo/src/modules/app/landing/landing.component.ts @@ -1,12 +1,11 @@ import {NgIf} from '@angular/common'; +import type {OnInit, QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, ElementRef, HostBinding, inject, - type OnInit, - type QueryList, ViewChildren, } from '@angular/core'; import {ActivatedRoute, Router, RouterLink} from '@angular/router'; diff --git a/projects/demo/src/modules/app/metrika/metrika.service.ts b/projects/demo/src/modules/app/metrika/metrika.service.ts index 1ff017d0406b..86f84b09a587 100644 --- a/projects/demo/src/modules/app/metrika/metrika.service.ts +++ b/projects/demo/src/modules/app/metrika/metrika.service.ts @@ -1,5 +1,6 @@ import {DOCUMENT, isPlatformBrowser} from '@angular/common'; -import {inject, Injectable, PLATFORM_ID, type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {inject, Injectable, PLATFORM_ID} from '@angular/core'; import {TUI_IS_E2E, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; declare global { diff --git a/projects/demo/src/modules/app/pages.ts b/projects/demo/src/modules/app/pages.ts index 7d09aa9fe7a8..f1be32eeb930 100644 --- a/projects/demo/src/modules/app/pages.ts +++ b/projects/demo/src/modules/app/pages.ts @@ -1,4 +1,4 @@ -import {type TuiDocPages} from '@taiga-ui/addon-doc'; +import type {TuiDocPages} from '@taiga-ui/addon-doc'; export const pages: TuiDocPages = [ // Documentation diff --git a/projects/demo/src/modules/app/stackblitz/stackblitz.service.ts b/projects/demo/src/modules/app/stackblitz/stackblitz.service.ts index 7429faf40806..7ec0a82ebac3 100644 --- a/projects/demo/src/modules/app/stackblitz/stackblitz.service.ts +++ b/projects/demo/src/modules/app/stackblitz/stackblitz.service.ts @@ -1,6 +1,7 @@ import {inject, Injectable} from '@angular/core'; -import stackblitz, {type OpenOptions, type Project} from '@stackblitz/sdk'; -import {type TuiCodeEditor} from '@taiga-ui/addon-doc'; +import type {OpenOptions, Project} from '@stackblitz/sdk'; +import stackblitz from '@stackblitz/sdk'; +import type {TuiCodeEditor} from '@taiga-ui/addon-doc'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; import {TsFileComponentParser, TsFileModuleParser} from '../classes'; diff --git a/projects/demo/src/modules/app/stackblitz/starter/stackblitz-starter.component.ts b/projects/demo/src/modules/app/stackblitz/starter/stackblitz-starter.component.ts index d462e5302538..29bf9ecfd9ec 100644 --- a/projects/demo/src/modules/app/stackblitz/starter/stackblitz-starter.component.ts +++ b/projects/demo/src/modules/app/stackblitz/starter/stackblitz-starter.component.ts @@ -1,4 +1,5 @@ -import {ChangeDetectionStrategy, Component, inject, type OnInit} from '@angular/core'; +import type {OnInit} from '@angular/core'; +import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {tuiRawLoad, tuiTryParseMarkdownCodeBlock} from '@taiga-ui/addon-doc'; import {TuiStackblitzService} from '../stackblitz.service'; diff --git a/projects/demo/src/modules/app/utils/ready-to-scroll-factory.ts b/projects/demo/src/modules/app/utils/ready-to-scroll-factory.ts index da52fe46901d..3e1cf44b34b1 100644 --- a/projects/demo/src/modules/app/utils/ready-to-scroll-factory.ts +++ b/projects/demo/src/modules/app/utils/ready-to-scroll-factory.ts @@ -1,5 +1,6 @@ -import {type ElementRef} from '@angular/core'; -import {debounceTime, map, type Observable, startWith, takeUntil} from 'rxjs'; +import type {ElementRef} from '@angular/core'; +import type {Observable} from 'rxjs'; +import {debounceTime, map, startWith, takeUntil} from 'rxjs'; export function readyToScrollFactory( hostElement: ElementRef, diff --git a/projects/demo/src/modules/app/version-manager/version-manager.component.ts b/projects/demo/src/modules/app/version-manager/version-manager.component.ts index f9896723d230..36ef2e53fe58 100644 --- a/projects/demo/src/modules/app/version-manager/version-manager.component.ts +++ b/projects/demo/src/modules/app/version-manager/version-manager.component.ts @@ -4,7 +4,8 @@ import {LOCATION} from '@ng-web-apis/common'; import {tuiPure} from '@taiga-ui/cdk'; import {TUI_SELECTED_VERSION_META} from './version-manager.providers'; -import {TUI_VERSIONS_META_OPTIONS, type TuiVersionMeta} from './versions.constants'; +import type {TuiVersionMeta} from './versions.constants'; +import {TUI_VERSIONS_META_OPTIONS} from './versions.constants'; @Component({ selector: 'version-manager', diff --git a/projects/demo/src/modules/app/version-manager/version-manager.providers.ts b/projects/demo/src/modules/app/version-manager/version-manager.providers.ts index c6d777bd716a..807403999440 100644 --- a/projects/demo/src/modules/app/version-manager/version-manager.providers.ts +++ b/projects/demo/src/modules/app/version-manager/version-manager.providers.ts @@ -1,8 +1,10 @@ import {DOCUMENT} from '@angular/common'; -import {InjectionToken, type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {InjectionToken} from '@angular/core'; import {TUI_BASE_HREF} from '@taiga-ui/cdk'; -import {TUI_VERSIONS_META_MAP, type TuiVersionMeta} from './versions.constants'; +import type {TuiVersionMeta} from './versions.constants'; +import {TUI_VERSIONS_META_MAP} from './versions.constants'; export const TUI_SELECTED_VERSION_META = new InjectionToken( '[TUI_SELECTED_VERSION_META]: Meta information about selected version of Taiga docs', diff --git a/projects/demo/src/modules/charts/arc-chart/arc-chart.component.ts b/projects/demo/src/modules/charts/arc-chart/arc-chart.component.ts index 7b53d8bd4ff6..1e2b02933777 100644 --- a/projects/demo/src/modules/charts/arc-chart/arc-chart.component.ts +++ b/projects/demo/src/modules/charts/arc-chart/arc-chart.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeXL} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeXL} from '@taiga-ui/core'; @Component({ selector: 'example-tui-arc-chart', diff --git a/projects/demo/src/modules/charts/axes/axes.component.ts b/projects/demo/src/modules/charts/axes/axes.component.ts index d24f72a6f1f5..de2b363a6978 100644 --- a/projects/demo/src/modules/charts/axes/axes.component.ts +++ b/projects/demo/src/modules/charts/axes/axes.component.ts @@ -1,12 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import { - TUI_ALWAYS_DASHED, - TUI_ALWAYS_SOLID, - type TuiLineHandler, - type TuiLineType, -} from '@taiga-ui/addon-charts'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiLineHandler, TuiLineType} from '@taiga-ui/addon-charts'; +import {TUI_ALWAYS_DASHED, TUI_ALWAYS_SOLID} from '@taiga-ui/addon-charts'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-axes', diff --git a/projects/demo/src/modules/charts/axes/examples/1/index.ts b/projects/demo/src/modules/charts/axes/examples/1/index.ts index 6e54385301de..f4392d07e59b 100644 --- a/projects/demo/src/modules/charts/axes/examples/1/index.ts +++ b/projects/demo/src/modules/charts/axes/examples/1/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiLineHandler} from '@taiga-ui/addon-charts'; +import type {TuiLineHandler} from '@taiga-ui/addon-charts'; @Component({ selector: 'tui-axes-example-1', diff --git a/projects/demo/src/modules/charts/bar-chart/bar-chart.component.ts b/projects/demo/src/modules/charts/bar-chart/bar-chart.component.ts index 081355ecdbbe..26922665b4f2 100644 --- a/projects/demo/src/modules/charts/bar-chart/bar-chart.component.ts +++ b/projects/demo/src/modules/charts/bar-chart/bar-chart.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-tui-bar-chart', diff --git a/projects/demo/src/modules/charts/bar-chart/examples/2/index.ts b/projects/demo/src/modules/charts/bar-chart/examples/2/index.ts index 150287c78d62..dd697292f6e7 100644 --- a/projects/demo/src/modules/charts/bar-chart/examples/2/index.ts +++ b/projects/demo/src/modules/charts/bar-chart/examples/2/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiContext} from '@taiga-ui/cdk'; +import type {TuiContext} from '@taiga-ui/cdk'; import {tuiFormatNumber} from '@taiga-ui/core'; @Component({ diff --git a/projects/demo/src/modules/charts/bar-set/bar-set.component.ts b/projects/demo/src/modules/charts/bar-set/bar-set.component.ts index 5cbf9c96d315..b992ae219e1c 100644 --- a/projects/demo/src/modules/charts/bar-set/bar-set.component.ts +++ b/projects/demo/src/modules/charts/bar-set/bar-set.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-tui-bar-set', diff --git a/projects/demo/src/modules/charts/bar/bar.component.ts b/projects/demo/src/modules/charts/bar/bar.component.ts index 5b46b29e2c71..0a1353786949 100644 --- a/projects/demo/src/modules/charts/bar/bar.component.ts +++ b/projects/demo/src/modules/charts/bar/bar.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-tui-bar', diff --git a/projects/demo/src/modules/charts/legend-item/legend-item.component.ts b/projects/demo/src/modules/charts/legend-item/legend-item.component.ts index 17beda5f8e0e..0fb1515083e6 100644 --- a/projects/demo/src/modules/charts/legend-item/legend-item.component.ts +++ b/projects/demo/src/modules/charts/legend-item/legend-item.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeS} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-tui-legend-item', diff --git a/projects/demo/src/modules/charts/line-chart/examples/1/index.ts b/projects/demo/src/modules/charts/line-chart/examples/1/index.ts index dc7595848b55..2645ebafbce5 100644 --- a/projects/demo/src/modules/charts/line-chart/examples/1/index.ts +++ b/projects/demo/src/modules/charts/line-chart/examples/1/index.ts @@ -1,8 +1,9 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TUI_DEFAULT_STRINGIFY, type TuiContext} from '@taiga-ui/cdk'; -import {type TuiPoint} from '@taiga-ui/core'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {TUI_DEFAULT_STRINGIFY} from '@taiga-ui/cdk'; +import type {TuiPoint} from '@taiga-ui/core'; @Component({ selector: 'tui-line-chart-example-1', diff --git a/projects/demo/src/modules/charts/line-chart/examples/2/index.ts b/projects/demo/src/modules/charts/line-chart/examples/2/index.ts index 817d6aa1b7d3..80918bfd3067 100644 --- a/projects/demo/src/modules/charts/line-chart/examples/2/index.ts +++ b/projects/demo/src/modules/charts/line-chart/examples/2/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiPoint} from '@taiga-ui/core'; +import type {TuiPoint} from '@taiga-ui/core'; @Component({ selector: 'tui-line-chart-example-2', diff --git a/projects/demo/src/modules/charts/line-chart/examples/3/index.ts b/projects/demo/src/modules/charts/line-chart/examples/3/index.ts index a4f42fb4b337..c9dbd50c3712 100644 --- a/projects/demo/src/modules/charts/line-chart/examples/3/index.ts +++ b/projects/demo/src/modules/charts/line-chart/examples/3/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiPoint} from '@taiga-ui/core'; +import type {TuiPoint} from '@taiga-ui/core'; @Component({ selector: 'tui-line-chart-example-3', diff --git a/projects/demo/src/modules/charts/line-chart/examples/4/index.ts b/projects/demo/src/modules/charts/line-chart/examples/4/index.ts index 102f36822d2d..63561a1e1ce2 100644 --- a/projects/demo/src/modules/charts/line-chart/examples/4/index.ts +++ b/projects/demo/src/modules/charts/line-chart/examples/4/index.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiContext, type TuiStringHandler} from '@taiga-ui/cdk'; -import {type TuiPoint} from '@taiga-ui/core'; +import type {TuiContext, TuiStringHandler} from '@taiga-ui/cdk'; +import type {TuiPoint} from '@taiga-ui/core'; @Component({ selector: 'tui-line-chart-example-4', diff --git a/projects/demo/src/modules/charts/line-chart/examples/5/index.ts b/projects/demo/src/modules/charts/line-chart/examples/5/index.ts index 1939db6b7450..77163ee99e2d 100644 --- a/projects/demo/src/modules/charts/line-chart/examples/5/index.ts +++ b/projects/demo/src/modules/charts/line-chart/examples/5/index.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiContext, type TuiStringHandler} from '@taiga-ui/cdk'; -import {type TuiPoint} from '@taiga-ui/core'; +import type {TuiContext, TuiStringHandler} from '@taiga-ui/cdk'; +import type {TuiPoint} from '@taiga-ui/core'; @Component({ selector: 'tui-line-chart-example-5', diff --git a/projects/demo/src/modules/charts/line-chart/line-chart.component.ts b/projects/demo/src/modules/charts/line-chart/line-chart.component.ts index 9f0de09e7755..3435cf1ff740 100644 --- a/projects/demo/src/modules/charts/line-chart/line-chart.component.ts +++ b/projects/demo/src/modules/charts/line-chart/line-chart.component.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiStringHandler} from '@taiga-ui/cdk'; -import {type TuiPoint} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiStringHandler} from '@taiga-ui/cdk'; +import type {TuiPoint} from '@taiga-ui/core'; @Component({ selector: 'example-tui-line-chart', diff --git a/projects/demo/src/modules/charts/line-days-chart/examples/1/index.ts b/projects/demo/src/modules/charts/line-days-chart/examples/1/index.ts index 94626ed13150..d78b885872da 100644 --- a/projects/demo/src/modules/charts/line-days-chart/examples/1/index.ts +++ b/projects/demo/src/modules/charts/line-days-chart/examples/1/index.ts @@ -1,17 +1,11 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import { - TUI_IS_E2E, - TuiDay, - type TuiDayLike, - TuiDayRange, - TuiMonth, - tuiPure, - type TuiStringHandler, -} from '@taiga-ui/cdk'; +import type {TuiDayLike, TuiStringHandler} from '@taiga-ui/cdk'; +import {TUI_IS_E2E, TuiDay, TuiDayRange, TuiMonth, tuiPure} from '@taiga-ui/cdk'; import {TUI_MONTHS} from '@taiga-ui/core'; -import {map, type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map} from 'rxjs'; @Component({ selector: 'tui-line-days-chart-example-1', diff --git a/projects/demo/src/modules/charts/line-days-chart/examples/2/index.ts b/projects/demo/src/modules/charts/line-days-chart/examples/2/index.ts index fed828f0f55a..972a42f2372c 100644 --- a/projects/demo/src/modules/charts/line-days-chart/examples/2/index.ts +++ b/projects/demo/src/modules/charts/line-days-chart/examples/2/index.ts @@ -1,15 +1,8 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import { - TUI_IS_E2E, - TuiDay, - type TuiDayLike, - TuiDayRange, - tuiPure, - type TuiTypedMapper, - type TuiTypedMatcher, -} from '@taiga-ui/cdk'; -import {type TuiPoint} from '@taiga-ui/core'; +import type {TuiDayLike, TuiTypedMapper, TuiTypedMatcher} from '@taiga-ui/cdk'; +import {TUI_IS_E2E, TuiDay, TuiDayRange, tuiPure} from '@taiga-ui/cdk'; +import type {TuiPoint} from '@taiga-ui/core'; @Component({ selector: 'tui-line-days-chart-example-2', diff --git a/projects/demo/src/modules/charts/line-days-chart/examples/2/pipe.ts b/projects/demo/src/modules/charts/line-days-chart/examples/2/pipe.ts index b1b499f6a599..a1cfa10cfa78 100644 --- a/projects/demo/src/modules/charts/line-days-chart/examples/2/pipe.ts +++ b/projects/demo/src/modules/charts/line-days-chart/examples/2/pipe.ts @@ -1,7 +1,10 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; -import {TuiDay, type TuiDayRange, TuiMonth} from '@taiga-ui/cdk'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; +import type {TuiDayRange} from '@taiga-ui/cdk'; +import {TuiDay, TuiMonth} from '@taiga-ui/cdk'; import {TUI_MONTHS} from '@taiga-ui/core'; -import {map, type Observable, of} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map, of} from 'rxjs'; function onlyMondays(range: readonly TuiDay[]): readonly string[] { return range.filter(day => !day.dayOfWeek()).map(String); diff --git a/projects/demo/src/modules/charts/line-days-chart/line-days-chart.component.ts b/projects/demo/src/modules/charts/line-days-chart/line-days-chart.component.ts index a86c0d092779..aee6d5c5830b 100644 --- a/projects/demo/src/modules/charts/line-days-chart/line-days-chart.component.ts +++ b/projects/demo/src/modules/charts/line-days-chart/line-days-chart.component.ts @@ -1,10 +1,12 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiContext, TuiDay, type TuiStringHandler} from '@taiga-ui/cdk'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiContext, TuiStringHandler} from '@taiga-ui/cdk'; +import {TuiDay} from '@taiga-ui/cdk'; import {TUI_MONTHS} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {map, type Observable} from 'rxjs'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; +import {map} from 'rxjs'; @Component({ selector: 'example-tui-line-days-chart', diff --git a/projects/demo/src/modules/charts/pie-chart/pie-chart.component.ts b/projects/demo/src/modules/charts/pie-chart/pie-chart.component.ts index de3924aef6aa..c4fd721548cf 100644 --- a/projects/demo/src/modules/charts/pie-chart/pie-chart.component.ts +++ b/projects/demo/src/modules/charts/pie-chart/pie-chart.component.ts @@ -1,10 +1,12 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {TuiCurrency, tuiGetCurrencySymbol} from '@taiga-ui/addon-commerce'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiContext, tuiRound, tuiSum} from '@taiga-ui/cdk'; -import {tuiFormatNumber, type TuiSizeXL, type TuiSizeXS} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {tuiRound, tuiSum} from '@taiga-ui/cdk'; +import type {TuiSizeXL, TuiSizeXS} from '@taiga-ui/core'; +import {tuiFormatNumber} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'example-tui-pie-chart', diff --git a/projects/demo/src/modules/charts/ring-chart/ring-chart.component.ts b/projects/demo/src/modules/charts/ring-chart/ring-chart.component.ts index ab5e19d98f16..1447fcd9f206 100644 --- a/projects/demo/src/modules/charts/ring-chart/ring-chart.component.ts +++ b/projects/demo/src/modules/charts/ring-chart/ring-chart.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeS, type TuiSizeXL} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeS, TuiSizeXL} from '@taiga-ui/core'; @Component({ selector: 'example-tui-ring-chart', diff --git a/projects/demo/src/modules/components/abstract/control.ts b/projects/demo/src/modules/components/abstract/control.ts index ed4834c2b122..a27761954940 100644 --- a/projects/demo/src/modules/components/abstract/control.ts +++ b/projects/demo/src/modules/components/abstract/control.ts @@ -1,18 +1,17 @@ -import {type AbstractControl} from '@angular/forms'; -import {type TuiInputMode, type TuiInputType} from '@taiga-ui/cdk'; -import { - TUI_DROPDOWN_DEFAULT_OPTIONS, - TUI_HINT_DIRECTIONS, - type TuiDropdownAlign, - type TuiDropdownWidth, - type TuiSizeL, - type TuiSizeS, - type TuiVerticalDirection, +import type {AbstractControl} from '@angular/forms'; +import type {TuiInputMode, TuiInputType} from '@taiga-ui/cdk'; +import type { + TuiDropdownAlign, + TuiDropdownWidth, + TuiSizeL, + TuiSizeS, + TuiVerticalDirection, } from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {TUI_DROPDOWN_DEFAULT_OPTIONS, TUI_HINT_DIRECTIONS} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {BehaviorSubject} from 'rxjs'; -import {type AbstractExampleTuiDropdown} from './dropdown'; +import type {AbstractExampleTuiDropdown} from './dropdown'; import {AbstractExampleTuiInteractive} from './interactive'; const CUSTOM_SVG = `( diff --git a/projects/demo/src/modules/components/abstract/inherited-documentation/inherited-documentation.component.ts b/projects/demo/src/modules/components/abstract/inherited-documentation/inherited-documentation.component.ts index f0cecb8ace61..8339b984acf3 100644 --- a/projects/demo/src/modules/components/abstract/inherited-documentation/inherited-documentation.component.ts +++ b/projects/demo/src/modules/components/abstract/inherited-documentation/inherited-documentation.component.ts @@ -6,7 +6,7 @@ import {AbstractExampleTuiControl} from '../control'; import {AbstractExampleTuiHint} from '../hint'; import {AbstractExampleTuiInteractive} from '../interactive'; import {ABSTRACT_PROPS_ACCESSOR} from './abstract-props-accessor'; -import {type TuiSupportingDocumentationComponent} from './supporting-documentation-component'; +import type {TuiSupportingDocumentationComponent} from './supporting-documentation-component'; @Component({ selector: 'inherited-documentation', diff --git a/projects/demo/src/modules/components/abstract/inherited-documentation/supporting-documentation-component.ts b/projects/demo/src/modules/components/abstract/inherited-documentation/supporting-documentation-component.ts index 3f932f5e91ec..eb154a3d0492 100644 --- a/projects/demo/src/modules/components/abstract/inherited-documentation/supporting-documentation-component.ts +++ b/projects/demo/src/modules/components/abstract/inherited-documentation/supporting-documentation-component.ts @@ -1,6 +1,6 @@ -import {type AbstractExampleTuiControl} from '../control'; -import {type AbstractExampleTuiHint} from '../hint'; -import {type AbstractExampleTuiInteractive} from '../interactive'; +import type {AbstractExampleTuiControl} from '../control'; +import type {AbstractExampleTuiHint} from '../hint'; +import type {AbstractExampleTuiInteractive} from '../interactive'; export type TuiSupportingDocumentationComponent = | AbstractExampleTuiControl diff --git a/projects/demo/src/modules/components/abstract/textfield-controller-documentation/textfield-controller-documentation.component.ts b/projects/demo/src/modules/components/abstract/textfield-controller-documentation/textfield-controller-documentation.component.ts index cb1469f18f5e..d10f65b8e03e 100644 --- a/projects/demo/src/modules/components/abstract/textfield-controller-documentation/textfield-controller-documentation.component.ts +++ b/projects/demo/src/modules/components/abstract/textfield-controller-documentation/textfield-controller-documentation.component.ts @@ -1,7 +1,7 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type AbstractExampleTuiControl} from '../control'; +import type {AbstractExampleTuiControl} from '../control'; import {ABSTRACT_PROPS_ACCESSOR} from '../inherited-documentation/abstract-props-accessor'; @Component({ diff --git a/projects/demo/src/modules/components/alert/alert.component.ts b/projects/demo/src/modules/components/alert/alert.component.ts index b1c9e0cf7509..8465055d788c 100644 --- a/projects/demo/src/modules/components/alert/alert.component.ts +++ b/projects/demo/src/modules/components/alert/alert.component.ts @@ -1,14 +1,11 @@ import {Component, inject, INJECTOR} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiPopoverContext} from '@taiga-ui/cdk'; -import { - TUI_NOTIFICATION_OPTIONS, - type TuiAlertOptions, - TuiAlertService, - type TuiNotification, -} from '@taiga-ui/core'; -import {PolymorpheusComponent, type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiPopoverContext} from '@taiga-ui/cdk'; +import type {TuiAlertOptions, TuiNotification} from '@taiga-ui/core'; +import {TUI_NOTIFICATION_OPTIONS, TuiAlertService} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; import {switchMap} from 'rxjs'; import {AlertExampleWithDataComponent} from './examples/4/alert-example-with-data/alert-example-with-data.component'; diff --git a/projects/demo/src/modules/components/alert/examples/2/index.ts b/projects/demo/src/modules/components/alert/examples/2/index.ts index fe160a156019..c3ba8825fcbb 100644 --- a/projects/demo/src/modules/components/alert/examples/2/index.ts +++ b/projects/demo/src/modules/components/alert/examples/2/index.ts @@ -1,7 +1,9 @@ -import {Component, inject, type TemplateRef, ViewChild} from '@angular/core'; +import type {TemplateRef} from '@angular/core'; +import {Component, inject, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiAlertContext, TuiAlertService} from '@taiga-ui/core'; +import type {TuiAlertContext} from '@taiga-ui/core'; +import {TuiAlertService} from '@taiga-ui/core'; @Component({ selector: 'tui-alerts-example-2', diff --git a/projects/demo/src/modules/components/alert/examples/3/alert-example/alert-example.component.ts b/projects/demo/src/modules/components/alert/examples/3/alert-example/alert-example.component.ts index ce383c8cc1e0..8e726df34470 100644 --- a/projects/demo/src/modules/components/alert/examples/3/alert-example/alert-example.component.ts +++ b/projects/demo/src/modules/components/alert/examples/3/alert-example/alert-example.component.ts @@ -1,7 +1,7 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiPopover} from '@taiga-ui/cdk'; -import {type TuiAlertOptions} from '@taiga-ui/core'; +import type {TuiPopover} from '@taiga-ui/cdk'; +import type {TuiAlertOptions} from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; @Component({ diff --git a/projects/demo/src/modules/components/alert/examples/4/alert-example-with-data/alert-example-with-data.component.ts b/projects/demo/src/modules/components/alert/examples/4/alert-example-with-data/alert-example-with-data.component.ts index 5a5b5b078490..78171cb37b7b 100644 --- a/projects/demo/src/modules/components/alert/examples/4/alert-example-with-data/alert-example-with-data.component.ts +++ b/projects/demo/src/modules/components/alert/examples/4/alert-example-with-data/alert-example-with-data.component.ts @@ -1,7 +1,7 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiPopover} from '@taiga-ui/cdk'; -import {type TuiAlertOptions} from '@taiga-ui/core'; +import type {TuiPopover} from '@taiga-ui/cdk'; +import type {TuiAlertOptions} from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; @Component({ diff --git a/projects/demo/src/modules/components/alert/examples/5/alert-example-with-custom-label/alert-example-with-custom-label.component.ts b/projects/demo/src/modules/components/alert/examples/5/alert-example-with-custom-label/alert-example-with-custom-label.component.ts index 4601eaf9d6c8..94355fb312e3 100644 --- a/projects/demo/src/modules/components/alert/examples/5/alert-example-with-custom-label/alert-example-with-custom-label.component.ts +++ b/projects/demo/src/modules/components/alert/examples/5/alert-example-with-custom-label/alert-example-with-custom-label.component.ts @@ -1,7 +1,7 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiPopover} from '@taiga-ui/cdk'; -import {type TuiAlertOptions} from '@taiga-ui/core'; +import type {TuiPopover} from '@taiga-ui/cdk'; +import type {TuiAlertOptions} from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; @Component({ diff --git a/projects/demo/src/modules/components/app-bar/app-bar.component.ts b/projects/demo/src/modules/components/app-bar/app-bar.component.ts index 1e5e48aae5cd..15be45825504 100644 --- a/projects/demo/src/modules/components/app-bar/app-bar.component.ts +++ b/projects/demo/src/modules/components/app-bar/app-bar.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-app-bar', diff --git a/projects/demo/src/modules/components/avatar/avatar.component.ts b/projects/demo/src/modules/components/avatar/avatar.component.ts index 2dbec2a41893..13d27b4afa8b 100644 --- a/projects/demo/src/modules/components/avatar/avatar.component.ts +++ b/projects/demo/src/modules/components/avatar/avatar.component.ts @@ -1,12 +1,11 @@ import {Component, inject} from '@angular/core'; -import {DomSanitizer, type SafeResourceUrl} from '@angular/platform-browser'; +import type {SafeResourceUrl} from '@angular/platform-browser'; +import {DomSanitizer} from '@angular/platform-browser'; import {changeDetection} from '@demo/emulate/change-detection'; -import { - TuiAddonDocModule, - type TuiDocExample, - type TuiRawLoaderContent, -} from '@taiga-ui/addon-doc'; -import {TuiNotificationModule, type TuiSizeXS, type TuiSizeXXL} from '@taiga-ui/core'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {TuiAddonDocModule} from '@taiga-ui/addon-doc'; +import type {TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core'; +import {TuiNotificationModule} from '@taiga-ui/core'; import {TuiAvatarComponent} from '@taiga-ui/kit'; import {TuiAvatarExample1} from './examples/1'; diff --git a/projects/demo/src/modules/components/avatar/examples/4/index.ts b/projects/demo/src/modules/components/avatar/examples/4/index.ts index c4cf7a02d35d..e49531d72256 100644 --- a/projects/demo/src/modules/components/avatar/examples/4/index.ts +++ b/projects/demo/src/modules/components/avatar/examples/4/index.ts @@ -2,7 +2,7 @@ import {NgForOf} from '@angular/common'; import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiSizeXS, type TuiSizeXXL} from '@taiga-ui/core'; +import type {TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core'; import {TuiAutoColorModule, TuiInitialsModule} from '@taiga-ui/experimental'; import {TuiAvatarComponent, TuiAvatarStackComponent} from '@taiga-ui/kit'; diff --git a/projects/demo/src/modules/components/badge/badge.component.ts b/projects/demo/src/modules/components/badge/badge.component.ts index 0fe4058fdb4d..8aa0ee5f2e1d 100644 --- a/projects/demo/src/modules/components/badge/badge.component.ts +++ b/projects/demo/src/modules/components/badge/badge.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; -import {type TuiSizeS, type TuiSizeXL} from '@taiga-ui/core'; +import type {TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiSizeS, TuiSizeXL} from '@taiga-ui/core'; @Component({ selector: 'example-badge', diff --git a/projects/demo/src/modules/components/badged-content/badged-content.component.ts b/projects/demo/src/modules/components/badged-content/badged-content.component.ts index 57775c59a050..0a4d6e2305e6 100644 --- a/projects/demo/src/modules/components/badged-content/badged-content.component.ts +++ b/projects/demo/src/modules/components/badged-content/badged-content.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-badged-content', diff --git a/projects/demo/src/modules/components/block-status/block-status.component.ts b/projects/demo/src/modules/components/block-status/block-status.component.ts index 1fb5d6d92d96..edadf3b7a449 100644 --- a/projects/demo/src/modules/components/block-status/block-status.component.ts +++ b/projects/demo/src/modules/components/block-status/block-status.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-block-status', diff --git a/projects/demo/src/modules/components/block-status/examples/2/index.ts b/projects/demo/src/modules/components/block-status/examples/2/index.ts index 08503eb42c63..7ffebf52155e 100644 --- a/projects/demo/src/modules/components/block-status/examples/2/index.ts +++ b/projects/demo/src/modules/components/block-status/examples/2/index.ts @@ -1,8 +1,10 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiBreakpointService, type TuiSizeL} from '@taiga-ui/core'; -import {map, type Observable} from 'rxjs'; +import type {TuiSizeL} from '@taiga-ui/core'; +import {TuiBreakpointService} from '@taiga-ui/core'; +import type {Observable} from 'rxjs'; +import {map} from 'rxjs'; @Component({ selector: 'tui-block-status-example-2', diff --git a/projects/demo/src/modules/components/block-status/examples/3/index.ts b/projects/demo/src/modules/components/block-status/examples/3/index.ts index 6f02d87f1d98..f43ae8c3f174 100644 --- a/projects/demo/src/modules/components/block-status/examples/3/index.ts +++ b/projects/demo/src/modules/components/block-status/examples/3/index.ts @@ -1,8 +1,10 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiBreakpointService, type TuiSizeL} from '@taiga-ui/core'; -import {map, type Observable} from 'rxjs'; +import type {TuiSizeL} from '@taiga-ui/core'; +import {TuiBreakpointService} from '@taiga-ui/core'; +import type {Observable} from 'rxjs'; +import {map} from 'rxjs'; @Component({ selector: 'tui-block-status-example-3', diff --git a/projects/demo/src/modules/components/breadcrumbs/breadcrumbs.component.ts b/projects/demo/src/modules/components/breadcrumbs/breadcrumbs.component.ts index 36446a304ada..4f63e69c06b9 100644 --- a/projects/demo/src/modules/components/breadcrumbs/breadcrumbs.component.ts +++ b/projects/demo/src/modules/components/breadcrumbs/breadcrumbs.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeL} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeL} from '@taiga-ui/core'; @Component({ selector: 'example-breadcrumbs', diff --git a/projects/demo/src/modules/components/button/button.component.ts b/projects/demo/src/modules/components/button/button.component.ts index fa7d0544d774..4ee9e8752602 100644 --- a/projects/demo/src/modules/components/button/button.component.ts +++ b/projects/demo/src/modules/components/button/button.component.ts @@ -1,9 +1,10 @@ -import {Component, forwardRef, type TemplateRef} from '@angular/core'; +import type {TemplateRef} from '@angular/core'; +import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {tuiPure} from '@taiga-ui/cdk'; -import {type TuiSizeXL, type TuiSizeXS} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiSizeXL, TuiSizeXS} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; import {AbstractExampleTuiInteractive} from '../abstract/interactive'; diff --git a/projects/demo/src/modules/components/calendar-month/calendar-month.component.ts b/projects/demo/src/modules/components/calendar-month/calendar-month.component.ts index 0d5f97bccc63..e0687ed862fe 100644 --- a/projects/demo/src/modules/components/calendar-month/calendar-month.component.ts +++ b/projects/demo/src/modules/components/calendar-month/calendar-month.component.ts @@ -1,11 +1,11 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - type TuiBooleanHandler, TuiDay, TuiMonth, TuiMonthRange, diff --git a/projects/demo/src/modules/components/calendar-month/examples/1/index.ts b/projects/demo/src/modules/components/calendar-month/examples/1/index.ts index 31ea5ae98d79..3892dda64090 100644 --- a/projects/demo/src/modules/components/calendar-month/examples/1/index.ts +++ b/projects/demo/src/modules/components/calendar-month/examples/1/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiMonth} from '@taiga-ui/cdk'; +import type {TuiMonth} from '@taiga-ui/cdk'; @Component({ selector: 'tui-calendar-month-example-1', diff --git a/projects/demo/src/modules/components/calendar-range/calendar-range.component.ts b/projects/demo/src/modules/components/calendar-range/calendar-range.component.ts index ddb8e48b1d26..131a7dde2337 100644 --- a/projects/demo/src/modules/components/calendar-range/calendar-range.component.ts +++ b/projects/demo/src/modules/components/calendar-range/calendar-range.component.ts @@ -1,17 +1,18 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiBooleanHandler, TuiDayLike} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - type TuiBooleanHandler, TuiDay, - type TuiDayLike, TuiMonth, } from '@taiga-ui/cdk'; -import {TUI_DEFAULT_MARKER_HANDLER, type TuiMarkerHandler} from '@taiga-ui/core'; -import {tuiCreateDefaultDayRangePeriods, type TuiDayRangePeriod} from '@taiga-ui/kit'; +import type {TuiMarkerHandler} from '@taiga-ui/core'; +import {TUI_DEFAULT_MARKER_HANDLER} from '@taiga-ui/core'; +import type {TuiDayRangePeriod} from '@taiga-ui/kit'; +import {tuiCreateDefaultDayRangePeriods} from '@taiga-ui/kit'; const TWO_DOTS: [string, string] = ['var(--tui-primary)', 'var(--tui-info-fill)']; const ONE_DOT: [string] = ['var(--tui-success-fill)']; diff --git a/projects/demo/src/modules/components/calendar/calendar.component.ts b/projects/demo/src/modules/components/calendar/calendar.component.ts index 095a379ced30..09628dfb471e 100644 --- a/projects/demo/src/modules/components/calendar/calendar.component.ts +++ b/projects/demo/src/modules/components/calendar/calendar.component.ts @@ -1,16 +1,17 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - type TuiBooleanHandler, TuiDay, TuiDayRange, TuiMonth, } from '@taiga-ui/cdk'; -import {TUI_DEFAULT_MARKER_HANDLER, type TuiMarkerHandler} from '@taiga-ui/core'; +import type {TuiMarkerHandler} from '@taiga-ui/core'; +import {TUI_DEFAULT_MARKER_HANDLER} from '@taiga-ui/core'; const TWO_DOTS: [string, string] = ['var(--tui-primary)', 'var(--tui-info-fill)']; const ONE_DOT: [string] = ['var(--tui-success-fill)']; diff --git a/projects/demo/src/modules/components/calendar/examples/1/index.ts b/projects/demo/src/modules/components/calendar/examples/1/index.ts index 967eb2e65f90..aab2befc23a6 100644 --- a/projects/demo/src/modules/components/calendar/examples/1/index.ts +++ b/projects/demo/src/modules/components/calendar/examples/1/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiDay} from '@taiga-ui/cdk'; +import type {TuiDay} from '@taiga-ui/cdk'; @Component({ selector: 'tui-calendar-example-1', diff --git a/projects/demo/src/modules/components/calendar/examples/2/index.ts b/projects/demo/src/modules/components/calendar/examples/2/index.ts index 3e3e0a3feb40..af9606f1a02c 100644 --- a/projects/demo/src/modules/components/calendar/examples/2/index.ts +++ b/projects/demo/src/modules/components/calendar/examples/2/index.ts @@ -1,7 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiDay, TuiDayRange, TuiMonth} from '@taiga-ui/cdk'; +import type {TuiDay} from '@taiga-ui/cdk'; +import {TuiDayRange, TuiMonth} from '@taiga-ui/cdk'; @Component({ selector: 'tui-calendar-example-2', diff --git a/projects/demo/src/modules/components/calendar/examples/3/index.ts b/projects/demo/src/modules/components/calendar/examples/3/index.ts index 32cc2a8c66f2..7849e313e1eb 100644 --- a/projects/demo/src/modules/components/calendar/examples/3/index.ts +++ b/projects/demo/src/modules/components/calendar/examples/3/index.ts @@ -1,8 +1,9 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiDay, TuiDayRange, TuiMonth} from '@taiga-ui/cdk'; -import {type TuiMarkerHandler} from '@taiga-ui/core'; +import type {TuiDay} from '@taiga-ui/cdk'; +import {TuiDayRange, TuiMonth} from '@taiga-ui/cdk'; +import type {TuiMarkerHandler} from '@taiga-ui/core'; const TWO_DOTS: [string, string] = ['var(--tui-primary)', 'var(--tui-info-fill)']; const ONE_DOT: [string] = ['var(--tui-success-fill)']; diff --git a/projects/demo/src/modules/components/calendar/examples/5/index.ts b/projects/demo/src/modules/components/calendar/examples/5/index.ts index d97d6246dfa4..92899024a927 100644 --- a/projects/demo/src/modules/components/calendar/examples/5/index.ts +++ b/projects/demo/src/modules/components/calendar/examples/5/index.ts @@ -1,6 +1,6 @@ import {Component, ViewEncapsulation} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDay, type TuiHandler} from '@taiga-ui/cdk'; +import type {TuiDay, TuiHandler} from '@taiga-ui/cdk'; import {TUI_DAY_TYPE_HANDLER} from '@taiga-ui/core'; const handler: TuiHandler = (day: TuiDay) => { diff --git a/projects/demo/src/modules/components/calendar/examples/6/index.ts b/projects/demo/src/modules/components/calendar/examples/6/index.ts index 2fc982c6b17d..ff0c314d2fcc 100644 --- a/projects/demo/src/modules/components/calendar/examples/6/index.ts +++ b/projects/demo/src/modules/components/calendar/examples/6/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiDay} from '@taiga-ui/cdk'; +import type {TuiDay} from '@taiga-ui/cdk'; @Component({ selector: 'tui-calendar-example-6', diff --git a/projects/demo/src/modules/components/calendar/examples/7/index.ts b/projects/demo/src/modules/components/calendar/examples/7/index.ts index fc5b8d8902e0..d3cc9c264951 100644 --- a/projects/demo/src/modules/components/calendar/examples/7/index.ts +++ b/projects/demo/src/modules/components/calendar/examples/7/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiDay} from '@taiga-ui/cdk'; +import type {TuiDay} from '@taiga-ui/cdk'; @Component({ selector: 'tui-calendar-example-7', diff --git a/projects/demo/src/modules/components/carousel/carousel.component.ts b/projects/demo/src/modules/components/carousel/carousel.component.ts index fcd8c39e51b2..174006bf2565 100644 --- a/projects/demo/src/modules/components/carousel/carousel.component.ts +++ b/projects/demo/src/modules/components/carousel/carousel.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-carousel', diff --git a/projects/demo/src/modules/components/checkbox/checkbox.component.ts b/projects/demo/src/modules/components/checkbox/checkbox.component.ts index 33f06b31aa66..08cfbfbb2b61 100644 --- a/projects/demo/src/modules/components/checkbox/checkbox.component.ts +++ b/projects/demo/src/modules/components/checkbox/checkbox.component.ts @@ -1,8 +1,8 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeL} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeL} from '@taiga-ui/core'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/combo-box/combo-box.component.ts b/projects/demo/src/modules/components/combo-box/combo-box.component.ts index 052256824db6..dc4a9cf8354c 100644 --- a/projects/demo/src/modules/components/combo-box/combo-box.component.ts +++ b/projects/demo/src/modules/components/combo-box/combo-box.component.ts @@ -1,18 +1,17 @@ import {Component, forwardRef, ViewChild} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; +import type {TuiIdentityMatcher, TuiStringHandler, TuiStringMatcher} from '@taiga-ui/cdk'; import { TUI_DEFAULT_MATCHER, TUI_DEFAULT_STRINGIFY, TUI_STRICT_MATCHER, - type TuiIdentityMatcher, tuiPure, - type TuiStringHandler, - type TuiStringMatcher, } from '@taiga-ui/cdk'; -import {type TuiValueContentContext} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiValueContentContext} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/combo-box/examples/1/index.ts b/projects/demo/src/modules/components/combo-box/examples/1/index.ts index c2d5186ee7dc..ebe072efe31d 100644 --- a/projects/demo/src/modules/components/combo-box/examples/1/index.ts +++ b/projects/demo/src/modules/components/combo-box/examples/1/index.ts @@ -4,7 +4,8 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {assets} from '@demo/utils'; import {TUI_DEFAULT_MATCHER} from '@taiga-ui/cdk'; -import {delay, filter, type Observable, of, startWith, Subject, switchMap} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {delay, filter, of, startWith, Subject, switchMap} from 'rxjs'; class User { constructor( diff --git a/projects/demo/src/modules/components/combo-box/examples/2/request.service.ts b/projects/demo/src/modules/components/combo-box/examples/2/request.service.ts index 20530f2b903d..6909d31c1bc2 100644 --- a/projects/demo/src/modules/components/combo-box/examples/2/request.service.ts +++ b/projects/demo/src/modules/components/combo-box/examples/2/request.service.ts @@ -1,9 +1,9 @@ import {inject, Injectable} from '@angular/core'; import {TUI_DEFAULT_MATCHER, TuiDestroyService} from '@taiga-ui/cdk'; +import type {Observable} from 'rxjs'; import { delay, distinctUntilChanged, - type Observable, of, shareReplay, startWith, @@ -13,7 +13,7 @@ import { } from 'rxjs'; import {databaseMockData} from './database-mock-data'; -import {type User} from './user'; +import type {User} from './user'; @Injectable() export class RequestService { diff --git a/projects/demo/src/modules/components/combo-box/examples/6/index.ts b/projects/demo/src/modules/components/combo-box/examples/6/index.ts index 99bb19fe7c1b..6b4da39e64d5 100644 --- a/projects/demo/src/modules/components/combo-box/examples/6/index.ts +++ b/projects/demo/src/modules/components/combo-box/examples/6/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiStringHandler} from '@taiga-ui/cdk'; +import type {TuiStringHandler} from '@taiga-ui/cdk'; import {tuiItemsHandlersProvider} from '@taiga-ui/kit'; interface Employee { diff --git a/projects/demo/src/modules/components/data-list-wrapper/examples/1/index.ts b/projects/demo/src/modules/components/data-list-wrapper/examples/1/index.ts index cbc8ac71a8af..12973a6b5244 100644 --- a/projects/demo/src/modules/components/data-list-wrapper/examples/1/index.ts +++ b/projects/demo/src/modules/components/data-list-wrapper/examples/1/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiBooleanHandler} from '@taiga-ui/cdk'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; @Component({ selector: 'tui-data-list-wrapper-example-1', diff --git a/projects/demo/src/modules/components/data-list/examples/2/index.ts b/projects/demo/src/modules/components/data-list/examples/2/index.ts index a8c6e98271a3..4378c9302de8 100644 --- a/projects/demo/src/modules/components/data-list/examples/2/index.ts +++ b/projects/demo/src/modules/components/data-list/examples/2/index.ts @@ -1,7 +1,8 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiDialogService, type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TuiDialogService} from '@taiga-ui/core'; @Component({ selector: 'tui-data-list-example-2', diff --git a/projects/demo/src/modules/components/data-list/examples/4/custom-list/custom-list.component.ts b/projects/demo/src/modules/components/data-list/examples/4/custom-list/custom-list.component.ts index 91c311134384..a7a68904c385 100644 --- a/projects/demo/src/modules/components/data-list/examples/4/custom-list/custom-list.component.ts +++ b/projects/demo/src/modules/components/data-list/examples/4/custom-list/custom-list.component.ts @@ -1,7 +1,8 @@ import {Component, Input} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {EMPTY_ARRAY, TUI_DEFAULT_MATCHER} from '@taiga-ui/cdk'; -import {type TuiDataListComponent, tuiIsEditingKey} from '@taiga-ui/core'; +import type {TuiDataListComponent} from '@taiga-ui/core'; +import {tuiIsEditingKey} from '@taiga-ui/core'; interface Items { readonly items: readonly T[]; diff --git a/projects/demo/src/modules/components/data-list/examples/4/index.ts b/projects/demo/src/modules/components/data-list/examples/4/index.ts index 4a955fe506a9..724a62971bc7 100644 --- a/projects/demo/src/modules/components/data-list/examples/4/index.ts +++ b/projects/demo/src/modules/components/data-list/examples/4/index.ts @@ -1,11 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import { - type TuiContext, - type TuiIdentityMatcher, - type TuiStringHandler, -} from '@taiga-ui/cdk'; +import type {TuiContext, TuiIdentityMatcher, TuiStringHandler} from '@taiga-ui/cdk'; const INCOME = { name: 'Income', diff --git a/projects/demo/src/modules/components/dialog/dialog.component.ts b/projects/demo/src/modules/components/dialog/dialog.component.ts index 62b4b1883ad4..105568f49197 100644 --- a/projects/demo/src/modules/components/dialog/dialog.component.ts +++ b/projects/demo/src/modules/components/dialog/dialog.component.ts @@ -1,12 +1,9 @@ -import {Component, inject, type TemplateRef} from '@angular/core'; +import type {TemplateRef} from '@angular/core'; +import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import { - TuiAlertService, - type TuiDialogContext, - TuiDialogService, - type TuiDialogSize, -} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDialogContext, TuiDialogSize} from '@taiga-ui/core'; +import {TuiAlertService, TuiDialogService} from '@taiga-ui/core'; import {switchMap} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/components/dialog/examples/2/dialog-example/dialog-example.component.ts b/projects/demo/src/modules/components/dialog/examples/2/dialog-example/dialog-example.component.ts index 71f56fa783e6..320574ba76fb 100644 --- a/projects/demo/src/modules/components/dialog/examples/2/dialog-example/dialog-example.component.ts +++ b/projects/demo/src/modules/components/dialog/examples/2/dialog-example/dialog-example.component.ts @@ -1,6 +1,8 @@ -import {Component, inject, type TemplateRef} from '@angular/core'; +import type {TemplateRef} from '@angular/core'; +import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDialogContext, TuiDialogService} from '@taiga-ui/core'; +import type {TuiDialogContext} from '@taiga-ui/core'; +import {TuiDialogService} from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; @Component({ diff --git a/projects/demo/src/modules/components/dialog/examples/3/index.ts b/projects/demo/src/modules/components/dialog/examples/3/index.ts index ea92a6cafa36..0d4b4492a230 100644 --- a/projects/demo/src/modules/components/dialog/examples/3/index.ts +++ b/projects/demo/src/modules/components/dialog/examples/3/index.ts @@ -1,8 +1,9 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiDialogContext, TuiDialogService} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiDialogContext} from '@taiga-ui/core'; +import {TuiDialogService} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-dialog-example-3', diff --git a/projects/demo/src/modules/components/dialog/examples/4/index.ts b/projects/demo/src/modules/components/dialog/examples/4/index.ts index 4f141fbfbd11..124697ca6ee8 100644 --- a/projects/demo/src/modules/components/dialog/examples/4/index.ts +++ b/projects/demo/src/modules/components/dialog/examples/4/index.ts @@ -1,9 +1,10 @@ -import {Component, inject, type TemplateRef} from '@angular/core'; +import type {TemplateRef} from '@angular/core'; +import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiClamp} from '@taiga-ui/cdk'; import {TuiDialogService, TuiDropdownService} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-dialog-example-4', diff --git a/projects/demo/src/modules/components/dialog/examples/5/index.ts b/projects/demo/src/modules/components/dialog/examples/5/index.ts index 55e42a0b4f4e..8cb934c0da49 100644 --- a/projects/demo/src/modules/components/dialog/examples/5/index.ts +++ b/projects/demo/src/modules/components/dialog/examples/5/index.ts @@ -1,12 +1,9 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import { - type TuiDialogContext, - TuiDialogService, - type TuiDialogSize, -} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiDialogContext, TuiDialogSize} from '@taiga-ui/core'; +import {TuiDialogService} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-dialog-example-5', diff --git a/projects/demo/src/modules/components/dialog/examples/7/search-example/search-dialog-example.component.ts b/projects/demo/src/modules/components/dialog/examples/7/search-example/search-dialog-example.component.ts index 9960bf1af9b5..115e733d1a1c 100644 --- a/projects/demo/src/modules/components/dialog/examples/7/search-example/search-dialog-example.component.ts +++ b/projects/demo/src/modules/components/dialog/examples/7/search-example/search-dialog-example.component.ts @@ -1,6 +1,6 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDialogContext} from '@taiga-ui/core'; +import type {TuiDialogContext} from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; @Component({ diff --git a/projects/demo/src/modules/components/dialog/examples/8/index.ts b/projects/demo/src/modules/components/dialog/examples/8/index.ts index 795f07d43e07..061b74adf66b 100644 --- a/projects/demo/src/modules/components/dialog/examples/8/index.ts +++ b/projects/demo/src/modules/components/dialog/examples/8/index.ts @@ -3,7 +3,7 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiDialogService} from '@taiga-ui/core'; import {TuiDialogFormService} from '@taiga-ui/kit'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-dialog-example-8', diff --git a/projects/demo/src/modules/components/dialog/examples/9/helpers/mock-cards.ts b/projects/demo/src/modules/components/dialog/examples/9/helpers/mock-cards.ts index 7b34bbc80aee..ecc83348c9c4 100644 --- a/projects/demo/src/modules/components/dialog/examples/9/helpers/mock-cards.ts +++ b/projects/demo/src/modules/components/dialog/examples/9/helpers/mock-cards.ts @@ -1,4 +1,4 @@ -import {type AccountCard} from './models'; +import type {AccountCard} from './models'; export const MOCK_CARDS: AccountCard[] = [ { diff --git a/projects/demo/src/modules/components/dialog/examples/9/helpers/pay.service.ts b/projects/demo/src/modules/components/dialog/examples/9/helpers/pay.service.ts index 992b72d28b40..f2126b1f62fd 100644 --- a/projects/demo/src/modules/components/dialog/examples/9/helpers/pay.service.ts +++ b/projects/demo/src/modules/components/dialog/examples/9/helpers/pay.service.ts @@ -1,9 +1,10 @@ import {inject, Injectable} from '@angular/core'; import {TUI_IS_E2E} from '@taiga-ui/cdk'; -import {map, type Observable, timer} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map, timer} from 'rxjs'; import {MOCK_CARDS} from './mock-cards'; -import {type AccountCard, type FetchedCards} from './models'; +import type {AccountCard, FetchedCards} from './models'; @Injectable({ providedIn: 'root', diff --git a/projects/demo/src/modules/components/dialog/examples/9/helpers/validator.ts b/projects/demo/src/modules/components/dialog/examples/9/helpers/validator.ts index a14c6ed8a773..70628d3bbfd8 100644 --- a/projects/demo/src/modules/components/dialog/examples/9/helpers/validator.ts +++ b/projects/demo/src/modules/components/dialog/examples/9/helpers/validator.ts @@ -1,8 +1,4 @@ -import { - type AbstractControl, - type ValidationErrors, - type ValidatorFn, -} from '@angular/forms'; +import type {AbstractControl, ValidationErrors, ValidatorFn} from '@angular/forms'; export function inputCardGroupedCVCValidator(): ValidatorFn { return (control: AbstractControl): ValidationErrors | null => { diff --git a/projects/demo/src/modules/components/dialog/examples/9/pay-modal/pay-modal.component.ts b/projects/demo/src/modules/components/dialog/examples/9/pay-modal/pay-modal.component.ts index 0521be1aec18..be38836e7f0e 100644 --- a/projects/demo/src/modules/components/dialog/examples/9/pay-modal/pay-modal.component.ts +++ b/projects/demo/src/modules/components/dialog/examples/9/pay-modal/pay-modal.component.ts @@ -1,28 +1,16 @@ -import { - ChangeDetectionStrategy, - Component, - inject, - type OnInit, - ViewChild, -} from '@angular/core'; +import type {OnInit} from '@angular/core'; +import {ChangeDetectionStrategy, Component, inject, ViewChild} from '@angular/core'; import {FormControl, FormGroup, Validators} from '@angular/forms'; -import { - type TuiCard, - tuiCardNumberValidator, - tuiDefaultCardValidator, - type TuiInputCardGroupedComponent, -} from '@taiga-ui/addon-commerce'; -import {TUI_IS_IOS, TuiDestroyService, type TuiValuesOf} from '@taiga-ui/cdk'; -import {type TuiDialogContext} from '@taiga-ui/core'; +import type {TuiCard, TuiInputCardGroupedComponent} from '@taiga-ui/addon-commerce'; +import {tuiCardNumberValidator, tuiDefaultCardValidator} from '@taiga-ui/addon-commerce'; +import type {TuiValuesOf} from '@taiga-ui/cdk'; +import {TUI_IS_IOS, TuiDestroyService} from '@taiga-ui/cdk'; +import type {TuiDialogContext} from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; import {BehaviorSubject, map, switchMap, takeUntil} from 'rxjs'; -import { - type AccountCard, - type DataForPayCardModal, - type FetchedCards, - PaymentMode, -} from '../helpers/models'; +import type {AccountCard, DataForPayCardModal, FetchedCards} from '../helpers/models'; +import {PaymentMode} from '../helpers/models'; import {PayService} from '../helpers/pay.service'; import {inputCardGroupedCVCValidator} from '../helpers/validator'; diff --git a/projects/demo/src/modules/components/elastic-container/elastic-container.component.ts b/projects/demo/src/modules/components/elastic-container/elastic-container.component.ts index 8919f8e11864..a092955d8f66 100644 --- a/projects/demo/src/modules/components/elastic-container/elastic-container.component.ts +++ b/projects/demo/src/modules/components/elastic-container/elastic-container.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-elastic-container', diff --git a/projects/demo/src/modules/components/error/error.component.ts b/projects/demo/src/modules/components/error/error.component.ts index f1eb9aabb117..1101ba649af9 100644 --- a/projects/demo/src/modules/components/error/error.component.ts +++ b/projects/demo/src/modules/components/error/error.component.ts @@ -1,6 +1,7 @@ -import {Component, type TemplateRef, ViewChild} from '@angular/core'; +import type {TemplateRef} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {TuiValidationError} from '@taiga-ui/cdk'; @Component({ diff --git a/projects/demo/src/modules/components/expand/expand.component.ts b/projects/demo/src/modules/components/expand/expand.component.ts index c6a47668d4c6..5fa216b2c96f 100644 --- a/projects/demo/src/modules/components/expand/expand.component.ts +++ b/projects/demo/src/modules/components/expand/expand.component.ts @@ -1,6 +1,6 @@ import {ChangeDetectorRef, Component, ElementRef, inject, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {TuiDestroyService} from '@taiga-ui/cdk'; import {TUI_EXPAND_LOADED, TuiExpandComponent} from '@taiga-ui/core'; import {takeUntil, timer} from 'rxjs'; diff --git a/projects/demo/src/modules/components/filter/examples/1/index.ts b/projects/demo/src/modules/components/filter/examples/1/index.ts index 5072e0d1f324..bf952c496f97 100644 --- a/projects/demo/src/modules/components/filter/examples/1/index.ts +++ b/projects/demo/src/modules/components/filter/examples/1/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiBooleanHandler} from '@taiga-ui/cdk'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; @Component({ selector: 'tui-filter-example-1', diff --git a/projects/demo/src/modules/components/filter/examples/2/index.ts b/projects/demo/src/modules/components/filter/examples/2/index.ts index b2dbab2c50d4..d2edee2e15d1 100644 --- a/projects/demo/src/modules/components/filter/examples/2/index.ts +++ b/projects/demo/src/modules/components/filter/examples/2/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiHandler, type TuiIdentityMatcher} from '@taiga-ui/cdk'; +import type {TuiHandler, TuiIdentityMatcher} from '@taiga-ui/cdk'; interface Operations { operations: readonly Operation[]; diff --git a/projects/demo/src/modules/components/filter/examples/4/index.ts b/projects/demo/src/modules/components/filter/examples/4/index.ts index a2e4f6013a81..e65e0d9461e9 100644 --- a/projects/demo/src/modules/components/filter/examples/4/index.ts +++ b/projects/demo/src/modules/components/filter/examples/4/index.ts @@ -3,7 +3,8 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiPure} from '@taiga-ui/cdk'; import {TuiAppearance} from '@taiga-ui/core'; -import {BehaviorSubject, map, type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {BehaviorSubject, map} from 'rxjs'; const Department = { IT: 'IT', diff --git a/projects/demo/src/modules/components/filter/filter.component.ts b/projects/demo/src/modules/components/filter/filter.component.ts index 22735067c050..dabefd5617bb 100644 --- a/projects/demo/src/modules/components/filter/filter.component.ts +++ b/projects/demo/src/modules/components/filter/filter.component.ts @@ -1,13 +1,10 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import { - ALWAYS_FALSE_HANDLER, - type TuiBooleanHandler, - type TuiHandler, -} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeXS} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiBooleanHandler, TuiHandler} from '@taiga-ui/cdk'; +import {ALWAYS_FALSE_HANDLER} from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeXS} from '@taiga-ui/core'; class ItemWithBadge { constructor( diff --git a/projects/demo/src/modules/components/group/group.component.ts b/projects/demo/src/modules/components/group/group.component.ts index db8e3e811ffd..1ea60936d449 100644 --- a/projects/demo/src/modules/components/group/group.component.ts +++ b/projects/demo/src/modules/components/group/group.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiOrientation, type TuiSizeL} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiOrientation, TuiSizeL} from '@taiga-ui/core'; @Component({ selector: 'example-group', diff --git a/projects/demo/src/modules/components/hosted-dropdown/examples/5/accessor.ts b/projects/demo/src/modules/components/hosted-dropdown/examples/5/accessor.ts index c8aca51c11a6..997c421440cd 100644 --- a/projects/demo/src/modules/components/hosted-dropdown/examples/5/accessor.ts +++ b/projects/demo/src/modules/components/hosted-dropdown/examples/5/accessor.ts @@ -1,5 +1,6 @@ import {Directive, ElementRef, inject} from '@angular/core'; -import {tuiAsPositionAccessor, type TuiPoint, TuiPositionAccessor} from '@taiga-ui/core'; +import type {TuiPoint} from '@taiga-ui/core'; +import {tuiAsPositionAccessor, TuiPositionAccessor} from '@taiga-ui/core'; @Directive({ selector: '[topRight]', diff --git a/projects/demo/src/modules/components/hosted-dropdown/hosted-dropdown.component.ts b/projects/demo/src/modules/components/hosted-dropdown/hosted-dropdown.component.ts index cc253470ae86..5d3cdc2ab7d2 100644 --- a/projects/demo/src/modules/components/hosted-dropdown/hosted-dropdown.component.ts +++ b/projects/demo/src/modules/components/hosted-dropdown/hosted-dropdown.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiDropdown} from '../abstract/dropdown'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-card-grouped/examples/1/index.ts b/projects/demo/src/modules/components/input-card-grouped/examples/1/index.ts index 4c821bb08383..59941a153fe6 100644 --- a/projects/demo/src/modules/components/input-card-grouped/examples/1/index.ts +++ b/projects/demo/src/modules/components/input-card-grouped/examples/1/index.ts @@ -1,11 +1,8 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import { - type TuiCard, - tuiCardExpireValidator, - tuiCardNumberValidator, -} from '@taiga-ui/addon-commerce'; +import type {TuiCard} from '@taiga-ui/addon-commerce'; +import {tuiCardExpireValidator, tuiCardNumberValidator} from '@taiga-ui/addon-commerce'; @Component({ selector: 'tui-input-card-grouped-example-1', diff --git a/projects/demo/src/modules/components/input-card-grouped/examples/2/index.ts b/projects/demo/src/modules/components/input-card-grouped/examples/2/index.ts index 5ec3996da589..089e0a15489a 100644 --- a/projects/demo/src/modules/components/input-card-grouped/examples/2/index.ts +++ b/projects/demo/src/modules/components/input-card-grouped/examples/2/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiInputCardGroupedComponent} from '@taiga-ui/addon-commerce'; +import type {TuiInputCardGroupedComponent} from '@taiga-ui/addon-commerce'; @Component({ selector: 'tui-input-card-grouped-example-2', diff --git a/projects/demo/src/modules/components/input-card-grouped/examples/3/index.ts b/projects/demo/src/modules/components/input-card-grouped/examples/3/index.ts index f5d55d27002b..e8a26bb6b138 100644 --- a/projects/demo/src/modules/components/input-card-grouped/examples/3/index.ts +++ b/projects/demo/src/modules/components/input-card-grouped/examples/3/index.ts @@ -1,11 +1,8 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import { - type TuiCard, - tuiCardExpireValidator, - tuiCardNumberValidator, -} from '@taiga-ui/addon-commerce'; +import type {TuiCard} from '@taiga-ui/addon-commerce'; +import {tuiCardExpireValidator, tuiCardNumberValidator} from '@taiga-ui/addon-commerce'; @Component({ selector: 'tui-input-card-grouped-example-3', diff --git a/projects/demo/src/modules/components/input-card-grouped/examples/4/index.ts b/projects/demo/src/modules/components/input-card-grouped/examples/4/index.ts index 3b68c73d9ead..f6c8ce2f6c39 100644 --- a/projects/demo/src/modules/components/input-card-grouped/examples/4/index.ts +++ b/projects/demo/src/modules/components/input-card-grouped/examples/4/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiCard} from '@taiga-ui/addon-commerce'; +import type {TuiCard} from '@taiga-ui/addon-commerce'; @Component({ selector: 'tui-input-card-grouped-example-4', diff --git a/projects/demo/src/modules/components/input-card-grouped/examples/5/index.ts b/projects/demo/src/modules/components/input-card-grouped/examples/5/index.ts index 589d4dadc96d..ab4e94349eca 100644 --- a/projects/demo/src/modules/components/input-card-grouped/examples/5/index.ts +++ b/projects/demo/src/modules/components/input-card-grouped/examples/5/index.ts @@ -1,7 +1,8 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TUI_INPUT_CARD_GROUPED_TEXTS, type TuiCard} from '@taiga-ui/addon-commerce'; +import type {TuiCard} from '@taiga-ui/addon-commerce'; +import {TUI_INPUT_CARD_GROUPED_TEXTS} from '@taiga-ui/addon-commerce'; import {of} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/components/input-card-grouped/input-card-grouped.component.ts b/projects/demo/src/modules/components/input-card-grouped/input-card-grouped.component.ts index 167281faefdb..124cd426d6f0 100644 --- a/projects/demo/src/modules/components/input-card-grouped/input-card-grouped.component.ts +++ b/projects/demo/src/modules/components/input-card-grouped/input-card-grouped.component.ts @@ -1,10 +1,10 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiCard, type TuiCodeCVCLength} from '@taiga-ui/addon-commerce'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiCard, TuiCodeCVCLength} from '@taiga-ui/addon-commerce'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {tuiIsString} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; import {AbstractExampleTuiInteractive} from '../abstract/interactive'; diff --git a/projects/demo/src/modules/components/input-card/input-card.component.ts b/projects/demo/src/modules/components/input-card/input-card.component.ts index 5f7d000ea5e3..c6f14be7b02e 100644 --- a/projects/demo/src/modules/components/input-card/input-card.component.ts +++ b/projects/demo/src/modules/components/input-card/input-card.component.ts @@ -1,12 +1,11 @@ import {Component, forwardRef, ViewChild} from '@angular/core'; import {FormControl, FormGroup, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiCodeCVCLength, tuiCreateLuhnValidator} from '@taiga-ui/addon-commerce'; -import { - TuiDocDocumentationPropertyConnectorDirective, - type TuiDocExample, -} from '@taiga-ui/addon-doc'; -import {type TuiHintOptions} from '@taiga-ui/core'; +import type {TuiCodeCVCLength} from '@taiga-ui/addon-commerce'; +import {tuiCreateLuhnValidator} from '@taiga-ui/addon-commerce'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TuiDocDocumentationPropertyConnectorDirective} from '@taiga-ui/addon-doc'; +import type {TuiHintOptions} from '@taiga-ui/core'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-copy/input-copy.component.ts b/projects/demo/src/modules/components/input-copy/input-copy.component.ts index 5976d0b9fed0..bf7a22fca060 100644 --- a/projects/demo/src/modules/components/input-copy/input-copy.component.ts +++ b/projects/demo/src/modules/components/input-copy/input-copy.component.ts @@ -1,8 +1,9 @@ import {Component, forwardRef, ViewChild} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-date-multi/input-date-multi.component.ts b/projects/demo/src/modules/components/input-date-multi/input-date-multi.component.ts index 6ba779154017..2c8a7592f215 100644 --- a/projects/demo/src/modules/components/input-date-multi/input-date-multi.component.ts +++ b/projects/demo/src/modules/components/input-date-multi/input-date-multi.component.ts @@ -1,15 +1,11 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import { - ALWAYS_FALSE_HANDLER, - TUI_FIRST_DAY, - TUI_LAST_DAY, - type TuiBooleanHandler, - TuiDay, -} from '@taiga-ui/cdk'; -import {TUI_DEFAULT_MARKER_HANDLER, type TuiMarkerHandler} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; +import {ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, TuiDay} from '@taiga-ui/cdk'; +import type {TuiMarkerHandler} from '@taiga-ui/core'; +import {TUI_DEFAULT_MARKER_HANDLER} from '@taiga-ui/core'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-date-range/input-date-range.component.ts b/projects/demo/src/modules/components/input-date-range/input-date-range.component.ts index be11a4b72717..67cd7f948492 100644 --- a/projects/demo/src/modules/components/input-date-range/input-date-range.component.ts +++ b/projects/demo/src/modules/components/input-date-range/input-date-range.component.ts @@ -1,19 +1,19 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiBooleanHandler, TuiDayLike, TuiDayRange} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - type TuiBooleanHandler, TuiDay, - type TuiDayLike, - type TuiDayRange, TuiMonth, } from '@taiga-ui/cdk'; -import {TUI_DEFAULT_MARKER_HANDLER, type TuiMarkerHandler} from '@taiga-ui/core'; -import {tuiCreateDefaultDayRangePeriods, type TuiDayRangePeriod} from '@taiga-ui/kit'; +import type {TuiMarkerHandler} from '@taiga-ui/core'; +import {TUI_DEFAULT_MARKER_HANDLER} from '@taiga-ui/core'; +import type {TuiDayRangePeriod} from '@taiga-ui/kit'; +import {tuiCreateDefaultDayRangePeriods} from '@taiga-ui/kit'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-date-time/input-date-time.component.ts b/projects/demo/src/modules/components/input-date-time/input-date-time.component.ts index 7f4c8d23cd83..4193ced33e34 100644 --- a/projects/demo/src/modules/components/input-date-time/input-date-time.component.ts +++ b/projects/demo/src/modules/components/input-date-time/input-date-time.component.ts @@ -1,16 +1,15 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiBooleanHandler, TuiTimeMode} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - type TuiBooleanHandler, TuiDay, TuiMonth, TuiTime, - type TuiTimeMode, } from '@taiga-ui/cdk'; import {TuiNamedDay} from '@taiga-ui/kit'; diff --git a/projects/demo/src/modules/components/input-date/input-date.component.ts b/projects/demo/src/modules/components/input-date/input-date.component.ts index 798885df21a0..ec9982214c44 100644 --- a/projects/demo/src/modules/components/input-date/input-date.component.ts +++ b/projects/demo/src/modules/components/input-date/input-date.component.ts @@ -1,15 +1,11 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import { - ALWAYS_FALSE_HANDLER, - TUI_FIRST_DAY, - TUI_LAST_DAY, - type TuiBooleanHandler, - TuiDay, -} from '@taiga-ui/cdk'; -import {TUI_DEFAULT_MARKER_HANDLER, type TuiMarkerHandler} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; +import {ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, TuiDay} from '@taiga-ui/cdk'; +import type {TuiMarkerHandler} from '@taiga-ui/core'; +import {TUI_DEFAULT_MARKER_HANDLER} from '@taiga-ui/core'; import {TuiNamedDay} from '@taiga-ui/kit'; import {AbstractExampleTuiControl} from '../abstract/control'; diff --git a/projects/demo/src/modules/components/input-files/examples/1/index.ts b/projects/demo/src/modules/components/input-files/examples/1/index.ts index 77b569a160e0..af30b87a2588 100644 --- a/projects/demo/src/modules/components/input-files/examples/1/index.ts +++ b/projects/demo/src/modules/components/input-files/examples/1/index.ts @@ -2,8 +2,9 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiFileLike} from '@taiga-ui/kit'; -import {finalize, map, type Observable, of, Subject, switchMap, timer} from 'rxjs'; +import type {TuiFileLike} from '@taiga-ui/kit'; +import type {Observable} from 'rxjs'; +import {finalize, map, of, Subject, switchMap, timer} from 'rxjs'; @Component({ selector: 'tui-input-files-example-1', diff --git a/projects/demo/src/modules/components/input-files/examples/2/index.ts b/projects/demo/src/modules/components/input-files/examples/2/index.ts index f5f737e46c31..e47bc0e5c6a5 100644 --- a/projects/demo/src/modules/components/input-files/examples/2/index.ts +++ b/projects/demo/src/modules/components/input-files/examples/2/index.ts @@ -1,5 +1,6 @@ import {Component} from '@angular/core'; -import {type AbstractControl, FormControl, type ValidatorFn} from '@angular/forms'; +import type {AbstractControl, ValidatorFn} from '@angular/forms'; +import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiValidationError} from '@taiga-ui/cdk'; diff --git a/projects/demo/src/modules/components/input-files/examples/3/index.ts b/projects/demo/src/modules/components/input-files/examples/3/index.ts index bde1a7ea8ea5..849bf165bf1d 100644 --- a/projects/demo/src/modules/components/input-files/examples/3/index.ts +++ b/projects/demo/src/modules/components/input-files/examples/3/index.ts @@ -3,7 +3,7 @@ import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TUI_IS_E2E} from '@taiga-ui/cdk'; -import {type TuiFileLike} from '@taiga-ui/kit'; +import type {TuiFileLike} from '@taiga-ui/kit'; @Component({ selector: 'tui-input-files-example-3', diff --git a/projects/demo/src/modules/components/input-files/examples/4/index.ts b/projects/demo/src/modules/components/input-files/examples/4/index.ts index b89ed9e4b400..1f7d9287f240 100644 --- a/projects/demo/src/modules/components/input-files/examples/4/index.ts +++ b/projects/demo/src/modules/components/input-files/examples/4/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiFileLike} from '@taiga-ui/kit'; +import type {TuiFileLike} from '@taiga-ui/kit'; @Component({ selector: 'tui-input-files-example-4', diff --git a/projects/demo/src/modules/components/input-files/examples/5/index.ts b/projects/demo/src/modules/components/input-files/examples/5/index.ts index 85d02b578d60..e9dc1cd6190a 100644 --- a/projects/demo/src/modules/components/input-files/examples/5/index.ts +++ b/projects/demo/src/modules/components/input-files/examples/5/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiFileLike} from '@taiga-ui/kit'; +import type {TuiFileLike} from '@taiga-ui/kit'; @Component({ selector: 'tui-input-files-example-5', diff --git a/projects/demo/src/modules/components/input-files/examples/6/index.ts b/projects/demo/src/modules/components/input-files/examples/6/index.ts index ac0b540c3d4f..94464318ffa7 100644 --- a/projects/demo/src/modules/components/input-files/examples/6/index.ts +++ b/projects/demo/src/modules/components/input-files/examples/6/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiFileLike} from '@taiga-ui/kit'; +import type {TuiFileLike} from '@taiga-ui/kit'; @Component({ selector: 'tui-input-files-example-6', diff --git a/projects/demo/src/modules/components/input-files/input-files.component.ts b/projects/demo/src/modules/components/input-files/input-files.component.ts index 27edaca00f03..ac02e2812ae6 100644 --- a/projects/demo/src/modules/components/input-files/input-files.component.ts +++ b/projects/demo/src/modules/components/input-files/input-files.component.ts @@ -1,8 +1,8 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeL} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeL} from '@taiga-ui/core'; import {tuiFilesAccepted} from '@taiga-ui/kit'; import {map} from 'rxjs'; diff --git a/projects/demo/src/modules/components/input-inline/examples/3/component.ts b/projects/demo/src/modules/components/input-inline/examples/3/component.ts index 7c1e05388c93..3960dd4a9b73 100644 --- a/projects/demo/src/modules/components/input-inline/examples/3/component.ts +++ b/projects/demo/src/modules/components/input-inline/examples/3/component.ts @@ -1,4 +1,5 @@ -import {ChangeDetectorRef, Component, inject, NgZone, type OnInit} from '@angular/core'; +import type {OnInit} from '@angular/core'; +import {ChangeDetectorRef, Component, inject, NgZone} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TUI_IS_E2E, TuiDestroyService, tuiWatch, tuiZoneOptimized} from '@taiga-ui/cdk'; diff --git a/projects/demo/src/modules/components/input-inline/input-inline.component.ts b/projects/demo/src/modules/components/input-inline/input-inline.component.ts index cf774450892a..8e02a29df759 100644 --- a/projects/demo/src/modules/components/input-inline/input-inline.component.ts +++ b/projects/demo/src/modules/components/input-inline/input-inline.component.ts @@ -1,6 +1,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiControl} from '../abstract/control'; diff --git a/projects/demo/src/modules/components/input-month-range/examples/1/index.ts b/projects/demo/src/modules/components/input-month-range/examples/1/index.ts index 75767259b3d8..484e378a6cdc 100644 --- a/projects/demo/src/modules/components/input-month-range/examples/1/index.ts +++ b/projects/demo/src/modules/components/input-month-range/examples/1/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiMonthRange} from '@taiga-ui/cdk'; +import type {TuiMonthRange} from '@taiga-ui/cdk'; @Component({ selector: 'tui-input-month-range-example-1', diff --git a/projects/demo/src/modules/components/input-month-range/examples/2/index.ts b/projects/demo/src/modules/components/input-month-range/examples/2/index.ts index 9d9f959b0917..b241c0e654c9 100644 --- a/projects/demo/src/modules/components/input-month-range/examples/2/index.ts +++ b/projects/demo/src/modules/components/input-month-range/examples/2/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiMonthRange} from '@taiga-ui/cdk'; +import type {TuiMonthRange} from '@taiga-ui/cdk'; @Component({ selector: 'tui-input-month-range-example-2', diff --git a/projects/demo/src/modules/components/input-month-range/examples/3/index.ts b/projects/demo/src/modules/components/input-month-range/examples/3/index.ts index 26da5b85f1a1..982ca7c65f2c 100644 --- a/projects/demo/src/modules/components/input-month-range/examples/3/index.ts +++ b/projects/demo/src/modules/components/input-month-range/examples/3/index.ts @@ -2,8 +2,9 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiMonth, TuiMonthRange} from '@taiga-ui/cdk'; -import {type TuiBooleanHandlerWithContext, type TuiMonthContext} from '@taiga-ui/kit'; +import type {TuiMonth} from '@taiga-ui/cdk'; +import {TuiMonthRange} from '@taiga-ui/cdk'; +import type {TuiBooleanHandlerWithContext, TuiMonthContext} from '@taiga-ui/kit'; @Component({ selector: 'tui-input-month-range-example-3', diff --git a/projects/demo/src/modules/components/input-month-range/input-month-range.component.ts b/projects/demo/src/modules/components/input-month-range/input-month-range.component.ts index 4f8d3bb5386f..ad06fa09e694 100644 --- a/projects/demo/src/modules/components/input-month-range/input-month-range.component.ts +++ b/projects/demo/src/modules/components/input-month-range/input-month-range.component.ts @@ -1,16 +1,16 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiMonthRange} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, TuiDay, TuiMonth, - type TuiMonthRange, } from '@taiga-ui/cdk'; -import {type TuiBooleanHandlerWithContext, type TuiMonthContext} from '@taiga-ui/kit'; +import type {TuiBooleanHandlerWithContext, TuiMonthContext} from '@taiga-ui/kit'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-month/examples/1/index.ts b/projects/demo/src/modules/components/input-month/examples/1/index.ts index 4e85d2178ac5..a15bbe41bb9d 100644 --- a/projects/demo/src/modules/components/input-month/examples/1/index.ts +++ b/projects/demo/src/modules/components/input-month/examples/1/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiMonth} from '@taiga-ui/cdk'; +import type {TuiMonth} from '@taiga-ui/cdk'; @Component({ selector: 'input-month-example-1', diff --git a/projects/demo/src/modules/components/input-month/examples/2/index.ts b/projects/demo/src/modules/components/input-month/examples/2/index.ts index 8dee0e2a6c52..a48f659f1267 100644 --- a/projects/demo/src/modules/components/input-month/examples/2/index.ts +++ b/projects/demo/src/modules/components/input-month/examples/2/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiMonth} from '@taiga-ui/cdk'; +import type {TuiMonth} from '@taiga-ui/cdk'; @Component({ selector: 'input-month-example-2', diff --git a/projects/demo/src/modules/components/input-month/input-month.component.ts b/projects/demo/src/modules/components/input-month/input-month.component.ts index 46bef210228c..cfb693dfb759 100644 --- a/projects/demo/src/modules/components/input-month/input-month.component.ts +++ b/projects/demo/src/modules/components/input-month/input-month.component.ts @@ -1,12 +1,12 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - type TuiBooleanHandler, TuiDay, TuiMonth, } from '@taiga-ui/cdk'; diff --git a/projects/demo/src/modules/components/input-number/examples/7/index.ts b/projects/demo/src/modules/components/input-number/examples/7/index.ts index ffd66e2aac4e..de6d8632732f 100644 --- a/projects/demo/src/modules/components/input-number/examples/7/index.ts +++ b/projects/demo/src/modules/components/input-number/examples/7/index.ts @@ -2,8 +2,10 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TUI_DEFAULT_NUMBER_FORMAT, TUI_NUMBER_FORMAT} from '@taiga-ui/core'; -import {TUI_LANGUAGE, type TuiLanguage} from '@taiga-ui/i18n'; -import {type BehaviorSubject, map, type Observable, switchMap} from 'rxjs'; +import type {TuiLanguage} from '@taiga-ui/i18n'; +import {TUI_LANGUAGE} from '@taiga-ui/i18n'; +import type {BehaviorSubject, Observable} from 'rxjs'; +import {map, switchMap} from 'rxjs'; @Component({ selector: 'tui-input-number-example-7', diff --git a/projects/demo/src/modules/components/input-number/input-number.component.ts b/projects/demo/src/modules/components/input-number/input-number.component.ts index 5d91acca6f3f..62eaffd0cb34 100644 --- a/projects/demo/src/modules/components/input-number/input-number.component.ts +++ b/projects/demo/src/modules/components/input-number/input-number.component.ts @@ -1,8 +1,8 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiDecimal} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDecimal} from '@taiga-ui/core'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-password/input-password.component.ts b/projects/demo/src/modules/components/input-password/input-password.component.ts index 12539d321555..5a0441a74e17 100644 --- a/projects/demo/src/modules/components/input-password/input-password.component.ts +++ b/projects/demo/src/modules/components/input-password/input-password.component.ts @@ -1,7 +1,7 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-phone-international/input-phone-international.component.ts b/projects/demo/src/modules/components/input-phone-international/input-phone-international.component.ts index 3c1007b74f4e..83d64555e2d1 100644 --- a/projects/demo/src/modules/components/input-phone-international/input-phone-international.component.ts +++ b/projects/demo/src/modules/components/input-phone-international/input-phone-international.component.ts @@ -1,7 +1,7 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {TuiCountryIsoCode} from '@taiga-ui/i18n'; import {AbstractExampleTuiControl} from '../abstract/control'; diff --git a/projects/demo/src/modules/components/input-phone/examples/3/index.ts b/projects/demo/src/modules/components/input-phone/examples/3/index.ts index 2eae01263fa6..80d54eeaa86d 100644 --- a/projects/demo/src/modules/components/input-phone/examples/3/index.ts +++ b/projects/demo/src/modules/components/input-phone/examples/3/index.ts @@ -3,11 +3,11 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {assets} from '@demo/utils'; import {TUI_DEFAULT_MATCHER, tuiPure} from '@taiga-ui/cdk'; +import type {Observable} from 'rxjs'; import { combineLatest, map, merge, - type Observable, of, share, startWith, diff --git a/projects/demo/src/modules/components/input-phone/input-phone.component.ts b/projects/demo/src/modules/components/input-phone/input-phone.component.ts index 643243b397b3..b414e9cb666f 100644 --- a/projects/demo/src/modules/components/input-phone/input-phone.component.ts +++ b/projects/demo/src/modules/components/input-phone/input-phone.component.ts @@ -1,7 +1,7 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-range/examples/5/index.ts b/projects/demo/src/modules/components/input-range/examples/5/index.ts index dc113e2b6590..600507d5103b 100644 --- a/projects/demo/src/modules/components/input-range/examples/5/index.ts +++ b/projects/demo/src/modules/components/input-range/examples/5/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiKeySteps} from '@taiga-ui/kit'; +import type {TuiKeySteps} from '@taiga-ui/kit'; @Component({ selector: 'tui-input-range-example-5', diff --git a/projects/demo/src/modules/components/input-range/input-range.component.ts b/projects/demo/src/modules/components/input-range/input-range.component.ts index d844974ffe59..e01fc82599fc 100644 --- a/projects/demo/src/modules/components/input-range/input-range.component.ts +++ b/projects/demo/src/modules/components/input-range/input-range.component.ts @@ -1,10 +1,10 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiContext} from '@taiga-ui/cdk'; -import {type TuiSizeL} from '@taiga-ui/core'; -import {type TuiKeySteps} from '@taiga-ui/kit'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiContext} from '@taiga-ui/cdk'; +import type {TuiSizeL} from '@taiga-ui/core'; +import type {TuiKeySteps} from '@taiga-ui/kit'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-slider/examples/3/index.ts b/projects/demo/src/modules/components/input-slider/examples/3/index.ts index f027c5cbe4fe..89590e440d79 100644 --- a/projects/demo/src/modules/components/input-slider/examples/3/index.ts +++ b/projects/demo/src/modules/components/input-slider/examples/3/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiKeySteps} from '@taiga-ui/kit'; +import type {TuiKeySteps} from '@taiga-ui/kit'; @Component({ selector: 'tui-input-slider-example-3', diff --git a/projects/demo/src/modules/components/input-slider/examples/5/index.ts b/projects/demo/src/modules/components/input-slider/examples/5/index.ts index bab1a785ab45..6bfbcf64fb55 100644 --- a/projects/demo/src/modules/components/input-slider/examples/5/index.ts +++ b/projects/demo/src/modules/components/input-slider/examples/5/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiContext} from '@taiga-ui/cdk'; +import type {TuiContext} from '@taiga-ui/cdk'; @Component({ selector: 'tui-input-slider-example-5', diff --git a/projects/demo/src/modules/components/input-slider/input-slider.component.ts b/projects/demo/src/modules/components/input-slider/input-slider.component.ts index 0db9fda5f483..30a03d299033 100644 --- a/projects/demo/src/modules/components/input-slider/input-slider.component.ts +++ b/projects/demo/src/modules/components/input-slider/input-slider.component.ts @@ -1,10 +1,10 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiContext} from '@taiga-ui/cdk'; -import {type TuiSizeL} from '@taiga-ui/core'; -import {type TuiKeySteps} from '@taiga-ui/kit'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiContext} from '@taiga-ui/cdk'; +import type {TuiSizeL} from '@taiga-ui/core'; +import type {TuiKeySteps} from '@taiga-ui/kit'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-tag/examples/2/index.ts b/projects/demo/src/modules/components/input-tag/examples/2/index.ts index af86d45820a5..25bf6bf0159c 100644 --- a/projects/demo/src/modules/components/input-tag/examples/2/index.ts +++ b/projects/demo/src/modules/components/input-tag/examples/2/index.ts @@ -1,7 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {delay, type Observable, of, startWith, Subject, switchMap} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {delay, of, startWith, Subject, switchMap} from 'rxjs'; const databaseMockData: readonly string[] = [ 'John Cleese', diff --git a/projects/demo/src/modules/components/input-tag/examples/4/index.ts b/projects/demo/src/modules/components/input-tag/examples/4/index.ts index 883055e35a9e..f2507276dd41 100644 --- a/projects/demo/src/modules/components/input-tag/examples/4/index.ts +++ b/projects/demo/src/modules/components/input-tag/examples/4/index.ts @@ -1,11 +1,12 @@ import {Component} from '@angular/core'; -import {type AbstractControl, FormControl, type ValidatorFn} from '@angular/forms'; +import type {AbstractControl, ValidatorFn} from '@angular/forms'; +import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; import { EMPTY_ARRAY, TUI_DEFAULT_MATCHER, - type TuiBooleanHandler, tuiPure, TuiValidationError, } from '@taiga-ui/cdk'; diff --git a/projects/demo/src/modules/components/input-tag/examples/9/index.ts b/projects/demo/src/modules/components/input-tag/examples/9/index.ts index 6c3add6f5de6..247eea340e77 100644 --- a/projects/demo/src/modules/components/input-tag/examples/9/index.ts +++ b/projects/demo/src/modules/components/input-tag/examples/9/index.ts @@ -2,9 +2,10 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {maskitoDateOptionsGenerator} from '@maskito/kit'; -import {type TuiBooleanHandler, TuiDay} from '@taiga-ui/cdk'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; +import {TuiDay} from '@taiga-ui/cdk'; @Component({ selector: 'tui-input-tag-example-9', diff --git a/projects/demo/src/modules/components/input-tag/input-tag.component.ts b/projects/demo/src/modules/components/input-tag/input-tag.component.ts index 07dcf3f6cb1a..917727d76d77 100644 --- a/projects/demo/src/modules/components/input-tag/input-tag.component.ts +++ b/projects/demo/src/modules/components/input-tag/input-tag.component.ts @@ -1,14 +1,12 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; -import { - ALWAYS_FALSE_HANDLER, - ALWAYS_TRUE_HANDLER, - type TuiBooleanHandler, -} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; -import {type TuiStringifiableItem} from '@taiga-ui/kit'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; +import {ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER} from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import type {TuiStringifiableItem} from '@taiga-ui/kit'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input-time/examples/2/index.ts b/projects/demo/src/modules/components/input-time/examples/2/index.ts index e96993a97b4b..e32c3d1b24c3 100644 --- a/projects/demo/src/modules/components/input-time/examples/2/index.ts +++ b/projects/demo/src/modules/components/input-time/examples/2/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiTime} from '@taiga-ui/cdk'; +import type {TuiTime} from '@taiga-ui/cdk'; import {tuiCreateTimePeriods} from '@taiga-ui/kit'; @Component({ diff --git a/projects/demo/src/modules/components/input-time/examples/3/index.ts b/projects/demo/src/modules/components/input-time/examples/3/index.ts index f433b36d78b3..ed3846c91f2d 100644 --- a/projects/demo/src/modules/components/input-time/examples/3/index.ts +++ b/projects/demo/src/modules/components/input-time/examples/3/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiTime} from '@taiga-ui/cdk'; +import type {TuiTime} from '@taiga-ui/cdk'; import {tuiCreateTimePeriods, tuiInputTimeOptionsProvider} from '@taiga-ui/kit'; @Component({ diff --git a/projects/demo/src/modules/components/input-time/examples/4/index.ts b/projects/demo/src/modules/components/input-time/examples/4/index.ts index 486a3ed21dda..31e2a4379a13 100644 --- a/projects/demo/src/modules/components/input-time/examples/4/index.ts +++ b/projects/demo/src/modules/components/input-time/examples/4/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiTime} from '@taiga-ui/cdk'; +import type {TuiTime} from '@taiga-ui/cdk'; import {tuiInputTimeOptionsProvider} from '@taiga-ui/kit'; @Component({ diff --git a/projects/demo/src/modules/components/input-time/examples/5/index.ts b/projects/demo/src/modules/components/input-time/examples/5/index.ts index fa258fc48ac1..232ef25c7286 100644 --- a/projects/demo/src/modules/components/input-time/examples/5/index.ts +++ b/projects/demo/src/modules/components/input-time/examples/5/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiTime} from '@taiga-ui/cdk'; +import type {TuiTime} from '@taiga-ui/cdk'; import {tuiInputTimeOptionsProvider} from '@taiga-ui/kit'; @Component({ diff --git a/projects/demo/src/modules/components/input-time/input-time.component.ts b/projects/demo/src/modules/components/input-time/input-time.component.ts index c68bf7967fc6..974b02e6db30 100644 --- a/projects/demo/src/modules/components/input-time/input-time.component.ts +++ b/projects/demo/src/modules/components/input-time/input-time.component.ts @@ -1,14 +1,11 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; -import { - ALWAYS_FALSE_HANDLER, - type TuiBooleanHandler, - TuiTime, - type TuiTimeMode, -} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; +import type {TuiBooleanHandler, TuiTimeMode} from '@taiga-ui/cdk'; +import {ALWAYS_FALSE_HANDLER, TuiTime} from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import {tuiCreateTimePeriods} from '@taiga-ui/kit'; import {AbstractExampleTuiControl} from '../abstract/control'; diff --git a/projects/demo/src/modules/components/input-year/input-year.component.ts b/projects/demo/src/modules/components/input-year/input-year.component.ts index 00dc8ff494b1..863a47a7ca12 100644 --- a/projects/demo/src/modules/components/input-year/input-year.component.ts +++ b/projects/demo/src/modules/components/input-year/input-year.component.ts @@ -1,13 +1,9 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import { - ALWAYS_FALSE_HANDLER, - TUI_FIRST_DAY, - TUI_LAST_DAY, - type TuiBooleanHandler, -} from '@taiga-ui/cdk'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; +import {ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY} from '@taiga-ui/cdk'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/input/examples/3/index.ts b/projects/demo/src/modules/components/input/examples/3/index.ts index 5c25e4dd38b1..660b638c320c 100644 --- a/projects/demo/src/modules/components/input/examples/3/index.ts +++ b/projects/demo/src/modules/components/input/examples/3/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; @Component({ selector: 'tui-input-example-3', diff --git a/projects/demo/src/modules/components/input/examples/4/index.ts b/projects/demo/src/modules/components/input/examples/4/index.ts index 064123326408..067b526ece93 100644 --- a/projects/demo/src/modules/components/input/examples/4/index.ts +++ b/projects/demo/src/modules/components/input/examples/4/index.ts @@ -5,7 +5,7 @@ import {encapsulation} from '@demo/emulate/encapsulation'; import {assets} from '@demo/utils'; import {TuiCurrency} from '@taiga-ui/addon-commerce'; import {TUI_DEFAULT_MATCHER, tuiControlValue} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {map} from 'rxjs'; class User { diff --git a/projects/demo/src/modules/components/input/examples/8/index.ts b/projects/demo/src/modules/components/input/examples/8/index.ts index 0c6094ded2d3..56f45d950389 100644 --- a/projects/demo/src/modules/components/input/examples/8/index.ts +++ b/projects/demo/src/modules/components/input/examples/8/index.ts @@ -4,7 +4,8 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {assets} from '@demo/utils'; import {TUI_DEFAULT_MATCHER} from '@taiga-ui/cdk'; -import {map, type Observable, of, startWith, switchMap} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map, of, startWith, switchMap} from 'rxjs'; class User { constructor( diff --git a/projects/demo/src/modules/components/input/input.component.ts b/projects/demo/src/modules/components/input/input.component.ts index ddd3c9a71d13..5ac6e4bcd6b0 100644 --- a/projects/demo/src/modules/components/input/input.component.ts +++ b/projects/demo/src/modules/components/input/input.component.ts @@ -1,8 +1,9 @@ -import {Component, forwardRef, type TemplateRef, ViewChild} from '@angular/core'; +import type {TemplateRef} from '@angular/core'; +import {Component, forwardRef, ViewChild} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/island/island.component.ts b/projects/demo/src/modules/components/island/island.component.ts index 8d08cc7d233c..a5c5b98c73ef 100644 --- a/projects/demo/src/modules/components/island/island.component.ts +++ b/projects/demo/src/modules/components/island/island.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-island', diff --git a/projects/demo/src/modules/components/items-with-more/items-with-more.component.ts b/projects/demo/src/modules/components/items-with-more/items-with-more.component.ts index fc971eeaaf82..19fc1dfac412 100644 --- a/projects/demo/src/modules/components/items-with-more/items-with-more.component.ts +++ b/projects/demo/src/modules/components/items-with-more/items-with-more.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-items-with-more', diff --git a/projects/demo/src/modules/components/label/label.component.ts b/projects/demo/src/modules/components/label/label.component.ts index ebca085950e4..e131730313d7 100644 --- a/projects/demo/src/modules/components/label/label.component.ts +++ b/projects/demo/src/modules/components/label/label.component.ts @@ -1,7 +1,8 @@ -import {Component, type TemplateRef} from '@angular/core'; +import type {TemplateRef} from '@angular/core'; +import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'example-tui-label', diff --git a/projects/demo/src/modules/components/line-clamp/line-clamp.component.ts b/projects/demo/src/modules/components/line-clamp/line-clamp.component.ts index 0494f34c5ca9..807c9ae2798f 100644 --- a/projects/demo/src/modules/components/line-clamp/line-clamp.component.ts +++ b/projects/demo/src/modules/components/line-clamp/line-clamp.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-line-clamp', diff --git a/projects/demo/src/modules/components/link/link.component.ts b/projects/demo/src/modules/components/link/link.component.ts index 2fa4e333c1fa..144b18de6505 100644 --- a/projects/demo/src/modules/components/link/link.component.ts +++ b/projects/demo/src/modules/components/link/link.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiHorizontalDirection} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiHorizontalDirection} from '@taiga-ui/core'; @Component({ selector: 'example-tui-link', diff --git a/projects/demo/src/modules/components/loader/loader.component.ts b/projects/demo/src/modules/components/loader/loader.component.ts index 22084925b029..e3d7531d9a5c 100644 --- a/projects/demo/src/modules/components/loader/loader.component.ts +++ b/projects/demo/src/modules/components/loader/loader.component.ts @@ -1,8 +1,8 @@ import {Component, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeXS, type TuiSizeXXL} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'example-tui-loader', diff --git a/projects/demo/src/modules/components/mobile-calendar/examples/1/index.ts b/projects/demo/src/modules/components/mobile-calendar/examples/1/index.ts index abc17259ebfa..17f58d0da5af 100644 --- a/projects/demo/src/modules/components/mobile-calendar/examples/1/index.ts +++ b/projects/demo/src/modules/components/mobile-calendar/examples/1/index.ts @@ -7,7 +7,8 @@ import {tuiControlValue, TuiDay} from '@taiga-ui/cdk'; import {TUI_MONTHS, TuiDialogService} from '@taiga-ui/core'; import {TUI_CALENDAR_DATE_STREAM} from '@taiga-ui/kit'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; -import {combineLatest, map, type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {combineLatest, map} from 'rxjs'; @Component({ selector: 'tui-mobile-calendar-example-1', diff --git a/projects/demo/src/modules/components/mobile-calendar/examples/4/index.ts b/projects/demo/src/modules/components/mobile-calendar/examples/4/index.ts index 1678cc299b68..c8abaa905391 100644 --- a/projects/demo/src/modules/components/mobile-calendar/examples/4/index.ts +++ b/projects/demo/src/modules/components/mobile-calendar/examples/4/index.ts @@ -3,11 +3,13 @@ import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiMobileCalendarDialogComponent} from '@taiga-ui/addon-mobile'; -import {tuiControlValue, TuiDay, type TuiDayRange} from '@taiga-ui/cdk'; +import type {TuiDayRange} from '@taiga-ui/cdk'; +import {tuiControlValue, TuiDay} from '@taiga-ui/cdk'; import {TUI_MONTHS, TuiDialogService} from '@taiga-ui/core'; import {TUI_CALENDAR_DATE_STREAM} from '@taiga-ui/kit'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; -import {combineLatest, map, type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {combineLatest, map} from 'rxjs'; @Component({ selector: 'tui-mobile-calendar-example-4', diff --git a/projects/demo/src/modules/components/mobile-calendar/examples/5/index.ts b/projects/demo/src/modules/components/mobile-calendar/examples/5/index.ts index 7c4ed69ffde9..ac123353c45a 100644 --- a/projects/demo/src/modules/components/mobile-calendar/examples/5/index.ts +++ b/projects/demo/src/modules/components/mobile-calendar/examples/5/index.ts @@ -7,7 +7,8 @@ import {tuiControlValue, TuiDay} from '@taiga-ui/cdk'; import {TUI_MONTHS, TuiDialogService} from '@taiga-ui/core'; import {TUI_CALENDAR_DATE_STREAM} from '@taiga-ui/kit'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; -import {combineLatest, map, type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {combineLatest, map} from 'rxjs'; @Component({ selector: 'tui-mobile-calendar-example-5', diff --git a/projects/demo/src/modules/components/mobile-calendar/mobile-calendar.component.ts b/projects/demo/src/modules/components/mobile-calendar/mobile-calendar.component.ts index 4a734f186eef..7eb7c0b60461 100644 --- a/projects/demo/src/modules/components/mobile-calendar/mobile-calendar.component.ts +++ b/projects/demo/src/modules/components/mobile-calendar/mobile-calendar.component.ts @@ -1,18 +1,17 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiBooleanHandler, TuiDayRange} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - type TuiBooleanHandler, tuiControlValue, TuiDay, - type TuiDayRange, } from '@taiga-ui/cdk'; import {TUI_CALENDAR_DATE_STREAM} from '@taiga-ui/kit'; -import {type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; @Component({ selector: 'example-tui-mobile-calendar', diff --git a/projects/demo/src/modules/components/mobile-dialog/mobile-dialog.component.ts b/projects/demo/src/modules/components/mobile-dialog/mobile-dialog.component.ts index e017cf73b734..63ff9b821f2c 100644 --- a/projects/demo/src/modules/components/mobile-dialog/mobile-dialog.component.ts +++ b/projects/demo/src/modules/components/mobile-dialog/mobile-dialog.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-mobile-dialog', diff --git a/projects/demo/src/modules/components/mobile-themes/mobile-themes.component.ts b/projects/demo/src/modules/components/mobile-themes/mobile-themes.component.ts index 72419a405da4..a50a5e0092dd 100644 --- a/projects/demo/src/modules/components/mobile-themes/mobile-themes.component.ts +++ b/projects/demo/src/modules/components/mobile-themes/mobile-themes.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-mobile-themes', diff --git a/projects/demo/src/modules/components/multi-select/examples/1/index.ts b/projects/demo/src/modules/components/multi-select/examples/1/index.ts index b8217a07c7c4..f0f6cccefe3c 100644 --- a/projects/demo/src/modules/components/multi-select/examples/1/index.ts +++ b/projects/demo/src/modules/components/multi-select/examples/1/index.ts @@ -2,7 +2,8 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TUI_DEFAULT_MATCHER, type TuiBooleanHandler, tuiPure} from '@taiga-ui/cdk'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; +import {TUI_DEFAULT_MATCHER, tuiPure} from '@taiga-ui/cdk'; const ITEMS: readonly string[] = [ 'Luke Skywalker', diff --git a/projects/demo/src/modules/components/multi-select/examples/10/index.ts b/projects/demo/src/modules/components/multi-select/examples/10/index.ts index fe4f966c3080..8e8531d7b0ca 100644 --- a/projects/demo/src/modules/components/multi-select/examples/10/index.ts +++ b/projects/demo/src/modules/components/multi-select/examples/10/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiBooleanHandler, type TuiStringHandler} from '@taiga-ui/cdk'; +import type {TuiBooleanHandler, TuiStringHandler} from '@taiga-ui/cdk'; interface Item { readonly id: number; diff --git a/projects/demo/src/modules/components/multi-select/examples/11/index.ts b/projects/demo/src/modules/components/multi-select/examples/11/index.ts index e11da7969d3f..ce6da2c35b1f 100644 --- a/projects/demo/src/modules/components/multi-select/examples/11/index.ts +++ b/projects/demo/src/modules/components/multi-select/examples/11/index.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiContext} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiContext} from '@taiga-ui/cdk'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-multi-select-example-11', diff --git a/projects/demo/src/modules/components/multi-select/examples/2/index.ts b/projects/demo/src/modules/components/multi-select/examples/2/index.ts index 0ec1b5e54291..0981ac2b95fe 100644 --- a/projects/demo/src/modules/components/multi-select/examples/2/index.ts +++ b/projects/demo/src/modules/components/multi-select/examples/2/index.ts @@ -4,7 +4,8 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {assets} from '@demo/utils'; import {TUI_DEFAULT_MATCHER} from '@taiga-ui/cdk'; -import {delay, filter, type Observable, of, startWith, Subject, switchMap} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {delay, filter, of, startWith, Subject, switchMap} from 'rxjs'; class User { constructor( diff --git a/projects/demo/src/modules/components/multi-select/examples/3/index.ts b/projects/demo/src/modules/components/multi-select/examples/3/index.ts index 3e2c2182fdd1..ee16498fee67 100644 --- a/projects/demo/src/modules/components/multi-select/examples/3/index.ts +++ b/projects/demo/src/modules/components/multi-select/examples/3/index.ts @@ -2,11 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import { - type TuiContext, - type TuiIdentityMatcher, - type TuiStringHandler, -} from '@taiga-ui/cdk'; +import type {TuiContext, TuiIdentityMatcher, TuiStringHandler} from '@taiga-ui/cdk'; interface Hero { readonly id: number; diff --git a/projects/demo/src/modules/components/multi-select/examples/4/index.ts b/projects/demo/src/modules/components/multi-select/examples/4/index.ts index e225d6672f05..15ab443520ca 100644 --- a/projects/demo/src/modules/components/multi-select/examples/4/index.ts +++ b/projects/demo/src/modules/components/multi-select/examples/4/index.ts @@ -1,21 +1,10 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import { - TUI_DEFAULT_MATCHER, - type TuiContext, - type TuiHandler, - tuiIsNumber, -} from '@taiga-ui/cdk'; -import { - map, - type Observable, - shareReplay, - startWith, - Subject, - switchMap, - timer, -} from 'rxjs'; +import type {TuiContext, TuiHandler} from '@taiga-ui/cdk'; +import {TUI_DEFAULT_MATCHER, tuiIsNumber} from '@taiga-ui/cdk'; +import type {Observable} from 'rxjs'; +import {map, shareReplay, startWith, Subject, switchMap, timer} from 'rxjs'; const DICTIONARY = [ {id: 1, name: 'Luke Skywalker'}, diff --git a/projects/demo/src/modules/components/multi-select/examples/8/index.ts b/projects/demo/src/modules/components/multi-select/examples/8/index.ts index f514fb588bcd..685426d8e77b 100644 --- a/projects/demo/src/modules/components/multi-select/examples/8/index.ts +++ b/projects/demo/src/modules/components/multi-select/examples/8/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiContext} from '@taiga-ui/cdk'; +import type {TuiContext} from '@taiga-ui/cdk'; import {tuiItemsHandlersProvider} from '@taiga-ui/kit'; interface Employee { diff --git a/projects/demo/src/modules/components/multi-select/examples/9/index.ts b/projects/demo/src/modules/components/multi-select/examples/9/index.ts index 48e9eea6f0cd..ae9ea41f1b17 100644 --- a/projects/demo/src/modules/components/multi-select/examples/9/index.ts +++ b/projects/demo/src/modules/components/multi-select/examples/9/index.ts @@ -2,13 +2,9 @@ import {Component, inject} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import { - type TuiDialogContext, - TuiDialogService, - type TuiSizeL, - type TuiSizeS, -} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiDialogContext, TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TuiDialogService} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-multi-select-example-9', diff --git a/projects/demo/src/modules/components/multi-select/multi-select.component.ts b/projects/demo/src/modules/components/multi-select/multi-select.component.ts index 4418df053809..ffe24a90b93f 100644 --- a/projects/demo/src/modules/components/multi-select/multi-select.component.ts +++ b/projects/demo/src/modules/components/multi-select/multi-select.component.ts @@ -1,18 +1,21 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; +import type { + TuiBooleanHandler, + TuiContext, + TuiIdentityMatcher, + TuiStringHandler, +} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER, TUI_DEFAULT_STRINGIFY, - type TuiBooleanHandler, - type TuiContext, - type TuiIdentityMatcher, - type TuiStringHandler, } from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/notification/notification.component.ts b/projects/demo/src/modules/components/notification/notification.component.ts index 12d219221439..fbbe22e4f7d6 100644 --- a/projects/demo/src/modules/components/notification/notification.component.ts +++ b/projects/demo/src/modules/components/notification/notification.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiNotification} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiNotification} from '@taiga-ui/core'; @Component({ selector: 'example-notification', diff --git a/projects/demo/src/modules/components/pagination/pagination.component.ts b/projects/demo/src/modules/components/pagination/pagination.component.ts index 63ce77d7af44..855cdf162095 100644 --- a/projects/demo/src/modules/components/pagination/pagination.component.ts +++ b/projects/demo/src/modules/components/pagination/pagination.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-tui-pagination', diff --git a/projects/demo/src/modules/components/pdf-viewer/examples/1/index.ts b/projects/demo/src/modules/components/pdf-viewer/examples/1/index.ts index d9dee8e05a6a..02ce5df4da09 100644 --- a/projects/demo/src/modules/components/pdf-viewer/examples/1/index.ts +++ b/projects/demo/src/modules/components/pdf-viewer/examples/1/index.ts @@ -3,8 +3,9 @@ import {DomSanitizer} from '@angular/platform-browser'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TUI_IS_MOBILE} from '@taiga-ui/cdk'; -import {type TuiPdfViewerOptions, TuiPdfViewerService} from '@taiga-ui/kit'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiPdfViewerOptions} from '@taiga-ui/kit'; +import {TuiPdfViewerService} from '@taiga-ui/kit'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-pdf-viewer-example-1', diff --git a/projects/demo/src/modules/components/pdf-viewer/examples/2/actions-content.component.ts b/projects/demo/src/modules/components/pdf-viewer/examples/2/actions-content.component.ts index 51b26becd4e4..6bb4c68e4189 100644 --- a/projects/demo/src/modules/components/pdf-viewer/examples/2/actions-content.component.ts +++ b/projects/demo/src/modules/components/pdf-viewer/examples/2/actions-content.component.ts @@ -1,6 +1,6 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; -import {type TuiPopover} from '@taiga-ui/cdk'; -import {type TuiPdfViewerOptions} from '@taiga-ui/kit'; +import type {TuiPopover} from '@taiga-ui/cdk'; +import type {TuiPdfViewerOptions} from '@taiga-ui/kit'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; import type {Buttons} from './index'; diff --git a/projects/demo/src/modules/components/pdf-viewer/examples/2/index.ts b/projects/demo/src/modules/components/pdf-viewer/examples/2/index.ts index 46296787eaeb..75ae89f07402 100644 --- a/projects/demo/src/modules/components/pdf-viewer/examples/2/index.ts +++ b/projects/demo/src/modules/components/pdf-viewer/examples/2/index.ts @@ -1,9 +1,10 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiPopover} from '@taiga-ui/cdk'; +import type {TuiPopover} from '@taiga-ui/cdk'; import {TuiAlertService} from '@taiga-ui/core'; -import {type TuiPdfViewerOptions, TuiPdfViewerService} from '@taiga-ui/kit'; +import type {TuiPdfViewerOptions} from '@taiga-ui/kit'; +import {TuiPdfViewerService} from '@taiga-ui/kit'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; import {switchMap} from 'rxjs'; diff --git a/projects/demo/src/modules/components/pdf-viewer/pdf-viewer.component.ts b/projects/demo/src/modules/components/pdf-viewer/pdf-viewer.component.ts index 74c4dabc4534..582278b203a1 100644 --- a/projects/demo/src/modules/components/pdf-viewer/pdf-viewer.component.ts +++ b/projects/demo/src/modules/components/pdf-viewer/pdf-viewer.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-pdf-viewer', diff --git a/projects/demo/src/modules/components/preview/examples/1/index.ts b/projects/demo/src/modules/components/preview/examples/1/index.ts index d6d67199e79d..e265e940efc4 100644 --- a/projects/demo/src/modules/components/preview/examples/1/index.ts +++ b/projects/demo/src/modules/components/preview/examples/1/index.ts @@ -1,10 +1,13 @@ -import {Component, inject, type TemplateRef, ViewChild} from '@angular/core'; +import type {TemplateRef} from '@angular/core'; +import {Component, inject, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiPreviewDialogService} from '@taiga-ui/addon-preview'; -import {tuiClamp, type TuiSwipe} from '@taiga-ui/cdk'; -import {TuiAlertService, type TuiDialogContext} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiSwipe} from '@taiga-ui/cdk'; +import {tuiClamp} from '@taiga-ui/cdk'; +import type {TuiDialogContext} from '@taiga-ui/core'; +import {TuiAlertService} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-preview-example-1', diff --git a/projects/demo/src/modules/components/preview/examples/2/index.ts b/projects/demo/src/modules/components/preview/examples/2/index.ts index adf8bf1f13b5..945e8472b584 100644 --- a/projects/demo/src/modules/components/preview/examples/2/index.ts +++ b/projects/demo/src/modules/components/preview/examples/2/index.ts @@ -1,8 +1,9 @@ -import {Component, inject, type TemplateRef, ViewChild} from '@angular/core'; +import type {TemplateRef} from '@angular/core'; +import {Component, inject, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiPreviewDialogService} from '@taiga-ui/addon-preview'; -import {type TuiDialogContext} from '@taiga-ui/core'; +import type {TuiDialogContext} from '@taiga-ui/core'; @Component({ selector: 'tui-preview-example-2', diff --git a/projects/demo/src/modules/components/preview/examples/3/index.ts b/projects/demo/src/modules/components/preview/examples/3/index.ts index 61183a5fae06..acc32a682bb2 100644 --- a/projects/demo/src/modules/components/preview/examples/3/index.ts +++ b/projects/demo/src/modules/components/preview/examples/3/index.ts @@ -1,19 +1,12 @@ -import {Component, inject, type TemplateRef, ViewChild} from '@angular/core'; +import type {TemplateRef} from '@angular/core'; +import {Component, inject, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiPreviewDialogService} from '@taiga-ui/addon-preview'; import {tuiIsPresent} from '@taiga-ui/cdk'; -import {type TuiDialogContext} from '@taiga-ui/core'; -import { - BehaviorSubject, - filter, - map, - type Observable, - of, - startWith, - switchMap, - timer, -} from 'rxjs'; +import type {TuiDialogContext} from '@taiga-ui/core'; +import type {Observable} from 'rxjs'; +import {BehaviorSubject, filter, map, of, startWith, switchMap, timer} from 'rxjs'; @Component({ selector: 'tui-preview-example-3', diff --git a/projects/demo/src/modules/components/preview/preview.component.ts b/projects/demo/src/modules/components/preview/preview.component.ts index c2c2b04e4c9f..eed2a9f5b6d5 100644 --- a/projects/demo/src/modules/components/preview/preview.component.ts +++ b/projects/demo/src/modules/components/preview/preview.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-preview', diff --git a/projects/demo/src/modules/components/primitive-textfield/examples/1/index.ts b/projects/demo/src/modules/components/primitive-textfield/examples/1/index.ts index b044c671e0b3..1b6b4d666165 100644 --- a/projects/demo/src/modules/components/primitive-textfield/examples/1/index.ts +++ b/projects/demo/src/modules/components/primitive-textfield/examples/1/index.ts @@ -1,7 +1,8 @@ import {Component, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {AbstractTuiControl, type TuiNativeFocusableElement} from '@taiga-ui/cdk'; +import type {TuiNativeFocusableElement} from '@taiga-ui/cdk'; +import {AbstractTuiControl} from '@taiga-ui/cdk'; import {TuiPrimitiveTextfieldComponent} from '@taiga-ui/core'; @Component({ diff --git a/projects/demo/src/modules/components/primitive-textfield/examples/2/index.ts b/projects/demo/src/modules/components/primitive-textfield/examples/2/index.ts index e59d6f5e150e..779566ca964a 100644 --- a/projects/demo/src/modules/components/primitive-textfield/examples/2/index.ts +++ b/projects/demo/src/modules/components/primitive-textfield/examples/2/index.ts @@ -1,7 +1,8 @@ import {Component, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {AbstractTuiControl, type TuiNativeFocusableElement} from '@taiga-ui/cdk'; +import type {TuiNativeFocusableElement} from '@taiga-ui/cdk'; +import {AbstractTuiControl} from '@taiga-ui/cdk'; import { TuiPrimitiveTextfieldComponent, tuiTextfieldOptionsProvider, diff --git a/projects/demo/src/modules/components/primitive-textfield/primitive-textfield.component.ts b/projects/demo/src/modules/components/primitive-textfield/primitive-textfield.component.ts index f26a71dfbdcc..d824ec38cd4f 100644 --- a/projects/demo/src/modules/components/primitive-textfield/primitive-textfield.component.ts +++ b/projects/demo/src/modules/components/primitive-textfield/primitive-textfield.component.ts @@ -1,9 +1,10 @@ import {Component, forwardRef, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiContext, type TuiInputMode, type TuiInputType} from '@taiga-ui/cdk'; -import {TUI_HINT_DIRECTIONS, type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiContext, TuiInputMode, TuiInputType} from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TUI_HINT_DIRECTIONS} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; import {AbstractExampleTuiInteractive} from '../abstract/interactive'; diff --git a/projects/demo/src/modules/components/progress-bar/progress-bar.component.ts b/projects/demo/src/modules/components/progress-bar/progress-bar.component.ts index f6e09badbab3..5d1c8495d4e7 100644 --- a/projects/demo/src/modules/components/progress-bar/progress-bar.component.ts +++ b/projects/demo/src/modules/components/progress-bar/progress-bar.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeXS, type TuiSizeXXL} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core'; @Component({ selector: 'example-tui-progress-bar', diff --git a/projects/demo/src/modules/components/progress-circle/progress-circle.component.ts b/projects/demo/src/modules/components/progress-circle/progress-circle.component.ts index 1f313b43de2d..97960ade6c0b 100644 --- a/projects/demo/src/modules/components/progress-circle/progress-circle.component.ts +++ b/projects/demo/src/modules/components/progress-circle/progress-circle.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeS, type TuiSizeXL} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeS, TuiSizeXL} from '@taiga-ui/core'; import {tuiInputNumberOptionsProvider} from '@taiga-ui/kit'; @Component({ diff --git a/projects/demo/src/modules/components/progress-segmented/progress-segmented.component.ts b/projects/demo/src/modules/components/progress-segmented/progress-segmented.component.ts index 5fc7e74ddc6b..b93070a953e3 100644 --- a/projects/demo/src/modules/components/progress-segmented/progress-segmented.component.ts +++ b/projects/demo/src/modules/components/progress-segmented/progress-segmented.component.ts @@ -1,6 +1,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeS} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-progress-segmented', diff --git a/projects/demo/src/modules/components/prompt/examples/1/index.ts b/projects/demo/src/modules/components/prompt/examples/1/index.ts index 367aacf4a4d6..d7ce4758f5ef 100644 --- a/projects/demo/src/modules/components/prompt/examples/1/index.ts +++ b/projects/demo/src/modules/components/prompt/examples/1/index.ts @@ -2,7 +2,8 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiAlertService, TuiDialogService} from '@taiga-ui/core'; -import {TUI_PROMPT, type TuiPromptData} from '@taiga-ui/kit'; +import type {TuiPromptData} from '@taiga-ui/kit'; +import {TUI_PROMPT} from '@taiga-ui/kit'; import {switchMap} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/components/prompt/prompt.component.ts b/projects/demo/src/modules/components/prompt/prompt.component.ts index 414bad3ac0f2..da2ac1c88657 100644 --- a/projects/demo/src/modules/components/prompt/prompt.component.ts +++ b/projects/demo/src/modules/components/prompt/prompt.component.ts @@ -1,8 +1,9 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {TuiAlertService, TuiDialogService} from '@taiga-ui/core'; -import {TUI_PROMPT, type TuiPromptData} from '@taiga-ui/kit'; +import type {TuiPromptData} from '@taiga-ui/kit'; +import {TUI_PROMPT} from '@taiga-ui/kit'; import {switchMap} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/components/pull-to-refresh/pull-to-refresh.component.ts b/projects/demo/src/modules/components/pull-to-refresh/pull-to-refresh.component.ts index 3aef4b081b3c..eb5543570c8e 100644 --- a/projects/demo/src/modules/components/pull-to-refresh/pull-to-refresh.component.ts +++ b/projects/demo/src/modules/components/pull-to-refresh/pull-to-refresh.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-mobile-pull-to-refresh-page', diff --git a/projects/demo/src/modules/components/push/push.component.ts b/projects/demo/src/modules/components/push/push.component.ts index 2dfe47d6c9db..9fe53d0f1543 100644 --- a/projects/demo/src/modules/components/push/push.component.ts +++ b/projects/demo/src/modules/components/push/push.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-push', diff --git a/projects/demo/src/modules/components/radio-list/radio-list.component.ts b/projects/demo/src/modules/components/radio-list/radio-list.component.ts index 97025c09418d..4fea9050777a 100644 --- a/projects/demo/src/modules/components/radio-list/radio-list.component.ts +++ b/projects/demo/src/modules/components/radio-list/radio-list.component.ts @@ -1,13 +1,10 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import { - ALWAYS_FALSE_HANDLER, - ALWAYS_TRUE_HANDLER, - type TuiBooleanHandler, -} from '@taiga-ui/cdk'; -import {type TuiOrientation, type TuiSizeL} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; +import {ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER} from '@taiga-ui/cdk'; +import type {TuiOrientation, TuiSizeL} from '@taiga-ui/core'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/radio/radio.component.ts b/projects/demo/src/modules/components/radio/radio.component.ts index 3f5b8819349c..38162bb41cbb 100644 --- a/projects/demo/src/modules/components/radio/radio.component.ts +++ b/projects/demo/src/modules/components/radio/radio.component.ts @@ -1,9 +1,10 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {TUI_DEFAULT_IDENTITY_MATCHER, type TuiIdentityMatcher} from '@taiga-ui/cdk'; -import {type TuiSizeL} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiIdentityMatcher} from '@taiga-ui/cdk'; +import {TUI_DEFAULT_IDENTITY_MATCHER} from '@taiga-ui/cdk'; +import type {TuiSizeL} from '@taiga-ui/core'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/range/examples/4/index.ts b/projects/demo/src/modules/components/range/examples/4/index.ts index 63b5d42842dd..aa6f03b42519 100644 --- a/projects/demo/src/modules/components/range/examples/4/index.ts +++ b/projects/demo/src/modules/components/range/examples/4/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiKeySteps} from '@taiga-ui/kit'; +import type {TuiKeySteps} from '@taiga-ui/kit'; @Component({ selector: 'tui-range-example-4', diff --git a/projects/demo/src/modules/components/range/range.component.ts b/projects/demo/src/modules/components/range/range.component.ts index e9639541c2af..34295024d292 100644 --- a/projects/demo/src/modules/components/range/range.component.ts +++ b/projects/demo/src/modules/components/range/range.component.ts @@ -1,9 +1,9 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeS} from '@taiga-ui/core'; -import {type TuiKeySteps} from '@taiga-ui/kit'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeS} from '@taiga-ui/core'; +import type {TuiKeySteps} from '@taiga-ui/kit'; @Component({ selector: 'example-range', diff --git a/projects/demo/src/modules/components/rating/rating.component.ts b/projects/demo/src/modules/components/rating/rating.component.ts index 4cd07b7bd85f..d0a968ea718a 100644 --- a/projects/demo/src/modules/components/rating/rating.component.ts +++ b/projects/demo/src/modules/components/rating/rating.component.ts @@ -2,7 +2,7 @@ import {Component, inject} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; import {TUI_RATING_OPTIONS} from '@taiga-ui/kit'; @Component({ diff --git a/projects/demo/src/modules/components/scrollbar/scrollbar.component.ts b/projects/demo/src/modules/components/scrollbar/scrollbar.component.ts index 727f49db539f..d91116ca7b69 100644 --- a/projects/demo/src/modules/components/scrollbar/scrollbar.component.ts +++ b/projects/demo/src/modules/components/scrollbar/scrollbar.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-scrollbar', diff --git a/projects/demo/src/modules/components/select/examples/11/index.ts b/projects/demo/src/modules/components/select/examples/11/index.ts index 2e652bb92fdc..81acb3b7d696 100644 --- a/projects/demo/src/modules/components/select/examples/11/index.ts +++ b/projects/demo/src/modules/components/select/examples/11/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiBooleanHandler, type TuiStringHandler} from '@taiga-ui/cdk'; +import type {TuiBooleanHandler, TuiStringHandler} from '@taiga-ui/cdk'; interface Item { id: number; diff --git a/projects/demo/src/modules/components/select/examples/4/index.ts b/projects/demo/src/modules/components/select/examples/4/index.ts index a9a51648157c..9f303a075656 100644 --- a/projects/demo/src/modules/components/select/examples/4/index.ts +++ b/projects/demo/src/modules/components/select/examples/4/index.ts @@ -2,7 +2,7 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiAlertService} from '@taiga-ui/core'; -import {type TuiSelectComponent} from '@taiga-ui/kit'; +import type {TuiSelectComponent} from '@taiga-ui/kit'; @Component({ selector: 'tui-select-example-4', diff --git a/projects/demo/src/modules/components/select/examples/5/index.ts b/projects/demo/src/modules/components/select/examples/5/index.ts index a5c54028951a..51dcfd1eaf85 100644 --- a/projects/demo/src/modules/components/select/examples/5/index.ts +++ b/projects/demo/src/modules/components/select/examples/5/index.ts @@ -1,7 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiContext, tuiPure, type TuiStringHandler} from '@taiga-ui/cdk'; +import type {TuiContext, TuiStringHandler} from '@taiga-ui/cdk'; +import {tuiPure} from '@taiga-ui/cdk'; import {delay, of} from 'rxjs'; interface Python { diff --git a/projects/demo/src/modules/components/select/examples/6/index.ts b/projects/demo/src/modules/components/select/examples/6/index.ts index 82d1e77e7a13..3ebb78f65da7 100644 --- a/projects/demo/src/modules/components/select/examples/6/index.ts +++ b/projects/demo/src/modules/components/select/examples/6/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {assets} from '@demo/utils'; -import {type TuiBooleanHandler} from '@taiga-ui/cdk'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; import {delay, of} from 'rxjs'; class User { diff --git a/projects/demo/src/modules/components/select/examples/7/index.ts b/projects/demo/src/modules/components/select/examples/7/index.ts index 2dbf1f285cd9..166ec5de1a62 100644 --- a/projects/demo/src/modules/components/select/examples/7/index.ts +++ b/projects/demo/src/modules/components/select/examples/7/index.ts @@ -1,8 +1,9 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {EMPTY_ARRAY, type TuiStringHandler} from '@taiga-ui/cdk'; -import {type TuiValueContentContext} from '@taiga-ui/core'; +import type {TuiStringHandler} from '@taiga-ui/cdk'; +import {EMPTY_ARRAY} from '@taiga-ui/cdk'; +import type {TuiValueContentContext} from '@taiga-ui/core'; interface Account { readonly account: string; diff --git a/projects/demo/src/modules/components/select/examples/9/account/my-account.component.ts b/projects/demo/src/modules/components/select/examples/9/account/my-account.component.ts index bc099574477e..2e18fa6310ce 100644 --- a/projects/demo/src/modules/components/select/examples/9/account/my-account.component.ts +++ b/projects/demo/src/modules/components/select/examples/9/account/my-account.component.ts @@ -1,6 +1,6 @@ import {ChangeDetectionStrategy, Component, Input} from '@angular/core'; -import {type TuiCurrencyVariants} from '@taiga-ui/addon-commerce'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiCurrencyVariants} from '@taiga-ui/addon-commerce'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface MyAccount { amount: number; diff --git a/projects/demo/src/modules/components/select/examples/9/index.ts b/projects/demo/src/modules/components/select/examples/9/index.ts index dd1d89857615..84513d61f91a 100644 --- a/projects/demo/src/modules/components/select/examples/9/index.ts +++ b/projects/demo/src/modules/components/select/examples/9/index.ts @@ -4,7 +4,7 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiCurrency} from '@taiga-ui/addon-commerce'; -import {type MyAccount} from './account/my-account.component'; +import type {MyAccount} from './account/my-account.component'; @Component({ selector: 'tui-select-example-9', diff --git a/projects/demo/src/modules/components/select/select.component.ts b/projects/demo/src/modules/components/select/select.component.ts index 822121166519..36b809a98b30 100644 --- a/projects/demo/src/modules/components/select/select.component.ts +++ b/projects/demo/src/modules/components/select/select.component.ts @@ -1,14 +1,12 @@ import {Component, forwardRef, ViewChild} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; -import { - ALWAYS_FALSE_HANDLER, - type TuiBooleanHandler, - type TuiIdentityMatcher, -} from '@taiga-ui/cdk'; -import {type TuiValueContentContext} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; +import type {TuiBooleanHandler, TuiIdentityMatcher} from '@taiga-ui/cdk'; +import {ALWAYS_FALSE_HANDLER} from '@taiga-ui/cdk'; +import type {TuiValueContentContext} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/sheet-dialog/examples/2/index.ts b/projects/demo/src/modules/components/sheet-dialog/examples/2/index.ts index 103d9e4f95ae..fd43972f481e 100644 --- a/projects/demo/src/modules/components/sheet-dialog/examples/2/index.ts +++ b/projects/demo/src/modules/components/sheet-dialog/examples/2/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiSheetDialogOptions} from '@taiga-ui/addon-mobile'; +import type {TuiSheetDialogOptions} from '@taiga-ui/addon-mobile'; @Component({ selector: 'tui-sheet-dialog-example-2', diff --git a/projects/demo/src/modules/components/sheet-dialog/examples/4/index.ts b/projects/demo/src/modules/components/sheet-dialog/examples/4/index.ts index dd31e3c5b0e8..87f077ecb050 100644 --- a/projects/demo/src/modules/components/sheet-dialog/examples/4/index.ts +++ b/projects/demo/src/modules/components/sheet-dialog/examples/4/index.ts @@ -2,12 +2,8 @@ import {Component, inject, ViewChild} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import { - TUI_DEFAULT_MATCHER, - TUI_WINDOW_SIZE, - tuiControlValue, - type TuiSwipeDirection, -} from '@taiga-ui/cdk'; +import type {TuiSwipeDirection} from '@taiga-ui/cdk'; +import {TUI_DEFAULT_MATCHER, TUI_WINDOW_SIZE, tuiControlValue} from '@taiga-ui/cdk'; import {TuiInputComponent} from '@taiga-ui/kit'; import {map} from 'rxjs'; diff --git a/projects/demo/src/modules/components/sheet-dialog/sheet-dialog.component.ts b/projects/demo/src/modules/components/sheet-dialog/sheet-dialog.component.ts index 7521d502a687..c49aef8742ad 100644 --- a/projects/demo/src/modules/components/sheet-dialog/sheet-dialog.component.ts +++ b/projects/demo/src/modules/components/sheet-dialog/sheet-dialog.component.ts @@ -1,6 +1,6 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {TUI_SHEET_DIALOG_DEFAULT_OPTIONS} from '@taiga-ui/addon-mobile'; import {TUI_IS_MOBILE} from '@taiga-ui/cdk'; diff --git a/projects/demo/src/modules/components/sheet/examples/2/index.ts b/projects/demo/src/modules/components/sheet/examples/2/index.ts index 87b5dff500c8..5e35c5477f04 100644 --- a/projects/demo/src/modules/components/sheet/examples/2/index.ts +++ b/projects/demo/src/modules/components/sheet/examples/2/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiSheetOptions} from '@taiga-ui/addon-mobile'; +import type {TuiSheetOptions} from '@taiga-ui/addon-mobile'; @Component({ selector: 'tui-sheet-example-2', diff --git a/projects/demo/src/modules/components/sheet/examples/3/index.ts b/projects/demo/src/modules/components/sheet/examples/3/index.ts index 97edc43f7ae4..ed43c5c6090e 100644 --- a/projects/demo/src/modules/components/sheet/examples/3/index.ts +++ b/projects/demo/src/modules/components/sheet/examples/3/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiSheetOptions} from '@taiga-ui/addon-mobile'; +import type {TuiSheetOptions} from '@taiga-ui/addon-mobile'; @Component({ selector: 'tui-sheet-example-3', diff --git a/projects/demo/src/modules/components/sheet/examples/4/index.ts b/projects/demo/src/modules/components/sheet/examples/4/index.ts index d51c3cb1f1f0..736215f9fb87 100644 --- a/projects/demo/src/modules/components/sheet/examples/4/index.ts +++ b/projects/demo/src/modules/components/sheet/examples/4/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiSheetOptions} from '@taiga-ui/addon-mobile'; +import type {TuiSheetOptions} from '@taiga-ui/addon-mobile'; @Component({ selector: 'tui-sheet-example-4', diff --git a/projects/demo/src/modules/components/sheet/examples/5/index.ts b/projects/demo/src/modules/components/sheet/examples/5/index.ts index 8fe23ea2480b..0da870f061ea 100644 --- a/projects/demo/src/modules/components/sheet/examples/5/index.ts +++ b/projects/demo/src/modules/components/sheet/examples/5/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiSheetOptions} from '@taiga-ui/addon-mobile'; +import type {TuiSheetOptions} from '@taiga-ui/addon-mobile'; const FRAMES = 166; diff --git a/projects/demo/src/modules/components/sheet/examples/6/index.ts b/projects/demo/src/modules/components/sheet/examples/6/index.ts index 050c303484dc..5976ac5d5938 100644 --- a/projects/demo/src/modules/components/sheet/examples/6/index.ts +++ b/projects/demo/src/modules/components/sheet/examples/6/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiSheetOptions} from '@taiga-ui/addon-mobile'; +import type {TuiSheetOptions} from '@taiga-ui/addon-mobile'; @Component({ selector: 'tui-sheet-example-6', diff --git a/projects/demo/src/modules/components/sheet/sheet.component.ts b/projects/demo/src/modules/components/sheet/sheet.component.ts index c314c1ca16f0..9edf9908f892 100644 --- a/projects/demo/src/modules/components/sheet/sheet.component.ts +++ b/projects/demo/src/modules/components/sheet/sheet.component.ts @@ -1,13 +1,10 @@ import {Component, inject, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import { - TUI_SHEET_DEFAULT_OPTIONS, - type TuiSheet, - type TuiSheetOptions, -} from '@taiga-ui/addon-mobile'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSheet, TuiSheetOptions} from '@taiga-ui/addon-mobile'; +import {TUI_SHEET_DEFAULT_OPTIONS} from '@taiga-ui/addon-mobile'; import {TUI_IS_MOBILE} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'example-sheet', diff --git a/projects/demo/src/modules/components/slider/examples/5/index.ts b/projects/demo/src/modules/components/slider/examples/5/index.ts index d02431d6c6aa..9a63a96feb0c 100644 --- a/projects/demo/src/modules/components/slider/examples/5/index.ts +++ b/projects/demo/src/modules/components/slider/examples/5/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiKeySteps} from '@taiga-ui/kit'; +import type {TuiKeySteps} from '@taiga-ui/kit'; @Component({ selector: 'tui-slider-example-5', diff --git a/projects/demo/src/modules/components/slider/slider.component.ts b/projects/demo/src/modules/components/slider/slider.component.ts index 042fde26081b..4c2450103316 100644 --- a/projects/demo/src/modules/components/slider/slider.component.ts +++ b/projects/demo/src/modules/components/slider/slider.component.ts @@ -1,7 +1,7 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {FormControl} from '@angular/forms'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeS} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-slider', diff --git a/projects/demo/src/modules/components/stepper/stepper.component.ts b/projects/demo/src/modules/components/stepper/stepper.component.ts index 71884f1625cb..b61532cb72db 100644 --- a/projects/demo/src/modules/components/stepper/stepper.component.ts +++ b/projects/demo/src/modules/components/stepper/stepper.component.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiOrientation} from '@taiga-ui/core'; -import {type TuiStepState} from '@taiga-ui/kit'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiOrientation} from '@taiga-ui/core'; +import type {TuiStepState} from '@taiga-ui/kit'; @Component({ selector: 'example-tui-stepper', diff --git a/projects/demo/src/modules/components/swipe-action/swipe-actions.component.ts b/projects/demo/src/modules/components/swipe-action/swipe-actions.component.ts index 57cd8e682c2d..686cb9870e3a 100644 --- a/projects/demo/src/modules/components/swipe-action/swipe-actions.component.ts +++ b/projects/demo/src/modules/components/swipe-action/swipe-actions.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-swipe-actions', diff --git a/projects/demo/src/modules/components/tab-bar/tab-bar.component.ts b/projects/demo/src/modules/components/tab-bar/tab-bar.component.ts index 81eef9151ea9..1b95275c33e2 100644 --- a/projects/demo/src/modules/components/tab-bar/tab-bar.component.ts +++ b/projects/demo/src/modules/components/tab-bar/tab-bar.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-tab-bar', diff --git a/projects/demo/src/modules/components/tabs/tabs.component.ts b/projects/demo/src/modules/components/tabs/tabs.component.ts index 786c0ca91c13..0f834b706bfe 100644 --- a/projects/demo/src/modules/components/tabs/tabs.component.ts +++ b/projects/demo/src/modules/components/tabs/tabs.component.ts @@ -1,6 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, tuiDocExampleOptionsProvider} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {tuiDocExampleOptionsProvider} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-tabs', diff --git a/projects/demo/src/modules/components/tag/tag.component.ts b/projects/demo/src/modules/components/tag/tag.component.ts index 53cc62da04e5..e445a098beeb 100644 --- a/projects/demo/src/modules/components/tag/tag.component.ts +++ b/projects/demo/src/modules/components/tag/tag.component.ts @@ -1,9 +1,10 @@ -import {Component, type TemplateRef, ViewChild} from '@angular/core'; +import type {TemplateRef} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; -import {type TuiStatus} from '@taiga-ui/kit'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import type {TuiStatus} from '@taiga-ui/kit'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'example-tag', diff --git a/projects/demo/src/modules/components/textarea/examples/4/index.ts b/projects/demo/src/modules/components/textarea/examples/4/index.ts index ad5760b4a1dc..49ecd63ae856 100644 --- a/projects/demo/src/modules/components/textarea/examples/4/index.ts +++ b/projects/demo/src/modules/components/textarea/examples/4/index.ts @@ -1,4 +1,5 @@ -import {type AfterViewInit, Component} from '@angular/core'; +import type {AfterViewInit} from '@angular/core'; +import {Component} from '@angular/core'; import {FormControl, FormGroup, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; diff --git a/projects/demo/src/modules/components/textarea/textarea.component.ts b/projects/demo/src/modules/components/textarea/textarea.component.ts index 7941868b9fe6..f7ed6af8f936 100644 --- a/projects/demo/src/modules/components/textarea/textarea.component.ts +++ b/projects/demo/src/modules/components/textarea/textarea.component.ts @@ -1,8 +1,9 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; -import {type TuiSizeL, type TuiSizeM} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {tuiDocExcludeProperties} from '@taiga-ui/addon-doc'; +import type {TuiSizeL, TuiSizeM} from '@taiga-ui/core'; import {AbstractExampleTuiControl} from '../abstract/control'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/components/theme-switcher/theme-switcher.component.ts b/projects/demo/src/modules/components/theme-switcher/theme-switcher.component.ts index 3a7cd6230332..b420e436c8a5 100644 --- a/projects/demo/src/modules/components/theme-switcher/theme-switcher.component.ts +++ b/projects/demo/src/modules/components/theme-switcher/theme-switcher.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-theme-switcher', diff --git a/projects/demo/src/modules/components/thumbnail-card/examples/3/index.ts b/projects/demo/src/modules/components/thumbnail-card/examples/3/index.ts index f6a7ce4e3c5d..3580cb82d21f 100644 --- a/projects/demo/src/modules/components/thumbnail-card/examples/3/index.ts +++ b/projects/demo/src/modules/components/thumbnail-card/examples/3/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce'; +import type {TuiPaymentSystem} from '@taiga-ui/addon-commerce'; @Component({ selector: 'tui-thumbnail-card-example-3', diff --git a/projects/demo/src/modules/components/thumbnail-card/thumbnail-card.component.ts b/projects/demo/src/modules/components/thumbnail-card/thumbnail-card.component.ts index 229054632200..d0896c309165 100644 --- a/projects/demo/src/modules/components/thumbnail-card/thumbnail-card.component.ts +++ b/projects/demo/src/modules/components/thumbnail-card/thumbnail-card.component.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeS} from '@taiga-ui/core'; +import type {TuiPaymentSystem} from '@taiga-ui/addon-commerce'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeS} from '@taiga-ui/core'; const BRAND_LOGOS = [ ` diff --git a/projects/demo/src/modules/components/tiles/tiles.component.ts b/projects/demo/src/modules/components/tiles/tiles.component.ts index 3766db89a1bd..b37c8e8119fb 100644 --- a/projects/demo/src/modules/components/tiles/tiles.component.ts +++ b/projects/demo/src/modules/components/tiles/tiles.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-tiles', diff --git a/projects/demo/src/modules/components/toggle/toggle.component.ts b/projects/demo/src/modules/components/toggle/toggle.component.ts index 9ff2a39dd727..33141d561f77 100644 --- a/projects/demo/src/modules/components/toggle/toggle.component.ts +++ b/projects/demo/src/modules/components/toggle/toggle.component.ts @@ -1,8 +1,8 @@ import {Component, forwardRef} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeL} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeL} from '@taiga-ui/core'; import {ABSTRACT_PROPS_ACCESSOR} from '../abstract/inherited-documentation/abstract-props-accessor'; import {AbstractExampleTuiInteractive} from '../abstract/interactive'; diff --git a/projects/demo/src/modules/components/tooltip/tooltip.component.ts b/projects/demo/src/modules/components/tooltip/tooltip.component.ts index 872714f5b997..9dda94cf9825 100644 --- a/projects/demo/src/modules/components/tooltip/tooltip.component.ts +++ b/projects/demo/src/modules/components/tooltip/tooltip.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {TUI_HINT_DIRECTIONS} from '@taiga-ui/core'; @Component({ diff --git a/projects/demo/src/modules/components/tree/examples/3/index.ts b/projects/demo/src/modules/components/tree/examples/3/index.ts index 4a83847a2165..44134776c8ea 100644 --- a/projects/demo/src/modules/components/tree/examples/3/index.ts +++ b/projects/demo/src/modules/components/tree/examples/3/index.ts @@ -1,7 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {EMPTY_ARRAY, type TuiHandler} from '@taiga-ui/cdk'; +import type {TuiHandler} from '@taiga-ui/cdk'; +import {EMPTY_ARRAY} from '@taiga-ui/cdk'; interface TreeNode { readonly children?: readonly TreeNode[]; diff --git a/projects/demo/src/modules/components/tree/examples/4/index.ts b/projects/demo/src/modules/components/tree/examples/4/index.ts index 7c77d59448fd..ea444bd31e05 100644 --- a/projects/demo/src/modules/components/tree/examples/4/index.ts +++ b/projects/demo/src/modules/components/tree/examples/4/index.ts @@ -1,7 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {EMPTY_ARRAY, type TuiHandler} from '@taiga-ui/cdk'; +import type {TuiHandler} from '@taiga-ui/cdk'; +import {EMPTY_ARRAY} from '@taiga-ui/cdk'; interface TreeNode { readonly children?: readonly TreeNode[]; diff --git a/projects/demo/src/modules/components/tree/examples/5/index.ts b/projects/demo/src/modules/components/tree/examples/5/index.ts index 17dca83e9e61..d4f8cdf4d102 100644 --- a/projects/demo/src/modules/components/tree/examples/5/index.ts +++ b/projects/demo/src/modules/components/tree/examples/5/index.ts @@ -1,7 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {EMPTY_ARRAY, type TuiHandler} from '@taiga-ui/cdk'; +import type {TuiHandler} from '@taiga-ui/cdk'; +import {EMPTY_ARRAY} from '@taiga-ui/cdk'; import {TUI_TREE_CONTENT} from '@taiga-ui/kit'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; diff --git a/projects/demo/src/modules/components/tree/examples/6/index.ts b/projects/demo/src/modules/components/tree/examples/6/index.ts index 4b5a77f78c6e..e1a6236693d9 100644 --- a/projects/demo/src/modules/components/tree/examples/6/index.ts +++ b/projects/demo/src/modules/components/tree/examples/6/index.ts @@ -1,7 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {EMPTY_ARRAY, type TuiHandler} from '@taiga-ui/cdk'; +import type {TuiHandler} from '@taiga-ui/cdk'; +import {EMPTY_ARRAY} from '@taiga-ui/cdk'; interface TreeNode { readonly children?: readonly TreeNode[]; diff --git a/projects/demo/src/modules/components/tree/examples/7/index.ts b/projects/demo/src/modules/components/tree/examples/7/index.ts index ca963570a9fc..4acfbd327b10 100644 --- a/projects/demo/src/modules/components/tree/examples/7/index.ts +++ b/projects/demo/src/modules/components/tree/examples/7/index.ts @@ -1,7 +1,7 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiHandler} from '@taiga-ui/cdk'; +import type {TuiHandler} from '@taiga-ui/cdk'; import { TUI_TREE_LOADER, TUI_TREE_LOADING, diff --git a/projects/demo/src/modules/components/tree/examples/7/service.ts b/projects/demo/src/modules/components/tree/examples/7/service.ts index ea99c61c8c33..6008b0719d68 100644 --- a/projects/demo/src/modules/components/tree/examples/7/service.ts +++ b/projects/demo/src/modules/components/tree/examples/7/service.ts @@ -1,6 +1,7 @@ import {Injectable} from '@angular/core'; -import {type TuiTreeLoader} from '@taiga-ui/kit'; -import {map, type Observable, timer} from 'rxjs'; +import type {TuiTreeLoader} from '@taiga-ui/kit'; +import type {Observable} from 'rxjs'; +import {map, timer} from 'rxjs'; import type {Item} from './index'; diff --git a/projects/demo/src/modules/customization/dialogs/examples/1/prompt/prompt.component.ts b/projects/demo/src/modules/customization/dialogs/examples/1/prompt/prompt.component.ts index a6ed5ad549ce..0f4f35847202 100644 --- a/projects/demo/src/modules/customization/dialogs/examples/1/prompt/prompt.component.ts +++ b/projects/demo/src/modules/customization/dialogs/examples/1/prompt/prompt.component.ts @@ -1,12 +1,13 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiDestroyService, type TuiPopover} from '@taiga-ui/cdk'; +import type {TuiPopover} from '@taiga-ui/cdk'; +import {TuiDestroyService} from '@taiga-ui/cdk'; import {TuiDialogCloseService} from '@taiga-ui/core'; import {TuiButtonModule} from '@taiga-ui/experimental'; import {POLYMORPHEUS_CONTEXT, PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; import {takeUntil} from 'rxjs'; -import {type PromptOptions} from './prompt-options'; +import type {PromptOptions} from './prompt-options'; @Component({ standalone: true, diff --git a/projects/demo/src/modules/customization/dialogs/examples/1/prompt/prompt.service.ts b/projects/demo/src/modules/customization/dialogs/examples/1/prompt/prompt.service.ts index 0bc90d793f0b..384ce6088091 100644 --- a/projects/demo/src/modules/customization/dialogs/examples/1/prompt/prompt.service.ts +++ b/projects/demo/src/modules/customization/dialogs/examples/1/prompt/prompt.service.ts @@ -3,7 +3,7 @@ import {TuiPopoverService} from '@taiga-ui/cdk'; import {TUI_DIALOGS} from '@taiga-ui/core'; import {PromptComponent} from './prompt.component'; -import {type PromptOptions} from './prompt-options'; +import type {PromptOptions} from './prompt-options'; @Injectable({ providedIn: 'root', diff --git a/projects/demo/src/modules/customization/i18n/i18n.component.ts b/projects/demo/src/modules/customization/i18n/i18n.component.ts index 4b1b2fd00134..57d253e52b60 100644 --- a/projects/demo/src/modules/customization/i18n/i18n.component.ts +++ b/projects/demo/src/modules/customization/i18n/i18n.component.ts @@ -1,9 +1,9 @@ import {AsyncPipe} from '@angular/common'; import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import { TuiDocCodeModule, - type TuiDocExample, TuiDocExampleModule, TuiDocPageModule, TuiLanguageSwitcherComponent, diff --git a/projects/demo/src/modules/customization/portals/examples/1/index.ts b/projects/demo/src/modules/customization/portals/examples/1/index.ts index 59d0a71e074c..2f2896094639 100644 --- a/projects/demo/src/modules/customization/portals/examples/1/index.ts +++ b/projects/demo/src/modules/customization/portals/examples/1/index.ts @@ -1,4 +1,5 @@ -import {Component, type EmbeddedViewRef, inject, type TemplateRef} from '@angular/core'; +import type {EmbeddedViewRef, TemplateRef} from '@angular/core'; +import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {TuiButtonModule, TuiSvgModule} from '@taiga-ui/core'; diff --git a/projects/demo/src/modules/customization/routable/eager/routable-dialog.routes.ts b/projects/demo/src/modules/customization/routable/eager/routable-dialog.routes.ts index 1f6ac20fd4d9..cfc8400eab64 100644 --- a/projects/demo/src/modules/customization/routable/eager/routable-dialog.routes.ts +++ b/projects/demo/src/modules/customization/routable/eager/routable-dialog.routes.ts @@ -1,4 +1,4 @@ -import {Routes} from '@angular/router'; +import type {Routes} from '@angular/router'; import {tuiGenerateDialogableRoute as tuiRouteDialog} from '@taiga-ui/kit'; import {DialogComponent as Dialog} from './examples/1/dialog.component'; diff --git a/projects/demo/src/modules/customization/routable/lazy/lazy-routable-dialog.routes.ts b/projects/demo/src/modules/customization/routable/lazy/lazy-routable-dialog.routes.ts index 532665557b81..124eb16a463c 100644 --- a/projects/demo/src/modules/customization/routable/lazy/lazy-routable-dialog.routes.ts +++ b/projects/demo/src/modules/customization/routable/lazy/lazy-routable-dialog.routes.ts @@ -1,4 +1,4 @@ -import {Routes} from '@angular/router'; +import type {Routes} from '@angular/router'; import {tuiGenerateDialogableRoute as tuiRouteDialog} from '@taiga-ui/kit'; export default [ diff --git a/projects/demo/src/modules/customization/viewport/examples/2/portal-host.ts b/projects/demo/src/modules/customization/viewport/examples/2/portal-host.ts index bc9c9472e69f..501c075bf3d5 100644 --- a/projects/demo/src/modules/customization/viewport/examples/2/portal-host.ts +++ b/projects/demo/src/modules/customization/viewport/examples/2/portal-host.ts @@ -1,6 +1,7 @@ import {ChangeDetectionStrategy, Component, ElementRef, inject} from '@angular/core'; import {tuiAsPortal, TuiPortalsComponent} from '@taiga-ui/cdk'; -import {tuiAsViewport, TuiDropdownService, type TuiRectAccessor} from '@taiga-ui/core'; +import type {TuiRectAccessor} from '@taiga-ui/core'; +import {tuiAsViewport, TuiDropdownService} from '@taiga-ui/core'; @Component({ standalone: true, diff --git a/projects/demo/src/modules/directives/active-zone/active-zone.component.ts b/projects/demo/src/modules/directives/active-zone/active-zone.component.ts index a3e5c794f9ae..5527076b4c98 100644 --- a/projects/demo/src/modules/directives/active-zone/active-zone.component.ts +++ b/projects/demo/src/modules/directives/active-zone/active-zone.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-active-zone', diff --git a/projects/demo/src/modules/directives/active-zone/examples/1/index.ts b/projects/demo/src/modules/directives/active-zone/examples/1/index.ts index 061404a4ca2a..450e8d40d8e9 100644 --- a/projects/demo/src/modules/directives/active-zone/examples/1/index.ts +++ b/projects/demo/src/modules/directives/active-zone/examples/1/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiInputComponent} from '@taiga-ui/kit'; +import type {TuiInputComponent} from '@taiga-ui/kit'; @Component({ selector: 'tui-active-zone-example-1', diff --git a/projects/demo/src/modules/directives/appearance/appearance.component.ts b/projects/demo/src/modules/directives/appearance/appearance.component.ts index 5db63ce59ba8..26016c5c7139 100644 --- a/projects/demo/src/modules/directives/appearance/appearance.component.ts +++ b/projects/demo/src/modules/directives/appearance/appearance.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; -import {type TuiInteractiveStateT} from '@taiga-ui/core'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiInteractiveStateT} from '@taiga-ui/core'; @Component({ selector: 'example-appearance', diff --git a/projects/demo/src/modules/directives/auto-focus/auto-focus.component.ts b/projects/demo/src/modules/directives/auto-focus/auto-focus.component.ts index 935a04fe73ab..a9b3f8c15f23 100644 --- a/projects/demo/src/modules/directives/auto-focus/auto-focus.component.ts +++ b/projects/demo/src/modules/directives/auto-focus/auto-focus.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-auto-focus', diff --git a/projects/demo/src/modules/directives/copy-processor/copy-processor.component.ts b/projects/demo/src/modules/directives/copy-processor/copy-processor.component.ts index cc03344d7262..baad9bca4e9b 100644 --- a/projects/demo/src/modules/directives/copy-processor/copy-processor.component.ts +++ b/projects/demo/src/modules/directives/copy-processor/copy-processor.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-copy-processor', diff --git a/projects/demo/src/modules/directives/copy-processor/examples/1/index.ts b/projects/demo/src/modules/directives/copy-processor/examples/1/index.ts index 4f8491140030..ace4d1d64e15 100644 --- a/projects/demo/src/modules/directives/copy-processor/examples/1/index.ts +++ b/projects/demo/src/modules/directives/copy-processor/examples/1/index.ts @@ -1,7 +1,7 @@ import {Component, HostListener, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiStringHandler} from '@taiga-ui/cdk'; +import type {TuiStringHandler} from '@taiga-ui/cdk'; import {TUI_NUMBER_FORMAT, TuiAlertService} from '@taiga-ui/core'; import {map} from 'rxjs'; diff --git a/projects/demo/src/modules/directives/dropdown-context/dropdown-context.component.ts b/projects/demo/src/modules/directives/dropdown-context/dropdown-context.component.ts index 6c84d4d6c58b..fcbcd3bd5f86 100644 --- a/projects/demo/src/modules/directives/dropdown-context/dropdown-context.component.ts +++ b/projects/demo/src/modules/directives/dropdown-context/dropdown-context.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiDropdown} from '../../components/abstract/dropdown'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/dropdown-hover/dropdown-hover.component.ts b/projects/demo/src/modules/directives/dropdown-hover/dropdown-hover.component.ts index b8c286e0c5c2..379c3f12f609 100644 --- a/projects/demo/src/modules/directives/dropdown-hover/dropdown-hover.component.ts +++ b/projects/demo/src/modules/directives/dropdown-hover/dropdown-hover.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiDropdown} from '../../components/abstract/dropdown'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/dropdown-open/dropdown-open.component.ts b/projects/demo/src/modules/directives/dropdown-open/dropdown-open.component.ts index 0233cea8e605..13a29b6b5f4e 100644 --- a/projects/demo/src/modules/directives/dropdown-open/dropdown-open.component.ts +++ b/projects/demo/src/modules/directives/dropdown-open/dropdown-open.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiDropdown} from '../../components/abstract/dropdown'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/dropdown-open/examples/5/accessor.ts b/projects/demo/src/modules/directives/dropdown-open/examples/5/accessor.ts index c8aca51c11a6..997c421440cd 100644 --- a/projects/demo/src/modules/directives/dropdown-open/examples/5/accessor.ts +++ b/projects/demo/src/modules/directives/dropdown-open/examples/5/accessor.ts @@ -1,5 +1,6 @@ import {Directive, ElementRef, inject} from '@angular/core'; -import {tuiAsPositionAccessor, type TuiPoint, TuiPositionAccessor} from '@taiga-ui/core'; +import type {TuiPoint} from '@taiga-ui/core'; +import {tuiAsPositionAccessor, TuiPositionAccessor} from '@taiga-ui/core'; @Directive({ selector: '[topRight]', diff --git a/projects/demo/src/modules/directives/dropdown-selection/dropdown-selection.component.ts b/projects/demo/src/modules/directives/dropdown-selection/dropdown-selection.component.ts index f5f1bed42e59..6d3937033318 100644 --- a/projects/demo/src/modules/directives/dropdown-selection/dropdown-selection.component.ts +++ b/projects/demo/src/modules/directives/dropdown-selection/dropdown-selection.component.ts @@ -1,7 +1,7 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiDropdownPosition} from '@taiga-ui/kit'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDropdownPosition} from '@taiga-ui/kit'; import {AbstractExampleTuiDropdown} from '../../components/abstract/dropdown'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/dropdown-selection/examples/2/index.ts b/projects/demo/src/modules/directives/dropdown-selection/examples/2/index.ts index 8fac566441a0..56c0e2d432a0 100644 --- a/projects/demo/src/modules/directives/dropdown-selection/examples/2/index.ts +++ b/projects/demo/src/modules/directives/dropdown-selection/examples/2/index.ts @@ -1,16 +1,12 @@ -import { - Component, - ElementRef, - type QueryList, - ViewChild, - ViewChildren, -} from '@angular/core'; +import type {QueryList} from '@angular/core'; +import {Component, ElementRef, ViewChild, ViewChildren} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {assets} from '@demo/utils'; -import {EMPTY_QUERY, type TuiBooleanHandler, tuiPure} from '@taiga-ui/cdk'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; +import {EMPTY_QUERY, tuiPure} from '@taiga-ui/cdk'; import {TuiDriver, tuiGetWordRange, TuiOptionComponent} from '@taiga-ui/core'; -import {type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; export interface User { readonly avatar: string; diff --git a/projects/demo/src/modules/directives/dropdown/dropdown.component.ts b/projects/demo/src/modules/directives/dropdown/dropdown.component.ts index c2a4936856e2..21afd859c5ba 100644 --- a/projects/demo/src/modules/directives/dropdown/dropdown.component.ts +++ b/projects/demo/src/modules/directives/dropdown/dropdown.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiDropdown} from '../../components/abstract/dropdown'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/elastic-sticky/elastic-sticky.component.ts b/projects/demo/src/modules/directives/elastic-sticky/elastic-sticky.component.ts index c7e8ad431db9..1e95778ecd6f 100644 --- a/projects/demo/src/modules/directives/elastic-sticky/elastic-sticky.component.ts +++ b/projects/demo/src/modules/directives/elastic-sticky/elastic-sticky.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-elastic-sticky', diff --git a/projects/demo/src/modules/directives/elastic-sticky/examples/1/index.ts b/projects/demo/src/modules/directives/elastic-sticky/examples/1/index.ts index f3a4487f753a..f9830eddee6b 100644 --- a/projects/demo/src/modules/directives/elastic-sticky/examples/1/index.ts +++ b/projects/demo/src/modules/directives/elastic-sticky/examples/1/index.ts @@ -1,9 +1,11 @@ -import {type AfterViewInit, Component, ViewChild} from '@angular/core'; +import type {AfterViewInit} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiElasticStickyDirective} from '@taiga-ui/addon-mobile'; import {tuiClamp} from '@taiga-ui/cdk'; -import {distinctUntilChanged, map, type Observable, startWith} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {distinctUntilChanged, map, startWith} from 'rxjs'; @Component({ selector: 'tui-elastic-sticky-example-1', diff --git a/projects/demo/src/modules/directives/element/element.component.ts b/projects/demo/src/modules/directives/element/element.component.ts index 76a48399df5e..c01534d29a61 100644 --- a/projects/demo/src/modules/directives/element/element.component.ts +++ b/projects/demo/src/modules/directives/element/element.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-element', diff --git a/projects/demo/src/modules/directives/fade/fade.component.ts b/projects/demo/src/modules/directives/fade/fade.component.ts index d4ca2c8058df..dddd609084d6 100644 --- a/projects/demo/src/modules/directives/fade/fade.component.ts +++ b/projects/demo/src/modules/directives/fade/fade.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-fade', diff --git a/projects/demo/src/modules/directives/for/for.component.ts b/projects/demo/src/modules/directives/for/for.component.ts index d9a4f74ed5ae..40dc5cafedb0 100644 --- a/projects/demo/src/modules/directives/for/for.component.ts +++ b/projects/demo/src/modules/directives/for/for.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-for', diff --git a/projects/demo/src/modules/directives/highlight/highlight.component.ts b/projects/demo/src/modules/directives/highlight/highlight.component.ts index dc047cad2211..87384bf757f2 100644 --- a/projects/demo/src/modules/directives/highlight/highlight.component.ts +++ b/projects/demo/src/modules/directives/highlight/highlight.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-highlight', diff --git a/projects/demo/src/modules/directives/hint-describe/hint-describe.component.ts b/projects/demo/src/modules/directives/hint-describe/hint-describe.component.ts index bd256281e93b..ae7a66212b9b 100644 --- a/projects/demo/src/modules/directives/hint-describe/hint-describe.component.ts +++ b/projects/demo/src/modules/directives/hint-describe/hint-describe.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiHint} from '../../components/abstract/hint'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/hint-manual/hint-manual.component.ts b/projects/demo/src/modules/directives/hint-manual/hint-manual.component.ts index 61aad95200a3..f4dd66ea2223 100644 --- a/projects/demo/src/modules/directives/hint-manual/hint-manual.component.ts +++ b/projects/demo/src/modules/directives/hint-manual/hint-manual.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiHint} from '../../components/abstract/hint'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/hint-pointer/hint-pointer.component.ts b/projects/demo/src/modules/directives/hint-pointer/hint-pointer.component.ts index e5201d763eb3..9ba25a0e306c 100644 --- a/projects/demo/src/modules/directives/hint-pointer/hint-pointer.component.ts +++ b/projects/demo/src/modules/directives/hint-pointer/hint-pointer.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiHint} from '../../components/abstract/hint'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/hint/hint.component.ts b/projects/demo/src/modules/directives/hint/hint.component.ts index 9bce3f75a278..16163c0b9baa 100644 --- a/projects/demo/src/modules/directives/hint/hint.component.ts +++ b/projects/demo/src/modules/directives/hint/hint.component.ts @@ -1,6 +1,6 @@ import {Component, forwardRef} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {AbstractExampleTuiHint} from '../../components/abstract/hint'; import {ABSTRACT_PROPS_ACCESSOR} from '../../components/abstract/inherited-documentation/abstract-props-accessor'; diff --git a/projects/demo/src/modules/directives/hovered-change/hovered-change.component.ts b/projects/demo/src/modules/directives/hovered-change/hovered-change.component.ts index a0890164bc11..cbc9c1ffc4b1 100644 --- a/projects/demo/src/modules/directives/hovered-change/hovered-change.component.ts +++ b/projects/demo/src/modules/directives/hovered-change/hovered-change.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-hovered-change', diff --git a/projects/demo/src/modules/directives/lazy-loading/lazy-loading.component.ts b/projects/demo/src/modules/directives/lazy-loading/lazy-loading.component.ts index 6cafeeab74f0..81347e8d4f2a 100644 --- a/projects/demo/src/modules/directives/lazy-loading/lazy-loading.component.ts +++ b/projects/demo/src/modules/directives/lazy-loading/lazy-loading.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-lazy-loading', diff --git a/projects/demo/src/modules/directives/let/let.component.ts b/projects/demo/src/modules/directives/let/let.component.ts index c0a03fa51d00..be3cdd5501c5 100644 --- a/projects/demo/src/modules/directives/let/let.component.ts +++ b/projects/demo/src/modules/directives/let/let.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-let', diff --git a/projects/demo/src/modules/directives/media/media.component.ts b/projects/demo/src/modules/directives/media/media.component.ts index b7261e0579cd..0c75c3ee83e5 100644 --- a/projects/demo/src/modules/directives/media/media.component.ts +++ b/projects/demo/src/modules/directives/media/media.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-media', diff --git a/projects/demo/src/modules/directives/mode/mode.component.ts b/projects/demo/src/modules/directives/mode/mode.component.ts index 92416bff5a11..b6623f085b59 100644 --- a/projects/demo/src/modules/directives/mode/mode.component.ts +++ b/projects/demo/src/modules/directives/mode/mode.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-mode', diff --git a/projects/demo/src/modules/directives/overscroll/overscroll.component.ts b/projects/demo/src/modules/directives/overscroll/overscroll.component.ts index f15aeef194ab..c2baa7ee5044 100644 --- a/projects/demo/src/modules/directives/overscroll/overscroll.component.ts +++ b/projects/demo/src/modules/directives/overscroll/overscroll.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-overscroll', diff --git a/projects/demo/src/modules/directives/pan/pan.component.ts b/projects/demo/src/modules/directives/pan/pan.component.ts index 11c8e9bfabb8..21d97e11485e 100644 --- a/projects/demo/src/modules/directives/pan/pan.component.ts +++ b/projects/demo/src/modules/directives/pan/pan.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-pan', diff --git a/projects/demo/src/modules/directives/present/present.component.ts b/projects/demo/src/modules/directives/present/present.component.ts index 85676a6b3dbe..e1dd97bfd77c 100644 --- a/projects/demo/src/modules/directives/present/present.component.ts +++ b/projects/demo/src/modules/directives/present/present.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-present', diff --git a/projects/demo/src/modules/directives/resizer/resizer.component.ts b/projects/demo/src/modules/directives/resizer/resizer.component.ts index e1473600bdfb..816fc606f5d7 100644 --- a/projects/demo/src/modules/directives/resizer/resizer.component.ts +++ b/projects/demo/src/modules/directives/resizer/resizer.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-resizer', diff --git a/projects/demo/src/modules/directives/ripple/ripple.component.ts b/projects/demo/src/modules/directives/ripple/ripple.component.ts index 348849947ac0..926657048c41 100644 --- a/projects/demo/src/modules/directives/ripple/ripple.component.ts +++ b/projects/demo/src/modules/directives/ripple/ripple.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-ripple', diff --git a/projects/demo/src/modules/directives/sidebar/sidebar.component.ts b/projects/demo/src/modules/directives/sidebar/sidebar.component.ts index e8b8a5ed1cb9..aaeef8cb3ab6 100644 --- a/projects/demo/src/modules/directives/sidebar/sidebar.component.ts +++ b/projects/demo/src/modules/directives/sidebar/sidebar.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-sidebar', diff --git a/projects/demo/src/modules/directives/swipe/examples/1/index.ts b/projects/demo/src/modules/directives/swipe/examples/1/index.ts index f28c76461926..33e10dcc3a3e 100644 --- a/projects/demo/src/modules/directives/swipe/examples/1/index.ts +++ b/projects/demo/src/modules/directives/swipe/examples/1/index.ts @@ -1,7 +1,7 @@ import {Component, HostBinding} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiSwipe} from '@taiga-ui/cdk'; +import type {TuiSwipe} from '@taiga-ui/cdk'; @Component({ selector: 'tui-swipe-example-1', diff --git a/projects/demo/src/modules/directives/swipe/examples/2/index.ts b/projects/demo/src/modules/directives/swipe/examples/2/index.ts index c6aa4993a332..5a9847dabfec 100644 --- a/projects/demo/src/modules/directives/swipe/examples/2/index.ts +++ b/projects/demo/src/modules/directives/swipe/examples/2/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiSwipe} from '@taiga-ui/cdk'; +import type {TuiSwipe} from '@taiga-ui/cdk'; import {Subject} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/directives/swipe/swipe.component.ts b/projects/demo/src/modules/directives/swipe/swipe.component.ts index 204794cbca1d..aab7595f8809 100644 --- a/projects/demo/src/modules/directives/swipe/swipe.component.ts +++ b/projects/demo/src/modules/directives/swipe/swipe.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-swipe', diff --git a/projects/demo/src/modules/directives/textfield-controller/textfield-controller.component.ts b/projects/demo/src/modules/directives/textfield-controller/textfield-controller.component.ts index 49d9ca2a8352..69b728fb8608 100644 --- a/projects/demo/src/modules/directives/textfield-controller/textfield-controller.component.ts +++ b/projects/demo/src/modules/directives/textfield-controller/textfield-controller.component.ts @@ -1,9 +1,9 @@ import {Component} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiInputMode, type TuiInputType} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiInputMode, TuiInputType} from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-tui-textfield-controller', diff --git a/projects/demo/src/modules/directives/touchable/touchable.component.ts b/projects/demo/src/modules/directives/touchable/touchable.component.ts index b1fe54b21bb0..feaa8defbcc5 100644 --- a/projects/demo/src/modules/directives/touchable/touchable.component.ts +++ b/projects/demo/src/modules/directives/touchable/touchable.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-touchable', diff --git a/projects/demo/src/modules/directives/validator/validator.component.ts b/projects/demo/src/modules/directives/validator/validator.component.ts index 84a2b3370740..ef3aa9515d6a 100644 --- a/projects/demo/src/modules/directives/validator/validator.component.ts +++ b/projects/demo/src/modules/directives/validator/validator.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-validator', diff --git a/projects/demo/src/modules/directives/value-changes/value-changes.component.ts b/projects/demo/src/modules/directives/value-changes/value-changes.component.ts index 124e02dc4865..d8b898eb2515 100644 --- a/projects/demo/src/modules/directives/value-changes/value-changes.component.ts +++ b/projects/demo/src/modules/directives/value-changes/value-changes.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-value-changes', diff --git a/projects/demo/src/modules/directives/zoom/examples/1/index.ts b/projects/demo/src/modules/directives/zoom/examples/1/index.ts index 8c96b549b699..459ac2f57cf3 100644 --- a/projects/demo/src/modules/directives/zoom/examples/1/index.ts +++ b/projects/demo/src/modules/directives/zoom/examples/1/index.ts @@ -1,7 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {tuiClamp, type TuiZoom} from '@taiga-ui/cdk'; +import type {TuiZoom} from '@taiga-ui/cdk'; +import {tuiClamp} from '@taiga-ui/cdk'; import {map, scan, startWith, Subject} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/directives/zoom/zoom.component.ts b/projects/demo/src/modules/directives/zoom/zoom.component.ts index 0d42fd49cbfa..be3645babdd5 100644 --- a/projects/demo/src/modules/directives/zoom/zoom.component.ts +++ b/projects/demo/src/modules/directives/zoom/zoom.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-zoom', diff --git a/projects/demo/src/modules/experimental/button-close/button-close.component.ts b/projects/demo/src/modules/experimental/button-close/button-close.component.ts index 3426e8013c0c..44e7afee2d00 100644 --- a/projects/demo/src/modules/experimental/button-close/button-close.component.ts +++ b/projects/demo/src/modules/experimental/button-close/button-close.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-button-close', diff --git a/projects/demo/src/modules/experimental/button-group/button-group.component.ts b/projects/demo/src/modules/experimental/button-group/button-group.component.ts index 2b2587f2bba8..5941a12eaf67 100644 --- a/projects/demo/src/modules/experimental/button-group/button-group.component.ts +++ b/projects/demo/src/modules/experimental/button-group/button-group.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-button-group-card', diff --git a/projects/demo/src/modules/experimental/button-vertical/button-vertical.component.ts b/projects/demo/src/modules/experimental/button-vertical/button-vertical.component.ts index 86cd6e7bd2ae..7e31d85c4160 100644 --- a/projects/demo/src/modules/experimental/button-vertical/button-vertical.component.ts +++ b/projects/demo/src/modules/experimental/button-vertical/button-vertical.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-button-vertical', diff --git a/projects/demo/src/modules/experimental/button/button.component.ts b/projects/demo/src/modules/experimental/button/button.component.ts index 594ea5cc2801..ad6f841f28ac 100644 --- a/projects/demo/src/modules/experimental/button/button.component.ts +++ b/projects/demo/src/modules/experimental/button/button.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; -import {type TuiSizeL, type TuiSizeXS} from '@taiga-ui/core'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiSizeL, TuiSizeXS} from '@taiga-ui/core'; @Component({ selector: 'example-button', diff --git a/projects/demo/src/modules/experimental/card-large/card-large.component.ts b/projects/demo/src/modules/experimental/card-large/card-large.component.ts index 732c143e2ee0..47d038b72966 100644 --- a/projects/demo/src/modules/experimental/card-large/card-large.component.ts +++ b/projects/demo/src/modules/experimental/card-large/card-large.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-card', diff --git a/projects/demo/src/modules/experimental/card-medium/card-medium.component.ts b/projects/demo/src/modules/experimental/card-medium/card-medium.component.ts index a442cfef9a31..55a44e691fd2 100644 --- a/projects/demo/src/modules/experimental/card-medium/card-medium.component.ts +++ b/projects/demo/src/modules/experimental/card-medium/card-medium.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-card', diff --git a/projects/demo/src/modules/experimental/cell/cell.component.ts b/projects/demo/src/modules/experimental/cell/cell.component.ts index 6e7825bc8541..a8ea1e7d1cfc 100644 --- a/projects/demo/src/modules/experimental/cell/cell.component.ts +++ b/projects/demo/src/modules/experimental/cell/cell.component.ts @@ -1,10 +1,7 @@ import {Component, ViewEncapsulation} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import { - type TuiDocExample, - tuiDocExampleOptionsProvider, - type TuiRawLoaderContent, -} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {tuiDocExampleOptionsProvider} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-cell', diff --git a/projects/demo/src/modules/experimental/checkbox/checkbox.component.ts b/projects/demo/src/modules/experimental/checkbox/checkbox.component.ts index 30de8682577c..1ef8e6e970df 100644 --- a/projects/demo/src/modules/experimental/checkbox/checkbox.component.ts +++ b/projects/demo/src/modules/experimental/checkbox/checkbox.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-checkbox', diff --git a/projects/demo/src/modules/experimental/checkbox/examples/1/index.ts b/projects/demo/src/modules/experimental/checkbox/examples/1/index.ts index 2d3955037c7b..33530d179717 100644 --- a/projects/demo/src/modules/experimental/checkbox/examples/1/index.ts +++ b/projects/demo/src/modules/experimental/checkbox/examples/1/index.ts @@ -1,9 +1,10 @@ -import {Component, type OnInit} from '@angular/core'; +import type {OnInit} from '@angular/core'; +import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiPlatform} from '@taiga-ui/cdk'; -import {type TuiSizeS} from '@taiga-ui/core'; +import type {TuiPlatform} from '@taiga-ui/cdk'; +import type {TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'tui-checkbox-example-1', diff --git a/projects/demo/src/modules/experimental/chip/chip.component.ts b/projects/demo/src/modules/experimental/chip/chip.component.ts index 17e48d088874..bf01483afe03 100644 --- a/projects/demo/src/modules/experimental/chip/chip.component.ts +++ b/projects/demo/src/modules/experimental/chip/chip.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-chip', diff --git a/projects/demo/src/modules/experimental/compass/compass.component.ts b/projects/demo/src/modules/experimental/compass/compass.component.ts index 567aa81d6f96..2e3d05f798b9 100644 --- a/projects/demo/src/modules/experimental/compass/compass.component.ts +++ b/projects/demo/src/modules/experimental/compass/compass.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-compass', diff --git a/projects/demo/src/modules/experimental/header/header.component.ts b/projects/demo/src/modules/experimental/header/header.component.ts index fc65619f7e4c..e6b8db44fda6 100644 --- a/projects/demo/src/modules/experimental/header/header.component.ts +++ b/projects/demo/src/modules/experimental/header/header.component.ts @@ -1,10 +1,7 @@ import {Component, ViewEncapsulation} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import { - type TuiDocExample, - tuiDocExampleOptionsProvider, - type TuiRawLoaderContent, -} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {tuiDocExampleOptionsProvider} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-header', diff --git a/projects/demo/src/modules/experimental/icon/icon.component.ts b/projects/demo/src/modules/experimental/icon/icon.component.ts index 11e0178ca386..d25bc5de829a 100644 --- a/projects/demo/src/modules/experimental/icon/icon.component.ts +++ b/projects/demo/src/modules/experimental/icon/icon.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-icon', diff --git a/projects/demo/src/modules/experimental/navigation/navigation.component.ts b/projects/demo/src/modules/experimental/navigation/navigation.component.ts index 9803d854d706..ca42a7c35fd4 100644 --- a/projects/demo/src/modules/experimental/navigation/navigation.component.ts +++ b/projects/demo/src/modules/experimental/navigation/navigation.component.ts @@ -1,6 +1,6 @@ import {Component, ViewEncapsulation} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-navigation', diff --git a/projects/demo/src/modules/experimental/pin/pin.component.ts b/projects/demo/src/modules/experimental/pin/pin.component.ts index 9bb02b056e50..c8a6e997ff7d 100644 --- a/projects/demo/src/modules/experimental/pin/pin.component.ts +++ b/projects/demo/src/modules/experimental/pin/pin.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-pin', diff --git a/projects/demo/src/modules/experimental/progress-segmented/progress-segmented.component.ts b/projects/demo/src/modules/experimental/progress-segmented/progress-segmented.component.ts index 0c90274a6107..25fe5ab4f76b 100644 --- a/projects/demo/src/modules/experimental/progress-segmented/progress-segmented.component.ts +++ b/projects/demo/src/modules/experimental/progress-segmented/progress-segmented.component.ts @@ -1,6 +1,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiProgressBarComponent} from '@taiga-ui/kit'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiProgressBarComponent} from '@taiga-ui/kit'; @Component({ selector: 'example-progress-segmented', diff --git a/projects/demo/src/modules/experimental/radio/examples/1/index.ts b/projects/demo/src/modules/experimental/radio/examples/1/index.ts index 0906e7a56159..4aff8b4da360 100644 --- a/projects/demo/src/modules/experimental/radio/examples/1/index.ts +++ b/projects/demo/src/modules/experimental/radio/examples/1/index.ts @@ -1,9 +1,10 @@ -import {Component, type OnInit} from '@angular/core'; +import type {OnInit} from '@angular/core'; +import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiPlatform} from '@taiga-ui/cdk'; -import {type TuiSizeS} from '@taiga-ui/core'; +import type {TuiPlatform} from '@taiga-ui/cdk'; +import type {TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'tui-radio-example-1', diff --git a/projects/demo/src/modules/experimental/radio/radio.component.ts b/projects/demo/src/modules/experimental/radio/radio.component.ts index 2043a2f9f4b5..2987e509f6d7 100644 --- a/projects/demo/src/modules/experimental/radio/radio.component.ts +++ b/projects/demo/src/modules/experimental/radio/radio.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-radio', diff --git a/projects/demo/src/modules/experimental/rating/examples/2/index.ts b/projects/demo/src/modules/experimental/rating/examples/2/index.ts index ec74f9ddfb23..ae34a292f793 100644 --- a/projects/demo/src/modules/experimental/rating/examples/2/index.ts +++ b/projects/demo/src/modules/experimental/rating/examples/2/index.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiContext} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiContext} from '@taiga-ui/cdk'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-rating-example-2', diff --git a/projects/demo/src/modules/experimental/rating/rating.component.ts b/projects/demo/src/modules/experimental/rating/rating.component.ts index 1a398089aa89..92cfbb6df58f 100644 --- a/projects/demo/src/modules/experimental/rating/rating.component.ts +++ b/projects/demo/src/modules/experimental/rating/rating.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-rating', diff --git a/projects/demo/src/modules/experimental/segmented/examples/4/index.ts b/projects/demo/src/modules/experimental/segmented/examples/4/index.ts index fac7e25fc120..7001ddf8a92a 100644 --- a/projects/demo/src/modules/experimental/segmented/examples/4/index.ts +++ b/projects/demo/src/modules/experimental/segmented/examples/4/index.ts @@ -1,5 +1,5 @@ import {Component} from '@angular/core'; -import {type IsActiveMatchOptions} from '@angular/router'; +import type {IsActiveMatchOptions} from '@angular/router'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; diff --git a/projects/demo/src/modules/experimental/segmented/segmented.component.ts b/projects/demo/src/modules/experimental/segmented/segmented.component.ts index df4bb4c32c4d..864d45fb0cd2 100644 --- a/projects/demo/src/modules/experimental/segmented/segmented.component.ts +++ b/projects/demo/src/modules/experimental/segmented/segmented.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-segmented', diff --git a/projects/demo/src/modules/experimental/sensitive/sensitive.component.ts b/projects/demo/src/modules/experimental/sensitive/sensitive.component.ts index 75527051ce3b..911d8c6ed3a3 100644 --- a/projects/demo/src/modules/experimental/sensitive/sensitive.component.ts +++ b/projects/demo/src/modules/experimental/sensitive/sensitive.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-sensitive', diff --git a/projects/demo/src/modules/experimental/surface/surface.component.ts b/projects/demo/src/modules/experimental/surface/surface.component.ts index e3fd535ffdfc..899d69517147 100644 --- a/projects/demo/src/modules/experimental/surface/surface.component.ts +++ b/projects/demo/src/modules/experimental/surface/surface.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-surface', diff --git a/projects/demo/src/modules/experimental/textfield/textfield.component.ts b/projects/demo/src/modules/experimental/textfield/textfield.component.ts index 85ae0b23c491..2898c8f663f4 100644 --- a/projects/demo/src/modules/experimental/textfield/textfield.component.ts +++ b/projects/demo/src/modules/experimental/textfield/textfield.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-textfield', diff --git a/projects/demo/src/modules/experimental/thumbnail-card/thumbnail-card.component.ts b/projects/demo/src/modules/experimental/thumbnail-card/thumbnail-card.component.ts index c62214982517..c9eede4c770e 100644 --- a/projects/demo/src/modules/experimental/thumbnail-card/thumbnail-card.component.ts +++ b/projects/demo/src/modules/experimental/thumbnail-card/thumbnail-card.component.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiPaymentSystem} from '@taiga-ui/addon-commerce'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiPaymentSystem} from '@taiga-ui/addon-commerce'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'example-tui-thumbnail-card', diff --git a/projects/demo/src/modules/experimental/title/title.component.ts b/projects/demo/src/modules/experimental/title/title.component.ts index b4babe1310ac..cea59b741948 100644 --- a/projects/demo/src/modules/experimental/title/title.component.ts +++ b/projects/demo/src/modules/experimental/title/title.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-title', diff --git a/projects/demo/src/modules/experimental/toggle/examples/1/index.ts b/projects/demo/src/modules/experimental/toggle/examples/1/index.ts index 4ed0c459b582..d65b5cb0e14f 100644 --- a/projects/demo/src/modules/experimental/toggle/examples/1/index.ts +++ b/projects/demo/src/modules/experimental/toggle/examples/1/index.ts @@ -1,9 +1,10 @@ -import {Component, type OnInit} from '@angular/core'; +import type {OnInit} from '@angular/core'; +import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiPlatform} from '@taiga-ui/cdk'; -import {type TuiSizeS} from '@taiga-ui/core'; +import type {TuiPlatform} from '@taiga-ui/cdk'; +import type {TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'tui-toggle-example-1', diff --git a/projects/demo/src/modules/experimental/toggle/toggle.component.ts b/projects/demo/src/modules/experimental/toggle/toggle.component.ts index 29821b22c99b..db7a92118eab 100644 --- a/projects/demo/src/modules/experimental/toggle/toggle.component.ts +++ b/projects/demo/src/modules/experimental/toggle/toggle.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-toggle', diff --git a/projects/demo/src/modules/experimental/tooltip/tooltip.component.ts b/projects/demo/src/modules/experimental/tooltip/tooltip.component.ts index 3da71f5bec71..5e0061cf4ec8 100644 --- a/projects/demo/src/modules/experimental/tooltip/tooltip.component.ts +++ b/projects/demo/src/modules/experimental/tooltip/tooltip.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {TUI_HINT_DIRECTIONS} from '@taiga-ui/core'; @Component({ diff --git a/projects/demo/src/modules/icons/customization/examples/1/index.ts b/projects/demo/src/modules/icons/customization/examples/1/index.ts index 32282c377d1d..adb3b8bffc9e 100644 --- a/projects/demo/src/modules/icons/customization/examples/1/index.ts +++ b/projects/demo/src/modules/icons/customization/examples/1/index.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiSafeHtml} from '@taiga-ui/cdk'; +import type {TuiSafeHtml} from '@taiga-ui/cdk'; import {TUI_SANITIZER, tuiSvgSrcInterceptors} from '@taiga-ui/core'; import {NgDompurifySanitizer} from '@tinkoff/ng-dompurify'; diff --git a/projects/demo/src/modules/icons/customization/icons-customization.component.ts b/projects/demo/src/modules/icons/customization/icons-customization.component.ts index b267f1ee11af..e8132accb97a 100644 --- a/projects/demo/src/modules/icons/customization/icons-customization.component.ts +++ b/projects/demo/src/modules/icons/customization/icons-customization.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'icons-customizations', diff --git a/projects/demo/src/modules/icons/icons-bundled/icons-bundled.component.ts b/projects/demo/src/modules/icons/icons-bundled/icons-bundled.component.ts index 1d9d63aa37d2..2a2a7863c0d9 100644 --- a/projects/demo/src/modules/icons/icons-bundled/icons-bundled.component.ts +++ b/projects/demo/src/modules/icons/icons-bundled/icons-bundled.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'icons-bundled', diff --git a/projects/demo/src/modules/icons/icons-group/icons-group.component.ts b/projects/demo/src/modules/icons/icons-group/icons-group.component.ts index 63b51575c9e6..805a24991de9 100644 --- a/projects/demo/src/modules/icons/icons-group/icons-group.component.ts +++ b/projects/demo/src/modules/icons/icons-group/icons-group.component.ts @@ -1,18 +1,13 @@ import {Clipboard} from '@angular/cdk/clipboard'; -import {Component, ContentChild, inject, Input, type OnInit} from '@angular/core'; +import type {OnInit} from '@angular/core'; +import {Component, ContentChild, inject, Input} from '@angular/core'; import {FormControl} from '@angular/forms'; import {ActivatedRoute, Router} from '@angular/router'; import {changeDetection} from '@demo/emulate/change-detection'; import {TUI_DEFAULT_MATCHER, TuiDestroyService} from '@taiga-ui/cdk'; import {TuiAlertService} from '@taiga-ui/core'; -import { - debounceTime, - distinctUntilChanged, - filter, - map, - type Observable, - takeUntil, -} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {debounceTime, distinctUntilChanged, filter, map, takeUntil} from 'rxjs'; import {IconsGroupDirective} from './icons-group.directive'; diff --git a/projects/demo/src/modules/icons/icons-mapping/icons-mapping.component.ts b/projects/demo/src/modules/icons/icons-mapping/icons-mapping.component.ts index 95ae37029d03..9e82869f351b 100644 --- a/projects/demo/src/modules/icons/icons-mapping/icons-mapping.component.ts +++ b/projects/demo/src/modules/icons/icons-mapping/icons-mapping.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {tuiKitIcons} from '@taiga-ui/icons'; @Component({ diff --git a/projects/demo/src/modules/icons/icons.component.ts b/projects/demo/src/modules/icons/icons.component.ts index 4e1fa0288dd7..932083f04f2d 100644 --- a/projects/demo/src/modules/icons/icons.component.ts +++ b/projects/demo/src/modules/icons/icons.component.ts @@ -1,8 +1,10 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {assets} from '@demo/utils'; -import {type TuiBrightness, TuiModeDirective} from '@taiga-ui/core'; -import {map, type Observable, startWith} from 'rxjs'; +import type {TuiBrightness} from '@taiga-ui/core'; +import {TuiModeDirective} from '@taiga-ui/core'; +import type {Observable} from 'rxjs'; +import {map, startWith} from 'rxjs'; import {TUI_DEMO_ICONS} from './icons.tokens'; diff --git a/projects/demo/src/modules/icons/icons.tokens.ts b/projects/demo/src/modules/icons/icons.tokens.ts index 813359f6f381..8dda8544edc6 100644 --- a/projects/demo/src/modules/icons/icons.tokens.ts +++ b/projects/demo/src/modules/icons/icons.tokens.ts @@ -1,5 +1,6 @@ import {inject} from '@angular/core'; -import {tuiCreateTokenFromFactory, type TuiStringHandler} from '@taiga-ui/cdk'; +import type {TuiStringHandler} from '@taiga-ui/cdk'; +import {tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; import {TUI_SVG_OPTIONS} from '@taiga-ui/core'; import * as allIcons from '@taiga-ui/icons'; diff --git a/projects/demo/src/modules/icons/marker-icon/marker-icon.component.ts b/projects/demo/src/modules/icons/marker-icon/marker-icon.component.ts index b5a7388dcdb7..f027152bc952 100644 --- a/projects/demo/src/modules/icons/marker-icon/marker-icon.component.ts +++ b/projects/demo/src/modules/icons/marker-icon/marker-icon.component.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiSizeXXL, type TuiSizeXXS} from '@taiga-ui/core'; -import {type TuiMarkerIconMode} from '@taiga-ui/kit'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiSizeXXL, TuiSizeXXS} from '@taiga-ui/core'; +import type {TuiMarkerIconMode} from '@taiga-ui/kit'; @Component({ selector: 'example-tui-marker-icon', diff --git a/projects/demo/src/modules/markup/breakpoints/breakpoints.component.ts b/projects/demo/src/modules/markup/breakpoints/breakpoints.component.ts index 0fd365a0c822..592a129c66c6 100644 --- a/projects/demo/src/modules/markup/breakpoints/breakpoints.component.ts +++ b/projects/demo/src/modules/markup/breakpoints/breakpoints.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import fileWithBreakpoints from '@taiga-ui/core/styles/variables/media.less?raw'; /** diff --git a/projects/demo/src/modules/markup/colors/table/table.component.ts b/projects/demo/src/modules/markup/colors/table/table.component.ts index 094e8d3ca32e..c6b8933b78a5 100644 --- a/projects/demo/src/modules/markup/colors/table/table.component.ts +++ b/projects/demo/src/modules/markup/colors/table/table.component.ts @@ -5,7 +5,7 @@ import {WINDOW} from '@ng-web-apis/common'; import {TuiThemeService} from '@taiga-ui/addon-doc'; import {delay} from 'rxjs'; -import {type Color} from '../colors.constants'; +import type {Color} from '../colors.constants'; @Component({ selector: 'table[colors]', diff --git a/projects/demo/src/modules/markup/form/form.component.ts b/projects/demo/src/modules/markup/form/form.component.ts index 1afaebc12e48..51fa090d2d40 100644 --- a/projects/demo/src/modules/markup/form/form.component.ts +++ b/projects/demo/src/modules/markup/form/form.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-form', diff --git a/projects/demo/src/modules/markup/lists/lists.component.ts b/projects/demo/src/modules/markup/lists/lists.component.ts index 62a860e9b0bf..8957d1087b2d 100644 --- a/projects/demo/src/modules/markup/lists/lists.component.ts +++ b/projects/demo/src/modules/markup/lists/lists.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'lists', diff --git a/projects/demo/src/modules/markup/skeleton/skeleton.component.ts b/projects/demo/src/modules/markup/skeleton/skeleton.component.ts index 436ba2baba3a..a60e46f29e45 100644 --- a/projects/demo/src/modules/markup/skeleton/skeleton.component.ts +++ b/projects/demo/src/modules/markup/skeleton/skeleton.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'skeleton', diff --git a/projects/demo/src/modules/markup/spaces/spaces.component.ts b/projects/demo/src/modules/markup/spaces/spaces.component.ts index 917fd4a0c966..265614ae6a09 100644 --- a/projects/demo/src/modules/markup/spaces/spaces.component.ts +++ b/projects/demo/src/modules/markup/spaces/spaces.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'spaces', diff --git a/projects/demo/src/modules/markup/tables/tables.component.ts b/projects/demo/src/modules/markup/tables/tables.component.ts index f1d088932c2b..072a6cadeb8d 100644 --- a/projects/demo/src/modules/markup/tables/tables.component.ts +++ b/projects/demo/src/modules/markup/tables/tables.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'tables', diff --git a/projects/demo/src/modules/pipes/amount/amount.component.ts b/projects/demo/src/modules/pipes/amount/amount.component.ts index 0e397194d698..14e1641adfec 100644 --- a/projects/demo/src/modules/pipes/amount/amount.component.ts +++ b/projects/demo/src/modules/pipes/amount/amount.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiDocExample, TuiRawLoaderContent} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-amount', diff --git a/projects/demo/src/modules/pipes/currency/currency.component.ts b/projects/demo/src/modules/pipes/currency/currency.component.ts index cda430a5e941..41e5fc9e2b79 100644 --- a/projects/demo/src/modules/pipes/currency/currency.component.ts +++ b/projects/demo/src/modules/pipes/currency/currency.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {FormControl, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-currency', diff --git a/projects/demo/src/modules/pipes/field-error/examples/1/index.ts b/projects/demo/src/modules/pipes/field-error/examples/1/index.ts index 6267dd26b888..c37ef0830387 100644 --- a/projects/demo/src/modules/pipes/field-error/examples/1/index.ts +++ b/projects/demo/src/modules/pipes/field-error/examples/1/index.ts @@ -1,5 +1,6 @@ import {Component} from '@angular/core'; -import {type AbstractControl, FormControl, FormGroup, Validators} from '@angular/forms'; +import type {AbstractControl} from '@angular/forms'; +import {FormControl, FormGroup, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {distinctUntilChanged} from 'rxjs'; diff --git a/projects/demo/src/modules/pipes/field-error/examples/3/index.ts b/projects/demo/src/modules/pipes/field-error/examples/3/index.ts index beaa4919e4fd..e8e1423348a0 100644 --- a/projects/demo/src/modules/pipes/field-error/examples/3/index.ts +++ b/projects/demo/src/modules/pipes/field-error/examples/3/index.ts @@ -1,15 +1,11 @@ -import {Component, type OnInit, ViewChild} from '@angular/core'; -import { - type AbstractControl, - FormControl, - FormGroup, - type ValidationErrors, - Validators, -} from '@angular/forms'; +import type {OnInit} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {AbstractControl, ValidationErrors} from '@angular/forms'; +import {FormControl, FormGroup, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiMarkControlAsTouchedAndValidate, TuiValidationError} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; const secretRegexTen = /^\d{10}$/; const secretRegexTwelve = /^\d{12}$/; diff --git a/projects/demo/src/modules/pipes/field-error/examples/4/index.ts b/projects/demo/src/modules/pipes/field-error/examples/4/index.ts index da6fd3cad0e8..d24ce375b101 100644 --- a/projects/demo/src/modules/pipes/field-error/examples/4/index.ts +++ b/projects/demo/src/modules/pipes/field-error/examples/4/index.ts @@ -1,17 +1,10 @@ import {Component, ViewChild} from '@angular/core'; -import { - type AbstractControl, - FormArray, - FormControl, - FormGroup, - type ValidationErrors, - type ValidatorFn, - Validators, -} from '@angular/forms'; +import type {AbstractControl, ValidationErrors, ValidatorFn} from '@angular/forms'; +import {FormArray, FormControl, FormGroup, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiValidationError} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-field-error-pipe-example-4', diff --git a/projects/demo/src/modules/pipes/field-error/examples/5/index.ts b/projects/demo/src/modules/pipes/field-error/examples/5/index.ts index 893a488e0f2f..3625e7e0a956 100644 --- a/projects/demo/src/modules/pipes/field-error/examples/5/index.ts +++ b/projects/demo/src/modules/pipes/field-error/examples/5/index.ts @@ -1,11 +1,6 @@ import {Component, inject} from '@angular/core'; -import { - type AbstractControl, - type AsyncValidatorFn, - type FormGroup, - UntypedFormBuilder, - Validators, -} from '@angular/forms'; +import type {AbstractControl, AsyncValidatorFn, FormGroup} from '@angular/forms'; +import {UntypedFormBuilder, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TUI_IS_E2E, TuiValidationError} from '@taiga-ui/cdk'; diff --git a/projects/demo/src/modules/pipes/field-error/field-error.component.ts b/projects/demo/src/modules/pipes/field-error/field-error.component.ts index 587931607f1a..86a2ad2080c0 100644 --- a/projects/demo/src/modules/pipes/field-error/field-error.component.ts +++ b/projects/demo/src/modules/pipes/field-error/field-error.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-field-error-pipe', diff --git a/projects/demo/src/modules/pipes/filter-by-input/filter-by-input.component.ts b/projects/demo/src/modules/pipes/filter-by-input/filter-by-input.component.ts index fd01b983dab2..b0217fc3f786 100644 --- a/projects/demo/src/modules/pipes/filter-by-input/filter-by-input.component.ts +++ b/projects/demo/src/modules/pipes/filter-by-input/filter-by-input.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-filter-by-input', diff --git a/projects/demo/src/modules/pipes/filter/filter.component.ts b/projects/demo/src/modules/pipes/filter/filter.component.ts index ca03db97aa8a..c5871f038784 100644 --- a/projects/demo/src/modules/pipes/filter/filter.component.ts +++ b/projects/demo/src/modules/pipes/filter/filter.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-filter', diff --git a/projects/demo/src/modules/pipes/flag/flag.component.ts b/projects/demo/src/modules/pipes/flag/flag.component.ts index ff146251cf1a..cd35b07fcb58 100644 --- a/projects/demo/src/modules/pipes/flag/flag.component.ts +++ b/projects/demo/src/modules/pipes/flag/flag.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-flag', diff --git a/projects/demo/src/modules/pipes/format-date/examples/1/service.ts b/projects/demo/src/modules/pipes/format-date/examples/1/service.ts index 36cb3fa363d1..d1957b49d90c 100644 --- a/projects/demo/src/modules/pipes/format-date/examples/1/service.ts +++ b/projects/demo/src/modules/pipes/format-date/examples/1/service.ts @@ -1,7 +1,8 @@ import {Injectable} from '@angular/core'; import {TuiFormatDateService} from '@taiga-ui/core'; import {formatDistance} from 'date-fns'; -import {map, type Observable, timer} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map, timer} from 'rxjs'; @Injectable() export class FormatService extends TuiFormatDateService { diff --git a/projects/demo/src/modules/pipes/format-date/format-date.component.ts b/projects/demo/src/modules/pipes/format-date/format-date.component.ts index 094d438f589c..00c3ad310052 100644 --- a/projects/demo/src/modules/pipes/format-date/format-date.component.ts +++ b/projects/demo/src/modules/pipes/format-date/format-date.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-format-date', diff --git a/projects/demo/src/modules/pipes/format-number/format-number.component.ts b/projects/demo/src/modules/pipes/format-number/format-number.component.ts index 1cb92d508bdb..c203b333a04c 100644 --- a/projects/demo/src/modules/pipes/format-number/format-number.component.ts +++ b/projects/demo/src/modules/pipes/format-number/format-number.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; -import {type TuiDecimalSymbol} from '@taiga-ui/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDecimalSymbol} from '@taiga-ui/core'; @Component({ selector: 'example-tui-format-number', diff --git a/projects/demo/src/modules/pipes/format-phone/format-phone.component.ts b/projects/demo/src/modules/pipes/format-phone/format-phone.component.ts index cd45b7f374bb..20d79c354016 100644 --- a/projects/demo/src/modules/pipes/format-phone/format-phone.component.ts +++ b/projects/demo/src/modules/pipes/format-phone/format-phone.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-format-phone', diff --git a/projects/demo/src/modules/pipes/is-present/is-present.component.ts b/projects/demo/src/modules/pipes/is-present/is-present.component.ts index 162a6a0b245b..295127896e99 100644 --- a/projects/demo/src/modules/pipes/is-present/is-present.component.ts +++ b/projects/demo/src/modules/pipes/is-present/is-present.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-is-present', diff --git a/projects/demo/src/modules/pipes/mapper/examples/2/component.ts b/projects/demo/src/modules/pipes/mapper/examples/2/component.ts index 74d030ba16e3..9bcb65b402cc 100644 --- a/projects/demo/src/modules/pipes/mapper/examples/2/component.ts +++ b/projects/demo/src/modules/pipes/mapper/examples/2/component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiTypedMapper} from '@taiga-ui/cdk'; +import type {TuiTypedMapper} from '@taiga-ui/cdk'; @Component({ selector: 'tui-mapper-example2', diff --git a/projects/demo/src/modules/pipes/mapper/mapper.component.ts b/projects/demo/src/modules/pipes/mapper/mapper.component.ts index 9fbdf5d4703f..d74fb4fd73b3 100644 --- a/projects/demo/src/modules/pipes/mapper/mapper.component.ts +++ b/projects/demo/src/modules/pipes/mapper/mapper.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-mapper', diff --git a/projects/demo/src/modules/pipes/stringify-content/stringify-content.component.ts b/projects/demo/src/modules/pipes/stringify-content/stringify-content.component.ts index da748bd4813a..45bcf5bd9911 100644 --- a/projects/demo/src/modules/pipes/stringify-content/stringify-content.component.ts +++ b/projects/demo/src/modules/pipes/stringify-content/stringify-content.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-stringify-content', diff --git a/projects/demo/src/modules/pipes/stringify/stringify.component.ts b/projects/demo/src/modules/pipes/stringify/stringify.component.ts index 326be7971ce9..35160f9f2456 100644 --- a/projects/demo/src/modules/pipes/stringify/stringify.component.ts +++ b/projects/demo/src/modules/pipes/stringify/stringify.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-stringify', diff --git a/projects/demo/src/modules/services/breakpoint/breakpoint.component.ts b/projects/demo/src/modules/services/breakpoint/breakpoint.component.ts index 0a757021a47d..707ed58871b2 100644 --- a/projects/demo/src/modules/services/breakpoint/breakpoint.component.ts +++ b/projects/demo/src/modules/services/breakpoint/breakpoint.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-breakpoint', diff --git a/projects/demo/src/modules/services/destroy/destroy.component.ts b/projects/demo/src/modules/services/destroy/destroy.component.ts index 9ee96e96d52d..97cbf09524d5 100644 --- a/projects/demo/src/modules/services/destroy/destroy.component.ts +++ b/projects/demo/src/modules/services/destroy/destroy.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-destroy', diff --git a/projects/demo/src/modules/services/scroll/examples/1/index.ts b/projects/demo/src/modules/services/scroll/examples/1/index.ts index 8dec0645e0e0..2d8f23144017 100644 --- a/projects/demo/src/modules/services/scroll/examples/1/index.ts +++ b/projects/demo/src/modules/services/scroll/examples/1/index.ts @@ -1,4 +1,5 @@ -import {Component, type ElementRef, inject} from '@angular/core'; +import type {ElementRef} from '@angular/core'; +import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiDestroyService, TuiScrollService} from '@taiga-ui/cdk'; diff --git a/projects/demo/src/modules/services/scroll/scroll.component.ts b/projects/demo/src/modules/services/scroll/scroll.component.ts index 91fd21099c47..236b742c6ae2 100644 --- a/projects/demo/src/modules/services/scroll/scroll.component.ts +++ b/projects/demo/src/modules/services/scroll/scroll.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-scrollbar', diff --git a/projects/demo/src/modules/services/table-bar/examples/1/index.ts b/projects/demo/src/modules/services/table-bar/examples/1/index.ts index 9d4c98980cb9..b26bd9943ff6 100644 --- a/projects/demo/src/modules/services/table-bar/examples/1/index.ts +++ b/projects/demo/src/modules/services/table-bar/examples/1/index.ts @@ -2,7 +2,7 @@ import {Component, inject, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiTableBarsService} from '@taiga-ui/addon-tablebars'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {Subscription} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/services/table-bar/table-bar.component.ts b/projects/demo/src/modules/services/table-bar/table-bar.component.ts index 4708d1dada91..5a71e3f0faaf 100644 --- a/projects/demo/src/modules/services/table-bar/table-bar.component.ts +++ b/projects/demo/src/modules/services/table-bar/table-bar.component.ts @@ -1,9 +1,10 @@ -import {Component, inject, type OnDestroy, ViewChild} from '@angular/core'; +import type {OnDestroy} from '@angular/core'; +import {Component, inject, ViewChild} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; import {TuiTableBarsService} from '@taiga-ui/addon-tablebars'; -import {type TuiBrightness} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiBrightness} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {Subject, Subscription, takeUntil} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/tables/reorder/reorder.component.ts b/projects/demo/src/modules/tables/reorder/reorder.component.ts index c9f5190016f8..468d78a4f9cf 100644 --- a/projects/demo/src/modules/tables/reorder/reorder.component.ts +++ b/projects/demo/src/modules/tables/reorder/reorder.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-reorder', diff --git a/projects/demo/src/modules/tables/table-filters/table-filters.component.ts b/projects/demo/src/modules/tables/table-filters/table-filters.component.ts index 2e7b7ba01ac8..82b1acffab8e 100644 --- a/projects/demo/src/modules/tables/table-filters/table-filters.component.ts +++ b/projects/demo/src/modules/tables/table-filters/table-filters.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-table-filters', diff --git a/projects/demo/src/modules/tables/table-pagination/examples/2/index.ts b/projects/demo/src/modules/tables/table-pagination/examples/2/index.ts index c170b9fdbd6d..d39591ec4f4e 100644 --- a/projects/demo/src/modules/tables/table-pagination/examples/2/index.ts +++ b/projects/demo/src/modules/tables/table-pagination/examples/2/index.ts @@ -1,10 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import { - type TuiTablePaginationOptions, - tuiTablePaginationOptionsProvider, -} from '@taiga-ui/addon-table'; +import type {TuiTablePaginationOptions} from '@taiga-ui/addon-table'; +import {tuiTablePaginationOptionsProvider} from '@taiga-ui/addon-table'; const customOptionContent: TuiTablePaginationOptions['sizeOptionContent'] = ({ $implicit, diff --git a/projects/demo/src/modules/tables/table-pagination/table-pagination.component.ts b/projects/demo/src/modules/tables/table-pagination/table-pagination.component.ts index 6edc9749fe34..1f4cdaa03851 100644 --- a/projects/demo/src/modules/tables/table-pagination/table-pagination.component.ts +++ b/projects/demo/src/modules/tables/table-pagination/table-pagination.component.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-table-pagination', diff --git a/projects/demo/src/modules/tables/table/examples/3/index.ts b/projects/demo/src/modules/tables/table/examples/3/index.ts index 858f5ff03f58..4d0c572253d9 100644 --- a/projects/demo/src/modules/tables/table/examples/3/index.ts +++ b/projects/demo/src/modules/tables/table/examples/3/index.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; -import {type ValidatorFn} from '@angular/forms'; +import type {ValidatorFn} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiComparator} from '@taiga-ui/addon-table'; +import type {TuiComparator} from '@taiga-ui/addon-table'; import {TuiDay, tuiDefaultSort} from '@taiga-ui/cdk'; interface Item { diff --git a/projects/demo/src/modules/tables/table/examples/4/index.ts b/projects/demo/src/modules/tables/table/examples/4/index.ts index 13f4fcdf4116..6f60baa3939e 100644 --- a/projects/demo/src/modules/tables/table/examples/4/index.ts +++ b/projects/demo/src/modules/tables/table/examples/4/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormControl} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiComparator} from '@taiga-ui/addon-table'; +import type {TuiComparator} from '@taiga-ui/addon-table'; import { TUI_DEFAULT_MATCHER, tuiControlValue, @@ -13,13 +13,13 @@ import { tuiToInt, } from '@taiga-ui/cdk'; import {TUI_ARROW} from '@taiga-ui/kit'; +import type {Observable} from 'rxjs'; import { BehaviorSubject, combineLatest, debounceTime, filter, map, - type Observable, share, startWith, switchMap, diff --git a/projects/demo/src/modules/tables/table/examples/5/index.ts b/projects/demo/src/modules/tables/table/examples/5/index.ts index e4f727f193de..9cbde84a9250 100644 --- a/projects/demo/src/modules/tables/table/examples/5/index.ts +++ b/projects/demo/src/modules/tables/table/examples/5/index.ts @@ -1,7 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiComparator} from '@taiga-ui/addon-table'; +import type {TuiComparator} from '@taiga-ui/addon-table'; import {TuiDay, tuiToInt} from '@taiga-ui/cdk'; interface User { diff --git a/projects/demo/src/modules/tables/table/table.component.ts b/projects/demo/src/modules/tables/table/table.component.ts index d7cf3cf38734..3a4200a1417e 100644 --- a/projects/demo/src/modules/tables/table/table.component.ts +++ b/projects/demo/src/modules/tables/table/table.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-table', diff --git a/projects/demo/src/modules/utils/browser/browser.component.ts b/projects/demo/src/modules/utils/browser/browser.component.ts index be7a84e72453..4af5bd6548ec 100644 --- a/projects/demo/src/modules/utils/browser/browser.component.ts +++ b/projects/demo/src/modules/utils/browser/browser.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-browser', diff --git a/projects/demo/src/modules/utils/format/examples/2/index.ts b/projects/demo/src/modules/utils/format/examples/2/index.ts index a6be992f67a6..143a5aca316d 100644 --- a/projects/demo/src/modules/utils/format/examples/2/index.ts +++ b/projects/demo/src/modules/utils/format/examples/2/index.ts @@ -2,7 +2,8 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiCurrencyVariants, tuiGetCurrencySymbol} from '@taiga-ui/addon-commerce'; +import type {TuiCurrencyVariants} from '@taiga-ui/addon-commerce'; +import {tuiGetCurrencySymbol} from '@taiga-ui/addon-commerce'; @Component({ selector: 'tui-format-example-2', diff --git a/projects/demo/src/modules/utils/format/examples/5/index.ts b/projects/demo/src/modules/utils/format/examples/5/index.ts index 59a525ef0e8f..4a5462e160f2 100644 --- a/projects/demo/src/modules/utils/format/examples/5/index.ts +++ b/projects/demo/src/modules/utils/format/examples/5/index.ts @@ -2,7 +2,8 @@ import {Component} from '@angular/core'; import {FormControl, FormGroup} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {type TuiDecimalSymbol, tuiFormatNumber} from '@taiga-ui/core'; +import type {TuiDecimalSymbol} from '@taiga-ui/core'; +import {tuiFormatNumber} from '@taiga-ui/core'; @Component({ selector: 'tui-format-example-5', diff --git a/projects/demo/src/modules/utils/format/format.component.ts b/projects/demo/src/modules/utils/format/format.component.ts index 8a4039af11d3..f030ec6654b0 100644 --- a/projects/demo/src/modules/utils/format/format.component.ts +++ b/projects/demo/src/modules/utils/format/format.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-format', diff --git a/projects/demo/src/modules/utils/math/math.component.ts b/projects/demo/src/modules/utils/math/math.component.ts index 44f646b05646..0f090fad8c1d 100644 --- a/projects/demo/src/modules/utils/math/math.component.ts +++ b/projects/demo/src/modules/utils/math/math.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-math', diff --git a/projects/demo/src/modules/utils/miscellaneous/examples/6/index.ts b/projects/demo/src/modules/utils/miscellaneous/examples/6/index.ts index 97e8bd5387a9..9a2cea9c88b4 100644 --- a/projects/demo/src/modules/utils/miscellaneous/examples/6/index.ts +++ b/projects/demo/src/modules/utils/miscellaneous/examples/6/index.ts @@ -1,4 +1,5 @@ -import {Component, type OnInit} from '@angular/core'; +import type {OnInit} from '@angular/core'; +import {Component} from '@angular/core'; import {FormControl, FormGroup, Validators} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; diff --git a/projects/demo/src/modules/utils/miscellaneous/miscellaneous.component.ts b/projects/demo/src/modules/utils/miscellaneous/miscellaneous.component.ts index 94dbb4d0fe32..a44e15a21c85 100644 --- a/projects/demo/src/modules/utils/miscellaneous/miscellaneous.component.ts +++ b/projects/demo/src/modules/utils/miscellaneous/miscellaneous.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-format', diff --git a/projects/demo/src/modules/utils/pure/pure.component.ts b/projects/demo/src/modules/utils/pure/pure.component.ts index 71ff5c8e1ac6..0928e6c3461f 100644 --- a/projects/demo/src/modules/utils/pure/pure.component.ts +++ b/projects/demo/src/modules/utils/pure/pure.component.ts @@ -1,6 +1,6 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tui-pure', diff --git a/projects/demo/src/modules/utils/tokens/tokens.component.ts b/projects/demo/src/modules/utils/tokens/tokens.component.ts index 585439637ce7..55781db87bfe 100644 --- a/projects/demo/src/modules/utils/tokens/tokens.component.ts +++ b/projects/demo/src/modules/utils/tokens/tokens.component.ts @@ -1,6 +1,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; -import {TUI_DOC_CODE_EDITOR, type TuiDocExample} from '@taiga-ui/addon-doc'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TUI_DOC_CODE_EDITOR} from '@taiga-ui/addon-doc'; @Component({ selector: 'example-tokens', diff --git a/projects/demo/src/utils/example.pipe.ts b/projects/demo/src/utils/example.pipe.ts index 181e3cf24a38..a33c60eb2bf6 100644 --- a/projects/demo/src/utils/example.pipe.ts +++ b/projects/demo/src/utils/example.pipe.ts @@ -1,5 +1,7 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; -import {type TuiDocExample, TuiDocPageComponent} from '@taiga-ui/addon-doc'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; +import type {TuiDocExample} from '@taiga-ui/addon-doc'; +import {TuiDocPageComponent} from '@taiga-ui/addon-doc'; const toKebab: (str: string) => string = str => str.replaceAll( diff --git a/projects/demo/src/utils/setup.component.ts b/projects/demo/src/utils/setup.component.ts index cefb417ffd58..9419713b3848 100644 --- a/projects/demo/src/utils/setup.component.ts +++ b/projects/demo/src/utils/setup.component.ts @@ -1,5 +1,6 @@ import {ChangeDetectionStrategy, Component, Input} from '@angular/core'; -import {TuiDocCodeModule, type TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import type {TuiRawLoaderContent} from '@taiga-ui/addon-doc'; +import {TuiDocCodeModule} from '@taiga-ui/addon-doc'; @Component({ standalone: true, diff --git a/projects/demo/webpack.config.ts b/projects/demo/webpack.config.ts index adb7f0e75605..df0ad59a81d1 100644 --- a/projects/demo/webpack.config.ts +++ b/projects/demo/webpack.config.ts @@ -1,5 +1,5 @@ import TerserPlugin from 'terser-webpack-plugin'; -import {type Configuration, type RuleSetRule} from 'webpack'; +import type {Configuration, RuleSetRule} from 'webpack'; import {merge} from 'webpack-merge'; interface Options { diff --git a/projects/experimental/components/button/button.component.ts b/projects/experimental/components/button/button.component.ts index 596f93d8c4df..7a46fba04854 100644 --- a/projects/experimental/components/button/button.component.ts +++ b/projects/experimental/components/button/button.component.ts @@ -6,7 +6,8 @@ import { Input, } from '@angular/core'; import {tuiIsString} from '@taiga-ui/cdk'; -import {tuiSizeBigger, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeS} from '@taiga-ui/core'; +import {tuiSizeBigger} from '@taiga-ui/core'; import {TUI_BUTTON_OPTIONS} from './button.options'; diff --git a/projects/experimental/components/button/button.options.ts b/projects/experimental/components/button/button.options.ts index a324813facad..82bd6739a1c1 100644 --- a/projects/experimental/components/button/button.options.ts +++ b/projects/experimental/components/button/button.options.ts @@ -1,6 +1,6 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiAppearanceOptions, type TuiSizeXL, type TuiSizeXS} from '@taiga-ui/core'; +import type {TuiAppearanceOptions, TuiSizeXL, TuiSizeXS} from '@taiga-ui/core'; export interface TuiButtonOptions extends TuiAppearanceOptions { readonly size: TuiSizeXL | TuiSizeXS; diff --git a/projects/experimental/components/checkbox/checkbox.component.ts b/projects/experimental/components/checkbox/checkbox.component.ts index dda485194f52..b1a730bb7a6b 100644 --- a/projects/experimental/components/checkbox/checkbox.component.ts +++ b/projects/experimental/components/checkbox/checkbox.component.ts @@ -1,11 +1,10 @@ +import type {DoCheck, OnInit} from '@angular/core'; import { ChangeDetectionStrategy, Component, - type DoCheck, ElementRef, inject, Input, - type OnInit, } from '@angular/core'; import {NgControl} from '@angular/forms'; import { @@ -14,7 +13,8 @@ import { tuiIsString, TuiNativeValidatorDirective, } from '@taiga-ui/cdk'; -import {TUI_ICON_RESOLVER, TuiAppearanceDirective, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeS} from '@taiga-ui/core'; +import {TUI_ICON_RESOLVER, TuiAppearanceDirective} from '@taiga-ui/core'; import {takeUntil} from 'rxjs'; import {TUI_CHECKBOX_OPTIONS} from './checkbox.options'; diff --git a/projects/experimental/components/checkbox/checkbox.options.ts b/projects/experimental/components/checkbox/checkbox.options.ts index 5f931b1bc8ed..bd8a11adb8bf 100644 --- a/projects/experimental/components/checkbox/checkbox.options.ts +++ b/projects/experimental/components/checkbox/checkbox.options.ts @@ -1,6 +1,7 @@ -import {type Provider} from '@angular/core'; -import {tuiCreateToken, tuiProvideOptions, type TuiStringHandler} from '@taiga-ui/cdk'; -import {type TuiSizeS} from '@taiga-ui/core'; +import type {Provider} from '@angular/core'; +import type {TuiStringHandler} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {TuiSizeS} from '@taiga-ui/core'; export interface TuiCheckboxOptions { readonly size: TuiSizeS; diff --git a/projects/experimental/components/chip/chip.directive.ts b/projects/experimental/components/chip/chip.directive.ts index 3dac2c342674..d4a4bcb0f2f0 100644 --- a/projects/experimental/components/chip/chip.directive.ts +++ b/projects/experimental/components/chip/chip.directive.ts @@ -1,10 +1,10 @@ import {Directive, inject, Input} from '@angular/core'; import {tuiWithStyles} from '@taiga-ui/cdk'; +import type {TuiSizeXXS} from '@taiga-ui/core'; import { TuiAppearanceDirective, tuiAppearanceOptionsProvider, TuiIconsDirective, - type TuiSizeXXS, } from '@taiga-ui/core'; import {tuiButtonOptionsProvider} from '@taiga-ui/experimental/components/button'; import {tuiCheckboxOptionsProvider} from '@taiga-ui/experimental/components/checkbox'; diff --git a/projects/experimental/components/chip/chip.options.ts b/projects/experimental/components/chip/chip.options.ts index 92a32af4a17d..dcf8d3828549 100644 --- a/projects/experimental/components/chip/chip.options.ts +++ b/projects/experimental/components/chip/chip.options.ts @@ -1,6 +1,6 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiAppearanceOptions, type TuiSizeXXS} from '@taiga-ui/core'; +import type {TuiAppearanceOptions, TuiSizeXXS} from '@taiga-ui/core'; export interface TuiChipOptions extends TuiAppearanceOptions { readonly size: TuiSizeXXS; diff --git a/projects/experimental/components/radio/radio.component.ts b/projects/experimental/components/radio/radio.component.ts index 695bd04b746c..5605541165bf 100644 --- a/projects/experimental/components/radio/radio.component.ts +++ b/projects/experimental/components/radio/radio.component.ts @@ -1,14 +1,15 @@ +import type {DoCheck} from '@angular/core'; import { ChangeDetectionStrategy, Component, - type DoCheck, ElementRef, inject, Input, } from '@angular/core'; import {NgControl} from '@angular/forms'; import {TuiNativeValidatorDirective} from '@taiga-ui/cdk'; -import {TuiAppearanceDirective, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeS} from '@taiga-ui/core'; +import {TuiAppearanceDirective} from '@taiga-ui/core'; import {TUI_RADIO_OPTIONS} from './radio.options'; diff --git a/projects/experimental/components/radio/radio.directive.ts b/projects/experimental/components/radio/radio.directive.ts index d2e971c08f86..b068626663d8 100644 --- a/projects/experimental/components/radio/radio.directive.ts +++ b/projects/experimental/components/radio/radio.directive.ts @@ -1,6 +1,7 @@ import {Directive, inject, Input} from '@angular/core'; import {RadioControlValueAccessor} from '@angular/forms'; -import {TUI_DEFAULT_IDENTITY_MATCHER, TuiIdentityMatcher} from '@taiga-ui/cdk'; +import type {TuiIdentityMatcher} from '@taiga-ui/cdk'; +import {TUI_DEFAULT_IDENTITY_MATCHER} from '@taiga-ui/cdk'; @Directive({ standalone: true, diff --git a/projects/experimental/components/radio/radio.options.ts b/projects/experimental/components/radio/radio.options.ts index c29c95ffb313..5cee702a5055 100644 --- a/projects/experimental/components/radio/radio.options.ts +++ b/projects/experimental/components/radio/radio.options.ts @@ -1,6 +1,7 @@ -import {type Provider} from '@angular/core'; -import {tuiCreateToken, tuiProvideOptions, type TuiStringHandler} from '@taiga-ui/cdk'; -import {type TuiSizeS} from '@taiga-ui/core'; +import type {Provider} from '@angular/core'; +import type {TuiStringHandler} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {TuiSizeS} from '@taiga-ui/core'; export interface TuiRadioOptions { readonly appearance: TuiStringHandler; diff --git a/projects/experimental/components/rating/rating.component.ts b/projects/experimental/components/rating/rating.component.ts index 5301b5722af0..e7244b0b7d41 100644 --- a/projects/experimental/components/rating/rating.component.ts +++ b/projects/experimental/components/rating/rating.component.ts @@ -9,12 +9,8 @@ import { ViewChild, } from '@angular/core'; import {NgControl} from '@angular/forms'; -import { - AbstractTuiControl, - tuiClamp, - type TuiFocusableElementAccessor, - tuiIsNativeFocused, -} from '@taiga-ui/cdk'; +import type {TuiFocusableElementAccessor} from '@taiga-ui/cdk'; +import {AbstractTuiControl, tuiClamp, tuiIsNativeFocused} from '@taiga-ui/cdk'; import {TUI_RATING_OPTIONS} from './rating.options'; diff --git a/projects/experimental/components/rating/rating.options.ts b/projects/experimental/components/rating/rating.options.ts index a471e5959028..f2498fcf5fa7 100644 --- a/projects/experimental/components/rating/rating.options.ts +++ b/projects/experimental/components/rating/rating.options.ts @@ -1,6 +1,7 @@ -import {type Provider} from '@angular/core'; -import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Provider} from '@angular/core'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiRatingOptions { readonly icon: PolymorpheusContent>; diff --git a/projects/experimental/components/segmented/segmented.component.ts b/projects/experimental/components/segmented/segmented.component.ts index d7813a395990..e19f0dcf734c 100644 --- a/projects/experimental/components/segmented/segmented.component.ts +++ b/projects/experimental/components/segmented/segmented.component.ts @@ -1,3 +1,4 @@ +import type {OnChanges} from '@angular/core'; import { ChangeDetectionStrategy, Component, @@ -7,13 +8,12 @@ import { inject, Input, NgZone, - type OnChanges, Output, ViewEncapsulation, } from '@angular/core'; import {ResizeObserverService} from '@ng-web-apis/resize-observer'; import {TuiDestroyService, tuiIsHTMLElement, tuiPx, tuiZonefree} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import {tuiBadgeNotificationOptionsProvider} from '@taiga-ui/kit'; import {takeUntil} from 'rxjs'; diff --git a/projects/experimental/components/segmented/segmented.directive.ts b/projects/experimental/components/segmented/segmented.directive.ts index a46954d1ba57..3a035d2f5e80 100644 --- a/projects/experimental/components/segmented/segmented.directive.ts +++ b/projects/experimental/components/segmented/segmented.directive.ts @@ -1,12 +1,10 @@ +import type {AfterContentChecked, AfterContentInit, QueryList} from '@angular/core'; import { - type AfterContentChecked, - type AfterContentInit, ContentChildren, Directive, ElementRef, HostListener, inject, - type QueryList, } from '@angular/core'; import {NgControl} from '@angular/forms'; import {RouterLinkActive} from '@angular/router'; diff --git a/projects/experimental/components/textfield/textfield.component.ts b/projects/experimental/components/textfield/textfield.component.ts index d883858a2bbb..3335e04f6d5b 100644 --- a/projects/experimental/components/textfield/textfield.component.ts +++ b/projects/experimental/components/textfield/textfield.component.ts @@ -9,24 +9,27 @@ import { } from '@angular/core'; import {NgControl} from '@angular/forms'; import {ResizeObserverModule} from '@ng-web-apis/resize-observer'; +import type { + TuiContext, + TuiFocusableElementAccessor, + TuiStringHandler, +} from '@taiga-ui/cdk'; import { tuiAsFocusableItemAccessor, - type TuiContext, - type TuiFocusableElementAccessor, tuiIsNativeFocused, TuiNativeValidatorDirective, - type TuiStringHandler, } from '@taiga-ui/cdk'; +import type {TuiDataListHost} from '@taiga-ui/core'; import { tuiAppearanceOptionsProvider, tuiAsDataListHost, - type TuiDataListHost, TuiDropdownOpenDirective, tuiDropdownOptionsProvider, TuiIconsDirective, } from '@taiga-ui/core'; import {TuiButtonModule} from '@taiga-ui/experimental/components/button'; -import {type PolymorpheusContent, PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; import {EMPTY} from 'rxjs'; import {TuiLabelDirective} from './label.directive'; diff --git a/projects/experimental/components/textfield/textfield.directive.ts b/projects/experimental/components/textfield/textfield.directive.ts index f64c0274489f..37a8638a6719 100644 --- a/projects/experimental/components/textfield/textfield.directive.ts +++ b/projects/experimental/components/textfield/textfield.directive.ts @@ -1,6 +1,8 @@ -import {Directive, type DoCheck, ElementRef, inject, Input} from '@angular/core'; +import type {DoCheck} from '@angular/core'; +import {Directive, ElementRef, inject, Input} from '@angular/core'; import {TuiIdService, TuiNativeValidatorDirective} from '@taiga-ui/cdk'; -import {TuiAppearanceDirective, type TuiInteractiveStateT} from '@taiga-ui/core'; +import type {TuiInteractiveStateT} from '@taiga-ui/core'; +import {TuiAppearanceDirective} from '@taiga-ui/core'; import {TuiTextfieldComponent} from './textfield.component'; import {TUI_TEXTFIELD_OPTIONS} from './textfield.options'; diff --git a/projects/experimental/components/textfield/textfield.options.ts b/projects/experimental/components/textfield/textfield.options.ts index fd5f0b345f75..d265ba24aba1 100644 --- a/projects/experimental/components/textfield/textfield.options.ts +++ b/projects/experimental/components/textfield/textfield.options.ts @@ -1,6 +1,7 @@ -import {Directive, inject, Input, type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {Directive, inject, Input} from '@angular/core'; import {AbstractTuiController, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiAppearanceOptions, type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiAppearanceOptions, TuiSizeL, TuiSizeS} from '@taiga-ui/core'; export interface TuiTextfieldOptions extends TuiAppearanceOptions { readonly size: TuiSizeL | TuiSizeS; diff --git a/projects/experimental/components/thumbnail-card/thumbnail-card.component.ts b/projects/experimental/components/thumbnail-card/thumbnail-card.component.ts index 2b5c658823d1..c7a35573041c 100644 --- a/projects/experimental/components/thumbnail-card/thumbnail-card.component.ts +++ b/projects/experimental/components/thumbnail-card/thumbnail-card.component.ts @@ -5,9 +5,11 @@ import { inject, Input, } from '@angular/core'; -import {TUI_INPUT_CARD_OPTIONS, type TuiPaymentSystem} from '@taiga-ui/addon-commerce'; +import type {TuiPaymentSystem} from '@taiga-ui/addon-commerce'; +import {TUI_INPUT_CARD_OPTIONS} from '@taiga-ui/addon-commerce'; import type {TuiStringHandler} from '@taiga-ui/cdk'; -import {TUI_ICON_RESOLVER, type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TUI_ICON_RESOLVER} from '@taiga-ui/core'; @Component({ selector: 'tui-thumbnail-card', diff --git a/projects/experimental/components/toggle/toggle.component.ts b/projects/experimental/components/toggle/toggle.component.ts index a4212a18e11b..596c2805559a 100644 --- a/projects/experimental/components/toggle/toggle.component.ts +++ b/projects/experimental/components/toggle/toggle.component.ts @@ -1,7 +1,7 @@ +import type {DoCheck} from '@angular/core'; import { ChangeDetectionStrategy, Component, - type DoCheck, ElementRef, HostBinding, inject, @@ -9,7 +9,8 @@ import { } from '@angular/core'; import {NgControl} from '@angular/forms'; import {tuiIsString, TuiNativeValidatorDirective} from '@taiga-ui/cdk'; -import {TUI_ICON_RESOLVER, TuiAppearanceDirective, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeS} from '@taiga-ui/core'; +import {TUI_ICON_RESOLVER, TuiAppearanceDirective} from '@taiga-ui/core'; import {TUI_TOGGLE_OPTIONS} from './toggle.options'; diff --git a/projects/experimental/components/toggle/toggle.options.ts b/projects/experimental/components/toggle/toggle.options.ts index e8055e6fadd7..8cd611a3c9f0 100644 --- a/projects/experimental/components/toggle/toggle.options.ts +++ b/projects/experimental/components/toggle/toggle.options.ts @@ -1,6 +1,7 @@ -import {type Provider} from '@angular/core'; -import {tuiCreateToken, tuiProvideOptions, type TuiStringHandler} from '@taiga-ui/cdk'; -import {type TuiSizeS} from '@taiga-ui/core'; +import type {Provider} from '@angular/core'; +import type {TuiStringHandler} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {TuiSizeS} from '@taiga-ui/core'; export interface TuiToggleOptions { readonly showIcons: boolean; diff --git a/projects/experimental/components/tooltip/tooltip.component.ts b/projects/experimental/components/tooltip/tooltip.component.ts index 766ba87307c2..a210f8b45419 100644 --- a/projects/experimental/components/tooltip/tooltip.component.ts +++ b/projects/experimental/components/tooltip/tooltip.component.ts @@ -7,11 +7,11 @@ import { ViewChild, } from '@angular/core'; import {TUI_PLATFORM, TuiDestroyService, tuiIsString} from '@taiga-ui/cdk'; +import type {TuiBrightness} from '@taiga-ui/core'; import { MODE_PROVIDER, TUI_MODE, TuiAppearanceDirective, - type TuiBrightness, TuiHintHoverDirective, TuiHintOptionsDirective, } from '@taiga-ui/core'; diff --git a/projects/experimental/components/tooltip/tooltip.options.ts b/projects/experimental/components/tooltip/tooltip.options.ts index 35bb584b174d..da76ee587ecc 100644 --- a/projects/experimental/components/tooltip/tooltip.options.ts +++ b/projects/experimental/components/tooltip/tooltip.options.ts @@ -1,5 +1,6 @@ -import {type Provider} from '@angular/core'; -import {tuiCreateToken, type TuiPlatform, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {Provider} from '@angular/core'; +import type {TuiPlatform} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiTooltipOptions { readonly icons: Record | string; diff --git a/projects/experimental/directives/cell/cell.directive.ts b/projects/experimental/directives/cell/cell.directive.ts index 7d0e993b626e..b6e410967a46 100644 --- a/projects/experimental/directives/cell/cell.directive.ts +++ b/projects/experimental/directives/cell/cell.directive.ts @@ -1,6 +1,6 @@ import {Directive, Input} from '@angular/core'; import {tuiWithStyles} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import {tuiButtonOptionsProvider} from '@taiga-ui/experimental/components'; import {tuiAvatarOptionsProvider} from '@taiga-ui/kit'; diff --git a/projects/experimental/directives/header/header.directive.ts b/projects/experimental/directives/header/header.directive.ts index 43fd27c09d09..59fe60d784a6 100644 --- a/projects/experimental/directives/header/header.directive.ts +++ b/projects/experimental/directives/header/header.directive.ts @@ -1,6 +1,6 @@ import {Directive, Input} from '@angular/core'; import {tuiWithStyles} from '@taiga-ui/cdk'; -import {type TuiSizeXXL, type TuiSizeXXS} from '@taiga-ui/core'; +import type {TuiSizeXXL, TuiSizeXXS} from '@taiga-ui/core'; import {tuiButtonOptionsProvider} from '@taiga-ui/experimental/components'; import {tuiAvatarOptionsProvider, tuiBadgeOptionsProvider} from '@taiga-ui/kit'; diff --git a/projects/experimental/directives/title/title.directive.ts b/projects/experimental/directives/title/title.directive.ts index 2a58d5bebffa..3f33d58c6a78 100644 --- a/projects/experimental/directives/title/title.directive.ts +++ b/projects/experimental/directives/title/title.directive.ts @@ -1,6 +1,6 @@ import {Directive, Input} from '@angular/core'; import {tuiWithStyles} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import {TuiTitleComponent} from './title.component'; diff --git a/projects/experimental/pipes/auto-color/auto-color.pipe.ts b/projects/experimental/pipes/auto-color/auto-color.pipe.ts index 3fd92b64e720..ac3f33f27d6d 100644 --- a/projects/experimental/pipes/auto-color/auto-color.pipe.ts +++ b/projects/experimental/pipes/auto-color/auto-color.pipe.ts @@ -1,4 +1,5 @@ -import {Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; import {tuiStringHashToHsl} from '@taiga-ui/kit'; @Pipe({ diff --git a/projects/experimental/pipes/fallback-src/fallback-src.pipe.ts b/projects/experimental/pipes/fallback-src/fallback-src.pipe.ts index 971c50d288df..6c856f249e8a 100644 --- a/projects/experimental/pipes/fallback-src/fallback-src.pipe.ts +++ b/projects/experimental/pipes/fallback-src/fallback-src.pipe.ts @@ -1,6 +1,8 @@ -import {ElementRef, inject, Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {ElementRef, inject, Pipe} from '@angular/core'; import {TUI_ICON_ERROR} from '@taiga-ui/core'; -import {fromEvent, map, merge, type Observable, startWith} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {fromEvent, map, merge, startWith} from 'rxjs'; @Pipe({ name: 'tuiFallbackSrc', diff --git a/projects/experimental/pipes/initials/initials.pipe.ts b/projects/experimental/pipes/initials/initials.pipe.ts index c7420a8febec..d4f2d86b2844 100644 --- a/projects/experimental/pipes/initials/initials.pipe.ts +++ b/projects/experimental/pipes/initials/initials.pipe.ts @@ -1,4 +1,5 @@ -import {Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; @Pipe({ name: 'tuiInitials', diff --git a/projects/i18n/interfaces/language.ts b/projects/i18n/interfaces/language.ts index 98b22049dea4..a9f47845d69d 100644 --- a/projects/i18n/interfaces/language.ts +++ b/projects/i18n/interfaces/language.ts @@ -1,6 +1,6 @@ -import {type TuiCountryIsoCode} from '@taiga-ui/i18n/enums'; +import type {TuiCountryIsoCode} from '@taiga-ui/i18n/enums'; -import {type TuiLanguageName} from './language-names'; +import type {TuiLanguageName} from './language-names'; // prettier-ignore type MONTHS_ARRAY = [string, string, string, string, string, string, string, string, string, string, string, string]; diff --git a/projects/i18n/languages/belarusian/addon-commerce.ts b/projects/i18n/languages/belarusian/addon-commerce.ts index 69bbe0851771..905cb4c5ea66 100644 --- a/projects/i18n/languages/belarusian/addon-commerce.ts +++ b/projects/i18n/languages/belarusian/addon-commerce.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_BELARUSIAN_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Нумар', 'Нумар карты'], diff --git a/projects/i18n/languages/belarusian/addon-editor.ts b/projects/i18n/languages/belarusian/addon-editor.ts index ce596d244525..9b6b0c6180aa 100644 --- a/projects/i18n/languages/belarusian/addon-editor.ts +++ b/projects/i18n/languages/belarusian/addon-editor.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_BELARUSIAN_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Колер', 'Градыент'], diff --git a/projects/i18n/languages/belarusian/addon-preview.ts b/projects/i18n/languages/belarusian/addon-preview.ts index 81bb3ee8ec2b..9220a79b27d0 100644 --- a/projects/i18n/languages/belarusian/addon-preview.ts +++ b/projects/i18n/languages/belarusian/addon-preview.ts @@ -1,4 +1,4 @@ -import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_BELARUSIAN_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/belarusian/addon-table.ts b/projects/i18n/languages/belarusian/addon-table.ts index 7762b585b100..35278696f295 100644 --- a/projects/i18n/languages/belarusian/addon-table.ts +++ b/projects/i18n/languages/belarusian/addon-table.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_BELARUSIAN_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Паказаць/Схаваць', diff --git a/projects/i18n/languages/belarusian/belarusian.ts b/projects/i18n/languages/belarusian/belarusian.ts index e6885dd58ab3..595f9a769804 100644 --- a/projects/i18n/languages/belarusian/belarusian.ts +++ b/projects/i18n/languages/belarusian/belarusian.ts @@ -1,4 +1,4 @@ -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_BELARUSIAN_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_BELARUSIAN_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/belarusian/core.ts b/projects/i18n/languages/belarusian/core.ts index 3ea7135b3f68..80086baeb8e9 100644 --- a/projects/i18n/languages/belarusian/core.ts +++ b/projects/i18n/languages/belarusian/core.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_BELARUSIAN_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/belarusian/kit.ts b/projects/i18n/languages/belarusian/kit.ts index defc28f91878..dceee5118673 100644 --- a/projects/i18n/languages/belarusian/kit.ts +++ b/projects/i18n/languages/belarusian/kit.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_BELARUSIAN_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Скасаваць', diff --git a/projects/i18n/languages/chinese/addon-commerce.ts b/projects/i18n/languages/chinese/addon-commerce.ts index 96eb39c5fc60..c17e7950ee05 100644 --- a/projects/i18n/languages/chinese/addon-commerce.ts +++ b/projects/i18n/languages/chinese/addon-commerce.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_CHINESE_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['号码', '信用卡号码'], diff --git a/projects/i18n/languages/chinese/addon-editor.ts b/projects/i18n/languages/chinese/addon-editor.ts index f1679ea6fb90..ac918965ab45 100644 --- a/projects/i18n/languages/chinese/addon-editor.ts +++ b/projects/i18n/languages/chinese/addon-editor.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_CHINESE_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['纯色', '渐变色'], diff --git a/projects/i18n/languages/chinese/addon-preview.ts b/projects/i18n/languages/chinese/addon-preview.ts index 06a4cfe4b7fa..78ba0136b4a0 100644 --- a/projects/i18n/languages/chinese/addon-preview.ts +++ b/projects/i18n/languages/chinese/addon-preview.ts @@ -1,4 +1,4 @@ -import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_CHINESE_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/chinese/addon-table.ts b/projects/i18n/languages/chinese/addon-table.ts index c75c456d0150..27566026e449 100644 --- a/projects/i18n/languages/chinese/addon-table.ts +++ b/projects/i18n/languages/chinese/addon-table.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_CHINESE_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: '显示/隐藏', diff --git a/projects/i18n/languages/chinese/chinese.ts b/projects/i18n/languages/chinese/chinese.ts index 9b80be1ad204..623ce599f645 100644 --- a/projects/i18n/languages/chinese/chinese.ts +++ b/projects/i18n/languages/chinese/chinese.ts @@ -1,4 +1,4 @@ -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_CHINESE_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_CHINESE_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/chinese/core.ts b/projects/i18n/languages/chinese/core.ts index ec9e958b9ed6..4657acc2cb13 100644 --- a/projects/i18n/languages/chinese/core.ts +++ b/projects/i18n/languages/chinese/core.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_CHINESE_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/chinese/kit.ts b/projects/i18n/languages/chinese/kit.ts index dd80f161f164..5a75b0cce29f 100644 --- a/projects/i18n/languages/chinese/kit.ts +++ b/projects/i18n/languages/chinese/kit.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_CHINESE_LANGUAGE_KIT: TuiLanguageKit = { cancel: '撤消', diff --git a/projects/i18n/languages/dutch/addon-commerce.ts b/projects/i18n/languages/dutch/addon-commerce.ts index ad7a4219d0bd..a2c1a1b5207d 100644 --- a/projects/i18n/languages/dutch/addon-commerce.ts +++ b/projects/i18n/languages/dutch/addon-commerce.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_DUTCH_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Nummer', 'Kaartnummer'], diff --git a/projects/i18n/languages/dutch/addon-editor.ts b/projects/i18n/languages/dutch/addon-editor.ts index c8668de403f4..17e894756da1 100644 --- a/projects/i18n/languages/dutch/addon-editor.ts +++ b/projects/i18n/languages/dutch/addon-editor.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_DUTCH_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Effen kleur', 'Kleurverloop'], diff --git a/projects/i18n/languages/dutch/addon-preview.ts b/projects/i18n/languages/dutch/addon-preview.ts index d70b29735e79..517c962b8c0d 100644 --- a/projects/i18n/languages/dutch/addon-preview.ts +++ b/projects/i18n/languages/dutch/addon-preview.ts @@ -1,4 +1,4 @@ -import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_DUTCH_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/dutch/addon-table.ts b/projects/i18n/languages/dutch/addon-table.ts index 137571644b49..2abf9061af79 100644 --- a/projects/i18n/languages/dutch/addon-table.ts +++ b/projects/i18n/languages/dutch/addon-table.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_DUTCH_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Toon/Verberg', diff --git a/projects/i18n/languages/dutch/core.ts b/projects/i18n/languages/dutch/core.ts index 8dedc1853f0f..26e5c486aa84 100644 --- a/projects/i18n/languages/dutch/core.ts +++ b/projects/i18n/languages/dutch/core.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_DUTCH_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/dutch/dutch.ts b/projects/i18n/languages/dutch/dutch.ts index 788747d3f2cd..d0dfde28e904 100644 --- a/projects/i18n/languages/dutch/dutch.ts +++ b/projects/i18n/languages/dutch/dutch.ts @@ -1,4 +1,4 @@ -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_DUTCH_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_DUTCH_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/dutch/kit.ts b/projects/i18n/languages/dutch/kit.ts index 80ec09d9efbf..d26c86544f30 100644 --- a/projects/i18n/languages/dutch/kit.ts +++ b/projects/i18n/languages/dutch/kit.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_DUTCH_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Annuleren', diff --git a/projects/i18n/languages/english/addon-commerce.ts b/projects/i18n/languages/english/addon-commerce.ts index ee44732bb671..f24dbeef72b3 100644 --- a/projects/i18n/languages/english/addon-commerce.ts +++ b/projects/i18n/languages/english/addon-commerce.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_ENGLISH_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Number', 'Card number'], diff --git a/projects/i18n/languages/english/addon-editor.ts b/projects/i18n/languages/english/addon-editor.ts index 2feed16cefac..10bc3ab18d70 100644 --- a/projects/i18n/languages/english/addon-editor.ts +++ b/projects/i18n/languages/english/addon-editor.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_ENGLISH_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Solid color', 'Gradient'], diff --git a/projects/i18n/languages/english/addon-preview.ts b/projects/i18n/languages/english/addon-preview.ts index d761be41bb16..0f23b18917f6 100644 --- a/projects/i18n/languages/english/addon-preview.ts +++ b/projects/i18n/languages/english/addon-preview.ts @@ -1,4 +1,4 @@ -import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_ENGLISH_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/english/addon-table.ts b/projects/i18n/languages/english/addon-table.ts index 7dca9e4b18fd..136a352df93f 100644 --- a/projects/i18n/languages/english/addon-table.ts +++ b/projects/i18n/languages/english/addon-table.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_ENGLISH_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Show/Hide', diff --git a/projects/i18n/languages/english/core.ts b/projects/i18n/languages/english/core.ts index 9dc329893728..906c40d58783 100644 --- a/projects/i18n/languages/english/core.ts +++ b/projects/i18n/languages/english/core.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_ENGLISH_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/english/english.ts b/projects/i18n/languages/english/english.ts index 88acb1e717d9..3e4ce9f67278 100644 --- a/projects/i18n/languages/english/english.ts +++ b/projects/i18n/languages/english/english.ts @@ -1,4 +1,4 @@ -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_ENGLISH_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_ENGLISH_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/english/kit.ts b/projects/i18n/languages/english/kit.ts index 5601e365ed63..41a076a31c8a 100644 --- a/projects/i18n/languages/english/kit.ts +++ b/projects/i18n/languages/english/kit.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_ENGLISH_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Cancel', diff --git a/projects/i18n/languages/french/addon-commerce.ts b/projects/i18n/languages/french/addon-commerce.ts index 2bed9a9c70ee..617730161cd6 100644 --- a/projects/i18n/languages/french/addon-commerce.ts +++ b/projects/i18n/languages/french/addon-commerce.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_FRENCH_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Number', 'Numéro de carte'], diff --git a/projects/i18n/languages/french/addon-editor.ts b/projects/i18n/languages/french/addon-editor.ts index 0508d864eeb9..e5e2a3bd09d6 100644 --- a/projects/i18n/languages/french/addon-editor.ts +++ b/projects/i18n/languages/french/addon-editor.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_FRENCH_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Couleur unie', 'Dégradé de couleur'], diff --git a/projects/i18n/languages/french/addon-preview.ts b/projects/i18n/languages/french/addon-preview.ts index be23558c5557..e1eba789a4d0 100644 --- a/projects/i18n/languages/french/addon-preview.ts +++ b/projects/i18n/languages/french/addon-preview.ts @@ -1,4 +1,4 @@ -import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_FRENCH_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/french/addon-table.ts b/projects/i18n/languages/french/addon-table.ts index 18375aa97bf8..603b64789a46 100644 --- a/projects/i18n/languages/french/addon-table.ts +++ b/projects/i18n/languages/french/addon-table.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_FRENCH_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Afficher/Cacher', diff --git a/projects/i18n/languages/french/core.ts b/projects/i18n/languages/french/core.ts index f5accc1e3615..667e36a8c4be 100644 --- a/projects/i18n/languages/french/core.ts +++ b/projects/i18n/languages/french/core.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_FRENCH_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/french/french.ts b/projects/i18n/languages/french/french.ts index c6545862d4f3..f9df75bdb04d 100644 --- a/projects/i18n/languages/french/french.ts +++ b/projects/i18n/languages/french/french.ts @@ -1,4 +1,4 @@ -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_FRENCH_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_FRENCH_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/french/kit.ts b/projects/i18n/languages/french/kit.ts index 279082d8153f..826ce4ea8910 100644 --- a/projects/i18n/languages/french/kit.ts +++ b/projects/i18n/languages/french/kit.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_FRENCH_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Annuler', diff --git a/projects/i18n/languages/german/addon-commerce.ts b/projects/i18n/languages/german/addon-commerce.ts index da12dc296bd4..aec7576110d3 100644 --- a/projects/i18n/languages/german/addon-commerce.ts +++ b/projects/i18n/languages/german/addon-commerce.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_GERMAN_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Nummer', 'Kartennummer'], diff --git a/projects/i18n/languages/german/addon-editor.ts b/projects/i18n/languages/german/addon-editor.ts index d179f740db7b..67c2b6872ea3 100644 --- a/projects/i18n/languages/german/addon-editor.ts +++ b/projects/i18n/languages/german/addon-editor.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_GERMAN_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Farbe', 'Verlauf'], diff --git a/projects/i18n/languages/german/addon-preview.ts b/projects/i18n/languages/german/addon-preview.ts index c8779d945250..e36aa2e860f9 100644 --- a/projects/i18n/languages/german/addon-preview.ts +++ b/projects/i18n/languages/german/addon-preview.ts @@ -1,4 +1,4 @@ -import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_GERMAN_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/german/addon-table.ts b/projects/i18n/languages/german/addon-table.ts index 7a99eeee450f..d51903a087bb 100644 --- a/projects/i18n/languages/german/addon-table.ts +++ b/projects/i18n/languages/german/addon-table.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_GERMAN_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Anzeigen/Ausblenden', diff --git a/projects/i18n/languages/german/core.ts b/projects/i18n/languages/german/core.ts index 7bc09f01287e..ac923f3e0a2d 100644 --- a/projects/i18n/languages/german/core.ts +++ b/projects/i18n/languages/german/core.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_ENGLISH_LANGUAGE_COUNTRIES} from '@taiga-ui/i18n/languages/english'; export const TUI_GERMAN_LANGUAGE_CORE: TuiLanguageCore = { diff --git a/projects/i18n/languages/german/german.ts b/projects/i18n/languages/german/german.ts index 981cbd21c0d6..cd30b7b6ae25 100644 --- a/projects/i18n/languages/german/german.ts +++ b/projects/i18n/languages/german/german.ts @@ -1,4 +1,4 @@ -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_GERMAN_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_GERMAN_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/german/kit.ts b/projects/i18n/languages/german/kit.ts index 8c48efaa5cda..0eefceade97e 100644 --- a/projects/i18n/languages/german/kit.ts +++ b/projects/i18n/languages/german/kit.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_GERMAN_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Abbrechen', diff --git a/projects/i18n/languages/italian/addon-commerce.ts b/projects/i18n/languages/italian/addon-commerce.ts index 79657d275633..1aa82e576858 100644 --- a/projects/i18n/languages/italian/addon-commerce.ts +++ b/projects/i18n/languages/italian/addon-commerce.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_ITALIAN_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Numero', 'Numero carta'], diff --git a/projects/i18n/languages/italian/addon-editor.ts b/projects/i18n/languages/italian/addon-editor.ts index 6213ad337010..f00d5a7bc6fa 100644 --- a/projects/i18n/languages/italian/addon-editor.ts +++ b/projects/i18n/languages/italian/addon-editor.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_ITALIAN_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Tinta unita', 'Gradiente'], diff --git a/projects/i18n/languages/italian/addon-preview.ts b/projects/i18n/languages/italian/addon-preview.ts index 0423054409ba..c57543362aea 100644 --- a/projects/i18n/languages/italian/addon-preview.ts +++ b/projects/i18n/languages/italian/addon-preview.ts @@ -1,4 +1,4 @@ -import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_ITALIAN_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/italian/addon-table.ts b/projects/i18n/languages/italian/addon-table.ts index 4f2cebbff1ba..4ce805c1641c 100644 --- a/projects/i18n/languages/italian/addon-table.ts +++ b/projects/i18n/languages/italian/addon-table.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_ITALIAN_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Mostra/Nascondi', diff --git a/projects/i18n/languages/italian/core.ts b/projects/i18n/languages/italian/core.ts index 50432f90264a..f333b0b5e505 100644 --- a/projects/i18n/languages/italian/core.ts +++ b/projects/i18n/languages/italian/core.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_ITALIAN_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/italian/italian.ts b/projects/i18n/languages/italian/italian.ts index e53296707f50..342e2f4bdd27 100644 --- a/projects/i18n/languages/italian/italian.ts +++ b/projects/i18n/languages/italian/italian.ts @@ -1,4 +1,4 @@ -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_ITALIAN_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_ITALIAN_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/italian/kit.ts b/projects/i18n/languages/italian/kit.ts index 832e4d67b99b..dd14701c781f 100644 --- a/projects/i18n/languages/italian/kit.ts +++ b/projects/i18n/languages/italian/kit.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_ITALIAN_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Annulla', diff --git a/projects/i18n/languages/kazakh/addon-commerce.ts b/projects/i18n/languages/kazakh/addon-commerce.ts index 9653ed8c0fcf..c7ce99013372 100644 --- a/projects/i18n/languages/kazakh/addon-commerce.ts +++ b/projects/i18n/languages/kazakh/addon-commerce.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_KAZAKH_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Сан', 'Карточка нөмірі'], diff --git a/projects/i18n/languages/kazakh/addon-editor.ts b/projects/i18n/languages/kazakh/addon-editor.ts index 992b88d99e8b..09380d4f7342 100644 --- a/projects/i18n/languages/kazakh/addon-editor.ts +++ b/projects/i18n/languages/kazakh/addon-editor.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_KAZAKH_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Бірыңғай түс', 'Градиент'], diff --git a/projects/i18n/languages/kazakh/addon-preview.ts b/projects/i18n/languages/kazakh/addon-preview.ts index 1c8e82f1d7f4..8c5bda84ad6f 100644 --- a/projects/i18n/languages/kazakh/addon-preview.ts +++ b/projects/i18n/languages/kazakh/addon-preview.ts @@ -1,4 +1,4 @@ -import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_KAZAKH_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/kazakh/addon-table.ts b/projects/i18n/languages/kazakh/addon-table.ts index 044e2a0ad5c6..2e9f843a6bbe 100644 --- a/projects/i18n/languages/kazakh/addon-table.ts +++ b/projects/i18n/languages/kazakh/addon-table.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_KAZAKH_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Көрсету/Жасыру', diff --git a/projects/i18n/languages/kazakh/core.ts b/projects/i18n/languages/kazakh/core.ts index 8b9e458cb8f0..8da20ddb1e87 100644 --- a/projects/i18n/languages/kazakh/core.ts +++ b/projects/i18n/languages/kazakh/core.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_KAZAKH_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/kazakh/kazakh.ts b/projects/i18n/languages/kazakh/kazakh.ts index 3b66733ac0ff..171d660b39cf 100644 --- a/projects/i18n/languages/kazakh/kazakh.ts +++ b/projects/i18n/languages/kazakh/kazakh.ts @@ -1,4 +1,4 @@ -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_KAZAKH_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_KAZAKH_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/kazakh/kit.ts b/projects/i18n/languages/kazakh/kit.ts index 4def1b336e1b..7f2f9698b18c 100644 --- a/projects/i18n/languages/kazakh/kit.ts +++ b/projects/i18n/languages/kazakh/kit.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_KAZAKH_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Болдырмау', diff --git a/projects/i18n/languages/malay/addon-commerce.ts b/projects/i18n/languages/malay/addon-commerce.ts index 3afbd505ecdc..d4129498c4c3 100644 --- a/projects/i18n/languages/malay/addon-commerce.ts +++ b/projects/i18n/languages/malay/addon-commerce.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_MALAY_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Nombor', 'Nombor kad'], diff --git a/projects/i18n/languages/malay/addon-editor.ts b/projects/i18n/languages/malay/addon-editor.ts index 2c94185fe495..1af5d4aba8a7 100644 --- a/projects/i18n/languages/malay/addon-editor.ts +++ b/projects/i18n/languages/malay/addon-editor.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_MALAY_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Warna padu', 'Kecerunan'], diff --git a/projects/i18n/languages/malay/addon-preview.ts b/projects/i18n/languages/malay/addon-preview.ts index 6e413162d1b6..3090343d515b 100644 --- a/projects/i18n/languages/malay/addon-preview.ts +++ b/projects/i18n/languages/malay/addon-preview.ts @@ -1,4 +1,4 @@ -import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_MALAY_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/malay/addon-table.ts b/projects/i18n/languages/malay/addon-table.ts index 021e2713294c..ba9f124e6343 100644 --- a/projects/i18n/languages/malay/addon-table.ts +++ b/projects/i18n/languages/malay/addon-table.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_MALAY_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Tunjuk/Sembunyi', diff --git a/projects/i18n/languages/malay/core.ts b/projects/i18n/languages/malay/core.ts index 06bcf1ba1ba0..7405f08e651a 100644 --- a/projects/i18n/languages/malay/core.ts +++ b/projects/i18n/languages/malay/core.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_MALAY_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/malay/kit.ts b/projects/i18n/languages/malay/kit.ts index aec247d9efdc..3c3568578df6 100644 --- a/projects/i18n/languages/malay/kit.ts +++ b/projects/i18n/languages/malay/kit.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_MALAY_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Batal', diff --git a/projects/i18n/languages/malay/malay.ts b/projects/i18n/languages/malay/malay.ts index 4b1f6db80234..20b4d70897fe 100644 --- a/projects/i18n/languages/malay/malay.ts +++ b/projects/i18n/languages/malay/malay.ts @@ -1,4 +1,4 @@ -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_MALAY_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_MALAY_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/polish/addon-commerce.ts b/projects/i18n/languages/polish/addon-commerce.ts index a09dd394051c..66d4238b2434 100644 --- a/projects/i18n/languages/polish/addon-commerce.ts +++ b/projects/i18n/languages/polish/addon-commerce.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_POLISH_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Numer', 'Numer karty'], diff --git a/projects/i18n/languages/polish/addon-editor.ts b/projects/i18n/languages/polish/addon-editor.ts index 7baff6c99020..beaa3ee46ed0 100644 --- a/projects/i18n/languages/polish/addon-editor.ts +++ b/projects/i18n/languages/polish/addon-editor.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_POLISH_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Kolor', 'Gradient'], diff --git a/projects/i18n/languages/polish/addon-preview.ts b/projects/i18n/languages/polish/addon-preview.ts index 4ebd29779e68..a0904c75f847 100644 --- a/projects/i18n/languages/polish/addon-preview.ts +++ b/projects/i18n/languages/polish/addon-preview.ts @@ -1,4 +1,4 @@ -import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_POLISH_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/polish/addon-table.ts b/projects/i18n/languages/polish/addon-table.ts index 40e318e5fe32..b529eb832c7e 100644 --- a/projects/i18n/languages/polish/addon-table.ts +++ b/projects/i18n/languages/polish/addon-table.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_POLISH_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Pokaż/Ukryj', diff --git a/projects/i18n/languages/polish/core.ts b/projects/i18n/languages/polish/core.ts index d6feeaf66c36..f8282d2059bb 100644 --- a/projects/i18n/languages/polish/core.ts +++ b/projects/i18n/languages/polish/core.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_POLISH_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/polish/kit.ts b/projects/i18n/languages/polish/kit.ts index 9fe85199f948..f6d3d0109973 100644 --- a/projects/i18n/languages/polish/kit.ts +++ b/projects/i18n/languages/polish/kit.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_POLISH_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Anuluj', diff --git a/projects/i18n/languages/polish/polish.ts b/projects/i18n/languages/polish/polish.ts index 88314e9ee148..c6e2ca1f628b 100644 --- a/projects/i18n/languages/polish/polish.ts +++ b/projects/i18n/languages/polish/polish.ts @@ -1,4 +1,4 @@ -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_POLISH_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_POLISH_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/portuguese/addon-commerce.ts b/projects/i18n/languages/portuguese/addon-commerce.ts index 120de4773d4f..95c71df79e36 100644 --- a/projects/i18n/languages/portuguese/addon-commerce.ts +++ b/projects/i18n/languages/portuguese/addon-commerce.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_PORTUGUESE_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Número', 'Número do Cartão'], diff --git a/projects/i18n/languages/portuguese/addon-editor.ts b/projects/i18n/languages/portuguese/addon-editor.ts index b87176d0112a..9986c588a930 100644 --- a/projects/i18n/languages/portuguese/addon-editor.ts +++ b/projects/i18n/languages/portuguese/addon-editor.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_PORTUGUESE_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Cor sólida', 'Gradiente'], diff --git a/projects/i18n/languages/portuguese/addon-preview.ts b/projects/i18n/languages/portuguese/addon-preview.ts index ad84a8a38826..205cfa137fdb 100644 --- a/projects/i18n/languages/portuguese/addon-preview.ts +++ b/projects/i18n/languages/portuguese/addon-preview.ts @@ -1,4 +1,4 @@ -import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_PORTUGUESE_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/portuguese/addon-table.ts b/projects/i18n/languages/portuguese/addon-table.ts index 96854a53fb8b..7092df958692 100644 --- a/projects/i18n/languages/portuguese/addon-table.ts +++ b/projects/i18n/languages/portuguese/addon-table.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_PORTUGUESE_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Mostrar/Esconder', diff --git a/projects/i18n/languages/portuguese/core.ts b/projects/i18n/languages/portuguese/core.ts index 9c08271cecb4..d0ad704aa2d0 100644 --- a/projects/i18n/languages/portuguese/core.ts +++ b/projects/i18n/languages/portuguese/core.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_PORTUGUESE_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/portuguese/kit.ts b/projects/i18n/languages/portuguese/kit.ts index c1b94c0f0073..2db53e843e36 100644 --- a/projects/i18n/languages/portuguese/kit.ts +++ b/projects/i18n/languages/portuguese/kit.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_PORTUGUESE_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Cancelar', diff --git a/projects/i18n/languages/portuguese/portuguese.ts b/projects/i18n/languages/portuguese/portuguese.ts index c385b4db6865..81208bf00f74 100644 --- a/projects/i18n/languages/portuguese/portuguese.ts +++ b/projects/i18n/languages/portuguese/portuguese.ts @@ -1,4 +1,4 @@ -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_PORTUGUESE_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_PORTUGUESE_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/russian/addon-commerce.ts b/projects/i18n/languages/russian/addon-commerce.ts index ac6db300e19f..3589082fbca6 100644 --- a/projects/i18n/languages/russian/addon-commerce.ts +++ b/projects/i18n/languages/russian/addon-commerce.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_RUSSIAN_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Номер', 'Номер карты'], diff --git a/projects/i18n/languages/russian/addon-editor.ts b/projects/i18n/languages/russian/addon-editor.ts index 9dc2ed6c1520..2064a5577de1 100644 --- a/projects/i18n/languages/russian/addon-editor.ts +++ b/projects/i18n/languages/russian/addon-editor.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_RUSSIAN_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Сплошной цвет', 'Градиент'], diff --git a/projects/i18n/languages/russian/addon-preview.ts b/projects/i18n/languages/russian/addon-preview.ts index 59f1c1a04995..7afe2cb48913 100644 --- a/projects/i18n/languages/russian/addon-preview.ts +++ b/projects/i18n/languages/russian/addon-preview.ts @@ -1,4 +1,4 @@ -import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_RUSSIAN_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/russian/addon-table.ts b/projects/i18n/languages/russian/addon-table.ts index 48ef84f86e9d..40db79d38ad3 100644 --- a/projects/i18n/languages/russian/addon-table.ts +++ b/projects/i18n/languages/russian/addon-table.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_RUSSIAN_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Показать/Скрыть', diff --git a/projects/i18n/languages/russian/core.ts b/projects/i18n/languages/russian/core.ts index e81b2d3acc9b..3fe4686d9441 100644 --- a/projects/i18n/languages/russian/core.ts +++ b/projects/i18n/languages/russian/core.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_RUSSIAN_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/russian/kit.ts b/projects/i18n/languages/russian/kit.ts index 02c864832a95..927d0c01e60d 100644 --- a/projects/i18n/languages/russian/kit.ts +++ b/projects/i18n/languages/russian/kit.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_RUSSIAN_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Отменить', diff --git a/projects/i18n/languages/russian/russian.ts b/projects/i18n/languages/russian/russian.ts index 1f2be5ed46d1..fd6a494a1e36 100644 --- a/projects/i18n/languages/russian/russian.ts +++ b/projects/i18n/languages/russian/russian.ts @@ -1,4 +1,4 @@ -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_RUSSIAN_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_RUSSIAN_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/spanish/addon-commerce.ts b/projects/i18n/languages/spanish/addon-commerce.ts index 4cb4db4c726f..4f5eafb8dd46 100644 --- a/projects/i18n/languages/spanish/addon-commerce.ts +++ b/projects/i18n/languages/spanish/addon-commerce.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_SPANISH_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Número', 'Número de la tarjeta'], diff --git a/projects/i18n/languages/spanish/addon-editor.ts b/projects/i18n/languages/spanish/addon-editor.ts index 30724a6e0cee..9d90747a90c7 100644 --- a/projects/i18n/languages/spanish/addon-editor.ts +++ b/projects/i18n/languages/spanish/addon-editor.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_SPANISH_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Color sólido', 'Gradiente'], diff --git a/projects/i18n/languages/spanish/addon-preview.ts b/projects/i18n/languages/spanish/addon-preview.ts index 49c6712b3a4a..e3c68ccb9235 100644 --- a/projects/i18n/languages/spanish/addon-preview.ts +++ b/projects/i18n/languages/spanish/addon-preview.ts @@ -1,4 +1,4 @@ -import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_SPANISH_LANGUAGE_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/spanish/addon-table.ts b/projects/i18n/languages/spanish/addon-table.ts index d060fe47bd2b..7424ac40954d 100644 --- a/projects/i18n/languages/spanish/addon-table.ts +++ b/projects/i18n/languages/spanish/addon-table.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_SPANISH_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Mostrar/Ocultar', diff --git a/projects/i18n/languages/spanish/core.ts b/projects/i18n/languages/spanish/core.ts index 288875843b1c..6d2e3c754846 100644 --- a/projects/i18n/languages/spanish/core.ts +++ b/projects/i18n/languages/spanish/core.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_SPANISH_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/spanish/kit.ts b/projects/i18n/languages/spanish/kit.ts index 0ba8076bdb0f..f2336e283e33 100644 --- a/projects/i18n/languages/spanish/kit.ts +++ b/projects/i18n/languages/spanish/kit.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_SPANISH_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Cancelar', diff --git a/projects/i18n/languages/spanish/spanish.ts b/projects/i18n/languages/spanish/spanish.ts index 560ae7a58e9e..51d4cde4ef0f 100644 --- a/projects/i18n/languages/spanish/spanish.ts +++ b/projects/i18n/languages/spanish/spanish.ts @@ -1,4 +1,4 @@ -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_SPANISH_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_SPANISH_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/turkish/addon-commerce.ts b/projects/i18n/languages/turkish/addon-commerce.ts index d464ec2273c1..56a61ba1243e 100644 --- a/projects/i18n/languages/turkish/addon-commerce.ts +++ b/projects/i18n/languages/turkish/addon-commerce.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_TURKISH_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Kart No', 'Kart Numarası'], diff --git a/projects/i18n/languages/turkish/addon-editor.ts b/projects/i18n/languages/turkish/addon-editor.ts index c1b075e03eda..5ed587b863e5 100644 --- a/projects/i18n/languages/turkish/addon-editor.ts +++ b/projects/i18n/languages/turkish/addon-editor.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_TURKISH_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Solid color', 'Gradient'], diff --git a/projects/i18n/languages/turkish/addon-preview.ts b/projects/i18n/languages/turkish/addon-preview.ts index bf7bb4b960c7..a3ad64989781 100644 --- a/projects/i18n/languages/turkish/addon-preview.ts +++ b/projects/i18n/languages/turkish/addon-preview.ts @@ -1,4 +1,4 @@ -import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_TURKISH_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/turkish/addon-table.ts b/projects/i18n/languages/turkish/addon-table.ts index 798d9875dfb2..8319f8804d01 100644 --- a/projects/i18n/languages/turkish/addon-table.ts +++ b/projects/i18n/languages/turkish/addon-table.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_TURKISH_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Göster/Hizle', diff --git a/projects/i18n/languages/turkish/core.ts b/projects/i18n/languages/turkish/core.ts index 35e3a1502918..fbff66a6d8d3 100644 --- a/projects/i18n/languages/turkish/core.ts +++ b/projects/i18n/languages/turkish/core.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_ENGLISH_LANGUAGE_COUNTRIES} from '@taiga-ui/i18n/languages/english'; export const TUI_TURKISH_LANGUAGE_CORE: TuiLanguageCore = { diff --git a/projects/i18n/languages/turkish/kit.ts b/projects/i18n/languages/turkish/kit.ts index dc3b8e36901f..622fa7a38299 100644 --- a/projects/i18n/languages/turkish/kit.ts +++ b/projects/i18n/languages/turkish/kit.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_TURKISH_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'İptal Et', diff --git a/projects/i18n/languages/turkish/turkish.ts b/projects/i18n/languages/turkish/turkish.ts index 928e81252041..b21c2f15b023 100644 --- a/projects/i18n/languages/turkish/turkish.ts +++ b/projects/i18n/languages/turkish/turkish.ts @@ -1,4 +1,4 @@ -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_TURKISH_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_TURKISH_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/ukrainian/addon-commerce.ts b/projects/i18n/languages/ukrainian/addon-commerce.ts index 0eb7d7633f2b..ec07bdd2fbd4 100644 --- a/projects/i18n/languages/ukrainian/addon-commerce.ts +++ b/projects/i18n/languages/ukrainian/addon-commerce.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_UKRAINIAN_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Номер', 'Номер карти'], diff --git a/projects/i18n/languages/ukrainian/addon-editor.ts b/projects/i18n/languages/ukrainian/addon-editor.ts index 6ab11096f011..e7548a8b0fcc 100644 --- a/projects/i18n/languages/ukrainian/addon-editor.ts +++ b/projects/i18n/languages/ukrainian/addon-editor.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_UKRAINIAN_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Суцільний колір', 'Градієнт'], diff --git a/projects/i18n/languages/ukrainian/addon-preview.ts b/projects/i18n/languages/ukrainian/addon-preview.ts index 20c75f45aec4..ec9d5dae4eab 100644 --- a/projects/i18n/languages/ukrainian/addon-preview.ts +++ b/projects/i18n/languages/ukrainian/addon-preview.ts @@ -1,4 +1,4 @@ -import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_UKRAINIAN_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/ukrainian/addon-table.ts b/projects/i18n/languages/ukrainian/addon-table.ts index 9816fd71912a..2e408ffc9291 100644 --- a/projects/i18n/languages/ukrainian/addon-table.ts +++ b/projects/i18n/languages/ukrainian/addon-table.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_UKRAINIAN_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Показати/Приховати', diff --git a/projects/i18n/languages/ukrainian/core.ts b/projects/i18n/languages/ukrainian/core.ts index 976e22a8ee4c..5cd6d29939fe 100644 --- a/projects/i18n/languages/ukrainian/core.ts +++ b/projects/i18n/languages/ukrainian/core.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_ENGLISH_LANGUAGE_COUNTRIES} from '@taiga-ui/i18n/languages/english'; export const TUI_UKRAINIAN_LANGUAGE_CORE: TuiLanguageCore = { diff --git a/projects/i18n/languages/ukrainian/kit.ts b/projects/i18n/languages/ukrainian/kit.ts index 718de3c6ad52..a1c03dfc3f5c 100644 --- a/projects/i18n/languages/ukrainian/kit.ts +++ b/projects/i18n/languages/ukrainian/kit.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_UKRAINIAN_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Скасувати', diff --git a/projects/i18n/languages/ukrainian/ukrainian.ts b/projects/i18n/languages/ukrainian/ukrainian.ts index 3a4b905970f2..5f986bcf3584 100644 --- a/projects/i18n/languages/ukrainian/ukrainian.ts +++ b/projects/i18n/languages/ukrainian/ukrainian.ts @@ -1,4 +1,4 @@ -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_UKRAINIAN_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_UKRAINIAN_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/languages/vietnamese/addon-commerce.ts b/projects/i18n/languages/vietnamese/addon-commerce.ts index 6be606a094a2..599888d057d3 100644 --- a/projects/i18n/languages/vietnamese/addon-commerce.ts +++ b/projects/i18n/languages/vietnamese/addon-commerce.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCommerce} from '@taiga-ui/i18n/interfaces'; export const TUI_VIETNAMESE_LANGUAGE_ADDON_COMMERCE: TuiLanguageCommerce = { cardNumber: ['Số thẻ', 'Số thẻ'], diff --git a/projects/i18n/languages/vietnamese/addon-editor.ts b/projects/i18n/languages/vietnamese/addon-editor.ts index 1558cac57828..757a4e6f36f6 100644 --- a/projects/i18n/languages/vietnamese/addon-editor.ts +++ b/projects/i18n/languages/vietnamese/addon-editor.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageEditor} from '@taiga-ui/i18n/interfaces'; export const TUI_VIETNAMESE_LANGUAGE_ADDON_EDITOR: TuiLanguageEditor = { colorSelectorModeNames: ['Màu thuần', 'Màu chuyển sắc'], diff --git a/projects/i18n/languages/vietnamese/addon-preview.ts b/projects/i18n/languages/vietnamese/addon-preview.ts index 0d06e2b12972..46079525090a 100644 --- a/projects/i18n/languages/vietnamese/addon-preview.ts +++ b/projects/i18n/languages/vietnamese/addon-preview.ts @@ -1,4 +1,4 @@ -import {type TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguagePreview} from '@taiga-ui/i18n/interfaces'; export const TUI_VIETNAMESE_LANGUAGE_ADDON_PREVIEW: TuiLanguagePreview = { previewTexts: { diff --git a/projects/i18n/languages/vietnamese/addon-table.ts b/projects/i18n/languages/vietnamese/addon-table.ts index bdee11184b9c..95169dba1f2f 100644 --- a/projects/i18n/languages/vietnamese/addon-table.ts +++ b/projects/i18n/languages/vietnamese/addon-table.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageTable} from '@taiga-ui/i18n/interfaces'; export const TUI_VIETNAMESE_LANGUAGE_ADDON_TABLE: TuiLanguageTable = { showHideText: 'Hiện/Ẩn', diff --git a/projects/i18n/languages/vietnamese/core.ts b/projects/i18n/languages/vietnamese/core.ts index d3ee34f37852..ba917622c024 100644 --- a/projects/i18n/languages/vietnamese/core.ts +++ b/projects/i18n/languages/vietnamese/core.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageCore} from '@taiga-ui/i18n/interfaces'; import {TUI_VIETNAMESE_LANGUAGE_COUNTRIES} from './countries'; diff --git a/projects/i18n/languages/vietnamese/kit.ts b/projects/i18n/languages/vietnamese/kit.ts index a758890e4523..a535cdfdb192 100644 --- a/projects/i18n/languages/vietnamese/kit.ts +++ b/projects/i18n/languages/vietnamese/kit.ts @@ -1,4 +1,4 @@ -import {type TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageKit} from '@taiga-ui/i18n/interfaces'; export const TUI_VIETNAMESE_LANGUAGE_KIT: TuiLanguageKit = { cancel: 'Hủy bỏ', diff --git a/projects/i18n/languages/vietnamese/vietnamese.ts b/projects/i18n/languages/vietnamese/vietnamese.ts index 64825a109c1c..1ec80a61a730 100644 --- a/projects/i18n/languages/vietnamese/vietnamese.ts +++ b/projects/i18n/languages/vietnamese/vietnamese.ts @@ -1,4 +1,4 @@ -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_VIETNAMESE_LANGUAGE_ADDON_COMMERCE} from './addon-commerce'; import {TUI_VIETNAMESE_LANGUAGE_ADDON_EDITOR} from './addon-editor'; diff --git a/projects/i18n/switch/language-switcher.providers.ts b/projects/i18n/switch/language-switcher.providers.ts index d73ddc834c77..e49fbc5dad18 100644 --- a/projects/i18n/switch/language-switcher.providers.ts +++ b/projects/i18n/switch/language-switcher.providers.ts @@ -1,5 +1,5 @@ import type {Provider} from '@angular/core'; -import {type TuiLanguageLoader} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguageLoader} from '@taiga-ui/i18n/interfaces'; import {TUI_LANGUAGE, TUI_LANGUAGE_LOADER} from '@taiga-ui/i18n/tokens'; import {TuiLanguageSwitcher} from './language-switcher.service'; diff --git a/projects/i18n/switch/language-switcher.service.ts b/projects/i18n/switch/language-switcher.service.ts index feddac70c931..4eb48cf3ce44 100644 --- a/projects/i18n/switch/language-switcher.service.ts +++ b/projects/i18n/switch/language-switcher.service.ts @@ -1,12 +1,13 @@ import {inject, Injectable} from '@angular/core'; import {LOCAL_STORAGE} from '@ng-web-apis/common'; -import {type TuiLanguage, type TuiLanguageName} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage, TuiLanguageName} from '@taiga-ui/i18n/interfaces'; import { TUI_DEFAULT_LANGUAGE, TUI_LANGUAGE_LOADER, TUI_LANGUAGE_STORAGE_KEY, } from '@taiga-ui/i18n/tokens'; -import {BehaviorSubject, type Observable, of} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {BehaviorSubject, of} from 'rxjs'; import {tuiAsyncLoadLanguage} from './utils'; diff --git a/projects/i18n/switch/utils.ts b/projects/i18n/switch/utils.ts index 429aeef4c512..0c099908e80d 100644 --- a/projects/i18n/switch/utils.ts +++ b/projects/i18n/switch/utils.ts @@ -3,7 +3,8 @@ import type { TuiLanguageLoader, TuiLanguageName, } from '@taiga-ui/i18n/interfaces'; -import {from, map, type Observable, of} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {from, map, of} from 'rxjs'; // CommonJS `module.exports` is wrapped as `default` in ESModule. async function normalizeCommonJSImport(importPromise: Promise): Promise { diff --git a/projects/i18n/tokens/language.ts b/projects/i18n/tokens/language.ts index 2fb540e28d0e..9cb9c4e0aa11 100644 --- a/projects/i18n/tokens/language.ts +++ b/projects/i18n/tokens/language.ts @@ -1,7 +1,8 @@ import {inject, InjectionToken} from '@angular/core'; -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_ENGLISH_LANGUAGE} from '@taiga-ui/i18n/languages/english'; -import {type Observable, of} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {of} from 'rxjs'; /** * Default Language for Taiga UI libraries i18n diff --git a/projects/i18n/tools/extract-i18n.ts b/projects/i18n/tools/extract-i18n.ts index 3411ab3c0c41..32e39e8c10b3 100644 --- a/projects/i18n/tools/extract-i18n.ts +++ b/projects/i18n/tools/extract-i18n.ts @@ -1,7 +1,8 @@ import {inject} from '@angular/core'; -import {type TuiLanguage} from '@taiga-ui/i18n/interfaces'; +import type {TuiLanguage} from '@taiga-ui/i18n/interfaces'; import {TUI_LANGUAGE} from '@taiga-ui/i18n/tokens'; -import {isObservable, map, type Observable, of, switchMap} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {isObservable, map, of, switchMap} from 'rxjs'; export function tuiExtractI18n( key: K, diff --git a/projects/icons/scripts/convert-all-compile-file-to-all-file.ts b/projects/icons/scripts/convert-all-compile-file-to-all-file.ts index ce008dc8da91..f15a6d489e6e 100644 --- a/projects/icons/scripts/convert-all-compile-file-to-all-file.ts +++ b/projects/icons/scripts/convert-all-compile-file-to-all-file.ts @@ -1,5 +1,7 @@ -import {rollup, type RollupOptions} from 'rollup'; -import typescript, {type RPT2Options} from 'rollup-plugin-typescript2'; +import type {RollupOptions} from 'rollup'; +import {rollup} from 'rollup'; +import type {RPT2Options} from 'rollup-plugin-typescript2'; +import typescript from 'rollup-plugin-typescript2'; import {tuiRollupSvgo} from './rollup-svgo'; diff --git a/projects/icons/scripts/post-prettier-format.ts b/projects/icons/scripts/post-prettier-format.ts index 07d7c9d5928a..75522441c88e 100644 --- a/projects/icons/scripts/post-prettier-format.ts +++ b/projects/icons/scripts/post-prettier-format.ts @@ -1,5 +1,6 @@ import {readFileSync, writeFileSync} from 'fs'; -import prettier, {type Options as PrettierOptions} from 'prettier'; +import type {Options as PrettierOptions} from 'prettier'; +import prettier from 'prettier'; interface Options { config: PrettierOptions; diff --git a/projects/icons/scripts/rollup-svgo.ts b/projects/icons/scripts/rollup-svgo.ts index 0d70e0333bbf..b6ada1b738db 100644 --- a/projects/icons/scripts/rollup-svgo.ts +++ b/projects/icons/scripts/rollup-svgo.ts @@ -1,6 +1,7 @@ import {createFilter} from '@rollup/pluginutils'; -import {type Plugin, type TransformResult} from 'rollup'; -import {type Config, optimize} from 'svgo'; +import type {Plugin, TransformResult} from 'rollup'; +import type {Config} from 'svgo'; +import {optimize} from 'svgo'; export interface TuiRollupSvgoConfig { readonly exclude?: string; diff --git a/projects/kit/abstract/abstract-native-select.ts b/projects/kit/abstract/abstract-native-select.ts index 13ec62fee5f8..23e812f9ec62 100644 --- a/projects/kit/abstract/abstract-native-select.ts +++ b/projects/kit/abstract/abstract-native-select.ts @@ -7,12 +7,10 @@ import { TemplateRef, ViewChild, } from '@angular/core'; -import {AbstractTuiControl, type TuiBooleanHandler, TuiIdService} from '@taiga-ui/cdk'; -import { - TUI_TEXTFIELD_HOST, - TuiDataListDirective, - type TuiTextfieldHost, -} from '@taiga-ui/core'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; +import {AbstractTuiControl, TuiIdService} from '@taiga-ui/cdk'; +import type {TuiTextfieldHost} from '@taiga-ui/core'; +import {TUI_TEXTFIELD_HOST, TuiDataListDirective} from '@taiga-ui/core'; import {TUI_ITEMS_HANDLERS} from '@taiga-ui/kit/tokens'; @Directive() diff --git a/projects/kit/classes/day-range-period.ts b/projects/kit/classes/day-range-period.ts index 850c2cc1c16b..447ebca6f7be 100644 --- a/projects/kit/classes/day-range-period.ts +++ b/projects/kit/classes/day-range-period.ts @@ -1,5 +1,5 @@ -import {type TuiContext, type TuiDayRange} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiContext, TuiDayRange} from '@taiga-ui/cdk'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export class TuiDayRangePeriod { constructor( diff --git a/projects/kit/classes/named-day.ts b/projects/kit/classes/named-day.ts index 960153f072dc..cca762ae46c5 100644 --- a/projects/kit/classes/named-day.ts +++ b/projects/kit/classes/named-day.ts @@ -1,4 +1,4 @@ -import {type TuiDay} from '@taiga-ui/cdk'; +import type {TuiDay} from '@taiga-ui/cdk'; export class TuiNamedDay { constructor( diff --git a/projects/kit/classes/stringifiable-item.ts b/projects/kit/classes/stringifiable-item.ts index abb3e46f64e3..4c8c5e8c68ea 100644 --- a/projects/kit/classes/stringifiable-item.ts +++ b/projects/kit/classes/stringifiable-item.ts @@ -1,4 +1,4 @@ -import {type TuiStringHandler} from '@taiga-ui/cdk'; +import type {TuiStringHandler} from '@taiga-ui/cdk'; /** * Wrapper around an item to add `toString()` method diff --git a/projects/kit/components/accordion/accordion-item/accordion-item.component.ts b/projects/kit/components/accordion/accordion-item/accordion-item.component.ts index 6b56c8551f07..74463fd4897a 100644 --- a/projects/kit/components/accordion/accordion-item/accordion-item.component.ts +++ b/projects/kit/components/accordion/accordion-item/accordion-item.component.ts @@ -1,9 +1,9 @@ +import type {ElementRef} from '@angular/core'; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, - type ElementRef, EventEmitter, HostBinding, inject, @@ -11,14 +11,14 @@ import { Output, ViewChild, } from '@angular/core'; +import type {TuiFocusableElementAccessor, TuiNativeFocusableElement} from '@taiga-ui/cdk'; import { AbstractTuiInteractive, tuiAsFocusableItemAccessor, - type TuiFocusableElementAccessor, tuiIsNativeFocused, - type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; -import {MODE_PROVIDER, TUI_MODE, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeS} from '@taiga-ui/core'; +import {MODE_PROVIDER, TUI_MODE} from '@taiga-ui/core'; import {TUI_ARROW_OPTIONS} from '@taiga-ui/kit/components/arrow'; import {TuiAccordionItemContentDirective} from './accordion-item-content.directive'; diff --git a/projects/kit/components/accordion/accordion.component.ts b/projects/kit/components/accordion/accordion.component.ts index 5c76031d7e6c..31b5b77c003c 100644 --- a/projects/kit/components/accordion/accordion.component.ts +++ b/projects/kit/components/accordion/accordion.component.ts @@ -1,11 +1,10 @@ +import type {AfterContentInit, QueryList} from '@angular/core'; import { - type AfterContentInit, ChangeDetectionStrategy, Component, ContentChildren, inject, Input, - type QueryList, } from '@angular/core'; import { EMPTY_QUERY, diff --git a/projects/kit/components/accordion/test/accordion.component.spec.ts b/projects/kit/components/accordion/test/accordion.component.spec.ts index 15abebe08f29..032663b406cb 100644 --- a/projects/kit/components/accordion/test/accordion.component.spec.ts +++ b/projects/kit/components/accordion/test/accordion.component.spec.ts @@ -1,7 +1,10 @@ -import {type HarnessLoader, parallel} from '@angular/cdk/testing'; +import type {HarnessLoader} from '@angular/cdk/testing'; +import {parallel} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; -import {Component, type QueryList, ViewChild, ViewChildren} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {QueryList} from '@angular/core'; +import {Component, ViewChild, ViewChildren} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiDataListModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; diff --git a/projects/kit/components/action/action.component.ts b/projects/kit/components/action/action.component.ts index b5f8437eac54..a1f15beaf3a7 100644 --- a/projects/kit/components/action/action.component.ts +++ b/projects/kit/components/action/action.component.ts @@ -7,13 +7,13 @@ import { inject, Input, } from '@angular/core'; +import type {TuiNativeFocusableElement} from '@taiga-ui/cdk'; import { AbstractTuiInteractive, tuiAsFocusableItemAccessor, TuiDestroyService, TuiFocusVisibleService, tuiIsNativeFocused, - type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; @Component({ diff --git a/projects/kit/components/action/test/action.component.spec.ts b/projects/kit/components/action/test/action.component.spec.ts index ac90f99277e6..94884a7b30fe 100644 --- a/projects/kit/components/action/test/action.component.spec.ts +++ b/projects/kit/components/action/test/action.component.spec.ts @@ -1,7 +1,8 @@ -import {type HarnessLoader} from '@angular/cdk/testing'; +import type {HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component, ElementRef, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {TuiActionHarness} from '@taiga-ui/testing'; import {TuiActionComponent} from '../action.component'; diff --git a/projects/kit/components/arrow/arrow.component.ts b/projects/kit/components/arrow/arrow.component.ts index 46afe6ad4d63..f42e534b1415 100644 --- a/projects/kit/components/arrow/arrow.component.ts +++ b/projects/kit/components/arrow/arrow.component.ts @@ -5,7 +5,8 @@ import { TuiHostedDropdownComponent, tuiSizeBigger, } from '@taiga-ui/core'; -import {PolymorpheusComponent, type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; import {TUI_ARROW_OPTIONS} from './arrow.options'; diff --git a/projects/kit/components/arrow/arrow.options.ts b/projects/kit/components/arrow/arrow.options.ts index fd93f07c6846..6d00dcefbac3 100644 --- a/projects/kit/components/arrow/arrow.options.ts +++ b/projects/kit/components/arrow/arrow.options.ts @@ -1,6 +1,6 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiArrowOptions { readonly iconLarge: PolymorpheusContent; diff --git a/projects/kit/components/arrow/arrow.providers.ts b/projects/kit/components/arrow/arrow.providers.ts index 7a31b43f655e..bc7642fe9285 100644 --- a/projects/kit/components/arrow/arrow.providers.ts +++ b/projects/kit/components/arrow/arrow.providers.ts @@ -1,7 +1,8 @@ -import {type Provider} from '@angular/core'; -import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeM, type TuiSizeS} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Provider} from '@angular/core'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeM, TuiSizeS} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TUI_ARROW} from './arrow.component'; diff --git a/projects/kit/components/avatar-stack/avatar-stack.component.ts b/projects/kit/components/avatar-stack/avatar-stack.component.ts index dbf160f40d7a..24306e2dbe5f 100644 --- a/projects/kit/components/avatar-stack/avatar-stack.component.ts +++ b/projects/kit/components/avatar-stack/avatar-stack.component.ts @@ -5,7 +5,7 @@ import { Input, ViewEncapsulation, } from '@angular/core'; -import {type TuiHorizontalDirection} from '@taiga-ui/core'; +import type {TuiHorizontalDirection} from '@taiga-ui/core'; @Component({ standalone: true, diff --git a/projects/kit/components/avatar/avatar.component.ts b/projects/kit/components/avatar/avatar.component.ts index 415216892f9f..3085fa33dcaf 100644 --- a/projects/kit/components/avatar/avatar.component.ts +++ b/projects/kit/components/avatar/avatar.component.ts @@ -1,6 +1,6 @@ import {NgSwitch, NgSwitchCase, NgSwitchDefault} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core'; -import {type SafeResourceUrl} from '@angular/platform-browser'; +import type {SafeResourceUrl} from '@angular/platform-browser'; import {tuiIsString} from '@taiga-ui/cdk'; import { TUI_ICON_RESOLVER, diff --git a/projects/kit/components/avatar/avatar.options.ts b/projects/kit/components/avatar/avatar.options.ts index f2f057245aeb..044028f0bb01 100644 --- a/projects/kit/components/avatar/avatar.options.ts +++ b/projects/kit/components/avatar/avatar.options.ts @@ -1,6 +1,6 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiAppearanceOptions, type TuiSizeXS, type TuiSizeXXL} from '@taiga-ui/core'; +import type {TuiAppearanceOptions, TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core'; export interface TuiAvatarOptions extends TuiAppearanceOptions { readonly appearance: string; diff --git a/projects/kit/components/badge-notification/badge-notification.component.ts b/projects/kit/components/badge-notification/badge-notification.component.ts index e07e03ffb3c2..289ac1228bcb 100644 --- a/projects/kit/components/badge-notification/badge-notification.component.ts +++ b/projects/kit/components/badge-notification/badge-notification.component.ts @@ -1,11 +1,6 @@ import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core'; -import { - TUI_ANIMATIONS_SPEED, - tuiPop, - type TuiSizeL, - type TuiSizeXS, - tuiToAnimationOptions, -} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeXS} from '@taiga-ui/core'; +import {TUI_ANIMATIONS_SPEED, tuiPop, tuiToAnimationOptions} from '@taiga-ui/core'; import {TUI_BADGE_NOTIFICATION_OPTIONS} from './badge-notification.options'; diff --git a/projects/kit/components/badge-notification/badge-notification.options.ts b/projects/kit/components/badge-notification/badge-notification.options.ts index 74fa4b79de53..a582b6fd0ed5 100644 --- a/projects/kit/components/badge-notification/badge-notification.options.ts +++ b/projects/kit/components/badge-notification/badge-notification.options.ts @@ -1,6 +1,6 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeXS} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeXS} from '@taiga-ui/core'; export interface TuiBadgeNotificationOptions { readonly size: TuiSizeL | TuiSizeXS; diff --git a/projects/kit/components/badge/badge.options.ts b/projects/kit/components/badge/badge.options.ts index d8b79e195276..c10a6cc25501 100644 --- a/projects/kit/components/badge/badge.options.ts +++ b/projects/kit/components/badge/badge.options.ts @@ -1,6 +1,6 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiAppearanceOptions, type TuiSizeS, type TuiSizeXL} from '@taiga-ui/core'; +import type {TuiAppearanceOptions, TuiSizeS, TuiSizeXL} from '@taiga-ui/core'; export interface TuiBadgeOptions extends TuiAppearanceOptions { readonly size: TuiSizeS | TuiSizeXL; diff --git a/projects/kit/components/block/block.directive.ts b/projects/kit/components/block/block.directive.ts index ed49ba159a1f..94a5d1e66cb8 100644 --- a/projects/kit/components/block/block.directive.ts +++ b/projects/kit/components/block/block.directive.ts @@ -1,12 +1,8 @@ import {ContentChild, Directive, inject, Input} from '@angular/core'; import {NgControl} from '@angular/forms'; import {TuiNativeValidatorDirective, tuiWithStyles} from '@taiga-ui/cdk'; -import { - TuiAppearanceDirective, - tuiAppearanceOptionsProvider, - type TuiSizeL, - type TuiSizeXS, -} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeXS} from '@taiga-ui/core'; +import {TuiAppearanceDirective, tuiAppearanceOptionsProvider} from '@taiga-ui/core'; import {tuiAvatarOptionsProvider} from '@taiga-ui/kit/components/avatar'; import {TuiBlockComponent} from './block.component'; diff --git a/projects/kit/components/block/block.options.ts b/projects/kit/components/block/block.options.ts index 4d59bd0fdefb..94a071574faa 100644 --- a/projects/kit/components/block/block.options.ts +++ b/projects/kit/components/block/block.options.ts @@ -1,6 +1,6 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiAppearanceOptions, type TuiSizeL, type TuiSizeXS} from '@taiga-ui/core'; +import type {TuiAppearanceOptions, TuiSizeL, TuiSizeXS} from '@taiga-ui/core'; export interface TuiBlockOptions extends TuiAppearanceOptions { readonly size: TuiSizeL | TuiSizeXS; diff --git a/projects/kit/components/breadcrumbs/breadcrumbs.component.ts b/projects/kit/components/breadcrumbs/breadcrumbs.component.ts index b523d17ec692..61e5ec520e3f 100644 --- a/projects/kit/components/breadcrumbs/breadcrumbs.component.ts +++ b/projects/kit/components/breadcrumbs/breadcrumbs.component.ts @@ -1,3 +1,4 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, @@ -6,7 +7,6 @@ import { HostBinding, inject, Input, - type QueryList, TemplateRef, } from '@angular/core'; import {EMPTY_QUERY, TuiItemDirective} from '@taiga-ui/cdk'; diff --git a/projects/kit/components/breadcrumbs/breadcrumbs.options.ts b/projects/kit/components/breadcrumbs/breadcrumbs.options.ts index d369a3407047..b5e19753da05 100644 --- a/projects/kit/components/breadcrumbs/breadcrumbs.options.ts +++ b/projects/kit/components/breadcrumbs/breadcrumbs.options.ts @@ -1,6 +1,6 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiBrightness, type TuiSizeL} from '@taiga-ui/core'; +import type {TuiBrightness, TuiSizeL} from '@taiga-ui/core'; export interface TuiBreadcrumbsOptions { readonly icon: string; diff --git a/projects/kit/components/breadcrumbs/test/breadcrumbs.component.spec.ts b/projects/kit/components/breadcrumbs/test/breadcrumbs.component.spec.ts index bc79b29dbceb..c7d77563157e 100644 --- a/projects/kit/components/breadcrumbs/test/breadcrumbs.component.spec.ts +++ b/projects/kit/components/breadcrumbs/test/breadcrumbs.component.spec.ts @@ -1,8 +1,10 @@ -import {Component, type DebugElement, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; import {RouterTestingModule} from '@angular/router/testing'; -import {type TuiSizeL} from '@taiga-ui/core'; +import type {TuiSizeL} from '@taiga-ui/core'; import {TuiBreadcrumbsComponent, TuiBreadcrumbsModule} from '@taiga-ui/kit'; import {TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/kit/components/calendar-month/calendar-month.component.ts b/projects/kit/components/calendar-month/calendar-month.component.ts index a46f7e4321fd..a8ad6b12e00a 100644 --- a/projects/kit/components/calendar-month/calendar-month.component.ts +++ b/projects/kit/components/calendar-month/calendar-month.component.ts @@ -7,26 +7,22 @@ import { Input, Output, } from '@angular/core'; +import type {TuiBooleanHandler, TuiYear} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - type TuiBooleanHandler, TuiDay, TuiMonth, TuiMonthRange, tuiNullableSame, tuiPure, - type TuiYear, } from '@taiga-ui/cdk'; -import { - TuiInteractiveState, - type TuiRangeState, - type TuiWithOptionalMinMax, -} from '@taiga-ui/core'; -import {type TuiMonthContext} from '@taiga-ui/kit/interfaces'; +import type {TuiRangeState, TuiWithOptionalMinMax} from '@taiga-ui/core'; +import {TuiInteractiveState} from '@taiga-ui/core'; +import type {TuiMonthContext} from '@taiga-ui/kit/interfaces'; import {TUI_CALENDAR_MONTHS} from '@taiga-ui/kit/tokens'; -import {type TuiBooleanHandlerWithContext} from '@taiga-ui/kit/types'; +import type {TuiBooleanHandlerWithContext} from '@taiga-ui/kit/types'; const TODAY = TuiDay.currentLocal(); diff --git a/projects/kit/components/calendar-month/test/calendar-month.component.spec.ts b/projects/kit/components/calendar-month/test/calendar-month.component.spec.ts index 12de30a5cf5e..fa9b04772d99 100644 --- a/projects/kit/components/calendar-month/test/calendar-month.component.spec.ts +++ b/projects/kit/components/calendar-month/test/calendar-month.component.spec.ts @@ -1,5 +1,6 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {TuiDay, TuiMonth, TuiMonthRange, TuiYear} from '@taiga-ui/cdk'; import {TuiInteractiveState} from '@taiga-ui/core'; import {TuiCalendarMonthComponent, TuiCalendarMonthModule} from '@taiga-ui/kit'; diff --git a/projects/kit/components/calendar-range/calendar-range.component.ts b/projects/kit/components/calendar-range/calendar-range.component.ts index b6371e5743e3..dd66ccbaca7d 100644 --- a/projects/kit/components/calendar-range/calendar-range.component.ts +++ b/projects/kit/components/calendar-range/calendar-range.component.ts @@ -8,32 +8,26 @@ import { Input, Output, } from '@angular/core'; +import type {TuiBooleanHandler, TuiDay, TuiDayLike, TuiTypedMapper} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - type TuiBooleanHandler, - type TuiDay, - type TuiDayLike, TuiDayRange, TuiDestroyService, tuiIsString, TuiMonth, tuiNullableSame, tuiPure, - type TuiTypedMapper, tuiWatch, } from '@taiga-ui/cdk'; -import { - TUI_COMMON_ICONS, - TUI_DEFAULT_MARKER_HANDLER, - type TuiMarkerHandler, - type TuiWithOptionalMinMax, -} from '@taiga-ui/core'; -import {type TuiDayRangePeriod} from '@taiga-ui/kit/classes'; +import type {TuiMarkerHandler, TuiWithOptionalMinMax} from '@taiga-ui/core'; +import {TUI_COMMON_ICONS, TUI_DEFAULT_MARKER_HANDLER} from '@taiga-ui/core'; +import type {TuiDayRangePeriod} from '@taiga-ui/kit/classes'; import {MAX_DAY_RANGE_LENGTH_MAPPER} from '@taiga-ui/kit/constants'; import {TUI_CALENDAR_DATE_STREAM, TUI_OTHER_DATE_TEXT} from '@taiga-ui/kit/tokens'; -import {type Observable, takeUntil} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {takeUntil} from 'rxjs'; @Component({ selector: 'tui-calendar-range', diff --git a/projects/kit/components/calendar-range/test/range-calendar.component.spec.ts b/projects/kit/components/calendar-range/test/range-calendar.component.spec.ts index c45669f5d513..d32d30f33e72 100644 --- a/projects/kit/components/calendar-range/test/range-calendar.component.spec.ts +++ b/projects/kit/components/calendar-range/test/range-calendar.component.spec.ts @@ -1,5 +1,7 @@ -import {Component, type DebugElement, Optional, Self, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component, Optional, Self, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, NgControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { @@ -19,7 +21,8 @@ import { TuiDayRangePeriod, } from '@taiga-ui/kit'; import {TuiPageObject} from '@taiga-ui/testing'; -import {type Observable, of} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {of} from 'rxjs'; describe('rangeCalendarComponent', () => { @Component({ diff --git a/projects/kit/components/carousel/carousel.component.ts b/projects/kit/components/carousel/carousel.component.ts index 80965fc4fd26..19452e3c4901 100644 --- a/projects/kit/components/carousel/carousel.component.ts +++ b/projects/kit/components/carousel/carousel.component.ts @@ -1,3 +1,4 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, ChangeDetectorRef, @@ -10,16 +11,15 @@ import { inject, Input, Output, - type QueryList, TemplateRef, } from '@angular/core'; +import type {TuiSwipeDirection} from '@taiga-ui/cdk'; import { EMPTY_QUERY, TUI_IS_MOBILE, tuiClamp, TuiItemDirective, tuiPure, - type TuiSwipeDirection, } from '@taiga-ui/cdk'; @Component({ diff --git a/projects/kit/components/checkbox-labeled/checkbox-labeled.component.ts b/projects/kit/components/checkbox-labeled/checkbox-labeled.component.ts index 542f4bf5403f..6ff42eefee99 100644 --- a/projects/kit/components/checkbox-labeled/checkbox-labeled.component.ts +++ b/projects/kit/components/checkbox-labeled/checkbox-labeled.component.ts @@ -5,20 +5,15 @@ import { Input, ViewChild, } from '@angular/core'; +import type {TuiFocusableElementAccessor, TuiNativeFocusableElement} from '@taiga-ui/cdk'; import { AbstractTuiNullableControl, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiFocusableElementAccessor, tuiIsNativeFocused, - type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; -import { - MODE_PROVIDER, - TUI_CHECKBOX_OPTIONS, - TUI_MODE, - type TuiSizeL, -} from '@taiga-ui/core'; +import type {TuiSizeL} from '@taiga-ui/core'; +import {MODE_PROVIDER, TUI_CHECKBOX_OPTIONS, TUI_MODE} from '@taiga-ui/core'; import {TuiCheckboxComponent} from '@taiga-ui/kit/components/checkbox'; @Component({ diff --git a/projects/kit/components/checkbox/checkbox.component.ts b/projects/kit/components/checkbox/checkbox.component.ts index 7555178d4555..d86f6b4d46cc 100644 --- a/projects/kit/components/checkbox/checkbox.component.ts +++ b/projects/kit/components/checkbox/checkbox.component.ts @@ -1,20 +1,21 @@ +import type {ElementRef} from '@angular/core'; import { ChangeDetectionStrategy, Component, - type ElementRef, HostBinding, inject, Input, ViewChild, } from '@angular/core'; +import type {TuiFocusableElementAccessor} from '@taiga-ui/cdk'; import { AbstractTuiNullableControl, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiFocusableElementAccessor, tuiIsNativeFocused, } from '@taiga-ui/cdk'; -import {TUI_CHECKBOX_OPTIONS, type TuiSizeL} from '@taiga-ui/core'; +import type {TuiSizeL} from '@taiga-ui/core'; +import {TUI_CHECKBOX_OPTIONS} from '@taiga-ui/core'; @Component({ selector: 'tui-checkbox', diff --git a/projects/kit/components/combo-box/combo-box.component.ts b/projects/kit/components/combo-box/combo-box.component.ts index 7a0cf78b7804..c55959ecfbf9 100644 --- a/projects/kit/components/combo-box/combo-box.component.ts +++ b/projects/kit/components/combo-box/combo-box.component.ts @@ -10,38 +10,43 @@ import { TemplateRef, ViewChild, } from '@angular/core'; +import type { + TuiActiveZoneDirective, + TuiContext, + TuiFocusableElementAccessor, + TuiStringMatcher, +} from '@taiga-ui/cdk'; import { AbstractTuiNullableControl, TUI_STRICT_MATCHER, - type TuiActiveZoneDirective, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiContext, - type TuiFocusableElementAccessor, tuiIsNativeFocused, tuiIsPresent, - type TuiStringMatcher, } from '@taiga-ui/cdk'; +import type { + TuiDataListAccessor, + TuiDataListHost, + TuiSizeL, + TuiSizeM, + TuiSizeS, + TuiValueContentContext, +} from '@taiga-ui/core'; import { TUI_DATA_LIST_ACCESSOR, TUI_TEXTFIELD_SIZE, tuiAsDataListHost, tuiAsOptionContent, - type TuiDataListAccessor, TuiDataListDirective, - type TuiDataListHost, TuiHostedDropdownComponent, TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeM, - type TuiSizeS, - type TuiValueContentContext, } from '@taiga-ui/core'; import {TUI_ARROW_MODE} from '@taiga-ui/kit/components/arrow'; import {TUI_SELECT_OPTION} from '@taiga-ui/kit/components/select-option'; import {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers'; -import {TUI_ITEMS_HANDLERS, type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import {TUI_ITEMS_HANDLERS} from '@taiga-ui/kit/tokens'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-combo-box', diff --git a/projects/kit/components/combo-box/combo-box.directive.ts b/projects/kit/components/combo-box/combo-box.directive.ts index dc6b6ca82598..941e7b4297d7 100644 --- a/projects/kit/components/combo-box/combo-box.directive.ts +++ b/projects/kit/components/combo-box/combo-box.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {type TuiComboBoxComponent} from './combo-box.component'; +import type {TuiComboBoxComponent} from './combo-box.component'; @Directive({ selector: 'tui-combo-box', diff --git a/projects/kit/components/combo-box/test/combo-box.component.spec.ts b/projects/kit/components/combo-box/test/combo-box.component.spec.ts index b365f8883b16..20c7fcb59695 100644 --- a/projects/kit/components/combo-box/test/combo-box.component.spec.ts +++ b/projects/kit/components/combo-box/test/combo-box.component.spec.ts @@ -1,20 +1,17 @@ -import {Component, type DebugElement, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {By} from '@angular/platform-browser'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; -import { - TUI_DEFAULT_IDENTITY_MATCHER, - TUI_DEFAULT_STRINGIFY, - type TuiIdentityMatcher, - type TuiStringHandler, -} from '@taiga-ui/cdk'; +import type {TuiIdentityMatcher, TuiStringHandler} from '@taiga-ui/cdk'; +import {TUI_DEFAULT_IDENTITY_MATCHER, TUI_DEFAULT_STRINGIFY} from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import { TuiDataListModule, TuiHintModule, TuiRootModule, - type TuiSizeL, - type TuiSizeS, TuiTextfieldControllerModule, } from '@taiga-ui/core'; import {TuiComboBoxComponent, TuiComboBoxModule} from '@taiga-ui/kit'; diff --git a/projects/kit/components/data-list-wrapper/data-list-wrapper.ts b/projects/kit/components/data-list-wrapper/data-list-wrapper.ts index b943ee5cb703..c04656e34b87 100644 --- a/projects/kit/components/data-list-wrapper/data-list-wrapper.ts +++ b/projects/kit/components/data-list-wrapper/data-list-wrapper.ts @@ -1,22 +1,17 @@ +import type {ElementRef, QueryList} from '@angular/core'; import { Directive, - type ElementRef, EventEmitter, forwardRef, Input, Output, - type QueryList, ViewChildren, } from '@angular/core'; import {EMPTY_QUERY, tuiIsNativeFocused, tuiIsPresent} from '@taiga-ui/cdk'; -import { - TuiOptionComponent, - type TuiSizeL, - type TuiSizeXS, - type TuiValueContentContext, -} from '@taiga-ui/core'; -import {type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiSizeL, TuiSizeXS, TuiValueContentContext} from '@taiga-ui/core'; +import {TuiOptionComponent} from '@taiga-ui/core'; +import type {TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Directive() export abstract class AbstractTuiDataListWrapper { diff --git a/projects/kit/components/files/file/file.component.ts b/projects/kit/components/files/file/file.component.ts index c18f9ce9eca7..df67bcce88ed 100644 --- a/projects/kit/components/files/file/file.component.ts +++ b/projects/kit/components/files/file/file.component.ts @@ -8,23 +8,27 @@ import { Input, Output, } from '@angular/core'; -import {DomSanitizer, type SafeValue} from '@angular/platform-browser'; -import {type TuiContext, tuiIsObserved, tuiPure} from '@taiga-ui/cdk'; +import type {SafeValue} from '@angular/platform-browser'; +import {DomSanitizer} from '@angular/platform-browser'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {tuiIsObserved, tuiPure} from '@taiga-ui/cdk'; +import type {TuiSizeL} from '@taiga-ui/core'; import { TUI_COMMON_ICONS, TuiAppearanceDirective, tuiAppearanceOptionsProvider, TuiButtonModule, TuiLoaderModule, - type TuiSizeL, TuiSvgModule, } from '@taiga-ui/core'; -import {type TuiLanguage} from '@taiga-ui/i18n'; +import type {TuiLanguage} from '@taiga-ui/i18n'; import {TUI_DIGITAL_INFORMATION_UNITS, TUI_FILE_TEXTS} from '@taiga-ui/kit/tokens'; -import {type PolymorpheusContent, PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; -import {map, type Observable, of} from 'rxjs'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; +import {map, of} from 'rxjs'; -import {type TuiFileLike, type TuiFileState} from '../files.types'; +import type {TuiFileLike, TuiFileState} from '../files.types'; import {TUI_FILE_OPTIONS} from './file.options'; @Component({ diff --git a/projects/kit/components/files/file/file.options.ts b/projects/kit/components/files/file/file.options.ts index e3245c9ff50e..9695e02d1f5f 100644 --- a/projects/kit/components/files/file/file.options.ts +++ b/projects/kit/components/files/file/file.options.ts @@ -1,8 +1,9 @@ -import {type TuiContext, tuiCreateToken} from '@taiga-ui/cdk'; -import {type TuiAppearanceOptions, type TuiSizeL} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {tuiCreateToken} from '@taiga-ui/cdk'; +import type {TuiAppearanceOptions, TuiSizeL} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {type TuiFileState} from '../files.types'; +import type {TuiFileState} from '../files.types'; import {tuiFormatSize} from '../files.utils'; export interface TuiFileOptions extends TuiAppearanceOptions { diff --git a/projects/kit/components/files/files.types.ts b/projects/kit/components/files/files.types.ts index 241e115bc505..54eadd37c5ac 100644 --- a/projects/kit/components/files/files.types.ts +++ b/projects/kit/components/files/files.types.ts @@ -1,4 +1,4 @@ -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export type TuiFileState = 'deleted' | 'error' | 'loading' | 'normal'; diff --git a/projects/kit/components/files/files.utils.ts b/projects/kit/components/files/files.utils.ts index 5362e3b5229d..617f1ed7f6bc 100644 --- a/projects/kit/components/files/files.utils.ts +++ b/projects/kit/components/files/files.utils.ts @@ -1,4 +1,4 @@ -import {type AbstractControl} from '@angular/forms'; +import type {AbstractControl} from '@angular/forms'; import {tuiRound} from '@taiga-ui/cdk'; import {TUI_FORMAT_ERROR, TUI_SIZE_ERROR} from './files.validators'; diff --git a/projects/kit/components/files/files.validators.ts b/projects/kit/components/files/files.validators.ts index c9219a3fb876..d783c931454d 100644 --- a/projects/kit/components/files/files.validators.ts +++ b/projects/kit/components/files/files.validators.ts @@ -1,5 +1,5 @@ -import {type ValidatorFn} from '@angular/forms'; -import {type TuiContext} from '@taiga-ui/cdk'; +import type {ValidatorFn} from '@angular/forms'; +import type {TuiContext} from '@taiga-ui/cdk'; export const TUI_SIZE_ERROR = 'tuiSize'; export const TUI_FORMAT_ERROR = 'tuiFormat'; diff --git a/projects/kit/components/files/files/files.component.ts b/projects/kit/components/files/files/files.component.ts index 2e84cd4b618a..5303847023fc 100644 --- a/projects/kit/components/files/files/files.component.ts +++ b/projects/kit/components/files/files/files.component.ts @@ -1,4 +1,5 @@ import {CommonModule} from '@angular/common'; +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, @@ -7,7 +8,6 @@ import { inject, Input, Output, - type QueryList, TemplateRef, ViewEncapsulation, } from '@angular/core'; diff --git a/projects/kit/components/files/input-files/input-files-validator.directive.ts b/projects/kit/components/files/input-files/input-files-validator.directive.ts index 4aa1165abbb7..2a81b170a29e 100644 --- a/projects/kit/components/files/input-files/input-files-validator.directive.ts +++ b/projects/kit/components/files/input-files/input-files-validator.directive.ts @@ -1,11 +1,5 @@ -import { - Directive, - HostBinding, - inject, - Input, - type OnChanges, - type OnInit, -} from '@angular/core'; +import type {OnChanges, OnInit} from '@angular/core'; +import {Directive, HostBinding, inject, Input} from '@angular/core'; import {Validators} from '@angular/forms'; import {TuiValidatorDirective} from '@taiga-ui/cdk'; diff --git a/projects/kit/components/files/input-files/input-files.component.ts b/projects/kit/components/files/input-files/input-files.component.ts index ad52f388d934..be3d615c421b 100644 --- a/projects/kit/components/files/input-files/input-files.component.ts +++ b/projects/kit/components/files/input-files/input-files.component.ts @@ -6,7 +6,7 @@ import { TemplateRef, ViewEncapsulation, } from '@angular/core'; -import {type TuiContext} from '@taiga-ui/cdk'; +import type {TuiContext} from '@taiga-ui/cdk'; import {PolymorpheusComponent, PolymorpheusModule} from '@tinkoff/ng-polymorpheus'; import {TuiInputFilesContent} from './input-files.content'; diff --git a/projects/kit/components/files/input-files/input-files.content.ts b/projects/kit/components/files/input-files/input-files.content.ts index 803c84f337fa..670f2c2da777 100644 --- a/projects/kit/components/files/input-files/input-files.content.ts +++ b/projects/kit/components/files/input-files/input-files.content.ts @@ -1,10 +1,12 @@ import {AsyncPipe} from '@angular/common'; import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; -import {type TuiContext, tuiPure} from '@taiga-ui/cdk'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {tuiPure} from '@taiga-ui/cdk'; import {TuiBreakpointService, TuiLinkModule} from '@taiga-ui/core'; import {TUI_INPUT_FILE_TEXTS} from '@taiga-ui/kit/tokens'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; -import {combineLatest, map, type Observable, of} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {combineLatest, map, of} from 'rxjs'; import {TuiInputFilesComponent} from './input-files.component'; diff --git a/projects/kit/components/files/input-files/input-files.directive.ts b/projects/kit/components/files/input-files/input-files.directive.ts index 42abb425e58a..df4c434f3ee5 100644 --- a/projects/kit/components/files/input-files/input-files.directive.ts +++ b/projects/kit/components/files/input-files/input-files.directive.ts @@ -5,14 +5,11 @@ import { tuiControlValue, tuiIsNativeFocused, } from '@taiga-ui/cdk'; -import { - TuiAppearanceDirective, - type TuiAppearanceOptions, - tuiAppearanceOptionsProvider, -} from '@taiga-ui/core'; +import type {TuiAppearanceOptions} from '@taiga-ui/core'; +import {TuiAppearanceDirective, tuiAppearanceOptionsProvider} from '@taiga-ui/core'; import {filter, map, switchMap, timer} from 'rxjs'; -import {type TuiFileLike} from '../files.types'; +import type {TuiFileLike} from '../files.types'; import {tuiFilesRejected} from '../files.utils'; import {TuiInputFilesComponent} from './input-files.component'; import {TuiInputFilesValidatorDirective} from './input-files-validator.directive'; diff --git a/projects/kit/components/files/input-files/input-files.options.ts b/projects/kit/components/files/input-files/input-files.options.ts index 3439dcb93420..03e0ac12ee76 100644 --- a/projects/kit/components/files/input-files/input-files.options.ts +++ b/projects/kit/components/files/input-files/input-files.options.ts @@ -1,6 +1,6 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiSizeL} from '@taiga-ui/core'; +import type {TuiSizeL} from '@taiga-ui/core'; export interface TuiInputFilesOptions { accept: string; diff --git a/projects/kit/components/files/pipes/file-rejected.pipe.ts b/projects/kit/components/files/pipes/file-rejected.pipe.ts index 181714e5df43..a71ec05b192b 100644 --- a/projects/kit/components/files/pipes/file-rejected.pipe.ts +++ b/projects/kit/components/files/pipes/file-rejected.pipe.ts @@ -1,10 +1,12 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; import {FormControl} from '@angular/forms'; import {TUI_DIGITAL_INFORMATION_UNITS, TUI_INPUT_FILE_TEXTS} from '@taiga-ui/kit/tokens'; -import {combineLatest, map, type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {combineLatest, map} from 'rxjs'; import {TUI_FILE_OPTIONS} from '../file/file.options'; -import {type TuiFileLike} from '../files.types'; +import type {TuiFileLike} from '../files.types'; import { tuiCreateFileFormatValidator, tuiCreateFileSizeValidator, diff --git a/projects/kit/components/filter/filter.component.ts b/projects/kit/components/filter/filter.component.ts index fde4c93b2768..21d0a1790c47 100644 --- a/projects/kit/components/filter/filter.component.ts +++ b/projects/kit/components/filter/filter.component.ts @@ -8,24 +8,21 @@ import { Input, Output, } from '@angular/core'; +import type { + TuiBooleanHandler, + TuiContext, + TuiHandler, + TuiIdentityMatcher, +} from '@taiga-ui/cdk'; import { AbstractTuiMultipleControl, ALWAYS_FALSE_HANDLER, TUI_DEFAULT_IDENTITY_MATCHER, TUI_DEFAULT_STRINGIFY, - type TuiBooleanHandler, - type TuiContext, - type TuiHandler, - type TuiIdentityMatcher, tuiIsNativeFocusedIn, } from '@taiga-ui/cdk'; -import { - type TuiSizeL, - type TuiSizeS, - type TuiSizeXL, - type TuiSizeXS, -} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiSizeL, TuiSizeS, TuiSizeXL, TuiSizeXS} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; const badgeSizeMap: Record = { xs: 's', diff --git a/projects/kit/components/filter/test/filter.component.spec.ts b/projects/kit/components/filter/test/filter.component.spec.ts index 512336f107b3..36014460cabe 100644 --- a/projects/kit/components/filter/test/filter.component.spec.ts +++ b/projects/kit/components/filter/test/filter.component.spec.ts @@ -1,13 +1,11 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; -import { - ALWAYS_FALSE_HANDLER, - type TuiBooleanHandler, - type TuiHandler, -} from '@taiga-ui/cdk'; -import {type TuiSizeS} from '@taiga-ui/core'; +import type {TuiBooleanHandler, TuiHandler} from '@taiga-ui/cdk'; +import {ALWAYS_FALSE_HANDLER} from '@taiga-ui/cdk'; +import type {TuiSizeS} from '@taiga-ui/core'; import {TuiFilterComponent, TuiFilterModule} from '@taiga-ui/kit'; const BADGE_VALUE = 10; diff --git a/projects/kit/components/input-copy/input-copy.component.ts b/projects/kit/components/input-copy/input-copy.component.ts index 2533f696ca28..c681e3c7d467 100644 --- a/projects/kit/components/input-copy/input-copy.component.ts +++ b/projects/kit/components/input-copy/input-copy.component.ts @@ -7,35 +7,23 @@ import { Input, ViewChild, } from '@angular/core'; +import type {TuiFocusableElementAccessor, TuiNativeFocusableElement} from '@taiga-ui/cdk'; import { AbstractTuiControl, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiFocusableElementAccessor, - type TuiNativeFocusableElement, tuiPure, } from '@taiga-ui/cdk'; -import { - TUI_TEXTFIELD_SIZE, - TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeS, -} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent} from '@taiga-ui/core'; import {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers'; import {TUI_COPY_TEXTS} from '@taiga-ui/kit/tokens'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import { - map, - merge, - type Observable, - of, - startWith, - Subject, - switchMap, - timer, -} from 'rxjs'; - -import {TUI_INPUT_COPY_OPTIONS, type TuiInputCopyOptions} from './input-copy.options'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; +import {map, merge, of, startWith, Subject, switchMap, timer} from 'rxjs'; + +import type {TuiInputCopyOptions} from './input-copy.options'; +import {TUI_INPUT_COPY_OPTIONS} from './input-copy.options'; @Component({ selector: 'tui-input-copy', diff --git a/projects/kit/components/input-copy/input-copy.directive.ts b/projects/kit/components/input-copy/input-copy.directive.ts index 1698b5842528..f89133723259 100644 --- a/projects/kit/components/input-copy/input-copy.directive.ts +++ b/projects/kit/components/input-copy/input-copy.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {type TuiInputCopyComponent} from './input-copy.component'; +import type {TuiInputCopyComponent} from './input-copy.component'; @Directive({ selector: 'tui-input-copy', diff --git a/projects/kit/components/input-copy/input-copy.options.ts b/projects/kit/components/input-copy/input-copy.options.ts index ffdfbd4d5ff4..bd19000a2bd5 100644 --- a/projects/kit/components/input-copy/input-copy.options.ts +++ b/projects/kit/components/input-copy/input-copy.options.ts @@ -1,7 +1,8 @@ -import {type Provider} from '@angular/core'; -import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiHintDirection, type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Provider} from '@angular/core'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {TuiHintDirection, TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiInputCopyOptions { readonly icon: PolymorpheusContent>; diff --git a/projects/kit/components/input-copy/test/input-copy.component.spec.ts b/projects/kit/components/input-copy/test/input-copy.component.spec.ts index dd92fcd3b318..4470c3813f3d 100644 --- a/projects/kit/components/input-copy/test/input-copy.component.spec.ts +++ b/projects/kit/components/input-copy/test/input-copy.component.spec.ts @@ -1,8 +1,11 @@ -import {Component, type DebugElement, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; -import {type TuiSizeL, type TuiSizeS, TuiTextfieldControllerModule} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TuiInputCopyComponent, TuiInputCopyModule} from '@taiga-ui/kit'; import {TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/kit/components/input-date-multi/input-date-multi.component.ts b/projects/kit/components/input-date-multi/input-date-multi.component.ts index 5bc6ecd26db6..e68c13aad030 100644 --- a/projects/kit/components/input-date-multi/input-date-multi.component.ts +++ b/projects/kit/components/input-date-multi/input-date-multi.component.ts @@ -8,11 +8,17 @@ import { Input, ViewChild, } from '@angular/core'; -import {type MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {maskitoDateOptionsGenerator} from '@maskito/kit'; +import type { + AbstractTuiValueTransformer, + TuiBooleanHandler, + TuiFocusableElementAccessor, + TuiMapper, + TuiTypedMapper, +} from '@taiga-ui/cdk'; import { AbstractTuiMultipleControl, - type AbstractTuiValueTransformer, ALWAYS_FALSE_HANDLER, changeDateSeparator, TUI_DATE_FORMAT, @@ -20,27 +26,26 @@ import { TUI_IS_MOBILE, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiBooleanHandler, tuiDateClamp, TuiDay, - type TuiFocusableElementAccessor, tuiIsString, - type TuiMapper, TuiMonth, - TuiTypedMapper, } from '@taiga-ui/cdk'; +import type { + TuiMarkerHandler, + TuiSizeL, + TuiSizeS, + TuiWithOptionalMinMax, +} from '@taiga-ui/core'; import { TUI_DEFAULT_MARKER_HANDLER, TUI_TEXTFIELD_SIZE, TuiDialogService, - type TuiMarkerHandler, TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeS, - type TuiWithOptionalMinMax, } from '@taiga-ui/core'; import {TuiStringifiableItem} from '@taiga-ui/kit/classes'; import {TuiInputTagComponent} from '@taiga-ui/kit/components/input-tag'; +import type {TuiInputDateOptions} from '@taiga-ui/kit/tokens'; import { TUI_DATE_TEXTS, TUI_DATE_VALUE_TRANSFORMER, @@ -48,11 +53,11 @@ import { TUI_INPUT_DATE_OPTIONS, TUI_MOBILE_CALENDAR, tuiDateStreamWithTransformer, - type TuiInputDateOptions, } from '@taiga-ui/kit/tokens'; import {tuiImmutableUpdateInputDateMulti} from '@taiga-ui/kit/utils'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; -import {map, type Observable, takeUntil} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map, takeUntil} from 'rxjs'; @Component({ selector: 'tui-input-date[multiple]', diff --git a/projects/kit/components/input-date-range/input-date-range.component.ts b/projects/kit/components/input-date-range/input-date-range.component.ts index 4ed7d35a3fed..3577dbfca8af 100644 --- a/projects/kit/components/input-date-range/input-date-range.component.ts +++ b/projects/kit/components/input-date-range/input-date-range.component.ts @@ -8,8 +8,17 @@ import { Input, ViewChild, } from '@angular/core'; -import {MASKITO_DEFAULT_OPTIONS, type MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS} from '@maskito/core'; import {maskitoDateRangeOptionsGenerator} from '@maskito/kit'; +import type { + TuiBooleanHandler, + TuiDateMode, + TuiDay, + TuiDayLike, + TuiFocusableElementAccessor, + TuiTypedMapper, +} from '@taiga-ui/cdk'; import { AbstractTuiNullableControl, ALWAYS_FALSE_HANDLER, @@ -24,42 +33,39 @@ import { TUI_LAST_DAY, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiBooleanHandler, - type TuiDateMode, - type TuiDay, - type TuiDayLike, TuiDayRange, - type TuiFocusableElementAccessor, tuiIsPresent, TuiMonth, tuiNullableSame, tuiPure, - type TuiTypedMapper, } from '@taiga-ui/cdk'; +import type { + TuiMarkerHandler, + TuiSizeL, + TuiSizeS, + TuiWithOptionalMinMax, +} from '@taiga-ui/core'; import { TUI_DEFAULT_MARKER_HANDLER, TUI_TEXTFIELD_SIZE, TuiDialogService, - type TuiMarkerHandler, TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeS, - type TuiWithOptionalMinMax, } from '@taiga-ui/core'; -import {type TuiDayRangePeriod} from '@taiga-ui/kit/classes'; +import type {TuiDayRangePeriod} from '@taiga-ui/kit/classes'; import { MAX_DAY_RANGE_LENGTH_MAPPER, TUI_DATE_MODE_MASKITO_ADAPTER, } from '@taiga-ui/kit/constants'; +import type {TuiInputDateOptions} from '@taiga-ui/kit/tokens'; import { TUI_DATE_RANGE_VALUE_TRANSFORMER, TUI_DATE_TEXTS, TUI_INPUT_DATE_OPTIONS, TUI_MOBILE_CALENDAR, tuiDateStreamWithTransformer, - type TuiInputDateOptions, } from '@taiga-ui/kit/tokens'; -import {PolymorpheusComponent, type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; import {map, takeUntil} from 'rxjs'; @Component({ diff --git a/projects/kit/components/input-date-range/input-date-range.directive.ts b/projects/kit/components/input-date-range/input-date-range.directive.ts index 56598d071468..da363d763e84 100644 --- a/projects/kit/components/input-date-range/input-date-range.directive.ts +++ b/projects/kit/components/input-date-range/input-date-range.directive.ts @@ -1,7 +1,8 @@ -import {Directive, type DoCheck} from '@angular/core'; +import type {DoCheck} from '@angular/core'; +import {Directive} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {type TuiInputDateRangeComponent} from './input-date-range.component'; +import type {TuiInputDateRangeComponent} from './input-date-range.component'; @Directive({ selector: 'tui-input-date-range', diff --git a/projects/kit/components/input-date-range/test/input-date-range.component.spec.ts b/projects/kit/components/input-date-range/test/input-date-range.component.spec.ts index 1aaaa96975ff..bb2b8d9ad8a1 100644 --- a/projects/kit/components/input-date-range/test/input-date-range.component.spec.ts +++ b/projects/kit/components/input-date-range/test/input-date-range.component.spec.ts @@ -1,11 +1,7 @@ -import { - Component, - type DebugElement, - Optional, - type Type, - ViewChild, -} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement, Type} from '@angular/core'; +import {Component, Optional, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { @@ -18,10 +14,10 @@ import { TuiDayRange, } from '@taiga-ui/cdk'; import {TuiRootModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; +import type {TuiDayRangePeriod} from '@taiga-ui/kit'; import { TUI_DATE_RANGE_VALUE_TRANSFORMER, TUI_DATE_VALUE_TRANSFORMER, - type TuiDayRangePeriod, TuiInputDateRangeComponent, TuiInputDateRangeModule, } from '@taiga-ui/kit'; diff --git a/projects/kit/components/input-date-time/input-date-time.component.ts b/projects/kit/components/input-date-time/input-date-time.component.ts index e5117579d76f..e7d709660451 100644 --- a/projects/kit/components/input-date-time/input-date-time.component.ts +++ b/projects/kit/components/input-date-time/input-date-time.component.ts @@ -7,8 +7,16 @@ import { Input, ViewChild, } from '@angular/core'; -import {type MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {maskitoDateTimeOptionsGenerator} from '@maskito/kit'; +import type { + TuiActiveZoneDirective, + TuiBooleanHandler, + TuiContext, + TuiDateMode, + TuiFocusableElementAccessor, + TuiTimeMode, +} from '@taiga-ui/cdk'; import { AbstractTuiControl, ALWAYS_FALSE_HANDLER, @@ -18,49 +26,32 @@ import { TUI_DATE_SEPARATOR, TUI_IS_IOS, TUI_IS_MOBILE, - type TuiActiveZoneDirective, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiBooleanHandler, tuiClamp, - type TuiContext, tuiDateClamp, - type TuiDateMode, TuiDay, - type TuiFocusableElementAccessor, TuiMonth, tuiNullableSame, tuiPure, TuiTime, - type TuiTimeMode, } from '@taiga-ui/cdk'; -import { - TUI_TEXTFIELD_SIZE, - TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeS, - type TuiWithOptionalMinMax, -} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS, TuiWithOptionalMinMax} from '@taiga-ui/core'; +import {TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent} from '@taiga-ui/core'; import { DATE_TIME_SEPARATOR, TUI_DATE_MODE_MASKITO_ADAPTER, } from '@taiga-ui/kit/constants'; +import type {TuiInputDateOptions} from '@taiga-ui/kit/tokens'; import { TUI_DATE_TEXTS, TUI_DATE_TIME_VALUE_TRANSFORMER, TUI_INPUT_DATE_OPTIONS, TUI_TIME_TEXTS, tuiDateStreamWithTransformer, - type TuiInputDateOptions, } from '@taiga-ui/kit/tokens'; -import { - BehaviorSubject, - combineLatest, - map, - type Observable, - takeUntil, - timer, -} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {BehaviorSubject, combineLatest, map, takeUntil, timer} from 'rxjs'; @Component({ selector: 'tui-input-date-time', diff --git a/projects/kit/components/input-date-time/input-date-time.directive.ts b/projects/kit/components/input-date-time/input-date-time.directive.ts index d5683d5fd6c5..3105316d15c2 100644 --- a/projects/kit/components/input-date-time/input-date-time.directive.ts +++ b/projects/kit/components/input-date-time/input-date-time.directive.ts @@ -1,8 +1,8 @@ import {Directive} from '@angular/core'; -import {type TuiDay, type TuiTime} from '@taiga-ui/cdk'; +import type {TuiDay, TuiTime} from '@taiga-ui/cdk'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {type TuiInputDateTimeComponent} from './input-date-time.component'; +import type {TuiInputDateTimeComponent} from './input-date-time.component'; @Directive({ selector: 'tui-input-date-time', diff --git a/projects/kit/components/input-date-time/test/input-date-time.component.spec.ts b/projects/kit/components/input-date-time/test/input-date-time.component.spec.ts index 60bec377ed8b..96eeb7801af9 100644 --- a/projects/kit/components/input-date-time/test/input-date-time.component.spec.ts +++ b/projects/kit/components/input-date-time/test/input-date-time.component.spec.ts @@ -1,5 +1,7 @@ -import {Component, type DebugElement, type Type, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement, Type} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { diff --git a/projects/kit/components/input-date/input-date.component.ts b/projects/kit/components/input-date/input-date.component.ts index f1456ed5ebd1..3a38a6e881bd 100644 --- a/projects/kit/components/input-date/input-date.component.ts +++ b/projects/kit/components/input-date/input-date.component.ts @@ -8,8 +8,16 @@ import { Input, ViewChild, } from '@angular/core'; -import {MASKITO_DEFAULT_OPTIONS, type MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS} from '@maskito/core'; import {maskitoDateOptionsGenerator} from '@maskito/kit'; +import type { + TuiActiveZoneDirective, + TuiBooleanHandler, + TuiContext, + TuiDateMode, + TuiFocusableElementAccessor, +} from '@taiga-ui/cdk'; import { AbstractTuiNullableControl, ALWAYS_FALSE_HANDLER, @@ -18,41 +26,39 @@ import { TUI_DATE_FORMAT, TUI_DATE_SEPARATOR, TUI_IS_MOBILE, - type TuiActiveZoneDirective, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiBooleanHandler, - type TuiContext, tuiDateClamp, - type TuiDateMode, TuiDay, - type TuiFocusableElementAccessor, TuiMonth, tuiNullableSame, tuiPure, } from '@taiga-ui/cdk'; +import type { + TuiMarkerHandler, + TuiSizeL, + TuiSizeS, + TuiWithOptionalMinMax, +} from '@taiga-ui/core'; import { TUI_DEFAULT_MARKER_HANDLER, TUI_TEXTFIELD_SIZE, TuiDialogService, - type TuiMarkerHandler, TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeS, - type TuiWithOptionalMinMax, } from '@taiga-ui/core'; -import {type TuiNamedDay} from '@taiga-ui/kit/classes'; +import type {TuiNamedDay} from '@taiga-ui/kit/classes'; import {TUI_DATE_MODE_MASKITO_ADAPTER} from '@taiga-ui/kit/constants'; +import type {TuiInputDateOptions} from '@taiga-ui/kit/tokens'; import { TUI_DATE_TEXTS, TUI_DATE_VALUE_TRANSFORMER, TUI_INPUT_DATE_OPTIONS, TUI_MOBILE_CALENDAR, tuiDateStreamWithTransformer, - type TuiInputDateOptions, } from '@taiga-ui/kit/tokens'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; -import {map, type Observable, takeUntil} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map, takeUntil} from 'rxjs'; @Component({ selector: 'tui-input-date', diff --git a/projects/kit/components/input-date/input-date.directive.ts b/projects/kit/components/input-date/input-date.directive.ts index 6daf1eaa3611..3d8e776387c0 100644 --- a/projects/kit/components/input-date/input-date.directive.ts +++ b/projects/kit/components/input-date/input-date.directive.ts @@ -1,8 +1,8 @@ import {Directive} from '@angular/core'; -import {type TuiDay} from '@taiga-ui/cdk'; +import type {TuiDay} from '@taiga-ui/cdk'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {type TuiInputDateComponent} from './input-date.component'; +import type {TuiInputDateComponent} from './input-date.component'; @Directive({ selector: 'tui-input-date', diff --git a/projects/kit/components/input-date/test/input-date.component.spec.ts b/projects/kit/components/input-date/test/input-date.component.spec.ts index f94e2e1ff735..4422696b8192 100644 --- a/projects/kit/components/input-date/test/input-date.component.spec.ts +++ b/projects/kit/components/input-date/test/input-date.component.spec.ts @@ -1,5 +1,7 @@ -import {Component, type DebugElement, type Type, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement, Type} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { @@ -8,13 +10,8 @@ import { TUI_DATE_SEPARATOR, TuiDay, } from '@taiga-ui/cdk'; -import { - TuiHintModule, - TuiRootModule, - type TuiSizeL, - type TuiSizeS, - TuiTextfieldControllerModule, -} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TuiHintModule, TuiRootModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TuiInputDateComponent, TuiInputDateModule} from '@taiga-ui/kit'; import {TUI_DATE_VALUE_TRANSFORMER} from '@taiga-ui/kit/tokens'; import {TuiNativeInputPO, TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/kit/components/input-inline/input-inline.component.ts b/projects/kit/components/input-inline/input-inline.component.ts index a25d1667cef4..769f9e3d9694 100644 --- a/projects/kit/components/input-inline/input-inline.component.ts +++ b/projects/kit/components/input-inline/input-inline.component.ts @@ -1,16 +1,10 @@ -import { - ChangeDetectionStrategy, - Component, - type ElementRef, - Input, - ViewChild, -} from '@angular/core'; +import type {ElementRef} from '@angular/core'; +import {ChangeDetectionStrategy, Component, Input, ViewChild} from '@angular/core'; +import type {TuiFocusableElementAccessor, TuiNativeFocusableElement} from '@taiga-ui/cdk'; import { AbstractTuiControl, tuiAsFocusableItemAccessor, - type TuiFocusableElementAccessor, tuiIsNativeFocused, - type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; import {TUI_VALUE_ACCESSOR_PROVIDER} from '@taiga-ui/kit/providers'; diff --git a/projects/kit/components/input-inline/test/input-inline.component.spec.ts b/projects/kit/components/input-inline/test/input-inline.component.spec.ts index c7dbb4c5cb85..5a57652d9c0e 100644 --- a/projects/kit/components/input-inline/test/input-inline.component.spec.ts +++ b/projects/kit/components/input-inline/test/input-inline.component.spec.ts @@ -1,5 +1,7 @@ -import {Component, type DebugElement, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/kit/components/input-month-range/input-month-range.component.ts b/projects/kit/components/input-month-range/input-month-range.component.ts index b58b2a4b715b..932c15382179 100644 --- a/projects/kit/components/input-month-range/input-month-range.component.ts +++ b/projects/kit/components/input-month-range/input-month-range.component.ts @@ -6,6 +6,7 @@ import { Input, ViewChild, } from '@angular/core'; +import type {TuiFocusableElementAccessor, TuiMonth, TuiYear} from '@taiga-ui/cdk'; import { AbstractTuiNullableControl, ALWAYS_FALSE_HANDLER, @@ -14,27 +15,19 @@ import { tuiAsFocusableItemAccessor, tuiDateClamp, TuiDay, - type TuiFocusableElementAccessor, - type TuiMonth, TuiMonthRange, - type TuiYear, } from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS, TuiWithOptionalMinMax} from '@taiga-ui/core'; import { TUI_TEXTFIELD_SIZE, TuiMonthPipe, TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeS, - type TuiWithOptionalMinMax, } from '@taiga-ui/core'; -import {type TuiMonthContext} from '@taiga-ui/kit/interfaces'; +import type {TuiMonthContext} from '@taiga-ui/kit/interfaces'; import {TUI_MONTH_FORMATTER_PROVIDER} from '@taiga-ui/kit/providers'; -import { - TUI_INPUT_DATE_OPTIONS, - TUI_MONTH_FORMATTER, - type TuiInputDateOptions, -} from '@taiga-ui/kit/tokens'; -import {type TuiBooleanHandlerWithContext} from '@taiga-ui/kit/types'; +import type {TuiInputDateOptions} from '@taiga-ui/kit/tokens'; +import {TUI_INPUT_DATE_OPTIONS, TUI_MONTH_FORMATTER} from '@taiga-ui/kit/tokens'; +import type {TuiBooleanHandlerWithContext} from '@taiga-ui/kit/types'; @Component({ selector: 'tui-input-month-range', diff --git a/projects/kit/components/input-month-range/input-month-range.directive.ts b/projects/kit/components/input-month-range/input-month-range.directive.ts index 180d0b71f0b1..e5cdbdbb4bbc 100644 --- a/projects/kit/components/input-month-range/input-month-range.directive.ts +++ b/projects/kit/components/input-month-range/input-month-range.directive.ts @@ -1,10 +1,12 @@ -import {Directive, type DoCheck, inject} from '@angular/core'; -import {TuiDestroyService, type TuiMonthRange} from '@taiga-ui/cdk'; +import type {DoCheck} from '@angular/core'; +import {Directive, inject} from '@angular/core'; +import type {TuiMonthRange} from '@taiga-ui/cdk'; +import {TuiDestroyService} from '@taiga-ui/cdk'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; import {TUI_MONTH_FORMATTER} from '@taiga-ui/kit/tokens'; import {combineLatest, distinctUntilChanged, Subject, switchMap, takeUntil} from 'rxjs'; -import {type TuiInputMonthRangeComponent} from './input-month-range.component'; +import type {TuiInputMonthRangeComponent} from './input-month-range.component'; @Directive({ selector: 'tui-input-month-range', diff --git a/projects/kit/components/input-month-range/test/input-month-range.component.spec.ts b/projects/kit/components/input-month-range/test/input-month-range.component.spec.ts index bb2ebfe75a77..5ce798e973fa 100644 --- a/projects/kit/components/input-month-range/test/input-month-range.component.spec.ts +++ b/projects/kit/components/input-month-range/test/input-month-range.component.spec.ts @@ -1,5 +1,6 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiMonth, TuiMonthRange} from '@taiga-ui/cdk'; diff --git a/projects/kit/components/input-month/input-month.component.ts b/projects/kit/components/input-month/input-month.component.ts index da66eb2edb37..8fa46dde1375 100644 --- a/projects/kit/components/input-month/input-month.component.ts +++ b/projects/kit/components/input-month/input-month.component.ts @@ -6,33 +6,30 @@ import { Input, ViewChild, } from '@angular/core'; +import type { + TuiBooleanHandler, + TuiFocusableElementAccessor, + TuiYear, +} from '@taiga-ui/cdk'; import { AbstractTuiNullableControl, ALWAYS_FALSE_HANDLER, TUI_IS_MOBILE, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiBooleanHandler, tuiDateClamp, TuiDay, - type TuiFocusableElementAccessor, TuiMonth, - type TuiYear, } from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS, TuiWithOptionalMinMax} from '@taiga-ui/core'; import { TUI_TEXTFIELD_SIZE, TuiMonthPipe, TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeS, - type TuiWithOptionalMinMax, } from '@taiga-ui/core'; import {TUI_MONTH_FORMATTER_PROVIDER} from '@taiga-ui/kit/providers'; -import { - TUI_INPUT_DATE_OPTIONS, - TUI_MONTH_FORMATTER, - type TuiInputDateOptions, -} from '@taiga-ui/kit/tokens'; +import type {TuiInputDateOptions} from '@taiga-ui/kit/tokens'; +import {TUI_INPUT_DATE_OPTIONS, TUI_MONTH_FORMATTER} from '@taiga-ui/kit/tokens'; @Component({ selector: 'tui-input-month', diff --git a/projects/kit/components/input-month/input-month.directive.ts b/projects/kit/components/input-month/input-month.directive.ts index ef19421ccb84..dbc814170552 100644 --- a/projects/kit/components/input-month/input-month.directive.ts +++ b/projects/kit/components/input-month/input-month.directive.ts @@ -1,10 +1,12 @@ -import {Directive, type DoCheck, inject} from '@angular/core'; -import {TuiDestroyService, type TuiMonth} from '@taiga-ui/cdk'; +import type {DoCheck} from '@angular/core'; +import {Directive, inject} from '@angular/core'; +import type {TuiMonth} from '@taiga-ui/cdk'; +import {TuiDestroyService} from '@taiga-ui/cdk'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; import {TUI_MONTH_FORMATTER} from '@taiga-ui/kit/tokens'; import {distinctUntilChanged, Subject, switchMap, takeUntil} from 'rxjs'; -import {type TuiInputMonthComponent} from './input-month.component'; +import type {TuiInputMonthComponent} from './input-month.component'; @Directive({ selector: 'tui-input-month', diff --git a/projects/kit/components/input-month/test/input-month.component.spec.ts b/projects/kit/components/input-month/test/input-month.component.spec.ts index 2e8c32ce95be..3f5af54305b8 100644 --- a/projects/kit/components/input-month/test/input-month.component.spec.ts +++ b/projects/kit/components/input-month/test/input-month.component.spec.ts @@ -1,5 +1,6 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, fakeAsync, TestBed, tick} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {fakeAsync, TestBed, tick} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiDay, TuiMonth} from '@taiga-ui/cdk'; diff --git a/projects/kit/components/input-number/input-number.component.ts b/projects/kit/components/input-number/input-number.component.ts index 751fbb6501ce..40ffb2aa3549 100644 --- a/projects/kit/components/input-number/input-number.component.ts +++ b/projects/kit/components/input-number/input-number.component.ts @@ -1,3 +1,4 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, @@ -7,18 +8,21 @@ import { inject, InjectionToken, Input, - type QueryList, ViewChild, } from '@angular/core'; -import {type MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import { maskitoCaretGuard, maskitoNumberOptionsGenerator, maskitoParseNumber, } from '@maskito/kit'; +import type { + AbstractTuiValueTransformer, + TuiFocusableElementAccessor, + TuiInputMode, +} from '@taiga-ui/cdk'; import { AbstractTuiNullableControl, - type AbstractTuiValueTransformer, CHAR_HYPHEN, CHAR_MINUS, EMPTY_QUERY, @@ -26,31 +30,25 @@ import { tuiAsControl, tuiAsFocusableItemAccessor, tuiClamp, - type TuiFocusableElementAccessor, - type TuiInputMode, tuiPure, tuiWatch, } from '@taiga-ui/cdk'; +import type {TuiDecimal, TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import { TEXTFIELD_CONTROLLER_PROVIDER, TUI_DEFAULT_NUMBER_FORMAT, TUI_NUMBER_FORMAT, TUI_TEXTFIELD_SIZE, TUI_TEXTFIELD_WATCHED_CONTROLLER, - type TuiDecimal, tuiFormatNumber, tuiGetFractionPartPadded, TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeS, } from '@taiga-ui/core'; import {PolymorpheusOutletDirective} from '@tinkoff/ng-polymorpheus'; import {takeUntil} from 'rxjs'; -import { - TUI_INPUT_NUMBER_OPTIONS, - type TuiInputNumberOptions, -} from './input-number.options'; +import type {TuiInputNumberOptions} from './input-number.options'; +import {TUI_INPUT_NUMBER_OPTIONS} from './input-number.options'; const DEFAULT_MAX_LENGTH = 18; diff --git a/projects/kit/components/input-number/input-number.directive.ts b/projects/kit/components/input-number/input-number.directive.ts index 07278f0d92e6..db4cd67f2951 100644 --- a/projects/kit/components/input-number/input-number.directive.ts +++ b/projects/kit/components/input-number/input-number.directive.ts @@ -1,7 +1,8 @@ -import {Directive, type DoCheck} from '@angular/core'; +import type {DoCheck} from '@angular/core'; +import {Directive} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {type TuiInputNumberComponent} from './input-number.component'; +import type {TuiInputNumberComponent} from './input-number.component'; @Directive({ selector: 'tui-input-number', diff --git a/projects/kit/components/input-number/input-number.options.ts b/projects/kit/components/input-number/input-number.options.ts index b086064321d3..256fccbfdf20 100644 --- a/projects/kit/components/input-number/input-number.options.ts +++ b/projects/kit/components/input-number/input-number.options.ts @@ -1,7 +1,7 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiDecimal} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiDecimal} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiInputNumberOptions { readonly decimal: TuiDecimal; diff --git a/projects/kit/components/input-number/test/input-number-format.spec.ts b/projects/kit/components/input-number/test/input-number-format.spec.ts index e8211ee0a69c..c5cb567611c3 100644 --- a/projects/kit/components/input-number/test/input-number-format.spec.ts +++ b/projects/kit/components/input-number/test/input-number-format.spec.ts @@ -1,9 +1,11 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk'; -import {type TuiDecimal, tuiNumberFormatProvider} from '@taiga-ui/core'; +import type {TuiDecimal} from '@taiga-ui/core'; +import {tuiNumberFormatProvider} from '@taiga-ui/core'; import {TuiInputNumberComponent, TuiInputNumberModule} from '@taiga-ui/kit'; import {TuiNativeInputPO} from '@taiga-ui/testing'; diff --git a/projects/kit/components/input-number/test/input-number.component.spec.ts b/projects/kit/components/input-number/test/input-number.component.spec.ts index 9fdeceadb56e..af207b2b9e90 100644 --- a/projects/kit/components/input-number/test/input-number.component.spec.ts +++ b/projects/kit/components/input-number/test/input-number.component.spec.ts @@ -1,15 +1,12 @@ -import {Component, type DebugElement, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {CHAR_MINUS, CHAR_NO_BREAK_SPACE} from '@taiga-ui/cdk'; -import { - type TuiDecimal, - TuiHintModule, - type TuiSizeL, - type TuiSizeS, - TuiTextfieldControllerModule, -} from '@taiga-ui/core'; +import type {TuiDecimal, TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TuiHintModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TuiInputNumberComponent, TuiInputNumberModule} from '@taiga-ui/kit'; import {TuiNativeInputPO, TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/kit/components/input-password/input-password.component.ts b/projects/kit/components/input-password/input-password.component.ts index 8dfdd39e1ecd..edca0da204cd 100644 --- a/projects/kit/components/input-password/input-password.component.ts +++ b/projects/kit/components/input-password/input-password.component.ts @@ -5,27 +5,29 @@ import { inject, ViewChild, } from '@angular/core'; +import type { + TuiContext, + TuiFocusableElementAccessor, + TuiInputType, + TuiNativeFocusableElement, +} from '@taiga-ui/cdk'; import { AbstractTuiControl, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiContext, - type TuiFocusableElementAccessor, - type TuiInputType, - type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import { MODE_PROVIDER, TUI_MODE, TUI_TEXTFIELD_SIZE, TuiHintOptionsDirective, TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeS, } from '@taiga-ui/core'; import {TUI_PASSWORD_TEXTS} from '@taiga-ui/kit/tokens'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {combineLatest, EMPTY, map, type Observable, startWith} from 'rxjs'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; +import {combineLatest, EMPTY, map, startWith} from 'rxjs'; import {TUI_INPUT_PASSWORD_OPTIONS} from './input-password.options'; diff --git a/projects/kit/components/input-password/input-password.directive.ts b/projects/kit/components/input-password/input-password.directive.ts index 1b6728100395..e2a92390745f 100644 --- a/projects/kit/components/input-password/input-password.directive.ts +++ b/projects/kit/components/input-password/input-password.directive.ts @@ -1,8 +1,9 @@ -import {Directive, type DoCheck} from '@angular/core'; +import type {DoCheck} from '@angular/core'; +import {Directive} from '@angular/core'; import {tuiIsInput} from '@taiga-ui/cdk'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {type TuiInputPasswordComponent} from './input-password.component'; +import type {TuiInputPasswordComponent} from './input-password.component'; @Directive({ selector: 'tui-input-password', diff --git a/projects/kit/components/input-password/input-password.options.ts b/projects/kit/components/input-password/input-password.options.ts index 0593f8fb1458..9fd6c5db6995 100644 --- a/projects/kit/components/input-password/input-password.options.ts +++ b/projects/kit/components/input-password/input-password.options.ts @@ -1,7 +1,8 @@ -import {type Provider} from '@angular/core'; -import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Provider} from '@angular/core'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiInputPasswordOptions { readonly icons: Readonly<{ diff --git a/projects/kit/components/input-password/test/input-password.component.spec.ts b/projects/kit/components/input-password/test/input-password.component.spec.ts index cda788695e72..17ed238e82c2 100644 --- a/projects/kit/components/input-password/test/input-password.component.spec.ts +++ b/projects/kit/components/input-password/test/input-password.component.spec.ts @@ -1,8 +1,11 @@ -import {Component, type DebugElement, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; -import {type TuiSizeL, type TuiSizeS, TuiTextfieldControllerModule} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TuiPageObject} from '@taiga-ui/testing'; import {TuiInputPasswordComponent} from '../input-password.component'; diff --git a/projects/kit/components/input-phone-international/input-phone-international.component.ts b/projects/kit/components/input-phone-international/input-phone-international.component.ts index 56940eaa2a99..1043237230f7 100644 --- a/projects/kit/components/input-phone-international/input-phone-international.component.ts +++ b/projects/kit/components/input-phone-international/input-phone-international.component.ts @@ -9,25 +9,25 @@ import { Output, ViewChild, } from '@angular/core'; +import type { + TuiContext, + TuiFocusableElementAccessor, + TuiTypedMapper, +} from '@taiga-ui/cdk'; import { AbstractTuiControl, CHAR_PLUS, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiContext, - type TuiFocusableElementAccessor, tuiPure, - type TuiTypedMapper, } from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeM, TuiSizeS} from '@taiga-ui/core'; import { TUI_MASK_SYMBOLS_REGEXP, TUI_NON_DIGITS_REGEXP, TUI_TEXTFIELD_SIZE, TuiFlagPipe, TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeM, - type TuiSizeS, } from '@taiga-ui/core'; import {TuiCountryIsoCode} from '@taiga-ui/i18n'; import {TUI_ARROW} from '@taiga-ui/kit/components/arrow'; @@ -36,7 +36,7 @@ import {TuiToCountryCodePipe} from '@taiga-ui/kit/pipes'; import {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers'; import {TUI_COUNTRIES, TUI_COUNTRIES_MASKS} from '@taiga-ui/kit/tokens'; import {tuiGetMaxAllowedPhoneLength, tuiIsoToCountryCode} from '@taiga-ui/kit/utils'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TUI_INPUT_PHONE_INTERNATIONAL_OPTIONS} from './input-phone-international.options'; import {tuiExtractValueFromEvent} from './utils/extract-value-from-event'; diff --git a/projects/kit/components/input-phone-international/input-phone-international.options.ts b/projects/kit/components/input-phone-international/input-phone-international.options.ts index 6fca01daf3e4..0bb36ab89008 100644 --- a/projects/kit/components/input-phone-international/input-phone-international.options.ts +++ b/projects/kit/components/input-phone-international/input-phone-international.options.ts @@ -1,4 +1,4 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; import {TuiCountryIsoCode} from '@taiga-ui/i18n'; diff --git a/projects/kit/components/input-phone-international/test/input-phone-international.component.spec.ts b/projects/kit/components/input-phone-international/test/input-phone-international.component.spec.ts index fe475c9ba28f..a500e8f9a5bb 100644 --- a/projects/kit/components/input-phone-international/test/input-phone-international.component.spec.ts +++ b/projects/kit/components/input-phone-international/test/input-phone-international.component.spec.ts @@ -1,15 +1,17 @@ -import {Component, type DebugElement, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {By} from '@angular/platform-browser'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiRootModule, tuiSvgOptionsProvider} from '@taiga-ui/core'; +import type {TuiLanguage} from '@taiga-ui/i18n'; import { TUI_ENGLISH_LANGUAGE, TUI_LANGUAGE, TUI_RUSSIAN_LANGUAGE, TuiCountryIsoCode, - type TuiLanguage, } from '@taiga-ui/i18n'; import { TuiInputPhoneInternationalComponent, diff --git a/projects/kit/components/input-phone/input-phone.component.ts b/projects/kit/components/input-phone/input-phone.component.ts index c440aaa55b4d..bc1f84dbd1f7 100644 --- a/projects/kit/components/input-phone/input-phone.component.ts +++ b/projects/kit/components/input-phone/input-phone.component.ts @@ -10,34 +10,31 @@ import { TemplateRef, ViewChild, } from '@angular/core'; -import { - MASKITO_DEFAULT_OPTIONS, - type MaskitoOptions, - maskitoTransform, -} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core'; import {maskitoCaretGuard, maskitoPrefixPostprocessorGenerator} from '@maskito/kit'; +import type { + TuiActiveZoneDirective, + TuiContext, + TuiFocusableElementAccessor, + TuiInputMode, +} from '@taiga-ui/cdk'; import { AbstractTuiControl, - type TuiActiveZoneDirective, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiContext, - type TuiFocusableElementAccessor, - type TuiInputMode, tuiIsNativeFocused, tuiPure, } from '@taiga-ui/cdk'; +import type {TuiDataListHost, TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import { TUI_MASK_SYMBOLS_REGEXP, TUI_TEXTFIELD_CLEANER, TUI_TEXTFIELD_SIZE, tuiAsDataListHost, TuiDataListDirective, - type TuiDataListHost, TuiHostedDropdownComponent, TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeS, } from '@taiga-ui/core'; import {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers'; diff --git a/projects/kit/components/input-phone/input-phone.directive.ts b/projects/kit/components/input-phone/input-phone.directive.ts index 4313e72c2719..25eceb4bed22 100644 --- a/projects/kit/components/input-phone/input-phone.directive.ts +++ b/projects/kit/components/input-phone/input-phone.directive.ts @@ -1,7 +1,8 @@ -import {Directive, type DoCheck} from '@angular/core'; +import type {DoCheck} from '@angular/core'; +import {Directive} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {type TuiInputPhoneComponent} from './input-phone.component'; +import type {TuiInputPhoneComponent} from './input-phone.component'; @Directive({ selector: 'tui-input-phone', diff --git a/projects/kit/components/input-phone/input-phone.options.ts b/projects/kit/components/input-phone/input-phone.options.ts index 6c62ac221fcc..03d6280593f5 100644 --- a/projects/kit/components/input-phone/input-phone.options.ts +++ b/projects/kit/components/input-phone/input-phone.options.ts @@ -1,4 +1,4 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiInputPhoneOptions { diff --git a/projects/kit/components/input-phone/test/complete-phone-insertion-preprocessor.spec.ts b/projects/kit/components/input-phone/test/complete-phone-insertion-preprocessor.spec.ts index e256818ee8ef..b4915308c254 100644 --- a/projects/kit/components/input-phone/test/complete-phone-insertion-preprocessor.spec.ts +++ b/projects/kit/components/input-phone/test/complete-phone-insertion-preprocessor.spec.ts @@ -1,4 +1,5 @@ -import {type MaskitoOptions, maskitoTransform} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; +import {maskitoTransform} from '@maskito/core'; import { tuiCreateCompletePhoneInsertionPreprocessor, diff --git a/projects/kit/components/input-phone/test/input-phone.component.spec.ts b/projects/kit/components/input-phone/test/input-phone.component.spec.ts index 0d436c7f448d..48330964b441 100644 --- a/projects/kit/components/input-phone/test/input-phone.component.spec.ts +++ b/projects/kit/components/input-phone/test/input-phone.component.spec.ts @@ -1,5 +1,6 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiHintModule, TuiRootModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; diff --git a/projects/kit/components/input-phone/utils/complete-phone-insertion-preprocessor.ts b/projects/kit/components/input-phone/utils/complete-phone-insertion-preprocessor.ts index bc34887f7a23..3232ee9317ac 100644 --- a/projects/kit/components/input-phone/utils/complete-phone-insertion-preprocessor.ts +++ b/projects/kit/components/input-phone/utils/complete-phone-insertion-preprocessor.ts @@ -1,4 +1,4 @@ -import {type MaskitoPreprocessor} from '@maskito/core'; +import type {MaskitoPreprocessor} from '@maskito/core'; const countDigits = (value: string): number => value.replaceAll(/\D/g, '').length; diff --git a/projects/kit/components/input-range/input-range.component.ts b/projects/kit/components/input-range/input-range.component.ts index b0a70a50011f..eace36a526b0 100644 --- a/projects/kit/components/input-range/input-range.component.ts +++ b/projects/kit/components/input-range/input-range.component.ts @@ -1,13 +1,18 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, ElementRef, inject, Input, - type QueryList, ViewChild, ViewChildren, } from '@angular/core'; +import type { + TuiContext, + TuiFocusableElementAccessor, + TuiNativeFocusableElement, +} from '@taiga-ui/cdk'; import { AbstractTuiControl, EMPTY_QUERY, @@ -15,26 +20,22 @@ import { tuiAsControl, tuiAsFocusableItemAccessor, tuiClamp, - type TuiContext, - type TuiFocusableElementAccessor, tuiIsNativeFocused, tuiIsNativeFocusedIn, - type TuiNativeFocusableElement, tuiPure, tuiRound, } from '@taiga-ui/cdk'; +import type {TuiDecimal, TuiWithOptionalMinMax} from '@taiga-ui/core'; import { TEXTFIELD_CONTROLLER_PROVIDER, TUI_TEXTFIELD_WATCHED_CONTROLLER, - type TuiDecimal, tuiGetFractionPartPadded, - type TuiWithOptionalMinMax, } from '@taiga-ui/core'; import {TuiInputNumberComponent} from '@taiga-ui/kit/components/input-number'; import {TuiRangeComponent} from '@taiga-ui/kit/components/range'; import {TUI_FLOATING_PRECISION} from '@taiga-ui/kit/constants'; -import {type TuiKeySteps} from '@taiga-ui/kit/types'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiKeySteps} from '@taiga-ui/kit/types'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-input-range', diff --git a/projects/kit/components/input-range/test/input-range.component.spec.ts b/projects/kit/components/input-range/test/input-range.component.spec.ts index 0b71bd2358bd..8a60648bfde8 100644 --- a/projects/kit/components/input-range/test/input-range.component.spec.ts +++ b/projects/kit/components/input-range/test/input-range.component.spec.ts @@ -1,5 +1,7 @@ -import {Component, type DebugElement, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {CHAR_HYPHEN, CHAR_MINUS} from '@taiga-ui/cdk'; import {TuiInputRangeComponent, TuiInputRangeModule} from '@taiga-ui/kit'; diff --git a/projects/kit/components/input-slider/input-slider.component.ts b/projects/kit/components/input-slider/input-slider.component.ts index a3fa05f273bf..45abc4018d64 100644 --- a/projects/kit/components/input-slider/input-slider.component.ts +++ b/projects/kit/components/input-slider/input-slider.component.ts @@ -6,24 +6,25 @@ import { Input, ViewChild, } from '@angular/core'; +import type { + TuiContext, + TuiFocusableElementAccessor, + TuiNativeFocusableElement, +} from '@taiga-ui/cdk'; import { AbstractTuiControl, tuiAsControl, tuiAsFocusableItemAccessor, tuiClamp, - type TuiContext, - type TuiFocusableElementAccessor, tuiIsNativeFocused, - type TuiNativeFocusableElement, tuiPure, tuiRound, } from '@taiga-ui/cdk'; +import type {TuiDecimal, TuiWithOptionalMinMax} from '@taiga-ui/core'; import { TEXTFIELD_CONTROLLER_PROVIDER, TUI_TEXTFIELD_WATCHED_CONTROLLER, - type TuiDecimal, tuiGetFractionPartPadded, - type TuiWithOptionalMinMax, } from '@taiga-ui/core'; import {TuiInputNumberComponent} from '@taiga-ui/kit/components/input-number'; import { @@ -31,8 +32,8 @@ import { tuiSliderOptionsProvider, } from '@taiga-ui/kit/components/slider'; import {TUI_FLOATING_PRECISION} from '@taiga-ui/kit/constants'; -import {type TuiKeySteps} from '@taiga-ui/kit/types'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiKeySteps} from '@taiga-ui/kit/types'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-input-slider', diff --git a/projects/kit/components/input-slider/test/input-slider.component.spec.ts b/projects/kit/components/input-slider/test/input-slider.component.spec.ts index 6fd9c6e9bc9c..f279b813b4de 100644 --- a/projects/kit/components/input-slider/test/input-slider.component.spec.ts +++ b/projects/kit/components/input-slider/test/input-slider.component.spec.ts @@ -1,7 +1,10 @@ -import {Component, type TemplateRef, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {TemplateRef} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; -import {CHAR_MINUS, type TuiContext} from '@taiga-ui/cdk'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {CHAR_MINUS} from '@taiga-ui/cdk'; import {TuiRootModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TuiInputSliderComponent, TuiInputSliderModule} from '@taiga-ui/kit'; import {TuiNativeInputPO, TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/kit/components/input-tag/input-tag.component.ts b/projects/kit/components/input-tag/input-tag.component.ts index df9c3f6e3329..8ff25c6722be 100644 --- a/projects/kit/components/input-tag/input-tag.component.ts +++ b/projects/kit/components/input-tag/input-tag.component.ts @@ -1,3 +1,4 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, @@ -9,29 +10,31 @@ import { inject, Input, Output, - type QueryList, TemplateRef, ViewChild, ViewChildren, } from '@angular/core'; +import type { + TuiActiveZoneDirective, + TuiBooleanHandler, + TuiContext, + TuiFocusableElementAccessor, +} from '@taiga-ui/cdk'; import { AbstractTuiMultipleControl, ALWAYS_FALSE_HANDLER, ALWAYS_TRUE_HANDLER, EMPTY_QUERY, - type TuiActiveZoneDirective, tuiArrayRemove, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiBooleanHandler, - type TuiContext, - type TuiFocusableElementAccessor, tuiGetActualTarget, tuiGetClipboardDataText, tuiIsElement, tuiIsNativeFocusedIn, tuiRetargetedBoundaryCrossing, } from '@taiga-ui/cdk'; +import type {TuiDataListHost, TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import { MODE_PROVIDER, TEXTFIELD_CONTROLLER_PROVIDER, @@ -40,19 +43,17 @@ import { TUI_TEXTFIELD_WATCHED_CONTROLLER, tuiAsDataListHost, TuiDataListDirective, - type TuiDataListHost, TuiHintOptionsDirective, TuiHostedDropdownComponent, TuiModeDirective, TuiScrollbarComponent, - type TuiSizeL, - type TuiSizeS, } from '@taiga-ui/core'; -import {type TuiStringifiableItem} from '@taiga-ui/kit/classes'; +import type {TuiStringifiableItem} from '@taiga-ui/kit/classes'; import {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers'; -import {type TuiStatus} from '@taiga-ui/kit/types'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {map, type Observable, takeUntil, timer} from 'rxjs'; +import type {TuiStatus} from '@taiga-ui/kit/types'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; +import {map, takeUntil, timer} from 'rxjs'; import {TUI_INPUT_TAG_OPTIONS} from './input-tag.options'; diff --git a/projects/kit/components/input-tag/input-tag.options.ts b/projects/kit/components/input-tag/input-tag.options.ts index 74180dfe1fbe..6fa516939dbd 100644 --- a/projects/kit/components/input-tag/input-tag.options.ts +++ b/projects/kit/components/input-tag/input-tag.options.ts @@ -1,6 +1,6 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiStatus} from '@taiga-ui/kit/types'; +import type {TuiStatus} from '@taiga-ui/kit/types'; export interface TuiInputTagOptions { readonly separator: RegExp | string; diff --git a/projects/kit/components/input-tag/test/input-tag-no-mode.component.spec.ts b/projects/kit/components/input-tag/test/input-tag-no-mode.component.spec.ts index 7747ab93d3aa..be178ad6fabc 100644 --- a/projects/kit/components/input-tag/test/input-tag-no-mode.component.spec.ts +++ b/projects/kit/components/input-tag/test/input-tag-no-mode.component.spec.ts @@ -1,12 +1,9 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormsModule} from '@angular/forms'; -import { - TuiRootModule, - type TuiSizeL, - type TuiSizeS, - TuiTextfieldControllerModule, -} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TuiRootModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; import { TuiInputTagComponent, TuiInputTagModule, diff --git a/projects/kit/components/input-tag/test/input-tag.component.spec.ts b/projects/kit/components/input-tag/test/input-tag.component.spec.ts index 7d8be3a5f049..86e873ea58c0 100644 --- a/projects/kit/components/input-tag/test/input-tag.component.spec.ts +++ b/projects/kit/components/input-tag/test/input-tag.component.spec.ts @@ -1,20 +1,12 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; -import { - ALWAYS_TRUE_HANDLER, - CHAR_NO_BREAK_SPACE, - type TuiBooleanHandler, - TuiFocusedModule, -} from '@taiga-ui/cdk'; -import { - TuiHintModule, - TuiRootModule, - type TuiSizeL, - type TuiSizeS, - TuiTextfieldControllerModule, -} from '@taiga-ui/core'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; +import {ALWAYS_TRUE_HANDLER, CHAR_NO_BREAK_SPACE, TuiFocusedModule} from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TuiHintModule, TuiRootModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TuiInputTagComponent, TuiInputTagModule} from '@taiga-ui/kit'; import { tuiIsActive, diff --git a/projects/kit/components/input-time/input-time.component.ts b/projects/kit/components/input-time/input-time.component.ts index 705f75580b0a..b115f1a46e43 100644 --- a/projects/kit/components/input-time/input-time.component.ts +++ b/projects/kit/components/input-time/input-time.component.ts @@ -7,8 +7,14 @@ import { Input, ViewChild, } from '@angular/core'; -import {type MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {maskitoTimeOptionsGenerator} from '@maskito/kit'; +import type { + TuiBooleanHandler, + TuiFocusableElementAccessor, + TuiTimeLike, + TuiTimeMode, +} from '@taiga-ui/cdk'; import { AbstractTuiNullableControl, ALWAYS_FALSE_HANDLER, @@ -17,31 +23,27 @@ import { TUI_STRICT_MATCHER, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiBooleanHandler, - type TuiFocusableElementAccessor, tuiIsElement, tuiIsInput, tuiIsNativeFocused, tuiPure, TuiTime, - type TuiTimeLike, - type TuiTimeMode, } from '@taiga-ui/cdk'; +import type {TuiDataListHost, TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import { TUI_TEXTFIELD_SIZE, tuiAsDataListHost, tuiAsOptionContent, - type TuiDataListHost, TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeS, } from '@taiga-ui/core'; import {TUI_SELECT_OPTION} from '@taiga-ui/kit/components/select-option'; import {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers'; import {TUI_TIME_TEXTS} from '@taiga-ui/kit/tokens'; -import {map, type Observable, takeUntil, timer} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map, takeUntil, timer} from 'rxjs'; -import {TUI_INPUT_TIME_OPTIONS, type TuiInputTimeOptions} from './input-time.options'; +import type {TuiInputTimeOptions} from './input-time.options'; +import {TUI_INPUT_TIME_OPTIONS} from './input-time.options'; @Component({ selector: 'tui-input-time', diff --git a/projects/kit/components/input-time/input-time.directive.ts b/projects/kit/components/input-time/input-time.directive.ts index da45d011532e..9d39b56ce60e 100644 --- a/projects/kit/components/input-time/input-time.directive.ts +++ b/projects/kit/components/input-time/input-time.directive.ts @@ -1,8 +1,8 @@ import {Directive} from '@angular/core'; -import {type TuiTime, type TuiTimeMode} from '@taiga-ui/cdk'; +import type {TuiTime, TuiTimeMode} from '@taiga-ui/cdk'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {type TuiInputTimeComponent} from './input-time.component'; +import type {TuiInputTimeComponent} from './input-time.component'; @Directive({ selector: 'tui-input-time', diff --git a/projects/kit/components/input-time/input-time.options.ts b/projects/kit/components/input-time/input-time.options.ts index 4f358cf07679..436906506ef5 100644 --- a/projects/kit/components/input-time/input-time.options.ts +++ b/projects/kit/components/input-time/input-time.options.ts @@ -1,14 +1,10 @@ -import {type Provider} from '@angular/core'; -import { - type TuiContext, - tuiCreateToken, - tuiProvideOptions, - type TuiTimeMode, -} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {Provider} from '@angular/core'; +import type {TuiContext, TuiTimeMode} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import {MAX_TIME_VALUES} from '@taiga-ui/kit/constants'; -import {type TuiTimeFormatParts} from '@taiga-ui/kit/types'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiTimeFormatParts} from '@taiga-ui/kit/types'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiInputTimeOptions { readonly icon: PolymorpheusContent>; diff --git a/projects/kit/components/input-time/test/input-time.component.spec.ts b/projects/kit/components/input-time/test/input-time.component.spec.ts index 610701d10590..a0323d779b41 100644 --- a/projects/kit/components/input-time/test/input-time.component.spec.ts +++ b/projects/kit/components/input-time/test/input-time.component.spec.ts @@ -1,16 +1,13 @@ -import {Component, type DebugElement, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {By} from '@angular/platform-browser'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiTime} from '@taiga-ui/cdk'; -import { - TuiHintModule, - TuiRootModule, - type TuiSizeL, - type TuiSizeS, - TuiTextfieldControllerModule, -} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TuiHintModule, TuiRootModule, TuiTextfieldControllerModule} from '@taiga-ui/core'; import {TuiInputTimeComponent, TuiInputTimeModule} from '@taiga-ui/kit'; import {tuiCreateKeyboardEvent, TuiNativeInputPO, TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/kit/components/input-year/input-year.component.ts b/projects/kit/components/input-year/input-year.component.ts index e15c4038f7dd..69f3167cc771 100644 --- a/projects/kit/components/input-year/input-year.component.ts +++ b/projects/kit/components/input-year/input-year.component.ts @@ -6,26 +6,24 @@ import { Input, ViewChild, } from '@angular/core'; -import {type MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {maskitoNumberOptionsGenerator} from '@maskito/kit'; +import type { + TuiBooleanHandler, + TuiFocusableElementAccessor, + TuiYear, +} from '@taiga-ui/cdk'; import { AbstractTuiNullableControl, ALWAYS_FALSE_HANDLER, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiBooleanHandler, - type TuiFocusableElementAccessor, tuiPure, - type TuiYear, } from '@taiga-ui/cdk'; -import { - TUI_TEXTFIELD_SIZE, - TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeS, - type TuiWithOptionalMinMax, -} from '@taiga-ui/core'; -import {TUI_INPUT_DATE_OPTIONS, type TuiInputDateOptions} from '@taiga-ui/kit/tokens'; +import type {TuiSizeL, TuiSizeS, TuiWithOptionalMinMax} from '@taiga-ui/core'; +import {TUI_TEXTFIELD_SIZE, TuiPrimitiveTextfieldComponent} from '@taiga-ui/core'; +import type {TuiInputDateOptions} from '@taiga-ui/kit/tokens'; +import {TUI_INPUT_DATE_OPTIONS} from '@taiga-ui/kit/tokens'; const UP_TO_4_DIGITS_REG = /^\d{0,4}$/; diff --git a/projects/kit/components/input-year/input-year.directive.ts b/projects/kit/components/input-year/input-year.directive.ts index ee3797359cae..0b66b3e2ee18 100644 --- a/projects/kit/components/input-year/input-year.directive.ts +++ b/projects/kit/components/input-year/input-year.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {type TuiInputYearComponent} from './input-year.component'; +import type {TuiInputYearComponent} from './input-year.component'; @Directive({ selector: 'tui-input-year', diff --git a/projects/kit/components/input/input.component.ts b/projects/kit/components/input/input.component.ts index 416bfe815b60..971f273f74ed 100644 --- a/projects/kit/components/input/input.component.ts +++ b/projects/kit/components/input/input.component.ts @@ -7,30 +7,30 @@ import { TemplateRef, ViewChild, } from '@angular/core'; +import type { + TuiActiveZoneDirective, + TuiContext, + TuiFocusableElementAccessor, +} from '@taiga-ui/cdk'; import { AbstractTuiControl, - type TuiActiveZoneDirective, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiContext, - type TuiFocusableElementAccessor, tuiIsNativeFocused, } from '@taiga-ui/cdk'; +import type {TuiDataListHost, TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import { TUI_TEXTFIELD_SIZE, tuiAsDataListHost, TuiDataListDirective, - type TuiDataListHost, TuiHostedDropdownComponent, TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeS, } from '@taiga-ui/core'; import { FIXED_DROPDOWN_CONTROLLER_PROVIDER, TUI_VALUE_ACCESSOR_PROVIDER, } from '@taiga-ui/kit/providers'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-input', diff --git a/projects/kit/components/input/input.directive.ts b/projects/kit/components/input/input.directive.ts index 0d9569f838ef..41a071f91ffa 100644 --- a/projects/kit/components/input/input.directive.ts +++ b/projects/kit/components/input/input.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {type TuiInputComponent} from './input.component'; +import type {TuiInputComponent} from './input.component'; @Directive({ selector: 'tui-input', diff --git a/projects/kit/components/input/test/input.component.spec.ts b/projects/kit/components/input/test/input.component.spec.ts index b942d568d498..24c1a2043460 100644 --- a/projects/kit/components/input/test/input.component.spec.ts +++ b/projects/kit/components/input/test/input.component.spec.ts @@ -1,14 +1,15 @@ -import {Component, type DebugElement, type ElementRef, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement, ElementRef} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import { TuiDataListModule, tuiEditingKeys, TuiHintModule, TuiRootModule, - type TuiSizeL, - type TuiSizeS, TuiTextfieldControllerModule, } from '@taiga-ui/core'; import {TuiInputComponent, TuiInputModule} from '@taiga-ui/kit'; diff --git a/projects/kit/components/island/island.component.ts b/projects/kit/components/island/island.component.ts index c62466474792..4962873c2d06 100644 --- a/projects/kit/components/island/island.component.ts +++ b/projects/kit/components/island/island.component.ts @@ -1,5 +1,5 @@ import {ChangeDetectionStrategy, Component, HostBinding, Input} from '@angular/core'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; @Component({ selector: 'tui-island, a[tuiIsland]', diff --git a/projects/kit/components/island/test/island.component.spec.ts b/projects/kit/components/island/test/island.component.spec.ts index 5d28f3791c56..3c1f0c7693ea 100644 --- a/projects/kit/components/island/test/island.component.spec.ts +++ b/projects/kit/components/island/test/island.component.spec.ts @@ -1,7 +1,8 @@ -import {type HarnessLoader} from '@angular/cdk/testing'; +import type {HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {TuiIslandComponent, TuiIslandModule} from '@taiga-ui/kit'; import {TuiIslandHarness} from '@taiga-ui/testing'; diff --git a/projects/kit/components/items-with-more/items-with-more.component.ts b/projects/kit/components/items-with-more/items-with-more.component.ts index 50507dd9cf90..855eddc41e5b 100644 --- a/projects/kit/components/items-with-more/items-with-more.component.ts +++ b/projects/kit/components/items-with-more/items-with-more.component.ts @@ -1,10 +1,10 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, inject, - type QueryList, TemplateRef, } from '@angular/core'; import { @@ -12,7 +12,8 @@ import { MutationObserverService, } from '@ng-web-apis/mutation-observer'; import {ResizeObserverService} from '@ng-web-apis/resize-observer'; -import {EMPTY_QUERY, type TuiContext, TuiItemDirective} from '@taiga-ui/cdk'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {EMPTY_QUERY, TuiItemDirective} from '@taiga-ui/cdk'; import {TuiItemsWithMoreDirective} from './items-with-more.directive'; import {TuiItemsWithMoreService} from './items-with-more.service'; diff --git a/projects/kit/components/items-with-more/more.directive.ts b/projects/kit/components/items-with-more/more.directive.ts index 4d4cdfc6f265..00d5706f48da 100644 --- a/projects/kit/components/items-with-more/more.directive.ts +++ b/projects/kit/components/items-with-more/more.directive.ts @@ -1,5 +1,5 @@ import {Directive} from '@angular/core'; -import {type TuiContext} from '@taiga-ui/cdk'; +import type {TuiContext} from '@taiga-ui/cdk'; @Directive({ selector: '[tuiMore]', diff --git a/projects/kit/components/line-clamp/line-clamp-position.directive.ts b/projects/kit/components/line-clamp/line-clamp-position.directive.ts index 4bd62f987d1f..77544908aee9 100644 --- a/projects/kit/components/line-clamp/line-clamp-position.directive.ts +++ b/projects/kit/components/line-clamp/line-clamp-position.directive.ts @@ -1,10 +1,9 @@ import {Directive, inject} from '@angular/core'; +import type {TuiPoint, TuiRectAccessor} from '@taiga-ui/core'; import { tuiAsPositionAccessor, TuiHintDirective, - type TuiPoint, TuiPositionAccessor, - type TuiRectAccessor, } from '@taiga-ui/core'; @Directive({ diff --git a/projects/kit/components/line-clamp/line-clamp.component.ts b/projects/kit/components/line-clamp/line-clamp.component.ts index 721dd44b5486..69e4e3719503 100644 --- a/projects/kit/components/line-clamp/line-clamp.component.ts +++ b/projects/kit/components/line-clamp/line-clamp.component.ts @@ -1,9 +1,8 @@ +import type {AfterViewInit, DoCheck} from '@angular/core'; import { - type AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, - type DoCheck, ElementRef, HostListener, inject, @@ -15,13 +14,13 @@ import { } from '@angular/core'; import {tuiIsCurrentTarget, tuiPx, tuiTypedFromEvent, tuiZonefree} from '@taiga-ui/cdk'; import {TUI_HINT_COMPONENT, TuiHintDirective} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; import { BehaviorSubject, distinctUntilChanged, filter, map, - type Observable, of, pairwise, startWith, diff --git a/projects/kit/components/line-clamp/line-clamp.options.ts b/projects/kit/components/line-clamp/line-clamp.options.ts index 2cc907272e39..297c75397bec 100644 --- a/projects/kit/components/line-clamp/line-clamp.options.ts +++ b/projects/kit/components/line-clamp/line-clamp.options.ts @@ -1,4 +1,4 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiLineClampOptions { diff --git a/projects/kit/components/marker-icon/marker-icon.component.ts b/projects/kit/components/marker-icon/marker-icon.component.ts index ea94f5ebe8e8..91010e507d16 100644 --- a/projects/kit/components/marker-icon/marker-icon.component.ts +++ b/projects/kit/components/marker-icon/marker-icon.component.ts @@ -6,8 +6,9 @@ import { Input, } from '@angular/core'; import {TuiDestroyService} from '@taiga-ui/cdk'; -import {MODE_PROVIDER, TUI_MODE, type TuiSizeXXL, type TuiSizeXXS} from '@taiga-ui/core'; -import {type TuiMarkerIconMode} from '@taiga-ui/kit/types'; +import type {TuiSizeXXL, TuiSizeXXS} from '@taiga-ui/core'; +import {MODE_PROVIDER, TUI_MODE} from '@taiga-ui/core'; +import type {TuiMarkerIconMode} from '@taiga-ui/kit/types'; @Component({ selector: 'tui-marker-icon, a[tuiMarkerIcon], button[tuiMarkerIcon]', diff --git a/projects/kit/components/multi-select-option/multi-select-option.component.ts b/projects/kit/components/multi-select-option/multi-select-option.component.ts index e34909685aa9..34f9b14a3b6e 100644 --- a/projects/kit/components/multi-select-option/multi-select-option.component.ts +++ b/projects/kit/components/multi-select-option/multi-select-option.component.ts @@ -1,6 +1,6 @@ import {ChangeDetectionStrategy, Component} from '@angular/core'; import {tuiIsPresent} from '@taiga-ui/cdk'; -import {type TuiSizeL} from '@taiga-ui/core'; +import type {TuiSizeL} from '@taiga-ui/core'; import {TuiSelectOptionComponent} from '@taiga-ui/kit/components/select-option'; @Component({ diff --git a/projects/kit/components/multi-select/hide-selected.pipe.ts b/projects/kit/components/multi-select/hide-selected.pipe.ts index 9ffeebd367fc..f8f2f87d830a 100644 --- a/projects/kit/components/multi-select/hide-selected.pipe.ts +++ b/projects/kit/components/multi-select/hide-selected.pipe.ts @@ -1,5 +1,7 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; -import {type TuiIdentityMatcher, tuiPure} from '@taiga-ui/cdk'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; +import type {TuiIdentityMatcher} from '@taiga-ui/cdk'; +import {tuiPure} from '@taiga-ui/cdk'; import {tuiIsFlat} from '@taiga-ui/kit/utils'; import {TuiMultiSelectComponent} from './multi-select.component'; diff --git a/projects/kit/components/multi-select/multi-select-group/multi-select-group.component.ts b/projects/kit/components/multi-select/multi-select-group/multi-select-group.component.ts index 4442ca65918f..fe322519ba06 100644 --- a/projects/kit/components/multi-select/multi-select-group/multi-select-group.component.ts +++ b/projects/kit/components/multi-select/multi-select-group/multi-select-group.component.ts @@ -1,3 +1,4 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, @@ -5,28 +6,23 @@ import { HostBinding, inject, Input, - type QueryList, } from '@angular/core'; import {NgControl} from '@angular/forms'; +import type {TuiIdentityMatcher} from '@taiga-ui/cdk'; import { EMPTY_QUERY, TUI_DEFAULT_IDENTITY_MATCHER, tuiControlValue, tuiGetOriginalArrayFromQueryList, - type TuiIdentityMatcher, tuiIsPresent, tuiPure, tuiQueryListChanges, } from '@taiga-ui/cdk'; -import { - TUI_DATA_LIST_HOST, - type TuiDataListHost, - TuiOptionComponent, - type TuiSizeL, - type TuiSizeXS, -} from '@taiga-ui/core'; +import type {TuiDataListHost, TuiSizeL, TuiSizeXS} from '@taiga-ui/core'; +import {TUI_DATA_LIST_HOST, TuiOptionComponent} from '@taiga-ui/core'; import {TUI_MULTI_SELECT_TEXTS} from '@taiga-ui/kit/tokens'; -import {combineLatest, map, type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {combineLatest, map} from 'rxjs'; @Component({ selector: 'tui-opt-group[tuiMultiSelectGroup]', diff --git a/projects/kit/components/multi-select/multi-select-group/multi-select-group.directive.ts b/projects/kit/components/multi-select/multi-select-group/multi-select-group.directive.ts index ed806d52c09e..6d9b92799ccc 100644 --- a/projects/kit/components/multi-select/multi-select-group/multi-select-group.directive.ts +++ b/projects/kit/components/multi-select/multi-select-group/multi-select-group.directive.ts @@ -1,11 +1,8 @@ import {Directive, forwardRef, Optional} from '@angular/core'; import {NG_VALUE_ACCESSOR, NgControl} from '@angular/forms'; import {EMPTY_FUNCTION, tuiArrayToggle} from '@taiga-ui/cdk'; -import { - TUI_DATA_LIST_HOST, - tuiAsOptionContent, - type TuiDataListHost, -} from '@taiga-ui/core'; +import type {TuiDataListHost} from '@taiga-ui/core'; +import {TUI_DATA_LIST_HOST, tuiAsOptionContent} from '@taiga-ui/core'; import {TuiMultiSelectOptionComponent} from '@taiga-ui/kit/components/multi-select-option'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; diff --git a/projects/kit/components/multi-select/multi-select.component.ts b/projects/kit/components/multi-select/multi-select.component.ts index 8bd4a5bded2a..e3238519bd22 100644 --- a/projects/kit/components/multi-select/multi-select.component.ts +++ b/projects/kit/components/multi-select/multi-select.component.ts @@ -10,48 +10,51 @@ import { TemplateRef, ViewChild, } from '@angular/core'; +import type { + TuiActiveZoneDirective, + TuiBooleanHandler, + TuiContext, + TuiFocusableElementAccessor, + TuiStringHandler, + TuiTypedMapper, +} from '@taiga-ui/cdk'; import { AbstractTuiMultipleControl, ALWAYS_TRUE_HANDLER, EMPTY_ARRAY, TUI_IS_MOBILE, - type TuiActiveZoneDirective, tuiArrayToggle, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiBooleanHandler, - type TuiContext, - type TuiFocusableElementAccessor, tuiIsNativeFocused, tuiIsString, tuiPure, - type TuiStringHandler, - type TuiTypedMapper, } from '@taiga-ui/cdk'; +import type { + TuiDataListAccessor, + TuiDataListHost, + TuiSizeL, + TuiSizeM, + TuiSizeS, +} from '@taiga-ui/core'; import { TEXTFIELD_CONTROLLER_PROVIDER, TUI_DATA_LIST_ACCESSOR, TUI_TEXTFIELD_WATCHED_CONTROLLER, tuiAsDataListHost, - type TuiDataListAccessor, TuiDataListDirective, - type TuiDataListHost, TuiHostedDropdownComponent, - type TuiSizeL, - type TuiSizeM, - type TuiSizeS, } from '@taiga-ui/core'; import {TuiStringifiableItem} from '@taiga-ui/kit/classes'; import {TUI_ARROW_MODE} from '@taiga-ui/kit/components/arrow'; import {TuiInputTagComponent} from '@taiga-ui/kit/components/input-tag'; import {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers'; -import {TUI_ITEMS_HANDLERS, type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import {TUI_ITEMS_HANDLERS} from '@taiga-ui/kit/tokens'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import { - TUI_MULTI_SELECT_OPTIONS, - type TuiMultiSelectOptions, -} from './multi-select.options'; +import type {TuiMultiSelectOptions} from './multi-select.options'; +import {TUI_MULTI_SELECT_OPTIONS} from './multi-select.options'; import {AbstractTuiNativeMultiSelect} from './native-multi-select/native-multi-select'; @Component({ diff --git a/projects/kit/components/multi-select/multi-select.directive.ts b/projects/kit/components/multi-select/multi-select.directive.ts index f7f9bd91b5ad..d937bafaebfd 100644 --- a/projects/kit/components/multi-select/multi-select.directive.ts +++ b/projects/kit/components/multi-select/multi-select.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; -import {type TuiBooleanHandler} from '@taiga-ui/cdk'; +import type {TuiBooleanHandler} from '@taiga-ui/cdk'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import type {TuiItemsHandlers} from '@taiga-ui/kit/tokens'; import type {TuiMultiSelectComponent} from './multi-select.component'; diff --git a/projects/kit/components/multi-select/multi-select.options.ts b/projects/kit/components/multi-select/multi-select.options.ts index 2588a2484abd..2d5584bc32c6 100644 --- a/projects/kit/components/multi-select/multi-select.options.ts +++ b/projects/kit/components/multi-select/multi-select.options.ts @@ -1,6 +1,7 @@ -import {type Provider} from '@angular/core'; -import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Provider} from '@angular/core'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiMultiSelectOptions { readonly rows: number; diff --git a/projects/kit/components/multi-select/native-multi-select/native-multi-select.ts b/projects/kit/components/multi-select/native-multi-select/native-multi-select.ts index 028ac3477a27..1829cd5252c1 100644 --- a/projects/kit/components/multi-select/native-multi-select/native-multi-select.ts +++ b/projects/kit/components/multi-select/native-multi-select/native-multi-select.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; -import {type TuiTypedMapper} from '@taiga-ui/cdk'; +import type {TuiTypedMapper} from '@taiga-ui/cdk'; import {AbstractTuiNativeSelect} from '@taiga-ui/kit/abstract'; -import {type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import type {TuiItemsHandlers} from '@taiga-ui/kit/tokens'; import type {TuiMultiSelectDirective} from '../multi-select.directive'; diff --git a/projects/kit/components/multi-select/test/multi-select.component.spec.ts b/projects/kit/components/multi-select/test/multi-select.component.spec.ts index f8dc897ba28c..92deb50ffc19 100644 --- a/projects/kit/components/multi-select/test/multi-select.component.spec.ts +++ b/projects/kit/components/multi-select/test/multi-select.component.spec.ts @@ -1,5 +1,7 @@ -import {Component, type DebugElement, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import { diff --git a/projects/kit/components/pagination/pagination.component.ts b/projects/kit/components/pagination/pagination.component.ts index 6e1b66fac5c1..167bf7271b13 100644 --- a/projects/kit/components/pagination/pagination.component.ts +++ b/projects/kit/components/pagination/pagination.component.ts @@ -1,3 +1,4 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, @@ -6,34 +7,33 @@ import { inject, Input, Output, - type QueryList, ViewChildren, } from '@angular/core'; +import type { + TuiContext, + TuiFocusableElementAccessor, + TuiNativeFocusableElement, +} from '@taiga-ui/cdk'; import { AbstractTuiInteractive, EMPTY_QUERY, TUI_FOCUSABLE_ITEM_ACCESSOR, tuiAsFocusableItemAccessor, tuiClamp, - type TuiContext, - type TuiFocusableElementAccessor, tuiIsNativeFocusedIn, - type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; -import { - TUI_SPIN_ICONS, - TuiAppearance, - type TuiBrightness, - type TuiButtonComponent, - type TuiHorizontalDirection, - TuiModeDirective, - type TuiSizeL, - type TuiSizeS, - type TuiSizeXS, +import type { + TuiBrightness, + TuiButtonComponent, + TuiHorizontalDirection, + TuiSizeL, + TuiSizeS, + TuiSizeXS, } from '@taiga-ui/core'; +import {TUI_SPIN_ICONS, TuiAppearance, TuiModeDirective} from '@taiga-ui/core'; import {TUI_PAGINATION_TEXTS} from '@taiga-ui/kit/tokens'; import {tuiHorizontalDirectionToNumber} from '@taiga-ui/kit/utils/math'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {EMPTY, map} from 'rxjs'; const DOTS_LENGTH = 1; diff --git a/projects/kit/components/pagination/test/pagination.component.spec.ts b/projects/kit/components/pagination/test/pagination.component.spec.ts index 87040a1fb0d2..963dbb41fb37 100644 --- a/projects/kit/components/pagination/test/pagination.component.spec.ts +++ b/projects/kit/components/pagination/test/pagination.component.spec.ts @@ -1,5 +1,6 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {tuiIsPresent} from '@taiga-ui/cdk'; import {TuiPaginationComponent, TuiPaginationModule} from '@taiga-ui/kit'; import {TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/kit/components/pdf-viewer/pdf-viewer.component.ts b/projects/kit/components/pdf-viewer/pdf-viewer.component.ts index a4c939234193..07bccde88027 100644 --- a/projects/kit/components/pdf-viewer/pdf-viewer.component.ts +++ b/projects/kit/components/pdf-viewer/pdf-viewer.component.ts @@ -1,5 +1,5 @@ import {ChangeDetectionStrategy, Component, HostListener, inject} from '@angular/core'; -import {type TuiPopover} from '@taiga-ui/cdk'; +import type {TuiPopover} from '@taiga-ui/cdk'; import { TUI_ANIMATIONS_SPEED, TUI_CLOSE_WORD, @@ -10,7 +10,7 @@ import { } from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; -import {type TuiPdfViewerOptions} from './pdf-viewer.options'; +import type {TuiPdfViewerOptions} from './pdf-viewer.options'; @Component({ selector: 'tui-pdf-viewer', diff --git a/projects/kit/components/pdf-viewer/pdf-viewer.directive.ts b/projects/kit/components/pdf-viewer/pdf-viewer.directive.ts index 26ab6fc5d7ef..3f9f28d9401c 100644 --- a/projects/kit/components/pdf-viewer/pdf-viewer.directive.ts +++ b/projects/kit/components/pdf-viewer/pdf-viewer.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {tuiAsPopover, TuiPopoverDirective} from '@taiga-ui/cdk'; -import {type TuiPdfViewerOptions} from './pdf-viewer.options'; +import type {TuiPdfViewerOptions} from './pdf-viewer.options'; import {TuiPdfViewerService} from './pdf-viewer.service'; @Directive({ diff --git a/projects/kit/components/pdf-viewer/pdf-viewer.options.ts b/projects/kit/components/pdf-viewer/pdf-viewer.options.ts index 962dceef4f0e..4566a16de41e 100644 --- a/projects/kit/components/pdf-viewer/pdf-viewer.options.ts +++ b/projects/kit/components/pdf-viewer/pdf-viewer.options.ts @@ -1,6 +1,6 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export const TUI_PDF_VIEWER_DEFAULT_OPTIONS: TuiPdfViewerOptions = { label: '', diff --git a/projects/kit/components/pdf-viewer/pdf-viewer.service.ts b/projects/kit/components/pdf-viewer/pdf-viewer.service.ts index 147c3379e42f..e2e81ae5b11f 100644 --- a/projects/kit/components/pdf-viewer/pdf-viewer.service.ts +++ b/projects/kit/components/pdf-viewer/pdf-viewer.service.ts @@ -1,12 +1,14 @@ import {inject, Injectable} from '@angular/core'; -import {type SafeResourceUrl} from '@angular/platform-browser'; -import {type TuiPopoverContext, TuiPopoverService} from '@taiga-ui/cdk'; +import type {SafeResourceUrl} from '@angular/platform-browser'; +import type {TuiPopoverContext} from '@taiga-ui/cdk'; +import {TuiPopoverService} from '@taiga-ui/cdk'; import {TUI_DIALOGS} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {type Observable} from 'rxjs'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; import {TuiPdfViewerComponent} from './pdf-viewer.component'; -import {TUI_PDF_VIEWER_OPTIONS, type TuiPdfViewerOptions} from './pdf-viewer.options'; +import type {TuiPdfViewerOptions} from './pdf-viewer.options'; +import {TUI_PDF_VIEWER_OPTIONS} from './pdf-viewer.options'; type Content = PolymorpheusContent< TuiPdfViewerOptions & TuiPopoverContext diff --git a/projects/kit/components/pdf-viewer/test/pdf-viewer.component.spec.ts b/projects/kit/components/pdf-viewer/test/pdf-viewer.component.spec.ts index b4be409b0cc8..4b946eb9facc 100644 --- a/projects/kit/components/pdf-viewer/test/pdf-viewer.component.spec.ts +++ b/projects/kit/components/pdf-viewer/test/pdf-viewer.component.spec.ts @@ -1,5 +1,7 @@ -import {Component, type DebugElement} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {DomSanitizer} from '@angular/platform-browser'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiRootModule} from '@taiga-ui/core'; diff --git a/projects/kit/components/progress/progress-bar/progress-bar.component.ts b/projects/kit/components/progress/progress-bar/progress-bar.component.ts index 2a4af07441ee..46a01127cd46 100644 --- a/projects/kit/components/progress/progress-bar/progress-bar.component.ts +++ b/projects/kit/components/progress/progress-bar/progress-bar.component.ts @@ -5,7 +5,8 @@ import { inject, Input, } from '@angular/core'; -import {MODE_PROVIDER, TUI_MODE, type TuiSizeXS, type TuiSizeXXL} from '@taiga-ui/core'; +import type {TuiSizeXS, TuiSizeXXL} from '@taiga-ui/core'; +import {MODE_PROVIDER, TUI_MODE} from '@taiga-ui/core'; @Component({ selector: 'progress[tuiProgressBar]', diff --git a/projects/kit/components/progress/progress-bar/progress-color-segments.directive.ts b/projects/kit/components/progress/progress-bar/progress-color-segments.directive.ts index 5fe363e5cccb..7cafc92bb668 100644 --- a/projects/kit/components/progress/progress-bar/progress-color-segments.directive.ts +++ b/projects/kit/components/progress/progress-bar/progress-color-segments.directive.ts @@ -1,13 +1,8 @@ import {Directive, ElementRef, inject, Input} from '@angular/core'; import {ResizeObserverService} from '@ng-web-apis/resize-observer'; import {tuiPure} from '@taiga-ui/cdk'; -import { - BehaviorSubject, - combineLatest, - distinctUntilChanged, - map, - type Observable, -} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {BehaviorSubject, combineLatest, distinctUntilChanged, map} from 'rxjs'; function calculateColorSegments(colors: string[], progressWidth: number): string { const segmentWidth = Math.ceil(progressWidth / colors.length); diff --git a/projects/kit/components/progress/progress-circle/progress-circle.component.ts b/projects/kit/components/progress/progress-circle/progress-circle.component.ts index 175e78660601..0695c05a3251 100644 --- a/projects/kit/components/progress/progress-circle/progress-circle.component.ts +++ b/projects/kit/components/progress/progress-circle/progress-circle.component.ts @@ -5,7 +5,8 @@ import { inject, Input, } from '@angular/core'; -import {MODE_PROVIDER, TUI_MODE, type TuiSizeXXL, type TuiSizeXXS} from '@taiga-ui/core'; +import type {TuiSizeXXL, TuiSizeXXS} from '@taiga-ui/core'; +import {MODE_PROVIDER, TUI_MODE} from '@taiga-ui/core'; import {delay, of} from 'rxjs'; @Component({ diff --git a/projects/kit/components/progress/progress-segmented/progress-segmented.component.ts b/projects/kit/components/progress/progress-segmented/progress-segmented.component.ts index db99ec0c4399..6d6d5e0497cd 100644 --- a/projects/kit/components/progress/progress-segmented/progress-segmented.component.ts +++ b/projects/kit/components/progress/progress-segmented/progress-segmented.component.ts @@ -6,7 +6,8 @@ import { Input, } from '@angular/core'; import {tuiIsString} from '@taiga-ui/cdk'; -import {MODE_PROVIDER, TUI_MODE, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeS} from '@taiga-ui/core'; +import {MODE_PROVIDER, TUI_MODE} from '@taiga-ui/core'; /** * @deprecated Use {@link http://taiga-ui.dev/experimental/progress-segmented TuiProgressSegmentedModule} (from `@taiga-ui/experimental`) diff --git a/projects/kit/components/prompt/prompt.component.ts b/projects/kit/components/prompt/prompt.component.ts index da7a777c7aaf..2a8b52d9eea8 100644 --- a/projects/kit/components/prompt/prompt.component.ts +++ b/projects/kit/components/prompt/prompt.component.ts @@ -1,12 +1,10 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {TUI_IS_MOBILE} from '@taiga-ui/cdk'; -import {TuiAppearance, type TuiDialogContext} from '@taiga-ui/core'; +import type {TuiDialogContext} from '@taiga-ui/core'; +import {TuiAppearance} from '@taiga-ui/core'; import {TUI_PROMPT_WORDS} from '@taiga-ui/kit/tokens'; -import { - POLYMORPHEUS_CONTEXT, - PolymorpheusComponent, - type PolymorpheusContent, -} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import {POLYMORPHEUS_CONTEXT, PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; export interface TuiPromptData { readonly content?: PolymorpheusContent; diff --git a/projects/kit/components/push/push-alert.component.ts b/projects/kit/components/push/push-alert.component.ts index ab8cd7d751fa..7105865cd548 100644 --- a/projects/kit/components/push/push-alert.component.ts +++ b/projects/kit/components/push/push-alert.component.ts @@ -1,5 +1,5 @@ import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; -import {type TuiPopover} from '@taiga-ui/cdk'; +import type {TuiPopover} from '@taiga-ui/cdk'; import { TUI_ANIMATIONS_SPEED, tuiFadeIn, @@ -9,7 +9,7 @@ import { } from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT} from '@tinkoff/ng-polymorpheus'; -import {type TuiPushOptions} from './push.options'; +import type {TuiPushOptions} from './push.options'; import {TuiPushAlertDirective} from './push-alert.directive'; @Component({ diff --git a/projects/kit/components/push/push.directive.ts b/projects/kit/components/push/push.directive.ts index 6eb88165a8e3..84e72fb1e06b 100644 --- a/projects/kit/components/push/push.directive.ts +++ b/projects/kit/components/push/push.directive.ts @@ -1,9 +1,6 @@ import {Directive, inject} from '@angular/core'; -import { - TUI_BUTTON_OPTIONS, - type TuiButtonOptions, - TuiModeDirective, -} from '@taiga-ui/core'; +import type {TuiButtonOptions} from '@taiga-ui/core'; +import {TUI_BUTTON_OPTIONS, TuiModeDirective} from '@taiga-ui/core'; import {Subject} from 'rxjs'; @Directive({ diff --git a/projects/kit/components/push/push.options.ts b/projects/kit/components/push/push.options.ts index 065e5221df50..492e26e482f8 100644 --- a/projects/kit/components/push/push.options.ts +++ b/projects/kit/components/push/push.options.ts @@ -1,4 +1,4 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiPushOptions { diff --git a/projects/kit/components/push/push.service.ts b/projects/kit/components/push/push.service.ts index 2ecb836abbbc..3de832aec600 100644 --- a/projects/kit/components/push/push.service.ts +++ b/projects/kit/components/push/push.service.ts @@ -2,7 +2,8 @@ import {inject, Injectable} from '@angular/core'; import {TuiPopoverService} from '@taiga-ui/cdk'; import {TUI_ALERTS} from '@taiga-ui/core'; -import {TUI_PUSH_OPTIONS, type TuiPushOptions} from './push.options'; +import type {TuiPushOptions} from './push.options'; +import {TUI_PUSH_OPTIONS} from './push.options'; import {TuiPushAlertComponent} from './push-alert.component'; @Injectable({ diff --git a/projects/kit/components/push/test/push.component.spec.ts b/projects/kit/components/push/test/push.component.spec.ts index 19d499374aed..d9088c355a94 100644 --- a/projects/kit/components/push/test/push.component.spec.ts +++ b/projects/kit/components/push/test/push.component.spec.ts @@ -1,5 +1,7 @@ -import {Component, type DebugElement} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiRootModule} from '@taiga-ui/core'; import {TuiPageObject} from '@taiga-ui/testing'; diff --git a/projects/kit/components/radio-labeled/radio-labeled.component.ts b/projects/kit/components/radio-labeled/radio-labeled.component.ts index 5824a52c1ca7..27ce2e2f29ab 100644 --- a/projects/kit/components/radio-labeled/radio-labeled.component.ts +++ b/projects/kit/components/radio-labeled/radio-labeled.component.ts @@ -5,16 +5,19 @@ import { Input, ViewChild, } from '@angular/core'; +import type { + TuiFocusableElementAccessor, + TuiIdentityMatcher, + TuiNativeFocusableElement, +} from '@taiga-ui/cdk'; import { AbstractTuiNullableControl, TUI_DEFAULT_IDENTITY_MATCHER, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiFocusableElementAccessor, - type TuiIdentityMatcher, - type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; -import {MODE_PROVIDER, TUI_MODE, type TuiSizeL} from '@taiga-ui/core'; +import type {TuiSizeL} from '@taiga-ui/core'; +import {MODE_PROVIDER, TUI_MODE} from '@taiga-ui/core'; import {TUI_RADIO_OPTIONS, TuiRadioComponent} from '@taiga-ui/kit/components/radio'; @Component({ diff --git a/projects/kit/components/radio-list/radio-list.component.ts b/projects/kit/components/radio-list/radio-list.component.ts index 97654cbf29fd..58e2eeec2b85 100644 --- a/projects/kit/components/radio-list/radio-list.component.ts +++ b/projects/kit/components/radio-list/radio-list.component.ts @@ -1,3 +1,4 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, @@ -5,9 +6,13 @@ import { HostBinding, inject, Input, - type QueryList, ViewChildren, } from '@angular/core'; +import type { + TuiBooleanHandler, + TuiIdentityMatcher, + TuiNativeFocusableElement, +} from '@taiga-ui/cdk'; import { AbstractTuiNullableControl, ALWAYS_FALSE_HANDLER, @@ -15,18 +20,11 @@ import { TUI_DEFAULT_IDENTITY_MATCHER, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiBooleanHandler, - type TuiIdentityMatcher, tuiIsNativeFocusedIn, - type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; -import { - type TuiOrientation, - type TuiSizeL, - type TuiValueContentContext, -} from '@taiga-ui/core'; +import type {TuiOrientation, TuiSizeL, TuiValueContentContext} from '@taiga-ui/core'; import {TuiRadioLabeledComponent} from '@taiga-ui/kit/components/radio-labeled'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; @Component({ selector: 'tui-radio-list', diff --git a/projects/kit/components/radio/radio.component.ts b/projects/kit/components/radio/radio.component.ts index ecd6d00f9b9c..e353a5e3dcd8 100644 --- a/projects/kit/components/radio/radio.component.ts +++ b/projects/kit/components/radio/radio.component.ts @@ -1,23 +1,25 @@ +import type {ElementRef} from '@angular/core'; import { ChangeDetectionStrategy, Component, - type ElementRef, HostBinding, inject, Input, ViewChild, } from '@angular/core'; +import type { + TuiFocusableElementAccessor, + TuiIdentityMatcher, + TuiNativeFocusableElement, +} from '@taiga-ui/cdk'; import { AbstractTuiNullableControl, TUI_DEFAULT_IDENTITY_MATCHER, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiFocusableElementAccessor, - type TuiIdentityMatcher, tuiIsNativeFocused, - type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; -import {type TuiSizeL} from '@taiga-ui/core'; +import type {TuiSizeL} from '@taiga-ui/core'; import {TuiRadioGroupComponent} from '@taiga-ui/kit/components/radio-group'; import {TUI_RADIO_OPTIONS} from './radio.options'; diff --git a/projects/kit/components/radio/radio.options.ts b/projects/kit/components/radio/radio.options.ts index 775993ff6f4f..812a98f12b6b 100644 --- a/projects/kit/components/radio/radio.options.ts +++ b/projects/kit/components/radio/radio.options.ts @@ -1,6 +1,7 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiAppearance, type TuiSizeL} from '@taiga-ui/core'; +import type {TuiSizeL} from '@taiga-ui/core'; +import {TuiAppearance} from '@taiga-ui/core'; export interface TuiRadioOptions { readonly appearances: Readonly<{ diff --git a/projects/kit/components/range/range.component.ts b/projects/kit/components/range/range.component.ts index f5ba9b888507..8bf8d596ec38 100644 --- a/projects/kit/components/range/range.component.ts +++ b/projects/kit/components/range/range.component.ts @@ -1,3 +1,4 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, @@ -6,22 +7,20 @@ import { HostListener, inject, Input, - type QueryList, ViewChildren, } from '@angular/core'; +import type {TuiFocusableElementAccessor, TuiNativeFocusableElement} from '@taiga-ui/cdk'; import { AbstractTuiControl, EMPTY_QUERY, tuiClamp, - type TuiFocusableElementAccessor, tuiIsNativeFocusedIn, - type TuiNativeFocusableElement, tuiPure, tuiQuantize, } from '@taiga-ui/cdk'; -import {type TuiSizeS, type TuiWithOptionalMinMax} from '@taiga-ui/core'; +import type {TuiSizeS, TuiWithOptionalMinMax} from '@taiga-ui/core'; import {TuiSliderComponent} from '@taiga-ui/kit/components/slider'; -import {type TuiKeySteps} from '@taiga-ui/kit/types'; +import type {TuiKeySteps} from '@taiga-ui/kit/types'; import { tuiKeyStepValueToPercentage, tuiPercentageToKeyStepValue, diff --git a/projects/kit/components/rating/rating.component.ts b/projects/kit/components/rating/rating.component.ts index 09017ba5707e..1fd40fe01793 100644 --- a/projects/kit/components/rating/rating.component.ts +++ b/projects/kit/components/rating/rating.component.ts @@ -1,18 +1,18 @@ +import type {ElementRef} from '@angular/core'; import { ChangeDetectionStrategy, Component, - type ElementRef, HostListener, inject, Input, ViewChild, } from '@angular/core'; +import type {TuiFocusableElementAccessor} from '@taiga-ui/cdk'; import { AbstractTuiControl, tuiAsControl, tuiAsFocusableItemAccessor, tuiClamp, - type TuiFocusableElementAccessor, tuiIsNativeFocused, } from '@taiga-ui/cdk'; diff --git a/projects/kit/components/rating/rating.options.ts b/projects/kit/components/rating/rating.options.ts index ab9a8c619d2e..25ca2bd6474f 100644 --- a/projects/kit/components/rating/rating.options.ts +++ b/projects/kit/components/rating/rating.options.ts @@ -1,4 +1,4 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiRatingOptions { diff --git a/projects/kit/components/rating/tests/rating.component.spec.ts b/projects/kit/components/rating/tests/rating.component.spec.ts index 004916aebd20..0247d944b936 100644 --- a/projects/kit/components/rating/tests/rating.component.spec.ts +++ b/projects/kit/components/rating/tests/rating.component.spec.ts @@ -1,5 +1,6 @@ import {Component, Directive, inject, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormBuilder, FormsModule, ReactiveFormsModule} from '@angular/forms'; import {TuiRatingComponent, TuiRatingModule} from '@taiga-ui/kit'; diff --git a/projects/kit/components/routable-dialog/generate-dialogable-route.ts b/projects/kit/components/routable-dialog/generate-dialogable-route.ts index b074e69e94ce..2030f5120d2b 100644 --- a/projects/kit/components/routable-dialog/generate-dialogable-route.ts +++ b/projects/kit/components/routable-dialog/generate-dialogable-route.ts @@ -1,6 +1,6 @@ import {type Type} from '@angular/core'; -import {DefaultExport, type Route} from '@angular/router'; -import {type TuiDialogOptions} from '@taiga-ui/core'; +import type {DefaultExport, Route} from '@angular/router'; +import type {TuiDialogOptions} from '@taiga-ui/core'; export function tuiGenerateDialogableRoute( component: Type | (() => Promise> | Type>), diff --git a/projects/kit/components/routable-dialog/test/routable-dialog.component.spec.ts b/projects/kit/components/routable-dialog/test/routable-dialog.component.spec.ts index 8450300c334b..1d7095dedf46 100644 --- a/projects/kit/components/routable-dialog/test/routable-dialog.component.spec.ts +++ b/projects/kit/components/routable-dialog/test/routable-dialog.component.spec.ts @@ -1,13 +1,14 @@ -import {Component, type Provider} from '@angular/core'; -import {type ComponentFixture, fakeAsync, TestBed} from '@angular/core/testing'; -import { - ActivatedRoute, - type ActivatedRouteSnapshot, - type Data, - type NavigationExtras, - Router, - type UrlSegment, +import type {Provider} from '@angular/core'; +import {Component} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {fakeAsync, TestBed} from '@angular/core/testing'; +import type { + ActivatedRouteSnapshot, + Data, + NavigationExtras, + UrlSegment, } from '@angular/router'; +import {ActivatedRoute, Router} from '@angular/router'; import {TuiDialogService} from '@taiga-ui/core'; import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; import {EMPTY, NEVER} from 'rxjs'; diff --git a/projects/kit/components/select-option/select-option.component.ts b/projects/kit/components/select-option/select-option.component.ts index 74adafbb2520..fa93c40fff02 100644 --- a/projects/kit/components/select-option/select-option.component.ts +++ b/projects/kit/components/select-option/select-option.component.ts @@ -1,26 +1,18 @@ -import { - ChangeDetectionStrategy, - Component, - type DoCheck, - ElementRef, - inject, - type OnInit, - type TemplateRef, -} from '@angular/core'; +import type {DoCheck, OnInit, TemplateRef} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ElementRef, inject} from '@angular/core'; import {NgControl} from '@angular/forms'; +import type {TuiContext, TuiIdentityMatcher} from '@taiga-ui/cdk'; import { AbstractTuiControl, TUI_DEFAULT_IDENTITY_MATCHER, - type TuiContext, - type TuiIdentityMatcher, tuiIsPresent, tuiTypedFromEvent, } from '@taiga-ui/cdk'; +import type {TuiDataListHost} from '@taiga-ui/core'; import { TUI_COMMON_ICONS, TUI_DATA_LIST_HOST, TuiDataListComponent, - type TuiDataListHost, TuiOptionComponent, } from '@taiga-ui/core'; import {POLYMORPHEUS_CONTEXT, PolymorpheusComponent} from '@tinkoff/ng-polymorpheus'; diff --git a/projects/kit/components/select/native-select/native-select-group.component.ts b/projects/kit/components/select/native-select/native-select-group.component.ts index 4fae8abd67cc..4ceb23f78ecb 100644 --- a/projects/kit/components/select/native-select/native-select-group.component.ts +++ b/projects/kit/components/select/native-select/native-select-group.component.ts @@ -1,7 +1,7 @@ import {ChangeDetectionStrategy, Component, Input, TemplateRef} from '@angular/core'; import {tuiAsDataList} from '@taiga-ui/core'; import {AbstractTuiNativeSelect} from '@taiga-ui/kit/abstract'; -import {type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import type {TuiItemsHandlers} from '@taiga-ui/kit/tokens'; import type {TuiSelectDirective} from '../select.directive'; diff --git a/projects/kit/components/select/native-select/native-select.component.ts b/projects/kit/components/select/native-select/native-select.component.ts index 4399ecade8a1..1b536ebfafe1 100644 --- a/projects/kit/components/select/native-select/native-select.component.ts +++ b/projects/kit/components/select/native-select/native-select.component.ts @@ -1,7 +1,7 @@ import {ChangeDetectionStrategy, Component, Input, TemplateRef} from '@angular/core'; import {tuiAsDataList} from '@taiga-ui/core'; import {AbstractTuiNativeSelect} from '@taiga-ui/kit/abstract'; -import {type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import type {TuiItemsHandlers} from '@taiga-ui/kit/tokens'; import type {TuiSelectDirective} from '../select.directive'; diff --git a/projects/kit/components/select/select.component.ts b/projects/kit/components/select/select.component.ts index cd0588fe7b21..720a95de7b0b 100644 --- a/projects/kit/components/select/select.component.ts +++ b/projects/kit/components/select/select.component.ts @@ -8,38 +8,44 @@ import { TemplateRef, ViewChild, } from '@angular/core'; +import type { + TuiActiveZoneDirective, + TuiContext, + TuiFocusableElementAccessor, +} from '@taiga-ui/cdk'; import { AbstractTuiNullableControl, TUI_IS_MOBILE, - type TuiActiveZoneDirective, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiContext, - type TuiFocusableElementAccessor, tuiIsNativeFocused, } from '@taiga-ui/cdk'; +import type { + TuiDataListHost, + TuiSizeL, + TuiSizeM, + TuiSizeS, + TuiValueContentContext, +} from '@taiga-ui/core'; import { TUI_TEXTFIELD_CLEANER, TUI_TEXTFIELD_SIZE, tuiAsDataListHost, tuiAsOptionContent, TuiDataListDirective, - type TuiDataListHost, TuiHostedDropdownComponent, TuiPrimitiveTextfieldComponent, - type TuiSizeL, - type TuiSizeM, - type TuiSizeS, - type TuiValueContentContext, } from '@taiga-ui/core'; import {AbstractTuiNativeSelect} from '@taiga-ui/kit/abstract'; import {TUI_ARROW_MODE} from '@taiga-ui/kit/components/arrow'; import {TUI_SELECT_OPTION} from '@taiga-ui/kit/components/select-option'; import {FIXED_DROPDOWN_CONTROLLER_PROVIDER} from '@taiga-ui/kit/providers'; -import {TUI_ITEMS_HANDLERS, type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import {TUI_ITEMS_HANDLERS} from '@taiga-ui/kit/tokens'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {TUI_SELECT_OPTIONS, type TuiSelectOptions} from './select.options'; +import type {TuiSelectOptions} from './select.options'; +import {TUI_SELECT_OPTIONS} from './select.options'; @Component({ selector: 'tui-select', diff --git a/projects/kit/components/select/select.directive.ts b/projects/kit/components/select/select.directive.ts index a686603465e7..c9e16b6644a0 100644 --- a/projects/kit/components/select/select.directive.ts +++ b/projects/kit/components/select/select.directive.ts @@ -1,8 +1,8 @@ import {Directive} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {type TuiItemsHandlers} from '@taiga-ui/kit/tokens'; +import type {TuiItemsHandlers} from '@taiga-ui/kit/tokens'; -import {type TuiSelectComponent} from './select.component'; +import type {TuiSelectComponent} from './select.component'; @Directive({ selector: 'tui-select', diff --git a/projects/kit/components/select/select.options.ts b/projects/kit/components/select/select.options.ts index 92e1a4e7cdd3..53b97b86107d 100644 --- a/projects/kit/components/select/select.options.ts +++ b/projects/kit/components/select/select.options.ts @@ -1,7 +1,7 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiValueContentContext} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiValueContentContext} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiSelectOptions { readonly valueContent: PolymorpheusContent>; diff --git a/projects/kit/components/select/test/select.component.spec.ts b/projects/kit/components/select/test/select.component.spec.ts index f7a3eb1482cd..7b023c74a077 100644 --- a/projects/kit/components/select/test/select.component.spec.ts +++ b/projects/kit/components/select/test/select.component.spec.ts @@ -1,8 +1,10 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; -import {TUI_DEFAULT_IDENTITY_MATCHER, type TuiIdentityMatcher} from '@taiga-ui/cdk'; +import type {TuiIdentityMatcher} from '@taiga-ui/cdk'; +import {TUI_DEFAULT_IDENTITY_MATCHER} from '@taiga-ui/cdk'; import { TuiDataListModule, TuiHintModule, diff --git a/projects/kit/components/slider/helpers/slider-key-steps.directive.ts b/projects/kit/components/slider/helpers/slider-key-steps.directive.ts index afc09a584299..d035ee41ebe8 100644 --- a/projects/kit/components/slider/helpers/slider-key-steps.directive.ts +++ b/projects/kit/components/slider/helpers/slider-key-steps.directive.ts @@ -6,14 +6,9 @@ import { inject, Input, } from '@angular/core'; -import { - AbstractTuiControl, - tuiAssert, - tuiClamp, - type TuiFocusableElementAccessor, - tuiIsNativeFocused, -} from '@taiga-ui/cdk'; -import {type TuiKeySteps} from '@taiga-ui/kit/types'; +import type {TuiFocusableElementAccessor} from '@taiga-ui/cdk'; +import {AbstractTuiControl, tuiAssert, tuiClamp, tuiIsNativeFocused} from '@taiga-ui/cdk'; +import type {TuiKeySteps} from '@taiga-ui/kit/types'; import { tuiKeyStepValueToPercentage, tuiPercentageToKeyStepValue, diff --git a/projects/kit/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.ts b/projects/kit/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.ts index c93d2a5599e4..03df98d50fae 100644 --- a/projects/kit/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.ts +++ b/projects/kit/components/slider/helpers/slider-thumb-label/slider-thumb-label.component.ts @@ -1,13 +1,9 @@ /// -import { - type AfterContentInit, - ChangeDetectionStrategy, - Component, - ContentChild, -} from '@angular/core'; +import type {AfterContentInit} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ContentChild} from '@angular/core'; import {NgControl} from '@angular/forms'; import {tuiAssert} from '@taiga-ui/cdk'; -import {type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeS} from '@taiga-ui/core'; import {TuiSliderComponent} from '../../slider.component'; diff --git a/projects/kit/components/slider/slider.component.ts b/projects/kit/components/slider/slider.component.ts index 7c9c5c003f9c..bd7ee5c10b66 100644 --- a/projects/kit/components/slider/slider.component.ts +++ b/projects/kit/components/slider/slider.component.ts @@ -10,7 +10,7 @@ import { } from '@angular/core'; import {NgControl, NgModel} from '@angular/forms'; import {tuiPure, tuiWatch} from '@taiga-ui/cdk'; -import {type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeS} from '@taiga-ui/core'; import {take} from 'rxjs'; import {TuiSliderKeyStepsDirective} from './helpers/slider-key-steps.directive'; diff --git a/projects/kit/components/slider/slider.options.ts b/projects/kit/components/slider/slider.options.ts index f06bb0523cac..f57874fb8654 100644 --- a/projects/kit/components/slider/slider.options.ts +++ b/projects/kit/components/slider/slider.options.ts @@ -1,6 +1,6 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeS} from '@taiga-ui/core'; export interface TuiSliderOptions { readonly size: TuiSizeS; diff --git a/projects/kit/components/slider/test/slider-key-steps.spec.ts b/projects/kit/components/slider/test/slider-key-steps.spec.ts index 479bd3dfe400..1bf0756d53de 100644 --- a/projects/kit/components/slider/test/slider-key-steps.spec.ts +++ b/projects/kit/components/slider/test/slider-key-steps.spec.ts @@ -1,7 +1,9 @@ import {Component, ElementRef, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; -import {type TuiKeySteps, TuiSliderModule} from '@taiga-ui/kit'; +import type {TuiKeySteps} from '@taiga-ui/kit'; +import {TuiSliderModule} from '@taiga-ui/kit'; describe('TuiSliderKeyStepsDirective', () => { @Component({ diff --git a/projects/kit/components/slider/test/slider.spec.ts b/projects/kit/components/slider/test/slider.spec.ts index 1fef7c894274..2b8d9609e9a4 100644 --- a/projects/kit/components/slider/test/slider.spec.ts +++ b/projects/kit/components/slider/test/slider.spec.ts @@ -1,7 +1,9 @@ import {Component, ElementRef, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, FormsModule, ReactiveFormsModule} from '@angular/forms'; -import {type TuiSliderComponent, TuiSliderModule} from '@taiga-ui/kit'; +import type {TuiSliderComponent} from '@taiga-ui/kit'; +import {TuiSliderModule} from '@taiga-ui/kit'; describe('Slider', () => { @Component({ diff --git a/projects/kit/components/stepper/step/step.component.ts b/projects/kit/components/stepper/step/step.component.ts index 071302c1ffff..40a216490b7f 100644 --- a/projects/kit/components/stepper/step/step.component.ts +++ b/projects/kit/components/stepper/step/step.component.ts @@ -10,7 +10,8 @@ import { import {RouterLinkActive} from '@angular/router'; import {TuiDestroyService, TuiFocusVisibleService} from '@taiga-ui/cdk'; import {TUI_COMMON_ICONS} from '@taiga-ui/core'; -import {EMPTY, filter, type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {EMPTY, filter} from 'rxjs'; import {TuiStepperComponent} from '../stepper.component'; diff --git a/projects/kit/components/stepper/stepper.component.ts b/projects/kit/components/stepper/stepper.component.ts index 129fa8530fc9..212161d53831 100644 --- a/projects/kit/components/stepper/stepper.component.ts +++ b/projects/kit/components/stepper/stepper.component.ts @@ -1,3 +1,4 @@ +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, ChangeDetectorRef, @@ -11,7 +12,6 @@ import { inject, Input, Output, - type QueryList, } from '@angular/core'; import {ResizeObserverService} from '@ng-web-apis/resize-observer'; import { @@ -24,8 +24,10 @@ import { tuiQueryListChanges, TuiScrollService, } from '@taiga-ui/cdk'; -import {TUI_ANIMATIONS_SPEED, tuiGetDuration, type TuiOrientation} from '@taiga-ui/core'; -import {delay, type Observable, takeUntil} from 'rxjs'; +import type {TuiOrientation} from '@taiga-ui/core'; +import {TUI_ANIMATIONS_SPEED, tuiGetDuration} from '@taiga-ui/core'; +import type {Observable} from 'rxjs'; +import {delay, takeUntil} from 'rxjs'; import {TuiStepComponent} from './step/step.component'; diff --git a/projects/kit/components/tabs/tab/tab.component.ts b/projects/kit/components/tabs/tab/tab.component.ts index bc9cfbfef005..06c124456fd2 100644 --- a/projects/kit/components/tabs/tab/tab.component.ts +++ b/projects/kit/components/tabs/tab/tab.component.ts @@ -1,10 +1,10 @@ +import type {OnDestroy} from '@angular/core'; import { ChangeDetectionStrategy, Component, ElementRef, HostBinding, inject, - type OnDestroy, } from '@angular/core'; import {RouterLinkActive} from '@angular/router'; import {tuiIsNativeFocused} from '@taiga-ui/cdk'; diff --git a/projects/kit/components/tabs/tab/tab.providers.ts b/projects/kit/components/tabs/tab/tab.providers.ts index 5cd75a7ab76a..44705b9cf391 100644 --- a/projects/kit/components/tabs/tab/tab.providers.ts +++ b/projects/kit/components/tabs/tab/tab.providers.ts @@ -1,9 +1,11 @@ -import {ElementRef, inject, InjectionToken, type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {ElementRef, inject, InjectionToken} from '@angular/core'; import {RouterLinkActive} from '@angular/router'; import {MutationObserverService} from '@ng-web-apis/mutation-observer'; import {TuiDestroyService, tuiTypedFromEvent} from '@taiga-ui/cdk'; import {MODE_PROVIDER} from '@taiga-ui/core'; -import {EMPTY, filter, map, merge, type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {EMPTY, filter, map, merge} from 'rxjs'; /** * Stream of tab activation events */ diff --git a/projects/kit/components/tabs/tabs-vertical/tabs-vertical.component.ts b/projects/kit/components/tabs/tabs-vertical/tabs-vertical.component.ts index b4aed9c59c84..0a1d11f6c012 100644 --- a/projects/kit/components/tabs/tabs-vertical/tabs-vertical.component.ts +++ b/projects/kit/components/tabs/tabs-vertical/tabs-vertical.component.ts @@ -6,7 +6,7 @@ import { inject, Input, } from '@angular/core'; -import {type TuiHorizontalDirection} from '@taiga-ui/core'; +import type {TuiHorizontalDirection} from '@taiga-ui/core'; import {TuiTabsDirective} from '../tabs.directive'; diff --git a/projects/kit/components/tabs/tabs-with-more/tabs-with-more.component.ts b/projects/kit/components/tabs/tabs-with-more/tabs-with-more.component.ts index 30503035efb6..5b4655e49dac 100644 --- a/projects/kit/components/tabs/tabs-with-more/tabs-with-more.component.ts +++ b/projects/kit/components/tabs/tabs-with-more/tabs-with-more.component.ts @@ -1,5 +1,5 @@ +import type {AfterViewInit, QueryList} from '@angular/core'; import { - type AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, @@ -10,15 +10,13 @@ import { inject, Input, Output, - type QueryList, TemplateRef, ViewChild, } from '@angular/core'; +import type {TuiActiveZoneDirective, TuiContext} from '@taiga-ui/cdk'; import { EMPTY_QUERY, - type TuiActiveZoneDirective, tuiClamp, - type TuiContext, tuiGetClosestFocusable, tuiIsElement, tuiIsNativeFocused, @@ -27,7 +25,7 @@ import { } from '@taiga-ui/cdk'; import {TUI_ARROW_OPTIONS} from '@taiga-ui/kit/components/arrow'; import {TUI_MORE_WORD, TUI_TAB_MARGIN} from '@taiga-ui/kit/tokens'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {filter, map} from 'rxjs'; import {TuiTabComponent} from '../tab/tab.component'; diff --git a/projects/kit/components/tabs/tabs-with-more/tabs-with-more.providers.ts b/projects/kit/components/tabs/tabs-with-more/tabs-with-more.providers.ts index 5f755b30648a..562a08c6fde2 100644 --- a/projects/kit/components/tabs/tabs-with-more/tabs-with-more.providers.ts +++ b/projects/kit/components/tabs/tabs-with-more/tabs-with-more.providers.ts @@ -1,10 +1,6 @@ import {DOCUMENT} from '@angular/common'; -import { - ChangeDetectorRef, - ElementRef, - InjectionToken, - type Provider, -} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {ChangeDetectorRef, ElementRef, InjectionToken} from '@angular/core'; import { MUTATION_OBSERVER_INIT, MutationObserverService, @@ -12,15 +8,8 @@ import { import {ResizeObserverService} from '@ng-web-apis/resize-observer'; import {TuiDestroyService} from '@taiga-ui/cdk'; import {tuiDropdownOptionsProvider} from '@taiga-ui/core'; -import { - debounceTime, - filter, - merge, - type Observable, - startWith, - takeUntil, - tap, -} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {debounceTime, filter, merge, startWith, takeUntil, tap} from 'rxjs'; export const TUI_TABS_REFRESH = new InjectionToken>( '[TUI_TABS_REFRESH]', diff --git a/projects/kit/components/tabs/tabs.directive.ts b/projects/kit/components/tabs/tabs.directive.ts index e30979c57115..0f9c907d347e 100644 --- a/projects/kit/components/tabs/tabs.directive.ts +++ b/projects/kit/components/tabs/tabs.directive.ts @@ -1,5 +1,5 @@ +import type {AfterViewChecked} from '@angular/core'; import { - type AfterViewChecked, Directive, ElementRef, EventEmitter, diff --git a/projects/kit/components/tabs/tabs.options.ts b/projects/kit/components/tabs/tabs.options.ts index 814aa665f768..6832d5801c53 100644 --- a/projects/kit/components/tabs/tabs.options.ts +++ b/projects/kit/components/tabs/tabs.options.ts @@ -1,4 +1,4 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; export interface TuiTabsOptions { diff --git a/projects/kit/components/tabs/tabs/tabs.component.ts b/projects/kit/components/tabs/tabs/tabs.component.ts index 6a7f20d119bb..96535a0e3a06 100644 --- a/projects/kit/components/tabs/tabs/tabs.component.ts +++ b/projects/kit/components/tabs/tabs/tabs.component.ts @@ -1,5 +1,5 @@ +import type {AfterViewChecked, QueryList} from '@angular/core'; import { - type AfterViewChecked, ChangeDetectionStrategy, ChangeDetectorRef, Component, @@ -10,7 +10,6 @@ import { HostListener, inject, Input, - type QueryList, } from '@angular/core'; import { MUTATION_OBSERVER_INIT, diff --git a/projects/kit/components/tag/tag.component.ts b/projects/kit/components/tag/tag.component.ts index 46edeb17b49a..aba73bb4a464 100644 --- a/projects/kit/components/tag/tag.component.ts +++ b/projects/kit/components/tag/tag.component.ts @@ -10,18 +10,11 @@ import { Output, ViewChild, } from '@angular/core'; -import { - MODE_PROVIDER, - TUI_COMMON_ICONS, - TUI_MODE, - tuiSizeBigger, - type TuiSizeL, - type TuiSizeS, - type TuiSizeXS, -} from '@taiga-ui/core'; -import {type TuiStatus} from '@taiga-ui/kit/types'; +import type {TuiSizeL, TuiSizeS, TuiSizeXS} from '@taiga-ui/core'; +import {MODE_PROVIDER, TUI_COMMON_ICONS, TUI_MODE, tuiSizeBigger} from '@taiga-ui/core'; +import type {TuiStatus} from '@taiga-ui/kit/types'; import {tuiStringHashToHsl} from '@taiga-ui/kit/utils/format'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TUI_TAG_OPTIONS} from './tag.options'; diff --git a/projects/kit/components/tag/tag.options.ts b/projects/kit/components/tag/tag.options.ts index 18453841031b..19a13b024457 100644 --- a/projects/kit/components/tag/tag.options.ts +++ b/projects/kit/components/tag/tag.options.ts @@ -1,7 +1,7 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; -import {type TuiStatus} from '@taiga-ui/kit/types'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import type {TuiStatus} from '@taiga-ui/kit/types'; export interface TuiTagOptions { readonly autoColor: boolean; diff --git a/projects/kit/components/tag/test/tag-options.spec.ts b/projects/kit/components/tag/test/tag-options.spec.ts index 4a65ec5bff05..d03b26359c92 100644 --- a/projects/kit/components/tag/test/tag-options.spec.ts +++ b/projects/kit/components/tag/test/tag-options.spec.ts @@ -1,5 +1,6 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {TuiTagComponent, TuiTagModule, tuiTagOptionsProvider} from '@taiga-ui/kit'; describe('Tag component options', () => { diff --git a/projects/kit/components/tag/test/tag.component.spec.ts b/projects/kit/components/tag/test/tag.component.spec.ts index 45634f496ed4..54eba97a5e0d 100644 --- a/projects/kit/components/tag/test/tag.component.spec.ts +++ b/projects/kit/components/tag/test/tag.component.spec.ts @@ -1,7 +1,9 @@ -import {type HarnessLoader, TestKey} from '@angular/cdk/testing'; +import type {HarnessLoader} from '@angular/cdk/testing'; +import {TestKey} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {TuiTagComponent, TuiTagModule} from '@taiga-ui/kit'; import {TuiTagHarness} from '@taiga-ui/testing'; diff --git a/projects/kit/components/textarea/test/textarea.component.spec.ts b/projects/kit/components/textarea/test/textarea.component.spec.ts index 843a88ac237b..976d098e1cdf 100644 --- a/projects/kit/components/textarea/test/textarea.component.spec.ts +++ b/projects/kit/components/textarea/test/textarea.component.spec.ts @@ -1,5 +1,7 @@ -import {Component, type DebugElement, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import {Component, ViewChild} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {tuiPx} from '@taiga-ui/cdk'; diff --git a/projects/kit/components/textarea/textarea.component.ts b/projects/kit/components/textarea/textarea.component.ts index 9bd45e287364..908ea006617a 100644 --- a/projects/kit/components/textarea/textarea.component.ts +++ b/projects/kit/components/textarea/textarea.component.ts @@ -9,15 +9,15 @@ import { Input, ViewChild, } from '@angular/core'; +import type {TuiContext, TuiFocusableElementAccessor} from '@taiga-ui/cdk'; import { AbstractTuiControl, TUI_IS_IOS, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiContext, - type TuiFocusableElementAccessor, tuiIsNativeFocused, } from '@taiga-ui/cdk'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import { MODE_PROVIDER, TEXTFIELD_CONTROLLER_PROVIDER, @@ -26,11 +26,9 @@ import { TUI_TEXTFIELD_WATCHED_CONTROLLER, tuiGetBorder, TuiHintOptionsDirective, - type TuiSizeL, - type TuiSizeS, TuiTextfieldComponent, } from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export const DEFAULT_ROWS = 20; export const LINE_HEIGHT_M = 20; diff --git a/projects/kit/components/textarea/textarea.directive.ts b/projects/kit/components/textarea/textarea.directive.ts index 7c2b211c62e5..34ab5030f323 100644 --- a/projects/kit/components/textarea/textarea.directive.ts +++ b/projects/kit/components/textarea/textarea.directive.ts @@ -1,7 +1,7 @@ import {Directive} from '@angular/core'; import {AbstractTuiTextfieldHost, tuiAsTextfieldHost} from '@taiga-ui/core'; -import {type TuiTextareaComponent} from './textarea.component'; +import type {TuiTextareaComponent} from './textarea.component'; @Directive({ selector: 'tui-textarea', diff --git a/projects/kit/components/tiles/tile.component.ts b/projects/kit/components/tiles/tile.component.ts index c0f70d7983eb..871bb42e7a94 100644 --- a/projects/kit/components/tiles/tile.component.ts +++ b/projects/kit/components/tiles/tile.component.ts @@ -1,5 +1,5 @@ +import type {AfterViewInit, OnDestroy} from '@angular/core'; import { - type AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, @@ -7,7 +7,6 @@ import { HostListener, inject, Input, - type OnDestroy, ViewChild, } from '@angular/core'; diff --git a/projects/kit/components/tiles/tile.service.ts b/projects/kit/components/tiles/tile.service.ts index 20f4beca096d..7247741321f0 100644 --- a/projects/kit/components/tiles/tile.service.ts +++ b/projects/kit/components/tiles/tile.service.ts @@ -1,14 +1,15 @@ -import {ElementRef, inject, Injectable, type OnDestroy} from '@angular/core'; +import type {OnDestroy} from '@angular/core'; +import {ElementRef, inject, Injectable} from '@angular/core'; import {MutationObserverService} from '@ng-web-apis/mutation-observer'; import {ResizeObserverService} from '@ng-web-apis/resize-observer'; import {tuiArrayShallowEquals, tuiPx} from '@taiga-ui/cdk'; +import type {Observable} from 'rxjs'; import { BehaviorSubject, combineLatest, debounceTime, distinctUntilChanged, map, - type Observable, startWith, Subscription, } from 'rxjs'; diff --git a/projects/kit/components/toggle/test/toggle.component.spec.ts b/projects/kit/components/toggle/test/toggle.component.spec.ts index 6194f5ad0167..ed35579e3ce9 100644 --- a/projects/kit/components/toggle/test/toggle.component.spec.ts +++ b/projects/kit/components/toggle/test/toggle.component.spec.ts @@ -1,7 +1,8 @@ -import {type HarnessLoader} from '@angular/cdk/testing'; +import type {HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; import {Component} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {TuiToggleModule, tuiToggleOptionsProvider} from '@taiga-ui/kit'; import {TuiToggleHarness} from '@taiga-ui/testing'; diff --git a/projects/kit/components/toggle/toggle.component.ts b/projects/kit/components/toggle/toggle.component.ts index 20a98c2d46b3..2fce0336e06c 100644 --- a/projects/kit/components/toggle/toggle.component.ts +++ b/projects/kit/components/toggle/toggle.component.ts @@ -1,28 +1,26 @@ +import type {ElementRef} from '@angular/core'; import { ChangeDetectionStrategy, Component, - type ElementRef, HostBinding, inject, Input, ViewChild, } from '@angular/core'; +import type { + TuiContext, + TuiFocusableElementAccessor, + TuiNativeFocusableElement, +} from '@taiga-ui/cdk'; import { AbstractTuiControl, tuiAsControl, tuiAsFocusableItemAccessor, - type TuiContext, - type TuiFocusableElementAccessor, tuiIsNativeFocused, - type TuiNativeFocusableElement, } from '@taiga-ui/cdk'; -import { - type TuiBrightness, - TuiModeDirective, - type TuiSizeL, - type TuiSizeXS, -} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiBrightness, TuiSizeL, TuiSizeXS} from '@taiga-ui/core'; +import {TuiModeDirective} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TUI_TOGGLE_OPTIONS} from './toggle.options'; diff --git a/projects/kit/components/toggle/toggle.options.ts b/projects/kit/components/toggle/toggle.options.ts index f3eb0842090a..76a5eb5d6d75 100644 --- a/projects/kit/components/toggle/toggle.options.ts +++ b/projects/kit/components/toggle/toggle.options.ts @@ -1,7 +1,9 @@ -import {type Provider} from '@angular/core'; -import {type TuiContext, tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; -import {TuiAppearance, type TuiSizeL} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Provider} from '@angular/core'; +import type {TuiContext} from '@taiga-ui/cdk'; +import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk'; +import type {TuiSizeL} from '@taiga-ui/core'; +import {TuiAppearance} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiToggleOptions { readonly appearances: Readonly<{ diff --git a/projects/kit/components/tree/components/tree-item/tree-item.component.ts b/projects/kit/components/tree/components/tree-item/tree-item.component.ts index 5eae54a4a124..f51b4d489726 100644 --- a/projects/kit/components/tree/components/tree-item/tree-item.component.ts +++ b/projects/kit/components/tree/components/tree-item/tree-item.component.ts @@ -1,16 +1,15 @@ +import type {DoCheck, QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, ContentChildren, - type DoCheck, ElementRef, forwardRef, HostBinding, inject, - type QueryList, } from '@angular/core'; import {EMPTY_QUERY} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {distinctUntilChanged, map, startWith, Subject} from 'rxjs'; import type {TuiTreeController, TuiTreeItemContext} from '../../misc/tree.interfaces'; diff --git a/projects/kit/components/tree/components/tree-item/tree-item.providers.ts b/projects/kit/components/tree/components/tree-item/tree-item.providers.ts index 3b40f3b17c08..1cf06149b4b0 100644 --- a/projects/kit/components/tree/components/tree-item/tree-item.providers.ts +++ b/projects/kit/components/tree/components/tree-item/tree-item.providers.ts @@ -1,4 +1,5 @@ -import {forwardRef, type Provider, SkipSelf} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {forwardRef, SkipSelf} from '@angular/core'; import {TUI_TREE_LEVEL, TUI_TREE_NODE} from '../../misc/tree.tokens'; import {TuiTreeItemComponent} from './tree-item.component'; diff --git a/projects/kit/components/tree/components/tree/tree.component.ts b/projects/kit/components/tree/components/tree/tree.component.ts index 085b1ecd4cff..41ea2b86f81e 100644 --- a/projects/kit/components/tree/components/tree/tree.component.ts +++ b/projects/kit/components/tree/components/tree/tree.component.ts @@ -1,18 +1,17 @@ +import type {DoCheck, TrackByFunction} from '@angular/core'; import { ChangeDetectionStrategy, Component, - type DoCheck, inject, Input, - type TrackByFunction, ViewChild, } from '@angular/core'; -import {type TuiHandler} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiHandler} from '@taiga-ui/cdk'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {distinctUntilChanged, map, startWith, Subject} from 'rxjs'; import {TuiTreeChildrenDirective} from '../../directives/tree-children.directive'; -import {type TuiTreeContext} from '../../misc/tree.interfaces'; +import type {TuiTreeContext} from '../../misc/tree.interfaces'; import {TUI_TREE_NODE} from '../../misc/tree.tokens'; import {TuiTreeItemComponent} from '../tree-item/tree-item.component'; diff --git a/projects/kit/components/tree/directives/tree-children.directive.ts b/projects/kit/components/tree/directives/tree-children.directive.ts index 28e8198156a4..4e6195824c08 100644 --- a/projects/kit/components/tree/directives/tree-children.directive.ts +++ b/projects/kit/components/tree/directives/tree-children.directive.ts @@ -1,5 +1,6 @@ import {Directive, Input} from '@angular/core'; -import {EMPTY_ARRAY, type TuiHandler} from '@taiga-ui/cdk'; +import type {TuiHandler} from '@taiga-ui/cdk'; +import {EMPTY_ARRAY} from '@taiga-ui/cdk'; @Directive({ selector: 'tui-tree[childrenHandler]', diff --git a/projects/kit/components/tree/directives/tree-controller.directive.ts b/projects/kit/components/tree/directives/tree-controller.directive.ts index f194532b9d12..cfe4894e4863 100644 --- a/projects/kit/components/tree/directives/tree-controller.directive.ts +++ b/projects/kit/components/tree/directives/tree-controller.directive.ts @@ -1,8 +1,8 @@ import {Directive, EventEmitter, Input, Output} from '@angular/core'; import {tuiIsPresent} from '@taiga-ui/cdk'; -import {type TuiTreeItemComponent} from '../components/tree-item/tree-item.component'; -import {type TuiTreeAccessor, type TuiTreeController} from '../misc/tree.interfaces'; +import type {TuiTreeItemComponent} from '../components/tree-item/tree-item.component'; +import type {TuiTreeAccessor, TuiTreeController} from '../misc/tree.interfaces'; import {TUI_TREE_ACCESSOR, TUI_TREE_CONTROLLER} from '../misc/tree.tokens'; @Directive({ diff --git a/projects/kit/components/tree/directives/tree-item-controller.directive.ts b/projects/kit/components/tree/directives/tree-item-controller.directive.ts index 69be896f5a34..8c57c71d08de 100644 --- a/projects/kit/components/tree/directives/tree-item-controller.directive.ts +++ b/projects/kit/components/tree/directives/tree-item-controller.directive.ts @@ -1,7 +1,7 @@ import {Directive, Input} from '@angular/core'; -import {type TuiTreeItemComponent} from '../components/tree-item/tree-item.component'; -import {type TuiTreeController} from '../misc/tree.interfaces'; +import type {TuiTreeItemComponent} from '../components/tree-item/tree-item.component'; +import type {TuiTreeController} from '../misc/tree.interfaces'; import {TUI_TREE_CONTROLLER} from '../misc/tree.tokens'; @Directive({ diff --git a/projects/kit/components/tree/directives/tree-node.directive.ts b/projects/kit/components/tree/directives/tree-node.directive.ts index 5e053770b4e6..0862cf6ec297 100644 --- a/projects/kit/components/tree/directives/tree-node.directive.ts +++ b/projects/kit/components/tree/directives/tree-node.directive.ts @@ -1,7 +1,8 @@ -import {Directive, inject, Input, type OnDestroy} from '@angular/core'; +import type {OnDestroy} from '@angular/core'; +import {Directive, inject, Input} from '@angular/core'; import {TuiTreeItemComponent} from '../components/tree-item/tree-item.component'; -import {type TuiTreeAccessor} from '../misc/tree.interfaces'; +import type {TuiTreeAccessor} from '../misc/tree.interfaces'; import {TUI_TREE_ACCESSOR} from '../misc/tree.tokens'; @Directive({ diff --git a/projects/kit/components/tree/misc/tree.interfaces.ts b/projects/kit/components/tree/misc/tree.interfaces.ts index 11c68cedf012..cf613349c243 100644 --- a/projects/kit/components/tree/misc/tree.interfaces.ts +++ b/projects/kit/components/tree/misc/tree.interfaces.ts @@ -1,8 +1,8 @@ -import {type TemplateRef} from '@angular/core'; -import {type TuiContext} from '@taiga-ui/cdk'; -import {type Observable} from 'rxjs'; +import type {TemplateRef} from '@angular/core'; +import type {TuiContext} from '@taiga-ui/cdk'; +import type {Observable} from 'rxjs'; -import {type TuiTreeItemComponent} from '../components/tree-item/tree-item.component'; +import type {TuiTreeItemComponent} from '../components/tree-item/tree-item.component'; export interface TuiTreeItemContext extends TuiContext { readonly template: TemplateRef>; diff --git a/projects/kit/components/tree/misc/tree.service.ts b/projects/kit/components/tree/misc/tree.service.ts index 15146bffac5a..5d655c41cc3a 100644 --- a/projects/kit/components/tree/misc/tree.service.ts +++ b/projects/kit/components/tree/misc/tree.service.ts @@ -1,7 +1,7 @@ import {inject, Injectable} from '@angular/core'; import {map, startWith, Subject, switchMap, tap} from 'rxjs'; -import {type TuiTreeLoader} from './tree.interfaces'; +import type {TuiTreeLoader} from './tree.interfaces'; import {TUI_TREE_LOADER, TUI_TREE_LOADING, TUI_TREE_START} from './tree.tokens'; @Injectable() diff --git a/projects/kit/components/tree/misc/tree.tokens.ts b/projects/kit/components/tree/misc/tree.tokens.ts index a71481443969..eb8b5d725bdf 100644 --- a/projects/kit/components/tree/misc/tree.tokens.ts +++ b/projects/kit/components/tree/misc/tree.tokens.ts @@ -1,6 +1,6 @@ import {InjectionToken} from '@angular/core'; import {tuiCreateToken} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TUI_DEFAULT_TREE_CONTROLLER, TUI_TREE_ITEM_CONTENT} from './tree.constants'; import type {TuiTreeAccessor, TuiTreeItemContext, TuiTreeLoader} from './tree.interfaces'; diff --git a/projects/kit/constants/date-mode-maskito-adapter.ts b/projects/kit/constants/date-mode-maskito-adapter.ts index 9ddecbc08627..36e94eaa6c72 100644 --- a/projects/kit/constants/date-mode-maskito-adapter.ts +++ b/projects/kit/constants/date-mode-maskito-adapter.ts @@ -1,5 +1,5 @@ -import {type MaskitoDateMode} from '@maskito/kit'; -import {type TuiDateMode} from '@taiga-ui/cdk'; +import type {MaskitoDateMode} from '@maskito/kit'; +import type {TuiDateMode} from '@taiga-ui/cdk'; export const TUI_DATE_MODE_MASKITO_ADAPTER: Record = { DMY: 'dd/mm/yyyy', diff --git a/projects/kit/constants/masks.ts b/projects/kit/constants/masks.ts index 9e393291e889..2587467a803c 100644 --- a/projects/kit/constants/masks.ts +++ b/projects/kit/constants/masks.ts @@ -1,4 +1,4 @@ -import {type MaskitoOptions} from '@maskito/core'; +import type {MaskitoOptions} from '@maskito/core'; import {CHAR_HYPHEN, CHAR_PLUS} from '@taiga-ui/cdk'; import {TUI_DIGIT_REGEXP} from '@taiga-ui/core'; diff --git a/projects/kit/constants/max-day-range-length-mapper.ts b/projects/kit/constants/max-day-range-length-mapper.ts index 1b83df64f854..1a0a9ed3d811 100644 --- a/projects/kit/constants/max-day-range-length-mapper.ts +++ b/projects/kit/constants/max-day-range-length-mapper.ts @@ -1,9 +1,4 @@ -import { - type TuiDay, - type TuiDayLike, - type TuiDayRange, - type TuiTypedMapper, -} from '@taiga-ui/cdk'; +import type {TuiDay, TuiDayLike, TuiDayRange, TuiTypedMapper} from '@taiga-ui/cdk'; export const MAX_DAY_RANGE_LENGTH_MAPPER: TuiTypedMapper< [TuiDay, TuiDayRange | null, TuiDayLike | null, boolean], diff --git a/projects/kit/constants/max-time-values.ts b/projects/kit/constants/max-time-values.ts index 93461187987f..1e3d345eb62b 100644 --- a/projects/kit/constants/max-time-values.ts +++ b/projects/kit/constants/max-time-values.ts @@ -1,4 +1,4 @@ -import {type TuiTimeFormatParts} from '@taiga-ui/kit/types'; +import type {TuiTimeFormatParts} from '@taiga-ui/kit/types'; export const MAX_TIME_VALUES: Record = { HH: 23, diff --git a/projects/kit/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.ts b/projects/kit/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.ts index 7e84e1bf4857..728eb56b6157 100644 --- a/projects/kit/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.ts +++ b/projects/kit/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.ts @@ -1,11 +1,5 @@ -import { - type AfterViewInit, - ContentChildren, - Directive, - ElementRef, - inject, - type QueryList, -} from '@angular/core'; +import type {AfterViewInit, QueryList} from '@angular/core'; +import {ContentChildren, Directive, ElementRef, inject} from '@angular/core'; import { EMPTY_QUERY, TuiDestroyService, @@ -16,13 +10,13 @@ import { tuiTypedFromEvent, } from '@taiga-ui/cdk'; import {TuiDropdownDirective} from '@taiga-ui/core'; +import type {Observable} from 'rxjs'; import { debounceTime, EMPTY, filter, map, merge, - type Observable, shareReplay, switchMap, take, diff --git a/projects/kit/directives/fade/fade.directive.ts b/projects/kit/directives/fade/fade.directive.ts index 837c924ca0a3..a5d2e00218a7 100644 --- a/projects/kit/directives/fade/fade.directive.ts +++ b/projects/kit/directives/fade/fade.directive.ts @@ -5,7 +5,7 @@ import { } from '@ng-web-apis/mutation-observer'; import {ResizeObserverService} from '@ng-web-apis/resize-observer'; import {TuiDestroyService, tuiWithStyles, tuiZonefree} from '@taiga-ui/cdk'; -import {type TuiOrientation} from '@taiga-ui/core'; +import type {TuiOrientation} from '@taiga-ui/core'; import {fromEvent, merge, takeUntil} from 'rxjs'; import {TuiFadeComponent} from './fade.component'; diff --git a/projects/kit/directives/highlight/highlight.directive.ts b/projects/kit/directives/highlight/highlight.directive.ts index 75e1cf1f402e..213ac3ed66c1 100644 --- a/projects/kit/directives/highlight/highlight.directive.ts +++ b/projects/kit/directives/highlight/highlight.directive.ts @@ -1,12 +1,6 @@ import {DOCUMENT} from '@angular/common'; -import { - Directive, - ElementRef, - inject, - Input, - type OnChanges, - Renderer2, -} from '@angular/core'; +import type {OnChanges} from '@angular/core'; +import {Directive, ElementRef, inject, Input, Renderer2} from '@angular/core'; import {ResizeObserverService} from '@ng-web-apis/resize-observer'; import {svgNodeFilter, TuiDestroyService, tuiPx} from '@taiga-ui/cdk'; import {takeUntil} from 'rxjs'; diff --git a/projects/kit/directives/lazy-loading/lazy-loading.directive.ts b/projects/kit/directives/lazy-loading/lazy-loading.directive.ts index f919014d513b..fdaec90888b0 100644 --- a/projects/kit/directives/lazy-loading/lazy-loading.directive.ts +++ b/projects/kit/directives/lazy-loading/lazy-loading.directive.ts @@ -6,7 +6,7 @@ import { inject, Input, } from '@angular/core'; -import {type SafeResourceUrl} from '@angular/platform-browser'; +import type {SafeResourceUrl} from '@angular/platform-browser'; import {IntersectionObserverService} from '@ng-web-apis/intersection-observer'; import {TuiDestroyService} from '@taiga-ui/cdk'; diff --git a/projects/kit/directives/lazy-loading/lazy-loading.service.ts b/projects/kit/directives/lazy-loading/lazy-loading.service.ts index 639b182e5be5..436806bcabc4 100644 --- a/projects/kit/directives/lazy-loading/lazy-loading.service.ts +++ b/projects/kit/directives/lazy-loading/lazy-loading.service.ts @@ -1,5 +1,5 @@ import {ChangeDetectorRef, inject, Injectable} from '@angular/core'; -import {type SafeResourceUrl} from '@angular/platform-browser'; +import type {SafeResourceUrl} from '@angular/platform-browser'; import {IntersectionObserverService} from '@ng-web-apis/intersection-observer'; import {TuiDestroyService, tuiWatch} from '@taiga-ui/cdk'; import { diff --git a/projects/kit/directives/present/present.directive.ts b/projects/kit/directives/present/present.directive.ts index e1f60f4bcf56..af40a69354e4 100644 --- a/projects/kit/directives/present/present.directive.ts +++ b/projects/kit/directives/present/present.directive.ts @@ -1,4 +1,5 @@ -import {Directive, HostListener, type OnDestroy, Output} from '@angular/core'; +import type {OnDestroy} from '@angular/core'; +import {Directive, HostListener, Output} from '@angular/core'; import {BehaviorSubject, distinctUntilChanged, skip} from 'rxjs'; @Directive({ diff --git a/projects/kit/directives/project-class/project-class.directive.ts b/projects/kit/directives/project-class/project-class.directive.ts index d5624e685a98..1fd707f6d5df 100644 --- a/projects/kit/directives/project-class/project-class.directive.ts +++ b/projects/kit/directives/project-class/project-class.directive.ts @@ -1,4 +1,5 @@ -import {type AfterViewChecked, Directive, ElementRef, inject, Input} from '@angular/core'; +import type {AfterViewChecked} from '@angular/core'; +import {Directive, ElementRef, inject, Input} from '@angular/core'; /** * A directive for projecting classes from nested children to host diff --git a/projects/kit/directives/project-class/test/project-class.directive.spec.ts b/projects/kit/directives/project-class/test/project-class.directive.spec.ts index 6bf6ca218295..8d01023eea3f 100644 --- a/projects/kit/directives/project-class/test/project-class.directive.spec.ts +++ b/projects/kit/directives/project-class/test/project-class.directive.spec.ts @@ -1,5 +1,6 @@ import {Component} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {TuiDataListModule} from '@taiga-ui/core'; import { diff --git a/projects/kit/directives/unfinished-validator/unfinished-validator.directive.ts b/projects/kit/directives/unfinished-validator/unfinished-validator.directive.ts index 7224b7ba4227..b252678cb6a1 100644 --- a/projects/kit/directives/unfinished-validator/unfinished-validator.directive.ts +++ b/projects/kit/directives/unfinished-validator/unfinished-validator.directive.ts @@ -1,5 +1,6 @@ import {Attribute, Directive, inject, INJECTOR} from '@angular/core'; -import {NG_VALIDATORS, type Validator} from '@angular/forms'; +import type {Validator} from '@angular/forms'; +import {NG_VALIDATORS} from '@angular/forms'; import {TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk'; import {tuiCreateUnfinishedValidator} from './unfinished.validator'; diff --git a/projects/kit/directives/unfinished-validator/unfinished.validator.ts b/projects/kit/directives/unfinished-validator/unfinished.validator.ts index 1920f6213cc1..04d7a89135ca 100644 --- a/projects/kit/directives/unfinished-validator/unfinished.validator.ts +++ b/projects/kit/directives/unfinished-validator/unfinished.validator.ts @@ -1,11 +1,7 @@ -import {type AbstractControl, type ValidatorFn} from '@angular/forms'; -import { - type TuiFocusableElementAccessor, - tuiIsHTMLElement, - tuiIsInput, - TuiValidationError, -} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {AbstractControl, ValidatorFn} from '@angular/forms'; +import type {TuiFocusableElementAccessor} from '@taiga-ui/cdk'; +import {tuiIsHTMLElement, tuiIsInput, TuiValidationError} from '@taiga-ui/cdk'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export function tuiCreateUnfinishedValidator( nativeInputGetter: () => TuiFocusableElementAccessor, diff --git a/projects/kit/directives/unmask-handler/unmask-handler.directive.ts b/projects/kit/directives/unmask-handler/unmask-handler.directive.ts index 93487016bb9b..589b3e68d6c5 100644 --- a/projects/kit/directives/unmask-handler/unmask-handler.directive.ts +++ b/projects/kit/directives/unmask-handler/unmask-handler.directive.ts @@ -1,10 +1,8 @@ import {Directive, Input} from '@angular/core'; -import { - MASKITO_DEFAULT_OPTIONS, - type MaskitoOptions, - maskitoTransform, -} from '@maskito/core'; -import {AbstractTuiValueTransformer, type TuiMapper} from '@taiga-ui/cdk'; +import type {MaskitoOptions} from '@maskito/core'; +import {MASKITO_DEFAULT_OPTIONS, maskitoTransform} from '@maskito/core'; +import type {TuiMapper} from '@taiga-ui/cdk'; +import {AbstractTuiValueTransformer} from '@taiga-ui/cdk'; import {identity} from 'rxjs'; @Directive({ diff --git a/projects/kit/interfaces/mobile-calendar-data.ts b/projects/kit/interfaces/mobile-calendar-data.ts index 602ac96e62bd..f1885621f640 100644 --- a/projects/kit/interfaces/mobile-calendar-data.ts +++ b/projects/kit/interfaces/mobile-calendar-data.ts @@ -1,4 +1,4 @@ -import {type TuiBooleanHandler, type TuiDay} from '@taiga-ui/cdk'; +import type {TuiBooleanHandler, TuiDay} from '@taiga-ui/cdk'; export interface TuiMobileCalendarData { disabledItemHandler?: TuiBooleanHandler; diff --git a/projects/kit/interfaces/month-context.ts b/projects/kit/interfaces/month-context.ts index b964209b5ddb..32fc5e157636 100644 --- a/projects/kit/interfaces/month-context.ts +++ b/projects/kit/interfaces/month-context.ts @@ -1,4 +1,4 @@ -import {type TuiMonth, type TuiMonthRange} from '@taiga-ui/cdk'; +import type {TuiMonth, TuiMonthRange} from '@taiga-ui/cdk'; export interface TuiMonthContext { value: TuiMonth | TuiMonthRange | null; diff --git a/projects/kit/internal/primitive-calendar-range/primitive-calendar-range.component.ts b/projects/kit/internal/primitive-calendar-range/primitive-calendar-range.component.ts index 6e9fa135e4cd..105c7101394c 100644 --- a/projects/kit/internal/primitive-calendar-range/primitive-calendar-range.component.ts +++ b/projects/kit/internal/primitive-calendar-range/primitive-calendar-range.component.ts @@ -1,3 +1,4 @@ +import type {OnInit} from '@angular/core'; import { ChangeDetectionStrategy, ChangeDetectorRef, @@ -5,24 +6,22 @@ import { EventEmitter, inject, Input, - type OnInit, Output, } from '@angular/core'; +import type {TuiBooleanHandler, TuiDay, TuiDayRange, TuiTypedMapper} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, TUI_FIRST_DAY, TUI_LAST_DAY, - type TuiBooleanHandler, - type TuiDay, - type TuiDayRange, TuiDestroyService, TuiMonth, - type TuiTypedMapper, tuiWatch, } from '@taiga-ui/cdk'; -import {TUI_DEFAULT_MARKER_HANDLER, type TuiMarkerHandler} from '@taiga-ui/core'; +import type {TuiMarkerHandler} from '@taiga-ui/core'; +import {TUI_DEFAULT_MARKER_HANDLER} from '@taiga-ui/core'; import {TUI_CALENDAR_DATE_STREAM} from '@taiga-ui/kit/tokens'; -import {type Observable, takeUntil} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {takeUntil} from 'rxjs'; /** * @internal diff --git a/projects/kit/internal/primitive-calendar-range/test/primitive-calendar-range.component.spec.ts b/projects/kit/internal/primitive-calendar-range/test/primitive-calendar-range.component.spec.ts index ee376d718aa1..26fb97c43a7f 100644 --- a/projects/kit/internal/primitive-calendar-range/test/primitive-calendar-range.component.spec.ts +++ b/projects/kit/internal/primitive-calendar-range/test/primitive-calendar-range.component.spec.ts @@ -1,5 +1,6 @@ import {Component, ViewChild} from '@angular/core'; -import {type ComponentFixture, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {TestBed} from '@angular/core/testing'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiDay, TuiMonth} from '@taiga-ui/cdk'; import { diff --git a/projects/kit/pipes/field-error/field-error-content-pipe.ts b/projects/kit/pipes/field-error/field-error-content-pipe.ts index c712eeff3878..3163075f1440 100644 --- a/projects/kit/pipes/field-error/field-error-content-pipe.ts +++ b/projects/kit/pipes/field-error/field-error-content-pipe.ts @@ -1,13 +1,7 @@ import {AsyncPipe} from '@angular/common'; -import { - inject, - INJECTOR, - Injector, - type OnDestroy, - Pipe, - type PipeTransform, -} from '@angular/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {OnDestroy, PipeTransform} from '@angular/core'; +import {inject, INJECTOR, Injector, Pipe} from '@angular/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {TuiFieldErrorPipe} from './field-error-pipe'; diff --git a/projects/kit/pipes/field-error/field-error-pipe.ts b/projects/kit/pipes/field-error/field-error-pipe.ts index 483264be0a60..09a93be37e33 100644 --- a/projects/kit/pipes/field-error/field-error-pipe.ts +++ b/projects/kit/pipes/field-error/field-error-pipe.ts @@ -1,13 +1,10 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; -import { - type AbstractControl, - ControlContainer, - type ControlValueAccessor, - NgControl, -} from '@angular/forms'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; +import type {AbstractControl, ControlValueAccessor} from '@angular/forms'; +import {ControlContainer, NgControl} from '@angular/forms'; import {tuiIsString, tuiPure, TuiValidationError} from '@taiga-ui/cdk'; import {TUI_VALIDATION_ERRORS} from '@taiga-ui/kit/tokens'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; import {map, Observable, of} from 'rxjs'; const EMPTY_RECORD = {}; diff --git a/projects/kit/pipes/field-error/test/field-error-content-pipe.spec.ts b/projects/kit/pipes/field-error/test/field-error-content-pipe.spec.ts index 41dc3f96fd76..159958d5a349 100644 --- a/projects/kit/pipes/field-error/test/field-error-content-pipe.spec.ts +++ b/projects/kit/pipes/field-error/test/field-error-content-pipe.spec.ts @@ -1,11 +1,6 @@ import {Component} from '@angular/core'; -import { - type ComponentFixture, - discardPeriodicTasks, - fakeAsync, - TestBed, - tick, -} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {discardPeriodicTasks, fakeAsync, TestBed, tick} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule, Validators} from '@angular/forms'; import {NoopAnimationsModule} from '@angular/platform-browser/animations'; import {TuiHintModule, TuiRootModule} from '@taiga-ui/core'; diff --git a/projects/kit/pipes/filter-by-input/filter-by-input-with.pipe.ts b/projects/kit/pipes/filter-by-input/filter-by-input-with.pipe.ts index 11ee131205f3..b360efc52a08 100644 --- a/projects/kit/pipes/filter-by-input/filter-by-input-with.pipe.ts +++ b/projects/kit/pipes/filter-by-input/filter-by-input-with.pipe.ts @@ -1,12 +1,11 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; -import { - TUI_DEFAULT_MATCHER, - TUI_FOCUSABLE_ITEM_ACCESSOR, - type TuiStringHandler, -} from '@taiga-ui/cdk'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; +import type {TuiStringHandler} from '@taiga-ui/cdk'; +import {TUI_DEFAULT_MATCHER, TUI_FOCUSABLE_ITEM_ACCESSOR} from '@taiga-ui/cdk'; import {TuiMultiSelectDirective} from '@taiga-ui/kit/components/multi-select'; -import {AbstractTuiFilterByInput, type TuiArrayElement} from './filter-by-input.base'; +import type {TuiArrayElement} from './filter-by-input.base'; +import {AbstractTuiFilterByInput} from './filter-by-input.base'; /** * @deprecated Use {@link TuiFilterByInputPipe} instead diff --git a/projects/kit/pipes/filter-by-input/filter-by-input.base.ts b/projects/kit/pipes/filter-by-input/filter-by-input.base.ts index 7d7f58896e44..c027ebb52bfe 100644 --- a/projects/kit/pipes/filter-by-input/filter-by-input.base.ts +++ b/projects/kit/pipes/filter-by-input/filter-by-input.base.ts @@ -1,10 +1,9 @@ -import { - type TuiFocusableElementAccessor, - tuiIsPresent, - tuiPure, - type TuiStringHandler, - type TuiStringMatcher, +import type { + TuiFocusableElementAccessor, + TuiStringHandler, + TuiStringMatcher, } from '@taiga-ui/cdk'; +import {tuiIsPresent, tuiPure} from '@taiga-ui/cdk'; import {tuiIsFlat} from '@taiga-ui/kit/utils'; export type TuiArrayElement = diff --git a/projects/kit/pipes/filter-by-input/filter-by-input.pipe.ts b/projects/kit/pipes/filter-by-input/filter-by-input.pipe.ts index 03207632879d..5c224a5204dc 100644 --- a/projects/kit/pipes/filter-by-input/filter-by-input.pipe.ts +++ b/projects/kit/pipes/filter-by-input/filter-by-input.pipe.ts @@ -1,14 +1,16 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; +import type {TuiStringMatcher} from '@taiga-ui/cdk'; import { TUI_DEFAULT_MATCHER, TUI_DEFAULT_STRINGIFY, TUI_FOCUSABLE_ITEM_ACCESSOR, - type TuiStringMatcher, } from '@taiga-ui/cdk'; import {TUI_DATA_LIST_HOST} from '@taiga-ui/core'; import {TuiMultiSelectDirective} from '@taiga-ui/kit/components/multi-select'; -import {AbstractTuiFilterByInput, type TuiArrayElement} from './filter-by-input.base'; +import type {TuiArrayElement} from './filter-by-input.base'; +import {AbstractTuiFilterByInput} from './filter-by-input.base'; @Pipe({ name: 'tuiFilterByInput', diff --git a/projects/kit/pipes/iso-to-country-code/iso-to-country-code.pipe.ts b/projects/kit/pipes/iso-to-country-code/iso-to-country-code.pipe.ts index 36bf73e368d4..26f6aa1271d8 100644 --- a/projects/kit/pipes/iso-to-country-code/iso-to-country-code.pipe.ts +++ b/projects/kit/pipes/iso-to-country-code/iso-to-country-code.pipe.ts @@ -1,5 +1,6 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; -import {type TuiCountryIsoCode} from '@taiga-ui/i18n'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; +import type {TuiCountryIsoCode} from '@taiga-ui/i18n'; import {TUI_COUNTRIES_MASKS} from '@taiga-ui/kit/tokens'; import {tuiIsoToCountryCode} from '@taiga-ui/kit/utils'; diff --git a/projects/kit/pipes/sort-countries/sort-countries.pipe.ts b/projects/kit/pipes/sort-countries/sort-countries.pipe.ts index 1c8686586a82..58e9d99f4d85 100644 --- a/projects/kit/pipes/sort-countries/sort-countries.pipe.ts +++ b/projects/kit/pipes/sort-countries/sort-countries.pipe.ts @@ -1,7 +1,9 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; -import {type TuiCountryIsoCode} from '@taiga-ui/i18n'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; +import type {TuiCountryIsoCode} from '@taiga-ui/i18n'; import {TUI_COUNTRIES} from '@taiga-ui/kit/tokens'; -import {map, type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map} from 'rxjs'; @Pipe({ name: 'tuiSortCountries', diff --git a/projects/kit/pipes/stringify-content/stringify-content.pipe.ts b/projects/kit/pipes/stringify-content/stringify-content.pipe.ts index 950feeeab212..f4f280f365d3 100644 --- a/projects/kit/pipes/stringify-content/stringify-content.pipe.ts +++ b/projects/kit/pipes/stringify-content/stringify-content.pipe.ts @@ -1,6 +1,7 @@ -import {Pipe, type PipeTransform} from '@angular/core'; -import {type TuiStringHandler} from '@taiga-ui/cdk'; -import {type TuiValueContentContext} from '@taiga-ui/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; +import type {TuiStringHandler} from '@taiga-ui/cdk'; +import type {TuiValueContentContext} from '@taiga-ui/core'; @Pipe({ name: 'tuiStringifyContent', diff --git a/projects/kit/pipes/stringify/stringify.pipe.ts b/projects/kit/pipes/stringify/stringify.pipe.ts index b2e6e1b5f535..88104d49f8d1 100644 --- a/projects/kit/pipes/stringify/stringify.pipe.ts +++ b/projects/kit/pipes/stringify/stringify.pipe.ts @@ -1,5 +1,6 @@ -import {Pipe, type PipeTransform} from '@angular/core'; -import {type TuiStringHandler} from '@taiga-ui/cdk'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; +import type {TuiStringHandler} from '@taiga-ui/cdk'; @Pipe({ name: 'tuiStringify', diff --git a/projects/kit/pipes/to-country-code/to-country-code.pipe.ts b/projects/kit/pipes/to-country-code/to-country-code.pipe.ts index a5cd6c59e773..8d2f2688a1f0 100644 --- a/projects/kit/pipes/to-country-code/to-country-code.pipe.ts +++ b/projects/kit/pipes/to-country-code/to-country-code.pipe.ts @@ -1,4 +1,5 @@ -import {inject, Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {inject, Pipe} from '@angular/core'; import {CHAR_PLUS} from '@taiga-ui/cdk'; import {TuiCountryIsoCode} from '@taiga-ui/i18n'; import {TUI_COUNTRIES_MASKS} from '@taiga-ui/kit/tokens'; diff --git a/projects/kit/pipes/to-year/to-year.pipe.ts b/projects/kit/pipes/to-year/to-year.pipe.ts index a66a1aac2e70..095d368b53ec 100644 --- a/projects/kit/pipes/to-year/to-year.pipe.ts +++ b/projects/kit/pipes/to-year/to-year.pipe.ts @@ -1,4 +1,5 @@ -import {Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; import {TuiYear} from '@taiga-ui/cdk'; @Pipe({ diff --git a/projects/kit/providers/month-formatter.provider.ts b/projects/kit/providers/month-formatter.provider.ts index 127474dfc9c2..e7377f85cd50 100644 --- a/projects/kit/providers/month-formatter.provider.ts +++ b/projects/kit/providers/month-formatter.provider.ts @@ -1,8 +1,9 @@ -import {type FactoryProvider} from '@angular/core'; -import {type TuiHandler, type TuiMonth} from '@taiga-ui/cdk'; +import type {FactoryProvider} from '@angular/core'; +import type {TuiHandler, TuiMonth} from '@taiga-ui/cdk'; import {TuiMonthPipe} from '@taiga-ui/core'; import {TUI_MONTH_FORMATTER} from '@taiga-ui/kit/tokens'; -import {map, type Observable, of} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {map, of} from 'rxjs'; export const TUI_MONTH_FORMATTER_PROVIDER: FactoryProvider = { provide: TUI_MONTH_FORMATTER, diff --git a/projects/kit/providers/value-accessor.provider.ts b/projects/kit/providers/value-accessor.provider.ts index a3c4a052508d..246e824afe6a 100644 --- a/projects/kit/providers/value-accessor.provider.ts +++ b/projects/kit/providers/value-accessor.provider.ts @@ -1,4 +1,5 @@ -import {type FactoryProvider, Optional, Self} from '@angular/core'; +import type {FactoryProvider} from '@angular/core'; +import {Optional, Self} from '@angular/core'; import {NG_VALUE_ACCESSOR} from '@angular/forms'; import {TUI_VALUE_ACCESSOR} from '@taiga-ui/core'; import {identity} from 'rxjs'; diff --git a/projects/kit/services/dialog-form.service.ts b/projects/kit/services/dialog-form.service.ts index f48a092aa062..f66257d75877 100644 --- a/projects/kit/services/dialog-form.service.ts +++ b/projects/kit/services/dialog-form.service.ts @@ -1,7 +1,10 @@ import {inject, Injectable} from '@angular/core'; -import {type TuiDialogOptions, TuiDialogService} from '@taiga-ui/core'; -import {TUI_PROMPT, type TuiPromptData} from '@taiga-ui/kit/components'; -import {defer, type Observable, of} from 'rxjs'; +import type {TuiDialogOptions} from '@taiga-ui/core'; +import {TuiDialogService} from '@taiga-ui/core'; +import type {TuiPromptData} from '@taiga-ui/kit/components'; +import {TUI_PROMPT} from '@taiga-ui/kit/components'; +import type {Observable} from 'rxjs'; +import {defer, of} from 'rxjs'; @Injectable() export class TuiDialogFormService { diff --git a/projects/kit/tokens/calendar-date-stream.ts b/projects/kit/tokens/calendar-date-stream.ts index 73e350ee264e..93907abd845e 100644 --- a/projects/kit/tokens/calendar-date-stream.ts +++ b/projects/kit/tokens/calendar-date-stream.ts @@ -1,12 +1,9 @@ -import {InjectionToken, Optional, type Provider, Self} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {InjectionToken, Optional, Self} from '@angular/core'; import {NgControl} from '@angular/forms'; -import { - type TuiControlValueTransformer, - type TuiDay, - type TuiDayRange, -} from '@taiga-ui/cdk'; +import type {TuiControlValueTransformer, TuiDay, TuiDayRange} from '@taiga-ui/cdk'; import {tuiControlValueFactory} from '@taiga-ui/kit/utils'; -import {type Observable} from 'rxjs'; +import type {Observable} from 'rxjs'; /** * Stream that emits calendar data change diff --git a/projects/kit/tokens/date-inputs-value-transformers.ts b/projects/kit/tokens/date-inputs-value-transformers.ts index 45ab19d085cc..b2b20542f4b6 100644 --- a/projects/kit/tokens/date-inputs-value-transformers.ts +++ b/projects/kit/tokens/date-inputs-value-transformers.ts @@ -1,9 +1,9 @@ import {InjectionToken} from '@angular/core'; -import { - type TuiControlValueTransformer, - type TuiDay, - type TuiDayRange, - type TuiTime, +import type { + TuiControlValueTransformer, + TuiDay, + TuiDayRange, + TuiTime, } from '@taiga-ui/cdk'; // TODO: Refactor to use `AbstractTuiValueTransformer` and add ability to provide it for all controls diff --git a/projects/kit/tokens/i18n.ts b/projects/kit/tokens/i18n.ts index 42bd63ccf67f..737cda73e049 100644 --- a/projects/kit/tokens/i18n.ts +++ b/projects/kit/tokens/i18n.ts @@ -1,6 +1,8 @@ -import {tuiCreateTokenFromFactory, type TuiDateMode} from '@taiga-ui/cdk'; -import {type TuiCountryIsoCode, tuiExtractI18n} from '@taiga-ui/i18n'; -import {type Observable} from 'rxjs'; +import type {TuiDateMode} from '@taiga-ui/cdk'; +import {tuiCreateTokenFromFactory} from '@taiga-ui/cdk'; +import type {TuiCountryIsoCode} from '@taiga-ui/i18n'; +import {tuiExtractI18n} from '@taiga-ui/i18n'; +import type {Observable} from 'rxjs'; export const TUI_PROMPT_WORDS = tuiCreateTokenFromFactory(tuiExtractI18n('prompt')); diff --git a/projects/kit/tokens/input-date-options.ts b/projects/kit/tokens/input-date-options.ts index 8a7a691970f2..4c66873f9551 100644 --- a/projects/kit/tokens/input-date-options.ts +++ b/projects/kit/tokens/input-date-options.ts @@ -1,14 +1,13 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; +import type {TuiContext, TuiDay} from '@taiga-ui/cdk'; import { TUI_FIRST_DAY, TUI_LAST_DAY, - type TuiContext, tuiCreateToken, - type TuiDay, tuiProvideOptions, } from '@taiga-ui/cdk'; -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; export interface TuiInputDateOptions { readonly icon: PolymorpheusContent>; diff --git a/projects/kit/tokens/items-handlers.ts b/projects/kit/tokens/items-handlers.ts index 27a7be939c69..daa3d0e1c2f1 100644 --- a/projects/kit/tokens/items-handlers.ts +++ b/projects/kit/tokens/items-handlers.ts @@ -1,13 +1,15 @@ -import {type Provider} from '@angular/core'; +import type {Provider} from '@angular/core'; +import type { + TuiBooleanHandler, + TuiIdentityMatcher, + TuiStringHandler, +} from '@taiga-ui/cdk'; import { ALWAYS_FALSE_HANDLER, TUI_DEFAULT_IDENTITY_MATCHER, TUI_DEFAULT_STRINGIFY, - type TuiBooleanHandler, tuiCreateToken, - type TuiIdentityMatcher, tuiProvideOptions, - type TuiStringHandler, } from '@taiga-ui/cdk'; export interface TuiItemsHandlers { diff --git a/projects/kit/tokens/mobile-calendar.ts b/projects/kit/tokens/mobile-calendar.ts index 76d5c07378e8..a9a2727174c0 100644 --- a/projects/kit/tokens/mobile-calendar.ts +++ b/projects/kit/tokens/mobile-calendar.ts @@ -1,4 +1,5 @@ -import {InjectionToken, type Type} from '@angular/core'; +import type {Type} from '@angular/core'; +import {InjectionToken} from '@angular/core'; /** * A component for mobile data picker diff --git a/projects/kit/tokens/month-formatter.ts b/projects/kit/tokens/month-formatter.ts index 457cbe29f0ec..35c1088f7dc4 100644 --- a/projects/kit/tokens/month-formatter.ts +++ b/projects/kit/tokens/month-formatter.ts @@ -1,6 +1,6 @@ import {InjectionToken} from '@angular/core'; -import {type TuiHandler, type TuiMonth} from '@taiga-ui/cdk'; -import {type Observable} from 'rxjs'; +import type {TuiHandler, TuiMonth} from '@taiga-ui/cdk'; +import type {Observable} from 'rxjs'; /** * A function to get localized formatted month diff --git a/projects/kit/tokens/validation-errors.ts b/projects/kit/tokens/validation-errors.ts index 4d466b9548d1..6eb34cfba0cb 100644 --- a/projects/kit/tokens/validation-errors.ts +++ b/projects/kit/tokens/validation-errors.ts @@ -1,6 +1,6 @@ import {tuiCreateToken} from '@taiga-ui/cdk'; -import {type PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; -import {type Observable} from 'rxjs'; +import type {PolymorpheusContent} from '@tinkoff/ng-polymorpheus'; +import type {Observable} from 'rxjs'; /** * Validation errors diff --git a/projects/kit/types/test/key-steps.spec.ts b/projects/kit/types/test/key-steps.spec.ts index 6a1d63be68e8..98e06abb51c0 100644 --- a/projects/kit/types/test/key-steps.spec.ts +++ b/projects/kit/types/test/key-steps.spec.ts @@ -1,4 +1,4 @@ -import {type TuiKeySteps} from '@taiga-ui/kit'; +import type {TuiKeySteps} from '@taiga-ui/kit'; describe('TuiKeySteps type', () => { /** diff --git a/projects/kit/utils/date/update.ts b/projects/kit/utils/date/update.ts index 1054cb3c4ee3..f1e01afeb00a 100644 --- a/projects/kit/utils/date/update.ts +++ b/projects/kit/utils/date/update.ts @@ -1,4 +1,4 @@ -import {type TuiDay} from '@taiga-ui/cdk'; +import type {TuiDay} from '@taiga-ui/cdk'; export function tuiImmutableUpdateInputDateMulti( days: readonly TuiDay[] | null = [], diff --git a/projects/kit/utils/math/horizontal-direction-to-number.ts b/projects/kit/utils/math/horizontal-direction-to-number.ts index 74d0cfc0e780..c3051f5fecbe 100644 --- a/projects/kit/utils/math/horizontal-direction-to-number.ts +++ b/projects/kit/utils/math/horizontal-direction-to-number.ts @@ -1,4 +1,4 @@ -import {type TuiHorizontalDirection} from '@taiga-ui/core'; +import type {TuiHorizontalDirection} from '@taiga-ui/core'; /** * @internal diff --git a/projects/kit/utils/math/key-steps.ts b/projects/kit/utils/math/key-steps.ts index 15395da2022c..829a21da5907 100644 --- a/projects/kit/utils/math/key-steps.ts +++ b/projects/kit/utils/math/key-steps.ts @@ -1,6 +1,6 @@ import {tuiRound} from '@taiga-ui/cdk'; import {TUI_FLOATING_PRECISION} from '@taiga-ui/kit/constants'; -import {type TuiKeySteps} from '@taiga-ui/kit/types'; +import type {TuiKeySteps} from '@taiga-ui/kit/types'; function tuiFindKeyStepsBoundariesByFn( keySteps: TuiKeySteps, diff --git a/projects/kit/utils/math/test/key-steps.spec.ts b/projects/kit/utils/math/test/key-steps.spec.ts index 756bbc658382..1ad52f168d2b 100644 --- a/projects/kit/utils/math/test/key-steps.spec.ts +++ b/projects/kit/utils/math/test/key-steps.spec.ts @@ -1,8 +1,5 @@ -import { - type TuiKeySteps, - tuiKeyStepValueToPercentage, - tuiPercentageToKeyStepValue, -} from '@taiga-ui/kit'; +import type {TuiKeySteps} from '@taiga-ui/kit'; +import {tuiKeyStepValueToPercentage, tuiPercentageToKeyStepValue} from '@taiga-ui/kit'; describe('KeySteps utils', () => { const keySteps: TuiKeySteps = [ diff --git a/projects/kit/utils/miscellaneous/replay-control-value-changes-factory.ts b/projects/kit/utils/miscellaneous/replay-control-value-changes-factory.ts index 9ad4b8cf14dd..e0f9e67d9eea 100644 --- a/projects/kit/utils/miscellaneous/replay-control-value-changes-factory.ts +++ b/projects/kit/utils/miscellaneous/replay-control-value-changes-factory.ts @@ -1,12 +1,13 @@ -import {type NgControl} from '@angular/forms'; -import { - tuiControlValue, - type TuiControlValueTransformer, - type TuiDay, - type TuiDayRange, - type TuiTime, +import type {NgControl} from '@angular/forms'; +import type { + TuiControlValueTransformer, + TuiDay, + TuiDayRange, + TuiTime, } from '@taiga-ui/cdk'; -import {map, type Observable, of} from 'rxjs'; +import {tuiControlValue} from '@taiga-ui/cdk'; +import type {Observable} from 'rxjs'; +import {map, of} from 'rxjs'; /** * @internal diff --git a/projects/kit/utils/phone/get-max-allowed-phone-length.ts b/projects/kit/utils/phone/get-max-allowed-phone-length.ts index a2ff861e94ac..38e49b1a1f8f 100644 --- a/projects/kit/utils/phone/get-max-allowed-phone-length.ts +++ b/projects/kit/utils/phone/get-max-allowed-phone-length.ts @@ -1,4 +1,4 @@ -import {type TuiCountryIsoCode} from '@taiga-ui/i18n'; +import type {TuiCountryIsoCode} from '@taiga-ui/i18n'; export function tuiGetMaxAllowedPhoneLength( countries: Record, diff --git a/projects/kit/utils/phone/iso-to-country-code.ts b/projects/kit/utils/phone/iso-to-country-code.ts index e8bdbf4c07bd..242b663477da 100644 --- a/projects/kit/utils/phone/iso-to-country-code.ts +++ b/projects/kit/utils/phone/iso-to-country-code.ts @@ -1,4 +1,4 @@ -import {type TuiCountryIsoCode} from '@taiga-ui/i18n'; +import type {TuiCountryIsoCode} from '@taiga-ui/i18n'; import {MASK_AFTER_CODE_REGEXP} from '@taiga-ui/kit/constants'; export function tuiIsoToCountryCode( diff --git a/projects/testing/core/island.harness.ts b/projects/testing/core/island.harness.ts index 12ca4ded9754..e328280aeb0f 100644 --- a/projects/testing/core/island.harness.ts +++ b/projects/testing/core/island.harness.ts @@ -1,4 +1,4 @@ -import {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import {TuiComponentHarness} from '@taiga-ui/testing/utils'; export class TuiIslandHarness extends TuiComponentHarness { diff --git a/projects/testing/core/primitive-calender.harness.ts b/projects/testing/core/primitive-calender.harness.ts index ceef42cc6c3d..ca37df6f3ad3 100644 --- a/projects/testing/core/primitive-calender.harness.ts +++ b/projects/testing/core/primitive-calender.harness.ts @@ -1,8 +1,5 @@ -import { - type BaseHarnessFilters, - ComponentHarness, - HarnessPredicate, -} from '@angular/cdk/testing'; +import type {BaseHarnessFilters} from '@angular/cdk/testing'; +import {ComponentHarness, HarnessPredicate} from '@angular/cdk/testing'; import {TuiComponentHarness} from '@taiga-ui/testing/utils'; interface TuiDayCellHarnessFilters extends BaseHarnessFilters { diff --git a/projects/testing/core/primitive-year-picker.harness.ts b/projects/testing/core/primitive-year-picker.harness.ts index 6f60f88b57fc..953ca6749ba2 100644 --- a/projects/testing/core/primitive-year-picker.harness.ts +++ b/projects/testing/core/primitive-year-picker.harness.ts @@ -1,8 +1,5 @@ -import { - type BaseHarnessFilters, - ComponentHarness, - HarnessPredicate, -} from '@angular/cdk/testing'; +import type {BaseHarnessFilters} from '@angular/cdk/testing'; +import {ComponentHarness, HarnessPredicate} from '@angular/cdk/testing'; import {TuiComponentHarness} from '@taiga-ui/testing/utils'; interface TuiYearCellHarnessFilters extends BaseHarnessFilters { diff --git a/projects/testing/core/tag.harness.ts b/projects/testing/core/tag.harness.ts index 676a96e2e896..980ed404e018 100644 --- a/projects/testing/core/tag.harness.ts +++ b/projects/testing/core/tag.harness.ts @@ -1,4 +1,5 @@ -import {type TestElement, TestKey} from '@angular/cdk/testing'; +import type {TestElement} from '@angular/cdk/testing'; +import {TestKey} from '@angular/cdk/testing'; import {TuiComponentHarness} from '@taiga-ui/testing/utils'; import {TuiSvgHarness} from './svg.harness'; diff --git a/projects/testing/mocks/sanitizer.ts b/projects/testing/mocks/sanitizer.ts index eba3d25d8872..3aa1e6fec589 100644 --- a/projects/testing/mocks/sanitizer.ts +++ b/projects/testing/mocks/sanitizer.ts @@ -1,4 +1,4 @@ -import {type SecurityContext} from '@angular/core'; +import type {SecurityContext} from '@angular/core'; import {TUI_SANITIZER} from '@taiga-ui/core'; export const TUI_SANITIZER_MOCK = { diff --git a/projects/testing/utils/active-element.ts b/projects/testing/utils/active-element.ts index 23b8ee175892..3daeaf256675 100644 --- a/projects/testing/utils/active-element.ts +++ b/projects/testing/utils/active-element.ts @@ -1,4 +1,4 @@ -import {type ComponentFixture} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; import {tuiCreateKeyboardEvent} from './keyboard-event'; diff --git a/projects/testing/utils/configure-test-suite.ts b/projects/testing/utils/configure-test-suite.ts index 8b9bfc10d3e2..333d183cc8ca 100644 --- a/projects/testing/utils/configure-test-suite.ts +++ b/projects/testing/utils/configure-test-suite.ts @@ -1,4 +1,5 @@ -import {type ComponentFixture, getTestBed, TestBed} from '@angular/core/testing'; +import type {ComponentFixture} from '@angular/core/testing'; +import {getTestBed, TestBed} from '@angular/core/testing'; /** deprecated, will be removed in 4.0 */ export const configureTestSuite = (configureModule?: () => void): void => { diff --git a/projects/testing/utils/helpers.ts b/projects/testing/utils/helpers.ts index cd31dc64388d..582c63f8d2ca 100644 --- a/projects/testing/utils/helpers.ts +++ b/projects/testing/utils/helpers.ts @@ -1,7 +1,6 @@ +import type {BaseHarnessFilters, ComponentHarnessConstructor} from '@angular/cdk/testing'; import { - type BaseHarnessFilters, ComponentHarness, - type ComponentHarnessConstructor, ContentContainerComponentHarness, HarnessPredicate, } from '@angular/cdk/testing'; diff --git a/projects/testing/utils/input/cleaner.unit-common.ts b/projects/testing/utils/input/cleaner.unit-common.ts index aab0266f0b98..de400b49dc60 100644 --- a/projects/testing/utils/input/cleaner.unit-common.ts +++ b/projects/testing/utils/input/cleaner.unit-common.ts @@ -1,11 +1,11 @@ /// -import {type DebugElement} from '@angular/core'; -import {type ComponentFixture} from '@angular/core/testing'; -import {type FormControl} from '@angular/forms'; +import type {DebugElement} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import type {FormControl} from '@angular/forms'; -import {type TuiNativeInputPO} from '../native-input.page-object'; -import {type TuiPageObject} from '../page-object'; +import type {TuiNativeInputPO} from '../native-input.page-object'; +import type {TuiPageObject} from '../page-object'; interface TestParams { fixture: ComponentFixture; diff --git a/projects/testing/utils/input/filler.unit-common.ts b/projects/testing/utils/input/filler.unit-common.ts index 6e7fda314a99..520fe1810b8e 100644 --- a/projects/testing/utils/input/filler.unit-common.ts +++ b/projects/testing/utils/input/filler.unit-common.ts @@ -1,9 +1,9 @@ -import {type DebugElement} from '@angular/core'; -import {type ComponentFixture} from '@angular/core/testing'; -import {type FormControl} from '@angular/forms'; +import type {DebugElement} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import type {FormControl} from '@angular/forms'; -import {type TuiNativeInputPO} from '../native-input.page-object'; -import {type TuiPageObject} from '../page-object'; +import type {TuiNativeInputPO} from '../native-input.page-object'; +import type {TuiPageObject} from '../page-object'; interface TestParams { fixture: ComponentFixture; diff --git a/projects/testing/utils/input/form-control-state.unit-common.ts b/projects/testing/utils/input/form-control-state.unit-common.ts index b151e359cd0d..7e8dacef1407 100644 --- a/projects/testing/utils/input/form-control-state.unit-common.ts +++ b/projects/testing/utils/input/form-control-state.unit-common.ts @@ -1,7 +1,7 @@ -import {type ComponentFixture} from '@angular/core/testing'; -import {type FormControl} from '@angular/forms'; +import type {ComponentFixture} from '@angular/core/testing'; +import type {FormControl} from '@angular/forms'; -import {type TuiNativeInputPO} from '../native-input.page-object'; +import type {TuiNativeInputPO} from '../native-input.page-object'; interface TestParams { fixture: ComponentFixture; diff --git a/projects/testing/utils/input/placeholder.unit-common.ts b/projects/testing/utils/input/placeholder.unit-common.ts index 178d5ce97b1c..0d3ee9de551d 100644 --- a/projects/testing/utils/input/placeholder.unit-common.ts +++ b/projects/testing/utils/input/placeholder.unit-common.ts @@ -1,8 +1,8 @@ -import {type DebugElement} from '@angular/core'; -import {type ComponentFixture} from '@angular/core/testing'; -import {type FormControl} from '@angular/forms'; +import type {DebugElement} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import type {FormControl} from '@angular/forms'; -import {type TuiPageObject} from '../page-object'; +import type {TuiPageObject} from '../page-object'; interface TestParams { fixture: ComponentFixture; diff --git a/projects/testing/utils/input/tooltip.unit-common.ts b/projects/testing/utils/input/tooltip.unit-common.ts index 6425f9592925..35dd69dfd233 100644 --- a/projects/testing/utils/input/tooltip.unit-common.ts +++ b/projects/testing/utils/input/tooltip.unit-common.ts @@ -1,8 +1,8 @@ -import {type DebugElement} from '@angular/core'; -import {type ComponentFixture} from '@angular/core/testing'; -import {type FormControl} from '@angular/forms'; +import type {DebugElement} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; +import type {FormControl} from '@angular/forms'; -import {type TuiPageObject} from '../page-object'; +import type {TuiPageObject} from '../page-object'; interface TestParams { fixture: ComponentFixture; diff --git a/projects/testing/utils/native-input.page-object.ts b/projects/testing/utils/native-input.page-object.ts index ab293807f296..1ad34a3b2f7a 100644 --- a/projects/testing/utils/native-input.page-object.ts +++ b/projects/testing/utils/native-input.page-object.ts @@ -1,5 +1,5 @@ -import {type DebugElement} from '@angular/core'; -import {type ComponentFixture} from '@angular/core/testing'; +import type {DebugElement} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; import {tuiCreateKeyboardEvent} from './keyboard-event'; import {TuiPageObject} from './page-object'; diff --git a/projects/testing/utils/page-object.ts b/projects/testing/utils/page-object.ts index a73535be4a6d..1433afb27e6a 100644 --- a/projects/testing/utils/page-object.ts +++ b/projects/testing/utils/page-object.ts @@ -1,5 +1,5 @@ -import {type DebugElement, type Predicate} from '@angular/core'; -import {type ComponentFixture} from '@angular/core/testing'; +import type {DebugElement, Predicate} from '@angular/core'; +import type {ComponentFixture} from '@angular/core/testing'; export class TuiPageObject { constructor(protected fixture: ComponentFixture) {} diff --git a/scripts/compile-icons.ts b/scripts/compile-icons.ts index 45091ae316c1..9751c676bdfc 100644 --- a/scripts/compile-icons.ts +++ b/scripts/compile-icons.ts @@ -1,6 +1,6 @@ import {readdirSync, unlinkSync} from 'fs'; import * as path from 'path'; -import {type Config} from 'prettier'; +import type {Config} from 'prettier'; import { tuiConvertAllCompileFileToAllFile, diff --git a/scripts/release.ts b/scripts/release.ts index 166e42ae66ed..2534c6fbca41 100644 --- a/scripts/release.ts +++ b/scripts/release.ts @@ -5,7 +5,7 @@ import {bumpVersion} from './shared/bump-version'; import {checkChangelogBeforePush} from './shared/check-changelog-before-push'; import {gitCommitAndPush} from './shared/git-commit-and-push'; import {makeReleaseBranch} from './shared/make-release-branch'; -import {type TuiReleaseMode} from './shared/release-mode'; +import type {TuiReleaseMode} from './shared/release-mode'; import {runStandardVersion} from './shared/run-standard-version'; const ci = hasFlag('--ci-mode'); diff --git a/scripts/shared/bump-version.ts b/scripts/shared/bump-version.ts index 4a7ae8ed5ea3..cea47bc534c9 100644 --- a/scripts/shared/bump-version.ts +++ b/scripts/shared/bump-version.ts @@ -1,4 +1,4 @@ -import {type TuiReleaseMode} from './release-mode'; +import type {TuiReleaseMode} from './release-mode'; export function bumpVersion(version: string, mode: TuiReleaseMode): string { let [major, minor, patch, , rc = -1] = version diff --git a/scripts/shared/execute.ts b/scripts/shared/execute.ts index 7e65d6a7e6a4..b56b38d47ac7 100644 --- a/scripts/shared/execute.ts +++ b/scripts/shared/execute.ts @@ -1,4 +1,5 @@ -import {type CommonExecOptions, execSync} from 'child_process'; +import type {CommonExecOptions} from 'child_process'; +import {execSync} from 'child_process'; import {infoLog} from '../../projects/cdk/schematics/utils/colored-log'; diff --git a/scripts/shared/run-standard-version.ts b/scripts/shared/run-standard-version.ts index 124ba8461f27..4c2d59937074 100644 --- a/scripts/shared/run-standard-version.ts +++ b/scripts/shared/run-standard-version.ts @@ -1,5 +1,5 @@ import {execute} from './execute'; -import {type TuiReleaseMode} from './release-mode'; +import type {TuiReleaseMode} from './release-mode'; export function runStandardVersion( version: string,