⬆️ Update plugins dependencies

This commit is contained in:
Juanfran
2026-01-22 12:45:33 +01:00
committed by Andrey Antukh
parent 91671afb7a
commit 8aec8d90d2
51 changed files with 10315 additions and 14866 deletions

View File

@@ -1,17 +1,19 @@
<div [formGroup]="form">
<p class="text body-s">Import a data file (CSV)</p>
<div class="error" *ngIf="fileError">
<img
class="close-icon"
(click)="clearError()"
src="../assets/close.svg"
alt="close error"
/>
<span class="message body-s"
>Something was wrong. <br />
Make sure the formst is .csv</span
>
</div>
@if (fileError) {
<div class="error">
<img
class="close-icon"
(click)="clearError()"
src="../assets/close.svg"
alt="close error"
/>
<span class="message body-s"
>Something was wrong. <br />
Make sure the formst is .csv</span
>
</div>
}
<div class="input-container">
<input
type="file"
@@ -25,9 +27,11 @@
<hr />
<div class="new-table">
<p class="text body-s">Or create a new table</p>
<span *ngIf="selectedColumn && selectedRow !== 0" class="tag"
>{{ selectedRow }} rows x {{ selectedColumn }} cols</span
>
@if (selectedColumn && selectedRow !== 0) {
<span class="tag"
>{{ selectedRow }} rows x {{ selectedColumn }} cols</span
>
}
</div>
<div class="checkbox-container">
@@ -73,21 +77,22 @@
</div>
<div class="table-grid">
<span
class="cell"
*ngFor="let cell of cells; index as i"
(mouseenter)="setColRow(i)"
(mouseleave)="clearColRow()"
(click)="createTable(i)"
>
@for (cell of cells; track cell; let i = $index) {
<span
class="square"
[class.active]="
selectedCell &&
selectedCell.column >= getCellColRow(i).column &&
selectedCell.row >= getCellColRow(i).row
"
></span>
</span>
class="cell"
(mouseenter)="setColRow(i)"
(mouseleave)="clearColRow()"
(click)="createTable(i)"
>
<span
class="square"
[class.active]="
selectedCell &&
selectedCell.column >= getCellColRow(i).column &&
selectedCell.row >= getCellColRow(i).row
"
></span>
</span>
}
</div>
</div>

View File

@@ -1,7 +1,7 @@
import { Component, inject } from '@angular/core';
import { ActivatedRoute, RouterModule } from '@angular/router';
import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
import { CommonModule } from '@angular/common';
import type {
Cell,
PluginMessageEvent,
@@ -12,7 +12,7 @@ import { filter, fromEvent, map, merge, take } from 'rxjs';
import { FormBuilder, ReactiveFormsModule, FormGroup } from '@angular/forms';
@Component({
imports: [RouterModule, CommonModule, ReactiveFormsModule],
imports: [RouterModule, ReactiveFormsModule],
selector: 'app-root',
templateUrl: './app.component.html',
styleUrl: './app.component.css',

View File

@@ -1,7 +1,9 @@
import { provideZoneChangeDetection } from '@angular/core';
import { bootstrapApplication } from '@angular/platform-browser';
import { appConfig } from './app/app.config';
import { AppComponent } from './app/app.component';
bootstrapApplication(AppComponent, appConfig).catch((err) =>
console.error(err),
);
bootstrapApplication(AppComponent, {
...appConfig,
providers: [provideZoneChangeDetection(), ...appConfig.providers],
}).catch((err) => console.error(err));