Browse Source

UI: Angular 14 migration

pull/8053/head
Igor Kulikov 4 years ago
parent
commit
cd96b29516
  1. 21
      ui-ngx/angular.json
  2. 28
      ui-ngx/package.json
  3. 10
      ui-ngx/src/polyfills.ts
  4. 4
      ui-ngx/src/test.ts
  5. 2599
      ui-ngx/yarn.lock

21
ui-ngx/angular.json

@ -220,18 +220,6 @@
"src/assets"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
@ -251,15 +239,6 @@
"devServerTarget": "thingsboard:serve:production"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
}
}
}
}

28
ui-ngx/package.json

@ -14,17 +14,17 @@
},
"private": true,
"dependencies": {
"@angular/animations": "^12.2.16",
"@angular/animations": "^13.3.12",
"@angular/cdk": "^12.2.13",
"@angular/common": "^12.2.16",
"@angular/compiler": "^12.2.16",
"@angular/core": "^12.2.16",
"@angular/common": "^13.3.12",
"@angular/compiler": "^13.3.12",
"@angular/core": "^13.3.12",
"@angular/flex-layout": "^12.0.0-beta.35",
"@angular/forms": "^12.2.16",
"@angular/forms": "^13.3.12",
"@angular/material": "^12.2.13",
"@angular/platform-browser": "^12.2.16",
"@angular/platform-browser-dynamic": "^12.2.16",
"@angular/router": "^12.2.16",
"@angular/platform-browser": "^13.3.12",
"@angular/platform-browser-dynamic": "^13.3.12",
"@angular/router": "^13.3.12",
"@auth0/angular-jwt": "^5.0.2",
"@date-io/date-fns": "^2.11.0",
"@flowjs/flow.js": "^2.14.1",
@ -102,10 +102,10 @@
},
"devDependencies": {
"@angular-builders/custom-webpack": "~12.1.3",
"@angular-devkit/build-angular": "^12.2.17",
"@angular/cli": "^12.2.17",
"@angular/compiler-cli": "^12.2.16",
"@angular/language-service": "^12.2.16",
"@angular-devkit/build-angular": "^13.3.10",
"@angular/cli": "^13.3.10",
"@angular/compiler-cli": "^13.3.12",
"@angular/language-service": "^13.3.12",
"@ngtools/webpack": "^13.3.10",
"@types/ace-diff": "^2.1.1",
"@types/canvas-gauges": "^2.1.4",
@ -147,7 +147,7 @@
"raw-loader": "^4.0.2",
"ts-node": "^10.4.0",
"tslint": "~6.1.3",
"typescript": "~4.3.5",
"typescript": "~4.6.4",
"webpack": "^5.64.4"
},
"resolutions": {
@ -155,4 +155,4 @@
"@types/react": "17.0.37",
"ace-builds": "1.4.13"
}
}
}

10
ui-ngx/src/polyfills.ts

@ -34,16 +34,6 @@
* BROWSER POLYFILLS
*/
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.
/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
*/
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
/**
* By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags

4
ui-ngx/src/test.ts

@ -28,7 +28,9 @@ declare const require: any;
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
BrowserDynamicTestingModule,
platformBrowserDynamicTesting()
platformBrowserDynamicTesting(), {
teardown: { destroyAfterEach: false }
}
);
// Then we find all the tests.
const context = require.context('./', true, /\.spec\.ts$/);

2599
ui-ngx/yarn.lock

File diff suppressed because it is too large
Loading…
Cancel
Save