Skip to content

Commit

Permalink
chore: 🤖 upgrade to v14
Browse files Browse the repository at this point in the history
  • Loading branch information
NetanelBasal committed Nov 23, 2022
1 parent a6536b9 commit 60f8625
Show file tree
Hide file tree
Showing 9 changed files with 16,338 additions and 24,559 deletions.
3 changes: 1 addition & 2 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,5 @@
}
}
}
},
"defaultProject": "dialog"
}
}
40,849 changes: 16,315 additions & 24,534 deletions package-lock.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~13.0.2",
"@angular/common": "~13.0.2",
"@angular/compiler": "~13.0.2",
"@angular/core": "~13.0.2",
"@angular/forms": "~13.0.2",
"@angular/platform-browser": "~13.0.2",
"@angular/platform-browser-dynamic": "~13.0.2",
"@angular/router": "~13.0.2",
"@angular/animations": "^14.2.12",
"@angular/common": "^14.2.12",
"@angular/compiler": "^14.2.12",
"@angular/core": "^14.2.12",
"@angular/forms": "^14.2.12",
"@angular/platform-browser": "^14.2.12",
"@angular/platform-browser-dynamic": "^14.2.12",
"@angular/router": "^14.2.12",
"acorn": "^8.6.0",
"rxjs": "~6.5.4",
"tslib": "2.3.1",
"zone.js": "~0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "~13.0.3",
"@angular/cli": "~13.0.3",
"@angular/compiler-cli": "~13.0.2",
"@angular-devkit/build-angular": "^14.2.10",
"@angular/cli": "^14.2.10",
"@angular/compiler-cli": "^14.2.12",
"@commitlint/cli": "8.1.0",
"@commitlint/config-angular": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0",
Expand All @@ -56,12 +56,12 @@
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"lint-staged": "^9.2.0",
"ng-packagr": "^13.0.7",
"ng-packagr": "^14.2.2",
"prettier": "^1.18.2",
"standard-version": "^6.0.1",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~4.4.4"
"typescript": "~4.8.4"
},
"config": {
"commitizen": {
Expand Down
1 change: 0 additions & 1 deletion projects/ngneat/dialog/src/lib/dialog.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const BuiltIns = [BaseDialogComponent, SuccessDialogComponent, ConfirmDialogComp
@NgModule({
declarations: [DialogComponent, DialogCloseDirective, DialogDraggableDirective, BuiltIns],
imports: [CommonModule],
entryComponents: [DialogComponent],
exports: [DialogComponent, DialogCloseDirective]
})
export class DialogModule {
Expand Down
2 changes: 1 addition & 1 deletion projects/ngneat/dialog/tsconfig.lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"outDir": "../../../out-tsc/lib",
"declarationMap": true,
"target": "es2015",
"target": "es2020",
"declaration": true,
"inlineSources": true,
"types": [],
Expand Down
4 changes: 2 additions & 2 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, TemplateRef, Type, ViewChild, ViewContainerRef } from '@angular/core';
import { FormBuilder } from '@angular/forms';
import { UntypedFormBuilder } from '@angular/forms';
import { interval, Observable } from 'rxjs';
import { shareReplay, tap } from 'rxjs/operators';
import { DialogConfig, DialogRef, DialogService } from '@ngneat/dialog';
Expand Down Expand Up @@ -103,7 +103,7 @@ export class AppComponent {

backDropClicked = false;

constructor(private fb: FormBuilder, public dialog: DialogService) {}
constructor(private fb: UntypedFormBuilder, public dialog: DialogService) {}

openDialog(compOrTemplate: Type<any> | TemplateRef<any>, config: DialogConfig) {
this.backDropClicked = false;
Expand Down
6 changes: 3 additions & 3 deletions src/app/reset-location-dialog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, ChangeDetectionStrategy, Inject } from '@angular/core';
import { interval } from 'rxjs';

import { DialogRef } from '@ngneat/dialog';
import { FormControl } from '@angular/forms';
import { UntypedFormControl } from '@angular/forms';

interface DialogData {
title: string;
Expand Down Expand Up @@ -50,8 +50,8 @@ interface DialogData {
changeDetection: ChangeDetectionStrategy.OnPush
})
export class ResetLocationDialogComponent {
offsetX = new FormControl(0);
offsetY = new FormControl(0);
offsetX = new UntypedFormControl(0);
offsetY = new UntypedFormControl(0);

constructor(public ref: DialogRef<DialogData>) {}

Expand Down
4 changes: 2 additions & 2 deletions src/app/test-dialog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, ChangeDetectionStrategy, Inject } from '@angular/core';
import { interval } from 'rxjs';

import { DialogRef } from '@ngneat/dialog';
import { FormControl } from '@angular/forms';
import { UntypedFormControl } from '@angular/forms';

interface DialogData {
title: string;
Expand Down Expand Up @@ -59,7 +59,7 @@ interface DialogData {
export class TestDialogComponent {
timer$ = interval(1000);

message = new FormControl('This dialog looks pretty cool 😎');
message = new UntypedFormControl('This dialog looks pretty cool 😎');

constructor(public ref: DialogRef<DialogData>) {}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"module": "es2020",
"moduleResolution": "node",
"importHelpers": true,
"target": "es2015",
"target": "es2020",
"lib": ["es2018", "dom"],
"paths": {
"@ngneat/dialog": ["projects/ngneat/dialog/src/public-api.ts"]
Expand Down

0 comments on commit 60f8625

Please sign in to comment.