Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.

Commit cb815bd

Browse files
Running ng update for 13,14 (#22)
1 parent 667fb15 commit cb815bd

File tree

8 files changed

+48
-94
lines changed

8 files changed

+48
-94
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
.settings/
1919

2020
# misc
21+
/.angular/cache
2122
/.sass-cache
2223
/connect.lock
2324
/coverage/*

angular.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,5 @@
9797
}
9898
}
9999
}
100-
},
101-
"defaultProject": "ag-grid-angular-cli-example"
100+
}
102101
}

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,23 @@
3131
"@ag-grid-enterprise/range-selection": "~30.2.0",
3232
"@ag-grid-enterprise/charts": "~30.2.0",
3333
"@ag-grid-community/styles": "~30.2.0",
34-
"@angular/animations": "~12.2.0",
35-
"@angular/common": "~12.2.0",
36-
"@angular/compiler": "~12.2.0",
37-
"@angular/core": "~12.2.0",
38-
"@angular/forms": "~12.2.0",
39-
"@angular/platform-browser": "~12.2.0",
40-
"@angular/platform-browser-dynamic": "~12.2.0",
41-
"@angular/router": "~12.2.0",
34+
"@angular/animations": "^14.3.0",
35+
"@angular/common": "^14.3.0",
36+
"@angular/compiler": "^14.3.0",
37+
"@angular/core": "^14.3.0",
38+
"@angular/forms": "^14.3.0",
39+
"@angular/platform-browser": "^14.3.0",
40+
"@angular/platform-browser-dynamic": "^14.3.0",
41+
"@angular/router": "^14.3.0",
4242
"bootstrap": "4.5.0",
4343
"rxjs": "~6.6.0",
4444
"tslib": "^2.3.0",
4545
"zone.js": "~0.11.4"
4646
},
4747
"devDependencies": {
48-
"@angular-devkit/build-angular": "~12.2.17",
49-
"@angular/cli": "~12.2.17",
50-
"@angular/compiler-cli": "~12.2.0",
48+
"@angular-devkit/build-angular": "^14.2.12",
49+
"@angular/cli": "^14.2.12",
50+
"@angular/compiler-cli": "^14.3.0",
5151
"@types/jasmine": "~3.8.0",
5252
"@types/node": "^12.11.1",
5353
"jasmine-core": "~3.8.0",
@@ -56,6 +56,6 @@
5656
"karma-coverage": "~2.0.3",
5757
"karma-jasmine": "~4.0.0",
5858
"karma-jasmine-html-reporter": "~1.7.0",
59-
"typescript": "~4.3.5"
59+
"typescript": "~4.7.4"
6060
}
6161
}

src/app/rich-grid-example/rich-grid.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ export class RichGridComponent {
6464
headerComponent: 'sortableHeaderComponent',
6565
headerComponentParams: {
6666
menuIcon: 'fa-bars'
67-
}
67+
},
68+
cellDataType: false,
6869
};
6970

7071
this.components = {

src/polyfills.ts

Lines changed: 28 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,55 +8,46 @@
88
* file.
99
*
1010
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
11-
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
12-
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
11+
* automatically update themselves. This includes recent versions of Safari, Chrome (including
12+
* Opera), Edge on the desktop, and iOS and Chrome on mobile.
1313
*
14-
* Learn more in https://angular.io/docs/ts/latest/guide/browser-support.html
14+
* Learn more in https://angular.io/guide/browser-support
1515
*/
1616

1717
/***************************************************************************************************
1818
* BROWSER POLYFILLS
1919
*/
2020

21-
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
22-
import 'core-js/es/symbol';
23-
import 'core-js/es/object';
24-
import 'core-js/es/function';
25-
import 'core-js/es/parse-int';
26-
import 'core-js/es/parse-float';
27-
import 'core-js/es/number';
28-
import 'core-js/es/math';
29-
import 'core-js/es/string';
30-
import 'core-js/es/date';
31-
import 'core-js/es/array';
32-
import 'core-js/es/regexp';
33-
import 'core-js/es/map';
34-
import 'core-js/es/set';
35-
/** Evergreen browsers require these. **/
36-
import 'core-js/es/reflect';
21+
/**
22+
* By default, zone.js will patch all possible macroTask and DomEvents
23+
* user can disable parts of macroTask/DomEvents patch by setting following flags
24+
* because those flags need to be set before `zone.js` being loaded, and webpack
25+
* will put import in the top of bundle, so user need to create a separate file
26+
* in this directory (for example: zone-flags.ts), and put the following flags
27+
* into that file, and then add the following code before importing zone.js.
28+
* import './zone-flags';
29+
*
30+
* The flags allowed in zone-flags.ts are listed here.
31+
*
32+
* The following flags will work for all browsers.
33+
*
34+
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
35+
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
36+
* (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
37+
*
38+
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
39+
* with the following flag, it will bypass `zone.js` patch for IE/Edge
40+
*
41+
* (window as any).__Zone_enable_cross_context_check = true;
42+
*
43+
*/
3744

3845
/***************************************************************************************************
39-
* Zone JS is required by Angular itself.
46+
* Zone JS is required by default for Angular itself.
4047
*/
41-
import 'zone.js/dist/zone'; // Included with Angular CLI.
42-
43-
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
44-
// import 'classlist.js'; // Run `npm install --save classlist.js`.
45-
46-
/** IE10 and IE11 requires the following to support `@angular/animation`. */
47-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
48-
49-
50-
/** ALL Firefox browsers require the following to support `@angular/animation`. **/
51-
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
48+
import 'zone.js'; // Included with Angular CLI.
5249

5350

5451
/***************************************************************************************************
5552
* APPLICATION IMPORTS
5653
*/
57-
58-
/**
59-
* Date, currency, decimal and percent pipes.
60-
* Needed for: All but Chrome, Firefox, Edge, IE11 and Safari 10
61-
*/
62-
// import 'intl'; // Run `npm install --save intl`.

src/test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ __karma__.loaded = function () {
2020
// First, initialize the Angular testing environment.
2121
getTestBed().initTestEnvironment(
2222
BrowserDynamicTestingModule,
23-
platformBrowserDynamicTesting()
23+
platformBrowserDynamicTesting(), {
24+
teardown: { destroyAfterEach: false }
25+
}
2426
);
2527
// Then we find all the tests.
2628
const context = require.context('./', true, /\.spec\.ts$/);

src/tsconfig.app.json

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

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"experimentalDecorators": true,
1515
"moduleResolution": "node",
1616
"importHelpers": true,
17-
"target": "es2017",
17+
"target": "es2020",
1818
"module": "es2020",
1919
"lib": [
2020
"es2018",

0 commit comments

Comments
 (0)