Skip to content

Commit

Permalink
chore(deps): update taiga-ui (#8044)
Browse files Browse the repository at this point in the history
Co-authored-by: taiga-family-bot <[email protected]>
  • Loading branch information
taiga-family-bot and taiga-family-bot authored Jul 4, 2024
1 parent d45b398 commit 71866f5
Show file tree
Hide file tree
Showing 428 changed files with 961 additions and 926 deletions.
119 changes: 59 additions & 60 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@
"@nx/jest": "18.3.4",
"@nx/workspace": "18.3.4",
"@schematics/angular": "16.2.12",
"@taiga-ui/browserslist-config": "0.109.2",
"@taiga-ui/commitlint-config": "0.109.2",
"@taiga-ui/cspell-config": "0.109.2",
"@taiga-ui/design-tokens": "0.91.0",
"@taiga-ui/eslint-plugin-experience": "0.109.2",
"@taiga-ui/browserslist-config": "0.113.1",
"@taiga-ui/commitlint-config": "0.113.1",
"@taiga-ui/cspell-config": "0.113.1",
"@taiga-ui/design-tokens": "0.103.0",
"@taiga-ui/eslint-plugin-experience": "0.113.1",
"@taiga-ui/event-plugins": "4.0.1",
"@taiga-ui/prettier-config": "0.109.2",
"@taiga-ui/stylelint-config": "0.109.2",
"@taiga-ui/tsconfig": "0.109.2",
"@taiga-ui/prettier-config": "0.113.1",
"@taiga-ui/stylelint-config": "0.113.1",
"@taiga-ui/tsconfig": "0.113.1",
"@types/glob": "8.1.0",
"@types/loader-utils": "2.0.6",
"@types/node": "20.14.9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ export class TuiArcChart {

@Output()
public readonly activeItemIndexChange = this.arcs$.pipe(
switchMap(arcs =>
switchMap((arcs) =>
arcs.changes.pipe(
startWith(null),
switchMap(() => merge(...arcsToIndex(arcs))),
),
),
tap(index => {
tap((index) => {
this.activeItemIndex = index;
}),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class TuiBarSet {

@tuiPure
private getLargest(value: readonly number[]): number {
return value.some(a => a > 0)
return value.some((a) => a > 0)
? value.reduce((a, b) => (a > b ? a : b), 0)
: Math.abs(value.reduce((a, b) => (a < b ? a : b), 0));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ export class TuiLineChartHint implements AfterViewInit {
public ngAfterViewInit(): void {
combineLatest([tuiLineChartDrivers(this.charts), this.hovered$])
.pipe(
filter(result => !result.some(Boolean)),
filter((result) => !result.some(Boolean)),
tuiZonefree(this.zone),
takeUntilDestroyed(this.destroyRef),
)
.subscribe(() => {
this.charts.forEach(chart => chart.onHovered(NaN));
this.charts.forEach((chart) => chart.onHovered(NaN));
});
}

Expand All @@ -69,10 +69,10 @@ export class TuiLineChartHint implements AfterViewInit {

// _chart is required by TuiLineDaysChartComponent that impersonates this directive
public raise(index: number, _chart: TuiLineChart): void {
const current = this.charts.map(chart => chart.value[index]);
const current = this.charts.map((chart) => chart.value[index]);
const sorted = [...current].sort((a, b) => a[1] - b[1]);

this.charts.forEach(chart => chart.onHovered(index));
this.charts.forEach((chart) => chart.onHovered(index));
this.chartsRef.forEach(({nativeElement}, index) =>
this.renderer.setStyle(
nativeElement,
Expand All @@ -86,7 +86,7 @@ export class TuiLineChartHint implements AfterViewInit {
private computeContext(
...values: ReadonlyArray<readonly TuiPoint[]>
): ReadonlyArray<readonly TuiPoint[]> {
return (values[0] || []).map((_, index) => values.map(value => value[index]));
return (values[0] || []).map((_, index) => values.map((value) => value[index]));
}
}

Expand All @@ -96,13 +96,13 @@ export function tuiLineChartDrivers(
return combineLatest(
charts.map(({drivers}) =>
tuiQueryListChanges(drivers).pipe(
map(drivers => drivers.map(driver => driver.pipe(startWith(false)))),
map((drivers) => drivers.map((driver) => driver.pipe(startWith(false)))),
),
),
).pipe(
map(all => all.reduce((acc, drivers) => acc.concat(drivers), [])),
switchMap(drivers => combineLatest(drivers)),
map(values => values.some(Boolean)),
map((all) => all.reduce((acc, drivers) => acc.concat(drivers), [])),
switchMap((drivers) => combineLatest(drivers)),
map((values) => values.some(Boolean)),
distinctUntilChanged(),
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class TuiLineChart {

@Input('value')
public set valueSetter(value: readonly TuiPoint[]) {
this.value = value.filter(item => !item.some(Number.isNaN));
this.value = value.filter((item) => !item.some(Number.isNaN));
}

public onHovered(index: number): void {
Expand Down
Loading

0 comments on commit 71866f5

Please sign in to comment.