From 665c93c96434777ebfeeda304eafeeed8854b897 Mon Sep 17 00:00:00 2001 From: rfrt Date: Tue, 30 Jul 2024 16:20:41 +0200 Subject: [PATCH] feat: splitter angular15 --- .../app/splitter/splitter-demo.component.html | 2 +- .../app/splitter/splitter-demo.component.scss | 16 ++++++++-------- .../src/app/splitter/splitter-demo.component.ts | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/projects/demo-app/src/app/splitter/splitter-demo.component.html b/projects/demo-app/src/app/splitter/splitter-demo.component.html index f96da3b0..ec3071b2 100644 --- a/projects/demo-app/src/app/splitter/splitter-demo.component.html +++ b/projects/demo-app/src/app/splitter/splitter-demo.component.html @@ -1,4 +1,4 @@ - + diff --git a/projects/demo-app/src/app/splitter/splitter-demo.component.scss b/projects/demo-app/src/app/splitter/splitter-demo.component.scss index ea9d7915..9cc3257d 100644 --- a/projects/demo-app/src/app/splitter/splitter-demo.component.scss +++ b/projects/demo-app/src/app/splitter/splitter-demo.component.scss @@ -10,19 +10,19 @@ app-splitter-demo { } } - .mat-tab-group { + .mat-mdc-tab-group { display: flex; height: 100%; - .mat-tab-body-wrapper { + .mat-mdc-tab-body-wrapper { flex: 1; - .mat-tab-body { - .mat-tab-body-content { + .mat-mdc-tab-body { + .mat-mdc-tab-body-content { display: flex; flex-direction: column; - .mat-card { + .mat-mdc-card { flex: 1 1 100%; overflow: hidden; min-height: 300px; @@ -32,16 +32,16 @@ app-splitter-demo { &.fixed-height { overflow: hidden; - .mat-tab-body-content { + .mat-mdc-tab-body-content { overflow: hidden; - .mat-card { + .mat-mdc-card { height: calc(100% - 10px); margin: 0; display: flex; flex-direction: column; - .mat-card-content { + .mat-mdc-card-content { flex: 1; ngx-splitter { diff --git a/projects/demo-app/src/app/splitter/splitter-demo.component.ts b/projects/demo-app/src/app/splitter/splitter-demo.component.ts index 987f810e..459587b9 100644 --- a/projects/demo-app/src/app/splitter/splitter-demo.component.ts +++ b/projects/demo-app/src/app/splitter/splitter-demo.component.ts @@ -1,6 +1,6 @@ import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core'; -import { MatLegacyCardModule as MatCardModule } from '@angular/material/legacy-card'; -import { MatLegacyTabsModule as MatTabsModule } from '@angular/material/legacy-tabs'; +import { MatCardModule } from '@angular/material/card'; +import { MatTabsModule } from '@angular/material/tabs'; import { MatToolbarModule } from '@angular/material/toolbar'; import { NgxSplitAreaDirective, NgxSplitterComponent } from '@hug/ngx-splitter';