Skip to content

Commit 879eb28

Browse files
committed
chore: run npm update and adapting code
1 parent 068a1d9 commit 879eb28

File tree

9 files changed

+6984
-5225
lines changed

9 files changed

+6984
-5225
lines changed

package-lock.json

Lines changed: 6938 additions & 5177 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,20 @@
6464
}
6565
],
6666
"dependencies": {
67-
"@angular-devkit/schematics": "^20.3.13",
68-
"@angular/animations": "^20.3.15",
69-
"@angular/cdk": "^19.1.5",
70-
"@angular/common": "^20.3.15",
71-
"@angular/compiler": "^20.3.15",
72-
"@angular/core": "^20.3.15",
73-
"@angular/forms": "^20.3.15",
74-
"@angular/localize": "^20.3.15",
75-
"@angular/platform-browser": "^20.3.15",
76-
"@angular/platform-browser-dynamic": "^20.3.15",
77-
"@angular/router": "^20.3.15",
67+
"@angular-devkit/schematics": "^21.0.3",
68+
"@angular/animations": "^21.0.4",
69+
"@angular/cdk": "^21.0.3",
70+
"@angular/common": "^21.0.4",
71+
"@angular/compiler": "^21.0.4",
72+
"@angular/core": "^21.0.4",
73+
"@angular/forms": "^21.0.4",
74+
"@angular/localize": "^21.0.4",
75+
"@angular/platform-browser": "^21.0.4",
76+
"@angular/platform-browser-dynamic": "^21.0.4",
77+
"@angular/router": "^21.0.4",
7878
"@ngx-translate/core": "^16.0.4",
7979
"@ngx-translate/http-loader": "^16.0.1",
80+
"@standard-schema/spec": "^1.0.0",
8081
"@types/video.js": "^7.3.58",
8182
"@types/youtube": "^0.1.0",
8283
"bootstrap-italia": "^2.16.2",
@@ -90,31 +91,31 @@
9091
"zone.js": "~0.15.0"
9192
},
9293
"devDependencies": {
93-
"@angular-devkit/build-angular": "^20.3.13",
94-
"@angular-devkit/core": "^20.3.13",
95-
"@angular-eslint/builder": "20.7.0",
96-
"@angular-eslint/eslint-plugin": "20.7.0",
97-
"@angular-eslint/eslint-plugin-template": "20.7.0",
98-
"@angular-eslint/schematics": "20.7.0",
99-
"@angular-eslint/template-parser": "20.7.0",
100-
"@angular/cli": "^20.3.13",
101-
"@angular/compiler-cli": "^20.3.15",
102-
"@angular/language-service": "^20.3.15",
94+
"@angular-devkit/build-angular": "^21.0.3",
95+
"@angular-devkit/core": "^21.0.3",
96+
"@angular-eslint/builder": "21.1.0",
97+
"@angular-eslint/eslint-plugin": "21.1.0",
98+
"@angular-eslint/eslint-plugin-template": "21.1.0",
99+
"@angular-eslint/schematics": "21.1.0",
100+
"@angular-eslint/template-parser": "21.1.0",
101+
"@angular/cli": "^21.0.3",
102+
"@angular/compiler-cli": "^21.0.4",
103+
"@angular/language-service": "^21.0.4",
103104
"@commitlint/cli": "^19.7.1",
104105
"@commitlint/config-conventional": "^19.7.1",
105106
"@compodoc/compodoc": "^1.1.26",
106107
"@types/bootstrap": "^5.2.10",
107108
"@types/jasmine": "~5.1.7",
108109
"@types/jasminewd2": "~2.0.13",
109110
"@types/node": "^22.13.5",
110-
"@typescript-eslint/eslint-plugin": "^7.15.0",
111-
"@typescript-eslint/parser": "^7.15.0",
111+
"@typescript-eslint/eslint-plugin": "^8.49.0",
112+
"@typescript-eslint/parser": "^8.49.0",
112113
"browserslist-config-design-italia": "^1.1.0",
113114
"concurrently": "^9.1.2",
114115
"copyfiles": "^2.4.1",
115-
"eslint": "^8.57.0",
116-
"eslint-config-prettier": "^9.1.0",
117-
"eslint-plugin-prettier": "^5.1.3",
116+
"eslint": "^9.39.0",
117+
"eslint-config-prettier": "^10.1.8",
118+
"eslint-plugin-prettier": "^5.5.4",
118119
"gh-pages": "^6.3.0",
119120
"husky": "^9.1.7",
120121
"is-ci": "^4.1.0",
@@ -128,10 +129,10 @@
128129
"karma-jasmine": "~5.1.0",
129130
"karma-jasmine-html-reporter": "^2.1.0",
130131
"lint-staged": "^15.4.3",
131-
"ng-packagr": "^20.0.0",
132+
"ng-packagr": "^21.0.0",
132133
"nunjucks-cli": "^1.0.0",
133-
"prettier": "^3.5.2",
134-
"prettier-eslint": "^16.3.0",
134+
"prettier": "^3.7.4",
135+
"prettier-eslint": "^16.4.2",
135136
"replace-in-file": "^8.3.0",
136137
"ts-node": "~10.9.2",
137138
"typescript": "^5.8.3"

projects/design-angular-kit/src/lib/abstracts/abstract-form.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { ControlContainer, ControlValueAccessor, FormControl, FormGroup, NgControl, ValidatorFn } from '@angular/forms';
21
import { Component, DoCheck, Input, OnInit, inject } from '@angular/core';
3-
import { ItAbstractComponent } from './abstract.component';
4-
import { Observable } from 'rxjs';
2+
import { ControlContainer, ControlValueAccessor, FormControl, FormGroup, NgControl, ValidatorFn } from '@angular/forms';
53
import { TranslateService } from '@ngx-translate/core';
4+
import { Observable } from 'rxjs';
65
import { inputToBoolean } from '../utils/coercion';
6+
import { ItAbstractComponent } from './abstract.component';
77

88
@Component({
99
template: '',
@@ -44,6 +44,7 @@ export abstract class ItAbstractFormComponent<T = any> extends ItAbstractCompone
4444
constructor() {
4545
super();
4646
this.control = new FormControl();
47+
// eslint-disable-next-line
4748
this._ngControl && (this._ngControl.valueAccessor = this);
4849
}
4950

projects/design-angular-kit/src/lib/components/core/button/button.directive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { ContentChildren, Directive, HostBinding, Input, QueryList, inject } from '@angular/core';
22
import { ButtonColor, ButtonSize } from '../../../interfaces/core';
3+
import { inputToBoolean } from '../../../utils/coercion';
34
import { ItIconComponent } from '../../utils/icon/icon.component';
45
import { ItProgressButtonComponent } from '../progress-button/progress-button.component';
5-
import { inputToBoolean } from '../../../utils/coercion';
66

77
/**
88
* Button
@@ -47,7 +47,7 @@ export class ItButtonDirective {
4747
* @default button
4848
*/
4949
@Input()
50-
@HostBinding('type')
50+
@HostBinding('attr.type')
5151
type: 'button' | 'reset' | 'submit' = 'button';
5252

5353
/**

projects/design-angular-kit/src/lib/components/navigation/navscroll/navscroll.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ import {
1313
} from '@angular/core';
1414
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
1515
import { RouterLink, RouterLinkActive, RouterLinkWithHref } from '@angular/router';
16+
import { TranslateModule } from '@ngx-translate/core';
1617
import { delay, filter, map, tap, withLatestFrom } from 'rxjs';
1718
import { ItNavscrollListItemsComponent } from './navscroll-list-items.component';
1819
import { NavscrollItem } from './navscroll.model';
1920
import { NavscrollStore } from './navscroll.store';
20-
import { TranslateModule } from '@ngx-translate/core';
2121

2222
/**
2323
* Navscroll
@@ -73,13 +73,13 @@ export class ItNavscrollComponent implements OnInit {
7373
@Input()
7474
pageSectionsTemplate?: TemplateRef<any>;
7575

76-
@HostListener('window:scroll', ['$event']) // for window scroll events
76+
@HostListener('window:scroll') // for window scroll events
7777
onScroll() {
7878
const sectionContainer = this.#elementRef.nativeElement.querySelector('.it-page-sections-container');
7979
this.#store.updateProgressBar(sectionContainer);
8080
}
8181

82-
@HostListener('window:resize', ['$event'])
82+
@HostListener('window:resize')
8383
onResize() {
8484
this.#setMobile();
8585
}

projects/design-angular-kit/src/lib/validators/it-validators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export class ItValidators {
190190
if (control?.value) {
191191
new RegExp(control.value);
192192
}
193-
} catch (e) {
193+
} catch {
194194
return { invalidRegex: true };
195195
}
196196
return null;

src/app/app.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Component } from '@angular/core';
2-
const { version: appVersion } = require('../../package.json');
32
import TableOfContent from '../assets/table-of-content.json';
3+
// eslint-disable-next-line
4+
const { version: appVersion } = require('../../package.json');
45

56
@Component({
67
selector: 'it-root',

src/main.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { ApplicationRef, enableProdMode, isDevMode } from '@angular/core';
2-
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
3-
1+
import { ApplicationRef, enableProdMode, isDevMode, provideZoneChangeDetection } from '@angular/core';
2+
import { platformBrowser } from '@angular/platform-browser';
43
import { AppModule } from './app/app.module';
54
import { environment } from './environments/environment';
65

@@ -9,7 +8,7 @@ if (environment.production) {
98
}
109

1110
async function bootstrap() {
12-
const { injector } = await platformBrowserDynamic().bootstrapModule(AppModule);
11+
const { injector } = await platformBrowser().bootstrapModule(AppModule, { applicationProviders: [provideZoneChangeDetection()] });
1312

1413
if (isDevMode()) {
1514
const { enableDebugTools } = await import('@angular/platform-browser');

tsconfig.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,14 @@
77
"outDir": "./dist/out-tsc",
88
"sourceMap": true,
99
"declaration": false,
10-
"moduleResolution": "node",
10+
"moduleResolution": "bundler",
1111
"resolveJsonModule": true,
1212
"esModuleInterop": true,
1313
"experimentalDecorators": true,
1414
"target": "ES2022",
1515
"typeRoots": [
1616
"node_modules/@types"
1717
],
18-
"lib": [
19-
"es2020",
20-
"dom"
21-
],
2218
"useDefineForClassFields": false
2319
}
2420
}

0 commit comments

Comments
 (0)