From fbf8999562d45ef86850574cabfd34bc8603c7cf Mon Sep 17 00:00:00 2001 From: taiga-family-bot Date: Mon, 30 Sep 2024 09:35:25 +0000 Subject: [PATCH] chore: apply changes after linting [bot] --- .../components/arc-chart/arc-chart.component.ts | 3 ++- .../components/line-chart/line-chart.component.ts | 8 +++++--- .../components/input-card/input-card.component.ts | 2 +- .../components/api/api-item.component.ts | 5 +++-- .../components/code/tests/highlight.spec.ts | 4 ++-- projects/addon-doc/components/demo/index.ts | 3 +-- .../test/mobile-dialog.component.spec.ts | 4 ++-- .../test/repeat-times.directive.spec.ts | 4 ++-- projects/cdk/observables/zone.ts | 9 ++------- projects/cdk/pipes/repeat-times/index.ts | 3 ++- .../ng-update/v4/steps/migrate-editor.ts | 4 ++-- .../schematics/ng-update/v4/steps/migrate-root.ts | 2 +- .../button/test/button.directive.spec.ts | 3 ++- .../test/calendar-sheet.component.spec.ts | 4 ++-- .../components/data-list/data-list.component.ts | 3 ++- .../core/components/dialog/dialog.component.ts | 7 ++----- .../core/components/dialog/dialogs.component.ts | 3 ++- .../components/link/test/link.directive.spec.ts | 3 ++- .../components/textfield/textfield.directive.ts | 3 ++- .../directives/appearance/appearance.directive.ts | 3 ++- .../dropdown/dropdown-options.directive.ts | 4 ++-- .../dropdown/test/dropdown.directive.spec.ts | 4 ++-- .../directives/hint/hint-options.directive.ts | 4 ++-- projects/core/directives/hint/hint.component.ts | 4 ++-- .../directives/hint/test/hint.directive.spec.ts | 4 ++-- projects/core/tokens/dark-mode.ts | 3 ++- projects/core/utils/format/format-number.ts | 6 ++---- .../src/tests/input-phone-international.cy.ts | 12 ++++++++++-- .../tests/core/textfield/textfield.spec.ts | 3 ++- .../kit/calendar-range/calendar-range.spec.ts | 3 ++- .../input-phone-international.spec.ts | 4 ++-- .../utils/page-objects/calendar-range.po.ts | 3 ++- projects/demo/src/components/appearance/index.ts | 8 ++------ projects/demo/src/components/dropdown/index.ts | 15 ++++++--------- projects/demo/src/modules/app/abstract.app.ts | 3 ++- projects/demo/src/modules/app/app.config.ts | 2 +- .../components/app-bar/examples/4/index.ts | 3 ++- .../demo/src/modules/components/block/index.ts | 3 ++- .../src/modules/components/data-list/index.ts | 3 ++- .../examples/2/actions-content/index.ts | 2 +- .../modules/components/select/examples/7/index.ts | 4 ++-- .../modules/components/tabs/examples/8/index.ts | 3 ++- .../demo/src/modules/components/tabs/index.ts | 3 ++- .../demo/src/modules/components/tabs/routes.ts | 2 +- .../modules/components/tree/examples/7/index.ts | 2 +- .../src/modules/directives/appearance/index.ts | 4 ++-- .../directives/dropdown-open/examples/5/index.ts | 2 +- .../accordion/test/accordion.component.spec.ts | 4 ++-- .../test/breadcrumbs.component.spec.ts | 4 ++-- .../test/calendar-range.component.spec.ts | 10 ++++++++-- .../kit/components/confirm/confirm.component.ts | 3 ++- .../test/input-inline.component.spec.ts | 4 ++-- .../input-phone-international.options.ts | 3 ++- .../input-phone-international.component.spec.ts | 4 ++-- projects/kit/components/like/like.component.ts | 3 ++- .../pdf-viewer/test/pdf-viewer.component.spec.ts | 4 ++-- .../components/push/test/push.component.spec.ts | 4 ++-- .../components/radio-list/radio-list.component.ts | 3 ++- .../test/routable-dialog.component.spec.ts | 4 ++-- .../components/tabs/test/tabs.component.spec.ts | 4 ++-- projects/kit/components/tiles/tile.service.ts | 3 ++- .../button-select/button-select.directive.ts | 6 ++---- .../components/navigation/drawer.component.ts | 5 +++-- .../components/search/search-filters.component.ts | 3 +-- .../combo-box/test/combo-box.component.spec.ts | 4 ++-- .../input-copy/test/input-copy.component.spec.ts | 4 ++-- .../test/input-date-range.component.spec.ts | 4 ++-- .../test/input-date-time.component.spec.ts | 4 ++-- .../input-month-range.directive.ts | 9 ++------- .../test/input-number.component.spec.ts | 4 ++-- .../test/input-password.component.spec.ts | 4 ++-- .../input-phone-international.component.spec.ts | 4 ++-- .../test/input-range.component.spec.ts | 4 ++-- .../test/input-slider.component.spec.ts | 4 ++-- .../textarea/test/textarea.component.spec.ts | 8 ++------ 75 files changed, 164 insertions(+), 153 deletions(-) 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 6c6cffce785b..f2275add50c2 100644 --- a/projects/addon-charts/components/arc-chart/arc-chart.component.ts +++ b/projects/addon-charts/components/arc-chart/arc-chart.component.ts @@ -1,9 +1,10 @@ -import {type ElementRef, type QueryList, signal} from '@angular/core'; +import type {ElementRef, QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, Input, Output, + signal, ViewChildren, } from '@angular/core'; import {takeUntilDestroyed} from '@angular/core/rxjs-interop'; 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 b77f32eb3c50..a9b159a30c66 100644 --- a/projects/addon-charts/components/line-chart/line-chart.component.ts +++ b/projects/addon-charts/components/line-chart/line-chart.component.ts @@ -1,11 +1,13 @@ import {AsyncPipe, NgForOf, NgIf} from '@angular/common'; -import {computed, type OnChanges, type QueryList, signal} from '@angular/core'; +import type {OnChanges, QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, + computed, inject, Input, NgZone, + signal, ViewChildren, } from '@angular/core'; import {toSignal} from '@angular/core/rxjs-interop'; @@ -26,8 +28,8 @@ import { } from '@taiga-ui/core/directives/hint'; import type {TuiPoint} from '@taiga-ui/core/types'; import type {PolymorpheusContent} from '@taiga-ui/polymorpheus'; -import {map, type Observable} from 'rxjs'; -import {distinctUntilChanged, Subject} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {distinctUntilChanged, map, Subject} from 'rxjs'; import {TUI_LINE_CHART_OPTIONS} from './line-chart.options'; import {TuiLineChartHint} from './line-chart-hint.directive'; 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 f8e2bcd9ca53..97ad5e5ec954 100644 --- a/projects/addon-commerce/components/input-card/input-card.component.ts +++ b/projects/addon-commerce/components/input-card/input-card.component.ts @@ -1,10 +1,10 @@ +import type {OnInit} from '@angular/core'; import { ChangeDetectionStrategy, Component, computed, inject, Input, - type OnInit, Output, ViewEncapsulation, } from '@angular/core'; diff --git a/projects/addon-doc/components/api/api-item.component.ts b/projects/addon-doc/components/api/api-item.component.ts index c88011668237..7838ce591cac 100644 --- a/projects/addon-doc/components/api/api-item.component.ts +++ b/projects/addon-doc/components/api/api-item.component.ts @@ -1,15 +1,16 @@ import {Location, NgForOf, NgIf, NgSwitch, NgSwitchCase} from '@angular/common'; +import type {OnInit} from '@angular/core'; import { ChangeDetectionStrategy, Component, EventEmitter, inject, Input, - type OnInit, Output, } from '@angular/core'; import {FormsModule} from '@angular/forms'; -import {ActivatedRoute, type Params, UrlSerializer} from '@angular/router'; +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} from '@taiga-ui/addon-doc/utils'; import {tuiIsNumber} from '@taiga-ui/cdk/utils/miscellaneous'; diff --git a/projects/addon-doc/components/code/tests/highlight.spec.ts b/projects/addon-doc/components/code/tests/highlight.spec.ts index ff615bb5cea4..662babefa2cd 100644 --- a/projects/addon-doc/components/code/tests/highlight.spec.ts +++ b/projects/addon-doc/components/code/tests/highlight.spec.ts @@ -1,5 +1,5 @@ -import {ChangeDetectionStrategy, type DebugElement, signal} from '@angular/core'; -import {Component, Input} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import {ChangeDetectionStrategy, Component, Input, signal} 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'; diff --git a/projects/addon-doc/components/demo/index.ts b/projects/addon-doc/components/demo/index.ts index 465435f721ad..2469774c71fc 100644 --- a/projects/addon-doc/components/demo/index.ts +++ b/projects/addon-doc/components/demo/index.ts @@ -1,13 +1,12 @@ import {JsonPipe, Location, NgIf, NgTemplateOutlet} from '@angular/common'; +import type {ElementRef, OnInit} from '@angular/core'; import { ChangeDetectionStrategy, Component, computed, ContentChild, - type ElementRef, inject, Input, - type OnInit, signal, TemplateRef, ViewChild, 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 4ba099333fae..490fdd06b2dc 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,5 @@ -import {ChangeDetectionStrategy, type DebugElement} from '@angular/core'; -import {Component} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import {ChangeDetectionStrategy, Component} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import { 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 ae852155df4c..a07d16593000 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,5 @@ -import {ChangeDetectionStrategy, type DebugElement} from '@angular/core'; -import {Component} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import {ChangeDetectionStrategy, Component} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; diff --git a/projects/cdk/observables/zone.ts b/projects/cdk/observables/zone.ts index 6f6637a89173..fbb0a9919b05 100644 --- a/projects/cdk/observables/zone.ts +++ b/projects/cdk/observables/zone.ts @@ -1,11 +1,6 @@ import {inject, NgZone} from '@angular/core'; -import { - asyncScheduler, - type MonoTypeOperatorFunction, - type SchedulerLike, - type Subscription, -} from 'rxjs'; -import {Observable, pipe} from 'rxjs'; +import type {MonoTypeOperatorFunction, SchedulerLike, Subscription} from 'rxjs'; +import {asyncScheduler, Observable, pipe} from 'rxjs'; export function tuiZonefull(zone = inject(NgZone)): MonoTypeOperatorFunction { return (source) => diff --git a/projects/cdk/pipes/repeat-times/index.ts b/projects/cdk/pipes/repeat-times/index.ts index 7023a8d4cd82..14753b188ea1 100644 --- a/projects/cdk/pipes/repeat-times/index.ts +++ b/projects/cdk/pipes/repeat-times/index.ts @@ -1,4 +1,5 @@ -import {Pipe, type PipeTransform} from '@angular/core'; +import type {PipeTransform} from '@angular/core'; +import {Pipe} from '@angular/core'; import {tuiClamp} from '@taiga-ui/cdk/utils'; @Pipe({ diff --git a/projects/cdk/schematics/ng-update/v4/steps/migrate-editor.ts b/projects/cdk/schematics/ng-update/v4/steps/migrate-editor.ts index e6f3aecbc0f8..e81cbecee883 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/migrate-editor.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/migrate-editor.ts @@ -1,6 +1,6 @@ /// -import {type DevkitFileSystem, getPackageJsonDependency} from 'ng-morph'; -import {getSourceFiles, saveActiveProject} from 'ng-morph'; +import type {DevkitFileSystem} from 'ng-morph'; +import {getPackageJsonDependency, getSourceFiles, saveActiveProject} from 'ng-morph'; import {ALL_TS_FILES} from '../../../constants/file-globs'; import type {TuiSchema} from '../../../ng-add/schema'; diff --git a/projects/cdk/schematics/ng-update/v4/steps/migrate-root.ts b/projects/cdk/schematics/ng-update/v4/steps/migrate-root.ts index c3652a9382c1..4abe495ba974 100644 --- a/projects/cdk/schematics/ng-update/v4/steps/migrate-root.ts +++ b/projects/cdk/schematics/ng-update/v4/steps/migrate-root.ts @@ -1,6 +1,6 @@ +import type {DevkitFileSystem} from 'ng-morph'; import { addProviderToNgModule, - type DevkitFileSystem, getActiveProject, getNgModules, getPackageJsonDependency, diff --git a/projects/core/components/button/test/button.directive.spec.ts b/projects/core/components/button/test/button.directive.spec.ts index b575f24ea623..f92b7c9593b9 100644 --- a/projects/core/components/button/test/button.directive.spec.ts +++ b/projects/core/components/button/test/button.directive.spec.ts @@ -1,7 +1,8 @@ import type {HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; 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 {TuiButtonHarness} from '@taiga-ui/testing'; import {TuiButton} from '../button.directive'; diff --git a/projects/core/components/calendar/test/calendar-sheet.component.spec.ts b/projects/core/components/calendar/test/calendar-sheet.component.spec.ts index 3424a3ebde4a..822b42fca4fe 100644 --- a/projects/core/components/calendar/test/calendar-sheet.component.spec.ts +++ b/projects/core/components/calendar/test/calendar-sheet.component.spec.ts @@ -1,5 +1,5 @@ -import {ChangeDetectionStrategy, type DebugElement} from '@angular/core'; -import {Component, ViewChild} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ViewChild} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; diff --git a/projects/core/components/data-list/data-list.component.ts b/projects/core/components/data-list/data-list.component.ts index 5c8ba2480d2e..50a10fedfdc8 100644 --- a/projects/core/components/data-list/data-list.component.ts +++ b/projects/core/components/data-list/data-list.component.ts @@ -1,7 +1,8 @@ import {NgIf} from '@angular/common'; -import {type AfterContentChecked, ChangeDetectorRef, type QueryList} from '@angular/core'; +import type {AfterContentChecked, QueryList} from '@angular/core'; import { ChangeDetectionStrategy, + ChangeDetectorRef, Component, ContentChildren, DestroyRef, diff --git a/projects/core/components/dialog/dialog.component.ts b/projects/core/components/dialog/dialog.component.ts index ed720662d1fe..bbe61f975c5b 100644 --- a/projects/core/components/dialog/dialog.component.ts +++ b/projects/core/components/dialog/dialog.component.ts @@ -13,11 +13,8 @@ import { TUI_COMMON_ICONS, } from '@taiga-ui/core/tokens'; import {tuiGetDuration} from '@taiga-ui/core/utils'; -import { - injectContext, - type PolymorpheusContent, - PolymorpheusOutlet, -} from '@taiga-ui/polymorpheus'; +import type {PolymorpheusContent} from '@taiga-ui/polymorpheus'; +import {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus'; import type {Observable} from 'rxjs'; import {filter, isObservable, map, merge, of, Subject, switchMap} from 'rxjs'; diff --git a/projects/core/components/dialog/dialogs.component.ts b/projects/core/components/dialog/dialogs.component.ts index d121ab1a5d03..f0be853c2f91 100644 --- a/projects/core/components/dialog/dialogs.component.ts +++ b/projects/core/components/dialog/dialogs.component.ts @@ -1,5 +1,6 @@ import {NgForOf} from '@angular/common'; -import {ChangeDetectionStrategy, Component, inject, type Signal} from '@angular/core'; +import type {Signal} from '@angular/core'; +import {ChangeDetectionStrategy, Component, inject} from '@angular/core'; import {toSignal} from '@angular/core/rxjs-interop'; import {TuiFocusTrap} from '@taiga-ui/cdk/directives/focus-trap'; import type {TuiPopover} from '@taiga-ui/cdk/services'; diff --git a/projects/core/components/link/test/link.directive.spec.ts b/projects/core/components/link/test/link.directive.spec.ts index 8e42bd31fa47..31eabab06cc9 100644 --- a/projects/core/components/link/test/link.directive.spec.ts +++ b/projects/core/components/link/test/link.directive.spec.ts @@ -1,7 +1,8 @@ import type {HarnessLoader} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; 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 {TuiLinkHarness} from '@taiga-ui/testing'; import {TuiLink} from '../link.directive'; diff --git a/projects/core/components/textfield/textfield.directive.ts b/projects/core/components/textfield/textfield.directive.ts index aca8aeaf038b..51fc46f8313e 100644 --- a/projects/core/components/textfield/textfield.directive.ts +++ b/projects/core/components/textfield/textfield.directive.ts @@ -1,4 +1,5 @@ -import {computed, Directive, inject, Input, type OnChanges, signal} from '@angular/core'; +import type {OnChanges} from '@angular/core'; +import {computed, Directive, inject, Input, signal} from '@angular/core'; import {TuiNativeValidator} from '@taiga-ui/cdk/directives/native-validator'; import {tuiInjectElement} from '@taiga-ui/cdk/utils/dom'; import { diff --git a/projects/core/directives/appearance/appearance.directive.ts b/projects/core/directives/appearance/appearance.directive.ts index 140f8b1b3e3a..b9100853d8d4 100644 --- a/projects/core/directives/appearance/appearance.directive.ts +++ b/projects/core/directives/appearance/appearance.directive.ts @@ -13,7 +13,8 @@ import {tuiInjectElement} from '@taiga-ui/cdk/utils/dom'; import {tuiIsString, tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous'; import type {TuiInteractiveState} from '@taiga-ui/core/types'; -import {TUI_APPEARANCE_OPTIONS, type TuiAppearanceOptions} from './appearance.options'; +import type {TuiAppearanceOptions} from './appearance.options'; +import {TUI_APPEARANCE_OPTIONS} from './appearance.options'; @Component({ standalone: true, diff --git a/projects/core/directives/dropdown/dropdown-options.directive.ts b/projects/core/directives/dropdown/dropdown-options.directive.ts index 960131c2abaa..8e86bce1bdbe 100644 --- a/projects/core/directives/dropdown/dropdown-options.directive.ts +++ b/projects/core/directives/dropdown/dropdown-options.directive.ts @@ -1,5 +1,5 @@ -import {type FactoryProvider, Self} from '@angular/core'; -import {Directive, inject, Input, Optional, SkipSelf} from '@angular/core'; +import type {FactoryProvider} from '@angular/core'; +import {Directive, inject, Input, Optional, Self, SkipSelf} from '@angular/core'; import {tuiCreateToken, tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous'; import type {TuiVerticalDirection} from '@taiga-ui/core/types'; import {tuiOverrideOptions} from '@taiga-ui/core/utils'; diff --git a/projects/core/directives/dropdown/test/dropdown.directive.spec.ts b/projects/core/directives/dropdown/test/dropdown.directive.spec.ts index e3e55dad754d..f68a70232a2f 100644 --- a/projects/core/directives/dropdown/test/dropdown.directive.spec.ts +++ b/projects/core/directives/dropdown/test/dropdown.directive.spec.ts @@ -1,5 +1,5 @@ -import {ChangeDetectionStrategy, type ElementRef} from '@angular/core'; -import {Component} from '@angular/core'; +import type {ElementRef} from '@angular/core'; +import {ChangeDetectionStrategy, Component} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {TuiDropdownDirective, TuiDropdownManual, TuiRoot} from '@taiga-ui/core'; diff --git a/projects/core/directives/hint/hint-options.directive.ts b/projects/core/directives/hint/hint-options.directive.ts index d2072a30ef18..ce7594a4113d 100644 --- a/projects/core/directives/hint/hint-options.directive.ts +++ b/projects/core/directives/hint/hint-options.directive.ts @@ -1,5 +1,5 @@ -import {type FactoryProvider, type OnChanges, Self} from '@angular/core'; -import {Directive, inject, Input, Optional, SkipSelf} from '@angular/core'; +import type {FactoryProvider, OnChanges} from '@angular/core'; +import {Directive, inject, Input, Optional, Self, SkipSelf} from '@angular/core'; import {tuiCreateToken, tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous'; import {tuiOverrideOptions} from '@taiga-ui/core/utils'; import type {PolymorpheusContent} from '@taiga-ui/polymorpheus'; diff --git a/projects/core/directives/hint/hint.component.ts b/projects/core/directives/hint/hint.component.ts index f3fb27e95a4e..21a5d801d9d6 100644 --- a/projects/core/directives/hint/hint.component.ts +++ b/projects/core/directives/hint/hint.component.ts @@ -15,8 +15,8 @@ import { 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 {injectContext, type PolymorpheusContent} from '@taiga-ui/polymorpheus'; -import {PolymorpheusOutlet} from '@taiga-ui/polymorpheus'; +import type {PolymorpheusContent} from '@taiga-ui/polymorpheus'; +import {injectContext, PolymorpheusOutlet} from '@taiga-ui/polymorpheus'; import {map, takeWhile} from 'rxjs'; import {TuiHintDirective} from './hint.directive'; diff --git a/projects/core/directives/hint/test/hint.directive.spec.ts b/projects/core/directives/hint/test/hint.directive.spec.ts index f7da5b42acdc..8be18f6060b1 100644 --- a/projects/core/directives/hint/test/hint.directive.spec.ts +++ b/projects/core/directives/hint/test/hint.directive.spec.ts @@ -1,5 +1,5 @@ -import {ChangeDetectionStrategy, type TemplateRef} from '@angular/core'; -import {Component} from '@angular/core'; +import type {TemplateRef} from '@angular/core'; +import {ChangeDetectionStrategy, Component} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {discardPeriodicTasks, fakeAsync, TestBed, tick} from '@angular/core/testing'; import {TuiHint, TuiRoot} from '@taiga-ui/core'; diff --git a/projects/core/tokens/dark-mode.ts b/projects/core/tokens/dark-mode.ts index bb48e8295f93..10adc39d8d0a 100644 --- a/projects/core/tokens/dark-mode.ts +++ b/projects/core/tokens/dark-mode.ts @@ -1,4 +1,5 @@ -import {effect, inject, signal, type WritableSignal} from '@angular/core'; +import type {WritableSignal} from '@angular/core'; +import {effect, inject, signal} from '@angular/core'; import {takeUntilDestroyed} from '@angular/core/rxjs-interop'; import {WA_LOCAL_STORAGE, WA_WINDOW} from '@ng-web-apis/common'; import { diff --git a/projects/core/utils/format/format-number.ts b/projects/core/utils/format/format-number.ts index b4f3e7a29608..77a3acfeaa6f 100644 --- a/projects/core/utils/format/format-number.ts +++ b/projects/core/utils/format/format-number.ts @@ -1,9 +1,7 @@ import {CHAR_HYPHEN} from '@taiga-ui/cdk/constants'; import {tuiRoundWith} from '@taiga-ui/cdk/utils/math'; -import { - TUI_DEFAULT_NUMBER_FORMAT, - type TuiNumberFormatSettings, -} from '@taiga-ui/core/tokens'; +import type {TuiNumberFormatSettings} from '@taiga-ui/core/tokens'; +import {TUI_DEFAULT_NUMBER_FORMAT} from '@taiga-ui/core/tokens'; import {tuiGetFractionPartPadded} from './get-fractional-part-padded'; diff --git a/projects/demo-cypress/src/tests/input-phone-international.cy.ts b/projects/demo-cypress/src/tests/input-phone-international.cy.ts index dbf4a6ecba42..ca28b5258d85 100644 --- a/projects/demo-cypress/src/tests/input-phone-international.cy.ts +++ b/projects/demo-cypress/src/tests/input-phone-international.cy.ts @@ -1,5 +1,13 @@ -import {ChangeDetectionStrategy, type OnInit} from '@angular/core'; -import {Component, DestroyRef, EventEmitter, inject, Input, Output} from '@angular/core'; +import type {OnInit} from '@angular/core'; +import { + ChangeDetectionStrategy, + Component, + DestroyRef, + EventEmitter, + inject, + Input, + Output, +} from '@angular/core'; import {takeUntilDestroyed} from '@angular/core/rxjs-interop'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; import {provideAnimations} from '@angular/platform-browser/animations'; diff --git a/projects/demo-playwright/tests/core/textfield/textfield.spec.ts b/projects/demo-playwright/tests/core/textfield/textfield.spec.ts index ac7a6d1c1b5b..aa39670af07d 100644 --- a/projects/demo-playwright/tests/core/textfield/textfield.spec.ts +++ b/projects/demo-playwright/tests/core/textfield/textfield.spec.ts @@ -1,6 +1,7 @@ import {DemoRoute} from '@demo/routes'; 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('Textfield', () => { test.describe('interactivity on hover', () => { diff --git a/projects/demo-playwright/tests/kit/calendar-range/calendar-range.spec.ts b/projects/demo-playwright/tests/kit/calendar-range/calendar-range.spec.ts index f72b2b67f987..33e80a1f6cb5 100644 --- a/projects/demo-playwright/tests/kit/calendar-range/calendar-range.spec.ts +++ b/projects/demo-playwright/tests/kit/calendar-range/calendar-range.spec.ts @@ -4,7 +4,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('CalendarRange', () => { let example!: Locator; diff --git a/projects/demo-playwright/tests/kit/input-phone-international/input-phone-international.spec.ts b/projects/demo-playwright/tests/kit/input-phone-international/input-phone-international.spec.ts index 6357c54b4450..20aefaef2602 100644 --- a/projects/demo-playwright/tests/kit/input-phone-international/input-phone-international.spec.ts +++ b/projects/demo-playwright/tests/kit/input-phone-international/input-phone-international.spec.ts @@ -1,7 +1,7 @@ import {DemoRoute} from '@demo/routes'; import {TuiDocumentationPagePO, tuiGoto} from '@demo-playwright/utils'; -import {expect, type Locator} from '@playwright/test'; -import {test} from '@playwright/test'; +import type {Locator} from '@playwright/test'; +import {expect, test} from '@playwright/test'; test.describe('InputPhoneInternational', () => { test.describe('API page', () => { diff --git a/projects/demo-playwright/utils/page-objects/calendar-range.po.ts b/projects/demo-playwright/utils/page-objects/calendar-range.po.ts index ed0fbe636942..e3be75cf15af 100644 --- a/projects/demo-playwright/utils/page-objects/calendar-range.po.ts +++ b/projects/demo-playwright/utils/page-objects/calendar-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 TuiCalendarRangePO { constructor(private readonly host: Locator) {} diff --git a/projects/demo/src/components/appearance/index.ts b/projects/demo/src/components/appearance/index.ts index 6c5c976694d9..b7f0103cad42 100644 --- a/projects/demo/src/components/appearance/index.ts +++ b/projects/demo/src/components/appearance/index.ts @@ -4,12 +4,8 @@ import {RouterLink} from '@angular/router'; import {DemoRoute} from '@demo/routes'; import {TuiDocAPIItem} from '@taiga-ui/addon-doc'; import type {TuiLooseUnion} from '@taiga-ui/cdk'; -import { - type TuiAppearanceOptions, - type TuiInteractiveState, - TuiLink, - TuiTitle, -} from '@taiga-ui/core'; +import type {TuiAppearanceOptions, TuiInteractiveState} from '@taiga-ui/core'; +import {TuiLink, TuiTitle} from '@taiga-ui/core'; @Component({ standalone: true, diff --git a/projects/demo/src/components/dropdown/index.ts b/projects/demo/src/components/dropdown/index.ts index d49e9f53d750..8b83da6f7515 100644 --- a/projects/demo/src/components/dropdown/index.ts +++ b/projects/demo/src/components/dropdown/index.ts @@ -4,16 +4,13 @@ import {RouterLink} from '@angular/router'; import {DemoRoute} from '@demo/routes'; import {TuiDocAPIItem} from '@taiga-ui/addon-doc'; import type {TuiLooseUnion} from '@taiga-ui/cdk'; -import { - TUI_DROPDOWN_OPTIONS, - TuiDropdown, - type TuiDropdownAlign, - type TuiDropdownOptions, - type TuiDropdownWidth, - TuiLink, - TuiTitle, - type TuiVerticalDirection, +import type { + TuiDropdownAlign, + TuiDropdownOptions, + TuiDropdownWidth, + TuiVerticalDirection, } from '@taiga-ui/core'; +import {TUI_DROPDOWN_OPTIONS, TuiDropdown, TuiLink, TuiTitle} from '@taiga-ui/core'; @Component({ standalone: true, diff --git a/projects/demo/src/modules/app/abstract.app.ts b/projects/demo/src/modules/app/abstract.app.ts index 1c6e0ca9d780..4edf1027cfb8 100644 --- a/projects/demo/src/modules/app/abstract.app.ts +++ b/projects/demo/src/modules/app/abstract.app.ts @@ -5,7 +5,8 @@ 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 {tuiInjectElement, tuiPure, tuiZonefreeScheduler} from '@taiga-ui/cdk'; -import {debounceTime, map, type Observable, startWith} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {debounceTime, map, startWith} from 'rxjs'; export const DEMO_PAGE_LOADED_PROVIDER = { provide: TUI_DOC_PAGE_LOADED, diff --git a/projects/demo/src/modules/app/app.config.ts b/projects/demo/src/modules/app/app.config.ts index 127ea72f43cf..e58617227b6f 100644 --- a/projects/demo/src/modules/app/app.config.ts +++ b/projects/demo/src/modules/app/app.config.ts @@ -6,6 +6,7 @@ import type {UrlTree} from '@angular/router'; import {provideRouter, withInMemoryScrolling} from '@angular/router'; import {environment} from '@demo/environments/environment'; import {WA_SESSION_STORAGE} from '@ng-web-apis/common'; +import type {TuiDocSourceCodePathOptions} from '@taiga-ui/addon-doc'; import { TUI_DOC_CODE_EDITOR, TUI_DOC_DEFAULT_TABS, @@ -20,7 +21,6 @@ import { TUI_DOC_TYPE_REFERENCE_HANDLER, TUI_DOC_URL_STATE_HANDLER, tuiDocExampleOptionsProvider, - type TuiDocSourceCodePathOptions, tuiSortPages, } from '@taiga-ui/addon-doc'; import {TUI_IS_E2E, TUI_IS_PLAYWRIGHT, TUI_PLATFORM} from '@taiga-ui/cdk'; diff --git a/projects/demo/src/modules/components/app-bar/examples/4/index.ts b/projects/demo/src/modules/components/app-bar/examples/4/index.ts index 5e740b329c0d..8f9f9f062bdb 100644 --- a/projects/demo/src/modules/components/app-bar/examples/4/index.ts +++ b/projects/demo/src/modules/components/app-bar/examples/4/index.ts @@ -1,4 +1,5 @@ -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 {TuiAppearance, TuiButton, TuiDialogService, TuiTitle} from '@taiga-ui/core'; diff --git a/projects/demo/src/modules/components/block/index.ts b/projects/demo/src/modules/components/block/index.ts index ed791805f9f4..5a83b10e2ae1 100644 --- a/projects/demo/src/modules/components/block/index.ts +++ b/projects/demo/src/modules/components/block/index.ts @@ -4,7 +4,8 @@ import {TuiDocAppearance} from '@demo/components/appearance'; import {TuiDocIcons} from '@demo/components/icons'; import {changeDetection} from '@demo/emulate/change-detection'; import {TuiDemo} from '@demo/utils'; -import {type TuiSizeL, type TuiSizeS, TuiTitle} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TuiTitle} from '@taiga-ui/core'; import {TuiBlock, TuiSwitch} from '@taiga-ui/kit'; @Component({ diff --git a/projects/demo/src/modules/components/data-list/index.ts b/projects/demo/src/modules/components/data-list/index.ts index 34abf3c6052f..b4733cd766e3 100644 --- a/projects/demo/src/modules/components/data-list/index.ts +++ b/projects/demo/src/modules/components/data-list/index.ts @@ -2,7 +2,8 @@ import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {TuiDemo} from '@demo/utils'; import {TUI_IS_E2E} from '@taiga-ui/cdk'; -import {TuiDataList, type TuiSizeL, type TuiSizeS} from '@taiga-ui/core'; +import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; +import {TuiDataList} from '@taiga-ui/core'; import {delay, of} from 'rxjs'; @Component({ diff --git a/projects/demo/src/modules/components/pdf-viewer/examples/2/actions-content/index.ts b/projects/demo/src/modules/components/pdf-viewer/examples/2/actions-content/index.ts index b0a450524d15..93e66b7fe9e0 100644 --- a/projects/demo/src/modules/components/pdf-viewer/examples/2/actions-content/index.ts +++ b/projects/demo/src/modules/components/pdf-viewer/examples/2/actions-content/index.ts @@ -5,7 +5,7 @@ import {TuiButton} from '@taiga-ui/core'; import type {TuiPdfViewerOptions} from '@taiga-ui/kit'; import {injectContext} from '@taiga-ui/polymorpheus'; -import type {Buttons} from '../index'; +import type {Buttons} from '..'; @Component({ standalone: true, 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 3b6bd2181be4..ad1817565511 100644 --- a/projects/demo/src/modules/components/select/examples/7/index.ts +++ b/projects/demo/src/modules/components/select/examples/7/index.ts @@ -5,8 +5,8 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import type {TuiStringHandler} from '@taiga-ui/cdk'; import {EMPTY_ARRAY} from '@taiga-ui/cdk'; -import {TuiButton, type TuiValueContentContext} from '@taiga-ui/core'; -import {TuiDataList, TuiTitle} from '@taiga-ui/core'; +import type {TuiValueContentContext} from '@taiga-ui/core'; +import {TuiButton, TuiDataList, TuiTitle} from '@taiga-ui/core'; import {TuiMultiSelectModule, TuiSelectModule} from '@taiga-ui/legacy'; interface Account { diff --git a/projects/demo/src/modules/components/tabs/examples/8/index.ts b/projects/demo/src/modules/components/tabs/examples/8/index.ts index 00bfe6d94f78..1775e902c294 100644 --- a/projects/demo/src/modules/components/tabs/examples/8/index.ts +++ b/projects/demo/src/modules/components/tabs/examples/8/index.ts @@ -1,6 +1,7 @@ import {NgForOf} from '@angular/common'; import {ChangeDetectionStrategy, Component} from '@angular/core'; -import {RouterLink, RouterLinkActive, RouterOutlet, type Routes} from '@angular/router'; +import type {Routes} from '@angular/router'; +import {RouterLink, RouterLinkActive, RouterOutlet} from '@angular/router'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {TuiTabs} from '@taiga-ui/kit'; diff --git a/projects/demo/src/modules/components/tabs/index.ts b/projects/demo/src/modules/components/tabs/index.ts index 321d10f5e030..33ea604f68c2 100644 --- a/projects/demo/src/modules/components/tabs/index.ts +++ b/projects/demo/src/modules/components/tabs/index.ts @@ -2,7 +2,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {TuiDemo} from '@demo/utils'; import {tuiDocExampleOptionsProvider} from '@taiga-ui/addon-doc'; -import {TuiOption, type TuiSizeL} from '@taiga-ui/core'; +import type {TuiSizeL} from '@taiga-ui/core'; +import {TuiOption} from '@taiga-ui/core'; import {TuiTabs} from '@taiga-ui/kit'; @Component({ diff --git a/projects/demo/src/modules/components/tabs/routes.ts b/projects/demo/src/modules/components/tabs/routes.ts index 741507290a3a..f8c5dc9b1774 100644 --- a/projects/demo/src/modules/components/tabs/routes.ts +++ b/projects/demo/src/modules/components/tabs/routes.ts @@ -1,7 +1,7 @@ import type {Routes} from '@angular/router'; +import Page from '.'; import {routes as children} from './examples/8'; -import Page from './index'; export default [ { 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 96d4ad5f08a9..2806caecb54d 100644 --- a/projects/demo/src/modules/components/tree/examples/7/index.ts +++ b/projects/demo/src/modules/components/tree/examples/7/index.ts @@ -4,12 +4,12 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import type {TuiHandler} from '@taiga-ui/cdk'; import {TuiLoader} from '@taiga-ui/core'; +import type {TuiTreeLoader} from '@taiga-ui/kit'; import { TUI_TREE_LOADER, TUI_TREE_LOADING, TUI_TREE_START, TuiTree, - type TuiTreeLoader, TuiTreeService, } from '@taiga-ui/kit'; import type {Observable} from 'rxjs'; diff --git a/projects/demo/src/modules/directives/appearance/index.ts b/projects/demo/src/modules/directives/appearance/index.ts index e835caf79358..e15005e761f2 100644 --- a/projects/demo/src/modules/directives/appearance/index.ts +++ b/projects/demo/src/modules/directives/appearance/index.ts @@ -1,8 +1,8 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {TuiDemo} from '@demo/utils'; -import {type TuiInteractiveState, TuiOption} from '@taiga-ui/core'; -import {TuiButton} from '@taiga-ui/core'; +import type {TuiInteractiveState} from '@taiga-ui/core'; +import {TuiButton, TuiOption} from '@taiga-ui/core'; @Component({ standalone: true, diff --git a/projects/demo/src/modules/directives/dropdown-open/examples/5/index.ts b/projects/demo/src/modules/directives/dropdown-open/examples/5/index.ts index 4a0b9505639c..b127da456a46 100644 --- a/projects/demo/src/modules/directives/dropdown-open/examples/5/index.ts +++ b/projects/demo/src/modules/directives/dropdown-open/examples/5/index.ts @@ -2,13 +2,13 @@ import {Component, Directive} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import {tuiInjectElement} from '@taiga-ui/cdk'; +import type {TuiPoint} from '@taiga-ui/core'; import { tuiAsPositionAccessor, TuiButton, TuiDropdown, TuiDropdownOpen, TuiOption, - type TuiPoint, TuiPositionAccessor, } from '@taiga-ui/core'; diff --git a/projects/kit/components/accordion/test/accordion.component.spec.ts b/projects/kit/components/accordion/test/accordion.component.spec.ts index 4a774c97111c..fe657a598899 100644 --- a/projects/kit/components/accordion/test/accordion.component.spec.ts +++ b/projects/kit/components/accordion/test/accordion.component.spec.ts @@ -1,8 +1,8 @@ import type {HarnessLoader} from '@angular/cdk/testing'; import {parallel} from '@angular/cdk/testing'; import {TestbedHarnessEnvironment} from '@angular/cdk/testing/testbed'; -import {ChangeDetectionStrategy, type QueryList} from '@angular/core'; -import {Component, ViewChild, ViewChildren} from '@angular/core'; +import type {QueryList} from '@angular/core'; +import {ChangeDetectionStrategy, 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'; diff --git a/projects/kit/components/breadcrumbs/test/breadcrumbs.component.spec.ts b/projects/kit/components/breadcrumbs/test/breadcrumbs.component.spec.ts index 429bc8cbe436..d50397009054 100644 --- a/projects/kit/components/breadcrumbs/test/breadcrumbs.component.spec.ts +++ b/projects/kit/components/breadcrumbs/test/breadcrumbs.component.spec.ts @@ -1,6 +1,6 @@ import {NgFor} from '@angular/common'; -import {ChangeDetectionStrategy, type DebugElement} from '@angular/core'; -import {Component, ViewChild} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ViewChild} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; diff --git a/projects/kit/components/calendar-range/test/calendar-range.component.spec.ts b/projects/kit/components/calendar-range/test/calendar-range.component.spec.ts index b245dc0151a5..5e683b3b14c5 100644 --- a/projects/kit/components/calendar-range/test/calendar-range.component.spec.ts +++ b/projects/kit/components/calendar-range/test/calendar-range.component.spec.ts @@ -1,5 +1,11 @@ -import {ChangeDetectionStrategy, type DebugElement} from '@angular/core'; -import {Component, Optional, Self, ViewChild} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import { + ChangeDetectionStrategy, + Component, + Optional, + Self, + ViewChild, +} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {FormControl, NgControl} from '@angular/forms'; diff --git a/projects/kit/components/confirm/confirm.component.ts b/projects/kit/components/confirm/confirm.component.ts index 6f224dba95e6..e7804f96989c 100644 --- a/projects/kit/components/confirm/confirm.component.ts +++ b/projects/kit/components/confirm/confirm.component.ts @@ -5,8 +5,9 @@ import {TUI_IS_MOBILE} from '@taiga-ui/cdk/tokens'; import {TuiButton} from '@taiga-ui/core/components/button'; import type {TuiDialogContext} from '@taiga-ui/core/components/dialog'; import {TUI_CONFIRM_WORDS} from '@taiga-ui/kit/tokens'; -import {injectContext, type PolymorpheusContent} from '@taiga-ui/polymorpheus'; +import type {PolymorpheusContent} from '@taiga-ui/polymorpheus'; import { + injectContext, PolymorpheusComponent, PolymorpheusOutlet, PolymorpheusTemplate, 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 74f6eae36458..703bd18b0071 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,5 @@ -import {ChangeDetectionStrategy, type DebugElement} from '@angular/core'; -import {Component, ViewChild} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ViewChild} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; 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 ed916e56d23b..daa18f605172 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 @@ -2,7 +2,8 @@ import type {Provider} from '@angular/core'; import {tuiCreateToken, tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous'; import type {TuiCountryIsoCode} from '@taiga-ui/i18n/types'; import type {MetadataJson} from 'libphonenumber-js/core'; -import {type Observable, of} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {of} from 'rxjs'; export interface TuiInputPhoneInternationalOptions { readonly countries: readonly TuiCountryIsoCode[]; 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 bf65dde33847..b35e92ff6403 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,5 +1,5 @@ -import {ChangeDetectionStrategy, type DebugElement} from '@angular/core'; -import {Component, ViewChild} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ViewChild} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; diff --git a/projects/kit/components/like/like.component.ts b/projects/kit/components/like/like.component.ts index fea57a5da42a..4f0f2e65bef2 100644 --- a/projects/kit/components/like/like.component.ts +++ b/projects/kit/components/like/like.component.ts @@ -14,7 +14,8 @@ import { import {tuiInjectIconResolver} from '@taiga-ui/core/tokens'; import type {TuiSizeS} from '@taiga-ui/core/types'; -import {TUI_LIKE_OPTIONS, type TuiLikeOptions} from './like.options'; +import type {TuiLikeOptions} from './like.options'; +import {TUI_LIKE_OPTIONS} from './like.options'; @Component({ standalone: true, 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 bea901ad00be..021c397b5eef 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,5 @@ -import {ChangeDetectionStrategy, type DebugElement} from '@angular/core'; -import {Component} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import {ChangeDetectionStrategy, Component} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {DomSanitizer} from '@angular/platform-browser'; diff --git a/projects/kit/components/push/test/push.component.spec.ts b/projects/kit/components/push/test/push.component.spec.ts index 9e0155f37b3b..e246f6d8e066 100644 --- a/projects/kit/components/push/test/push.component.spec.ts +++ b/projects/kit/components/push/test/push.component.spec.ts @@ -1,5 +1,5 @@ -import {ChangeDetectionStrategy, type DebugElement} from '@angular/core'; -import {Component} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import {ChangeDetectionStrategy, Component} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {TuiRoot} from '@taiga-ui/core'; diff --git a/projects/kit/components/radio-list/radio-list.component.ts b/projects/kit/components/radio-list/radio-list.component.ts index 3f49af4fbf85..5cba8cceb7cd 100644 --- a/projects/kit/components/radio-list/radio-list.component.ts +++ b/projects/kit/components/radio-list/radio-list.component.ts @@ -1,9 +1,10 @@ import {NgForOf} from '@angular/common'; -import {inject, type QueryList} from '@angular/core'; +import type {QueryList} from '@angular/core'; import { ChangeDetectionStrategy, Component, computed, + inject, Input, ViewChildren, ViewEncapsulation, 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 981fe639ce67..9a7e5e386cdc 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,5 +1,5 @@ -import {ChangeDetectionStrategy, type Provider} from '@angular/core'; -import {Component} from '@angular/core'; +import type {Provider} from '@angular/core'; +import {ChangeDetectionStrategy, Component} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {fakeAsync, TestBed} from '@angular/core/testing'; import type { diff --git a/projects/kit/components/tabs/test/tabs.component.spec.ts b/projects/kit/components/tabs/test/tabs.component.spec.ts index 797c8383cd5a..f715454a8c1b 100644 --- a/projects/kit/components/tabs/test/tabs.component.spec.ts +++ b/projects/kit/components/tabs/test/tabs.component.spec.ts @@ -1,6 +1,6 @@ import {AsyncPipe, CommonModule} from '@angular/common'; -import {ChangeDetectionStrategy, type DebugElement} from '@angular/core'; -import {Component, Input, ViewChild} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import {ChangeDetectionStrategy, Component, Input, ViewChild} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {By} from '@angular/platform-browser'; diff --git a/projects/kit/components/tiles/tile.service.ts b/projects/kit/components/tiles/tile.service.ts index fbf5f2ff84a3..1d8e7f08fd59 100644 --- a/projects/kit/components/tiles/tile.service.ts +++ b/projects/kit/components/tiles/tile.service.ts @@ -1,5 +1,6 @@ import {isPlatformBrowser} from '@angular/common'; -import {inject, Injectable, type OnDestroy, PLATFORM_ID} from '@angular/core'; +import type {OnDestroy} from '@angular/core'; +import {inject, Injectable, PLATFORM_ID} from '@angular/core'; import {MutationObserverService} from '@ng-web-apis/mutation-observer'; import {ResizeObserverService} from '@ng-web-apis/resize-observer'; import {tuiZonefreeScheduler} from '@taiga-ui/cdk/observables'; diff --git a/projects/kit/directives/button-select/button-select.directive.ts b/projects/kit/directives/button-select/button-select.directive.ts index 5cd487d355cb..56ccf7c73b78 100644 --- a/projects/kit/directives/button-select/button-select.directive.ts +++ b/projects/kit/directives/button-select/button-select.directive.ts @@ -1,10 +1,8 @@ import {Directive} from '@angular/core'; import {TuiControl} from '@taiga-ui/cdk/classes'; import {tuiProvide} from '@taiga-ui/cdk/utils/miscellaneous'; -import { - TUI_DATA_LIST_HOST, - type TuiDataListHost, -} from '@taiga-ui/core/components/data-list'; +import type {TuiDataListHost} from '@taiga-ui/core/components/data-list'; +import {TUI_DATA_LIST_HOST} from '@taiga-ui/core/components/data-list'; import {TuiWithTextfieldDropdown} from '@taiga-ui/core/components/textfield'; import { TuiDropdownDirective, diff --git a/projects/layout/components/navigation/drawer.component.ts b/projects/layout/components/navigation/drawer.component.ts index 6310eb22761a..d546c778c1f0 100644 --- a/projects/layout/components/navigation/drawer.component.ts +++ b/projects/layout/components/navigation/drawer.component.ts @@ -1,7 +1,7 @@ +import type {DoCheck} from '@angular/core'; import { ChangeDetectionStrategy, Component, - type DoCheck, inject, TemplateRef, ViewChild, @@ -25,7 +25,8 @@ import { } from '@taiga-ui/core/tokens'; import {tuiToAnimationOptions} from '@taiga-ui/core/utils/miscellaneous'; import {TUI_LAYOUT_ICONS} from '@taiga-ui/layout/tokens'; -import {type PolymorpheusContent, PolymorpheusOutlet} from '@taiga-ui/polymorpheus'; +import type {PolymorpheusContent} from '@taiga-ui/polymorpheus'; +import {PolymorpheusOutlet} from '@taiga-ui/polymorpheus'; @Component({ standalone: true, diff --git a/projects/layout/components/search/search-filters.component.ts b/projects/layout/components/search/search-filters.component.ts index 38f4bc280a28..4ae642dd2703 100644 --- a/projects/layout/components/search/search-filters.component.ts +++ b/projects/layout/components/search/search-filters.component.ts @@ -1,6 +1,6 @@ import {NgForOf, NgIf, NgTemplateOutlet} from '@angular/common'; +import type {AfterContentInit, QueryList} from '@angular/core'; import { - type AfterContentInit, ChangeDetectionStrategy, Component, computed, @@ -8,7 +8,6 @@ import { ElementRef, inject, Input, - type QueryList, signal, TemplateRef, ViewChild, diff --git a/projects/legacy/components/combo-box/test/combo-box.component.spec.ts b/projects/legacy/components/combo-box/test/combo-box.component.spec.ts index d2a38427bedf..5abff5576ed2 100644 --- a/projects/legacy/components/combo-box/test/combo-box.component.spec.ts +++ b/projects/legacy/components/combo-box/test/combo-box.component.spec.ts @@ -1,5 +1,5 @@ -import {ChangeDetectionStrategy, type DebugElement} from '@angular/core'; -import {Component, ViewChild} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ViewChild} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; diff --git a/projects/legacy/components/input-copy/test/input-copy.component.spec.ts b/projects/legacy/components/input-copy/test/input-copy.component.spec.ts index f59e79ee8cb0..f8413894a9ce 100644 --- a/projects/legacy/components/input-copy/test/input-copy.component.spec.ts +++ b/projects/legacy/components/input-copy/test/input-copy.component.spec.ts @@ -1,5 +1,5 @@ -import {ChangeDetectionStrategy, type DebugElement} from '@angular/core'; -import {Component, ViewChild} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ViewChild} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; diff --git a/projects/legacy/components/input-date-range/test/input-date-range.component.spec.ts b/projects/legacy/components/input-date-range/test/input-date-range.component.spec.ts index c1c7401afdac..e2025b27396c 100644 --- a/projects/legacy/components/input-date-range/test/input-date-range.component.spec.ts +++ b/projects/legacy/components/input-date-range/test/input-date-range.component.spec.ts @@ -1,5 +1,5 @@ -import {ChangeDetectionStrategy, type DebugElement, type Type} from '@angular/core'; -import {Component, Optional, ViewChild} from '@angular/core'; +import type {DebugElement, Type} from '@angular/core'; +import {ChangeDetectionStrategy, 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'; diff --git a/projects/legacy/components/input-date-time/test/input-date-time.component.spec.ts b/projects/legacy/components/input-date-time/test/input-date-time.component.spec.ts index e7bea4f057cf..ad6908ab82b5 100644 --- a/projects/legacy/components/input-date-time/test/input-date-time.component.spec.ts +++ b/projects/legacy/components/input-date-time/test/input-date-time.component.spec.ts @@ -1,5 +1,5 @@ -import {ChangeDetectionStrategy, type DebugElement, type Type} from '@angular/core'; -import {Component, ViewChild} from '@angular/core'; +import type {DebugElement, Type} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ViewChild} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; diff --git a/projects/legacy/components/input-month-range/input-month-range.directive.ts b/projects/legacy/components/input-month-range/input-month-range.directive.ts index 59d6fe5163e2..d886ddda890b 100644 --- a/projects/legacy/components/input-month-range/input-month-range.directive.ts +++ b/projects/legacy/components/input-month-range/input-month-range.directive.ts @@ -5,13 +5,8 @@ import type {TuiMonth, TuiMonthRange} from '@taiga-ui/cdk/date-time'; import type {TuiHandler} from '@taiga-ui/cdk/types'; import {AbstractTuiTextfieldHost} from '@taiga-ui/legacy/classes'; import {TUI_MONTH_FORMATTER, tuiAsTextfieldHost} from '@taiga-ui/legacy/tokens'; -import { - combineLatest, - distinctUntilChanged, - type Observable, - Subject, - switchMap, -} from 'rxjs'; +import type {Observable} from 'rxjs'; +import {combineLatest, distinctUntilChanged, Subject, switchMap} from 'rxjs'; import type {TuiInputMonthRangeComponent} from './input-month-range.component'; diff --git a/projects/legacy/components/input-number/test/input-number.component.spec.ts b/projects/legacy/components/input-number/test/input-number.component.spec.ts index 021ff91e692b..c2a513bab990 100644 --- a/projects/legacy/components/input-number/test/input-number.component.spec.ts +++ b/projects/legacy/components/input-number/test/input-number.component.spec.ts @@ -1,6 +1,6 @@ import {NgIf} from '@angular/common'; -import {ChangeDetectionStrategy, type DebugElement} from '@angular/core'; -import {Component, ViewChild} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import {ChangeDetectionStrategy, 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'; diff --git a/projects/legacy/components/input-password/test/input-password.component.spec.ts b/projects/legacy/components/input-password/test/input-password.component.spec.ts index 21f1df2a219f..6e16505f6d71 100644 --- a/projects/legacy/components/input-password/test/input-password.component.spec.ts +++ b/projects/legacy/components/input-password/test/input-password.component.spec.ts @@ -1,5 +1,5 @@ -import {ChangeDetectionStrategy, type DebugElement} from '@angular/core'; -import {Component, ViewChild} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ViewChild} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; diff --git a/projects/legacy/components/input-phone-international/test/input-phone-international.component.spec.ts b/projects/legacy/components/input-phone-international/test/input-phone-international.component.spec.ts index 6e39720b38b3..8fcf48178ebd 100644 --- a/projects/legacy/components/input-phone-international/test/input-phone-international.component.spec.ts +++ b/projects/legacy/components/input-phone-international/test/input-phone-international.component.spec.ts @@ -1,5 +1,5 @@ -import {ChangeDetectionStrategy, type DebugElement} from '@angular/core'; -import {Component, ViewChild} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ViewChild} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; diff --git a/projects/legacy/components/input-range/test/input-range.component.spec.ts b/projects/legacy/components/input-range/test/input-range.component.spec.ts index 87a14bdaf33f..a63208fc7430 100644 --- a/projects/legacy/components/input-range/test/input-range.component.spec.ts +++ b/projects/legacy/components/input-range/test/input-range.component.spec.ts @@ -1,6 +1,6 @@ import {NgIf} from '@angular/common'; -import {ChangeDetectionStrategy, type DebugElement} from '@angular/core'; -import {Component, ViewChild} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ViewChild} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; diff --git a/projects/legacy/components/input-slider/test/input-slider.component.spec.ts b/projects/legacy/components/input-slider/test/input-slider.component.spec.ts index 525c1d1ed85a..6eeca0ee9a02 100644 --- a/projects/legacy/components/input-slider/test/input-slider.component.spec.ts +++ b/projects/legacy/components/input-slider/test/input-slider.component.spec.ts @@ -1,5 +1,5 @@ -import {ChangeDetectionStrategy, type TemplateRef} from '@angular/core'; -import {Component, ViewChild} from '@angular/core'; +import type {TemplateRef} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ViewChild} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms'; diff --git a/projects/legacy/components/textarea/test/textarea.component.spec.ts b/projects/legacy/components/textarea/test/textarea.component.spec.ts index ad67e39c65d3..a84201f20972 100644 --- a/projects/legacy/components/textarea/test/textarea.component.spec.ts +++ b/projects/legacy/components/textarea/test/textarea.component.spec.ts @@ -1,9 +1,5 @@ -import { - ChangeDetectionStrategy, - Component, - type DebugElement, - ViewChild, -} from '@angular/core'; +import type {DebugElement} from '@angular/core'; +import {ChangeDetectionStrategy, Component, ViewChild} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; import {FormControl, ReactiveFormsModule} from '@angular/forms';