From 94d20f8d8d9466e6193d9b99ce6166e8e12066f9 Mon Sep 17 00:00:00 2001 From: Sercan Yemen Date: Wed, 20 Jun 2018 16:32:26 +0300 Subject: [PATCH] Replace cdkTable stuff with matTable since table now is a proper Material element --- .../contact-list/contact-list.component.html | 52 +++++++++---------- src/app/main/apps/contacts/contacts.module.ts | 3 -- .../dashboards/project/project.component.html | 40 +++++++------- .../apps/dashboards/project/project.module.ts | 2 - .../main/apps/e-commerce/e-commerce.module.ts | 2 - .../e-commerce/orders/orders.component.html | 46 ++++++++-------- .../products/products.component.html | 46 ++++++++-------- .../file-list/file-list.component.html | 46 ++++++++-------- .../apps/file-manager/file-manager.module.ts | 2 - src/app/main/pages/search/search.module.ts | 2 - .../search/tabs/table/table.component.html | 28 +++++----- 11 files changed, 129 insertions(+), 140 deletions(-) diff --git a/src/app/main/apps/contacts/contact-list/contact-list.component.html b/src/app/main/apps/contacts/contact-list/contact-list.component.html index 015d2a70..fadabf6a 100644 --- a/src/app/main/apps/contacts/contact-list/contact-list.component.html +++ b/src/app/main/apps/contacts/contact-list/contact-list.component.html @@ -1,9 +1,9 @@ - - - + + + @@ -11,26 +11,26 @@ - - - + + + - - Name - + + Name +

{{contact.name}} {{contact.lastName}}

- - Email - + + Email + @@ -38,9 +38,9 @@ - - Phone - + + Phone +

{{contact.phone}}

@@ -48,9 +48,9 @@
- - Job title - + + Job title +

{{contact.jobTitle}}

@@ -58,9 +58,9 @@
- - Company - + + Company +

{{contact.company}}

@@ -68,9 +68,9 @@
- - - + + +
diff --git a/src/app/main/apps/dashboards/project/project.module.ts b/src/app/main/apps/dashboards/project/project.module.ts index 46e2c8f6..127f49d7 100644 --- a/src/app/main/apps/dashboards/project/project.module.ts +++ b/src/app/main/apps/dashboards/project/project.module.ts @@ -1,6 +1,5 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { CdkTableModule } from '@angular/cdk/table'; import { MatButtonModule, MatDividerModule, MatFormFieldModule, MatIconModule, MatMenuModule, MatSelectModule, MatTableModule, MatTabsModule } from '@angular/material'; import { NgxChartsModule } from '@swimlane/ngx-charts'; @@ -28,7 +27,6 @@ const routes: Routes = [ imports : [ RouterModule.forChild(routes), - CdkTableModule, MatButtonModule, MatDividerModule, MatFormFieldModule, diff --git a/src/app/main/apps/e-commerce/e-commerce.module.ts b/src/app/main/apps/e-commerce/e-commerce.module.ts index b01a6ff2..abd3f06e 100644 --- a/src/app/main/apps/e-commerce/e-commerce.module.ts +++ b/src/app/main/apps/e-commerce/e-commerce.module.ts @@ -1,6 +1,5 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { CdkTableModule } from '@angular/cdk/table'; import { MatButtonModule, MatChipsModule, MatFormFieldModule, MatIconModule, MatInputModule, MatPaginatorModule, MatRippleModule, MatSelectModule, MatSnackBarModule, MatSortModule, MatTableModule, MatTabsModule } from '@angular/material'; import { NgxChartsModule } from '@swimlane/ngx-charts'; import { AgmCoreModule } from '@agm/core'; @@ -75,7 +74,6 @@ const routes: Routes = [ imports : [ RouterModule.forChild(routes), - CdkTableModule, MatButtonModule, MatChipsModule, MatFormFieldModule, diff --git a/src/app/main/apps/e-commerce/orders/orders.component.html b/src/app/main/apps/e-commerce/orders/orders.component.html index 0ea2bdce..5a6cd0ff 100644 --- a/src/app/main/apps/e-commerce/orders/orders.component.html +++ b/src/app/main/apps/e-commerce/orders/orders.component.html @@ -46,25 +46,25 @@ fusePerfectScrollbar> - - ID - + + ID +

{{order.id}}

- - Reference - + + Reference +

{{order.reference}}

- - Customer - + + Customer +

{{order.customer.firstName}} {{order.customer.lastName}} @@ -73,9 +73,9 @@ - - Total - + + Total +

{{order.total | currency:'USD':'symbol'}}

@@ -83,9 +83,9 @@
- - Payment - + + Payment +

{{order.payment.method}}

@@ -93,9 +93,9 @@
- - Status - + + Status +

{{order.status[0].name}}

@@ -103,18 +103,18 @@
- - Date - + + Date +

{{order.date}}

- + - diff --git a/src/app/main/apps/e-commerce/products/products.component.html b/src/app/main/apps/e-commerce/products/products.component.html index 3c8ccaed..2d5be7fd 100644 --- a/src/app/main/apps/e-commerce/products/products.component.html +++ b/src/app/main/apps/e-commerce/products/products.component.html @@ -55,17 +55,17 @@ fusePerfectScrollbar> - - ID - + + ID +

{{product.id}}

- - - + + + @@ -74,17 +74,17 @@ - - Name - + + Name +

{{product.name}}

- - Category - + + Category +

{{product.categories[0]}}

@@ -92,9 +92,9 @@
- - Price - + + Price +

{{product.priceTaxIncl | currency:'USD':'symbol'}}

@@ -102,9 +102,9 @@
- - Quantity - + + Quantity + @@ -117,17 +117,17 @@ - - Active - + + Active + check close - + - diff --git a/src/app/main/apps/file-manager/file-list/file-list.component.html b/src/app/main/apps/file-manager/file-list/file-list.component.html index 721b781b..175fccd7 100644 --- a/src/app/main/apps/file-manager/file-list/file-list.component.html +++ b/src/app/main/apps/file-manager/file-list/file-list.component.html @@ -1,47 +1,47 @@ - - - + + + - - Name - {{row.name}} + + Name + {{row.name}} - - Type - {{row.type}} + + Type + {{row.type}} - - Owner - {{row.owner}} + + Owner + {{row.owner}} - - Size - {{row.size === '' ? '-': row.size}} + + Size + {{row.size === '' ? '-': row.size}} - - Modified - {{row.modified}} + + Modified + {{row.modified}} - - - + + +