Commit 21805499 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #13677 TIME 4 upgrade to angular 9

parent c8e27ee1
......@@ -28,6 +28,12 @@
},
"configurations": {
"production": {
"budgets": [
{
"type": "anyComponentStyle",
"maximumWarning": "1mb"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
......
......@@ -46,12 +46,11 @@ class MergedJsAbstract
//Dependencies
readfile('node_modules/jquery/dist/jquery.min.js');
readfile('node_modules/core-js/client/shim.js'); //V2 - Angular
readfile('node_modules/zone.js/dist/zone.min.js'); //V2 - Angular
readfile('node_modules/bootstrap/dist/js/bootstrap.min.js'); //V2
readfile('node_modules/chart.js/Chart.min.js');
readfile('node_modules/tinymce/tinymce.min.js');
readfile('node_modules/jquery.nicescroll/jquery.nicescroll.min.js'); //V2
readfile('node_modules/jquery.nicescroll/dist/jquery.nicescroll.min.js'); //V2
readfile('node_modules/tooltipster/dist/js/tooltipster.bundle.min.js'); //V2
readfile('node_modules/jquery-typeahead/dist/jquery.typeahead.min.js'); //V2
readfile('node_modules/chosen-js/chosen.jquery.min.js');
......
......@@ -6,6 +6,7 @@
"build-prod": "ng build --prod && npm run build-css",
"build-watch": "ng build --watch",
"build": "ng build",
"postinstall": "ngcc",
"check-update": "ncu",
"dep-list": "npm list --depth=0",
"upgrade": "ncu -u",
......@@ -18,57 +19,55 @@
"dependencies": {
"@fortawesome/fontawesome-free": "^5.13.0",
"@swimlane/ngx-charts": "^13.0.2",
"@tinymce/tinymce-angular": "^3.4.0",
"bootstrap": "^3.4.1",
"chart.js": "1.1.1",
"chosen-js": "^1.8.7",
"core-js": "^2.6.9",
"core-js": "^3.6.4",
"jquery": "^3.4.1",
"jquery-typeahead": "^2.11.0",
"jquery.nicescroll": "~3.6.8",
"jquery.nicescroll": "~3.7.6",
"jstree-bootstrap-theme": "^1.0.1",
"ng2-pdf-viewer": "^5.3.4",
"ngx-cookie-service": "^2.4.0",
"ng2-pdf-viewer": "^6.1.2",
"ngx-cookie-service": "^3.0.3",
"ngx-pipes": "^2.7.3",
"pdfjs-dist": "2.2.228",
"pdfjs-dist": "2.3.200",
"photoswipe": "^4.1.3",
"tinymce": "^5.2.1",
"tinymce-i18n": "^19.9.17",
"tooltipster": "^4.2.7",
"uglify-es": "3.2.2",
"uglifyjs-webpack-plugin": "2.1.1",
"zone.js": "^0.9.1"
"tslib": "^1.10.0",
"uglify-es": "3.3.9",
"uglifyjs-webpack-plugin": "2.2.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.803.23",
"@angular/animations": "^8.2.14",
"@angular/cdk": "^8.2.0",
"@angular/cli": "^8.3.23",
"@angular/common": "^8.2.14",
"@angular/compiler": "^8.2.14",
"@angular/compiler-cli": "^8.2.14",
"@angular/core": "^8.2.14",
"@angular/forms": "^8.2.14",
"@angular/http": "^7.2.15",
"@angular/material": "^8.2.0",
"@angular/platform-browser": "^8.2.14",
"@angular/platform-browser-dynamic": "^8.2.14",
"@angular/platform-server": "^8.2.14",
"@angular/router": "^8.2.14",
"@angular-devkit/build-angular": "~0.901.0",
"@angular/animations": "^9.1.0",
"@angular/cdk": "^9.2.0",
"@angular/cli": "^9.1.0",
"@angular/common": "^9.1.0",
"@angular/compiler": "^9.1.0",
"@angular/compiler-cli": "^9.1.0",
"@angular/core": "^9.1.0",
"@angular/forms": "^9.1.0",
"@angular/material": "^9.2.0",
"@angular/platform-browser": "^9.1.0",
"@angular/platform-browser-dynamic": "^9.1.0",
"@angular/platform-server": "^9.1.0",
"@angular/router": "^9.1.0",
"@types/datatables.net": "^1.10.18",
"@types/jquery": "^2.0.53",
"@types/node": "^7.10.8",
"@types/jquery": "^3.3.34",
"@types/node": "^13.9.5",
"ajv": "^6.12.0",
"hammerjs": "^2.0.8",
"html-minifier": "^3.5.21",
"html-minifier": "^4.0.0",
"ng2-dnd": "^5.0.2",
"node-sass": "^4.13.1",
"nodemon": "^1.19.1",
"npm-check-updates": "^3.2.0",
"rxjs": "^6.5.2",
"tslib": "^1.11.0",
"typescript": "3.5.3",
"url-loader": "^1.1.2",
"nodemon": "^2.0.2",
"npm-check-updates": "^4.1.0",
"rxjs": "^6.5.4",
"typescript": "3.8.3",
"url-loader": "^4.0.0",
"webpack": "^4.42.1"
},
"repository": {}
......
......@@ -258,12 +258,11 @@ class CoreConfigModel
/* SCRIPS PARTS */
$structure .= "<script src='../../node_modules/jquery/dist/jquery.min.js'></script>";
$structure .= "<script src='../../node_modules/core-js/client/shim.js'></script>";
$structure .= "<script src='../../node_modules/zone.js/dist/zone.min.js'></script>";
$structure .= "<script src='../../node_modules/bootstrap/dist/js/bootstrap.min.js'></script>";
$structure .= "<script src='../../node_modules/chart.js/Chart.min.js'></script>";
$structure .= "<script src='../../node_modules/tinymce/tinymce.min.js'></script>";
$structure .= "<script src='../../node_modules/jquery.nicescroll/jquery.nicescroll.min.js'></script>";
$structure .= "<script src='../../node_modules/jquery.nicescroll/dist/jquery.nicescroll.min.js'></script>";
$structure .= "<script src='../../node_modules/tooltipster/dist/js/tooltipster.bundle.min.js'></script>";
$structure .= "<script src='../../node_modules/jquery-typeahead/dist/jquery.typeahead.min.js'></script> ";
$structure .= "<script src='../../node_modules/chosen-js/chosen.jquery.min.js'></script>";
......
......@@ -5,7 +5,7 @@ import { tap, catchError, filter, finalize, exhaustMap } from 'rxjs/operators';
import { of, Subject, Observable } from 'rxjs';
import { NotificationService } from '../notification.service';
import { ConfirmActionComponent } from './confirm-action/confirm-action.component';
import { MatDialog } from '@angular/material';
import { MatDialog } from '@angular/material/dialog';
import { CloseMailActionComponent } from './close-mail-action/close-mail-action.component';
import { RejectVisaBackToPrevousActionComponent } from './visa-reject-back-to-previous-action/reject-visa-back-to-previous-action.component';
import { ResetVisaActionComponent } from './visa-reset-action/reset-visa-action.component';
......
......@@ -6,7 +6,9 @@ import { HeaderService } from '../../../../service/header.service';
import { MatSidenav } from '@angular/material/sidenav';
import { AppService } from '../../../../service/app.service';
import { Observable, merge, Subject, of as observableOf, of } from 'rxjs';
import { MatPaginator, MatSort, MatDialog, MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
import { MatDialog, MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import { takeUntil, startWith, switchMap, map, catchError, filter, exhaustMap, tap, debounceTime, distinctUntilChanged } from 'rxjs/operators';
import { ConfirmComponent } from '../../../../plugins/modal/confirm.component';
import { FormControl } from '@angular/forms';
......
......@@ -4,7 +4,7 @@ import { LANG } from '../../../translate.component';
import { HttpClient } from '@angular/common/http';
import { PrivilegeService } from '../../../../service/privileges.service';
import { HeaderService } from '../../../../service/header.service';
import { MatSidenav } from '@angular/material';
import { MatSidenav } from '@angular/material/sidenav';
declare function $j(selector: any): any;
......
......@@ -3,7 +3,7 @@ import { HttpClient } from '@angular/common/http';
import { LANG } from '../../../translate.component';
import { HeaderService } from '../../../../service/header.service';
import { AppService } from '../../../../service/app.service';
import { MatDialog } from '@angular/material';
import { MatDialog } from '@angular/material/dialog';
import { ActivatedRoute, Router } from '@angular/router';
@Component({
......
......@@ -6,7 +6,7 @@ import { HeaderService } from '../../../../../service/header.service';
import { MatSidenav } from '@angular/material/sidenav';
import { AppService } from '../../../../../service/app.service';
import { Observable, of} from 'rxjs';
import { MatDialog } from '@angular/material';
import { MatDialog } from '@angular/material/dialog';
import { switchMap, catchError, filter, exhaustMap, tap, debounceTime, distinctUntilChanged, finalize, map } from 'rxjs/operators';
import { FormControl, Validators, ValidatorFn } from '@angular/forms';
import { ActivatedRoute, Router } from '@angular/router';
......
......@@ -4,7 +4,9 @@ import { LANG } from '../../../translate.component';
import { NotificationService } from '../../../notification.service';
import { HeaderService } from '../../../../service/header.service';
import { AppService } from '../../../../service/app.service';
import { MatTableDataSource, MatPaginator, MatSort } from '@angular/material';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import { MatTableDataSource } from '@angular/material/table';
declare function $j(selector: any): any;
......
......@@ -12,7 +12,7 @@ import { AppService } from '../../../service/app.service';
import { PrivilegeService } from '../../../service/privileges.service';
import { tap, catchError, exhaustMap, map, finalize, filter } from 'rxjs/operators';
import { of } from 'rxjs';
import { MatDialog } from '@angular/material';
import { MatDialog } from '@angular/material/dialog';
import { ConfirmComponent } from '../../../plugins/modal/confirm.component';
declare function $j(selector: any): any;
......
......@@ -5,7 +5,9 @@ import { NotificationService } from '../../../notification.service';
import { HeaderService } from '../../../../service/header.service';
import { AppService } from '../../../../service/app.service';
import { Observable, merge, Subject, of as observableOf, of } from 'rxjs';
import { MatPaginator, MatSort, MatDialog } from '@angular/material';
import { MatDialog } from '@angular/material/dialog';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import { takeUntil, startWith, switchMap, map, catchError, tap, finalize } from 'rxjs/operators';
import { FormControl } from '@angular/forms';
import { FunctionsService } from '../../../../service/functions.service';
......
......@@ -10,7 +10,7 @@ import { finalize, tap, catchError, filter, exhaustMap } from 'rxjs/operators';
import { of } from 'rxjs';
import { FunctionsService } from '../../../service/functions.service';
import { ConfirmComponent } from '../../../plugins/modal/confirm.component';
import { MatDialog } from '@angular/material';
import { MatDialog } from '@angular/material/dialog';
@Component({
templateUrl: "tag-administration.component.html",
......
......@@ -10,7 +10,7 @@ import { AppService } from '../../../service/app.service';
import { tap, finalize, filter, exhaustMap, catchError } from 'rxjs/operators';
import { ConfirmComponent } from '../../../plugins/modal/confirm.component';
import { of } from 'rxjs';
import { MatDialog } from '@angular/material';
import { MatDialog } from '@angular/material/dialog';
import {FunctionsService} from "../../../service/functions.service";
@Component({
......
......@@ -7,7 +7,7 @@ import { Observable } from 'rxjs';
import { FormControl } from '@angular/forms';
import { startWith, map } from 'rxjs/operators';
import { LatinisePipe } from 'ngx-pipes';
import { MatExpansionPanel } from '@angular/material';
import { MatExpansionPanel } from '@angular/material/expansion';
@Component({
selector: 'app-criteria-tool',
......
......@@ -5,7 +5,9 @@ import { NotificationService } from '../../notification.service';
import { HeaderService } from '../../../service/header.service';
import { AppService } from '../../../service/app.service';
import { Observable, merge, Subject, of as observableOf, of } from 'rxjs';
import { MatPaginator, MatSort, MatDialog } from '@angular/material';
import { MatDialog } from '@angular/material/dialog';
import { MatPaginator } from '@angular/material/paginator';
import { MatSort } from '@angular/material/sort';
import { takeUntil, startWith, switchMap, map, catchError, filter, exhaustMap, tap, debounceTime, distinctUntilChanged } from 'rxjs/operators';
import { FormControl } from '@angular/forms';
import { FunctionsService } from '../../../service/functions.service';
......
......@@ -24,8 +24,6 @@ import { TimeLimitPipe } from '../plugins/timeLimit.pipe'
import { FilterListPipe } from '../plugins/filterList.pipe';
import { FullDatePipe } from '../plugins/fullDate.pipe';
import { EcplOnlyofficeViewerComponent } from '../plugins/onlyoffice-api-js/onlyoffice-viewer.component';
import { EditorModule } from '@tinymce/tinymce-angular';
/*FRONT IMPORTS*/
import { AppMaterialModule } from './app-material.module';
......@@ -95,8 +93,7 @@ export class MyHammerConfig extends HammerGestureConfig {
PdfViewerModule,
NgStringPipesModule,
AppMaterialModule,
DragDropModule,
EditorModule
DragDropModule
],
declarations: [
MainHeaderComponent,
......@@ -166,7 +163,6 @@ export class MyHammerConfig extends HammerGestureConfig {
SmdFabSpeedDialTrigger,
SmdFabSpeedDialActions,
DragDropModule,
EditorModule,
PluginAutocomplete,
IndexingFormComponent,
FieldListComponent,
......
......@@ -4,7 +4,7 @@ import { MatIconRegistry } from '@angular/material/icon';
import { MAT_TOOLTIP_DEFAULT_OPTIONS, MatTooltipDefaultOptions } from '@angular/material/tooltip';
import { HeaderService } from '../service/header.service';
import { AppService } from '../service/app.service';
import { MatSidenav } from '@angular/material';
import { MatSidenav } from '@angular/material/sidenav';
/** Custom options the configure the tooltip's default show/hide delays. */
export const myCustomTooltipDefaults: MatTooltipDefaultOptions = {
......
......@@ -4,7 +4,7 @@ import { LANG } from '../../translate.component';
import { catchError, tap, filter, distinctUntilChanged, take } from 'rxjs/operators';
import { of } from 'rxjs';
import { NotificationService } from '../../notification.service';
import { MatDialog, MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
import { MatDialog, MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { AppService } from '../../../service/app.service';
import { DocumentViewerComponent } from '../../viewer/document-viewer.component';
import { SortPipe } from '../../../plugins/sorting.pipe';
......
......@@ -4,7 +4,7 @@ import { LANG } from '../translate.component';
import { NotificationService } from '../notification.service';
import { tap, finalize, catchError, filter, exhaustMap } from 'rxjs/operators';
import { of } from 'rxjs';
import { MatDialog, MatDialogRef } from '@angular/material';
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
import { trigger, transition, style, animate } from '@angular/animations';
import { AttachmentPageComponent } from './attachments-page/attachment-page.component';
import { AttachmentCreateComponent } from './attachment-create/attachment-create.component';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment