Skip to content

Commit 2436b11

Browse files
authored
Major/upgrade to ng 19 (#93)
breaking changes: Material Theme from 2 o 3!
1 parent 2312658 commit 2436b11

File tree

58 files changed

+2311
-2768
lines changed

Some content is hidden

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

58 files changed

+2311
-2768
lines changed

.github/workflows/build-gh-pages-demo.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
echo "::warning title=Invalid file permissions automatically fixed::$line"
2929
done
3030
- name: Upload Pages artifact
31-
uses: actions/upload-pages-artifact@v2
31+
uses: actions/upload-pages-artifact@v3
3232
with:
3333
path: dist/lib-workspace
3434
deploy:
@@ -43,4 +43,4 @@ jobs:
4343
steps:
4444
- name: Deploy to GitHub Pages
4545
id: deployment
46-
uses: actions/deploy-pages@v3
46+
uses: actions/deploy-pages@v4

package.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@fullstack-devops/ngx-mat-components",
33
"version": "0.0.0-PLACEHOLDER",
44
"engines": {
5-
"node": ">=18.0.0",
5+
"node": ">=20.0.0",
66
"yarn": "^1.22.17",
77
"npm": "Please use Yarn instead of NPM to install dependencies. See: https://yarnpkg.com/lang/en/docs/install/"
88
},
@@ -20,51 +20,51 @@
2020
},
2121
"private": false,
2222
"dependencies": {
23-
"@angular/animations": "^18.2.13",
24-
"@angular/cdk": "^18.2.14",
25-
"@angular/common": "^18.2.13",
26-
"@angular/compiler": "^18.2.13",
27-
"@angular/core": "^18.2.13",
28-
"@angular/forms": "^18.2.13",
29-
"@angular/material": "^18.2.14",
30-
"@angular/platform-browser": "^18.2.13",
31-
"@angular/platform-browser-dynamic": "^18.2.13",
32-
"@angular/router": "^18.2.13",
33-
"@ng-icons/core": "24",
34-
"@ng-icons/material-icons": "24",
35-
"date-fns": "^2.29.3",
36-
"material-icons": "^1.13.1",
23+
"@angular/animations": "^19.2.14",
24+
"@angular/cdk": "^19.2.19",
25+
"@angular/common": "^19.2.14",
26+
"@angular/compiler": "^19.2.14",
27+
"@angular/core": "^19.2.14",
28+
"@angular/forms": "^19.2.14",
29+
"@angular/material": "^19.2.19",
30+
"@angular/material-date-fns-adapter": "^19.2.19",
31+
"@angular/platform-browser": "^19.2.14",
32+
"@angular/platform-browser-dynamic": "^19.2.14",
33+
"@angular/router": "^19.2.14",
34+
"date-fns": "^4.1.0",
35+
"lucide-angular": "^0.523.0",
3736
"postcss": "^8.5.6",
3837
"rxjs": "^7.8.2",
3938
"tslib": "^2.8.1",
40-
"zone.js": "^0.14.10"
39+
"zone.js": "^0.15.1"
4140
},
4241
"devDependencies": {
43-
"@angular-devkit/build-angular": "^18.2.20",
44-
"@angular-eslint/builder": "^18.4.3",
45-
"@angular-eslint/eslint-plugin": "^18.4.3",
46-
"@angular-eslint/eslint-plugin-template": "^18.4.3",
47-
"@angular-eslint/schematics": "^18.4.3",
48-
"@angular-eslint/template-parser": "^18.4.3",
49-
"@angular/cli": "^18.2.20",
50-
"@angular/compiler-cli": "^18.2.13",
51-
"@types/jasmine": "~5.1.4",
42+
"@angular-devkit/build-angular": "^19.2.15",
43+
"@angular-eslint/builder": "^19.8.1",
44+
"@angular-eslint/eslint-plugin": "^19.8.1",
45+
"@angular-eslint/eslint-plugin-template": "^19.8.1",
46+
"@angular-eslint/schematics": "^19.8.1",
47+
"@angular-eslint/template-parser": "^19.8.1",
48+
"@angular/cli": "^19.2.15",
49+
"@angular/compiler-cli": "^19.2.14",
50+
"@types/jasmine": "~5.1.8",
5251
"@typescript-eslint/eslint-plugin": "^8.35.0",
5352
"@typescript-eslint/parser": "^8.35.0",
5453
"@typescript-eslint/types": "^8.35.0",
5554
"@typescript-eslint/utils": "^8.35.0",
56-
"autoprefixer": "^10.4.16",
55+
"autoprefixer": "^10.4.21",
5756
"eslint": "^9.29.0",
5857
"jasmine-core": "~5.1.1",
59-
"karma": "~6.3.0",
58+
"karma": "~6.4.4",
6059
"karma-chrome-launcher": "~3.2.0",
6160
"karma-coverage": "~2.2.1",
6261
"karma-jasmine": "~5.1.0",
6362
"karma-jasmine-html-reporter": "~2.1.0",
64-
"ng-packagr": "^18.2.1",
65-
"prettier": "^2.8.3",
66-
"prettier-eslint": "^15.0.1",
67-
"sass": "^1.69.5",
68-
"typescript": "~5.4.5"
63+
"ng-packagr": "^19.2.2",
64+
"prettier": "^3.6.1",
65+
"prettier-eslint": "^16.4.2",
66+
"sass": "^1.89.2",
67+
"typescript": "~5.8.3",
68+
"vite": "^6.0.0"
6969
}
7070
}

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

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

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

