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 23, 2024
1 parent ba843f7 commit d4f1189
Show file tree
Hide file tree
Showing 659 changed files with 2,202 additions and 945 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
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,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 @@ -51,28 +51,28 @@ Antes de executar a instalação ou inserir o **Po** no seu projeto existente,

Veja abaixo a lista de dependências e as versões compatíveis, elas devem ser conferidas e se necessário, ajustadas no seu projeto.

```
```json
"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
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
38 changes: 19 additions & 19 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 @@ -34,28 +34,28 @@ Antes de executar a instalação ou inserir o **Po** no seu projeto existente,

Veja abaixo a lista de dependências e as versões compatíveis, elas devem ser conferidas e se necessário, ajustadas no seu projeto.

```
```json
"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
6 changes: 3 additions & 3 deletions docs/guides/migration-poui.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ng update @angular/cli@<version> @angular/core@<version> --force
Por exemplo:

```
ng update @angular/cli@18 @angular/core@18 --force
ng update @angular/cli@19 @angular/core@19 --force
```

> Para realizar a migração completa e avaliar se não precisa fazer alguma alteração veja o [**Guia de Upgrade do Angular**](https://update.angular.io/).
Expand Down Expand Up @@ -67,10 +67,10 @@ ng update @po-ui/ng-components --allow-dirty --force
> Caso sua aplicação seja configurada com módulos, pode ser necessária a inclusão da seguinte `devDependencies`:
```
```json
"devDependencies": {
...,
"@angular-devkit/schematics": "~18.0.2",
"@angular-devkit/schematics": "~19.0.5",
...
}
```
Expand Down
5 changes: 5 additions & 0 deletions docs/guides/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ Consulte abaixo nossos guias de migração de versão para obter mais informaç
</tr>
</thead>
<tbody>
<tr class="po-table-row">
<td class="po-table-column">19.0.0</td>
<td class="po-table-column">19.0.0</td>
<td class="po-table-column"><a href="guides/migration-poui">Migração do PO UI</a></td>
</tr>
<tr class="po-table-row">
<td class="po-table-column">18.0.0</td>
<td class="po-table-column">18.0.0</td>
Expand Down
44 changes: 23 additions & 21 deletions docs/guides/sync-get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Para maiores detalhes sobre os serviços e métodos utilizados neste tutorial, c
### Pré-requisitos

- [Node.js e NPM](https://nodejs.org/en/)
- [Angular CLI](https://cli.angular.io/) (~18.0.1):
- [Angular CLI](https://cli.angular.io/) (~19.0.0):
- ```shell
npm install -g @angular/cli@18
npm install -g @angular/cli@19
```
- [Ionic](https://ionicframework.com/docs/cli/) (^7.2.0):
- ```shell
Expand Down Expand Up @@ -46,35 +46,35 @@ cd po-sync-getting-started

Antes de executar a instalação, é necessário que todas as dependências do projeto estejam declaradas de acordo com a versão do PO no arquivo `package.json`, localizado na raiz da aplicação:

```typescript
```json
...
"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",
"@angular/service-worker": "~18.0.1",
"@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",
"@angular/service-worker": "~19.0.0",
"@ionic/angular": "^8.0.0",
"@capacitor/network": "^6.0.1",
"@capacitor/splash-screen": "^6.0.1",
"@capacitor/status-bar": "6.0.0",
"rxjs": "~7.8.1",
"tslib": "^2.6.2",
"zone.js": "~0.14.4"
"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/language-service": "~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",
"@angular/language-service": "~19.0.0",
"@ionic/angular-toolkit": "^11.0.1",
"typescript": "~5.4.5"
"typescript": "~5.6.2"
},
...
```
Expand Down Expand Up @@ -179,6 +179,7 @@ import { conferenceSchema } from './home/conference-schema.constants';
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.scss'],
standalone: false
})
export class AppComponent {
constructor(private platform: Platform, private poSync: PoSyncService) {
Expand Down Expand Up @@ -222,6 +223,7 @@ import { PoSyncService } from '@po-ui/ng-sync';
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
standalone: false
})
export class HomePage {
Expand Down
Loading

0 comments on commit d4f1189

Please sign in to comment.