mirror of
https://github.com/penpot/penpot.git
synced 2026-03-09 19:56:05 +00:00
⬆️ Update plugins dependencies
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user