openvidu-components: Updated to Angular 14

pull/758/head
Carlos Santos 2022-11-02 16:03:07 +01:00
parent 5f73380afa
commit ec7e915ee1
8 changed files with 28862 additions and 31517 deletions

View File

@ -102,11 +102,7 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"tsconfig.app.json",
"tsconfig.spec.json",
"e2e/tsconfig.json"
],
"tsConfig": ["tsconfig.app.json", "tsconfig.spec.json", "e2e/tsconfig.json"],
"exclude": ["**/node_modules/**"]
}
},
@ -170,9 +166,7 @@
"tsConfig": "src/app/openvidu-webcomponent/tsconfig.openvidu-webcomponent.json",
"aot": true,
"assets": ["src/favicon.ico"],
"styles": [
"src/app/openvidu-webcomponent/openvidu-webcomponent.component.scss"
],
"styles": ["src/app/openvidu-webcomponent/openvidu-webcomponent.component.scss"],
"scripts": []
},
"configurations": {
@ -207,6 +201,5 @@
}
}
}
},
"defaultProject": "openvidu-components-testapp"
}
}

File diff suppressed because it is too large Load Diff

View File

@ -1,28 +1,27 @@
{
"dependencies": {
"@angular/animations": "13.3.9",
"@angular/cdk": "13.3.9",
"@angular/common": "13.3.9",
"@angular/core": "13.3.9",
"@angular/flex-layout": "13.0.0-beta.38",
"@angular/forms": "13.3.9",
"@angular/material": "13.3.9",
"@angular/platform-browser": "13.3.9",
"@angular/platform-browser-dynamic": "13.3.9",
"@angular/router": "13.3.9",
"autolinker": "3.14.3",
"@angular/animations": "14.2.8",
"@angular/cdk": "14.2.6",
"@angular/common": "14.2.8",
"@angular/core": "14.2.8",
"@angular/flex-layout": "14.0.0-beta.41",
"@angular/forms": "14.2.8",
"@angular/material": "14.2.6",
"@angular/platform-browser": "14.2.8",
"@angular/platform-browser-dynamic": "14.2.8",
"@angular/router": "14.2.8",
"autolinker": "4.0.0",
"openvidu-browser": "file:openvidu-browser-2.23.0.tgz",
"openvidu-browser": "2.23.0",
"rxjs": "7.5.6",
"rxjs": "7.5.7",
"tslib": "2.3.1",
"zone.js": "0.11.4"
},
"devDependencies": {
"@angular-devkit/build-angular": "13.3.9",
"@angular/cli": "13.3.9",
"@angular/compiler": "13.3.9",
"@angular/compiler-cli": "13.3.9",
"@angular/elements": "13.3.9",
"@angular-devkit/build-angular": "14.2.7",
"@angular/cli": "14.2.7",
"@angular/compiler": "14.2.8",
"@angular/compiler-cli": "14.2.8",
"@angular/elements": "14.2.8",
"@compodoc/compodoc": "^1.1.19",
"@types/chai": "4.3.0",
"@types/mocha": "9.1.0",
@ -46,11 +45,11 @@
"karma-mocha-reporter": "2.2.5",
"karma-notify-reporter": "1.3.0",
"mocha": "9.2.2",
"ng-packagr": "13.0.3",
"ng-packagr": "14.2.2",
"selenium-webdriver": "4.5.0",
"ts-node": "10.4.0",
"tslint": "6.1.3",
"typescript": "4.4.4",
"typescript": "4.8.4",
"webpack-bundle-analyzer": "^4.5.0"
},
"name": "openvidu-components-testapp",

View File

@ -2,13 +2,13 @@
"name": "openvidu-angular",
"version": "2.23.1",
"peerDependencies": {
"@angular/animations": "^13.0.0",
"@angular/common": "^13.0.0",
"@angular/core": "^13.0.0",
"@angular/material": "^13.0.0",
"@angular/forms": "^13.0.0",
"@angular/flex-layout": "^13.0.0-beta.36",
"autolinker": "^3.14.3",
"@angular/animations": "^14.0.0",
"@angular/common": "^14.0.0",
"@angular/core": "^14.0.0",
"@angular/material": "^14.0.0",
"@angular/forms": "^14.0.0",
"@angular/flex-layout": "^14.0.0-beta.40",
"autolinker": "^4.0.0",
"buffer": "^6.0.3",
"openvidu-browser": "2.23.0"
},

View File

@ -1,5 +1,5 @@
import { Component, ElementRef, EventEmitter, OnInit, Output, ViewChild } from '@angular/core';
import { FormControl, Validators, FormGroupDirective, NgForm } from '@angular/forms';
import { UntypedFormControl, Validators, FormGroupDirective, NgForm } from '@angular/forms';
import { ErrorStateMatcher } from '@angular/material/core';
import { Subscription } from 'rxjs';
import { ActionService } from '../../services/action/action.service';
@ -33,7 +33,7 @@ export class AdminLoginComponent implements OnInit {
/**
* @internal
*/
loginFormControl = new FormControl('', [Validators.required]);
loginFormControl = new UntypedFormControl('', [Validators.required]);
/**
* @internal
*/
@ -103,7 +103,7 @@ export class AdminLoginComponent implements OnInit {
* @internal
*/
export class FormErrorStateMatcher implements ErrorStateMatcher {
isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean {
isErrorState(control: UntypedFormControl | null, form: FormGroupDirective | NgForm | null): boolean {
const isSubmitted = form && form.submitted;
return !!(control && control.invalid && (control.dirty || control.touched || isSubmitted));
}

View File

@ -1,4 +1,4 @@
import { Autolinker, AutolinkerConfig, HashtagMatch } from 'autolinker';
import { Autolinker, AutolinkerConfig } from 'autolinker';
/**
* @internal
@ -6,7 +6,6 @@ import { Autolinker, AutolinkerConfig, HashtagMatch } from 'autolinker';
const AUTOLINKER_CFGS: AutolinkerConfig = {
urls: {
schemeMatches: true,
wwwMatches: true,
tldMatches: true
},
email: true,

View File

@ -144,8 +144,7 @@ const privateComponents = [
CommonModule,
OpenViduAngularDirectiveModule,
ApiDirectiveModule
],
entryComponents: [DialogTemplateComponent, RecordingDialogComponent, DeleteDialogComponent]
]
})
export class OpenViduAngularModule {
static forRoot(config): ModuleWithProviders<OpenViduAngularModule> {

View File

@ -7,6 +7,7 @@
"declarationMap": true,
"inlineSources": true,
"resolveJsonModule": true,
"moduleResolution": "node",
"types": []
},
"exclude": [