Skip to content

Commit

Permalink
feat: support Angular Components 14
Browse files Browse the repository at this point in the history
  • Loading branch information
lekhmanrus committed Apr 8, 2022
1 parent 7641e74 commit f658d4c
Show file tree
Hide file tree
Showing 18 changed files with 4,009 additions and 3,822 deletions.
16 changes: 0 additions & 16 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,6 @@
"plugin:import/errors"
],
"rules": {
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "dossier",
"style": "kebab-case"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "dossier",
"style": "camelCase"
}
],
"@angular-eslint/component-class-suffix": [
"error",
{
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,22 @@ Compatible with Angular / CDK / Material **>= 9.x.x**. See [Versioning](#version
// ...
```
* Starting Angular Multiple Dates **>= 14.x.x** SASS `@use` rule supported:
```scss
@use '@angular/material' as mat;
@use 'ngx-multiple-dates' as ngxMultipleDates; // use library theme
@include mat.core;
// Palette
$primary: mat.define-palette(mat.$indigo-palette);
$accent: mat.define-palette(mat.$pink-palette);
$theme: mat.define-light-theme($primary, $accent); // theme
@include mat.all-component-themes($theme); // apply Angular Material styles
@include ngxMultipleDates.multiple-dates-theme($theme); // apply Angular Multiple Dates styles
// ...
```
Expand Down
1 change: 0 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@
}
}
},
"defaultProject": "ngx-multiple-dates",
"cli": {
"analytics": false
}
Expand Down
Loading

0 comments on commit f658d4c

Please sign in to comment.