Multiple selection/drop for only .sql files and custom colo
}
]]>
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/src/app/components/components/highlight/highlight.component.html b/src/app/components/components/highlight/highlight.component.html
index 9f6c27b17d..415b617b2d 100644
--- a/src/app/components/components/highlight/highlight.component.html
+++ b/src/app/components/components/highlight/highlight.component.html
@@ -1,8 +1,8 @@
-
- Syntax Highlighting
- Highlighting your code snippets
-
-
+
+ Syntax Highlighting
+ Highlighting your code snippets
+
+
Example:
HTML usage:
@@ -64,7 +64,7 @@
hello world!
}
]]>
-
-
+
+
diff --git a/src/app/components/components/http/http.component.html b/src/app/components/components/http/http.component.html
index a8f9349570..012f1f3742 100644
--- a/src/app/components/components/http/http.component.html
+++ b/src/app/components/components/http/http.component.html
@@ -1,8 +1,8 @@
-
- HttpInterceptorService
- How to use this service
-
-
+
+ HttpInterceptorService
+ How to use this service
+
+
HttpInterceptorService
Service provided with methods that wrap the @angular [Http] service and provide an easier experience for interceptor implementation.
To add a desired interceptor, it needs to implement the [IHttpInterceptor] interface.
@@ -18,15 +18,15 @@
HttpInterceptorService
Methods:
The [HttpInterceptorService] service has {{interceptorServiceMethods.length}} properties:
export class MyModule {}
]]>
-
-
-
- TdMediaToggleDirective
- How to use this directive
-
-
+
+
+
+ TdMediaToggleDirective
+ How to use this directive
+
+
tdMediaToggle
Simply add the tdMediaToggle attibute with a "media query" value to the element you want to modify depending on screen size.
Properties:
The tdMediaToggle directive has {{mediaAttrs.length}} properties:
-
- Card title
-
+
+ Card title
+
-
+
content
-
-
+
+
Toggle visibility:
- cancel
+ cancel
-
-
-
- Code
-
+
+
+
+ Code
+
HTML:
Standalone message:
Message in a card with action
-
+
- VIEW MORE
+ VIEW MORE
-
+
Message in a card content:
-
- Card title
-
+
+ Card title
+
-
+
content
-
-
+
+
Toggle visibility:
- cancel
+ cancel
-
+
Toggle Visibility
]]>
-
-
-
-
-
-
+
+
+
+
+
+
Toggle Visibility
-
-
-
- Material Colored Messages
- Use the full Material Design color palette
-
-
-
- Demo
-
+
+
+
+ Material Colored Messages
+ Use the full Material Design color palette
+
+
+
+ Demo
+
Using color:
- VIEW MORE
+ VIEW MORE
Using class:
- VIEW MORE
+ VIEW MORE
-
-
-
- Code
-
+
+
+
+ Code
+
HTML:
Using color:
- VIEW MORE
+ VIEW MORE
Using class:
- VIEW MORE
+ VIEW MORE
]]>
-
-
-
-
-
-
+
+
+
+
+
+
Color Guide
-
-
+
+
\ No newline at end of file
diff --git a/src/app/components/components/ngx-charts/ngx-charts.component.html b/src/app/components/components/ngx-charts/ngx-charts.component.html
index e6862fe775..d7731a3ddd 100644
--- a/src/app/components/components/ngx-charts/ngx-charts.component.html
+++ b/src/app/components/components/ngx-charts/ngx-charts.component.html
@@ -1,8 +1,8 @@
-
- NGX-Charts (External library)
- Declarative Charting Framework for Angular
-
-
+
+ NGX-Charts (External library)
+ Declarative Charting Framework for Angular
+
+
Rather than building & maintaining our own td-charts D3 component, we've opted instead to partner with an external open-source library.
Charts components are a massive undertaking and would have detracted from the features & support of Covalent.
The NGX-Charts team took the exact approach we would have and did a fantastic job building a framework that can be extended. We therefor are an official partner and will be contributing massive additions.
@@ -14,17 +14,17 @@
Easily add new chart components in a modular fashion
Everything is styled via SCSS
-
-
-
- NGX-Charts Docs
-
-
-
- Example Charts
- Samples of various available charts
-
-
+
+
+
+ NGX-Charts Docs
+
+
+
+ Example Charts
+ Samples of various available charts
+
+
}
]]>
-
-
-
-
-
- See demos in spanish
- See demos in english
-
-
\ No newline at end of file
+
+
+
+
+
+ See demos in spanish
+ See demos in english
+
+
\ No newline at end of file
diff --git a/src/app/components/components/notifications/notifications.component.html b/src/app/components/components/notifications/notifications.component.html
index 3011c2a5ca..629fed3cef 100644
--- a/src/app/components/components/notifications/notifications.component.html
+++ b/src/app/components/components/notifications/notifications.component.html
@@ -1,267 +1,267 @@
-
- Notifications
- Notification count & menu for toolbar
-
-
+
+ Notifications
+ Notification count & menu for toolbar
+
+
-
-
-
- Optional Components
- Extra components & services not required
-
-
+
+
+
+ Optional Components
+ Extra components & services not required
+
+
-
-
- {{item.icon}}
-
-
+
+
+ {{item.icon}}
+
+
{{item.title}}
-
-
+
+
-
-
-
- External Components
- Recommended but not maintained by Covalent
-
-
+
+
+
+ External Components
+ Recommended but not maintained by Covalent
+
+
-
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/src/app/components/components/paging/paging.component.html b/src/app/components/components/paging/paging.component.html
index 663cc17ec6..7acefb2f98 100644
--- a/src/app/components/components/paging/paging.component.html
+++ b/src/app/components/components/paging/paging.component.html
@@ -1,11 +1,11 @@
-
- Paging
- Paging bar for lists and tables
-
-
-
- Demo
-
+
+ Paging
+ Paging bar for lists and tables
+
+
+
+ Demo
+
Change Event:
Page Size: {{event?.pageSize || '100'}}
@@ -13,15 +13,15 @@
Rows: {{event?.fromRow || '1'}} to {{event?.toRow || '100'}}
-
-
+
+
-
- Paging with dynamic page size
- Set a select to change the page size on the fly
-
-
-
- Demo
-
+
+ Paging with dynamic page size
+ Set a select to change the page size on the fly
+
+
+
+ Demo
+
Change Event:
Page Size: {{eventPageSize?.pageSize || '100'}}
@@ -75,31 +75,31 @@
Rows: {{eventPageSize?.fromRow || '1'}} to {{eventPageSize?.toRow || '100'}}
-
+
-
+
{ {pagingBarResponsive.range} } of { {pagingBarResponsive.total} }
]]>
@@ -338,7 +338,7 @@
ngAfterViewInit(): void {
// broadcast to all listener observables when loading the page
- setTimeout(() => { // workaround since MdSidenav has issues redrawing at the beggining
+ setTimeout(() => { // workaround since MatSidenav has issues redrawing at the beggining
this.media.broadcast();
this._changeDetectorRef.detectChanges();
});
@@ -350,9 +350,9 @@
}
]]>
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/src/app/components/components/paging/paging.component.ts b/src/app/components/components/paging/paging.component.ts
index 3cbaaab85a..371e2c17f5 100644
--- a/src/app/components/components/paging/paging.component.ts
+++ b/src/app/components/components/paging/paging.component.ts
@@ -30,7 +30,7 @@ export class PagingDemoComponent implements AfterViewInit {
ngAfterViewInit(): void {
// broadcast to all listener observables when loading the page
- setTimeout(() => { // workaround since MdSidenav has issues redrawing at the beggining
+ setTimeout(() => { // workaround since MatSidenav has issues redrawing at the beggining
this.media.broadcast();
this._changeDetectorRef.detectChanges();
});
diff --git a/src/app/components/components/pipes/pipes.component.html b/src/app/components/components/pipes/pipes.component.html
index 7f11d1de2c..8167fe4e91 100644
--- a/src/app/components/components/pipes/pipes.component.html
+++ b/src/app/components/components/pipes/pipes.component.html
@@ -1,8 +1,8 @@
-
- Pipes
- Custom Angular pipes (filters)
-
-
+
+ Pipes
+ Custom Angular pipes (filters)
+
+
Every application starts out with what seems like a simple task: get data, transform them, and show them to users. Getting data could be as simple as creating a local variable or as complex as streaming data over a Websocket.
A pipe takes in data as input and transforms it to a desired output.
The timeDifference pipe outputs the difference between two times. Strings, Numbers or Date timestamps are acceptable types. (example: 2016-01-29T17:59:59.000Z).
]]>
-
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/src/app/components/components/steps/steps.component.html b/src/app/components/components/steps/steps.component.html
index 0e9a0c2164..aab21726f7 100644
--- a/src/app/components/components/steps/steps.component.html
+++ b/src/app/components/components/steps/steps.component.html
@@ -1,18 +1,18 @@
-
- Stepper (Wizard)
- A sequence of logical & numbered steps
-
-
+
+ Stepper (Wizard)
+ A sequence of logical & numbered steps
+
+
}
]]>
-
-
-
-
-
- Toggle Disable
- Toggle First
-
-
-
- TdStepsComponent
- How to use this component
-
-
+
+
+
+
+
+ Toggle Disable
+ Toggle First
+
+
+
+ TdStepsComponent
+ How to use this component
+
+
]]>
Simply wrap the ]]> elements you need in a ]]> element.
Properties:
The ]]> component has {{stepsAttrs.length}} properties:
}
]]>
-
-
+
+
diff --git a/src/app/components/components/text-editor/text-editor.component.html b/src/app/components/components/text-editor/text-editor.component.html
index 9da66dc5be..03f96f65b2 100644
--- a/src/app/components/components/text-editor/text-editor.component.html
+++ b/src/app/components/components/text-editor/text-editor.component.html
@@ -1,27 +1,27 @@
-
- Markdown Text Editor
- Simple markdown text editor component
-
-
+
+ Markdown Text Editor
+ Simple markdown text editor component
+
+
With this component you can utilize SimpleMDE as an Angular Component.
-
-
-
- Github Repo
- npm Module
-
-
-
- Demo
- Edit the markdown in the left editor for a real-time preview
-
-
+
+
+
+ Github Repo
+ npm Module
+
+
+
+ Demo
+ Edit the markdown in the left editor for a real-time preview
+
+
+
+
-
-
-
-
-
+
+
+
+
+
Scroll to first
-
+
Scroll to last
-
+
Scroll to 400th row
-
-
+
+
diff --git a/src/app/components/design-patterns/alerts/alerts.component.html b/src/app/components/design-patterns/alerts/alerts.component.html
index ef6b7f9b02..8bb25c24b9 100644
--- a/src/app/components/design-patterns/alerts/alerts.component.html
+++ b/src/app/components/design-patterns/alerts/alerts.component.html
@@ -1,91 +1,91 @@
-
- Alert Patterns
-
-
+
+ Alert Patterns
+
+
Problem
Need to provide information or feedback to the user and potentially prompt them to take action.
Solution
Notifications have a signifigant impact on the user's overall impression of the application. This is how the app communicates directly with the user, so it is important to consider the form of notification. For exmaple, dialogs are most useful in situations where the user most take some action or the app needs to communicate critical information. On the other hand, toasts and snackbars are passive and do not require any user action or interruption to the user's workflow. Inline errors are useful for forms validation while guiding the user through the form.
- Dialogs
- Notification with call to action
-
+ Dialogs
+ Notification with call to action
+
Since dialogs are disruptive, reserve use to inform users about a specific task or critical information, such as
a verbose/critical error, alert or a confirmation of an action.
- Toast
- Brief, floating notification with optional user interaction
-
+ Toast
+ Brief, floating notification with optional user interaction
+
Toasts & snackbars provide brief feedback about an operation through a message at the bottom of the screen. This information is transient and will go away momentarily.
- Inline Errors
- For forms and inputs use inline errors for contextual feedback.
-
+ Inline Errors
+ For forms and inputs use inline errors for contextual feedback.
+
Inline errors are useful in forms for validation, warnings and errors.
-
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/src/app/components/design-patterns/alerts/alerts.component.ts b/src/app/components/design-patterns/alerts/alerts.component.ts
index 5d7292e0b1..42e6de726f 100644
--- a/src/app/components/design-patterns/alerts/alerts.component.ts
+++ b/src/app/components/design-patterns/alerts/alerts.component.ts
@@ -4,7 +4,7 @@ import { slideInDownAnimation } from '../../../app.animations';
import { TdDialogService } from '../../../../platform/core';
-import { MdSnackBar } from '@angular/material';
+import { MatSnackBar } from '@angular/material';
@Component({
selector: 'design-patterns-alerts',
@@ -28,7 +28,7 @@ export class AlertsComponent {
example3: boolean = true;
constructor(private _dialogService: TdDialogService,
- private _snackBarService: MdSnackBar) {}
+ private _snackBarService: MatSnackBar) {}
showSnackBar(): void {
this._snackBarService
diff --git a/src/app/components/design-patterns/cards/cards.component.html b/src/app/components/design-patterns/cards/cards.component.html
index ca3b80fe98..ce1e473482 100644
--- a/src/app/components/design-patterns/cards/cards.component.html
+++ b/src/app/components/design-patterns/cards/cards.component.html
@@ -1,534 +1,534 @@
-
- Card Patterns
-
-
+
+ Card Patterns
+
+
Problem
Need to display item or set of content composed of different elements whose size or supported actions vary.
Solution
Cards are a convenient means of displaying content composed of different elements. They’re also well-suited for showcasing
elements whose size or supported actions vary, like photos with captions of variable length.
- Login Card
- Card with form
-
+ Login Card
+ Card with form
+
In special cases, cards may contain form elements, like the login card. However, in most sitautions, we recommend using the Card Over full page layout for forms.
-
+
-
-
+
+
-
- code
+
+ code
-
+
Login
- Sign In with Your Credentials
-
-
+ Login
+ Sign In with Your Credentials
+
+
The username or password is incorrect. Please try again.
-
-
-
+
+
+
- Sign In
+ Sign In
-
-
+
+
]]>
-
+
-
-
- Login
-
- Sign In with Your Credentials
-
-
+
+
+ Login
+
+ Sign In with Your Credentials
+
+
The username or password is incorrect. Please try again.
-
-
-
+
+
+
- Sign In
+ Sign In
-
-
-
+
+
+
- Metadata List Card
- Card with metadata for an item detail
-
-
Cards support many rich components, including our management list. When adding multiple lists to a card, seperate them using md-divider and consider adding md-subheader.
-
+ Metadata List Card
+ Card with metadata for an item detail
+
+
Cards support many rich components, including our management list. When adding multiple lists to a card, seperate them using mat-divider and consider adding matSubheader.
+
-
-
+
+
-
- code
+
+ code
-
+
- Item Info
- Info About This Item
-
-
-
Metadata
-
- account_box
-
John Jameson
-
Owner
-
-
-
- description
-
An Item Description
-
Description
-
-
-
- vpn_key
-
1141e8e8-8d24-4956-93c2
-
API Key
-
-
-
Dates
-
- access_time
-
Wed, July 6, 2016 11:13 AM
-
Last Updated
-
-
-
- today
-
Wed, July 4, 2016 09:11 AM
-
Created
-
-
-
-
- Edit
-
-
+
+ Item Info
+ Info About This Item
+
+
+
Metadata
+
+ account_box
+
John Jameson
+
Owner
+
+
+
+ description
+
An Item Description
+
Description
+
+
+
+ vpn_key
+
1141e8e8-8d24-4956-93c2
+
API Key
+
+
+
Dates
+
+ access_time
+
Wed, July 6, 2016 11:13 AM
+
Last Updated
+
+
+
+ today
+
Wed, July 4, 2016 09:11 AM
+
Created
+
+
+
+
+ Edit
+
+
]]>
-
+
-
- Item Info
- Info About This Item
-
-
-
Metadata
-
- account_box
-
John Jameson
-
Owner
-
-
-
- description
-
An Item Description
-
Description
-
-
-
- vpn_key
-
1141e8e8-8d24-4956-93c2
-
API Key
-
-
-
Dates
-
- access_time
-
Wed, July 6, 2016 11:13 AM
-
Last Updated
-
-
-
- today
-
Wed, July 4, 2016 09:11 AM
-
Created
-
-
-
-
- Edit
-
-
-
+
+ Item Info
+ Info About This Item
+
+
+
Metadata
+
+ account_box
+
John Jameson
+
Owner
+
+
+
+ description
+
An Item Description
+
Description
+
+
+
+ vpn_key
+
1141e8e8-8d24-4956-93c2
+
API Key
+
+
+
Dates
+
+ access_time
+
Wed, July 6, 2016 11:13 AM
+
Last Updated
+
+
+
+ today
+
Wed, July 4, 2016 09:11 AM
+
Created
+
+
+
+
+ Edit
+
+
+
- CRUD Manage List Card
- Card with faux-columns & search
-
+ CRUD Manage List Card
+ Card with faux-columns & search
+
In this example, notice the search component in the top left. Also, using the flex model, you can simulate columns by using the same layout on each row. See the management list for more implementation details.
- Card with Image Variations
- Card with sepcial image elements
-
+ Card with Image Variations
+ Card with sepcial image elements
+
Images displayed within cards inherit styling which removes margin and padding, depending on where the imgae is positioned within the card. Notice if the image is first it has proper rounded corners.
Examples are leveraging the following special image elements:
Need a means of navigation that is familiar and consistent.
Solution
The navigation drawer provides a familiar means of navigation along with access to additional account features, for example, the ability to switch accounts, access settings, and sign out.
-
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/src/app/components/design-patterns/navigation-drawer/navigation-drawer.component.scss b/src/app/components/design-patterns/navigation-drawer/navigation-drawer.component.scss
index cebd32fe5b..001fb52089 100644
--- a/src/app/components/design-patterns/navigation-drawer/navigation-drawer.component.scss
+++ b/src/app/components/design-patterns/navigation-drawer/navigation-drawer.component.scss
@@ -3,7 +3,7 @@
position: static;
width: 100%;
height: 500px;
- md-sidenav {
+ mat-sidenav {
transform: translate3d(0,0,0) !important;
visibility: visible !important;
}
diff --git a/src/app/components/docs/angular-material/angular-material.component.html b/src/app/components/docs/angular-material/angular-material.component.html
index 92cc48c9b3..3be6102347 100644
--- a/src/app/components/docs/angular-material/angular-material.component.html
+++ b/src/app/components/docs/angular-material/angular-material.component.html
@@ -1,8 +1,8 @@
-
- Angular Material
- Material Design components
-
-
+
+ Angular Material
+ Material Design components
+
+
Core Components
The UI Platform is built on top of @angular/material components which are the core of Covalent.
New & Custom Components
@@ -17,30 +17,30 @@
New & Custom Components
Obviously we'll need to extend and customize material, but when doing so try to submit to the main UI Platform repo and collaborate with others to ensure standards.
Angular is a complete rewrite, so disgregard anything you know from 1.x (AngularJS). Along with ES2015 (formerly ES6) and TypeScript, Angular brings many best practices and conveniences from backend languages to the frontend. Along with that, other key benefits:
@@ -13,59 +13,59 @@
Modern Web Dev
Lazy loading - load one web component per time for optimization
Performance - incredibly improved overall speed and performance
Important: Make sure you have Node 6.11.1 or greater!
@@ -68,9 +68,9 @@
Generating content
-
-
-
- Build Docs
-
-
+
+
+
+ Build Docs
+
+
diff --git a/src/app/components/docs/creating/creating.component.html b/src/app/components/docs/creating/creating.component.html
index 34bc73d01f..633aad272e 100644
--- a/src/app/components/docs/creating/creating.component.html
+++ b/src/app/components/docs/creating/creating.component.html
@@ -1,8 +1,8 @@
-
- Creating new views
- Harness the power of the new Angular CLI
-
-
+
+ Creating new views
+ Harness the power of the new Angular CLI
+
+
Generate Component
Using the CLI, nagivate into the directory you want the new component, then simply:
@@ -44,9 +44,9 @@
Generate Component
]]>
Now you can use this new route in your main nav or wherever you like!
-
- arrow_back
+
+ arrow_backDocumentation
diff --git a/src/app/components/docs/docs.component.ts b/src/app/components/docs/docs.component.ts
index 17eb868c71..951ab6d2a9 100644
--- a/src/app/components/docs/docs.component.ts
+++ b/src/app/components/docs/docs.component.ts
@@ -71,7 +71,7 @@ export class DocsComponent implements AfterViewInit {
ngAfterViewInit(): void {
// broadcast to all listener observables when loading the page
- setTimeout(() => { // workaround since MdSidenav has issues redrawing at the beggining
+ setTimeout(() => { // workaround since MatSidenav has issues redrawing at the beggining
this.media.broadcast();
this._changeDetectorRef.detectChanges();
});
diff --git a/src/app/components/docs/docs.module.ts b/src/app/components/docs/docs.module.ts
index fd31147211..1d0e28bb15 100644
--- a/src/app/components/docs/docs.module.ts
+++ b/src/app/components/docs/docs.module.ts
@@ -17,8 +17,8 @@ import { MockDataComponent } from './mock-data/mock-data.component';
import { DocumentationToolsModule } from '../../documentation-tools';
-import { MdButtonModule, MdListModule, MdIconModule, MdCardModule, MdToolbarModule, MdCoreModule,
- MdMenuModule } from '@angular/material';
+import { MatButtonModule, MatListModule, MatIconModule, MatCardModule, MatToolbarModule,
+ MatMenuModule } from '@angular/material';
import { CovalentLayoutModule, CovalentMediaModule } from '../../../platform/core';
import { CovalentHighlightModule } from '../../../platform/highlight';
@@ -43,13 +43,12 @@ import { ToolbarModule } from '../../components/toolbar/toolbar.module';
/** Angular Modules */
CommonModule,
/** Material Modules */
- MdCoreModule,
- MdButtonModule,
- MdListModule,
- MdIconModule,
- MdCardModule,
- MdToolbarModule,
- MdMenuModule,
+ MatButtonModule,
+ MatListModule,
+ MatIconModule,
+ MatCardModule,
+ MatToolbarModule,
+ MatMenuModule,
/** Covalent Modules */
CovalentLayoutModule,
CovalentMediaModule,
diff --git a/src/app/components/docs/icons/icons.component.html b/src/app/components/docs/icons/icons.component.html
index 030da60324..918e7e81c1 100644
--- a/src/app/components/docs/icons/icons.component.html
+++ b/src/app/components/docs/icons/icons.component.html
@@ -1,26 +1,26 @@
-
- Material Design Icons
- Access 750+ SVG or Font icons
-
-
+
+ Material Design Icons
+ Access 750+ SVG or Font icons
+
+
Font Icons
Font icons using ligatures are the default option and simple to use:
- home ]]>
+ home ]]>
- which renders home
+ which renders home
SVG Icons (from Safe URLS)
-
SVG icons have to be sanitized before they can be used with [DomSanitizer] and then icons need to be registered in [MdIconRegistry] so it can be referred later on:
+
SVG icons have to be sanitized before they can be used with [DomSanitizer] and then icons need to be registered in [MatIconRegistry] so it can be referred later on:
Typescript:
SVG Icons (from Safe URLS)
HTML:
- ]]>
+ ]]>
-
-
-
- Search Icons
- Icon Guide
-
-
+
+
+
+ Search Icons
+ Icon Guide
+
+
diff --git a/src/app/components/docs/mock-data/mock-data.component.html b/src/app/components/docs/mock-data/mock-data.component.html
index 5e6fe551a7..c83374f830 100644
--- a/src/app/components/docs/mock-data/mock-data.component.html
+++ b/src/app/components/docs/mock-data/mock-data.component.html
@@ -1,8 +1,8 @@
-
- Mock Data Server
- Prototype against a real API server with mock data
-
-
+
+ Mock Data Server
+ Prototype against a real API server with mock data
+
+
Covalent Quickstart includes the ultimate prototyping tool, a localhost Mock API!
With the mock API server, you can develop against realistic API service endpoints, and model the mock data closely to your production data!
You can easily modify or create new schemas for mock data in the /mock-api/schemas/ directory.
For example to modify the mock users , edit mock-api/schemas/users.yaml
@@ -68,10 +68,10 @@
Consuming Mock Data Endpoints
]]>
The Covalent Data Mock API Server actually stores data in memory, so it's possible to add, update, and delete records. All changes made will be erased once Covalent Data is stopped. See the Covalent Data repo for more information.
-
-
-
- Quickstart Repo
- Data Repo
-
-
+
+
+
+ Quickstart Repo
+ Data Repo
+
+
diff --git a/src/app/components/docs/overview/overview.component.html b/src/app/components/docs/overview/overview.component.html
index 7769318c07..0ab960255d 100644
--- a/src/app/components/docs/overview/overview.component.html
+++ b/src/app/components/docs/overview/overview.component.html
@@ -1,9 +1,9 @@
-
- Quickstart Setup
- Start using the Covalent Quickstart
-
-
+
+ Quickstart Setup
+ Start using the Covalent Quickstart
+
+
Covalent Quickstart
Create a new repo based on the covalent-quickstart
Clone the covalent-quickstart into a new project folder (e.g. my-product).
-
-
-
- Theming Docs
- Color Guide
-
-
-
- Multiple color themes
- Choose a primary, accent and warn color from the official Material color palette.
-
-
+
+
+
+ Theming Docs
+ Color Guide
+
+
+
+ Multiple color themes
+ Choose a primary, accent and warn color from the official Material color palette.
+
+
Add the custom CSS class with custom SCSS variables to your /theme.scss file
-
-
-
+
+
+
Palettes with a secondary color may use this color to indicate a related action or information.
-
-
+
+
-
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/src/app/components/docs/theme/theme.component.scss b/src/app/components/docs/theme/theme.component.scss
index 13d4949392..d7b337ab2f 100644
--- a/src/app/components/docs/theme/theme.component.scss
+++ b/src/app/components/docs/theme/theme.component.scss
@@ -1,3 +1,3 @@
-.md-fab-position-bottom-right {
+.mat-fab-position-bottom-right {
bottom: 20px;
}
\ No newline at end of file
diff --git a/src/app/components/home/home.component.html b/src/app/components/home/home.component.html
index 4659b9c7de..7dc6449794 100644
--- a/src/app/components/home/home.component.html
+++ b/src/app/components/home/home.component.html
@@ -1,6 +1,6 @@
-
- menu
+
+ menu
@@ -14,44 +14,44 @@
An open-source UI Platform from Teradata that combines a comprehensive design language with a powerful web framework, built on Angular & Angular Material (Design).
Covalent is a UI Platform that combines proven design language with a comprehensive web framework, built on Angular & Angular-Material (Design).
Electron is a framework for creating native desktop applications with web technologies like JavaScript, HTML, and CSS.
Covalent Electron is the Electron Platform to build desktop apps using Covalent and Electron
- View Repo
+ View Repo
@@ -297,7 +297,7 @@
Feature Requests & Bugs
Covalent Data is a Mock API server for rapid prototyping and API standards
Built on Golang
Allows for quick prototyping for your Covalent Applications with an easy to mock http backend server
- View Repo
+ View Repo
-
- menu
+
+ menu
Content goes here
@@ -70,127 +70,127 @@
]]>
-
-
-
- Full Demo
- Full working code with all options and templates
-
-
+
+
+
+ Full Demo
+ Full working code with all options and templates
+
+
-
- {{item.icon}}{{item.title}}
-
+
+ {{item.icon}}{{item.title}}
+
-
-
+
+
Toggle
Content Title
-
+
Content goes here
]]>
-
-
-
- Full Demo
- Full working code with all options and templates
-
-
+
+
+
+ Full Demo
+ Full working code with all options and templates
+
+
-
- {{item.icon}}{{item.title}}
-
+
+ {{item.icon}}{{item.title}}
+
ngAfterViewInit(): void {
// broadcast to all listener observables when loading the page
- setTimeout(() => { // workaround since MdSidenav has issues redrawing at the beggining
+ setTimeout(() => { // workaround since MatSidenav has issues redrawing at the beggining
this.media.broadcast();
this._changeDetectorRef.detectChanges();
});
@@ -446,6 +446,6 @@
TypeScript:
]]>
-
-
+
+
\ No newline at end of file
diff --git a/src/app/components/layouts/manage-list/manage-list.component.ts b/src/app/components/layouts/manage-list/manage-list.component.ts
index 2313a32bab..14c9398b89 100644
--- a/src/app/components/layouts/manage-list/manage-list.component.ts
+++ b/src/app/components/layouts/manage-list/manage-list.component.ts
@@ -84,7 +84,7 @@ export class ManageListComponent implements AfterViewInit {
ngAfterViewInit(): void {
// broadcast to all listener observables when loading the page
- setTimeout(() => { // workaround since MdSidenav has issues redrawing at the beggining
+ setTimeout(() => { // workaround since MatSidenav has issues redrawing at the beggining
this.media.broadcast();
this._changeDetectorRef.detectChanges();
});
diff --git a/src/app/components/layouts/nav-list/nav-list.component.html b/src/app/components/layouts/nav-list/nav-list.component.html
index a6b5d5e045..1c23cf6882 100644
--- a/src/app/components/layouts/nav-list/nav-list.component.html
+++ b/src/app/components/layouts/nav-list/nav-list.component.html
@@ -1,17 +1,17 @@
-
- Minimum Demo
- Minimum code for this layout with no wrapper
-
-
+
+ Minimum Demo
+ Minimum code for this layout with no wrapper
+
+
@@ -88,22 +88,22 @@
]]>
-
-
-
- Full Demo
- Full working code with all options and templates
-
-
+
+
+
+ Full Demo
+ Full working code with all options and templates
+
+
-
- {{item.icon}}{{item.title}}
-
+
+ {{item.icon}}{{item.title}}
+
-
- Main Content
- content area
-
-
+
+ Main Content
+ content area
+
+
card content
-
-
-
-
+
+
+
+ View More
-
-
+
+
Optional inner footer
@@ -321,7 +321,7 @@
TypeScript:
ngAfterViewInit(): void {
// broadcast to all listener observables when loading the page
- setTimeout(() => { // workaround since MdSidenav has issues redrawing at the beggining
+ setTimeout(() => { // workaround since MatSidenav has issues redrawing at the beggining
this.media.broadcast();
this._changeDetectorRef.detectChanges();
});
@@ -330,6 +330,6 @@
TypeScript:
}
]]>
-
-
+
+
\ No newline at end of file
diff --git a/src/app/components/layouts/nav-list/nav-list.component.ts b/src/app/components/layouts/nav-list/nav-list.component.ts
index 9c1c038b27..cb04683e5e 100644
--- a/src/app/components/layouts/nav-list/nav-list.component.ts
+++ b/src/app/components/layouts/nav-list/nav-list.component.ts
@@ -84,7 +84,7 @@ export class NavListComponent implements AfterViewInit {
ngAfterViewInit(): void {
// broadcast to all listener observables when loading the page
- setTimeout(() => { // workaround since MdSidenav has issues redrawing at the beggining
+ setTimeout(() => { // workaround since MatSidenav has issues redrawing at the beggining
this.media.broadcast();
this._changeDetectorRef.detectChanges();
});
diff --git a/src/app/components/layouts/nav-view/nav-view.component.html b/src/app/components/layouts/nav-view/nav-view.component.html
index 07e0d5bbd4..78daca067c 100644
--- a/src/app/components/layouts/nav-view/nav-view.component.html
+++ b/src/app/components/layouts/nav-view/nav-view.component.html
@@ -1,16 +1,16 @@
-
- Minimum Demo
- Minimum code for this layout with no wrapper
-
-
+
+ Minimum Demo
+ Minimum code for this layout with no wrapper
+
+
Content goes here
-
-
-
+
+
+
@@ -18,145 +18,145 @@
]]>
-
-
-
- Basic Demo
- Basic layout wrapper & nav drawer
-
-
+
+
+
+ Basic Demo
+ Basic layout wrapper & nav drawer
+
+
-
- homeHome
-
+
+ homeHome
+
-
- menu
+
+ menu
Content goes here
]]>
-
-
-
- Full Demo
- Full working code with all options and templates
-
-
+
+
+
+ Full Demo
+ Full working code with all options and templates
+
+
-
- {{item.icon}}{{item.title}}
-
+
+ {{item.icon}}{{item.title}}
+
}
]]>
-
-
+
+
\ No newline at end of file
diff --git a/src/app/components/layouts/overview/overview.component.html b/src/app/components/layouts/overview/overview.component.html
index 7db4df6588..12fe5d53dc 100644
--- a/src/app/components/layouts/overview/overview.component.html
+++ b/src/app/components/layouts/overview/overview.component.html
@@ -1,33 +1,33 @@
-
- Layout Options
- We offer 4 Material Design layouts for you
-
-
+
+ Layout Options
+ We offer 4 Material Design layouts for you
+
+
For your entire app or for different sections of your app, select one of these Material Design layout options:
Responsive widths (will change as you resize browser):
child
child
child
-
+
@@ -151,13 +151,13 @@
{{item.title}}
]]>
-
+
Typical responsive layout (just collapse on xs which is mobile)
child
child
-
+
@@ -169,4 +169,4 @@
{{item.title}}
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/app/components/style-guide/colors/colors.component.html b/src/app/components/style-guide/colors/colors.component.html
index 2e9000faa1..639d2b6758 100644
--- a/src/app/components/style-guide/colors/colors.component.html
+++ b/src/app/components/style-guide/colors/colors.component.html
@@ -1,109 +1,109 @@
-
- Color Palette
-
-
+
+ Color Palette
+
+
Color in material design is inspired by bold hues juxtaposed with muted environments, deep shadows, and bright highlights.
Teradata product usage recommends selecting primary and accent colors from these Material Design colors:
- infoNOTE: as always, rules are meant to be bent so if you veer from these colors, just have a good justification!
+ infoNOTE: as always, rules are meant to be bent so if you veer from these colors, just have a good justification!
Hues
Each Material Design color has several available hues. It's recommended to use 3 hues for your primary and 1 for your accent, like:
-
-
-
-
Orange 700
-
-
-
-
-
Orange 800
-
-
-
-
-
Orange 900
-
-
-
-
-
Blue 700
-
-
-
-
-
-
- Color Spec
-
-
-
- Example Product Color Schemes
- Products may select colors from the material design color palette. Limit your selection of colors to three hues from the primary palette and one accent color from the secondary palette.
-
-
+
+
+
+
Orange 700
+
+
+
+
+
Orange 800
+
+
+
+
+
Orange 900
+
+
+
+
+
Blue 700
+
+
+
+
+
+
+ Color Spec
+
+
+
+ Example Product Color Schemes
+ Products may select colors from the material design color palette. Limit your selection of colors to three hues from the primary palette and one accent color from the secondary palette.
+
+
To manually color a background, use our simple bgc utility class:
View title
choose from any of the material colors, in hues from 50, 100, 200, 300, 400, 500, 600, 700, 800, 900 (and A100, A200, A400, A700 for all except brown, grey & blue-grey)
-
+
class="bgc-{{color}}-"
50
@@ -240,10 +240,10 @@
View title
A400
A700
-
+
-
+
class="bgc-{{color}}-"
50
@@ -259,13 +259,13 @@
View title
800
900
-
+
-
-
-
-
+
+
+
+
To manually color a background, use our simple bgc utility class:
View title
choose from any of the dark material colors, in hues from 500, B100, B65, B40, B30 & B15
To manually color a fill or font color (depending if you're using a font icon or SVV icon), use our simple tc utility class:
palette
+ palette
/* this will be a green filled SVG icon */
-
+
]]>
choose from any of the material colors, in hues from 50, 100, 200, 300, 400, 500, 600, 700, 800, 900 (and A100, A200, A400, A700 for all except brown, grey & blue-grey)
-
+
-
-
-
+
+
+
diff --git a/src/app/components/style-guide/logo/logo.component.html b/src/app/components/style-guide/logo/logo.component.html
index d683248023..32e2ccc0fb 100644
--- a/src/app/components/style-guide/logo/logo.component.html
+++ b/src/app/components/style-guide/logo/logo.component.html
@@ -1,56 +1,56 @@
-
- Including Your Logo
-
-
-
Your company logo can be implemented with md-icon.
+
+ Including Your Logo
+
+
+
Your company logo can be implemented with mat-icon.
For example:
+
]]>
The code above will output an inline SVG with 100px width and auto height:
-
-
+
+
-
-
-
- Icon Docs
-
-
+
+
+
+ Icon Docs
+
+
-
- Toolbar Logo Placement
- place the logo in the top toolbar next to the title
-
-
+
+ Toolbar Logo Placement
+ place the logo in the top toolbar next to the title
+
+
-
+
]]>
-
-
-
- Layout Docs
-
-
+
+
+
+ Layout Docs
+
+
-
- Navigation Drawer (Sidenav) Logo Placement
- place the logo in the sidenav toolbar next to the title, above the user info
-
-
+
+ Navigation Drawer (Sidenav) Logo Placement
+ place the logo in the sidenav toolbar next to the title, above the user info
+
+
@@ -63,7 +63,7 @@
-
+
@@ -74,9 +74,9 @@
]]>
-
-
-
- Navigation Drawer
-
-
\ No newline at end of file
+
+
+
+ Navigation Drawer
+
+
\ No newline at end of file
diff --git a/src/app/components/style-guide/product-icons/product-icons.component.html b/src/app/components/style-guide/product-icons/product-icons.component.html
index 1939b27f41..36085ba68f 100644
--- a/src/app/components/style-guide/product-icons/product-icons.component.html
+++ b/src/app/components/style-guide/product-icons/product-icons.component.html
@@ -1,37 +1,37 @@
-
- SVG Product Icons
-
-
+
+ SVG Product Icons
+
+
Style
While Teradata doesn't have product logos, products do have illustrated vector icons.
Product icons will be flat, angled, and incorporate arrows or movement into dimensionality.
Examples
-
+
AppCenter
-
+
Listener
-
+
QueryGrid
Usage
-
Use the md-icon component to load an SVG instead of a typing font icon:
+
Use the mat-icon component to load an SVG instead of a typing font icon:
+
/* to color an SVG icon use our utility material color fill class */
- /md-icon>
+ /mat-icon>
]]>
-
-
-
+
+
+ Teradata AppCenter, Teradata Listener & Teradata QuerGrid icons copyright Teradata. All rights reserved.
-
-
+
+
diff --git a/src/app/components/style-guide/product-icons/product-icons.component.scss b/src/app/components/style-guide/product-icons/product-icons.component.scss
index 59da17a3f4..3b923d075f 100644
--- a/src/app/components/style-guide/product-icons/product-icons.component.scss
+++ b/src/app/components/style-guide/product-icons/product-icons.component.scss
@@ -1,4 +1,4 @@
-.md-icon-lg {
+.mat-icon-lg {
height: 8rem;
width: 8rem;
}
\ No newline at end of file
diff --git a/src/app/components/style-guide/resources/resources.component.html b/src/app/components/style-guide/resources/resources.component.html
index 53679b9b9e..973ccd8b6e 100644
--- a/src/app/components/style-guide/resources/resources.component.html
+++ b/src/app/components/style-guide/resources/resources.component.html
@@ -1,98 +1,98 @@
-
- Resources
-
-
+
+ Resources
+
+
User Experience and User Interface design templates and libraries to provide a seamless transition from visual design to prototypes to production interfaces with Covalent.
-
-
-
-
-
- Sketch Template
- Covalent template for the OSX Sketch App
-
-
-
+
+
+
+
+
+ Sketch Template
+ Covalent template for the OSX Sketch App
+
+
+
Create static mockups that are identical to the Covalent layouts and Angular-Material components!
To manually color a font color, use our simple tc utility class:
Usage
choose from any of the material colors, in hues from 50, 100, 200, 300, 400, 500, 600, 700, 800, 900 (and A100, A200, A400, A700 for all except brown, grey & blue-grey)
-
+
class="tc-{{color}}-"
50
@@ -147,10 +147,10 @@
Usage
A400
A700
-
+
-
+
class="tc-{{color}}-"
50
@@ -166,13 +166,13 @@
Usage
800
900
-
+
-
-
-
-
+
+
+
+
To manually color a font color, use our simple tc utility class:
Usage
choose from any of the dark material colors, in hues from 500, B100, B65, B40, B30 & B15
-
+
class="tc-dark-{{color}}-"
500
@@ -192,10 +192,10 @@
Usage
B30
B15
-
+
-
+
class="tc-dark-{{color}}-"
500
@@ -205,10 +205,10 @@
Usage
B30
B15
-
+
-
-
-
-
\ No newline at end of file
+
+
+
+
\ No newline at end of file
diff --git a/src/app/components/style-guide/utility-styles/utility-styles.component.html b/src/app/components/style-guide/utility-styles/utility-styles.component.html
index 0514fdbce2..31da167e94 100644
--- a/src/app/components/style-guide/utility-styles/utility-styles.component.html
+++ b/src/app/components/style-guide/utility-styles/utility-styles.component.html
@@ -1,14 +1,14 @@
-
- CSS Utility Styles & Classes
-
-
+
+ CSS Utility Styles & Classes
+
+
Covalent includes many utility styles to save you time. If each UI element is an atom, think of these classes as subatomic particles. They're equally reusable to help tweak a particular atom.
We've included general utilities, padding (pad), margin (push), negative margin (pull), sizing, and text classes.
-
-
-
- General Utilities
-
+
+
+
+ General Utilities
+
.radius-none // no border radius
.overflow-hidden // hide overflow
@@ -22,22 +22,22 @@
.z-2 // z index 2
.z-1 // z index 1
-
-
-
- Sizing Utilities
-
+
+
+
+ Sizing Utilities
+
/* Sizing avail in 12 16 24 32 50 64 72 100 128 256 */
.size-256 // 256 height and width
.size-height-256 // 256 height and auto width
.size-width-256 // 256 width and auto height
-
-
-
- Text Utilities
-
+
+
+
+ Text Utilities
+
.text-normal // normal font size
.text-center // text align center
@@ -60,13 +60,13 @@
.text-truncate // single line of truncated text w/ ...
.text-nodecoration // no underline
-
-
+
+
\ No newline at end of file
diff --git a/src/platform/core/file/file-upload/README.md b/src/platform/core/file/file-upload/README.md
index 4ee15d0cf3..de83744468 100644
--- a/src/platform/core/file/file-upload/README.md
+++ b/src/platform/core/file/file-upload/README.md
@@ -9,9 +9,9 @@ Example for usage:
```html
- file_upload{{ fileUpload.files?.name }}
+ file_upload{{ fileUpload.files?.name }}
- attach_fileChoose a file...
+ attach_fileChoose a file...
```
@@ -49,9 +49,9 @@ Properties:
| Name | Type | Description |
| --- | --- | 650--- |
-| `defaultColor` | `string` | Sets browse button color. Uses same color palette accepted as [mdButton] and defaults to 'primary'.
-| `activeColor` | `string` | Sets upload button color. Uses same color palette accepted as [mdButton] and defaults to 'accent'.
-| `cancelColor` | `string` | Sets cancel button color. Uses same color palette accepted as [mdButton] and defaults to 'warn'.
+| `defaultColor` | `string` | Sets browse button color. Uses same color palette accepted as [MatButton] and defaults to 'primary'.
+| `activeColor` | `string` | Sets upload button color. Uses same color palette accepted as [MatButton] and defaults to 'accent'.
+| `cancelColor` | `string` | Sets cancel button color. Uses same color palette accepted as [MatButton] and defaults to 'warn'.
| `multiple` | `boolean` | Sets if multiple files can be dropped/selected at once in [TdFileUploadComponent].
| `accept` | `string` | Sets files accepted when opening the file browser dialog. Same as "accept" attribute in `` element.
| `disabled` | `boolean` | Disables [TdFileUploadComponent] and clears selected/dropped files.
diff --git a/src/platform/core/file/file-upload/file-upload.component.html b/src/platform/core/file/file-upload/file-upload.component.html
index 95d92eef19..761144122f 100644
--- a/src/platform/core/file/file-upload/file-upload.component.html
+++ b/src/platform/core/file/file-upload/file-upload.component.html
@@ -4,7 +4,7 @@
-
- cancel
+ cancel
\ No newline at end of file
diff --git a/src/platform/core/file/file-upload/file-upload.component.scss b/src/platform/core/file/file-upload/file-upload.component.scss
index 62dad5def5..e949556d0e 100644
--- a/src/platform/core/file/file-upload/file-upload.component.scss
+++ b/src/platform/core/file/file-upload/file-upload.component.scss
@@ -12,7 +12,7 @@
right: -12px;
left: 0;
}
- md-icon {
+ mat-icon {
border-radius: 12px;
vertical-align: baseline;
}
diff --git a/src/platform/core/file/file-upload/file-upload.component.spec.ts b/src/platform/core/file/file-upload/file-upload.component.spec.ts
index a1461d2eab..420524f87a 100644
--- a/src/platform/core/file/file-upload/file-upload.component.spec.ts
+++ b/src/platform/core/file/file-upload/file-upload.component.spec.ts
@@ -7,6 +7,7 @@ import {
import { Component } from '@angular/core';
import { CovalentFileModule, TdFileUploadComponent } from '../file.module';
import { By } from '@angular/platform-browser';
+import { MATERIAL_COMPATIBILITY_MODE } from '@angular/material';
describe('Component: FileUpload', () => {
@@ -18,6 +19,9 @@ describe('Component: FileUpload', () => {
imports: [
CovalentFileModule,
],
+ providers: [
+ {provide: MATERIAL_COMPATIBILITY_MODE, useValue: true},
+ ],
});
TestBed.compileComponents();
}));
diff --git a/src/platform/core/file/file-upload/file-upload.component.ts b/src/platform/core/file/file-upload/file-upload.component.ts
index 8b7547d2db..f391647180 100644
--- a/src/platform/core/file/file-upload/file-upload.component.ts
+++ b/src/platform/core/file/file-upload/file-upload.component.ts
@@ -27,19 +27,19 @@ export class TdFileUploadComponent extends _TdFileUploadMixinBase implements ICa
/**
* defaultColor?: string
- * Sets browse button color. Uses same color palette accepted as [mdButton] and defaults to 'primary'.
+ * Sets browse button color. Uses same color palette accepted as [MatButton] and defaults to 'primary'.
*/
@Input('defaultColor') defaultColor: string = 'primary';
/**
* activeColor?: string
- * Sets upload button color. Uses same color palette accepted as [mdButton] and defaults to 'accent'.
+ * Sets upload button color. Uses same color palette accepted as [MatButton] and defaults to 'accent'.
*/
@Input('activeColor') activeColor: string = 'accent';
/**
* cancelColor?: string
- * Sets cancel button color. Uses same color palette accepted as [mdButton] and defaults to 'warn'.
+ * Sets cancel button color. Uses same color palette accepted as [MatButton] and defaults to 'warn'.
*/
@Input('cancelColor') cancelColor: string = 'warn';
diff --git a/src/platform/core/file/file.module.ts b/src/platform/core/file/file.module.ts
index 23cfecff4a..5e9a1d348c 100644
--- a/src/platform/core/file/file.module.ts
+++ b/src/platform/core/file/file.module.ts
@@ -6,7 +6,7 @@ import { HttpModule, JsonpModule } from '@angular/http';
import { FormsModule } from '@angular/forms';
import { PortalModule } from '@angular/cdk/portal';
-import { MdIconModule, MdButtonModule } from '@angular/material';
+import { MatIconModule, MatButtonModule } from '@angular/material';
import { TdFileSelectDirective } from './directives/file-select.directive';
import { TdFileDropDirective } from './directives/file-drop.directive';
@@ -34,8 +34,8 @@ export { TdFileService, IUploadOptions } from './services/file.service';
JsonpModule,
FormsModule,
CommonModule,
- MdIconModule,
- MdButtonModule,
+ MatIconModule,
+ MatButtonModule,
PortalModule,
],
declarations: [
diff --git a/src/platform/core/json-formatter/json-formatter.component.html b/src/platform/core/json-formatter/json-formatter.component.html
index 2251d2f828..fab9eaa6c2 100644
--- a/src/platform/core/json-formatter/json-formatter.component.html
+++ b/src/platform/core/json-formatter/json-formatter.component.html
@@ -7,10 +7,10 @@
layout="row"
layout-align="start center"
(click)="toggle()">
- {{open? 'keyboard_arrow_down' : (isRTL ? 'keyboard_arrow_left' : 'keyboard_arrow_right')}}
+ {{open? 'keyboard_arrow_down' : (isRTL ? 'keyboard_arrow_left' : 'keyboard_arrow_right')}}{{key}}:
-
+ {{getObjectName()}}[{{data.length}}]
diff --git a/src/platform/core/json-formatter/json-formatter.component.spec.ts b/src/platform/core/json-formatter/json-formatter.component.spec.ts
index d855b624dd..6816ccc57e 100644
--- a/src/platform/core/json-formatter/json-formatter.component.spec.ts
+++ b/src/platform/core/json-formatter/json-formatter.component.spec.ts
@@ -8,6 +8,7 @@ import { Component } from '@angular/core';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { CovalentJsonFormatterModule, TdJsonFormatterComponent } from './json-formatter.module';
import { By } from '@angular/platform-browser';
+import { MATERIAL_COMPATIBILITY_MODE } from '@angular/material';
describe('Component: JsonFormatter', () => {
@@ -20,6 +21,9 @@ describe('Component: JsonFormatter', () => {
NoopAnimationsModule,
CovalentJsonFormatterModule,
],
+ providers: [
+ {provide: MATERIAL_COMPATIBILITY_MODE, useValue: true},
+ ],
});
TestBed.compileComponents();
}));
diff --git a/src/platform/core/json-formatter/json-formatter.module.ts b/src/platform/core/json-formatter/json-formatter.module.ts
index c009ed2f1b..6f8d31c00c 100644
--- a/src/platform/core/json-formatter/json-formatter.module.ts
+++ b/src/platform/core/json-formatter/json-formatter.module.ts
@@ -1,7 +1,7 @@
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
-import { MdTooltipModule, MdIconModule } from '@angular/material';
+import { MatTooltipModule, MatIconModule } from '@angular/material';
import { TdJsonFormatterComponent } from './json-formatter.component';
@@ -10,8 +10,8 @@ export { TdJsonFormatterComponent } from './json-formatter.component';
@NgModule({
imports: [
CommonModule,
- MdTooltipModule,
- MdIconModule,
+ MatTooltipModule,
+ MatIconModule,
],
declarations: [
TdJsonFormatterComponent,
diff --git a/src/platform/core/layout/README.md b/src/platform/core/layout/README.md
index f451a8831b..6c33ba4cdf 100644
--- a/src/platform/core/layout/README.md
+++ b/src/platform/core/layout/README.md
@@ -32,16 +32,16 @@ To toggle/close/open the main sidenav from child layouts/components, you can use
Example:
```html
- // or tdLayoutOpen / tdLayoutClose
- menu
+ // or tdLayoutOpen / tdLayoutClose
+ menu
```
To disable the sidenav action, just set the input to false.
```html
-
- menu
+
+ menu
```
diff --git a/src/platform/core/layout/_layout-theme.scss b/src/platform/core/layout/_layout-theme.scss
index 5f31b4fc55..e72922ff7d 100644
--- a/src/platform/core/layout/_layout-theme.scss
+++ b/src/platform/core/layout/_layout-theme.scss
@@ -12,7 +12,7 @@
background-color: mat-color($background, status-bar);
}
- [md-icon-button].td-layout-menu-button {
+ [mat-icon-button].td-layout-menu-button {
margin-left: 0px;
/deep/ [dir='rtl'] & {
margin-right: 0px;
@@ -26,7 +26,7 @@
td-layout-card-over,
td-navigation-drawer,
td-layout {
- md-toolbar {
+ mat-toolbar {
@include mat-elevation(1);
z-index: 1;
}
@@ -40,19 +40,19 @@
@include mat-elevation(2);
&.mat-primary {
background: mat-color($primary);
- &, md-icon {
+ &, mat-icon {
color: mat-color($primary, default-contrast);
}
}
&.mat-accent {
background: mat-color($accent);
- &, md-icon {
+ &, mat-icon {
color: mat-color($accent, default-contrast);
}
}
&.mat-warn {
background: mat-color($warn);
- &, md-icon {
+ &, mat-icon {
color: mat-color($warn, default-contrast);
}
}
diff --git a/src/platform/core/layout/layout-card-over/layout-card-over.component.html b/src/platform/core/layout/layout-card-over/layout-card-over.component.html
index bebb830f36..0a354d32ee 100644
--- a/src/platform/core/layout/layout-card-over/layout-card-over.component.html
+++ b/src/platform/core/layout/layout-card-over/layout-card-over.component.html
@@ -1,13 +1,13 @@
-
-
+
+
diff --git a/src/platform/core/layout/layout-manage-list/README.md b/src/platform/core/layout/layout-manage-list/README.md
index 7b86eeb6c6..dedf44be64 100644
--- a/src/platform/core/layout/layout-manage-list/README.md
+++ b/src/platform/core/layout/layout-manage-list/README.md
@@ -19,16 +19,16 @@ To toggle/close/open the manage list sidenav from child layouts/components, you
Example:
```html
- // or tdLayoutManageListOpen / tdLayoutManageListClose
- menu
+ // or tdLayoutManageListOpen / tdLayoutManageListClose
+ menu
```
To disable the sidenav action, just set the input to false.
```html
-
- menu
+
+ menu
```
@@ -52,18 +52,18 @@ Example for Manage List Layout / Nav Layout combo:
.. main toolbar content
+
+
- `,
+ `,
})
class TestBasicVirtualScrollComponent {
height: number = 200;
diff --git a/src/platform/dynamic-forms/dynamic-elements/dynamic-checkbox/dynamic-checkbox.component.html b/src/platform/dynamic-forms/dynamic-elements/dynamic-checkbox/dynamic-checkbox.component.html
index f564075984..9d6847e59d 100644
--- a/src/platform/dynamic-forms/dynamic-elements/dynamic-checkbox/dynamic-checkbox.component.html
+++ b/src/platform/dynamic-forms/dynamic-elements/dynamic-checkbox/dynamic-checkbox.component.html
@@ -1,7 +1,7 @@
-
{{label}}
-
+
\ No newline at end of file
diff --git a/src/platform/dynamic-forms/dynamic-elements/dynamic-file-input/dynamic-file-input.component.html b/src/platform/dynamic-forms/dynamic-elements/dynamic-file-input/dynamic-file-input.component.html
index 5d620860ed..0ade1c3058 100644
--- a/src/platform/dynamic-forms/dynamic-elements/dynamic-file-input/dynamic-file-input.component.html
+++ b/src/platform/dynamic-forms/dynamic-elements/dynamic-file-input/dynamic-file-input.component.html
@@ -1,5 +1,5 @@
\ No newline at end of file
diff --git a/src/platform/dynamic-forms/dynamic-elements/dynamic-input/dynamic-input.component.html b/src/platform/dynamic-forms/dynamic-elements/dynamic-input/dynamic-input.component.html
index 95c9304e26..5e17eb015d 100644
--- a/src/platform/dynamic-forms/dynamic-elements/dynamic-input/dynamic-input.component.html
+++ b/src/platform/dynamic-forms/dynamic-elements/dynamic-input/dynamic-input.component.html
@@ -1,7 +1,7 @@
\ No newline at end of file
diff --git a/src/platform/dynamic-forms/dynamic-elements/dynamic-slider/dynamic-slider.component.html b/src/platform/dynamic-forms/dynamic-elements/dynamic-slider/dynamic-slider.component.html
index 44c2bb03aa..0e8c7216bb 100644
--- a/src/platform/dynamic-forms/dynamic-elements/dynamic-slider/dynamic-slider.component.html
+++ b/src/platform/dynamic-forms/dynamic-elements/dynamic-slider/dynamic-slider.component.html
@@ -3,7 +3,7 @@
-
-
+
\ No newline at end of file
diff --git a/src/platform/dynamic-forms/dynamic-elements/dynamic-textarea/dynamic-textarea.component.html b/src/platform/dynamic-forms/dynamic-elements/dynamic-textarea/dynamic-textarea.component.html
index de8d7e5a09..8b715500c2 100644
--- a/src/platform/dynamic-forms/dynamic-elements/dynamic-textarea/dynamic-textarea.component.html
+++ b/src/platform/dynamic-forms/dynamic-elements/dynamic-textarea/dynamic-textarea.component.html
@@ -1,12 +1,12 @@
-
+
-
+
\ No newline at end of file
diff --git a/src/platform/dynamic-forms/dynamic-forms.component.spec.ts b/src/platform/dynamic-forms/dynamic-forms.component.spec.ts
index 8cb8e47b9c..af2c8362f0 100644
--- a/src/platform/dynamic-forms/dynamic-forms.component.spec.ts
+++ b/src/platform/dynamic-forms/dynamic-forms.component.spec.ts
@@ -11,6 +11,7 @@ import { NoopAnimationsModule } from '@angular/platform-browser/animations';
import { By } from '@angular/platform-browser';
import { TdDynamicType, TdDynamicElement, ITdDynamicElementConfig,
TdDynamicElementComponent, TdDynamicFormsComponent, CovalentDynamicFormsModule } from './';
+import { MATERIAL_COMPATIBILITY_MODE } from '@angular/material';
describe('Component: TdDynamicForms', () => {
@@ -23,6 +24,9 @@ describe('Component: TdDynamicForms', () => {
declarations: [
TdDynamicFormsTestComponent,
],
+ providers: [
+ {provide: MATERIAL_COMPATIBILITY_MODE, useValue: true},
+ ],
});
TestBed.compileComponents();
}));
diff --git a/src/platform/dynamic-forms/dynamic-forms.module.ts b/src/platform/dynamic-forms/dynamic-forms.module.ts
index 52127bab52..3e49b1febf 100644
--- a/src/platform/dynamic-forms/dynamic-forms.module.ts
+++ b/src/platform/dynamic-forms/dynamic-forms.module.ts
@@ -2,8 +2,8 @@ import { NgModule, Type } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
-import { MdInputModule, MdSelectModule, MdCheckboxModule, MdSliderModule, MdSlideToggleModule, MdIconModule,
- MdButtonModule } from '@angular/material';
+import { MatInputModule, MatSelectModule, MatCheckboxModule, MatSliderModule, MatSlideToggleModule, MatIconModule,
+ MatButtonModule } from '@angular/material';
import { CovalentCommonModule } from '../core';
import { CovalentFileModule } from '../core';
@@ -49,13 +49,13 @@ const TD_DYNAMIC_FORMS_ENTRY_COMPONENTS: Type[] = [
imports: [
CommonModule,
ReactiveFormsModule,
- MdInputModule,
- MdSelectModule,
- MdCheckboxModule,
- MdSliderModule,
- MdSlideToggleModule,
- MdIconModule,
- MdButtonModule,
+ MatInputModule,
+ MatSelectModule,
+ MatCheckboxModule,
+ MatSliderModule,
+ MatSlideToggleModule,
+ MatIconModule,
+ MatButtonModule,
CovalentCommonModule,
CovalentFileModule,
],
diff --git a/src/tests/utilities/covalent-tests.ts b/src/tests/utilities/covalent-tests.ts
index fe7e45d76b..a58fa7970f 100644
--- a/src/tests/utilities/covalent-tests.ts
+++ b/src/tests/utilities/covalent-tests.ts
@@ -30,7 +30,7 @@ export class CovalentTests {
* function that can be changed for all places needing this.
*/
public static clickDialogButton(component: any, buttonText: string): void {
- let elements: NodeList = document.querySelectorAll('[md-button]');
+ let elements: NodeList = document.querySelectorAll('[mat-button]');
for (let index: number = 0; index < elements.length; index++) {
// try to click share on any buttons found with share as the text content. If there is an error trying to click one just
// hide the error as it may not be clickable yet in the DOM or something
diff --git a/src/theme.scss b/src/theme.scss
index 32d8ac5edd..ccc3b823ad 100644
--- a/src/theme.scss
+++ b/src/theme.scss
@@ -163,13 +163,13 @@ $background: map-get($theme, background);
// Apply theme for this app
// Active icon color in list nav
-md-nav-list {
- [md-list-item].active {
- md-icon[mdListAvatar] {
+mat-nav-list {
+ [mat-list-item].active {
+ mat-icon[matListAvatar] {
background-color: mat-color($accent);
color: mat-color($accent, default-contrast)
}
- md-icon[mdListIcon] {
+ mat-icon[matListIcon] {
color: mat-color($accent);
}
}
diff --git a/src/universal-app/combat-training/combat-training.html b/src/universal-app/combat-training/combat-training.html
index 23117c98fb..acdb0db43f 100644
--- a/src/universal-app/combat-training/combat-training.html
+++ b/src/universal-app/combat-training/combat-training.html
@@ -3,6 +3,6 @@