Skip to content

Commit 1a72f69

Browse files
authored
Upgrade to ng 17 (#91)
1 parent a0d3d0f commit 1a72f69

File tree

68 files changed

+8804
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+8804
-142
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ trim_trailing_whitespace = true
1010

1111
[*.ts]
1212
quote_type = single
13+
ij_typescript_use_double_quotes = false
1314

1415
[*.md]
1516
max_line_length = off

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: yarn run build
3737

3838
- name: yarn publish to npmjs
39-
working-directory: dist/ng-mat-components
39+
working-directory: dist/ngx-mat-components
4040
run: yarn publish --access public --new-version ${{ needs.create_release.outputs.version }} --no-git-tag-version
4141
env:
4242
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_PUBLISH_TOKEN }}
@@ -46,7 +46,7 @@ jobs:
4646
with:
4747
registry-url: 'https://npm.pkg.github.com'
4848
- name: yarn publish to GitHub
49-
working-directory: dist/ng-mat-components
49+
working-directory: dist/ngx-mat-components
5050
run: yarn publish --access public --new-version ${{ needs.create_release.outputs.version }} --no-git-tag-version
5151
env:
5252
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ projects/ng-nav-frame/README.md
1414
/node_modules
1515
npm-debug.log
1616
yarn-error.log
17-
yarn.lock
1817
package-lock.json
1918
.yarn/
2019

@@ -49,4 +48,4 @@ testem.log
4948
Thumbs.db
5049
.yarnrc
5150
package-lock.json
52-
projects/ng-mat-components/README.md
51+
projects/ngx-mat-components/README.md

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18
1+
v20

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
# @fullstack-devops/ng-mat-components
1+
# @fullstack-devops/ngx-mat-components
22

