From e75466c281d461fc47d9d6c2eac805796e9282e1 Mon Sep 17 00:00:00 2001 From: CSimoesJr Date: Thu, 7 Dec 2023 11:19:38 -0300 Subject: [PATCH] build: atualiza para o angular 17 Atualiza o projeto po-sample-app-conference para o angular 17 fixes DTHFUI-8041 --- po-sample-app-conference/angular.json | 9 +- po-sample-app-conference/package.json | 89 ++++++++++--------- .../speaker-list/speaker-list.component.html | 34 ++++--- .../app/speaker-list/speaker-list.module.ts | 2 + 4 files changed, 72 insertions(+), 62 deletions(-) diff --git a/po-sample-app-conference/angular.json b/po-sample-app-conference/angular.json index dcab4b7..f79ac63 100644 --- a/po-sample-app-conference/angular.json +++ b/po-sample-app-conference/angular.json @@ -87,11 +87,11 @@ "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { - "browserTarget": "app:build" + "buildTarget": "app:build" }, "configurations": { "production": { - "browserTarget": "app:build:production" + "buildTarget": "app:build:production" }, "ci": { "progress": false @@ -101,7 +101,7 @@ "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { - "browserTarget": "app:build" + "buildTarget": "app:build" } }, "test": { @@ -170,7 +170,8 @@ "cli": { "schematicCollections": [ "@ionic/angular-toolkit" - ] + ], + "analytics": "24cb69fd-c0ea-4fe1-b901-377eee2c7300" }, "schematics": { "@ionic/angular-toolkit:component": { diff --git a/po-sample-app-conference/package.json b/po-sample-app-conference/package.json index 839dac8..7644fc5 100644 --- a/po-sample-app-conference/package.json +++ b/po-sample-app-conference/package.json @@ -13,58 +13,59 @@ }, "private": true, "dependencies": { - "@angular/animations": "^16.2.2", - "@angular/common": "^16.2.2", - "@angular/core": "^16.2.2", - "@angular/forms": "^16.2.2", - "@angular/platform-browser": "^16.2.2", - "@angular/platform-browser-dynamic": "^16.2.2", - "@angular/router": "^16.2.2", - "@angular/service-worker": "^16.2.2", - "@capacitor/app": "^4.1.1", - "@capacitor/core": "^4.6.3", - "@capacitor/haptics": "^4.1.0", - "@capacitor/keyboard": "^4.1.0", - "@capacitor/network": "^4.1.0", - "@capacitor/splash-screen": "^4.1.4", - "@capacitor/status-bar": "^4.1.1", - "@ionic/angular": "^6.1.3", - "@ionic/storage": "^2.3.1", - "@po-ui/ng-components": "v16.0.0-next.4", - "@po-ui/ng-sync": "v16.0.0-next.4", - "@po-ui/ng-templates": "v16.0.0-next.4", - "core-js": "^2.5.4", + "@angular/animations": "~17.0.4", + "@angular/cdk": "^17.0.2", + "@angular/common": "~17.0.4", + "@angular/core": "~17.0.4", + "@angular/forms": "~17.0.4", + "@angular/platform-browser": "~17.0.4", + "@angular/platform-browser-dynamic": "~17.0.4", + "@angular/router": "~17.0.4", + "@angular/service-worker": "~17.0.4", + "@capacitor/app": "^5.0.6", + "@capacitor/core": "^5.5.1", + "@capacitor/haptics": "^5.0.6", + "@capacitor/keyboard": "^5.0.6", + "@capacitor/network": "^5.0.6", + "@capacitor/splash-screen": "^5.0.6", + "@capacitor/status-bar": "^5.0.6", + "@ionic/angular": "^7.5.7", + "@ionic/storage": "^4.0.0", + "@po-ui/ng-components": "17.0.0-next.19", + "@po-ui/ng-sync": "17.0.0-next.19", + "@po-ui/ng-templates": "17.0.0-next.19", + "core-js": "3.33.3", "hammerjs": "^2.0.8", "lokijs": "^1.5.12", - "rxjs": "~7.5.5", - "tslib": "^2.0.0", - "zone.js": "~0.13.1" + "rxjs": "~7.8.1", + "tslib": "^2.6.2", + "zone.js": "~0.14.2" }, "devDependencies": { - "@angular-devkit/build-angular": "^16.2.0", - "@angular/cli": "^16.2.0", - "@angular/compiler": "^16.2.2", - "@angular/compiler-cli": "^16.2.2", - "@angular/language-service": "^16.2.2", - "@capacitor/cli": "^4.6.3", - "@ionic/angular-toolkit": "^4.0.0", - "@types/jasmine": "^3.3.8", - "@types/jasminewd2": "~2.0.3", - "@types/node": "~8.9.4", - "codelyzer": "^6.0.0", - "jasmine-core": "~3.8.0", + "@angular-devkit/build-angular": "~17.0.3", + "@angular/cli": "~17.0.3", + "@angular/compiler": "~17.0.3", + "@angular/compiler-cli": "~17.0.3", + "@angular/language-service": "~17.0.4", + "@capacitor/cli": "^5.5.1", + "@ionic/angular-toolkit": "^10.0.0", + "@types/jasmine": "^5.1.4", + "@types/jasminewd2": "~2.0.13", + "@types/node": "~20.10.3", + "codelyzer": "^6.0.2", + "jasmine-core": "~5.1.1", "jasmine-spec-reporter": "~7.0.0", - "karma": "~6.3.2", - "karma-chrome-launcher": "~3.1.0", - "karma-coverage": "~2.0.3", + "karma": "~6.4.2", + "karma-chrome-launcher": "~3.2.0", + "karma-coverage": "~2.2.1", "karma-coverage-istanbul-reporter": "^3.0.3", - "karma-jasmine": "~4.0.1", - "karma-jasmine-html-reporter": "^1.7.0", + "karma-jasmine": "~5.1.0", + "karma-jasmine-html-reporter": "^2.1.0", "prettier": "^2.1.2", "protractor": "~7.0.0", - "ts-node": "~9.0.0", + "ts-node": "~10.9.1", "tslint": "~6.1.0", - "typescript": "~4.9.5" + "typescript": "~5.2.2" }, "description": "An Ionic project" -} \ No newline at end of file +} diff --git a/po-sample-app-conference/src/app/speaker-list/speaker-list.component.html b/po-sample-app-conference/src/app/speaker-list/speaker-list.component.html index 08d2278..c118141 100644 --- a/po-sample-app-conference/src/app/speaker-list/speaker-list.component.html +++ b/po-sample-app-conference/src/app/speaker-list/speaker-list.component.html @@ -8,38 +8,44 @@ - - - - - - + + + - Speaker profile pic + Speaker profile pic

{{ speaker.name }}

- - + + About - - + + Contact
-
-
+
diff --git a/po-sample-app-conference/src/app/speaker-list/speaker-list.module.ts b/po-sample-app-conference/src/app/speaker-list/speaker-list.module.ts index 726ecd4..8251511 100644 --- a/po-sample-app-conference/src/app/speaker-list/speaker-list.module.ts +++ b/po-sample-app-conference/src/app/speaker-list/speaker-list.module.ts @@ -2,6 +2,7 @@ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { IonicModule } from '@ionic/angular'; +import { ScrollingModule } from '@angular/cdk/scrolling'; import { SpeakerListComponentRoutingModule } from './speaker-list.routing'; import { SpeakerListComponent } from './speaker-list.component'; @@ -10,6 +11,7 @@ import { SpeakerListComponent } from './speaker-list.component'; imports: [ CommonModule, IonicModule, + ScrollingModule, SpeakerListComponentRoutingModule, ], declarations: [SpeakerListComponent]