Skip to content

Commit

Permalink
feat: atualiza 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 18, 2024
1 parent ba843f7 commit 8316df1
Show file tree
Hide file tree
Showing 639 changed files with 1,477 additions and 839 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
36 changes: 18 additions & 18 deletions docs/guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ Para começar a utilizar o **PO UI** é pré-requisito ter o `Node.js` instalado

Instalando com npm:
```
npm i -g @angular/cli@18
npm i -g @angular/cli@19
```

Caso prefira instalar com o yarn:
```
yarn global add @angular/cli@18
yarn global add @angular/cli@19
```

### Passo 1 - Crie o seu primeiro projeto
Expand All @@ -36,26 +36,26 @@ Veja abaixo a lista de dependências e as versões compatíveis, elas devem ser

```
"dependencies": {
"@angular/animations": "~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",
"rxjs": "~7.8.1",
"tslib": "^2.6.2",
"zone.js": "~0.14.4"
"@angular/animations": "~19.0.0",
"@angular/common": "~19.0.0",
"@angular/compiler": "~19.0.0",
"@angular/core": "~19.0.0",
"@angular/forms": "~19.0.0",
"@angular/platform-browser": "~19.0.0",
"@angular/platform-browser-dynamic": "~19.0.0",
"@angular/router": "~19.0.0",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.15.0"
...
},
"devDependencies": {
"@angular-devkit/build-angular": "~18.0.2",
"@angular-devkit/schematics": "~18.0.2",
"@angular/cli": "~18.0.2",
"@angular/compiler-cli": "~18.0.1",
"@angular-devkit/build-angular": "~19.0.5",
"@angular-devkit/schematics": "~19.0.5",
"@angular/cli": "~19.0.5",
"@angular/compiler-cli": "~19.0.0",
...
"typescript": "~5.4.5"
"typescript": "~5.6.2"
}
```

Expand Down
54 changes: 27 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "po-ui-sources",
"version": "18.21.0",
"version": "19.0-rc.0",
"description": "PO UI",
"homepage": "https://po-ui.io",
"license": "MIT",
Expand Down 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/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/animations": "~19.0.3",
"@angular/cdk": "~19.0.3",
"@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.21.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
8 changes: 4 additions & 4 deletions projects/code-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
"tslib": "^2.6.2"
},
"peerDependencies": {
"@angular/common": "^18",
"@angular/core": "^18",
"@angular/forms": "^18",
"@angular/common": "^19",
"@angular/core": "^19",
"@angular/forms": "^19",
"@po-ui/ng-components": "0.0.0-PLACEHOLDER",
"monaco-editor": "0.44.0",
"zone.js": "~0.14.4"
"zone.js": "~0.15.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ import { PoCodeEditorRegisterableSuggestionType } from './interfaces/po-code-edi
* > As configurações para o registro de uma nova sintaxe no Monaco code editor podem ser encontradas em
* > [**Monaco Editor**](https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-custom-languages).
*/
@Injectable()
@Injectable({
providedIn: 'root'
})
export class PoCodeEditorRegister implements PoCodeEditorRegisterable {
/** Sintaxe a ser registrada. */
language: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ const providers: Array<Provider> = [
@Component({
selector: 'po-code-editor',
templateUrl: './po-code-editor.component.html',
providers
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
Loading

0 comments on commit 8316df1

Please sign in to comment.