3-
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/fullstack-devops/ng-mat-components/release.yml?logo=GitHub%20Actions)](#)
4-
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/fullstack-devops/ng-mat-components)](https://github.com/fullstack-devops/ng-mat-components/releases)
3+
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/fullstack-devops/ngx-mat-components/release.yml?logo=GitHub%20Actions)](#)
4+
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/fullstack-devops/ngx-mat-components)](https://github.com/fullstack-devops/ngx-mat-components/releases)
55

66
**Downloads:**
77

8-
[![GitHub release (latest by date)](https://img.shields.io/github/downloads/fullstack-devops/ng-mat-components/latest/total?style=flat&label=GitHub%20downloads%40latest&logo=GitHub)](https://github.com/fullstack-devops/ng-mat-components/pkgs/npm/ng-mat-components)
9-
[![npm](https://img.shields.io/npm/dw/@fullstack-devops/ng-mat-components?style=flat&label=npm%20downloads&logo=npm)](https://www.npmjs.com/package/@fullstack-devops/ng-mat-components)
8+
[![GitHub release (latest by date)](https://img.shields.io/github/downloads/fullstack-devops/ngx-mat-components/latest/total?style=flat&label=GitHub%20downloads%40latest&logo=GitHub)](https://github.com/fullstack-devops/ngx-mat-components/pkgs/npm/ngx-mat-components)
9+
[![npm](https://img.shields.io/npm/dw/@fullstack-devops/ngx-mat-components?style=flat&label=npm%20downloads&logo=npm)](https://www.npmjs.com/package/@fullstack-devops/ngx-mat-components)
1010

1111
**License:**
1212

13-
[![GitHub](https://img.shields.io/github/license/fullstack-devops/ng-mat-components?style=flat)](#)
13+
[![GitHub](https://img.shields.io/github/license/fullstack-devops/ngx-mat-components?style=flat)](#)
1414

1515
Components for @angular/material
1616

1717
## Installation
1818

1919
- yarn
2020
```shell
21-
yarn add @fullstack-devops/ng-mat-components
21+
yarn add @fullstack-devops/ngx-mat-components
2222
```
2323
- npm
2424
```shell
25-
npm install @fullstack-devops/ng-mat-components
25+
npm install @fullstack-devops/ngx-mat-components
2626
```
2727

2828
### Installation via GitHub packages
@@ -35,9 +35,9 @@ add to your local `.npmrc` the following line to be able to use this package:
3535

3636
## Documentation
3737

38-
Live Demo with all current modules at https://fullstack-devops.github.io/ng-mat-components
38+
Live Demo with all current modules at https://fullstack-devops.github.io/ngx-mat-components
3939

40-
Api Documentation: https://fullstack-devops.github.io/libraries/ng-mat-components.
40+
Api Documentation: https://fullstack-devops.github.io/libraries/ngx-mat-components.
4141

4242
## Development server
4343

angular.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,34 @@
33
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
6-
"ng-mat-components": {
6+
"ngx-mat-components": {
77
"projectType": "library",
8-
"root": "projects/ng-mat-components",
9-
"sourceRoot": "projects/ng-mat-components/src",
8+
"root": "projects/ngx-mat-components",
9+
"sourceRoot": "projects/ngx-mat-components/src",
1010
"prefix": "lib",
1111
"architect": {
1212
"build": {
1313
"builder": "@angular-devkit/build-angular:ng-packagr",
1414
"options": {
15-
"tsConfig": "projects/ng-mat-components/tsconfig.lib.json",
16-
"project": "projects/ng-mat-components/ng-package.json"
15+
"tsConfig": "projects/ngx-mat-components/tsconfig.lib.json",
16+
"project": "projects/ngx-mat-components/ng-package.json"
1717
},
1818
"configurations": {
1919
"production": {
20-
"tsConfig": "projects/ng-mat-components/tsconfig.lib.prod.json"
20+
"tsConfig": "projects/ngx-mat-components/tsconfig.lib.prod.json"
2121
},
2222
"development": {
23-
"tsConfig": "projects/ng-mat-components/tsconfig.lib.json"
23+
"tsConfig": "projects/ngx-mat-components/tsconfig.lib.json"
2424
}
2525
},
2626
"defaultConfiguration": "production"
2727
},
2828
"test": {
2929
"builder": "@angular-devkit/build-angular:karma",
3030
"options": {
31-
"main": "projects/ng-mat-components/src/test.ts",
32-
"tsConfig": "projects/ng-mat-components/tsconfig.spec.json",
33-
"karmaConfig": "projects/ng-mat-components/karma.conf.js"
31+
"main": "projects/ngx-mat-components/src/test.ts",
32+
"tsConfig": "projects/ngx-mat-components/tsconfig.spec.json",
33+
"karmaConfig": "projects/ngx-mat-components/karma.conf.js"
3434
}
3535
}
3636
}
@@ -104,18 +104,18 @@
104104
"builder": "@angular-devkit/build-angular:dev-server",
105105
"configurations": {
106106
"production": {
107-
"browserTarget": "lib-workspace:build:production"
107+
"buildTarget": "lib-workspace:build:production"
108108
},
109109
"development": {
110-
"browserTarget": "lib-workspace:build:development"
110+
"buildTarget": "lib-workspace:build:development"
111111
}
112112
},
113113
"defaultConfiguration": "development"
114114
},
115115
"extract-i18n": {
116116
"builder": "@angular-devkit/build-angular:extract-i18n",
117117
"options": {
118-
"browserTarget": "lib-workspace:build"
118+
"buildTarget": "lib-workspace:build"
119119
}
120120
},
121121
"test": {

package.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@fullstack-devops/ng-mat-components",
2+
"name": "@fullstack-devops/ngx-mat-components",
33
"version": "0.0.0-PLACEHOLDER",
44
"engines": {
55
"node": ">=18.0.0",
@@ -10,8 +10,8 @@
1010
"ng": "ng",
1111
"start": "ng serve",
1212
"start:codespace": "ng serve --disable-host-check",
13-
"prebuild": "cp README.md projects/ng-mat-components/",
14-
"build": "ng build --project ng-mat-components",
13+
"prebuild": "cp README.md projects/ngx-mat-components/",
14+
"build": "ng build --project ngx-mat-components",
1515
"build:workspace": "ng build --project lib-workspace",
1616
"watch": "ng build --watch --configuration development",
1717
"test": "ng test",
@@ -20,50 +20,50 @@
2020
},
2121
"private": false,
2222
"dependencies": {
23-
"@angular/animations": "^16.2.12",
24-
"@angular/cdk": "^16.2.12",
25-
"@angular/common": "^16.2.12",
26-
"@angular/compiler": "^16.2.12",
27-
"@angular/core": "^16.2.12",
28-
"@angular/forms": "^16.2.12",
29-
"@angular/material": "^16.2.12",
30-
"@angular/platform-browser": "^16.2.12",
31-
"@angular/platform-browser-dynamic": "^16.2.12",
32-
"@angular/router": "^16.2.12",
23+
"@angular/animations": "^17.3.12",
24+
"@angular/cdk": "^17.3.10",
25+
"@angular/common": "^17.3.12",
26+
"@angular/compiler": "^17.3.12",
27+
"@angular/core": "^17.3.12",
28+
"@angular/forms": "^17.3.12",
29+
"@angular/material": "^17.3.10",
30+
"@angular/platform-browser": "^17.3.12",
31+
"@angular/platform-browser-dynamic": "^17.3.12",
32+
"@angular/router": "^17.3.12",
3333
"@ng-icons/core": "24",
3434
"@ng-icons/material-icons": "24",
3535
"date-fns": "^2.29.3",
3636
"material-icons": "^1.13.1",
3737
"postcss": "^8.4.32",
3838
"rxjs": "^7.8.1",
3939
"tslib": "^2.4.0",
40-
"zone.js": "~0.13.3"
40+
"zone.js": "~0.14.10"
4141
},
4242
"devDependencies": {
43-
"@angular-devkit/build-angular": "^16.2.10",
44-
"@angular-eslint/builder": "^16.3.1",
45-
"@angular-eslint/eslint-plugin": "^16.3.1",
46-
"@angular-eslint/eslint-plugin-template": "^16.3.1",
47-
"@angular-eslint/schematics": "^16.3.1",
48-
"@angular-eslint/template-parser": "^16.3.1",
49-
"@angular/cli": "^16.2.10",
50-
"@angular/compiler-cli": "^16.2.12",
43+
"@angular-devkit/build-angular": "^17.3.11",
44+
"@angular-eslint/builder": "^17.5.3",
45+
"@angular-eslint/eslint-plugin": "^17.5.3",
46+
"@angular-eslint/eslint-plugin-template": "^17.5.3",
47+
"@angular-eslint/schematics": "^17.5.3",
48+
"@angular-eslint/template-parser": "^17.5.3",
49+
"@angular/cli": "^17.3.11",
50+
"@angular/compiler-cli": "^17.3.12",
5151
"@types/jasmine": "~5.1.4",
5252
"@types/node": "^18.19.3",
53-
"@typescript-eslint/eslint-plugin": "^5.59.2",
54-
"@typescript-eslint/parser": "^5.59.2",
53+
"@typescript-eslint/eslint-plugin": "^7.2.0",
54+
"@typescript-eslint/parser": "^7.2.0",
5555
"autoprefixer": "^10.4.16",
56-
"eslint": "^8.39.0",
56+
"eslint": "^8.57.0",
5757
"jasmine-core": "~5.1.1",
5858
"karma": "~6.3.0",
5959
"karma-chrome-launcher": "~3.2.0",
6060
"karma-coverage": "~2.2.1",
6161
"karma-jasmine": "~5.1.0",
6262
"karma-jasmine-html-reporter": "~2.1.0",
63-
"ng-packagr": "^16.2.3",
63+
"ng-packagr": "^17.3.0",
6464
"prettier": "^2.8.3",
6565
"prettier-eslint": "^15.0.1",
6666
"sass": "^1.69.5",
67-
"typescript": "~5.1.6"
67+
"typescript": "~5.4.5"
6868
}
69-
}
69+
}

projects/lib-workspace/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { registerLocaleData } from '@angular/common';
22
import localeDe from '@angular/common/locales/de';
33
import localeDeExtra from '@angular/common/locales/extra/de';
44
import { Component, OnInit } from '@angular/core';
5-
import { NavFrameConfig, NavFrameSizing, NavRoutes } from 'projects/ng-mat-components/src/public-api';
5+
import { NavFrameConfig, NavFrameSizing, NavRoutes } from 'projects/ngx-mat-components/src/public-api';
66

77
@Component({
88
selector: 'app-root',

projects/lib-workspace/src/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { MatDialogModule } from '@angular/material/dialog';
1717
import { MatSelectModule } from '@angular/material/select';
1818
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
1919
import * as dateFnsLocales from 'date-fns/locale';
20-
import { FsCalendarModule, FsCalendarService, FsNavFrameModule } from 'projects/ng-mat-components/src/public-api';
20+
import { FsCalendarModule, FsCalendarService, FsNavFrameModule } from 'projects/ngx-mat-components/src/public-api';
2121
import { HomeComponent } from './content/home/home.component';
2222
import { ShowcaseCalendarPanelsComponent } from './content/showcase-calendar-panels/showcase-calendar-panels.component';
2323
import { ShowcaseCalendarTableComponent } from './content/showcase-calendar-table/showcase-calendar-table.component';

projects/lib-workspace/src/app/content/showcase-calendar-panels/showcase-calendar-panels.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, OnInit } from '@angular/core';
2-
import { CalendarEvent, CalendarExtendedDay, CalendarPanels, CalendarPanelsConfig } from 'projects/ng-mat-components/src/public-api';
2+
import { CalendarEvent, CalendarExtendedDay, CalendarPanels, CalendarPanelsConfig } from 'projects/ngx-mat-components/src/public-api';
33

44
interface CustomTestObj {
55
id: number;

projects/lib-workspace/src/app/content/showcase-calendar-table/showcase-calendar-table.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, OnInit } from '@angular/core';
2-
import { CalendarTableEntry } from 'projects/ng-mat-components/src/public-api';
2+
import { CalendarTableEntry } from 'projects/ngx-mat-components/src/public-api';
33

44
@Component({
55
selector: 'app-showcase-calendar-table',

projects/lib-workspace/src/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@use '@angular/material' as mat;
2-
@use '../../ng-mat-components' as fsc;
2+
@use '../../ngx-mat-components' as fsc;
33
@use './styling/palettes';
44

55
@import 'material-icons/iconfont/material-icons.scss';

projects/ng-mat-components/README.md

Lines changed: 0 additions & 64 deletions
This file was deleted.

projects/ng-mat-components/karma.conf.js renamed to projects/ngx-mat-components/karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module.exports = function (config) {
2525
suppressAll: true, // removes the duplicated traces
2626
},
2727
coverageReporter: {
28-
dir: require('path').join(__dirname, '../../coverage/ng-mat-components'),
28+
dir: require('path').join(__dirname, '../../coverage/ngx-mat-components'),
2929
subdir: '.',
3030
reporters: [{ type: 'html' }, { type: 'text-summary' }],
3131
},

projects/ng-mat-components/ng-package.json renamed to projects/ngx-mat-components/ng-package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3-
"dest": "../../dist/ng-mat-components",
3+
"dest": "../../dist/ngx-mat-components",
44
"lib": {
55
"entryFile": "src/public-api.ts"
66
},

0 commit comments

Comments
 (0)