Skip to content

Commit 0d01882

Browse files
Merge pull request #1500 from karinakharchenko/ai
Ai chat
2 parents 03dae76 + 25fe7fb commit 0d01882

File tree

8 files changed

+1076
-104
lines changed

8 files changed

+1076
-104
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import {
2+
trigger,
3+
transition,
4+
style,
5+
animate,
6+
query,
7+
group,
8+
} from '@angular/animations';
9+
10+
const easing = 'cubic-bezier(0.4, 0.0, 0.2, 1)';
11+
const duration = '600ms';
12+
13+
export const toggleAnimation = trigger('toggle', [
14+
transition(':enter', [
15+
style({ height: 0, opacity: 0 }),
16+
query('.details', [
17+
style({ transform: 'translateY(-100%)' })
18+
], { optional: true }),
19+
group([
20+
animate(`${duration} ${easing}`, style({ height: '*', opacity: 1 })),
21+
query('.details', [
22+
animate(`${duration} ${easing}`, style({ transform: 'translateY(0)' }))
23+
], { optional: true })
24+
])
25+
]),
26+
transition(':leave', [
27+
style({ height: '*', opacity: 1 }),
28+
query('.details', [
29+
style({ transform: 'translateY(0)' })
30+
], { optional: true }),
31+
group([
32+
animate(`${duration} ${easing}`, style({ height: 0, opacity: 0 })),
33+
query('.details', [
34+
animate(`${duration} ${easing}`, style({ transform: 'translateY(-100%)' }))
35+
], { optional: true })
36+
])
37+
])
38+
]);

frontend/src/app/components/dashboard/dashboard.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ <h3 class='mat-subheading-2'>Rocketadmin can not find any tables</h3>
113113
></app-db-table-row-view>
114114
<app-db-table-ai-panel *ngIf="isAIpanelOpened"
115115
[displayName]="selectedTableDisplayName"
116+
[tableColumns]="dataSource?.dataColumns || []"
117+
[sidebarExpanded]="shownTableTitles"
116118
></app-db-table-ai-panel>
117119
</mat-sidenav-content>
118120
</mat-sidenav-container>

0 commit comments

Comments
 (0)