Skip to content
Draft

Ai chat #1500

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions frontend/src/app/animations/toggle.animation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import {
trigger,
transition,
style,
animate,
query,
group,
} from '@angular/animations';

const easing = 'cubic-bezier(0.4, 0.0, 0.2, 1)';
const duration = '600ms';

export const toggleAnimation = trigger('toggle', [
transition(':enter', [
style({ height: 0, opacity: 0 }),
query('.details', [
style({ transform: 'translateY(-100%)' })
], { optional: true }),
group([
animate(`${duration} ${easing}`, style({ height: '*', opacity: 1 })),
query('.details', [
animate(`${duration} ${easing}`, style({ transform: 'translateY(0)' }))
], { optional: true })
])
]),
transition(':leave', [
style({ height: '*', opacity: 1 }),
query('.details', [
style({ transform: 'translateY(0)' })
], { optional: true }),
group([
animate(`${duration} ${easing}`, style({ height: 0, opacity: 0 })),
query('.details', [
animate(`${duration} ${easing}`, style({ transform: 'translateY(-100%)' }))
], { optional: true })
])
])
]);
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ <h3 class='mat-subheading-2'>Rocketadmin can not find any tables</h3>
></app-db-table-row-view>
<app-db-table-ai-panel *ngIf="isAIpanelOpened"
[displayName]="selectedTableDisplayName"
[tableColumns]="dataSource?.dataColumns || []"
[sidebarExpanded]="shownTableTitles"
></app-db-table-ai-panel>
</mat-sidenav-content>
</mat-sidenav-container>
Expand Down
Loading
Loading