From c06e99dc9746eca1e8e70d56497bbe1ad74e9ee9 Mon Sep 17 00:00:00 2001 From: mustafahlvc Date: Tue, 10 Oct 2017 16:37:14 +0300 Subject: [PATCH] @angular/material v2.0.0-beta.12 compability update, Lots of breaking changes, all "md" prefixes changed with "mat" due to angular material deprecation of "md", md2 package removed, its not compatible with latest material version, will be replaced with another date picker later. --- package-lock.json | 116 +++--- package.json | 27 +- .../confirm-dialog.component.html | 10 +- .../confirm-dialog.component.ts | 4 +- .../core/components/copier/copier.service.ts | 93 ++--- .../demo-sidenav/demo-sidenav.component.html | 100 ++--- .../material-color-picker.component.html | 32 +- .../material-color-picker.component.scss | 4 +- .../material-color-picker.component.ts | 2 +- .../nav-horizontal-collapse.component.html | 6 +- .../nav-horizontal-item.component.html | 4 +- .../nav-vertical-collapse.component.html | 6 +- .../nav-item/nav-vertical-item.component.html | 4 +- .../search-bar/search-bar.component.html | 10 +- .../shortcuts/shortcuts.component.html | 64 ++-- .../theme-options.component.html | 90 ++--- .../theme-options.component.scss | 5 +- .../fuse-if-on-dom.directive.ts | 2 +- .../mat-sidenav-helper.directive.ts | 99 +++++ .../mat-sidenav-helper.service.ts} | 6 +- .../md-sidenav-helper.directive.ts | 99 ----- src/app/core/modules/material.module.ts | 188 +++++----- src/app/core/modules/shared.module.ts | 17 +- .../scss/partials/_angular-material-fix.scss | 6 +- src/app/core/scss/partials/_colors.scss | 2 +- src/app/core/scss/partials/_global.scss | 2 +- src/app/core/scss/partials/_icons.scss | 2 +- src/app/core/scss/partials/_material.scss | 10 +- src/app/core/scss/partials/_page-layouts.scss | 28 +- src/app/core/scss/partials/_reset.scss | 4 +- src/app/core/services/config.service.ts | 6 +- src/app/fuse-fake-db/projects-dashboard.ts | 10 +- src/app/fuse-fake-db/scrumboard.ts | 14 +- .../apps/calendar/calendar.component.html | 42 +-- .../apps/calendar/calendar.component.scss | 2 +- .../apps/calendar/calendar.component.ts | 6 +- .../event-form/event-form.component.html | 90 ++--- .../event-form/event-form.component.ts | 6 +- .../chat/chat-start/chat-start.component.html | 4 +- .../chat/chat-start/chat-start.component.scss | 2 +- .../chat/chat-view/chat-view.component.html | 38 +- .../chat/chat-view/chat-view.component.scss | 6 +- .../content/apps/chat/chat.component.html | 18 +- .../content/apps/chat/chat.component.scss | 2 +- .../sidenavs/left/chats/chats.component.html | 62 ++-- .../sidenavs/left/chats/chats.component.scss | 2 +- .../sidenavs/left/chats/chats.component.ts | 6 +- .../sidenavs/left/user/user.component.html | 50 +-- .../sidenavs/left/user/user.component.scss | 2 +- .../right/contact/contact.component.html | 22 +- .../right/contact/contact.component.scss | 2 +- .../contact-form/contact-form.component.html | 108 +++--- .../contact-form/contact-form.component.ts | 6 +- .../contact-list/contact-list.component.html | 94 ++--- .../contact-list/contact-list.component.ts | 6 +- .../apps/contacts/contacts.component.html | 36 +- .../apps/contacts/contacts.component.scss | 1 + .../apps/contacts/contacts.component.ts | 4 +- .../selected-bar/selected-bar.component.html | 20 +- .../selected-bar/selected-bar.component.ts | 6 +- .../sidenavs/main/main.component.html | 8 +- .../dashboards/project/project.component.html | 240 ++++++------ .../dashboards/project/project.component.scss | 6 +- .../file-list/file-list.component.html | 58 +-- .../file-manager/file-manager.component.html | 36 +- .../file-manager/file-manager.component.scss | 2 +- .../sidenavs/details/details.component.html | 20 +- .../sidenavs/main/main.component.html | 22 +- .../dialogs/compose/compose.component.html | 68 ++-- .../dialogs/compose/compose.component.scss | 2 +- .../mail/dialogs/compose/compose.component.ts | 6 +- .../mail-details/mail-details.component.html | 34 +- .../mail-list-item.component.html | 18 +- .../mail/mail-list/mail-list.component.html | 4 +- .../content/apps/mail/mail.component.html | 80 ++-- .../sidenavs/main/main-sidenav.component.html | 30 +- .../sidenavs/main/main-sidenav.component.ts | 4 +- .../content/apps/scrumboard/board.model.ts | 6 +- .../board/add-list/add-list.component.html | 12 +- .../board/add-list/add-list.component.scss | 2 +- .../board/add-list/add-list.component.ts | 2 +- .../scrumboard/board/board.component.html | 30 +- .../scrumboard/board/board.component.scss | 10 +- .../apps/scrumboard/board/board.component.ts | 2 +- .../board/dialogs/card/card.component.html | 228 ++++++------ .../board/dialogs/card/card.component.scss | 20 +- .../board/dialogs/card/card.component.ts | 12 +- .../label-selector.component.html | 36 +- .../label-selector.component.ts | 2 +- .../edit-board-name.component.html | 12 +- .../edit-board-name.component.ts | 2 +- .../list/add-card/add-card.component.html | 14 +- .../list/add-card/add-card.component.scss | 4 +- .../board/list/card/card.component.html | 18 +- .../board/list/card/card.component.scss | 2 +- .../edit-list-name.component.html | 8 +- .../edit-list-name.component.ts | 2 +- .../scrumboard/board/list/list.component.html | 10 +- .../scrumboard/board/list/list.component.ts | 6 +- .../board-color-selector.component.html | 22 +- .../sidenavs/settings/settings.component.html | 34 +- .../apps/scrumboard/scrumboard.component.html | 8 +- .../apps/scrumboard/scrumboard.component.scss | 2 +- .../sidenavs/main/main-sidenav.component.html | 30 +- .../todo-details/todo-details.component.html | 88 ++--- .../todo-list-item.component.html | 48 +-- .../todo/todo-list/todo-list.component.html | 6 +- .../todo/todo-list/todo-list.component.scss | 5 + .../content/apps/todo/todo.component.html | 66 ++-- .../datatable/ngx-datatable.component.html | 14 +- .../angular-material.component.html | 12 +- .../example-viewer/example-viewer.html | 32 +- .../example-viewer/example-viewer.scss | 2 +- .../example-viewer/example-viewer.ts | 4 +- .../countdown/countdown.component.html | 8 +- .../components/hljs/hljs.component.html | 8 +- .../material-color-picker.component.html | 10 +- .../navigation/navigation.component.html | 14 +- .../price-tables/price-tables.component.html | 58 +-- .../search-bar/search-bar.component.html | 11 +- .../shortcuts/shortcuts.component.html | 8 +- .../components/widget/widget.component.html | 32 +- .../forgot-password-2.component.html | 16 +- .../forgot-password-2.component.scss | 2 +- .../forgot-password.component.html | 16 +- .../forgot-password.component.scss | 2 +- .../authentication/lock/lock.component.html | 20 +- .../authentication/lock/lock.component.scss | 4 +- .../authentication/lock/lock.component.ts | 4 +- .../login-2/login-2.component.html | 34 +- .../login-2/login-2.component.scss | 6 +- .../authentication/login/login.component.html | 34 +- .../authentication/login/login.component.scss | 4 +- .../register-2/register-2.component.html | 50 +-- .../register-2/register-2.component.scss | 6 +- .../register/register.component.html | 50 +-- .../register/register.component.scss | 4 +- .../reset-password-2.component.html | 36 +- .../reset-password-2.component.scss | 2 +- .../reset-password.component.html | 36 +- .../reset-password.component.scss | 2 +- .../coming-soon/coming-soon.component.html | 16 +- .../coming-soon/coming-soon.component.scss | 2 +- .../pages/errors/404/error-404.component.html | 2 +- .../pages/errors/500/error-500.component.ts | 2 +- .../invoices/compact/compact.component.html | 2 +- .../pages/profile/profile.component.html | 20 +- .../pages/profile/profile.component.scss | 2 +- .../profile/tabs/about/about.component.html | 16 +- .../profile/tabs/about/about.component.scss | 2 +- .../tabs/timeline/timeline.component.html | 36 +- .../tabs/timeline/timeline.component.scss | 6 +- .../pages/search/search.component.html | 20 +- .../pages/search/search.component.scss | 2 +- .../tabs/classic/classic.component.html | 36 +- .../search/tabs/table/table.component.html | 24 +- .../services/config/config.component.html | 14 +- .../splash-screen.component.html | 8 +- .../content/ui/colors/colors.component.html | 42 +-- .../content/ui/forms/forms.component.html | 88 ++--- .../helper-classes.component.html | 18 +- .../padding-margin.component.html | 8 +- .../width-height/width-height.component.html | 4 +- .../content/ui/icons/icons.component.html | 20 +- .../fullwidth-2/fullwidth-2.component.html | 4 +- .../carded/fullwidth/fullwidth.component.html | 4 +- .../left-sidenav-2.component.html | 20 +- .../left-sidenav/left-sidenav.component.html | 20 +- .../right-sidenav-2.component.html | 20 +- .../right-sidenav.component.html | 20 +- .../simple/fullwidth/fullwidth.component.html | 4 +- .../left-sidenav-2.component.html | 20 +- .../left-sidenav-3.component.html | 20 +- .../left-sidenav/left-sidenav.component.html | 20 +- .../right-sidenav-2.component.html | 20 +- .../right-sidenav-3.component.html | 20 +- .../right-sidenav.component.html | 20 +- .../simple/tabbed/tabbed.component.html | 20 +- .../blockquotes-lists.component.html | 6 +- .../tabs/headings/headings.component.html | 4 +- .../tabs/helpers/helpers.component.html | 16 +- .../inline-text-elements.component.html | 2 +- .../ui/typography/typography.component.html | 26 +- src/app/main/footer/footer.component.html | 12 +- src/app/main/main.component.html | 12 +- .../horizontal/navbar-horizontal.component.ts | 3 +- .../vertical/navbar-vertical.component.html | 8 +- .../vertical/navbar-vertical.component.scss | 9 +- .../quick-panel/quick-panel.component.html | 76 ++-- src/app/main/toolbar/toolbar.component.html | 50 +-- src/app/main/toolbar/toolbar.component.scss | 14 +- src/app/main/toolbar/toolbar.component.ts | 6 +- .../autocomplete-display-example.css | 8 +- .../autocomplete-display-example.html | 16 +- .../autocomplete-display-example.ts | 72 ++-- .../autocomplete-filter-example.css | 8 +- .../autocomplete-filter-example.html | 16 +- .../autocomplete-filter-example.ts | 49 +-- .../autocomplete-overview-example.css | 8 +- .../autocomplete-overview-example.html | 33 +- .../autocomplete-overview-example.ts | 91 ++--- .../autocomplete-simple-example.css | 8 +- .../autocomplete-simple-example.html | 16 +- .../autocomplete-simple-example.ts | 25 +- .../button-overview-example.html | 2 +- .../button-overview-example.ts | 10 +- .../button-toggle-exclusive-example.css | 2 +- .../button-toggle-exclusive-example.html | 28 +- .../button-toggle-exclusive-example.ts | 12 +- .../button-toggle-overview-example.html | 2 +- .../button-toggle-overview-example.ts | 10 +- .../button-types/button-types-example.css | 6 +- .../button-types/button-types-example.html | 90 ++--- .../button-types/button-types-example.ts | 12 +- .../card-fancy/card-fancy-example.css | 6 +- .../card-fancy/card-fancy-example.html | 38 +- .../card-fancy/card-fancy-example.ts | 12 +- .../card-overview/card-overview-example.html | 2 +- .../card-overview/card-overview-example.ts | 10 +- .../cdk-table-basic-example.css | 34 +- .../cdk-table-basic-example.html | 58 +-- .../cdk-table-basic-example.ts | 141 ++++--- .../checkbox-configurable-example.css | 12 +- .../checkbox-configurable-example.html | 68 ++-- .../checkbox-configurable-example.ts | 19 +- .../checkbox-overview-example.html | 2 +- .../checkbox-overview-example.ts | 10 +- .../chips-input/chips-input-example.css | 2 +- .../chips-input/chips-input-example.html | 28 +- .../chips-input/chips-input-example.ts | 74 ++-- .../chips-overview-example.html | 12 +- .../chips-overview/chips-overview-example.ts | 12 +- .../chips-stacked/chips-stacked-example.css | 4 +- .../chips-stacked/chips-stacked-example.html | 14 +- .../chips-stacked/chips-stacked-example.ts | 33 +- .../datepicker-api-example.html | 10 +- .../datepicker-api/datepicker-api-example.ts | 11 +- .../datepicker-filter-example.html | 10 +- .../datepicker-filter-example.ts | 21 +- .../datepicker-min-max-example.html | 10 +- .../datepicker-min-max-example.ts | 15 +- .../datepicker-overview-example.html | 10 +- .../datepicker-overview-example.ts | 12 +- .../datepicker-start-view-example.html | 10 +- .../datepicker-start-view-example.ts | 13 +- .../datepicker-touch-example.html | 10 +- .../datepicker-touch-example.ts | 11 +- .../dialog-content-example-dialog.html | 50 +-- .../dialog-content-example.html | 2 +- .../dialog-content/dialog-content-example.ts | 40 +- .../dialog-data-example-dialog.html | 31 +- .../dialog-data/dialog-data-example.html | 2 +- .../dialog-data/dialog-data-example.ts | 41 ++- .../dialog-elements-example-dialog.html | 8 +- .../dialog-elements-example.html | 2 +- .../dialog-elements-example.ts | 31 +- .../dialog-overview-example-dialog.html | 18 +- .../dialog-overview-example.html | 22 +- .../dialog-overview-example.ts | 66 ++-- .../expansion-overview-example.html | 36 +- .../expansion-overview-example.ts | 10 +- .../expansion-steps-example.css | 8 +- .../expansion-steps-example.html | 118 +++--- .../expansion-steps-example.ts | 34 +- .../grid-list-dynamic-example.html | 18 +- .../grid-list-dynamic-example.ts | 37 +- .../grid-list-overview-example.css | 4 +- .../grid-list-overview-example.html | 12 +- .../grid-list-overview-example.ts | 12 +- .../icon-overview/icon-overview-example.html | 2 +- .../icon-overview/icon-overview-example.ts | 10 +- .../icon-svg/icon-svg-example.html | 2 +- .../icon-svg/icon-svg-example.ts | 24 +- .../input-clearable-example.css | 2 +- .../input-clearable-example.html | 12 +- .../input-clearable-example.ts | 13 +- .../input-errors/input-errors-example.css | 8 +- .../input-errors/input-errors-example.html | 18 +- .../input-errors/input-errors-example.ts | 20 +- .../input-form/input-form-example.css | 8 +- .../input-form/input-form-example.html | 76 ++-- .../input-form/input-form-example.ts | 12 +- .../input-hint/input-hint-example.css | 8 +- .../input-hint/input-hint-example.html | 12 +- .../input-hint/input-hint-example.ts | 12 +- .../input-overview/input-overview-example.css | 8 +- .../input-overview-example.html | 6 +- .../input-overview/input-overview-example.ts | 12 +- .../input-prefix-suffix-example.css | 8 +- .../input-prefix-suffix-example.html | 12 +- .../input-prefix-suffix-example.ts | 12 +- .../list-overview/list-overview-example.html | 10 +- .../list-overview/list-overview-example.ts | 10 +- .../list-sections/list-sections-example.css | 2 +- .../list-sections/list-sections-example.html | 30 +- .../list-sections/list-sections-example.ts | 59 +-- .../list-selection-example.html | 12 +- .../list-selection/list-selection-example.ts | 13 +- .../menu-icons/menu-icons-example.html | 32 +- .../menu-icons/menu-icons-example.ts | 12 +- .../menu-overview/menu-overview-example.html | 10 +- .../menu-overview/menu-overview-example.ts | 12 +- .../nested-menu/nested-menu-example.html | 82 ++--- .../nested-menu/nested-menu-example.ts | 12 +- .../paginator-configurable-example.html | 46 +-- .../paginator-configurable-example.ts | 30 +- .../paginator-overview-example.html | 8 +- .../paginator-overview-example.ts | 10 +- .../progress-bar-configurable-example.css | 12 +- .../progress-bar-configurable-example.html | 116 +++--- .../progress-bar-configurable-example.ts | 19 +- .../progress-bar-overview-example.html | 2 +- .../progress-bar-overview-example.ts | 10 +- .../progress-spinner-configurable-example.css | 12 +- ...progress-spinner-configurable-example.html | 90 ++--- .../progress-spinner-configurable-example.ts | 17 +- .../progress-spinner-overview-example.html | 2 +- .../progress-spinner-overview-example.ts | 10 +- .../radio-ng-model/radio-ng-model-example.css | 8 +- .../radio-ng-model-example.html | 10 +- .../radio-ng-model/radio-ng-model-example.ts | 25 +- .../radio-overview-example.html | 8 +- .../radio-overview/radio-overview-example.ts | 10 +- .../select-form/select-form-example.html | 12 +- .../select-form/select-form-example.ts | 27 +- .../select-overview-example.html | 10 +- .../select-overview-example.ts | 25 +- .../sidenav-fab/sidenav-fab-example.css | 26 +- .../sidenav-fab/sidenav-fab-example.html | 58 +-- .../sidenav-fab/sidenav-fab-example.ts | 16 +- .../sidenav-overview-example.css | 16 +- .../sidenav-overview-example.html | 20 +- .../sidenav-overview-example.ts | 12 +- .../slide-toggle-configurable-example.css | 12 +- .../slide-toggle-configurable-example.html | 78 ++-- .../slide-toggle-configurable-example.ts | 17 +- .../slide-toggle-forms-example.css | 6 +- .../slide-toggle-forms-example.html | 16 +- .../slide-toggle-forms-example.ts | 37 +- .../slide-toggle-overview-example.html | 2 +- .../slide-toggle-overview-example.ts | 10 +- .../slider-configurable-example.css | 16 +- .../slider-configurable-example.html | 110 +++--- .../slider-configurable-example.ts | 53 +-- .../slider-overview-example.css | 4 +- .../slider-overview-example.html | 2 +- .../slider-overview-example.ts | 12 +- .../snack-bar-component-example-snack.css | 2 +- .../snack-bar-component-example-snack.html | 2 +- .../snack-bar-component-example.html | 4 +- .../snack-bar-component-example.ts | 37 +- .../snack-bar-overview-example.html | 14 +- .../snack-bar-overview-example.ts | 26 +- .../sort-overview/sort-overview-example.css | 2 +- .../sort-overview/sort-overview-example.html | 30 +- .../sort-overview/sort-overview-example.ts | 111 ++++-- .../stepper-overview-example.html | 67 ++-- .../stepper-overview-example.ts | 40 +- .../table-basic/table-basic-example.css | 12 +- .../table-basic/table-basic-example.html | 52 +-- .../table-basic/table-basic-example.ts | 166 +++++++-- .../table-filtering-example.css | 28 +- .../table-filtering-example.html | 62 ++-- .../table-filtering-example.ts | 192 ++++++---- .../table-http/table-http-example.css | 62 ++-- .../table-http/table-http-example.html | 80 ++-- .../table-http/table-http-example.ts | 179 ++++----- .../table-overview/table-overview-example.css | 50 +-- .../table-overview-example.html | 120 +++--- .../table-overview/table-overview-example.ts | 344 +++++++++++------- .../table-pagination-example.css | 20 +- .../table-pagination-example.html | 64 ++-- .../table-pagination-example.ts | 163 +++++---- .../table-sorting/table-sorting-example.css | 22 +- .../table-sorting/table-sorting-example.html | 52 +-- .../table-sorting/table-sorting-example.ts | 206 ++++++----- .../tabs-overview/tabs-overview-example.html | 8 +- .../tabs-overview/tabs-overview-example.ts | 10 +- .../tabs-template-label-example.css | 4 +- .../tabs-template-label-example.html | 96 ++--- .../tabs-template-label-example.ts | 12 +- .../toolbar-multirow-example.css | 4 +- .../toolbar-multirow-example.html | 28 +- .../toolbar-multirow-example.ts | 12 +- .../toolbar-overview-example.html | 2 +- .../toolbar-overview-example.ts | 10 +- .../tooltip-overview-example.html | 2 +- .../tooltip-overview-example.ts | 10 +- .../tooltip-position-example.css | 8 +- .../tooltip-position-example.html | 20 +- .../tooltip-position-example.ts | 13 +- src/environments/environment.hmr.ts | 2 +- src/environments/environment.prod.ts | 2 +- src/environments/environment.ts | 2 +- 394 files changed, 5513 insertions(+), 4945 deletions(-) create mode 100644 src/app/core/directives/mat-sidenav-helper/mat-sidenav-helper.directive.ts rename src/app/core/directives/{md-sidenav-helper/md-sidenav-helper.service.ts => mat-sidenav-helper/mat-sidenav-helper.service.ts} (70%) delete mode 100644 src/app/core/directives/md-sidenav-helper/md-sidenav-helper.directive.ts diff --git a/package-lock.json b/package-lock.json index 4fb35baf..2828f048 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43,17 +43,17 @@ } }, "@angular/animations": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-4.4.3.tgz", - "integrity": "sha1-OWxKW/sihH+eRYJFuplfnBMMDPM=", + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/@angular/animations/-/animations-4.4.4.tgz", + "integrity": "sha1-ovk1NgQ0er4V35gpIFiEL1Lwi8I=", "requires": { "tslib": "1.7.1" } }, "@angular/cdk": { - "version": "2.0.0-beta.11", - "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-2.0.0-beta.11.tgz", - "integrity": "sha512-sbOqPoC439SDmpLiMq2XjidMMCJ6ofToDew4IXd9ne0jLSd0gGU20tTrRHf79HMTmlAySP7PBOq4Wv1eOFu/8A==", + "version": "2.0.0-beta.12", + "resolved": "https://registry.npmjs.org/@angular/cdk/-/cdk-2.0.0-beta.12.tgz", + "integrity": "sha1-OiQ8tiuT9OA5EgunD5ANyeI1Yi4=", "requires": { "tslib": "1.7.1" } @@ -124,32 +124,41 @@ } }, "@angular/common": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/@angular/common/-/common-4.4.3.tgz", - "integrity": "sha1-+SrGiwK+xfDm02A6hDKU3JbJYHQ=", + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-4.4.4.tgz", + "integrity": "sha1-rgqBiqoMaj8JAee4C9lOHCLrk2U=", "requires": { "tslib": "1.7.1" } }, "@angular/compiler": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-4.4.3.tgz", - "integrity": "sha1-jwEWPa19s0CEl9mdOHVUtrGFrWY=", + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-4.4.4.tgz", + "integrity": "sha1-Mm6wAp2aNUGqyhJN75rcUcNvK0E=", "requires": { "tslib": "1.7.1" } }, "@angular/compiler-cli": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-4.4.3.tgz", - "integrity": "sha1-GDr4HxQRhrjWYLBkKVktQLdUCko=", + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-4.4.4.tgz", + "integrity": "sha1-BjCApJfZF1OWglBQIixxfaGE9s8=", "dev": true, "requires": { - "@angular/tsc-wrapped": "4.4.3", + "@angular/tsc-wrapped": "4.4.4", "minimist": "1.2.0", "reflect-metadata": "0.1.10" }, "dependencies": { + "@angular/tsc-wrapped": { + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/@angular/tsc-wrapped/-/tsc-wrapped-4.4.4.tgz", + "integrity": "sha1-mEGCHlVha4JsoWAlD+heFfx0/8M=", + "dev": true, + "requires": { + "tsickle": "0.21.6" + } + }, "minimist": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", @@ -159,9 +168,9 @@ } }, "@angular/core": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-4.4.3.tgz", - "integrity": "sha1-5x0rB76qy6tIq39R1OIobqXXDhU=", + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-4.4.4.tgz", + "integrity": "sha1-vTfs9UFY+XSJmWyThr0iL4CjL1w=", "requires": { "tslib": "1.7.1" } @@ -175,68 +184,59 @@ } }, "@angular/forms": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-4.4.3.tgz", - "integrity": "sha1-JbQburWL8dqHJBHIUXwQ18U3PY4=", + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/@angular/forms/-/forms-4.4.4.tgz", + "integrity": "sha1-TbN5BQm2sQ8duKfBt/Uhh89kz9Q=", "requires": { "tslib": "1.7.1" } }, "@angular/http": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/@angular/http/-/http-4.4.3.tgz", - "integrity": "sha1-tVftJBRKrMRLE2zUd+hNL1eAiQM=", + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/@angular/http/-/http-4.4.4.tgz", + "integrity": "sha1-Zn+vYWu2JBaOr65u6S5euiOp0fI=", "requires": { "tslib": "1.7.1" } }, "@angular/language-service": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-4.4.3.tgz", - "integrity": "sha1-RScBGllJZ6OW7/PAXtFb1MhtUbc=", + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/@angular/language-service/-/language-service-4.4.4.tgz", + "integrity": "sha1-D2hgUuOVDBkSjxO3Qp/BS6/mm9Q=", "dev": true }, "@angular/material": { - "version": "2.0.0-beta.11", - "resolved": "https://registry.npmjs.org/@angular/material/-/material-2.0.0-beta.11.tgz", - "integrity": "sha512-k4eyil3n8aHqqS3Fq4N77XvF3bcXA2Ttgf9ujDZwXmMd2NlR4XL+LJrguPLwNSQ6i3EYT+ovE2p4XUu2nkHVeQ==", + "version": "2.0.0-beta.12", + "resolved": "https://registry.npmjs.org/@angular/material/-/material-2.0.0-beta.12.tgz", + "integrity": "sha1-cbbQt7AhiR5dDjaIwdS9eMdFf1g=", "requires": { "tslib": "1.7.1" } }, "@angular/platform-browser": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-4.4.3.tgz", - "integrity": "sha1-I/mkW9Pcf0TZeHf7+OYDLez8ncs=", + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-4.4.4.tgz", + "integrity": "sha1-o4mOLnup2E/6DUcUTGlxF5x1ruY=", "requires": { "tslib": "1.7.1" } }, "@angular/platform-browser-dynamic": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-4.4.3.tgz", - "integrity": "sha1-5B3dglJDJ3UxDqtZQM3Y3wYY8IQ=", + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-4.4.4.tgz", + "integrity": "sha1-w8nrhUpShVagcFQSeTLlJ/qTLhQ=", "requires": { "tslib": "1.7.1" } }, "@angular/router": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/@angular/router/-/router-4.4.3.tgz", - "integrity": "sha1-JsyUd1o4YJRq6vHC6PYPTUTpCZE=", + "version": "4.4.4", + "resolved": "https://registry.npmjs.org/@angular/router/-/router-4.4.4.tgz", + "integrity": "sha1-e+ORCW6EPLPgT58F0dZaiN+bx88=", "requires": { "tslib": "1.7.1" } }, - "@angular/tsc-wrapped": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/@angular/tsc-wrapped/-/tsc-wrapped-4.4.3.tgz", - "integrity": "sha1-LT84IQodTbA/yG3PHglYErhc0Rk=", - "dev": true, - "requires": { - "tsickle": "0.21.6" - } - }, "@angularclass/hmr": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/@angularclass/hmr/-/hmr-2.1.3.tgz", @@ -7882,6 +7882,15 @@ "integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=", "dev": true }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, "string-width": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", @@ -7909,15 +7918,6 @@ } } }, - "string_decoder": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", - "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", - "dev": true, - "requires": { - "safe-buffer": "5.1.1" - } - }, "stringstream": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", diff --git a/package.json b/package.json index 5bf77528..624f43d3 100644 --- a/package.json +++ b/package.json @@ -15,18 +15,18 @@ }, "private": true, "dependencies": { - "@angular/animations": "4.4.3", - "@angular/cdk": "2.0.0-beta.11", - "@angular/common": "4.4.3", - "@angular/compiler": "4.4.3", - "@angular/core": "4.4.3", + "@angular/animations": "4.4.4", + "@angular/cdk": "2.0.0-beta.12", + "@angular/common": "4.4.4", + "@angular/compiler": "4.4.4", + "@angular/core": "4.4.4", "@angular/flex-layout": "2.0.0-beta.9", - "@angular/forms": "4.4.3", - "@angular/http": "4.4.3", - "@angular/material": "2.0.0-beta.11", - "@angular/platform-browser": "4.4.3", - "@angular/platform-browser-dynamic": "4.4.3", - "@angular/router": "4.4.3", + "@angular/forms": "4.4.4", + "@angular/http": "4.4.4", + "@angular/material": "2.0.0-beta.12", + "@angular/platform-browser": "4.4.4", + "@angular/platform-browser-dynamic": "4.4.4", + "@angular/router": "4.4.4", "@swimlane/ngx-charts": "6.0.2", "@swimlane/ngx-datatable": "9.3.1", "@swimlane/ngx-dnd": "3.0.0", @@ -39,7 +39,6 @@ "hammerjs": "2.0.8", "highlight.js": "9.12.0", "intl": "1.2.5", - "md2": "0.0.28", "moment": "2.18.1", "ngx-color-picker": "4.3.1", "ngx-cookie-service": "1.0.7", @@ -51,8 +50,8 @@ }, "devDependencies": { "@angular/cli": "1.4.2", - "@angular/compiler-cli": "4.4.3", - "@angular/language-service": "4.4.3", + "@angular/compiler-cli": "4.4.4", + "@angular/language-service": "4.4.4", "@angularclass/hmr": "2.1.3", "@ngtools/webpack": "1.7.1", "@types/jasmine": "2.6.0", diff --git a/src/app/core/components/confirm-dialog/confirm-dialog.component.html b/src/app/core/components/confirm-dialog/confirm-dialog.component.html index d7d60191..0f971757 100644 --- a/src/app/core/components/confirm-dialog/confirm-dialog.component.html +++ b/src/app/core/components/confirm-dialog/confirm-dialog.component.html @@ -1,6 +1,6 @@ -

