From 5e0313c35aaa612bb55479842505f8bbc82ef9af Mon Sep 17 00:00:00 2001 From: splincode Date: Wed, 19 Jun 2024 18:36:26 +0300 Subject: [PATCH] refactor: rename classes in addon-charts --- .../components/bar-chart/bar-chart.component.ts | 6 +++--- .../bar-chart/test/bar-chart.component.spec.ts | 8 ++++---- .../components/bar-set/bar-set.component.ts | 6 +++--- .../bar-set/test/bar-set.component.spec.ts | 8 ++++---- .../addon-charts/components/bar/bar.component.ts | 2 +- .../components/legend-item/legend-item.component.ts | 2 +- .../line-chart/line-chart-hint.directive.ts | 12 ++++++------ .../components/line-chart/line-chart.component.ts | 2 +- .../line-days-chart/line-days-chart.component.ts | 12 ++++++------ .../components/pie-chart/pie-chart.component.ts | 2 +- .../pie-chart/test/pie-chart.component.spec.ts | 4 ++-- .../components/ring-chart/ring-chart.component.ts | 6 +++--- .../src/modules/components/axes/examples/2/index.ts | 4 ++-- .../src/modules/components/axes/examples/3/index.ts | 4 ++-- .../modules/components/bar-chart/examples/1/index.ts | 4 ++-- .../modules/components/bar-chart/examples/2/index.ts | 4 ++-- .../demo/src/modules/components/bar-chart/index.ts | 4 ++-- .../modules/components/bar-set/examples/1/index.ts | 4 ++-- .../modules/components/bar-set/examples/2/index.ts | 4 ++-- .../modules/components/bar-set/examples/3/index.ts | 4 ++-- .../modules/components/bar-set/examples/4/index.ts | 4 ++-- .../modules/components/bar-set/examples/5/index.ts | 4 ++-- .../demo/src/modules/components/bar-set/index.ts | 4 ++-- .../src/modules/components/bar/examples/1/index.ts | 4 ++-- .../src/modules/components/bar/examples/2/index.ts | 4 ++-- projects/demo/src/modules/components/bar/index.ts | 4 ++-- .../components/legend-item/examples/1/index.ts | 6 +++--- .../components/legend-item/examples/2/index.ts | 6 +++--- .../demo/src/modules/components/legend-item/index.ts | 4 ++-- .../components/line-chart/examples/1/index.ts | 4 ++-- .../components/line-chart/examples/2/index.ts | 4 ++-- .../components/line-chart/examples/3/index.ts | 4 ++-- .../components/line-chart/examples/4/index.ts | 4 ++-- .../components/line-chart/examples/5/index.ts | 4 ++-- .../demo/src/modules/components/line-chart/index.ts | 4 ++-- .../components/line-days-chart/examples/2/index.ts | 4 ++-- .../modules/components/pie-chart/examples/1/index.ts | 4 ++-- .../modules/components/pie-chart/examples/2/index.ts | 4 ++-- .../demo/src/modules/components/pie-chart/index.ts | 4 ++-- .../components/ring-chart/examples/1/index.ts | 4 ++-- .../components/ring-chart/examples/2/index.ts | 4 ++-- .../demo/src/modules/components/ring-chart/index.ts | 4 ++-- 42 files changed, 97 insertions(+), 97 deletions(-) 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 478053689db49..fca93d8000e70 100644 --- a/projects/addon-charts/components/bar-chart/bar-chart.component.ts +++ b/projects/addon-charts/components/bar-chart/bar-chart.component.ts @@ -7,7 +7,7 @@ import { Input, ViewChildren, } from '@angular/core'; -import {TuiBarSetComponent} from '@taiga-ui/addon-charts/components/bar-set'; +import {TuiBarSet} from '@taiga-ui/addon-charts/components/bar-set'; import {EMPTY_QUERY} from '@taiga-ui/cdk/constants'; import {TuiMapperPipe} from '@taiga-ui/cdk/pipes/mapper'; import {TuiIdService} from '@taiga-ui/cdk/services'; @@ -27,13 +27,13 @@ import type {Observable} from 'rxjs'; @Component({ standalone: true, selector: 'tui-bar-chart', - imports: [NgForOf, TuiHint, TuiMapperPipe, AsyncPipe, TuiBarSetComponent], + imports: [NgForOf, TuiHint, TuiMapperPipe, AsyncPipe, TuiBarSet], templateUrl: './bar-chart.template.html', styleUrls: ['./bar-chart.style.less'], changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [tuiHintOptionsProvider({direction: 'top'})], }) -export class TuiBarChartComponent { +export class TuiBarChart { private readonly hintOptions = inject(TuiHintOptionsDirective, {optional: true}); private readonly autoIdString = inject(TuiIdService).generate(); 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 1d2d3a04af1f1..83ecea77dfb89 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,12 +1,12 @@ import {Component, ViewChild} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; -import {TuiBarChartComponent} from '@taiga-ui/addon-charts'; +import {TuiBarChart} from '@taiga-ui/addon-charts'; describe('BarChart', () => { @Component({ standalone: true, - imports: [TuiBarChartComponent], + imports: [TuiBarChart], template: ` { `, }) class Test { - @ViewChild(TuiBarChartComponent) - public readonly component!: TuiBarChartComponent; + @ViewChild(TuiBarChart) + public readonly component!: TuiBarChart; public readonly value = [ [1, 2, 3], 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 43a7d76bc0b41..c2a4916e394d7 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 {NgForOf, NgIf, NgTemplateOutlet} from '@angular/common'; import {ChangeDetectionStrategy, Component, Input} from '@angular/core'; import type {SafeValue} from '@angular/platform-browser'; -import {TuiBarComponent} from '@taiga-ui/addon-charts/components/bar'; +import {TuiBar} from '@taiga-ui/addon-charts/components/bar'; import {tuiPure} from '@taiga-ui/cdk/utils/miscellaneous'; import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; @@ -12,12 +12,12 @@ const FILLER_ARRAY: readonly number[] = [1]; @Component({ standalone: true, selector: 'tui-bar-set', - imports: [NgIf, NgForOf, NgTemplateOutlet, TuiBarComponent], + imports: [NgIf, NgForOf, NgTemplateOutlet, TuiBar], templateUrl: './bar-set.template.html', styleUrls: ['./bar-set.style.less'], changeDetection: ChangeDetectionStrategy.OnPush, }) -export class TuiBarSetComponent { +export class TuiBarSet { @Input() public value: 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 f40c964e7926e..3c91756eb8098 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 @@ -2,12 +2,12 @@ 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 {TuiBarSetComponent} from '@taiga-ui/addon-charts'; +import {TuiBarSet} from '@taiga-ui/addon-charts'; describe('BarSet', () => { @Component({ standalone: true, - imports: [TuiBarSetComponent], + imports: [TuiBarSet], template: ` { `, }) class Test { - @ViewChild(TuiBarSetComponent) - public readonly component!: TuiBarSetComponent; + @ViewChild(TuiBarSet) + public readonly component!: TuiBarSet; public readonly value = [10, 20, 30, 40]; public collapsed = false; diff --git a/projects/addon-charts/components/bar/bar.component.ts b/projects/addon-charts/components/bar/bar.component.ts index c3081fd4c32d8..3ccdd365d304c 100644 --- a/projects/addon-charts/components/bar/bar.component.ts +++ b/projects/addon-charts/components/bar/bar.component.ts @@ -13,7 +13,7 @@ import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core/types'; styleUrls: ['./bar.style.less'], changeDetection: ChangeDetectionStrategy.OnPush, }) -export class TuiBarComponent { +export class TuiBar { @Input() public value: readonly number[] = []; 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 b3b1acecc69ef..e98f47434ac98 100644 --- a/projects/addon-charts/components/legend-item/legend-item.component.ts +++ b/projects/addon-charts/components/legend-item/legend-item.component.ts @@ -10,7 +10,7 @@ import type {TuiSizeS} from '@taiga-ui/core/types'; styleUrls: ['./legend-item.style.less'], changeDetection: ChangeDetectionStrategy.OnPush, }) -export class TuiLegendItemComponent { +export class TuiLegendItem { @Input() public active = false; 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 eb9897f34d152..3ab94ea676946 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 @@ -28,7 +28,7 @@ import { switchMap, } from 'rxjs'; -import {TuiLineChartComponent} from './line-chart.component'; +import {TuiLineChart} from './line-chart.component'; @Directive({ standalone: true, @@ -36,10 +36,10 @@ import {TuiLineChartComponent} from './line-chart.component'; providers: [TuiHoveredService], }) export class TuiLineChartHintDirective implements AfterViewInit { - @ContentChildren(forwardRef(() => TuiLineChartComponent)) - private readonly charts: QueryList = EMPTY_QUERY; + @ContentChildren(forwardRef(() => TuiLineChart)) + private readonly charts: QueryList = EMPTY_QUERY; - @ContentChildren(forwardRef(() => TuiLineChartComponent), {read: ElementRef}) + @ContentChildren(forwardRef(() => TuiLineChart), {read: ElementRef}) private readonly chartsRef: QueryList> = EMPTY_QUERY; private readonly renderer = inject(Renderer2); @@ -63,12 +63,12 @@ export class TuiLineChartHintDirective implements AfterViewInit { } // _chart is required by TuiLineDaysChartComponent that impersonates this directive - public getContext(index: number, _chart: TuiLineChartComponent): readonly TuiPoint[] { + public getContext(index: number, _chart: TuiLineChart): readonly TuiPoint[] { return this.computeContext(...this.charts.map(({value}) => value))[index]; } // _chart is required by TuiLineDaysChartComponent that impersonates this directive - public raise(index: number, _chart: TuiLineChartComponent): void { + public raise(index: number, _chart: TuiLineChart): void { const current = this.charts.map(chart => chart.value[index]); const sorted = [...current].sort((a, b) => a[1] - b[1]); 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 f2d1d9e62f42a..40d2e5e2b1718 100644 --- a/projects/addon-charts/components/line-chart/line-chart.component.ts +++ b/projects/addon-charts/components/line-chart/line-chart.component.ts @@ -40,7 +40,7 @@ import {TuiLineChartHintDirective} from './line-chart-hint.directive'; changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [tuiHintOptionsProvider({direction: 'top', hideDelay: 0})], }) -export class TuiLineChartComponent { +export class TuiLineChart { private readonly zone = inject(NgZone); private readonly options = inject(TUI_LINE_CHART_OPTIONS); private readonly hover$ = new Subject(); 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 e902ab4c8e67c..7952fc979b75a 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 @@ -13,7 +13,7 @@ import { import {takeUntilDestroyed} from '@angular/core/rxjs-interop'; import { TUI_LINE_CHART_OPTIONS, - TuiLineChartComponent, + TuiLineChart, tuiLineChartDrivers, TuiLineChartHintDirective, } from '@taiga-ui/addon-charts/components/line-chart'; @@ -37,7 +37,7 @@ const DUMMY: TuiPoint = [NaN, NaN]; standalone: true, selector: 'tui-line-days-chart', imports: [ - TuiLineChartComponent, + TuiLineChart, NgForOf, TuiHint, PolymorpheusOutlet, @@ -63,8 +63,8 @@ export class TuiLineDaysChartComponent implements AfterViewInit { optional: true, }); - @ViewChildren(TuiLineChartComponent) - public readonly charts: QueryList = EMPTY_QUERY; + @ViewChildren(TuiLineChart) + public readonly charts: QueryList = EMPTY_QUERY; @Input() public y = 0; @@ -178,7 +178,7 @@ export class TuiLineDaysChartComponent implements AfterViewInit { return index - offset; } - protected raise(index: number, {value}: TuiLineChartComponent): void { + protected raise(index: number, {value}: TuiLineChart): void { const x = value[index][0]; const month = this.getDay(x); @@ -193,7 +193,7 @@ export class TuiLineDaysChartComponent implements AfterViewInit { return this.getDay(index).daysCount * this.months.length; } - protected getContext(index: number, {value}: TuiLineChartComponent): unknown { + protected getContext(index: number, {value}: TuiLineChart): unknown { const x = value[index][0]; return this.hintDirective 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 791ef660c392e..6fb6290da3abb 100644 --- a/projects/addon-charts/components/pie-chart/pie-chart.component.ts +++ b/projects/addon-charts/components/pie-chart/pie-chart.component.ts @@ -48,7 +48,7 @@ const TRANSFORM = { changeDetection: ChangeDetectionStrategy.OnPush, viewProviders: [tuiHintOptionsProvider({direction: 'top-right', appearance: 'dark'})], }) -export class TuiPieChartComponent { +export class TuiPieChart { private readonly hintOptions = inject(TuiHintOptionsDirective, {optional: true}); private readonly autoIdString = inject(TuiIdService).generate(); 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 53d226144f616..3317d04c6be67 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 @@ -2,13 +2,13 @@ import {Location} from '@angular/common'; import {Component} from '@angular/core'; import type {ComponentFixture} from '@angular/core/testing'; import {TestBed} from '@angular/core/testing'; -import {TuiPieChartComponent} from '@taiga-ui/addon-charts'; +import {TuiPieChart} from '@taiga-ui/addon-charts'; import {TuiPageObject} from '@taiga-ui/testing'; describe('PieChart', () => { @Component({ standalone: true, - imports: [TuiPieChartComponent], + imports: [TuiPieChart], template: ` `, 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 5d901674943de..960a24350fb90 100644 --- a/projects/addon-charts/components/ring-chart/ring-chart.component.ts +++ b/projects/addon-charts/components/ring-chart/ring-chart.component.ts @@ -6,18 +6,18 @@ import { Input, Output, } from '@angular/core'; -import {TuiPieChartComponent} from '@taiga-ui/addon-charts/components/pie-chart'; +import {TuiPieChart} from '@taiga-ui/addon-charts/components/pie-chart'; import type {TuiSizeXL, TuiSizeXS} from '@taiga-ui/core/types'; @Component({ standalone: true, selector: 'tui-ring-chart', - imports: [TuiPieChartComponent], + imports: [TuiPieChart], templateUrl: './ring-chart.template.html', styleUrls: ['./ring-chart.style.less'], changeDetection: ChangeDetectionStrategy.OnPush, }) -export class TuiRingChartComponent { +export class TuiRingChart { @Input() public value: readonly number[] = []; diff --git a/projects/demo/src/modules/components/axes/examples/2/index.ts b/projects/demo/src/modules/components/axes/examples/2/index.ts index c8213c678b575..bc83479b5091a 100644 --- a/projects/demo/src/modules/components/axes/examples/2/index.ts +++ b/projects/demo/src/modules/components/axes/examples/2/index.ts @@ -6,7 +6,7 @@ import { TUI_ALWAYS_DASHED, TUI_ALWAYS_NONE, TuiAxes, - TuiBarChartComponent, + TuiBarChart, } from '@taiga-ui/addon-charts'; import {TuiAmountPipe} from '@taiga-ui/addon-commerce'; import {tuiCeil, tuiPure} from '@taiga-ui/cdk'; @@ -16,7 +16,7 @@ const BENJI = 100; @Component({ standalone: true, - imports: [TuiAxes, TuiBarChartComponent, TuiHint, TuiAmountPipe, AsyncPipe, NgForOf], + imports: [TuiAxes, TuiBarChart, TuiHint, TuiAmountPipe, AsyncPipe, NgForOf], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/axes/examples/3/index.ts b/projects/demo/src/modules/components/axes/examples/3/index.ts index 08c9864816070..df960dded879d 100644 --- a/projects/demo/src/modules/components/axes/examples/3/index.ts +++ b/projects/demo/src/modules/components/axes/examples/3/index.ts @@ -2,11 +2,11 @@ import {NgForOf} from '@angular/common'; import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiAxes, TuiBarComponent} from '@taiga-ui/addon-charts'; +import {TuiAxes, TuiBar} from '@taiga-ui/addon-charts'; @Component({ standalone: true, - imports: [TuiAxes, TuiBarComponent, NgForOf], + imports: [TuiAxes, TuiBar, NgForOf], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/bar-chart/examples/1/index.ts b/projects/demo/src/modules/components/bar-chart/examples/1/index.ts index a69d14b78242b..17a1ad4315477 100644 --- a/projects/demo/src/modules/components/bar-chart/examples/1/index.ts +++ b/projects/demo/src/modules/components/bar-chart/examples/1/index.ts @@ -1,12 +1,12 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiAxes, TuiBarChartComponent} from '@taiga-ui/addon-charts'; +import {TuiAxes, TuiBarChart} from '@taiga-ui/addon-charts'; import {tuiCeil} from '@taiga-ui/cdk'; @Component({ standalone: true, - imports: [TuiAxes, TuiBarChartComponent], + imports: [TuiAxes, TuiBarChart], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/bar-chart/examples/2/index.ts b/projects/demo/src/modules/components/bar-chart/examples/2/index.ts index 02c922f67215a..7ef02454ab1c7 100644 --- a/projects/demo/src/modules/components/bar-chart/examples/2/index.ts +++ b/projects/demo/src/modules/components/bar-chart/examples/2/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiAxes, TuiBarChartComponent} from '@taiga-ui/addon-charts'; +import {TuiAxes, TuiBarChart} from '@taiga-ui/addon-charts'; import type {TuiContext} from '@taiga-ui/cdk'; import {tuiFormatNumber, TuiHint} from '@taiga-ui/core'; import {TuiDataListWrapper} from '@taiga-ui/kit'; @@ -12,7 +12,7 @@ import {TuiSelectModule} from '@taiga-ui/legacy'; standalone: true, imports: [ TuiAxes, - TuiBarChartComponent, + TuiBarChart, TuiSelectModule, FormsModule, TuiDataListWrapper, diff --git a/projects/demo/src/modules/components/bar-chart/index.ts b/projects/demo/src/modules/components/bar-chart/index.ts index fe44c1006427f..a847dba2be2b8 100644 --- a/projects/demo/src/modules/components/bar-chart/index.ts +++ b/projects/demo/src/modules/components/bar-chart/index.ts @@ -2,13 +2,13 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {DemoRoute} from '@demo/routes'; import {TuiDemo} from '@demo/utils'; -import {TuiBarChartComponent} from '@taiga-ui/addon-charts'; +import {TuiBarChart} from '@taiga-ui/addon-charts'; import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; import {TuiLink, TuiNotification} from '@taiga-ui/core'; @Component({ standalone: true, - imports: [TuiLink, TuiNotification, TuiBarChartComponent, TuiDemo], + imports: [TuiLink, TuiNotification, TuiBarChart, TuiDemo], templateUrl: './index.html', styleUrls: ['./index.less'], changeDetection, diff --git a/projects/demo/src/modules/components/bar-set/examples/1/index.ts b/projects/demo/src/modules/components/bar-set/examples/1/index.ts index 02593fb796dbc..8570c7d6c1d1f 100644 --- a/projects/demo/src/modules/components/bar-set/examples/1/index.ts +++ b/projects/demo/src/modules/components/bar-set/examples/1/index.ts @@ -1,11 +1,11 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiBarSetComponent} from '@taiga-ui/addon-charts'; +import {TuiBarSet} from '@taiga-ui/addon-charts'; @Component({ standalone: true, - imports: [TuiBarSetComponent], + imports: [TuiBarSet], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/bar-set/examples/2/index.ts b/projects/demo/src/modules/components/bar-set/examples/2/index.ts index 02593fb796dbc..8570c7d6c1d1f 100644 --- a/projects/demo/src/modules/components/bar-set/examples/2/index.ts +++ b/projects/demo/src/modules/components/bar-set/examples/2/index.ts @@ -1,11 +1,11 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiBarSetComponent} from '@taiga-ui/addon-charts'; +import {TuiBarSet} from '@taiga-ui/addon-charts'; @Component({ standalone: true, - imports: [TuiBarSetComponent], + imports: [TuiBarSet], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/bar-set/examples/3/index.ts b/projects/demo/src/modules/components/bar-set/examples/3/index.ts index edba4b502040f..501018f383f01 100644 --- a/projects/demo/src/modules/components/bar-set/examples/3/index.ts +++ b/projects/demo/src/modules/components/bar-set/examples/3/index.ts @@ -1,11 +1,11 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiBarSetComponent} from '@taiga-ui/addon-charts'; +import {TuiBarSet} from '@taiga-ui/addon-charts'; @Component({ standalone: true, - imports: [TuiBarSetComponent], + imports: [TuiBarSet], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/bar-set/examples/4/index.ts b/projects/demo/src/modules/components/bar-set/examples/4/index.ts index 1078551ce7d06..ab1bf09b09b61 100644 --- a/projects/demo/src/modules/components/bar-set/examples/4/index.ts +++ b/projects/demo/src/modules/components/bar-set/examples/4/index.ts @@ -1,11 +1,11 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiBarSetComponent} from '@taiga-ui/addon-charts'; +import {TuiBarSet} from '@taiga-ui/addon-charts'; @Component({ standalone: true, - imports: [TuiBarSetComponent], + imports: [TuiBarSet], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/bar-set/examples/5/index.ts b/projects/demo/src/modules/components/bar-set/examples/5/index.ts index 4716ac6c62e7d..ac538d0ab5a0f 100644 --- a/projects/demo/src/modules/components/bar-set/examples/5/index.ts +++ b/projects/demo/src/modules/components/bar-set/examples/5/index.ts @@ -2,12 +2,12 @@ import {AsyncPipe} from '@angular/common'; import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiBarSetComponent} from '@taiga-ui/addon-charts'; +import {TuiBarSet} from '@taiga-ui/addon-charts'; import {TuiFormatNumberPipe} from '@taiga-ui/core'; @Component({ standalone: true, - imports: [TuiBarSetComponent, TuiFormatNumberPipe, AsyncPipe], + imports: [TuiBarSet, TuiFormatNumberPipe, AsyncPipe], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/bar-set/index.ts b/projects/demo/src/modules/components/bar-set/index.ts index 59b93b43a521e..6513a66d92307 100644 --- a/projects/demo/src/modules/components/bar-set/index.ts +++ b/projects/demo/src/modules/components/bar-set/index.ts @@ -1,12 +1,12 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {TuiDemo} from '@demo/utils'; -import {TuiBarSetComponent} from '@taiga-ui/addon-charts'; +import {TuiBarSet} from '@taiga-ui/addon-charts'; import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; @Component({ standalone: true, - imports: [TuiBarSetComponent, TuiDemo], + imports: [TuiBarSet, TuiDemo], templateUrl: './index.html', styleUrls: ['./index.less'], changeDetection, diff --git a/projects/demo/src/modules/components/bar/examples/1/index.ts b/projects/demo/src/modules/components/bar/examples/1/index.ts index e9a8738a71be9..dcbaefbdc504b 100644 --- a/projects/demo/src/modules/components/bar/examples/1/index.ts +++ b/projects/demo/src/modules/components/bar/examples/1/index.ts @@ -1,11 +1,11 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiBarComponent} from '@taiga-ui/addon-charts'; +import {TuiBar} from '@taiga-ui/addon-charts'; @Component({ standalone: true, - imports: [TuiBarComponent], + imports: [TuiBar], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/bar/examples/2/index.ts b/projects/demo/src/modules/components/bar/examples/2/index.ts index df2534b73e2aa..576d8704b709d 100644 --- a/projects/demo/src/modules/components/bar/examples/2/index.ts +++ b/projects/demo/src/modules/components/bar/examples/2/index.ts @@ -1,11 +1,11 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiBarComponent} from '@taiga-ui/addon-charts'; +import {TuiBar} from '@taiga-ui/addon-charts'; @Component({ standalone: true, - imports: [TuiBarComponent], + imports: [TuiBar], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/bar/index.ts b/projects/demo/src/modules/components/bar/index.ts index 6030d8aef22bd..1d425494441ae 100644 --- a/projects/demo/src/modules/components/bar/index.ts +++ b/projects/demo/src/modules/components/bar/index.ts @@ -1,12 +1,12 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {TuiDemo} from '@demo/utils'; -import {TuiBarComponent} from '@taiga-ui/addon-charts'; +import {TuiBar} from '@taiga-ui/addon-charts'; import type {TuiSizeL, TuiSizeS} from '@taiga-ui/core'; @Component({ standalone: true, - imports: [TuiBarComponent, TuiDemo], + imports: [TuiBar, TuiDemo], templateUrl: './index.html', styleUrls: ['./index.less'], changeDetection, diff --git a/projects/demo/src/modules/components/legend-item/examples/1/index.ts b/projects/demo/src/modules/components/legend-item/examples/1/index.ts index 2a537f3883757..8f9049361058c 100644 --- a/projects/demo/src/modules/components/legend-item/examples/1/index.ts +++ b/projects/demo/src/modules/components/legend-item/examples/1/index.ts @@ -2,17 +2,17 @@ import {AsyncPipe, NgForOf} from '@angular/common'; import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiLegendItemComponent, TuiRingChartComponent} from '@taiga-ui/addon-charts'; +import {TuiLegendItem, TuiRingChart} from '@taiga-ui/addon-charts'; import {TuiAmountPipe} from '@taiga-ui/addon-commerce'; import {TuiHoveredDirective, tuiSum} from '@taiga-ui/cdk'; @Component({ standalone: true, imports: [ - TuiRingChartComponent, + TuiRingChart, TuiAmountPipe, AsyncPipe, - TuiLegendItemComponent, + TuiLegendItem, NgForOf, TuiHoveredDirective, ], diff --git a/projects/demo/src/modules/components/legend-item/examples/2/index.ts b/projects/demo/src/modules/components/legend-item/examples/2/index.ts index dc2dfb2cc77f0..35b8b80ffec19 100644 --- a/projects/demo/src/modules/components/legend-item/examples/2/index.ts +++ b/projects/demo/src/modules/components/legend-item/examples/2/index.ts @@ -2,7 +2,7 @@ import {AsyncPipe, NgForOf} from '@angular/common'; import {Component, inject} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiLegendItemComponent, TuiRingChartComponent} from '@taiga-ui/addon-charts'; +import {TuiLegendItem, TuiRingChart} from '@taiga-ui/addon-charts'; import {TuiAmountPipe} from '@taiga-ui/addon-commerce'; import {tuiPure, tuiSum} from '@taiga-ui/cdk'; import {TuiAlertService, tuiFormatNumber, TuiIcon, TuiNotification} from '@taiga-ui/core'; @@ -12,10 +12,10 @@ import {TuiCheckboxComponent} from '@taiga-ui/kit'; standalone: true, imports: [ TuiNotification, - TuiLegendItemComponent, + TuiLegendItem, TuiCheckboxComponent, NgForOf, - TuiRingChartComponent, + TuiRingChart, TuiAmountPipe, AsyncPipe, TuiIcon, diff --git a/projects/demo/src/modules/components/legend-item/index.ts b/projects/demo/src/modules/components/legend-item/index.ts index e59cf4d938374..94fe7d86c4de9 100644 --- a/projects/demo/src/modules/components/legend-item/index.ts +++ b/projects/demo/src/modules/components/legend-item/index.ts @@ -1,13 +1,13 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {TuiDemo} from '@demo/utils'; -import {TuiLegendItemComponent} from '@taiga-ui/addon-charts'; +import {TuiLegendItem} from '@taiga-ui/addon-charts'; import {TuiAmountPipe} from '@taiga-ui/addon-commerce'; import type {TuiSizeS} from '@taiga-ui/core'; @Component({ standalone: true, - imports: [TuiDemo, TuiLegendItemComponent, TuiAmountPipe], + imports: [TuiDemo, TuiLegendItem, TuiAmountPipe], templateUrl: './index.html', changeDetection, }) diff --git a/projects/demo/src/modules/components/line-chart/examples/1/index.ts b/projects/demo/src/modules/components/line-chart/examples/1/index.ts index 3e025f8206fa8..f71eed645de22 100644 --- a/projects/demo/src/modules/components/line-chart/examples/1/index.ts +++ b/projects/demo/src/modules/components/line-chart/examples/1/index.ts @@ -3,7 +3,7 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import { TuiAxes, - TuiLineChartComponent, + TuiLineChart, TuiLineChartHintDirective, } from '@taiga-ui/addon-charts'; import type {TuiContext} from '@taiga-ui/cdk'; @@ -11,7 +11,7 @@ import type {TuiPoint} from '@taiga-ui/core'; @Component({ standalone: true, - imports: [TuiAxes, TuiLineChartComponent, TuiLineChartHintDirective], + imports: [TuiAxes, TuiLineChart, TuiLineChartHintDirective], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/line-chart/examples/2/index.ts b/projects/demo/src/modules/components/line-chart/examples/2/index.ts index 79640f5e5c191..d1210428207e2 100644 --- a/projects/demo/src/modules/components/line-chart/examples/2/index.ts +++ b/projects/demo/src/modules/components/line-chart/examples/2/index.ts @@ -1,12 +1,12 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiAxes, TuiLineChartComponent} from '@taiga-ui/addon-charts'; +import {TuiAxes, TuiLineChart} from '@taiga-ui/addon-charts'; import type {TuiPoint} from '@taiga-ui/core'; @Component({ standalone: true, - imports: [TuiAxes, TuiLineChartComponent], + imports: [TuiAxes, TuiLineChart], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/line-chart/examples/3/index.ts b/projects/demo/src/modules/components/line-chart/examples/3/index.ts index 33de0578557aa..a7b3ee30b3af6 100644 --- a/projects/demo/src/modules/components/line-chart/examples/3/index.ts +++ b/projects/demo/src/modules/components/line-chart/examples/3/index.ts @@ -1,12 +1,12 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiAxes, TuiLineChartComponent} from '@taiga-ui/addon-charts'; +import {TuiAxes, TuiLineChart} from '@taiga-ui/addon-charts'; import type {TuiPoint} from '@taiga-ui/core'; @Component({ standalone: true, - imports: [TuiAxes, TuiLineChartComponent], + imports: [TuiAxes, TuiLineChart], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/line-chart/examples/4/index.ts b/projects/demo/src/modules/components/line-chart/examples/4/index.ts index f3db8649ff963..3d300914ea5c1 100644 --- a/projects/demo/src/modules/components/line-chart/examples/4/index.ts +++ b/projects/demo/src/modules/components/line-chart/examples/4/index.ts @@ -1,14 +1,14 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiAxes, TuiLineChartComponent} from '@taiga-ui/addon-charts'; +import {TuiAxes, TuiLineChart} from '@taiga-ui/addon-charts'; import type {TuiContext, TuiStringHandler} from '@taiga-ui/cdk'; import type {TuiPoint} from '@taiga-ui/core'; import {TuiHint} from '@taiga-ui/core'; @Component({ standalone: true, - imports: [TuiAxes, TuiLineChartComponent, TuiHint], + imports: [TuiAxes, TuiLineChart, TuiHint], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/line-chart/examples/5/index.ts b/projects/demo/src/modules/components/line-chart/examples/5/index.ts index aa2bfbf99b761..f7289c9a631d9 100644 --- a/projects/demo/src/modules/components/line-chart/examples/5/index.ts +++ b/projects/demo/src/modules/components/line-chart/examples/5/index.ts @@ -4,7 +4,7 @@ import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; import { TuiAxes, - TuiLineChartComponent, + TuiLineChart, TuiLineChartHintDirective, } from '@taiga-ui/addon-charts'; import type {TuiContext, TuiStringHandler} from '@taiga-ui/cdk'; @@ -12,7 +12,7 @@ import type {TuiPoint} from '@taiga-ui/core'; @Component({ standalone: true, - imports: [TuiAxes, TuiLineChartComponent, NgForOf, TuiLineChartHintDirective], + imports: [TuiAxes, TuiLineChart, NgForOf, TuiLineChartHintDirective], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/line-chart/index.ts b/projects/demo/src/modules/components/line-chart/index.ts index 388c12a2f62f2..e0e855893c000 100644 --- a/projects/demo/src/modules/components/line-chart/index.ts +++ b/projects/demo/src/modules/components/line-chart/index.ts @@ -1,14 +1,14 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {TuiDemo} from '@demo/utils'; -import {TuiAxes, TuiLineChartComponent} from '@taiga-ui/addon-charts'; +import {TuiAxes, TuiLineChart} from '@taiga-ui/addon-charts'; import type {TuiStringHandler} from '@taiga-ui/cdk'; import type {TuiPoint} from '@taiga-ui/core'; import {TuiLink, TuiNotification} from '@taiga-ui/core'; @Component({ standalone: true, - imports: [TuiDemo, TuiNotification, TuiLink, TuiAxes, TuiLineChartComponent], + imports: [TuiDemo, TuiNotification, TuiLink, TuiAxes, TuiLineChart], templateUrl: './index.html', styleUrls: ['./index.less'], changeDetection, diff --git a/projects/demo/src/modules/components/line-days-chart/examples/2/index.ts b/projects/demo/src/modules/components/line-days-chart/examples/2/index.ts index a33d5cfc8a106..7e6230b4a6f2e 100644 --- a/projects/demo/src/modules/components/line-days-chart/examples/2/index.ts +++ b/projects/demo/src/modules/components/line-days-chart/examples/2/index.ts @@ -4,7 +4,7 @@ import {FormsModule} from '@angular/forms'; import {changeDetection} from '@demo/emulate/change-detection'; import { TuiAxes, - TuiLineChartComponent, + TuiLineChart, TuiLineDaysChartComponent, TuiLineDaysChartHintDirective, } from '@taiga-ui/addon-charts'; @@ -37,7 +37,7 @@ import {map, of} from 'rxjs'; TuiLineDaysChartHintDirective, TuiLineDaysChartComponent, TuiFilterPipe, - TuiLineChartComponent, + TuiLineChart, TuiMapperPipe, ], templateUrl: './index.html', diff --git a/projects/demo/src/modules/components/pie-chart/examples/1/index.ts b/projects/demo/src/modules/components/pie-chart/examples/1/index.ts index 9c12230878acb..ae0bab2430a88 100644 --- a/projects/demo/src/modules/components/pie-chart/examples/1/index.ts +++ b/projects/demo/src/modules/components/pie-chart/examples/1/index.ts @@ -1,11 +1,11 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiPieChartComponent} from '@taiga-ui/addon-charts'; +import {TuiPieChart} from '@taiga-ui/addon-charts'; @Component({ standalone: true, - imports: [TuiPieChartComponent], + imports: [TuiPieChart], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/pie-chart/examples/2/index.ts b/projects/demo/src/modules/components/pie-chart/examples/2/index.ts index 73958fcdaf26c..f0771839cb74c 100644 --- a/projects/demo/src/modules/components/pie-chart/examples/2/index.ts +++ b/projects/demo/src/modules/components/pie-chart/examples/2/index.ts @@ -2,13 +2,13 @@ import {AsyncPipe} from '@angular/common'; import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiPieChartComponent} from '@taiga-ui/addon-charts'; +import {TuiPieChart} from '@taiga-ui/addon-charts'; import {TuiAmountPipe} from '@taiga-ui/addon-commerce'; import {TuiHint} from '@taiga-ui/core'; @Component({ standalone: true, - imports: [TuiPieChartComponent, TuiAmountPipe, AsyncPipe, TuiHint], + imports: [TuiPieChart, TuiAmountPipe, AsyncPipe, TuiHint], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/pie-chart/index.ts b/projects/demo/src/modules/components/pie-chart/index.ts index 5e00edc00aa3a..dc3a0f6658440 100644 --- a/projects/demo/src/modules/components/pie-chart/index.ts +++ b/projects/demo/src/modules/components/pie-chart/index.ts @@ -2,7 +2,7 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {DemoRoute} from '@demo/routes'; import {TuiDemo} from '@demo/utils'; -import {TuiPieChartComponent} from '@taiga-ui/addon-charts'; +import {TuiPieChart} from '@taiga-ui/addon-charts'; import {TuiCurrency, tuiGetCurrencySymbol} from '@taiga-ui/addon-commerce'; import type {TuiContext} from '@taiga-ui/cdk'; import {tuiRound, tuiSum} from '@taiga-ui/cdk'; @@ -12,7 +12,7 @@ import type {PolymorpheusContent} from '@taiga-ui/polymorpheus'; @Component({ standalone: true, - imports: [TuiDemo, TuiNotification, TuiLink, TuiPieChartComponent], + imports: [TuiDemo, TuiNotification, TuiLink, TuiPieChart], templateUrl: './index.html', styleUrls: ['./index.less'], changeDetection, diff --git a/projects/demo/src/modules/components/ring-chart/examples/1/index.ts b/projects/demo/src/modules/components/ring-chart/examples/1/index.ts index e6bbb5cde980d..13bd6b488df2d 100644 --- a/projects/demo/src/modules/components/ring-chart/examples/1/index.ts +++ b/projects/demo/src/modules/components/ring-chart/examples/1/index.ts @@ -1,11 +1,11 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiRingChartComponent} from '@taiga-ui/addon-charts'; +import {TuiRingChart} from '@taiga-ui/addon-charts'; @Component({ standalone: true, - imports: [TuiRingChartComponent], + imports: [TuiRingChart], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/ring-chart/examples/2/index.ts b/projects/demo/src/modules/components/ring-chart/examples/2/index.ts index c38ad8e78d931..095cf16522781 100644 --- a/projects/demo/src/modules/components/ring-chart/examples/2/index.ts +++ b/projects/demo/src/modules/components/ring-chart/examples/2/index.ts @@ -2,13 +2,13 @@ import {AsyncPipe} from '@angular/common'; import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {encapsulation} from '@demo/emulate/encapsulation'; -import {TuiRingChartComponent} from '@taiga-ui/addon-charts'; +import {TuiRingChart} from '@taiga-ui/addon-charts'; import {TuiAmountPipe} from '@taiga-ui/addon-commerce'; import {tuiSum} from '@taiga-ui/cdk'; @Component({ standalone: true, - imports: [TuiRingChartComponent, TuiAmountPipe, AsyncPipe], + imports: [TuiRingChart, TuiAmountPipe, AsyncPipe], templateUrl: './index.html', styleUrls: ['./index.less'], encapsulation, diff --git a/projects/demo/src/modules/components/ring-chart/index.ts b/projects/demo/src/modules/components/ring-chart/index.ts index 33cc6ffa52195..d744ad7ad6207 100644 --- a/projects/demo/src/modules/components/ring-chart/index.ts +++ b/projects/demo/src/modules/components/ring-chart/index.ts @@ -1,12 +1,12 @@ import {Component} from '@angular/core'; import {changeDetection} from '@demo/emulate/change-detection'; import {TuiDemo} from '@demo/utils'; -import {TuiRingChartComponent} from '@taiga-ui/addon-charts'; +import {TuiRingChart} from '@taiga-ui/addon-charts'; import type {TuiSizeXL, TuiSizeXS} from '@taiga-ui/core'; @Component({ standalone: true, - imports: [TuiDemo, TuiRingChartComponent], + imports: [TuiDemo, TuiRingChart], templateUrl: './index.html', styleUrls: ['./index.less'], changeDetection,