Skip to content

Commit

Permalink
chore: atualizar para a versão angular 19
Browse files Browse the repository at this point in the history
  • Loading branch information
anderson-gregorio-totvs committed Dec 9, 2024
1 parent 58425a1 commit 30e071a
Show file tree
Hide file tree
Showing 512 changed files with 1,966 additions and 1,432 deletions.
32 changes: 14 additions & 18 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/app",
"outputPath": {
"base": "dist/app"
},
"index": "projects/app/src/index.html",
"main": "projects/app/src/main.ts",
"polyfills": "projects/app/src/polyfills.ts",
"polyfills": ["projects/app/src/polyfills.ts"],
"tsConfig": "projects/app/tsconfig.app.json",
"assets": [
"projects/app/src/favicon.ico",
Expand All @@ -68,12 +69,11 @@
],
"styles": ["./node_modules/@po-ui/style/css/po-theme-default.min.css", "projects/app/src/styles.css"],
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
"namedChunks": true,
"browser": "projects/app/src/main.ts"
},
"configurations": {
"production": {
Expand All @@ -88,8 +88,6 @@
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
Expand Down Expand Up @@ -288,12 +286,13 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/portal",
"outputPath": {
"base": "dist/portal"
},
"index": "projects/portal/src/index.html",
"main": "projects/portal/src/main.ts",
"polyfills": "projects/portal/src/polyfills.ts",
"polyfills": ["projects/portal/src/polyfills.ts"],
"tsConfig": "projects/portal/tsconfig.app.json",
"assets": [
"projects/portal/src/favicon.ico",
Expand All @@ -316,12 +315,11 @@
"projects/portal/src/styles.css"
],
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
"namedChunks": true,
"browser": "projects/portal/src/main.ts"
},
"configurations": {
"production": {
Expand All @@ -336,8 +334,6 @@
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@
},
"private": true,
"dependencies": {
"@angular/animations": "~18.0.1",
"@angular/animations": "~19.0.3",
"@angular/cdk": "~18.0.1",
"@angular/common": "~18.0.1",
"@angular/compiler": "~18.0.1",
"@angular/core": "~18.0.1",
"@angular/forms": "~18.0.1",
"@angular/platform-browser": "~18.0.1",
"@angular/platform-browser-dynamic": "~18.0.1",
"@angular/router": "~18.0.1",
"@angular/common": "~19.0.3",
"@angular/compiler": "~19.0.3",
"@angular/core": "~19.0.3",
"@angular/forms": "~19.0.3",
"@angular/platform-browser": "~19.0.3",
"@angular/platform-browser-dynamic": "~19.0.3",
"@angular/router": "~19.0.3",
"@capacitor/core": "5.7.2",
"@capacitor/network": "^5.0.7",
"@po-ui/style": "18.18.0",
Expand All @@ -88,23 +88,23 @@
"localforage": "1.10.0",
"lokijs": "1.5.12",
"monaco-editor": "0.44.0",
"ngx-markdown": "~18.0.0",
"ngx-markdown": "^19.0.0",
"run-sequence": "^2.2.1",
"rxjs": "~7.8.1",
"rxjs-compat": "~6.6.7",
"tslib": "^2.6.2",
"zone.js": "~0.14.4"
"zone.js": "~0.15.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "~18.0.2",
"@angular-devkit/build-angular": "~19.0.4",
"@angular-eslint/builder": "^18.0.1",
"@angular-eslint/eslint-plugin": "^18.0.1",
"@angular-eslint/eslint-plugin-template": "^18.0.1",
"@angular-eslint/schematics": "^18.0.1",
"@angular-eslint/template-parser": "^18.0.1",
"@angular/cli": "~18.0.2",
"@angular/compiler-cli": "~18.0.1",
"@angular/language-service": "~18.0.1",
"@angular/cli": "~19.0.4",
"@angular/compiler-cli": "~19.0.3",
"@angular/language-service": "~19.0.3",
"@animaliads/animalia-icon": "1.0.2",
"@commitlint/cli": "^18.4.3",
"@commitlint/config-angular": "^18.4.3",
Expand Down Expand Up @@ -136,7 +136,7 @@
"karma-jasmine-html-reporter": "2.1.0",
"lint-staged": "^15.1.0",
"mkdirp": "3.0.1",
"ng-packagr": "~18.0.0",
"ng-packagr": "~19.0.1",
"prettier": "^3.1.0",
"protractor": "~7.0.0",
"rollup": "4.24.4",
Expand All @@ -145,7 +145,7 @@
"standard-version": "^9.5.0",
"ts-node": "~10.9.1",
"typemoq": "^2.1.0",
"typescript": "~5.4.5"
"typescript": "~5.6.3"
},
"standard-version": {
"skip": {
Expand Down
5 changes: 3 additions & 2 deletions projects/app/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Component } from '@angular/core';

@Component({
selector: 'app-root',
templateUrl: './app.component.html'
selector: 'app-root',
templateUrl: './app.component.html',
standalone: false
})
export class AppComponent {}
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Component } from '@angular/core';

@Component({
selector: 'sample-po-code-editor-basic',
templateUrl: './sample-po-code-editor-basic.component.html'
selector: 'sample-po-code-editor-basic',
templateUrl: './sample-po-code-editor-basic.component.html',
standalone: false
})
export class SamplePoCodeEditorBasicComponent {}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Component } from '@angular/core';

@Component({
selector: 'sample-po-code-editor-diff',
templateUrl: './sample-po-code-editor-diff.component.html'
selector: 'sample-po-code-editor-diff',
templateUrl: './sample-po-code-editor-diff.component.html',
standalone: false
})
export class SamplePoCodeEditorDiffComponent {
code = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import { Component, OnInit } from '@angular/core';
import { PoCheckboxGroupOption, PoSelectOption } from '@po-ui/ng-components';

@Component({
selector: 'sample-po-code-editor-labs',
templateUrl: './sample-po-code-editor-labs.component.html'
selector: 'sample-po-code-editor-labs',
templateUrl: './sample-po-code-editor-labs.component.html',
standalone: false
})
export class SamplePoCodeEditorLabsComponent implements OnInit {
codeEditor: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Component } from '@angular/core';

@Component({
selector: 'sample-po-code-editor-suggestion',
templateUrl: './sample-po-code-editor-suggestion.component.html'
selector: 'sample-po-code-editor-suggestion',
templateUrl: './sample-po-code-editor-suggestion.component.html',
standalone: false
})
export class SamplePoCodeEditorSuggestionComponent {
language = 'html';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Component } from '@angular/core';

@Component({
selector: 'sample-po-code-editor-terraform',
templateUrl: './sample-po-code-editor-terraform.component.html'
selector: 'sample-po-code-editor-terraform',
templateUrl: './sample-po-code-editor-terraform.component.html',
standalone: false
})
export class SamplePoCodeEditorTerraformComponent {}
5 changes: 3 additions & 2 deletions projects/portal/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ import { VersionService } from './shared/version.service';
const KEY_STORAGE_REVIEW_SURVEY = 'review_survey_po_ui';

@Component({
selector: 'app-root',
templateUrl: './app.component.html'
selector: 'app-root',
templateUrl: './app.component.html',
standalone: false
})
export class AppComponent implements OnInit, OnDestroy {
menus: Array<PoMenuItem> = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { AfterViewInit } from '@angular/core';
declare const hljs: any;

@Directive({
selector: '[appCodeHighlight]'
selector: '[appCodeHighlight]',
standalone: false
})
export class HighlightCodeDirective implements AfterViewInit {
constructor(private element: ElementRef) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { Documentation } from './documentation.class';
import { DocumentationService } from '../documentation/documentation.service';

@Component({
templateUrl: './documentation-list.component.html'
templateUrl: './documentation-list.component.html',
standalone: false
})
export class DocumentationListComponent implements OnInit {
public filteredItems;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import { HttpClient } from '@angular/common/http';
import { MenuComponentsService } from './menu-components.service';

@Component({
templateUrl: './documentation.component.html',
providers: [MenuComponentsService]
templateUrl: './documentation.component.html',
providers: [MenuComponentsService],
standalone: false
})
export class DocumentationComponent implements OnInit {
menus = [];
Expand Down
5 changes: 3 additions & 2 deletions projects/portal/src/app/guide/guides.components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import { HttpClient } from '@angular/common/http';
import { MenuGuidesService } from './menu-guides.service';

@Component({
templateUrl: './guides.component.html',
providers: [MenuGuidesService]
templateUrl: './guides.component.html',
providers: [MenuGuidesService],
standalone: false
})
export class GuidesComponent implements OnInit {
menus = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import { pluck } from 'rxjs/operators';
import { HomeColorfulService } from './home-colorful.service';

@Component({
selector: 'app-home-colorful',
templateUrl: './home-colorful.component.html',
styleUrls: ['./home-colorful.component.css']
selector: 'app-home-colorful',
templateUrl: './home-colorful.component.html',
styleUrls: ['./home-colorful.component.css'],
standalone: false
})
export class HomeColorfulComponent implements OnInit {
public stargazers_count: number;
Expand Down
7 changes: 4 additions & 3 deletions projects/portal/src/app/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import { Component } from '@angular/core';
import { Router } from '@angular/router';

@Component({
selector: 'app-home',
templateUrl: 'home.component.html',
styleUrls: ['home.component.css']
selector: 'app-home',
templateUrl: 'home.component.html',
styleUrls: ['home.component.css'],
standalone: false
})
export class HomeComponent {
constructor(private router: Router) {}
Expand Down
7 changes: 4 additions & 3 deletions projects/portal/src/app/icons/icons.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import { Component, ViewChild } from '@angular/core';
import { PoComboOption, PoNotificationService, PoSearchComponent, PoSearchFilterMode } from '../../../../ui/src/lib';

@Component({
selector: 'app-icons',
templateUrl: './icons.component.html',
styleUrls: ['icons.component.css']
selector: 'app-icons',
templateUrl: './icons.component.html',
styleUrls: ['icons.component.css'],
standalone: false
})
export class IconsComponent {
@ViewChild('poSearch', { static: true }) PoSearch: PoSearchComponent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ import {
} from '../../../../ui/src/lib';

@Component({
selector: 'app-theme-builder',
templateUrl: './theme-builder.component.html',
styleUrls: ['theme-builder.component.css'],
encapsulation: ViewEncapsulation.None
selector: 'app-theme-builder',
templateUrl: './theme-builder.component.html',
styleUrls: ['theme-builder.component.css'],
encapsulation: ViewEncapsulation.None,
standalone: false
})
export class ThemeBuilderComponent implements AfterViewInit, OnInit {
@ViewChild('viewCSSModal') viewCSSModal: PoModalComponent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ import {
} from '@po-ui/ng-components';

@Component({
selector: 'app-tools-dynamic-form',
templateUrl: 'tools-dynamic-form.component.html',
styleUrls: ['tools-dynamic-form.component.css']
selector: 'app-tools-dynamic-form',
templateUrl: 'tools-dynamic-form.component.html',
styleUrls: ['tools-dynamic-form.component.css'],
standalone: false
})
export class ToolsDynamicFormComponent {
@ViewChild('generatorForm') generatorForm: NgForm;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ import {
} from '@po-ui/ng-components';

@Component({
selector: 'app-tools-dynamic-view',
templateUrl: 'tools-dynamic-view.component.html',
styleUrls: ['tools-dynamic-view.component.css']
selector: 'app-tools-dynamic-view',
templateUrl: 'tools-dynamic-view.component.html',
styleUrls: ['tools-dynamic-view.component.css'],
standalone: false
})
export class ToolsDynamicViewComponent {
@ViewChild('generatorForm') generatorForm: NgForm;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import { Component, Input } from '@angular/core';
* Componente utilizado para exibição da mensagem customizada de erro em um campo de formulário.
*/
@Component({
selector: 'po-modal-password-recovery-error-message',
templateUrl: './po-modal-password-recovery-error-message.component.html'
selector: 'po-modal-password-recovery-error-message',
templateUrl: './po-modal-password-recovery-error-message.component.html',
standalone: false
})
export class PoModalPasswordRecoveryErrorMessageComponent {
/** Texto exibido na mensagem de erro. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ import { PoModalPasswordRecoveryType } from './enums/po-modal-password-recovery-
*/

@Component({
selector: 'po-modal-password-recovery',
templateUrl: './po-modal-password-recovery.component.html'
selector: 'po-modal-password-recovery',
templateUrl: './po-modal-password-recovery.component.html',
standalone: false
})
export class PoModalPasswordRecoveryComponent extends PoModalPasswordRecoveryBaseComponent implements OnDestroy {
@ViewChild('emailForm') emailForm: NgForm;
Expand Down
Loading

0 comments on commit 30e071a

Please sign in to comment.