Confirm

-
{{confirmMessage}}
-
- - +

Confirm

+
{{confirmMessage}}
+
+ +
diff --git a/src/app/core/components/confirm-dialog/confirm-dialog.component.ts b/src/app/core/components/confirm-dialog/confirm-dialog.component.ts index 08bb4600..24e22d35 100644 --- a/src/app/core/components/confirm-dialog/confirm-dialog.component.ts +++ b/src/app/core/components/confirm-dialog/confirm-dialog.component.ts @@ -1,5 +1,5 @@ import { Component, OnInit } from '@angular/core'; -import { MdDialogRef } from '@angular/material'; +import { MatDialogRef } from '@angular/material'; @Component({ selector : 'fuse-confirm-dialog', @@ -10,7 +10,7 @@ export class FuseConfirmDialogComponent implements OnInit { public confirmMessage: string; - constructor(public dialogRef: MdDialogRef) + constructor(public dialogRef: MatDialogRef) { } diff --git a/src/app/core/components/copier/copier.service.ts b/src/app/core/components/copier/copier.service.ts index 42ce0483..03227fc4 100644 --- a/src/app/core/components/copier/copier.service.ts +++ b/src/app/core/components/copier/copier.service.ts @@ -6,55 +6,60 @@ * * Both released under MIT license - © Zeno Rocha */ -import {Injectable} from '@angular/core'; +import { Injectable } from '@angular/core'; @Injectable() -export class CopierService { +export class CopierService +{ - private textarea: HTMLTextAreaElement; + private textarea: HTMLTextAreaElement; - /** Copy the text value to the clipboard. */ - copyText(text: string): boolean { - this.createTextareaAndSelect(text); + /** Copy the text value to the clipboard. */ + copyText(text: string): boolean + { + this.createTextareaAndSelect(text); - const copySuccessful = document.execCommand('copy'); - this.removeFake(); + const copySuccessful = document.execCommand('copy'); + this.removeFake(); - return copySuccessful; - } - - /** - * Creates a hidden textarea element, sets its value from `text` property, - * and makes a selection on it. - */ - private createTextareaAndSelect(text: string) { - // Create a fake element to hold the contents to copy - this.textarea = document.createElement('textarea'); - - // Prevent zooming on iOS - this.textarea.style.fontSize = '12pt'; - - // Hide the element - this.textarea.classList.add('cdk-visually-hidden'); - - // Move element to the same position vertically - const yPosition = window.pageYOffset || document.documentElement.scrollTop; - this.textarea.style.top = yPosition + 'px'; - - this.textarea.setAttribute('readonly', ''); - this.textarea.value = text; - - document.body.appendChild(this.textarea); - - this.textarea.select(); - this.textarea.setSelectionRange(0, this.textarea.value.length); - } - - /** Remove the text area from the DOM. */ - private removeFake() { - if (this.textarea) { - document.body.removeChild(this.textarea); - this.textarea = null; + return copySuccessful; + } + + /** + * Creates a hidden textarea element, sets its value from `text` property, + * and makes a selection on it. + */ + private createTextareaAndSelect(text: string) + { + // Create a fake element to hold the contents to copy + this.textarea = document.createElement('textarea'); + + // Prevent zooming on iOS + this.textarea.style.fontSize = '12pt'; + + // Hide the element + this.textarea.classList.add('cdk-visually-hidden'); + + // Move element to the same position vertically + const yPosition = window.pageYOffset || document.documentElement.scrollTop; + this.textarea.style.top = yPosition + 'px'; + + this.textarea.setAttribute('readonly', ''); + this.textarea.value = text; + + document.body.appendChild(this.textarea); + + this.textarea.select(); + this.textarea.setSelectionRange(0, this.textarea.value.length); + } + + /** Remove the text area from the DOM. */ + private removeFake() + { + if ( this.textarea ) + { + document.body.removeChild(this.textarea); + this.textarea = null; + } } - } } diff --git a/src/app/core/components/demo/demo-sidenav/demo-sidenav.component.html b/src/app/core/components/demo/demo-sidenav/demo-sidenav.component.html index 069cf67a..9c1b47a4 100644 --- a/src/app/core/components/demo/demo-sidenav/demo-sidenav.component.html +++ b/src/app/core/components/demo/demo-sidenav/demo-sidenav.component.html @@ -1,100 +1,100 @@
- -

Sidenav Demo

+ +

Sidenav Demo

- + Sidenav Item 1 - + - + - + Sidenav Item 2 - + - + - + Sidenav Item 3 - + - + - + Sidenav Item 4 - + - + - + Sidenav Item 5 - + - + - + Sidenav Item 6 - + - + - + Sidenav Item 7 - + - + - + Sidenav Item 8 - + - + - + Sidenav Item 9 - + - + - + Sidenav Item 10 - + - + - + Sidenav Item 11 - + - + - + Sidenav Item 12 - + - + - + Sidenav Item 13 - + - + - + Sidenav Item 14 - + - + - + Sidenav Item 15 - + - + - + Sidenav Item 16 - + -
+
diff --git a/src/app/core/components/material-color-picker/material-color-picker.component.html b/src/app/core/components/material-color-picker/material-color-picker.component.html index e305b812..a1209174 100644 --- a/src/app/core/components/material-color-picker/material-color-picker.component.html +++ b/src/app/core/components/material-color-picker/material-color-picker.component.html @@ -1,23 +1,23 @@ - - + -
- @@ -28,11 +28,11 @@ Select Color -
@@ -47,10 +47,10 @@ fxLayoutAlign="start start" class="colors" fusePerfectScrollbar>
+ fxLayout="row" fxLayoutAlign="start end" mat-ink-ripple> {{color.key}} @@ -67,16 +67,16 @@
+ fxLayout="row" fxLayoutAlign="start end" mat-ink-ripple> {{hue}} - check + check
- + diff --git a/src/app/core/components/material-color-picker/material-color-picker.component.scss b/src/app/core/components/material-color-picker/material-color-picker.component.scss index fc5b4fab..9a4647bb 100644 --- a/src/app/core/components/material-color-picker/material-color-picker.component.scss +++ b/src/app/core/components/material-color-picker/material-color-picker.component.scss @@ -11,7 +11,7 @@ overflow: hidden; min-height: 258px; height: 308px; - background-color: #f7f7f7; + background-color: #F7F7F7; .view { position: absolute; @@ -39,7 +39,7 @@ font-size: 10px; } - md-icon { + mat-icon { position: absolute; top: 2px; right: 2px; diff --git a/src/app/core/components/material-color-picker/material-color-picker.component.ts b/src/app/core/components/material-color-picker/material-color-picker.component.ts index 786ce470..317c829d 100644 --- a/src/app/core/components/material-color-picker/material-color-picker.component.ts +++ b/src/app/core/components/material-color-picker/material-color-picker.component.ts @@ -129,7 +129,7 @@ export class FuseMaterialColorPickerComponent implements OnInit, OnChanges { this.selectedBg = MatColors.getColor(this.selectedPalette)[this.selectedHue]; this.selectedFg = MatColors.getColor(this.selectedPalette).contrast[this.selectedHue]; - this.selectedClass = 'md-' + this.selectedPalette + '-' + this.selectedHue + '-bg'; + this.selectedClass = 'mat-' + this.selectedPalette + '-' + this.selectedHue + '-bg'; } else { diff --git a/src/app/core/components/navigation/horizontal/nav-collapse/nav-horizontal-collapse.component.html b/src/app/core/components/navigation/horizontal/nav-collapse/nav-horizontal-collapse.component.html index 9fcef7d6..4712628d 100644 --- a/src/app/core/components/navigation/horizontal/nav-collapse/nav-horizontal-collapse.component.html +++ b/src/app/core/components/navigation/horizontal/nav-collapse/nav-horizontal-collapse.component.html @@ -1,7 +1,7 @@ - - {{item.icon}} + + {{item.icon}} {{item.title}} - keyboard_arrow_right + keyboard_arrow_right
diff --git a/src/app/core/components/navigation/horizontal/nav-item/nav-horizontal-item.component.html b/src/app/core/components/navigation/horizontal/nav-item/nav-horizontal-item.component.html index 54045a83..c3c95b34 100644 --- a/src/app/core/components/navigation/horizontal/nav-item/nav-horizontal-item.component.html +++ b/src/app/core/components/navigation/horizontal/nav-item/nav-horizontal-item.component.html @@ -1,6 +1,6 @@ - - {{item.icon}} + {{item.icon}} {{item.title}} {{item.badge.title}} \ No newline at end of file diff --git a/src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.html b/src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.html index a55711f1..5a255b6f 100644 --- a/src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.html +++ b/src/app/core/components/navigation/vertical/nav-collapse/nav-vertical-collapse.component.html @@ -1,7 +1,7 @@ - - {{item.icon}} + + {{item.icon}} {{item.title}} - keyboard_arrow_right + keyboard_arrow_right
diff --git a/src/app/core/components/navigation/vertical/nav-item/nav-vertical-item.component.html b/src/app/core/components/navigation/vertical/nav-item/nav-vertical-item.component.html index 2767e8dd..443dd326 100644 --- a/src/app/core/components/navigation/vertical/nav-item/nav-vertical-item.component.html +++ b/src/app/core/components/navigation/vertical/nav-item/nav-vertical-item.component.html @@ -1,6 +1,6 @@ - - {{item.icon}} + {{item.icon}} {{item.title}} {{item.badge.title}} diff --git a/src/app/core/components/search-bar/search-bar.component.html b/src/app/core/components/search-bar/search-bar.component.html index a2ce08c3..c78502a7 100644 --- a/src/app/core/components/search-bar/search-bar.component.html +++ b/src/app/core/components/search-bar/search-bar.component.html @@ -1,20 +1,20 @@
-
- + - - - + + + - - + + - +
- {{shortcutItem.icon}} + {{shortcutItem.icon}} {{shortcutItem.title.substr(0, 1).toUpperCase()}} -

{{shortcutItem.title}}

- star +

{{shortcutItem.title}}

+ star
-
- + +

No shortcuts yet!

-
-
+ + - - + +
- {{navigationItem.icon}} + {{navigationItem.icon}} {{navigationItem.title.substr(0, 1).toUpperCase()}} -

{{navigationItem.title}}

- star +

{{navigationItem.title}}

+ star
-
-
-
+ + +
diff --git a/src/app/core/components/theme-options/theme-options.component.html b/src/app/core/components/theme-options/theme-options.component.html index e49e995b..9cc7b003 100644 --- a/src/app/core/components/theme-options/theme-options.component.html +++ b/src/app/core/components/theme-options/theme-options.component.html @@ -1,50 +1,50 @@ -
-
+
-

Navigation:

- - Top - Left - Right - None - + + Top + Left + Right + None +

Toolbar:

- - Below - Above - None - + + Below + Above + None +

Footer:

- - Below - Above - None - + + Below + Above + None +

Layout Mode:

- - Boxed - Fullwidth - + + Boxed + Fullwidth + - +

Colors:

@@ -69,29 +69,29 @@
- +

Router Animation:

- - + + None - - + + Slide up - - + + Slide down - - + + Slide right - - + + Slide left - - + + Fade in - - + +
diff --git a/src/app/core/components/theme-options/theme-options.component.scss b/src/app/core/components/theme-options/theme-options.component.scss index f01c54f4..bc116a3c 100644 --- a/src/app/core/components/theme-options/theme-options.component.scss +++ b/src/app/core/components/theme-options/theme-options.component.scss @@ -14,6 +14,7 @@ display: block; right: 0; top: 160px; + z-index: 998; &.bar-closed .theme-options-panel { display: none; @@ -48,7 +49,7 @@ color: rgba(0, 0, 0, 0.54); } - .mat-divider{ + .mat-divider { display: block !important; width: 100%; margin: 24px 0 16px 0; @@ -102,7 +103,7 @@ opacity: .75; z-index: 998; - md-icon { + mat-icon { animation: rotating 3s linear infinite; } diff --git a/src/app/core/directives/fuse-if-on-dom/fuse-if-on-dom.directive.ts b/src/app/core/directives/fuse-if-on-dom/fuse-if-on-dom.directive.ts index b7042968..403bce13 100644 --- a/src/app/core/directives/fuse-if-on-dom/fuse-if-on-dom.directive.ts +++ b/src/app/core/directives/fuse-if-on-dom/fuse-if-on-dom.directive.ts @@ -21,7 +21,7 @@ export class FuseIfOnDomDirective implements AfterContentChecked { setTimeout(() => { this.viewContainer.createEmbeddedView(this.templateRef); - }, 350); + }, 300); this.isCreated = true; } else if ( this.isCreated && !document.body.contains(this.element.nativeElement) ) diff --git a/src/app/core/directives/mat-sidenav-helper/mat-sidenav-helper.directive.ts b/src/app/core/directives/mat-sidenav-helper/mat-sidenav-helper.directive.ts new file mode 100644 index 00000000..55161597 --- /dev/null +++ b/src/app/core/directives/mat-sidenav-helper/mat-sidenav-helper.directive.ts @@ -0,0 +1,99 @@ +import { Directive, Input, OnInit, HostListener, OnDestroy, HostBinding } from '@angular/core'; +import { MatSidenav } from '@angular/material'; +import { FuseMatSidenavHelperService } from 'app/core/directives/mat-sidenav-helper/mat-sidenav-helper.service'; +import { FuseMatchMedia } from '../../services/match-media.service'; +import { ObservableMedia } from '@angular/flex-layout'; +import { Subscription } from 'rxjs/Subscription'; + +@Directive({ + selector: '[fuseMatSidenavHelper]' +}) +export class FuseMatSidenavHelperDirective implements OnInit, OnDestroy +{ + matchMediaSubscription: Subscription; + + @HostBinding('class.mat-is-locked-open') isLockedOpen = true; + @HostBinding('class.mat-stop-transition') stopTransition = true; + + @Input('fuseMatSidenavHelper') id: string; + @Input('mat-is-locked-open') matIsLockedOpenBreakpoint: string; + + constructor( + private fuseMatSidenavService: FuseMatSidenavHelperService, + private fuseMatchMedia: FuseMatchMedia, + private observableMedia: ObservableMedia, + private matSidenav: MatSidenav + ) + { + } + + ngOnInit() + { + this.fuseMatSidenavService.setSidenav(this.id, this.matSidenav); + + if ( this.observableMedia.isActive(this.matIsLockedOpenBreakpoint) ) + { + setTimeout(() => { + this.isLockedOpen = true; + this.matSidenav.mode = 'side'; + this.matSidenav.open(); + }); + this.stopTransition = false; + } + else + { + setTimeout(() => { + this.isLockedOpen = false; + this.matSidenav.mode = 'over'; + this.matSidenav.close(); + }); + + setTimeout(() => { + this.stopTransition = false; + }, 3000); + } + + this.matchMediaSubscription = this.fuseMatchMedia.onMediaChange.subscribe(() => { + if ( this.observableMedia.isActive(this.matIsLockedOpenBreakpoint) ) + { + setTimeout(() => { + this.isLockedOpen = true; + this.matSidenav.mode = 'side'; + this.matSidenav.open(); + }); + } + else + { + setTimeout(() => { + this.isLockedOpen = false; + this.matSidenav.mode = 'over'; + this.matSidenav.close(); + }); + } + }); + + } + + ngOnDestroy() + { + this.matchMediaSubscription.unsubscribe(); + } +} + +@Directive({ + selector: '[fuseMatSidenavToggler]' +}) +export class FuseMatSidenavTogglerDirective +{ + @Input('fuseMatSidenavToggler') id; + + constructor(private fuseMatSidenavService: FuseMatSidenavHelperService) + { + } + + @HostListener('click') + onClick() + { + this.fuseMatSidenavService.getSidenav(this.id).toggle(); + } +} diff --git a/src/app/core/directives/md-sidenav-helper/md-sidenav-helper.service.ts b/src/app/core/directives/mat-sidenav-helper/mat-sidenav-helper.service.ts similarity index 70% rename from src/app/core/directives/md-sidenav-helper/md-sidenav-helper.service.ts rename to src/app/core/directives/mat-sidenav-helper/mat-sidenav-helper.service.ts index d928f46e..748d9480 100644 --- a/src/app/core/directives/md-sidenav-helper/md-sidenav-helper.service.ts +++ b/src/app/core/directives/mat-sidenav-helper/mat-sidenav-helper.service.ts @@ -1,10 +1,10 @@ import { Injectable } from '@angular/core'; -import { MdSidenav } from '@angular/material'; +import { MatSidenav } from '@angular/material'; @Injectable() -export class FuseMdSidenavHelperService +export class FuseMatSidenavHelperService { - sidenavInstances: MdSidenav[]; + sidenavInstances: MatSidenav[]; constructor() { diff --git a/src/app/core/directives/md-sidenav-helper/md-sidenav-helper.directive.ts b/src/app/core/directives/md-sidenav-helper/md-sidenav-helper.directive.ts deleted file mode 100644 index f0ad7ab4..00000000 --- a/src/app/core/directives/md-sidenav-helper/md-sidenav-helper.directive.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { Directive, Input, OnInit, HostListener, OnDestroy, HostBinding } from '@angular/core'; -import { MdSidenav } from '@angular/material'; -import { FuseMdSidenavHelperService } from 'app/core/directives/md-sidenav-helper/md-sidenav-helper.service'; -import { FuseMatchMedia } from '../../services/match-media.service'; -import { ObservableMedia } from '@angular/flex-layout'; -import { Subscription } from 'rxjs/Subscription'; - -@Directive({ - selector: '[fuseMdSidenavHelper]' -}) -export class FuseMdSidenavHelperDirective implements OnInit, OnDestroy -{ - matchMediaSubscription: Subscription; - - @HostBinding('class.md-is-locked-open') isLockedOpen = true; - @HostBinding('class.md-stop-transition') stopTransition = true; - - @Input('fuseMdSidenavHelper') id: string; - @Input('md-is-locked-open') mdIsLockedOpenBreakpoint: string; - - constructor( - private fuseMdSidenavService: FuseMdSidenavHelperService, - private fuseMatchMedia: FuseMatchMedia, - private observableMedia: ObservableMedia, - private mdSidenav: MdSidenav - ) - { - } - - ngOnInit() - { - this.fuseMdSidenavService.setSidenav(this.id, this.mdSidenav); - - if ( this.observableMedia.isActive(this.mdIsLockedOpenBreakpoint) ) - { - setTimeout(() => { - this.isLockedOpen = true; - this.mdSidenav.mode = 'side'; - this.mdSidenav.open(); - }); - this.stopTransition = false; - } - else - { - setTimeout(() => { - this.isLockedOpen = false; - this.mdSidenav.mode = 'over'; - this.mdSidenav.close(); - }); - - setTimeout(() => { - this.stopTransition = false; - }, 3000); - } - - this.matchMediaSubscription = this.fuseMatchMedia.onMediaChange.subscribe(() => { - if ( this.observableMedia.isActive(this.mdIsLockedOpenBreakpoint) ) - { - setTimeout(() => { - this.isLockedOpen = true; - this.mdSidenav.mode = 'side'; - this.mdSidenav.open(); - }); - } - else - { - setTimeout(() => { - this.isLockedOpen = false; - this.mdSidenav.mode = 'over'; - this.mdSidenav.close(); - }); - } - }); - - } - - ngOnDestroy() - { - this.matchMediaSubscription.unsubscribe(); - } -} - -@Directive({ - selector: '[fuseMdSidenavToggler]' -}) -export class FuseMdSidenavTogglerDirective -{ - @Input('fuseMdSidenavToggler') id; - - constructor(private fuseMdSidenavService: FuseMdSidenavHelperService) - { - } - - @HostListener('click') - onClick() - { - this.fuseMdSidenavService.getSidenav(this.id).toggle(); - } -} diff --git a/src/app/core/modules/material.module.ts b/src/app/core/modules/material.module.ts index f4a3d895..36d357c6 100644 --- a/src/app/core/modules/material.module.ts +++ b/src/app/core/modules/material.module.ts @@ -1,106 +1,108 @@ import { NgModule } from '@angular/core'; import { - MdAutocompleteModule, - MdButtonModule, - MdButtonToggleModule, - MdCheckboxModule, - MdToolbarModule, - MdTooltipModule, - MdCardModule, - MdChipsModule, - MdDatepickerModule, - MdDialogModule, - MdExpansionModule, - MdGridListModule, - MdIconModule, - MdInputModule, - MdListModule, - MdMenuModule, - MdNativeDateModule, - MdPaginatorModule, - MdProgressBarModule, - MdProgressSpinnerModule, - MdRadioModule, - MdRippleModule, - MdSelectModule, - MdSidenavModule, - MdSliderModule, - MdSlideToggleModule, - MdSnackBarModule, - MdStepperModule, - MdSortModule, - MdTableModule, - MdTabsModule + MatAutocompleteModule, + MatButtonModule, + MatButtonToggleModule, + MatCheckboxModule, + MatToolbarModule, + MatTooltipModule, + MatCardModule, + MatChipsModule, + MatDatepickerModule, + MatDialogModule, + MatExpansionModule, + MatFormFieldModule, + MatGridListModule, + MatIconModule, + MatInputModule, + MatListModule, + MatMenuModule, + MatNativeDateModule, + MatPaginatorModule, + MatProgressBarModule, + MatProgressSpinnerModule, + MatRadioModule, + MatRippleModule, + MatSelectModule, + MatSidenavModule, + MatSliderModule, + MatSlideToggleModule, + MatSnackBarModule, + MatSortModule, + MatTableModule, + MatTabsModule, + MatStepperModule } from '@angular/material'; import { CdkTableModule } from '@angular/cdk/table'; @NgModule({ imports: [ - MdAutocompleteModule, - MdButtonModule, - MdButtonToggleModule, - MdCardModule, - MdCheckboxModule, - MdChipsModule, - MdDatepickerModule, - MdDialogModule, - MdExpansionModule, - MdGridListModule, - MdIconModule, - MdInputModule, - MdListModule, - MdMenuModule, - MdNativeDateModule, - MdPaginatorModule, - MdProgressBarModule, - MdProgressSpinnerModule, - MdRadioModule, - MdRippleModule, - MdSelectModule, - MdSidenavModule, - MdSliderModule, - MdSlideToggleModule, - MdSnackBarModule, - MdStepperModule, - MdSortModule, - MdTableModule, - MdTabsModule, - MdToolbarModule, - MdTooltipModule, + MatAutocompleteModule, + MatButtonModule, + MatButtonToggleModule, + MatCardModule, + MatCheckboxModule, + MatChipsModule, + MatDatepickerModule, + MatDialogModule, + MatExpansionModule, + MatFormFieldModule, + MatGridListModule, + MatIconModule, + MatInputModule, + MatListModule, + MatMenuModule, + MatNativeDateModule, + MatPaginatorModule, + MatProgressBarModule, + MatProgressSpinnerModule, + MatRadioModule, + MatRippleModule, + MatSelectModule, + MatSidenavModule, + MatSliderModule, + MatSlideToggleModule, + MatSnackBarModule, + MatStepperModule, + MatSortModule, + MatTableModule, + MatTabsModule, + MatToolbarModule, + MatTooltipModule, CdkTableModule ], exports: [ - MdAutocompleteModule, - MdButtonModule, - MdButtonToggleModule, - MdCardModule, - MdCheckboxModule, - MdChipsModule, - MdDatepickerModule, - MdDialogModule, - MdExpansionModule, - MdGridListModule, - MdIconModule, - MdInputModule, - MdListModule, - MdMenuModule, - MdNativeDateModule, - MdPaginatorModule, - MdProgressBarModule, - MdProgressSpinnerModule, - MdRadioModule, - MdRippleModule, - MdSelectModule, - MdSidenavModule, - MdSliderModule, - MdSlideToggleModule, - MdSnackBarModule, - MdStepperModule, - MdSortModule, - MdTableModule, - MdTabsModule, - MdToolbarModule, - MdTooltipModule, + MatAutocompleteModule, + MatButtonModule, + MatButtonToggleModule, + MatCardModule, + MatCheckboxModule, + MatChipsModule, + MatDatepickerModule, + MatDialogModule, + MatExpansionModule, + MatGridListModule, + MatIconModule, + MatInputModule, + MatListModule, + MatMenuModule, + MatNativeDateModule, + MatPaginatorModule, + MatProgressBarModule, + MatProgressSpinnerModule, + MatRadioModule, + MatRippleModule, + MatSelectModule, + MatSidenavModule, + MatSliderModule, + MatSlideToggleModule, + MatSnackBarModule, + MatStepperModule, + MatSortModule, + MatTableModule, + MatTabsModule, + MatToolbarModule, + MatTooltipModule, CdkTableModule ] }) diff --git a/src/app/core/modules/shared.module.ts b/src/app/core/modules/shared.module.ts index 472dbfbe..fe2787f2 100644 --- a/src/app/core/modules/shared.module.ts +++ b/src/app/core/modules/shared.module.ts @@ -8,25 +8,24 @@ import { ColorPickerModule } from 'ngx-color-picker'; import { NgxDnDModule } from '@swimlane/ngx-dnd'; import { NgxDatatableModule } from '@swimlane/ngx-datatable'; -import { FuseMdSidenavHelperDirective, FuseMdSidenavTogglerDirective } from '../directives/md-sidenav-helper/md-sidenav-helper.directive'; +import { FuseMatSidenavHelperDirective, FuseMatSidenavTogglerDirective } from '../directives/mat-sidenav-helper/mat-sidenav-helper.directive'; import { FusePipesModule } from '../pipes/pipes.module'; import { FuseConfirmDialogComponent } from '../components/confirm-dialog/confirm-dialog.component'; import { FuseCountdownComponent } from '../components/countdown/countdown.component'; import { FuseMatchMedia } from '../services/match-media.service'; import { FuseNavbarVerticalService } from '../../main/navbar/vertical/navbar-vertical.service'; -import { FuseMdSidenavHelperService } from '../directives/md-sidenav-helper/md-sidenav-helper.service'; +import { FuseMatSidenavHelperService } from '../directives/mat-sidenav-helper/mat-sidenav-helper.service'; import { FuseHljsComponent } from '../components/hljs/hljs.component'; import { FusePerfectScrollbarDirective } from '../directives/fuse-perfect-scrollbar/fuse-perfect-scrollbar.directive'; import { FuseIfOnDomDirective } from '../directives/fuse-if-on-dom/fuse-if-on-dom.directive'; import { FuseMaterialColorPickerComponent } from '../components/material-color-picker/material-color-picker.component'; -import { Md2Module } from 'md2'; import { CookieService } from 'ngx-cookie-service'; import { MarkdownModule } from 'angular2-markdown'; @NgModule({ declarations : [ - FuseMdSidenavHelperDirective, - FuseMdSidenavTogglerDirective, + FuseMatSidenavHelperDirective, + FuseMatSidenavTogglerDirective, FuseConfirmDialogComponent, FuseCountdownComponent, FuseHljsComponent, @@ -44,7 +43,6 @@ import { MarkdownModule } from 'angular2-markdown'; ColorPickerModule, NgxDnDModule, NgxDatatableModule, - Md2Module, MarkdownModule ], exports : [ @@ -52,8 +50,8 @@ import { MarkdownModule } from 'angular2-markdown'; MaterialModule, CommonModule, FormsModule, - FuseMdSidenavHelperDirective, - FuseMdSidenavTogglerDirective, + FuseMatSidenavHelperDirective, + FuseMatSidenavTogglerDirective, FusePipesModule, FuseCountdownComponent, FuseHljsComponent, @@ -64,7 +62,6 @@ import { MarkdownModule } from 'angular2-markdown'; NgxDatatableModule, FuseIfOnDomDirective, FuseMaterialColorPickerComponent, - Md2Module, MarkdownModule ], entryComponents: [ @@ -74,7 +71,7 @@ import { MarkdownModule } from 'angular2-markdown'; CookieService, FuseMatchMedia, FuseNavbarVerticalService, - FuseMdSidenavHelperService + FuseMatSidenavHelperService ] }) diff --git a/src/app/core/scss/partials/_angular-material-fix.scss b/src/app/core/scss/partials/_angular-material-fix.scss index 168656a3..45cc656e 100644 --- a/src/app/core/scss/partials/_angular-material-fix.scss +++ b/src/app/core/scss/partials/_angular-material-fix.scss @@ -7,11 +7,11 @@ } // Fix: "Sidenav opening with animations for the first time" -md-sidenav-container { +mat-sidenav-container { - md-sidenav { + mat-sidenav { - &[md-is-locked-open].md-stop-transition { + &[mat-is-locked-open].mat-stop-transition { transition: none !important; transform: translate3d(0, 0, 0) !important; opacity: 0; diff --git a/src/app/core/scss/partials/_colors.scss b/src/app/core/scss/partials/_colors.scss index 7d61345f..327e0c4f 100644 --- a/src/app/core/scss/partials/_colors.scss +++ b/src/app/core/scss/partials/_colors.scss @@ -164,7 +164,7 @@ $matColorHues: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, A100, A200, A400 background-color: $color !important; } - .md-#{$colorName}#{$hue}-bg { + .mat-#{$colorName}#{$hue}-bg { background-color: $color !important; color: $contrastColor !important; diff --git a/src/app/core/scss/partials/_global.scss b/src/app/core/scss/partials/_global.scss index dfdf4f60..f7b93621 100644 --- a/src/app/core/scss/partials/_global.scss +++ b/src/app/core/scss/partials/_global.scss @@ -1,6 +1,6 @@ body { - > md-sidenav-container { + > mat-sidenav-container { height: 100%; } } diff --git a/src/app/core/scss/partials/_icons.scss b/src/app/core/scss/partials/_icons.scss index 44f18524..43281c59 100644 --- a/src/app/core/scss/partials/_icons.scss +++ b/src/app/core/scss/partials/_icons.scss @@ -1,5 +1,5 @@ i, -md-icon { +mat-icon { color: rgba(0, 0, 0, 0.54); font-size: 24px; width: 24px; diff --git a/src/app/core/scss/partials/_material.scss b/src/app/core/scss/partials/_material.scss index bb91fdc9..3232602b 100644 --- a/src/app/core/scss/partials/_material.scss +++ b/src/app/core/scss/partials/_material.scss @@ -46,14 +46,14 @@ margin-top: 0; margin-bottom: 0; } - md-icon.status { + mat-icon.status { position: absolute; top: 28px; left: 28px; } } -md-icon.status { +mat-icon.status { border-radius: 50%; &.online { @@ -116,7 +116,7 @@ md-icon.status { max-height: 48px; height: 48px; - md-icon { + mat-icon { margin: 0 16px 0 0; } @@ -142,7 +142,7 @@ md-icon.status { } } - md-divider { + mat-divider { margin: 8px 0; } } @@ -234,7 +234,7 @@ md-icon.status { } } - md-divider { + mat-divider { margin: 16px 32px; } diff --git a/src/app/core/scss/partials/_page-layouts.scss b/src/app/core/scss/partials/_page-layouts.scss index 51595b0a..48eab98a 100644 --- a/src/app/core/scss/partials/_page-layouts.scss +++ b/src/app/core/scss/partials/_page-layouts.scss @@ -112,12 +112,12 @@ $top-bg-image: url('assets/images/backgrounds/header-bg.png'); // Single scroll &.single-scroll { - > md-sidenav-container { + > mat-sidenav-container { flex: 1 0 auto; } } - > md-sidenav-container { + > mat-sidenav-container { display: flex; flex: 1; background: none; @@ -136,7 +136,7 @@ $top-bg-image: url('assets/images/backgrounds/header-bg.png'); overflow-y: hidden; @include mat-elevation(7); - &.md-is-locked-open { + &.mat-is-locked-open { background: none; box-shadow: none; } @@ -216,11 +216,11 @@ $top-bg-image: url('assets/images/backgrounds/header-bg.png'); &.left-sidenav { // Sidenav - > md-sidenav-container { + > mat-sidenav-container { .sidenav { - &.md-is-locked-open { + &.mat-is-locked-open { ~ .mat-sidenav-content, ~ .mat-drawer-content { @@ -238,12 +238,12 @@ $top-bg-image: url('assets/images/backgrounds/header-bg.png'); &.right-sidenav { // Sidenav - > md-sidenav-container { + > mat-sidenav-container { .sidenav { order: 999; - &.md-is-locked-open { + &.mat-is-locked-open { ~ .mat-sidenav-content, ~ .mat-drawer-content { @@ -295,7 +295,7 @@ $top-bg-image: url('assets/images/backgrounds/header-bg.png'); // Single scroll &.single-scroll { - > md-sidenav-container { + > mat-sidenav-container { flex: 1 0 auto; > .mat-sidenav-content, @@ -309,7 +309,7 @@ $top-bg-image: url('assets/images/backgrounds/header-bg.png'); // Inner Sidenav &.inner-sidenav { - > md-sidenav-container { + > mat-sidenav-container { flex: 1; .sidenav { @@ -338,7 +338,7 @@ $top-bg-image: url('assets/images/backgrounds/header-bg.png'); } } - > md-sidenav-container { + > mat-sidenav-container { display: flex; flex-direction: column; //flex-direction: row; @@ -354,7 +354,7 @@ $top-bg-image: url('assets/images/backgrounds/header-bg.png'); z-index: 51; @include mat-elevation(7); - &.md-is-locked-open { + &.mat-is-locked-open { width: 220px; min-width: 220px; max-width: 220px; @@ -440,7 +440,7 @@ $top-bg-image: url('assets/images/backgrounds/header-bg.png'); &.left-sidenav, &.right-sidenav { - > md-sidenav-container { + > mat-sidenav-container { flex: 1 0 auto; } } @@ -458,7 +458,7 @@ $top-bg-image: url('assets/images/backgrounds/header-bg.png'); &.left-sidenav, &.right-sidenav { - > md-sidenav-container { + > mat-sidenav-container { flex: 1 0 auto !important; > .mat-sidenav-content, @@ -483,7 +483,7 @@ $top-bg-image: url('assets/images/backgrounds/header-bg.png'); &.left-sidenav, &.right-sidenav { - > md-sidenav-container { + > mat-sidenav-container { > .mat-sidenav-content, > .mat-drawer-content { diff --git a/src/app/core/scss/partials/_reset.scss b/src/app/core/scss/partials/_reset.scss index 1c42a8ac..3b5ea1fa 100644 --- a/src/app/core/scss/partials/_reset.scss +++ b/src/app/core/scss/partials/_reset.scss @@ -28,7 +28,7 @@ html, body { } // Reset non angular-material input's default browser/os styles -*:not(md-input-container) { +*:not(mat-input-container) { > input { border: none; @@ -55,7 +55,7 @@ html, body { } } -*:not(md-input-container) { +*:not(mat-input-container) { > input[type="button"], > button, diff --git a/src/app/core/services/config.service.ts b/src/app/core/services/config.service.ts index 49c9fe4d..2d2998f0 100644 --- a/src/app/core/services/config.service.ts +++ b/src/app/core/services/config.service.ts @@ -28,9 +28,9 @@ export class FuseConfigService mode : 'fullwidth' // 'boxed', 'fullwidth' }, colorClasses : { - toolbar: 'md-white-500-bg', - navbar : 'md-fuse-dark-500-bg', - footer : 'md-fuse-dark-700-bg' + toolbar: 'mat-white-500-bg', + navbar : 'mat-fuse-dark-500-bg', + footer : 'mat-fuse-dark-700-bg' }, customScrollbars: true, routerAnimation : 'fadeIn' // fadeIn, slideUp, slideDown, slideRight, slideLeft diff --git a/src/app/fuse-fake-db/projects-dashboard.ts b/src/app/fuse-fake-db/projects-dashboard.ts index 80aa31c9..1e520440 100644 --- a/src/app/fuse-fake-db/projects-dashboard.ts +++ b/src/app/fuse-fake-db/projects-dashboard.ts @@ -1622,7 +1622,7 @@ export class ProjectsDashboardDb [ { 'value' : 'Wireframing', - 'classes': 'md-primary-bg', + 'classes': 'mat-primary-bg', 'icon' : '' }, { @@ -1654,7 +1654,7 @@ export class ProjectsDashboardDb [ { 'value' : 'Design', - 'classes': 'md-green-bg', + 'classes': 'mat-green-bg', 'icon' : '' }, { @@ -1686,7 +1686,7 @@ export class ProjectsDashboardDb [ { 'value' : 'Coding', - 'classes': 'md-red-bg', + 'classes': 'mat-red-bg', 'icon' : '' }, { @@ -1718,7 +1718,7 @@ export class ProjectsDashboardDb [ { 'value' : 'Marketing', - 'classes': 'md-accent-bg', + 'classes': 'mat-accent-bg', 'icon' : '' }, { @@ -1750,7 +1750,7 @@ export class ProjectsDashboardDb [ { 'value' : 'Extra', - 'classes': 'md-orange-bg', + 'classes': 'mat-orange-bg', 'icon' : '' }, { diff --git a/src/app/fuse-fake-db/scrumboard.ts b/src/app/fuse-fake-db/scrumboard.ts index aac7d95b..012e2fb9 100644 --- a/src/app/fuse-fake-db/scrumboard.ts +++ b/src/app/fuse-fake-db/scrumboard.ts @@ -565,22 +565,22 @@ export class ScrumboardFakeDb { 'id' : '26022e4129ad3a5sc28b36cd', 'name' : 'High Priority', - 'color': 'md-red-500-bg' + 'color': 'mat-red-500-bg' }, { 'id' : '56027e4119ad3a5dc28b36cd', 'name' : 'Design', - 'color': 'md-orange-400-bg' + 'color': 'mat-orange-400-bg' }, { 'id' : '5640635e19ad3a5dc21416b2', 'name' : 'App', - 'color': 'md-blue-600-bg' + 'color': 'mat-blue-600-bg' }, { 'id' : '6540635g19ad3s5dc31412b2', 'name' : 'Feature', - 'color': 'md-green-400-bg' + 'color': 'mat-green-400-bg' } ] }, @@ -769,17 +769,17 @@ export class ScrumboardFakeDb { 'id' : '56027e4119ad3a5dc28b36cd', 'name' : 'Design', - 'color': 'md-red-500-bg' + 'color': 'mat-red-500-bg' }, { 'id' : '5640635e19ad3a5dc21416b2', 'name' : 'App', - 'color': 'md-blue-500-bg' + 'color': 'mat-blue-500-bg' }, { 'id' : '6540635g19ad3s5dc31412b2', 'name' : 'Feature', - 'color': 'md-green-400-bg' + 'color': 'mat-green-400-bg' } ] } diff --git a/src/app/main/content/apps/calendar/calendar.component.html b/src/app/main/content/apps/calendar/calendar.component.html index 0e04352d..ae61d8de 100644 --- a/src/app/main/content/apps/calendar/calendar.component.html +++ b/src/app/main/content/apps/calendar/calendar.component.html @@ -9,7 +9,7 @@ @@ -53,35 +53,35 @@
-
{{ viewDate | calendarDate:(view + 'ViewTitle'):'en' }}
-
-
diff --git a/src/app/main/content/apps/calendar/calendar.component.scss b/src/app/main/content/apps/calendar/calendar.component.scss index 19500ca3..e59de032 100644 --- a/src/app/main/content/apps/calendar/calendar.component.scss +++ b/src/app/main/content/apps/calendar/calendar.component.scss @@ -303,7 +303,7 @@ z-index: 10; } - md-icon { + mat-icon { color: #FFFFFF; } } diff --git a/src/app/main/content/apps/calendar/calendar.component.ts b/src/app/main/content/apps/calendar/calendar.component.ts index 8c424350..7d136ab8 100644 --- a/src/app/main/content/apps/calendar/calendar.component.ts +++ b/src/app/main/content/apps/calendar/calendar.component.ts @@ -1,7 +1,7 @@ import { startOfDay, endOfDay, subDays, addDays, endOfMonth, isSameDay, isSameMonth, addHours } from 'date-fns'; import { Component, OnInit, ViewEncapsulation } from '@angular/core'; import { Subject } from 'rxjs/Subject'; -import { MdDialog, MdDialogRef } from '@angular/material'; +import { MatDialog, MatDialogRef } from '@angular/material'; import { FuseCalendarEventFormDialogComponent } from './event-form/event-form.component'; import { FormGroup } from '@angular/forms'; import { CalendarEventModel } from './event.model'; @@ -38,12 +38,12 @@ export class FuseCalendarComponent implements OnInit dialogRef: any; - confirmDialogRef: MdDialogRef; + confirmDialogRef: MatDialogRef; selectedDay: any; constructor( - public dialog: MdDialog, + public dialog: MatDialog, public calendarService: CalendarService ) { diff --git a/src/app/main/content/apps/calendar/event-form/event-form.component.html b/src/app/main/content/apps/calendar/event-form/event-form.component.html index 2bdc588a..4fd38076 100644 --- a/src/app/main/content/apps/calendar/event-form/event-form.component.html +++ b/src/app/main/content/apps/calendar/event-form/event-form.component.html @@ -1,40 +1,40 @@
- +
{{dialogTitle}} -
-
+ -
+
- - + - +
- All Day - +
- - + - - - + + - +
- - - - - + + + + + - - - + + +
- - - - - + + + + + - - - + + +
- - + - + - + - - +
-
+
diff --git a/src/app/main/content/apps/calendar/event-form/event-form.component.ts b/src/app/main/content/apps/calendar/event-form/event-form.component.ts index af0add84..9dfc5240 100644 --- a/src/app/main/content/apps/calendar/event-form/event-form.component.ts +++ b/src/app/main/content/apps/calendar/event-form/event-form.component.ts @@ -1,5 +1,5 @@ import { Component, Inject, OnInit, ViewEncapsulation } from '@angular/core'; -import { MD_DIALOG_DATA, MdDialogRef } from '@angular/material'; +import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material'; import { CalendarEvent } from 'angular-calendar'; import { FormBuilder, FormControl, FormGroup } from '@angular/forms'; import { CalendarEventModel } from '../event.model'; @@ -22,8 +22,8 @@ export class FuseCalendarEventFormDialogComponent implements OnInit presetColors = MatColors.presets; constructor( - public dialogRef: MdDialogRef, - @Inject(MD_DIALOG_DATA) private data: any, + public dialogRef: MatDialogRef, + @Inject(MAT_DIALOG_DATA) private data: any, private formBuilder: FormBuilder ) { diff --git a/src/app/main/content/apps/chat/chat-start/chat-start.component.html b/src/app/main/content/apps/chat/chat-start/chat-start.component.html index 7d7a5e46..77c6eb9e 100644 --- a/src/app/main/content/apps/chat/chat-start/chat-start.component.html +++ b/src/app/main/content/apps/chat/chat-start/chat-start.component.html @@ -3,7 +3,7 @@ @@ -11,7 +11,7 @@ Select contact to start the chat!.. - diff --git a/src/app/main/content/apps/chat/chat-start/chat-start.component.scss b/src/app/main/content/apps/chat/chat-start/chat-start.component.scss index 7934fd4b..5c1f5133 100644 --- a/src/app/main/content/apps/chat/chat-start/chat-start.component.scss +++ b/src/app/main/content/apps/chat/chat-start/chat-start.component.scss @@ -19,7 +19,7 @@ line-height: 160px; } - md-icon { + mat-icon { color: mat-color($accent); } } diff --git a/src/app/main/content/apps/chat/chat-view/chat-view.component.html b/src/app/main/content/apps/chat/chat-view/chat-view.component.html index 3e818c87..7b49732a 100644 --- a/src/app/main/content/apps/chat/chat-view/chat-view.component.html +++ b/src/app/main/content/apps/chat/chat-view/chat-view.component.html @@ -2,23 +2,23 @@
- +
-
- chat + chat
+ fuseMatSidenavToggler="chat-right-sidenav" (click)="selectContact()">
@@ -26,9 +26,9 @@ class="avatar" alt="{{contact.name}}"/> - - + +
@@ -40,20 +40,20 @@
- - - - +
- + @@ -98,13 +98,13 @@ fxLayout="row" fxLayoutAlign="start center"> - - - + - diff --git a/src/app/main/content/apps/chat/chat-view/chat-view.component.scss b/src/app/main/content/apps/chat/chat-view/chat-view.component.scss index bb255c29..15151e61 100644 --- a/src/app/main/content/apps/chat/chat-view/chat-view.component.scss +++ b/src/app/main/content/apps/chat/chat-view/chat-view.component.scss @@ -107,7 +107,7 @@ .reply-form { - md-input-container { + mat-form-field { margin: 0; padding-right: 16px; @@ -120,12 +120,12 @@ } } - .md-errors-spacer { + .mat-errors-spacer { display: none; } } - .md-button { + .mat-button { margin: 0; } } diff --git a/src/app/main/content/apps/chat/chat.component.html b/src/app/main/content/apps/chat/chat.component.html index b97a448d..c3922d6b 100644 --- a/src/app/main/content/apps/chat/chat.component.html +++ b/src/app/main/content/apps/chat/chat.component.html @@ -1,7 +1,7 @@
-
+
@@ -10,13 +10,13 @@
- + - + - + @@ -26,13 +26,13 @@ - + - + - +
diff --git a/src/app/main/content/apps/chat/chat.component.scss b/src/app/main/content/apps/chat/chat.component.scss index 2d483473..f4234a3f 100644 --- a/src/app/main/content/apps/chat/chat.component.scss +++ b/src/app/main/content/apps/chat/chat.component.scss @@ -37,7 +37,7 @@ max-width: 100%; } - md-sidenav { + mat-sidenav { display: flex; flex-direction: column; width: 400px; diff --git a/src/app/main/content/apps/chat/sidenavs/left/chats/chats.component.html b/src/app/main/content/apps/chat/sidenavs/left/chats/chats.component.html index c788af9e..af3a7af4 100644 --- a/src/app/main/content/apps/chat/sidenavs/left/chats/chats.component.html +++ b/src/app/main/content/apps/chat/sidenavs/left/chats/chats.component.html @@ -1,7 +1,7 @@
- +
@@ -12,75 +12,75 @@ {{user.name}} - + - + - - - - - +
- - - - - +
- +
- + - +
@@ -106,11 +106,11 @@
-
+
Chats
-
@@ -146,19 +146,19 @@
-
+
Contacts
-
- + {{user.name}}
{{user.name}}
-
+ - +
@@ -32,47 +32,47 @@
- +
- - - + - + - +
- + Online
-
+ - +
- + Away
-
+ - +
- + Do not disturb
-
+ - +
- + Offline
-
-
+ +
-
+
diff --git a/src/app/main/content/apps/chat/sidenavs/left/user/user.component.scss b/src/app/main/content/apps/chat/sidenavs/left/user/user.component.scss index d591906b..514d3c39 100644 --- a/src/app/main/content/apps/chat/sidenavs/left/user/user.component.scss +++ b/src/app/main/content/apps/chat/sidenavs/left/user/user.component.scss @@ -5,7 +5,7 @@ flex: 1; flex-direction: column; - md-toolbar { + mat-toolbar { background-color: mat-color($accent); color: map-get($accent, default-contrast); diff --git a/src/app/main/content/apps/chat/sidenavs/right/contact/contact.component.html b/src/app/main/content/apps/chat/sidenavs/right/contact/contact.component.html index bd3c06ec..2aadbfca 100644 --- a/src/app/main/content/apps/chat/sidenavs/right/contact/contact.component.html +++ b/src/app/main/content/apps/chat/sidenavs/right/contact/contact.component.html @@ -2,31 +2,31 @@
- +
Contact Info
-
- + {{contact.name}}
{{contact.name}}
-
+ -
+
@@ -34,14 +34,14 @@
- + - - - + - +
diff --git a/src/app/main/content/apps/chat/sidenavs/right/contact/contact.component.scss b/src/app/main/content/apps/chat/sidenavs/right/contact/contact.component.scss index d591906b..514d3c39 100644 --- a/src/app/main/content/apps/chat/sidenavs/right/contact/contact.component.scss +++ b/src/app/main/content/apps/chat/sidenavs/right/contact/contact.component.scss @@ -5,7 +5,7 @@ flex: 1; flex-direction: column; - md-toolbar { + mat-toolbar { background-color: mat-color($accent); color: map-get($accent, default-contrast); diff --git a/src/app/main/content/apps/contacts/contact-form/contact-form.component.html b/src/app/main/content/apps/contacts/contact-form/contact-form.component.html index 66ba7464..d0bb4b12 100644 --- a/src/app/main/content/apps/contacts/contact-form/contact-form.component.html +++ b/src/app/main/content/apps/contacts/contact-form/contact-form.component.html @@ -1,104 +1,104 @@
- +
{{dialogTitle}} -
- +
{{contact.name}}
-
-
+ + -
+
- account_circle - - - + account_circle + + +
- - - - + + + +
- star - - - + star + + +
- phone - - - + phone + + +
- email - - - + email + + +
- domain - - - + domain + + +
- work - - - + work + + +
- - - - - + + + + +
- home - - - + home + + +
- note - - - + note + + +
-
+
diff --git a/src/app/main/content/apps/contacts/contact-form/contact-form.component.ts b/src/app/main/content/apps/contacts/contact-form/contact-form.component.ts index 7124e272..517b3cf4 100644 --- a/src/app/main/content/apps/contacts/contact-form/contact-form.component.ts +++ b/src/app/main/content/apps/contacts/contact-form/contact-form.component.ts @@ -1,5 +1,5 @@ import { Component, Inject, OnInit, ViewEncapsulation } from '@angular/core'; -import { MD_DIALOG_DATA, MdDialogRef } from '@angular/material'; +import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material'; import { CalendarEvent } from 'angular-calendar'; import { FormBuilder, FormGroup } from '@angular/forms'; import 'rxjs/Rx'; @@ -21,8 +21,8 @@ export class FuseContactsContactFormDialogComponent implements OnInit contact: Contact; constructor( - public dialogRef: MdDialogRef, - @Inject(MD_DIALOG_DATA) private data: any, + public dialogRef: MatDialogRef, + @Inject(MAT_DIALOG_DATA) private data: any, private formBuilder: FormBuilder ) { diff --git a/src/app/main/content/apps/contacts/contact-list/contact-list.component.html b/src/app/main/content/apps/contacts/contact-list/contact-list.component.html index efc084d0..232b5629 100644 --- a/src/app/main/content/apps/contacts/contact-list/contact-list.component.html +++ b/src/app/main/content/apps/contacts/contact-list/contact-list.component.html @@ -1,106 +1,106 @@ - + - - - - - + + + + + - - + + - + - Name - + Name +

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

-
+
- Email - + Email + - + - Phone - + Phone +

{{contact.phone}}

-
+
- Job title - + Job title +

{{contact.jobTitle}}

-
+
- Company - + Company +

{{contact.company}}

-
+
- - + +
- - - - - +
-
+
- - - -
+ + + + diff --git a/src/app/main/content/apps/contacts/contact-list/contact-list.component.ts b/src/app/main/content/apps/contacts/contact-list/contact-list.component.ts index 671554a7..4a5f524d 100644 --- a/src/app/main/content/apps/contacts/contact-list/contact-list.component.ts +++ b/src/app/main/content/apps/contacts/contact-list/contact-list.component.ts @@ -2,7 +2,7 @@ import { Component, OnInit, TemplateRef, ViewChild } from '@angular/core'; import { ContactsService } from '../contacts.service'; import { Observable } from 'rxjs/Observable'; import { FuseContactsContactFormDialogComponent } from '../contact-form/contact-form.component'; -import { MdDialog, MdDialogRef } from '@angular/material'; +import { MatDialog, MatDialogRef } from '@angular/material'; import { FuseConfirmDialogComponent } from '../../../../../core/components/confirm-dialog/confirm-dialog.component'; import { FormGroup } from '@angular/forms'; import { DataSource } from '@angular/cdk/collections'; @@ -27,11 +27,11 @@ export class FuseContactsContactListComponent implements OnInit dialogRef: any; - confirmDialogRef: MdDialogRef; + confirmDialogRef: MatDialogRef; constructor( private contactsService: ContactsService, - public dialog: MdDialog + public dialog: MatDialog ) { this.contactsService.onContactsChanged.subscribe(contacts => { diff --git a/src/app/main/content/apps/contacts/contacts.component.html b/src/app/main/content/apps/contacts/contacts.component.html index 7dbf22c5..3df02bd6 100644 --- a/src/app/main/content/apps/contacts/contacts.component.html +++ b/src/app/main/content/apps/contacts/contacts.component.html @@ -1,20 +1,20 @@
-
- @@ -24,11 +24,11 @@
- - - + + +
@@ -36,25 +36,25 @@ - + - + - + - +
-
+
@@ -64,13 +64,13 @@
- +
- diff --git a/src/app/main/content/apps/contacts/contacts.component.scss b/src/app/main/content/apps/contacts/contacts.component.scss index 4662a5d2..1f364d96 100644 --- a/src/app/main/content/apps/contacts/contacts.component.scss +++ b/src/app/main/content/apps/contacts/contacts.component.scss @@ -4,6 +4,7 @@ overflow: hidden; } } + #add-contact-button { position: absolute; bottom: 12px; diff --git a/src/app/main/content/apps/contacts/contacts.component.ts b/src/app/main/content/apps/contacts/contacts.component.ts index 381bc742..e38eb903 100644 --- a/src/app/main/content/apps/contacts/contacts.component.ts +++ b/src/app/main/content/apps/contacts/contacts.component.ts @@ -3,7 +3,7 @@ import { ContactsService } from './contacts.service'; import { fuseAnimations } from '../../../../core/animations'; import { FormControl, FormGroup } from '@angular/forms'; import { FuseContactsContactFormDialogComponent } from './contact-form/contact-form.component'; -import { MdDialog } from '@angular/material'; +import { MatDialog } from '@angular/material'; @Component({ selector : 'fuse-contacts', @@ -20,7 +20,7 @@ export class FuseContactsComponent implements OnInit constructor( private contactsService: ContactsService, - public dialog: MdDialog + public dialog: MatDialog ) { this.searchInput = new FormControl(''); diff --git a/src/app/main/content/apps/contacts/selected-bar/selected-bar.component.html b/src/app/main/content/apps/contacts/selected-bar/selected-bar.component.html index 4087740d..f0e542d9 100644 --- a/src/app/main/content/apps/contacts/selected-bar/selected-bar.component.html +++ b/src/app/main/content/apps/contacts/selected-bar/selected-bar.component.html @@ -1,8 +1,8 @@
-
@@ -15,19 +15,19 @@ selected - - - - - + + + +
-
diff --git a/src/app/main/content/apps/contacts/selected-bar/selected-bar.component.ts b/src/app/main/content/apps/contacts/selected-bar/selected-bar.component.ts index f3053c66..a3ec2f28 100644 --- a/src/app/main/content/apps/contacts/selected-bar/selected-bar.component.ts +++ b/src/app/main/content/apps/contacts/selected-bar/selected-bar.component.ts @@ -1,6 +1,6 @@ import { Component, OnInit } from '@angular/core'; import { ContactsService } from '../contacts.service'; -import { MdDialog, MdDialogRef } from '@angular/material'; +import { MatDialog, MatDialogRef } from '@angular/material'; import { FuseConfirmDialogComponent } from '../../../../../core/components/confirm-dialog/confirm-dialog.component'; @Component({ @@ -13,11 +13,11 @@ export class FuseContactsSelectedBarComponent implements OnInit selectedContacts: string[]; hasSelectedContacts: boolean; isIndeterminate: boolean; - confirmDialogRef: MdDialogRef; + confirmDialogRef: MatDialogRef; constructor( private contactsService: ContactsService, - public dialog: MdDialog + public dialog: MatDialog ) { this.contactsService.onSelectedContactsChanged diff --git a/src/app/main/content/apps/contacts/sidenavs/main/main.component.html b/src/app/main/content/apps/contacts/sidenavs/main/main.component.html index 0b2af02d..7d25084c 100644 --- a/src/app/main/content/apps/contacts/sidenavs/main/main.component.html +++ b/src/app/main/content/apps/contacts/sidenavs/main/main.component.html @@ -1,6 +1,6 @@
-
+
@@ -18,19 +18,19 @@