Skip to content

Commit

Permalink
feat: 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 11, 2024
1 parent bc09e68 commit a1892b9
Show file tree
Hide file tree
Showing 565 changed files with 1,198 additions and 714 deletions.
6 changes: 4 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
}
],
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-extra-semi": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-inferrable-types": [
"off",
Expand Down Expand Up @@ -272,7 +271,10 @@
"sonarjs/no-useless-catch": "error",
"sonarjs/prefer-immediate-return": "error",
"space-before-function-paren": "off",
"space-in-parens": ["off", "never"]
"space-in-parens": ["off", "never"],
"@angular-eslint/prefer-standalone": "off",
"@typescript-eslint/no-unsafe-function-type": "off",
"@typescript-eslint/no-empty-object-type": "off"
}
},
{
Expand Down
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
50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"build:storage:lite": "ng build storage --configuration production",
"build:sync": "ng build sync --configuration production && gulp build:schematics --lib sync && gulp replaceVersion && cd dist/ng-sync && npm pack",
"build": "npm run build:schematics && npm run build:ui && npm run build:templates && npm run build:storage && npm run build:sync && npm run build:code-editor",
"build:portal:prod": "ng build portal --configuration production --build-optimizer=false",
"build:portal:prod": "ng build portal --configuration production",
"build:portal": "npm run build:ui && npm run build:templates && npm run build:code-editor && npm run build:portal:docs",
"build:portal:docs": "cd projects/portal && gulp build && npm run script:copy-icons",
"release": "standard-version -- --preset angular",
Expand All @@ -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.20.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-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-devkit/build-angular": "~19.0.4",
"@angular-eslint/builder": "^19.0.2",
"@angular-eslint/eslint-plugin": "^19.0.2",
"@angular-eslint/eslint-plugin-template": "^19.0.2",
"@angular-eslint/schematics": "^19.0.2",
"@angular-eslint/template-parser": "^19.0.2",
"@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 All @@ -114,12 +114,12 @@
"@types/node": "^20.10.0",
"@types/resize-observer-browser": "^0.1.11",
"@types/systemjs": "^6.13.5",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"@typescript-eslint/eslint-plugin": "^8.18.0",
"@typescript-eslint/parser": "^8.18.0",
"del": "^6.0.0",
"dgeni": "^0.4.14",
"dgeni-packages": "0.30.0",
"eslint": "^8.54.0",
"eslint": "^8.57.0",
"eslint-plugin-import": "latest",
"eslint-plugin-jsdoc": "latest",
"eslint-plugin-prefer-arrow": "latest",
Expand All @@ -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
1 change: 0 additions & 1 deletion projects/app/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
}
],
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-extra-semi": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-inferrable-types": [
"off",
Expand Down
2 changes: 1 addition & 1 deletion projects/app/e2e/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.base.json",
"extends": "../../../tsconfig.json",
"compilerOptions": {
"outDir": "../../../out-tsc/e2e",
"module": "commonjs",
Expand Down
3 changes: 2 additions & 1 deletion projects/app/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Component } from '@angular/core';

@Component({
selector: 'app-root',
templateUrl: './app.component.html'
templateUrl: './app.component.html',
standalone: false
})
export class AppComponent {}
2 changes: 1 addition & 1 deletion projects/app/tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/app",
"types": []
Expand Down
2 changes: 1 addition & 1 deletion projects/app/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": ["jasmine", "node"]
Expand Down
1 change: 0 additions & 1 deletion projects/code-editor/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
}
],
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-extra-semi": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-inferrable-types": [
"off",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const providers: Array<Provider> = [
@Component({
selector: 'po-code-editor',
templateUrl: './po-code-editor.component.html',
providers
standalone: false
})
export class PoCodeEditorComponent extends PoCodeEditorBaseComponent implements AfterViewInit, DoCheck {
@ViewChild('editorContainer', { static: true }) editorContainer: ElementRef;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Component } from '@angular/core';

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

@Component({
selector: 'sample-po-code-editor-diff',
templateUrl: './sample-po-code-editor-diff.component.html'
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 @@ -4,7 +4,8 @@ import { PoCheckboxGroupOption, PoSelectOption } from '@po-ui/ng-components';

@Component({
selector: 'sample-po-code-editor-labs',
templateUrl: './sample-po-code-editor-labs.component.html'
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
Expand Up @@ -2,7 +2,8 @@ import { Component } from '@angular/core';

@Component({
selector: 'sample-po-code-editor-suggestion',
templateUrl: './sample-po-code-editor-suggestion.component.html'
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
Expand Up @@ -2,6 +2,7 @@ import { Component } from '@angular/core';

@Component({
selector: 'sample-po-code-editor-terraform',
templateUrl: './sample-po-code-editor-terraform.component.html'
templateUrl: './sample-po-code-editor-terraform.component.html',
standalone: false
})
export class SamplePoCodeEditorTerraformComponent {}
2 changes: 1 addition & 1 deletion projects/code-editor/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"declarationMap": true,
Expand Down
2 changes: 1 addition & 1 deletion projects/code-editor/tsconfig.schematics.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": "../../",
"lib": ["es2018", "dom"],
Expand Down
2 changes: 1 addition & 1 deletion projects/code-editor/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.base.json",
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "../../out-tsc/spec",
"types": ["jasmine", "node"]
Expand Down
1 change: 0 additions & 1 deletion projects/portal/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
}
],
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-extra-semi": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-inferrable-types": [
"off",
Expand Down
9 changes: 6 additions & 3 deletions projects/portal/docs/processors/helpers/file-writer.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ import { Component } from '@angular/core';
@Component({
selector: 'sample-{{docName}}-doc',
templateUrl: './sample-{{docName}}-doc.component.html'
templateUrl: './sample-{{docName}}-doc.component.html',
standalone: false
})
export class Sample{{component}}DocComponent { }
`;
Expand Down Expand Up @@ -112,7 +113,8 @@ import { Component } from '@angular/core';
@Component({
selector: 'sample-{{name}}-view',
templateUrl: './sample-{{name}}-view.component.html'
templateUrl: './sample-{{name}}-view.component.html',
standalone: false
})
export class Sample{{component}}ViewComponent {
hideSampleCodeTabs = true;
Expand Down Expand Up @@ -192,7 +194,8 @@ import { ActivatedRoute, Router } from '@angular/router';
import { Component, OnInit, OnDestroy } from '@angular/core';
@Component({
templateUrl: './doc-{{docName}}.component.html'
templateUrl: './doc-{{docName}}.component.html',
standalone: false
})
export class Doc{{component}}Component implements OnInit, OnDestroy {
sub: any;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Component } from '@angular/core';
li {
margin-left: 16px;
}
`]
`],
standalone: false
})
export class Guide<%- component %>Component { }
3 changes: 2 additions & 1 deletion projects/portal/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const KEY_STORAGE_REVIEW_SURVEY = 'review_survey_po_ui';

@Component({
selector: 'app-root',
templateUrl: './app.component.html'
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
Loading

0 comments on commit a1892b9

Please sign in to comment.