From dcf5a4ffb0b8c07ecae6ec0fe90b87d2c532754b Mon Sep 17 00:00:00 2001 From: MishaZhem Date: Thu, 15 Aug 2024 18:14:49 +0300 Subject: [PATCH] chore: add expand calendar --- .../administrator.component.html | 107 ++++++++++-------- .../administrator/administrator.component.ts | 13 ++- 2 files changed, 72 insertions(+), 48 deletions(-) diff --git a/apps/taiga-lumbermill/src/dashboards/space-zoo/components/administrator/administrator.component.html b/apps/taiga-lumbermill/src/dashboards/space-zoo/components/administrator/administrator.component.html index 36c7e755f..c41731825 100644 --- a/apps/taiga-lumbermill/src/dashboards/space-zoo/components/administrator/administrator.component.html +++ b/apps/taiga-lumbermill/src/dashboards/space-zoo/components/administrator/administrator.component.html @@ -50,57 +50,70 @@

> Open Table + + + + + @if (calendarValue) { +
Chosen date: {{ calendarValue }}
+ } +
+
-
- @for (animal of animals; track $index) { -
- -
-

- {{ animal.title }} -

-
+
+
+ @for (animal of animals; track $index) {
- +
+

+ {{ animal.title }} +

+
+
- {{ animal.health }} - - @for (tag of animal.tags; track $index) { - {{ tag }} - } + + {{ animal.health }} + + @for (tag of animal.tags; track $index) { + {{ tag }} + } +
-
- } + } +
- -@if (calendarValue) { -
Chosen date: {{ calendarValue }}
-} diff --git a/apps/taiga-lumbermill/src/dashboards/space-zoo/components/administrator/administrator.component.ts b/apps/taiga-lumbermill/src/dashboards/space-zoo/components/administrator/administrator.component.ts index 8d7ef53d8..4748f6925 100644 --- a/apps/taiga-lumbermill/src/dashboards/space-zoo/components/administrator/administrator.component.ts +++ b/apps/taiga-lumbermill/src/dashboards/space-zoo/components/administrator/administrator.component.ts @@ -3,7 +3,15 @@ import {ChangeDetectionStrategy, Component, EventEmitter, Output} from '@angular import {TuiPieChart} from '@taiga-ui/addon-charts'; import {TuiAmountPipe} from '@taiga-ui/addon-commerce'; import type {TuiDay} from '@taiga-ui/cdk'; -import {TuiAppearance, TuiButton, TuiCalendar, TuiHint, TuiTitle} from '@taiga-ui/core'; +import { + TuiAppearance, + TuiButton, + TuiCalendar, + TuiExpand, + TuiHint, + TuiLink, + TuiTitle, +} from '@taiga-ui/core'; import {TuiAvatar, TuiBadge, TuiStatus} from '@taiga-ui/kit'; import {TuiCardLarge, TuiHeader} from '@taiga-ui/layout'; @@ -20,8 +28,10 @@ import {TuiCardLarge, TuiHeader} from '@taiga-ui/layout'; TuiButton, TuiCalendar, TuiCardLarge, + TuiExpand, TuiHeader, TuiHint, + TuiLink, TuiPieChart, TuiStatus, TuiTitle, @@ -34,6 +44,7 @@ export class AdministratorComponent { protected readonly value = [13769, 12367, 10172, 3018, 2592]; protected readonly labels = ['Food', 'Сleaning', 'Electricity', 'Water', 'Other']; protected calendarValue: TuiDay | null = null; + protected expanded = false; protected animals = [ {