From 94b1fc2a8d3835cca8636c041e39dbbcbad86a65 Mon Sep 17 00:00:00 2001 From: itskovacs Date: Wed, 13 Aug 2025 21:57:47 +0200 Subject: [PATCH] :lipstick: Expand table feature --- .../app/components/trip/trip.component.html | 21 +++++++++---------- src/src/app/components/trip/trip.component.ts | 4 +++- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/src/app/components/trip/trip.component.html b/src/src/app/components/trip/trip.component.html index db7d47c..09b1b92 100644 --- a/src/src/app/components/trip/trip.component.html +++ b/src/src/app/components/trip/trip.component.html @@ -47,7 +47,8 @@ }
-
+
@@ -57,6 +58,7 @@
-
+
@if (selectedItem) {
@@ -292,8 +295,8 @@ }
- } +
@@ -338,7 +341,7 @@
@if (!collapsedTripPlaces) { -
+
@defer { @for (p of places; track p.id) {
@if (!collapsedTripDays) { -
+
@defer { @for (d of trip?.days; track d.id) {
@if (!collapsedTripStatuses) { -
+
@defer { @for (item of getWatchlistData; track item.id) {
@@ -520,8 +523,4 @@ } } - -
- -
- \ No newline at end of file + diff --git a/src/src/app/components/trip/trip.component.ts b/src/src/app/components/trip/trip.component.ts index 557423e..a619316 100644 --- a/src/src/app/components/trip/trip.component.ts +++ b/src/src/app/components/trip/trip.component.ts @@ -39,7 +39,7 @@ import { import { YesNoModalComponent } from "../../modals/yes-no-modal/yes-no-modal.component"; import { UtilsService } from "../../services/utils.service"; import { TripCreateModalComponent } from "../../modals/trip-create-modal/trip-create-modal.component"; -import { AsyncPipe, DecimalPipe } from "@angular/common"; +import { AsyncPipe, CommonModule, DecimalPipe } from "@angular/common"; import { MenuItem } from "primeng/api"; import { MenuModule } from "primeng/menu"; import { LinkifyPipe } from "../../shared/linkify.pipe"; @@ -52,6 +52,7 @@ import { ClipboardModule } from "@angular/cdk/clipboard"; selector: "app-trip", standalone: true, imports: [ + CommonModule, FormsModule, SkeletonModule, MenuModule, @@ -85,6 +86,7 @@ export class TripComponent implements AfterViewInit { collapsedTripPlaces = false; collapsedTripStatuses = false; shareDialogVisible = false; + isExpanded = false; map?: L.Map; markerClusterGroup?: L.MarkerClusterGroup;