Skip to content

Commit bce1287

Browse files
feat: update to angular v16 (#118)
* feat: update to angular 15 * fix: some fixes for the angular 15 upgrade * feat: update to angular v16 * fix: update angular-builder related deps to version 16 --------- Co-authored-by: llorenspujol <llorenspujol1@gmail.com>
1 parent e7c0ae1 commit bce1287

30 files changed

+9347
-6598
lines changed

package-lock.json

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

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,31 @@
2222
},
2323
"private": true,
2424
"dependencies": {
25-
"@angular/animations": "^15.2.10",
26-
"@angular/cdk": "^15.2.9",
27-
"@angular/common": "^15.2.10",
28-
"@angular/compiler": "^15.2.10",
29-
"@angular/core": "^15.2.10",
30-
"@angular/forms": "^15.2.10",
31-
"@angular/material": "^15.2.9",
32-
"@angular/platform-browser": "^15.2.10",
33-
"@angular/platform-browser-dynamic": "^15.2.10",
34-
"@angular/router": "^15.2.10",
25+
"@angular/animations": "^16.2.12",
26+
"@angular/cdk": "^16.2.14",
27+
"@angular/common": "^16.2.12",
28+
"@angular/compiler": "^16.2.12",
29+
"@angular/core": "^16.2.12",
30+
"@angular/forms": "^16.2.12",
31+
"@angular/material": "^16.2.14",
32+
"@angular/platform-browser": "^16.2.12",
33+
"@angular/platform-browser-dynamic": "^16.2.12",
34+
"@angular/router": "^16.2.12",
3535
"@swimlane/ngx-charts": "~20.1.0",
3636
"ngx-color-picker": "^13.0.0",
3737
"rxjs": "~6.6.0",
3838
"tslib": "^2.3.1",
39-
"zone.js": "~0.11.4"
39+
"zone.js": "~0.13.3"
4040
},
4141
"devDependencies": {
42-
"@angular-devkit/build-angular": "^15.2.11",
43-
"@angular-eslint/builder": "~15.2.1",
44-
"@angular-eslint/eslint-plugin": "~15.2.1",
45-
"@angular-eslint/eslint-plugin-template": "~15.2.1",
46-
"@angular-eslint/schematics": "~15.2.1",
47-
"@angular-eslint/template-parser": "~15.2.1",
48-
"@angular/cli": "^15.2.11",
49-
"@angular/compiler-cli": "^15.2.10",
42+
"@angular-devkit/build-angular": "^16.2.14",
43+
"@angular-eslint/builder": "~16.3.1",
44+
"@angular-eslint/eslint-plugin": "~16.3.1",
45+
"@angular-eslint/eslint-plugin-template": "~16.3.1",
46+
"@angular-eslint/schematics": "~16.3.1",
47+
"@angular-eslint/template-parser": "~16.3.1",
48+
"@angular/cli": "^16.2.14",
49+
"@angular/compiler-cli": "^16.2.12",
5050
"@commitlint/cli": "~11.0.0",
5151
"@commitlint/config-angular": "~11.0.0",
5252
"@commitlint/config-conventional": "~11.0.0",
@@ -67,7 +67,7 @@
6767
"karma-coverage": "~2.0.3",
6868
"karma-jasmine": "~4.0.0",
6969
"karma-jasmine-html-reporter": "^1.5.0",
70-
"ng-packagr": "^15.2.2",
70+
"ng-packagr": "^16.2.3",
7171
"protractor": "~7.0.0",
7272
"standard-version": "~9.1.0",
7373
"ts-node": "~8.3.0",

projects/angular-grid-layout/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"angular-layout"
2121
],
2222
"peerDependencies": {
23-
"@angular/common": ">=15.0.0",
24-
"@angular/core": ">=15.0.0"
23+
"@angular/common": ">=16.0.0",
24+
"@angular/core": ">=16.0.0"
2525
},
2626
"dependencies": {
2727
"tslib": "^2.3.1"

projects/angular-grid-layout/src/lib/directives/drag-handle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const KTD_GRID_DRAG_HANDLE = new InjectionToken<KtdGridDragHandle>('KtdGr
99

1010
/** Handle that can be used to drag a KtdGridItem instance. */
1111
@Directive({
12+
standalone: true,
1213
selector: '[ktdGridDragHandle]',
1314
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
1415
host: {

projects/angular-grid-layout/src/lib/directives/placeholder.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const KTD_GRID_ITEM_PLACEHOLDER = new InjectionToken<KtdGridItemPlacehold
99

1010
/** Directive that can be used to create a custom placeholder for a KtdGridItem instance. */
1111
@Directive({
12+
standalone: true,
1213
selector: 'ng-template[ktdGridItemPlaceholder]',
1314
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
1415
host: {

projects/angular-grid-layout/src/lib/directives/resize-handle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export const KTD_GRID_RESIZE_HANDLE = new InjectionToken<KtdGridResizeHandle>('K
1010

1111
/** Handle that can be used to drag a KtdGridItem instance. */
1212
@Directive({
13+
standalone: true,
1314
selector: '[ktdGridResizeHandle]',
1415
// eslint-disable-next-line @angular-eslint/no-host-metadata-property
1516
host: {

projects/angular-grid-layout/src/lib/grid-item/grid-item.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { coerceNumberProperty, NumberInput } from '../coercion/number-property';
1515
import { KTD_GRID_ITEM_PLACEHOLDER, KtdGridItemPlaceholder } from '../directives/placeholder';
1616

1717
@Component({
18+
standalone: true,
1819
selector: 'ktd-grid-item',
1920
templateUrl: './grid-item.component.html',
2021
styleUrls: ['./grid-item.component.scss'],

projects/angular-grid-layout/src/lib/grid.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ const defaultBackgroundConfig: Required<Omit<KtdGridBackgroundCfg, 'show'>> = {
113113
};
114114

115115
@Component({
116+
standalone: true,
116117
selector: 'ktd-grid',
117118
templateUrl: './grid.component.html',
118119
styleUrls: ['./grid.component.scss'],

projects/angular-grid-layout/src/lib/grid.module.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { NgModule } from '@angular/core';
2-
import { CommonModule } from '@angular/common';
32
import { KtdGridComponent } from './grid.component';
43
import { KtdGridItemComponent } from './grid-item/grid-item.component';
54
import { KtdGridDragHandle } from './directives/drag-handle';
@@ -8,7 +7,7 @@ import { KtdGridService } from './grid.service';
87
import { KtdGridItemPlaceholder } from '../public-api';
98

109
@NgModule({
11-
declarations: [
10+
imports: [
1211
KtdGridComponent,
1312
KtdGridItemComponent,
1413
KtdGridDragHandle,
@@ -24,9 +23,9 @@ import { KtdGridItemPlaceholder } from '../public-api';
2423
],
2524
providers: [
2625
KtdGridService
27-
],
28-
imports: [
29-
CommonModule
3026
]
3127
})
28+
/**
29+
* @deprecated Use `KtdGridComponent` instead.
30+
*/
3231
export class KtdGridModule {}

projects/demo-app/src/app/app-routing.module.ts

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

0 commit comments

Comments
 (0)