Lines changed: 0 additions & 87 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import { ApplicationConfig, LOCALE_ID, provideZoneChangeDetection } from '@angular/core';
2+
import { provideHttpClient } from '@angular/common/http';
3+
import { provideRouter } from '@angular/router';
4+
import { routes } from './app.routes';
5+
6+
import { MAT_DATE_LOCALE } from '@angular/material/core';
7+
import { MAT_CARD_CONFIG } from '@angular/material/card';
8+
import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
9+
import { MAT_SNACK_BAR_DEFAULT_OPTIONS } from '@angular/material/snack-bar';
10+
import { MAT_BUTTON_CONFIG } from '@angular/material/button';
11+
import * as dateFnsLocales from 'date-fns/locale';
12+
import { FsCalendarService } from 'ngx-mat-components';
13+
import { APP_BASE_HREF } from '@angular/common';
14+
15+
const locales: any = dateFnsLocales;
16+
17+
export const appConfig: ApplicationConfig = {
18+
providers: [
19+
{
20+
provide: APP_BASE_HREF,
21+
useValue: '.',
22+
},
23+
provideZoneChangeDetection({ eventCoalescing: true }),
24+
provideRouter(routes),
25+
provideHttpClient(),
26+
{ provide: MAT_BUTTON_CONFIG, useValue: { defaultAppearance: 'outlined' } },
27+
{ provide: MAT_CARD_CONFIG, useValue: { appearance: 'outlined' } },
28+
{ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: { appearance: 'outline' } },
29+
{
30+
provide: MAT_SNACK_BAR_DEFAULT_OPTIONS,
31+
useValue: { duration: 5000, verticalPosition: 'top', horizontalPosition: 'end' },
32+
},
33+
{ provide: LOCALE_ID, useValue: 'de-DE' },
34+
{ provide: MAT_DATE_LOCALE, useValue: 'de-DE' },
35+
{
36+
provide: 'FS_DATE_LOCALE',
37+
useClass: FsCalendarService,
38+
useValue: locales[navigator.language],
39+
},
40+
],
41+
};

projects/lib-workspace/src/app/app.component.html renamed to projects/lib-workspace/src/app/app.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
<fs-nav-frame-toolbar-center>
66
<button mat-icon-button>
7-
<mat-icon>help</mat-icon>
7+
<i-lucide [img]="CircleQuestionMarkIcon" class="my-icon"></i-lucide>
88
</button>
99
<button mat-icon-button matBadge="3">
10-
<mat-icon>article</mat-icon>
10+
<i-lucide [img]="NewspaperIcon" class="my-icon"></i-lucide>
1111
</button>
1212
<button mat-icon-button>
13-
<mat-icon>call</mat-icon>
13+
<i-lucide [img]="CogIcon" class="my-icon"></i-lucide>
1414
</button>
1515
</fs-nav-frame-toolbar-center>
1616

@@ -20,14 +20,14 @@
2020
<input matInput placeholder="Searching..." />
2121
</mat-form-field>
2222
<button mat-icon-button>
23-
<mat-icon>notifications</mat-icon>
23+
<i-lucide [img]="BellIcon" class="my-icon"></i-lucide>
2424
</button>
2525
</fs-nav-frame-toolbar-end>
2626
</fs-nav-frame-toolbar>
2727

2828
<fs-nav-frame-sidebar>
2929
<fs-nav-frame-sidebar-item *ngFor="let route of navRoutes" routerLink="{{ route.path }}">
30-
<i class="material-icons">{{ route.icon }}</i>
30+
<span-lucide [img]="route.icon" class="my-icon"></span-lucide>
3131
<span>{{ route.title }}</span>
3232
</fs-nav-frame-sidebar-item>
3333
</fs-nav-frame-sidebar>
@@ -39,10 +39,10 @@
3939

4040
<fs-nav-user-profile-actions>
4141
<button mat-icon-button>
42-
<i class="material-icons">manage_accounts</i>
42+
<i-lucide [img]="UserPenIcon" class="my-icon"></i-lucide>
4343
</button>
44-
<button>
45-
<i class="material-icons">logout</i>
44+
<button mat-icon-button>
45+
<i-lucide [img]="LogOutIcon" class="my-icon"></i-lucide>
4646
</button>
4747
</fs-nav-user-profile-actions>
4848
</fs-nav-user-profile>

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

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

projects/lib-workspace/src/app/app-routing.module.ts renamed to projects/lib-workspace/src/app/app.routes.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { NgModule } from '@angular/core';
2-
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
1+
import { Routes } from '@angular/router';
32
import { HomeComponent } from './content/home/home.component';
43
import { ShowcaseCalendarPanelsComponent } from './content/showcase-calendar-panels/showcase-calendar-panels.component';
54
import { ShowcaseCalendarTableComponent } from './content/showcase-calendar-table/showcase-calendar-table.component';
@@ -28,9 +27,3 @@ export const routes: Routes = [
2827
pathMatch: 'full',
2928
},
3029
];
31-
32-
@NgModule({
33-
imports: [RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })],
34-
exports: [RouterModule],
35-
})
36-
export class AppRoutingModule {}

0 commit comments

Comments
 (0)