diff --git a/README.md b/README.md index 90deaa02..130d9b1c 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Run `ng generate component component-name` to generate a new component. You can ## Build -Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. +Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. ## Running unit tests @@ -20,7 +20,7 @@ Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github. ## Running end-to-end tests -Run `ng e2e` to execute the end-to-end tests via a platform of your choice. +Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities. ## Further help diff --git a/angular.json b/angular.json index e27528ea..d7c557ed 100644 --- a/angular.json +++ b/angular.json @@ -60,13 +60,13 @@ "budgets": [ { "type": "initial", - "maximumWarning": "5mb", - "maximumError": "8mb" + "maximumWarning": "3mb", + "maximumError": "5mb" }, { "type": "anyComponentStyle", - "maximumWarning": "100kb", - "maximumError": "150kb" + "maximumWarning": "75kb", + "maximumError": "90kb" } ], "fileReplacements": [ diff --git a/package.json b/package.json index 590ffa12..668ee63f 100644 --- a/package.json +++ b/package.json @@ -9,21 +9,22 @@ "ng": "ng", "start": "ng serve", "build": "ng build", + "watch": "ng build --watch --configuration development", "test": "ng test", "lint": "ng lint" }, "dependencies": { - "@angular/animations": "12.1.4", - "@angular/cdk": "12.1.4", - "@angular/common": "12.1.4", - "@angular/compiler": "12.1.4", - "@angular/core": "12.1.4", - "@angular/forms": "12.1.4", - "@angular/material": "12.1.4", - "@angular/material-moment-adapter": "12.1.4", - "@angular/platform-browser": "12.1.4", - "@angular/platform-browser-dynamic": "12.1.4", - "@angular/router": "12.1.4", + "@angular/animations": "12.2.1", + "@angular/cdk": "12.2.1", + "@angular/common": "12.2.1", + "@angular/compiler": "12.2.1", + "@angular/core": "12.2.1", + "@angular/forms": "12.2.1", + "@angular/material": "12.2.1", + "@angular/material-moment-adapter": "12.2.1", + "@angular/platform-browser": "12.2.1", + "@angular/platform-browser-dynamic": "12.2.1", + "@angular/router": "12.2.1", "@fullcalendar/angular": "4.4.5-beta", "@fullcalendar/core": "4.4.2", "@fullcalendar/daygrid": "4.4.2", @@ -35,29 +36,29 @@ "@ngneat/transloco": "2.22.0", "apexcharts": "3.27.3", "crypto-js": "3.3.0", - "highlight.js": "11.1.0", + "highlight.js": "11.2.0", "lodash-es": "4.17.21", "moment": "2.29.1", "ng-apexcharts": "1.5.12", "ngx-markdown": "12.0.1", - "ngx-quill": "14.1.2", + "ngx-quill": "14.2.0", "perfect-scrollbar": "1.5.2", "quill": "1.3.7", "rrule": "2.6.8", "rxjs": "6.6.7", - "tslib": "2.3.0", + "tslib": "2.3.1", "web-animations-js": "2.3.2", "zone.js": "0.11.4" }, "devDependencies": { - "@angular-devkit/build-angular": "12.1.4", + "@angular-devkit/build-angular": "12.2.1", "@angular-eslint/builder": "12.3.1", "@angular-eslint/eslint-plugin": "12.3.1", "@angular-eslint/eslint-plugin-template": "12.3.1", "@angular-eslint/schematics": "12.3.1", "@angular-eslint/template-parser": "12.3.1", - "@angular/cli": "12.1.4", - "@angular/compiler-cli": "12.1.4", + "@angular/cli": "12.2.1", + "@angular/compiler-cli": "12.2.1", "@tailwindcss/aspect-ratio": "0.2.1", "@tailwindcss/line-clamp": "0.2.1", "@tailwindcss/typography": "0.4.1", @@ -65,16 +66,16 @@ "@types/crypto-js": "3.1.47", "@types/highlight.js": "10.1.0", "@types/jasmine": "3.8.2", - "@types/lodash": "4.14.171", + "@types/lodash": "4.14.172", "@types/lodash-es": "4.17.4", - "@types/node": "12.20.17", - "@typescript-eslint/eslint-plugin": "4.28.5", - "@typescript-eslint/parser": "4.28.5", + "@types/node": "12.20.19", + "@typescript-eslint/eslint-plugin": "4.29.1", + "@typescript-eslint/parser": "4.29.1", "autoprefixer": "10.3.1", "chroma-js": "2.1.2", - "eslint": "7.31.0", - "eslint-plugin-import": "2.23.4", - "eslint-plugin-jsdoc": "36.0.6", + "eslint": "7.32.0", + "eslint-plugin-import": "2.24.0", + "eslint-plugin-jsdoc": "36.0.7", "eslint-plugin-prefer-arrow": "1.2.3", "jasmine-core": "3.8.0", "karma": "6.3.4", diff --git a/src/@fuse/components/navigation/horizontal/components/basic/basic.component.ts b/src/@fuse/components/navigation/horizontal/components/basic/basic.component.ts index f20224ac..afa59928 100644 --- a/src/@fuse/components/navigation/horizontal/components/basic/basic.component.ts +++ b/src/@fuse/components/navigation/horizontal/components/basic/basic.component.ts @@ -10,7 +10,6 @@ import { FuseUtilsService } from '@fuse/services/utils/utils.service'; @Component({ selector : 'fuse-horizontal-navigation-basic-item', templateUrl : './basic.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseHorizontalNavigationBasicItemComponent implements OnInit, OnDestroy diff --git a/src/@fuse/components/navigation/horizontal/components/branch/branch.component.ts b/src/@fuse/components/navigation/horizontal/components/branch/branch.component.ts index 53ef2a90..f45af902 100644 --- a/src/@fuse/components/navigation/horizontal/components/branch/branch.component.ts +++ b/src/@fuse/components/navigation/horizontal/components/branch/branch.component.ts @@ -10,7 +10,6 @@ import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types @Component({ selector : 'fuse-horizontal-navigation-branch-item', templateUrl : './branch.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseHorizontalNavigationBranchItemComponent implements OnInit, OnDestroy diff --git a/src/@fuse/components/navigation/horizontal/components/divider/divider.component.ts b/src/@fuse/components/navigation/horizontal/components/divider/divider.component.ts index 6601023a..5c0ccb44 100644 --- a/src/@fuse/components/navigation/horizontal/components/divider/divider.component.ts +++ b/src/@fuse/components/navigation/horizontal/components/divider/divider.component.ts @@ -8,7 +8,6 @@ import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types @Component({ selector : 'fuse-horizontal-navigation-divider-item', templateUrl : './divider.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseHorizontalNavigationDividerItemComponent implements OnInit, OnDestroy diff --git a/src/@fuse/components/navigation/horizontal/components/spacer/spacer.component.ts b/src/@fuse/components/navigation/horizontal/components/spacer/spacer.component.ts index f43fb652..2e91d12f 100644 --- a/src/@fuse/components/navigation/horizontal/components/spacer/spacer.component.ts +++ b/src/@fuse/components/navigation/horizontal/components/spacer/spacer.component.ts @@ -8,7 +8,6 @@ import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types @Component({ selector : 'fuse-horizontal-navigation-spacer-item', templateUrl : './spacer.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseHorizontalNavigationSpacerItemComponent implements OnInit, OnDestroy diff --git a/src/@fuse/components/navigation/vertical/components/aside/aside.component.ts b/src/@fuse/components/navigation/vertical/components/aside/aside.component.ts index 2b2a25b8..29979d97 100644 --- a/src/@fuse/components/navigation/vertical/components/aside/aside.component.ts +++ b/src/@fuse/components/navigation/vertical/components/aside/aside.component.ts @@ -10,7 +10,6 @@ import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types @Component({ selector : 'fuse-vertical-navigation-aside-item', templateUrl : './aside.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseVerticalNavigationAsideItemComponent implements OnChanges, OnInit, OnDestroy diff --git a/src/@fuse/components/navigation/vertical/components/basic/basic.component.ts b/src/@fuse/components/navigation/vertical/components/basic/basic.component.ts index b3a20aa4..12d0a41b 100644 --- a/src/@fuse/components/navigation/vertical/components/basic/basic.component.ts +++ b/src/@fuse/components/navigation/vertical/components/basic/basic.component.ts @@ -10,7 +10,6 @@ import { FuseUtilsService } from '@fuse/services/utils/utils.service'; @Component({ selector : 'fuse-vertical-navigation-basic-item', templateUrl : './basic.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseVerticalNavigationBasicItemComponent implements OnInit, OnDestroy diff --git a/src/@fuse/components/navigation/vertical/components/collapsable/collapsable.component.ts b/src/@fuse/components/navigation/vertical/components/collapsable/collapsable.component.ts index 6c944fcd..5597d28e 100644 --- a/src/@fuse/components/navigation/vertical/components/collapsable/collapsable.component.ts +++ b/src/@fuse/components/navigation/vertical/components/collapsable/collapsable.component.ts @@ -11,7 +11,6 @@ import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types @Component({ selector : 'fuse-vertical-navigation-collapsable-item', templateUrl : './collapsable.component.html', - styles : [], animations : fuseAnimations, changeDetection: ChangeDetectionStrategy.OnPush }) diff --git a/src/@fuse/components/navigation/vertical/components/divider/divider.component.ts b/src/@fuse/components/navigation/vertical/components/divider/divider.component.ts index d5178ee6..570c244a 100644 --- a/src/@fuse/components/navigation/vertical/components/divider/divider.component.ts +++ b/src/@fuse/components/navigation/vertical/components/divider/divider.component.ts @@ -8,7 +8,6 @@ import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types @Component({ selector : 'fuse-vertical-navigation-divider-item', templateUrl : './divider.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseVerticalNavigationDividerItemComponent implements OnInit, OnDestroy diff --git a/src/@fuse/components/navigation/vertical/components/group/group.component.ts b/src/@fuse/components/navigation/vertical/components/group/group.component.ts index 614f5c4e..1e401c2b 100644 --- a/src/@fuse/components/navigation/vertical/components/group/group.component.ts +++ b/src/@fuse/components/navigation/vertical/components/group/group.component.ts @@ -9,7 +9,6 @@ import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types @Component({ selector : 'fuse-vertical-navigation-group-item', templateUrl : './group.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseVerticalNavigationGroupItemComponent implements OnInit, OnDestroy diff --git a/src/@fuse/components/navigation/vertical/components/spacer/spacer.component.ts b/src/@fuse/components/navigation/vertical/components/spacer/spacer.component.ts index ca927031..a598cec7 100644 --- a/src/@fuse/components/navigation/vertical/components/spacer/spacer.component.ts +++ b/src/@fuse/components/navigation/vertical/components/spacer/spacer.component.ts @@ -8,7 +8,6 @@ import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types @Component({ selector : 'fuse-vertical-navigation-spacer-item', templateUrl : './spacer.component.html', - styles : [], changeDetection: ChangeDetectionStrategy.OnPush }) export class FuseVerticalNavigationSpacerItemComponent implements OnInit, OnDestroy diff --git a/src/@fuse/fuse.module.ts b/src/@fuse/fuse.module.ts index 455f1807..35aee3b7 100644 --- a/src/@fuse/fuse.module.ts +++ b/src/@fuse/fuse.module.ts @@ -1,4 +1,5 @@ import { NgModule, Optional, SkipSelf } from '@angular/core'; +import { MATERIAL_SANITY_CHECKS } from '@angular/material/core'; import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field'; import { FuseConfirmationModule } from '@fuse/services/confirmation'; import { FuseMediaWatcherModule } from '@fuse/services/media-watcher/media-watcher.module'; @@ -15,6 +16,15 @@ import { FuseUtilsModule } from '@fuse/services/utils/utils.module'; FuseUtilsModule ], providers: [ + { + // Disable 'theme' sanity check + provide : MATERIAL_SANITY_CHECKS, + useValue: { + doctype: true, + theme : false, + version: true + } + }, { // Use the 'fill' appearance on Angular Material form fields by default provide : MAT_FORM_FIELD_DEFAULT_OPTIONS, diff --git a/src/@fuse/services/confirmation/confirmation.service.ts b/src/@fuse/services/confirmation/confirmation.service.ts index 10fe2e9a..b22ccae5 100644 --- a/src/@fuse/services/confirmation/confirmation.service.ts +++ b/src/@fuse/services/confirmation/confirmation.service.ts @@ -51,7 +51,8 @@ export class FuseConfirmationService return this._matDialog.open(FuseConfirmationDialogComponent, { autoFocus : false, disableClose: !userConfig.dismissible, - data : userConfig + data : userConfig, + panelClass : 'fuse-confirmation-dialog-panel' }); } } diff --git a/src/@fuse/services/confirmation/dialog/dialog.component.html b/src/@fuse/services/confirmation/dialog/dialog.component.html index f8de9884..1d15451d 100644 --- a/src/@fuse/services/confirmation/dialog/dialog.component.html +++ b/src/@fuse/services/confirmation/dialog/dialog.component.html @@ -1,4 +1,4 @@ -